perccli: init at 7.1910.00

This commit is contained in:
Nicolas Benes 2022-08-03 13:10:48 +02:00
parent 4320bb9229
commit 8290d2f8b8
2 changed files with 39 additions and 0 deletions

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

@ -9531,6 +9531,8 @@ with pkgs;
pell = callPackage ../applications/misc/pell { };
perccli = callPackage ../tools/misc/perccli { };
perceptualdiff = callPackage ../tools/graphics/perceptualdiff { };
percona-xtrabackup = percona-xtrabackup_8_0;