haskell/lib: Introduce markUnbroken helper

As discussed in #59409, this is quite useful now since we mark things as
broken so liberally.
This commit is contained in:
Ben Gamari 2019-04-25 22:39:07 -04:00
parent acb1134074
commit cdf1a522ca

View File

@ -163,6 +163,7 @@ rec {
markBroken = drv: overrideCabal drv (drv: { broken = true; hydraPlatforms = []; }); markBroken = drv: overrideCabal drv (drv: { broken = true; hydraPlatforms = []; });
unmarkBroken = drv: overrideCabal drv (drv: { broken = false; }); unmarkBroken = drv: overrideCabal drv (drv: { broken = false; });
markBrokenVersion = version: drv: assert drv.version == version; markBroken drv; markBrokenVersion = version: drv: assert drv.version == version; markBroken drv;
markUnbroken = drv: overrideCabal drv (drv: { broken = false; });
enableLibraryProfiling = drv: overrideCabal drv (drv: { enableLibraryProfiling = true; }); enableLibraryProfiling = drv: overrideCabal drv (drv: { enableLibraryProfiling = true; });
disableLibraryProfiling = drv: overrideCabal drv (drv: { enableLibraryProfiling = false; }); disableLibraryProfiling = drv: overrideCabal drv (drv: { enableLibraryProfiling = false; });