Unverified Commit 79c056b0 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #256410 from panicgh/perccli

perccli: 7.2110.00 -> 7.2313.00
parents 444fefe1 4c658ae8
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -6,16 +6,18 @@

stdenvNoCC.mkDerivation rec {
  pname = "perccli";
  version = "7.2110.00";

  # 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/FOLDER09074160M/1/PERCCLI_7.211.0_Linux.tar.gz";
    sha256 = "sha256-8gk+0CrgeisfN2hNpaO1oFey57y7KuNy2i6PWTikDls=";
    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.
    # Sending no user-agent at all seems to be fine though.
    curlOptsList = [ "--user-agent" "" ];
    # 403 otherwise
    curlOptsList = [ "--user-agent" "Mozilla/5.0" ];
  };

  nativeBuildInputs = [ rpmextract ];
@@ -43,6 +45,10 @@ stdenvNoCC.mkDerivation rec {

  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 ];