haskell.lib: make doDistribute respect badPlatforms

release-lib.nix's packagePlatforms will (understandably) take
hydraPlatforms at face value, so we need to make sure that we don't slip
anything actually unsupported in there.
main
sternenseemann 2 years ago
parent 345c32b3c3
commit 7503f25359
  1. 3
      pkgs/development/haskell-modules/lib/compose.nix

@ -123,7 +123,8 @@ rec {
*/
doDistribute = overrideCabal (drv: {
# lib.platforms.all is the default value for platforms (since GHC can cross-compile)
hydraPlatforms = drv.platforms or lib.platforms.all;
hydraPlatforms = lib.subtractLists (drv.badPlatforms or [])
(drv.platforms or lib.platforms.all);
});
/* dontDistribute disables the distribution of binaries for the package
via hydra.

Loading…
Cancel
Save