cudaPackages: unsupported platform should not set broken to true

This commit is contained in:
Connor Baker
2024-01-10 01:15:01 +00:00
parent 9bebd9e72d
commit 5e472d9468
@@ -127,13 +127,10 @@ backendStdenv.mkDerivation (
# Useful for introspecting why something went wrong.
# Maps descriptions of why the derivation would be marked broken to
# booleans indicating whether that description is true.
# NOTE: This should not include reasons relating to the architecture, as those are handled by
# the `badPlatforms` attribute.
# brokenConditions :: AttrSet Bool
brokenConditions = {
# Using an unrecognized redistArch
"Unrecognized NixOS platform ${hostPlatform.system}" = redistArch == "unsupported";
# Trying to build for a platform that doesn't have a redistributable
"Unsupported NixOS platform (or configuration) ${hostPlatform.system}" = finalAttrs.src == null;
};
brokenConditions = { };
# src :: Optional Derivation
src = trivial.pipe redistArch [