diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index bde4c69930e8..c89e14724550 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9879,6 +9879,12 @@ githubId = 1788628; name = "pandaman"; }; + panicgh = { + email = "nbenes.gh@xandea.de"; + github = "panicgh"; + githubId = 79252025; + name = "Nicolas Benes"; + }; paperdigits = { email = "mica@silentumbrella.com"; github = "paperdigits"; diff --git a/pkgs/tools/misc/perccli/default.nix b/pkgs/tools/misc/perccli/default.nix new file mode 100644 index 000000000000..517fffead533 --- /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; + }; +} diff --git a/pkgs/tools/misc/storcli/default.nix b/pkgs/tools/misc/storcli/default.nix new file mode 100644 index 000000000000..03300f46f8c0 --- /dev/null +++ b/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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 39618a5187cf..50140c0553a9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9551,6 +9551,8 @@ with pkgs; pell = callPackage ../applications/misc/pell { }; + perccli = callPackage ../tools/misc/perccli { }; + perceptualdiff = callPackage ../tools/graphics/perceptualdiff { }; percona-xtrabackup = percona-xtrabackup_8_0; @@ -10849,6 +10851,8 @@ with pkgs; stm32loader = with python3Packages; toPythonApplication stm32loader; + storcli = callPackage ../tools/misc/storcli { }; + stremio = qt5.callPackage ../applications/video/stremio { }; sunwait = callPackage ../applications/misc/sunwait { };