cudaPackages.cudnn: fix source fetching

Currently, cudaPackages_10_0.cudnn.src does not build, because passing
`hash = null;` to fetchurl causes it to try to fetch in the sandbox,
where it does not have internet access.
This commit is contained in:
Daniel Fullmer
2022-05-13 09:45:08 -07:00
parent b376c2d2af
commit 75efb82674
@@ -21,12 +21,12 @@
{ fullVersion
, url
, hash ? null
, sha256 ? null
, hash ? ""
, sha256 ? ""
, supportedCudaVersions ? [ ]
}:
assert (hash != null) || (sha256 != null);
assert (hash != "") || (sha256 != "");
assert useCudatoolkitRunfile || (libcublas != null);