forked from mirrors/nixpkgs
Merge pull request #177896 from panicgh/raidctrl-tools
perccli, storcli: init proprietary HW RAID configuration tools
This commit is contained in:
commit
11f01baf7c
|
@ -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";
|
||||
|
|
37
pkgs/tools/misc/perccli/default.nix
Normal file
37
pkgs/tools/misc/perccli/default.nix
Normal 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;
|
||||
};
|
||||
}
|
35
pkgs/tools/misc/storcli/default.nix
Normal file
35
pkgs/tools/misc/storcli/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue