mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 00:34:00 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
64 lines
1.6 KiB
Nix
64 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchzip,
|
|
rpmextract,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "perccli";
|
|
|
|
# On a new release, update version, URL, hash, and meta.homepage
|
|
version = "7.2313.00";
|
|
|
|
src = fetchzip {
|
|
# On pkg update: manually adjust the version in the URL because of the different format.
|
|
url = "https://dl.dell.com/FOLDER09770976M/1/PERCCLI_7.2313.0_A14_Linux.tar.gz";
|
|
hash = "sha256-IhclHVkdihRx5CzyO2dlOEhCon+0/HB3Fkue7MWsWnw=";
|
|
|
|
# Dell seems to block "uncommon" user-agents, such as Nixpkgs's custom one.
|
|
# 403 otherwise
|
|
curlOptsList = [
|
|
"--user-agent"
|
|
"Mozilla/5.0"
|
|
];
|
|
};
|
|
|
|
nativeBuildInputs = [ rpmextract ];
|
|
|
|
unpackPhase = ''
|
|
rpmextract $src/perccli-00${version}00.0000-1.noarch.rpm
|
|
'';
|
|
|
|
dontPatch = true;
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase =
|
|
let
|
|
inherit (stdenvNoCC.hostPlatform) system;
|
|
platforms = {
|
|
x86_64-linux = ''
|
|
install -D ./opt/MegaRAID/perccli/perccli64 $out/bin/perccli64
|
|
ln -s perccli64 $out/bin/perccli
|
|
'';
|
|
};
|
|
in
|
|
platforms.${system} or (throw "unsupported system: ${system}");
|
|
|
|
# Not needed because the binary is statically linked
|
|
dontFixup = true;
|
|
|
|
meta = with lib; {
|
|
description = "Perccli Support for PERC RAID controllers";
|
|
|
|
# Must be updated with every release
|
|
homepage = "https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=tdghn";
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; [ panicgh ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|