cudaPackages.cudnn: migrate to `hash` and SRI hashes

+3 -6
+1 -1
pkgs/development/libraries/science/math/cudnn/extension.nix
··· 37 37 rec { 38 38 fileVersion = "10.0"; 39 39 fullVersion = "7.4.2.24"; 40 - sha256 = "18ys0apiz9afid2s6lvy9qbyi8g66aimb2a7ikl1f3dm09mciprf"; 40 + hash = "sha256-Lt/IagK1DRfojEeJVaMy5qHoF05+U6NFi06lH68C2qM="; 41 41 url = "${urlPrefix}/v${majorMinorPatch fullVersion}/cudnn-10.0-linux-x64-v${fullVersion}.tgz"; 42 42 supportedCudaVersions = [ "10.0" ]; 43 43 }
+2 -5
pkgs/development/libraries/science/math/cudnn/generic.nix
··· 21 21 22 22 { fullVersion 23 23 , url 24 - , hash ? "" 25 - , sha256 ? "" 24 + , hash 26 25 , supportedCudaVersions ? [ ] 27 26 }: 28 - 29 - assert (hash != "") || (sha256 != ""); 30 27 31 28 assert useCudatoolkitRunfile || (libcublas != null); 32 29 ··· 46 43 inherit version; 47 44 48 45 src = fetchurl { 49 - inherit url hash sha256; 46 + inherit url hash; 50 47 }; 51 48 52 49 # Check and normalize Runpath against DT_NEEDED using autoPatchelf.