Merge pull request #177896 from panicgh/raidctrl-tools

perccli, storcli: init proprietary HW RAID configuration tools
This commit is contained in:
Linus Heckemann 2022-08-05 16:05:02 +02:00 committed by GitHub
commit 11f01baf7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 82 additions and 0 deletions

View file

@ -9879,6 +9879,12 @@
githubId = 1788628; githubId = 1788628;
name = "pandaman"; name = "pandaman";
}; };
panicgh = {
email = "nbenes.gh@xandea.de";
github = "panicgh";
githubId = 79252025;
name = "Nicolas Benes";
};
paperdigits = { paperdigits = {
email = "mica@silentumbrella.com"; email = "mica@silentumbrella.com";
github = "paperdigits"; github = "paperdigits";

View file

@ -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;
};
}

View file

@ -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;
};
}

View file

@ -9551,6 +9551,8 @@ with pkgs;
pell = callPackage ../applications/misc/pell { }; pell = callPackage ../applications/misc/pell { };
perccli = callPackage ../tools/misc/perccli { };
perceptualdiff = callPackage ../tools/graphics/perceptualdiff { }; perceptualdiff = callPackage ../tools/graphics/perceptualdiff { };
percona-xtrabackup = percona-xtrabackup_8_0; percona-xtrabackup = percona-xtrabackup_8_0;
@ -10849,6 +10851,8 @@ with pkgs;
stm32loader = with python3Packages; toPythonApplication stm32loader; stm32loader = with python3Packages; toPythonApplication stm32loader;
storcli = callPackage ../tools/misc/storcli { };
stremio = qt5.callPackage ../applications/video/stremio { }; stremio = qt5.callPackage ../applications/video/stremio { };
sunwait = callPackage ../applications/misc/sunwait { }; sunwait = callPackage ../applications/misc/sunwait { };