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:
commit
75c33f5ea2
|
@ -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" ];
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue