cudaPackages: manifest-builder: fake url/sha256 instead of exceptions

This commit is contained in:
Someone Serge 2023-12-25 23:25:52 +00:00
parent 576c4f4af5
commit cf214375c9
No known key found for this signature in database
GPG key ID: 7B0E3B1390D61DA4

View file

@ -117,10 +117,14 @@ backendStdenv.mkDerivation (
brokenConditions = {};
src = fetchurl {
url = "https://developer.download.nvidia.com/compute/${redistName}/redist/${
redistribRelease.${redistArch}.relative_path
}";
inherit (redistribRelease.${redistArch}) sha256;
url =
if (builtins.hasAttr redistArch redistribRelease) then
"https://developer.download.nvidia.com/compute/${redistName}/redist/${
redistribRelease.${redistArch}.relative_path
}"
else
"cannot-construct-an-url-for-the-${redistArch}-platform";
sha256 = redistribRelease.${redistArch}.sha256 or lib.fakeHash;
};
postPatch = ''