···47 # The redistArch is the name of the architecture for which the redistributable is built.
48 # It is `"unsupported"` if the redistributable is not supported on the target platform.
49 redistArch = flags.getRedistArch hostPlatform.system;
0050in
51backendStdenv.mkDerivation (
52 finalAttrs: {
···136 # badPlatformsConditions :: AttrSet Bool
137 # Sets `meta.badPlatforms = meta.platforms` if any of the conditions are true.
138 # Example: Broken on a specific architecture when some condition is met (like targeting Jetson).
139- badPlatformsConditions = { };
00140141 # src :: Optional Derivation
142 src = trivial.pipe redistArch [
···47 # The redistArch is the name of the architecture for which the redistributable is built.
48 # It is `"unsupported"` if the redistributable is not supported on the target platform.
49 redistArch = flags.getRedistArch hostPlatform.system;
50+51+ sourceMatchesHost = flags.getNixSystem redistArch == stdenv.hostPlatform.system;
52in
53backendStdenv.mkDerivation (
54 finalAttrs: {
···138 # badPlatformsConditions :: AttrSet Bool
139 # Sets `meta.badPlatforms = meta.platforms` if any of the conditions are true.
140 # Example: Broken on a specific architecture when some condition is met (like targeting Jetson).
141+ badPlatformsConditions = {
142+ "No source" = !sourceMatchesHost;
143+ };
144145 # src :: Optional Derivation
146 src = trivial.pipe redistArch [