Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #177896 from panicgh/raidctrl-tools

perccli, storcli: init proprietary HW RAID configuration tools

authored by Linus Heckemann and committed by GitHub 11f01baf 222c652e

+82
+6
maintainers/maintainer-list.nix
··· 9879 9879 githubId = 1788628; 9880 9880 name = "pandaman"; 9881 9881 }; 9882 + panicgh = { 9883 + email = "nbenes.gh@xandea.de"; 9884 + github = "panicgh"; 9885 + githubId = 79252025; 9886 + name = "Nicolas Benes"; 9887 + }; 9882 9888 paperdigits = { 9883 9889 email = "mica@silentumbrella.com"; 9884 9890 github = "paperdigits";
+37
pkgs/tools/misc/perccli/default.nix
··· 1 + { lib 2 + , stdenvNoCC 3 + , fetchurl 4 + , rpmextract 5 + }: 6 + stdenvNoCC.mkDerivation rec { 7 + pname = "perccli"; 8 + version = "7.1910.00"; 9 + 10 + src = fetchurl { 11 + url = "https://dl.dell.com/FOLDER07815522M/1/PERCCLI_${version}_A12_Linux.tar.gz"; 12 + sha256 = "sha256-Gt/kr5schR/IzFmnhXO57gjZpOJ9NSnPX/Sj7zo8Qjk="; 13 + # Dell seems to block "uncommon" user-agents, such as Nixpkgs's custom one. 14 + # Sending no user-agent at all seems to be fine though. 15 + curlOptsList = [ "--user-agent" "" ]; 16 + }; 17 + 18 + nativeBuildInputs = [ rpmextract ]; 19 + 20 + buildCommand = '' 21 + tar xf $src 22 + rpmextract PERCCLI_*_Linux/perccli-*.noarch.rpm 23 + install -D ./opt/MegaRAID/perccli/perccli64 $out/bin/perccli64 24 + ln -s perccli64 $out/bin/perccli 25 + 26 + # Not needed because the binary is statically linked 27 + #eval fixupPhase 28 + ''; 29 + 30 + meta = with lib; { 31 + description = "Perccli Support for PERC RAID controllers"; 32 + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 33 + license = licenses.unfree; 34 + maintainers = with maintainers; [ panicgh ]; 35 + platforms = with platforms; intersectLists x86_64 linux; 36 + }; 37 + }
+35
pkgs/tools/misc/storcli/default.nix
··· 1 + { lib 2 + , stdenvNoCC 3 + , fetchurl 4 + , rpmextract 5 + , unzip 6 + }: 7 + stdenvNoCC.mkDerivation rec { 8 + pname = "storcli"; 9 + version = "7.2106.00"; 10 + 11 + src = fetchurl { 12 + url = "https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/00${version}00.0000_Unified_StorCLI.zip"; 13 + sha256 = "sha256-sRMpNXCdcysliVQwRE/1yAeU/cp+y0f2F8BPiWyotxQ="; 14 + }; 15 + 16 + nativeBuildInputs = [ rpmextract unzip ]; 17 + 18 + buildCommand = '' 19 + unzip $src 20 + rpmextract Unified_storcli_all_os/Linux/storcli-*.noarch.rpm 21 + install -D ./opt/MegaRAID/storcli/storcli64 $out/bin/storcli64 22 + ln -s storcli64 $out/bin/storcli 23 + 24 + # Not needed because the binary is statically linked 25 + #eval fixupPhase 26 + ''; 27 + 28 + meta = with lib; { 29 + description = "Storage Command Line Tool"; 30 + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 31 + license = licenses.unfree; 32 + maintainers = with maintainers; [ panicgh ]; 33 + platforms = with platforms; intersectLists x86_64 linux; 34 + }; 35 + }
+4
pkgs/top-level/all-packages.nix
··· 9551 9551 9552 9552 pell = callPackage ../applications/misc/pell { }; 9553 9553 9554 + perccli = callPackage ../tools/misc/perccli { }; 9555 + 9554 9556 perceptualdiff = callPackage ../tools/graphics/perceptualdiff { }; 9555 9557 9556 9558 percona-xtrabackup = percona-xtrabackup_8_0; ··· 10848 10850 stenc = callPackage ../tools/backup/stenc { }; 10849 10851 10850 10852 stm32loader = with python3Packages; toPythonApplication stm32loader; 10853 + 10854 + storcli = callPackage ../tools/misc/storcli { }; 10851 10855 10852 10856 stremio = qt5.callPackage ../applications/video/stremio { }; 10853 10857