diff options
author | Nicolas Benes <nbenes.gh@xandea.de> | 2022-08-03 13:10:48 +0200 |
---|---|---|
committer | Nicolas Benes <nbenes.gh@xandea.de> | 2022-08-03 14:35:06 +0200 |
commit | 8290d2f8b88109379d31fd76456598454db38f2a (patch) | |
tree | 8b00eb000372df74a3a4b81d1dc90d912d3ad95d /pkgs/tools/misc/perccli | |
parent | 4320bb92290e661378dab7e90c108db224ff69a9 (diff) |
perccli: init at 7.1910.00
Diffstat (limited to 'pkgs/tools/misc/perccli')
-rw-r--r-- | pkgs/tools/misc/perccli/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/misc/perccli/default.nix b/pkgs/tools/misc/perccli/default.nix new file mode 100644 index 0000000000000..517fffead5334 --- /dev/null +++ b/pkgs/tools/misc/perccli/default.nix @@ -0,0 +1,37 @@ +{ lib +, stdenvNoCC +, fetchurl +, rpmextract +}: +stdenvNoCC.mkDerivation rec { + pname = "perccli"; + version = "7.1910.00"; + + src = fetchurl { + url = "https://dl.dell.com/FOLDER07815522M/1/PERCCLI_${version}_A12_Linux.tar.gz"; + sha256 = "sha256-Gt/kr5schR/IzFmnhXO57gjZpOJ9NSnPX/Sj7zo8Qjk="; + # Dell seems to block "uncommon" user-agents, such as Nixpkgs's custom one. + # Sending no user-agent at all seems to be fine though. + curlOptsList = [ "--user-agent" "" ]; + }; + + nativeBuildInputs = [ rpmextract ]; + + buildCommand = '' + tar xf $src + rpmextract PERCCLI_*_Linux/perccli-*.noarch.rpm + install -D ./opt/MegaRAID/perccli/perccli64 $out/bin/perccli64 + ln -s perccli64 $out/bin/perccli + + # Not needed because the binary is statically linked + #eval fixupPhase + ''; + + meta = with lib; { + description = "Perccli Support for PERC RAID controllers"; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + license = licenses.unfree; + maintainers = with maintainers; [ panicgh ]; + platforms = with platforms; intersectLists x86_64 linux; + }; +} |