diff --git a/pkgs/top-level/release-lib.nix b/pkgs/top-level/release-lib.nix index e066d191ef2b..45874d33b0f2 100644 --- a/pkgs/top-level/release-lib.nix +++ b/pkgs/top-level/release-lib.nix @@ -146,7 +146,8 @@ rec { packagePlatforms = mapAttrs (name: value: if isDerivation value then value.meta.hydraPlatforms - or (value.meta.platforms or [ "x86_64-linux" ]) + or (lib.subtractLists (value.meta.badPlatforms or []) + (value.meta.platforms or [ "x86_64-linux" ])) else if value.recurseForDerivations or false || value.recurseForRelease or false then packagePlatforms value else