diff options
author | Peter Simons <simons@cryp.to> | 2017-09-19 15:55:16 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2017-09-19 15:55:16 +0200 |
commit | a8b69958cfa7dd35c4f123ccd8586f5f09214330 (patch) | |
tree | 0d17eb10dbda90afb76bcef86375f0f28796afc8 | |
parent | eab41cb7be634a3075d7ba21f346a356f5c017a6 (diff) |
haskell.lib: add doBenchmark helper function
-rw-r--r-- | pkgs/development/haskell-modules/lib.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/lib.nix b/pkgs/development/haskell-modules/lib.nix index fcb4258deb149..7012fb0c1a370 100644 --- a/pkgs/development/haskell-modules/lib.nix +++ b/pkgs/development/haskell-modules/lib.nix @@ -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 = []; }); |