diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-12-06 19:57:55 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-02-08 13:48:30 +0000 |
commit | bf3aadfdd39aa197e18bade671fab6726349ffa4 (patch) | |
tree | 698567af766ed441d757b57a7b21e68d4a342a2b /nixpkgs/pkgs/tools/misc/storcli/default.nix | |
parent | f4afc5a01d9539ce09e47494e679c51f80723d07 (diff) | |
parent | 99665eb45f58d959d2cb9e49ddb960c79d596f33 (diff) | |
download | nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.gz nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.bz2 nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.lz nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.xz nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.zst nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.zip |
Merge commit '99665eb45f58d959d2cb9e49ddb960c79d596f33'
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/storcli/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/storcli/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/storcli/default.nix b/nixpkgs/pkgs/tools/misc/storcli/default.nix new file mode 100644 index 000000000000..03300f46f8c0 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/storcli/default.nix @@ -0,0 +1,35 @@ +{ lib +, stdenvNoCC +, fetchurl +, rpmextract +, unzip +}: +stdenvNoCC.mkDerivation rec { + pname = "storcli"; + version = "7.2106.00"; + + src = fetchurl { + url = "https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/00${version}00.0000_Unified_StorCLI.zip"; + sha256 = "sha256-sRMpNXCdcysliVQwRE/1yAeU/cp+y0f2F8BPiWyotxQ="; + }; + + nativeBuildInputs = [ rpmextract unzip ]; + + buildCommand = '' + unzip $src + rpmextract Unified_storcli_all_os/Linux/storcli-*.noarch.rpm + install -D ./opt/MegaRAID/storcli/storcli64 $out/bin/storcli64 + ln -s storcli64 $out/bin/storcli + + # Not needed because the binary is statically linked + #eval fixupPhase + ''; + + meta = with lib; { + description = "Storage Command Line Tool"; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + license = licenses.unfree; + maintainers = with maintainers; [ panicgh ]; + platforms = with platforms; intersectLists x86_64 linux; + }; +} |