tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
cudaPackages.cudnn: migrate to `hash` and SRI hashes
Samuel Ainsworth
3 years ago
8382e78f
36342ac7
+3
-6
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
science
math
cudnn
extension.nix
generic.nix
+1
-1
pkgs/development/libraries/science/math/cudnn/extension.nix
···
37
rec {
38
fileVersion = "10.0";
39
fullVersion = "7.4.2.24";
40
-
sha256 = "18ys0apiz9afid2s6lvy9qbyi8g66aimb2a7ikl1f3dm09mciprf";
41
url = "${urlPrefix}/v${majorMinorPatch fullVersion}/cudnn-10.0-linux-x64-v${fullVersion}.tgz";
42
supportedCudaVersions = [ "10.0" ];
43
}
···
37
rec {
38
fileVersion = "10.0";
39
fullVersion = "7.4.2.24";
40
+
hash = "sha256-Lt/IagK1DRfojEeJVaMy5qHoF05+U6NFi06lH68C2qM=";
41
url = "${urlPrefix}/v${majorMinorPatch fullVersion}/cudnn-10.0-linux-x64-v${fullVersion}.tgz";
42
supportedCudaVersions = [ "10.0" ];
43
}
+2
-5
pkgs/development/libraries/science/math/cudnn/generic.nix
···
21
22
{ fullVersion
23
, url
24
-
, hash ? ""
25
-
, sha256 ? ""
26
, supportedCudaVersions ? [ ]
27
}:
28
-
29
-
assert (hash != "") || (sha256 != "");
30
31
assert useCudatoolkitRunfile || (libcublas != null);
32
···
46
inherit version;
47
48
src = fetchurl {
49
-
inherit url hash sha256;
50
};
51
52
# Check and normalize Runpath against DT_NEEDED using autoPatchelf.
···
21
22
{ fullVersion
23
, url
24
+
, hash
0
25
, supportedCudaVersions ? [ ]
26
}:
0
0
27
28
assert useCudatoolkitRunfile || (libcublas != null);
29
···
43
inherit version;
44
45
src = fetchurl {
46
+
inherit url hash;
47
};
48
49
# Check and normalize Runpath against DT_NEEDED using autoPatchelf.