3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #188448 from samuela/samuela/cudnn-hash

cudaPackages.cudnn: migrate to `hash` and SRI hashes
This commit is contained in:
Samuel Ainsworth 2022-08-28 06:44:43 -07:00 committed by GitHub
commit 75c33f5ea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View file

@ -37,7 +37,7 @@ final: prev: let
rec {
fileVersion = "10.0";
fullVersion = "7.4.2.24";
sha256 = "18ys0apiz9afid2s6lvy9qbyi8g66aimb2a7ikl1f3dm09mciprf";
hash = "sha256-Lt/IagK1DRfojEeJVaMy5qHoF05+U6NFi06lH68C2qM=";
url = "${urlPrefix}/v${majorMinorPatch fullVersion}/cudnn-10.0-linux-x64-v${fullVersion}.tgz";
supportedCudaVersions = [ "10.0" ];
}

View file

@ -21,13 +21,10 @@
{ fullVersion
, url
, hash ? ""
, sha256 ? ""
, hash
, supportedCudaVersions ? [ ]
}:
assert (hash != "") || (sha256 != "");
assert useCudatoolkitRunfile || (libcublas != null);
let
@ -46,7 +43,7 @@ stdenv.mkDerivation {
inherit version;
src = fetchurl {
inherit url hash sha256;
inherit url hash;
};
# Check and normalize Runpath against DT_NEEDED using autoPatchelf.