3
0
Fork 0
forked from mirrors/nixpkgs

haskell.lib.markBroken: explicitly disable Hydra builds

Recent changes [1] allow Hydra to build packages that are marked broken. To
avoid plenty of evaluation errors on Hydra, explicitly disable Hydra builds of
broken packages.

[1] https://github.com/NixOS/nixpkgs/issues/7541#issuecomment-357541243
This commit is contained in:
Peter Simons 2018-01-19 15:50:20 +01:00
parent 8bf8581b9a
commit a8d9a94574

View file

@ -156,7 +156,7 @@ rec {
enableCabalFlag = drv: x: appendConfigureFlag (removeConfigureFlag drv "-f-${x}") "-f${x}";
disableCabalFlag = drv: x: appendConfigureFlag (removeConfigureFlag drv "-f${x}") "-f-${x}";
markBroken = drv: overrideCabal drv (drv: { broken = true; });
markBroken = drv: overrideCabal drv (drv: { broken = true; hydraPlatforms = []; });
markBrokenVersion = version: drv: assert drv.version == version; markBroken drv;
enableLibraryProfiling = drv: overrideCabal drv (drv: { enableLibraryProfiling = true; });