haskell.lib: add doDistribute function as a dual to dontDistribute

This commit is contained in:
Peter Simons 2015-09-15 15:02:39 +02:00
parent 974f2122b1
commit 7802f5c793

View File

@ -17,6 +17,7 @@ rec {
doCheck = drv: overrideCabal drv (drv: { doCheck = true; });
dontCheck = drv: overrideCabal drv (drv: { doCheck = false; });
doDistribute = drv: overrideCabal drv (drv: { hydraPlatforms = drv.platforms or ["i686-linux" "x86_64-linux" "x86_64-darwin"]; });
dontDistribute = drv: overrideCabal drv (drv: { hydraPlatforms = []; });
appendConfigureFlag = drv: x: overrideCabal drv (drv: { configureFlags = (drv.configureFlags or []) ++ [x]; });