···4747 # The redistArch is the name of the architecture for which the redistributable is built.
4848 # It is `"unsupported"` if the redistributable is not supported on the target platform.
4949 redistArch = flags.getRedistArch hostPlatform.system;
5050+5151+ sourceMatchesHost = flags.getNixSystem redistArch == stdenv.hostPlatform.system;
5052in
5153backendStdenv.mkDerivation (
5254 finalAttrs: {
···136138 # badPlatformsConditions :: AttrSet Bool
137139 # Sets `meta.badPlatforms = meta.platforms` if any of the conditions are true.
138140 # Example: Broken on a specific architecture when some condition is met (like targeting Jetson).
139139- badPlatformsConditions = { };
141141+ badPlatformsConditions = {
142142+ "No source" = !sourceMatchesHost;
143143+ };
140144141145 # src :: Optional Derivation
142146 src = trivial.pipe redistArch [