haskell.lib: add doBenchmark helper function

This commit is contained in:
Peter Simons 2017-09-19 15:55:16 +02:00
parent eab41cb7be
commit a8b69958cf

View file

@ -23,6 +23,9 @@ rec {
doCheck = drv: overrideCabal drv (drv: { doCheck = true; });
dontCheck = drv: overrideCabal drv (drv: { doCheck = false; });
doBenchmark = drv: overrideCabal drv (drv: { doBenchmark = true; });
dontBenchmark = drv: overrideCabal drv (drv: { doBenchmark = false; });
doDistribute = drv: overrideCabal drv (drv: { hydraPlatforms = drv.platforms or ["i686-linux" "x86_64-linux" "x86_64-darwin"]; });
dontDistribute = drv: overrideCabal drv (drv: { hydraPlatforms = []; });