From 175c4f040f985c7fce8c28bf48b2b3993a967f1d Mon Sep 17 00:00:00 2001 From: Michael Peyton Jones Date: Tue, 11 Sep 2018 16:24:26 +0100 Subject: [PATCH] haskell generic builder: enable benchmarks if doBenchmark is true --- pkgs/development/haskell-modules/generic-builder.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 1b33954662db..054bd46f9dc2 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -152,6 +152,7 @@ let (optionalString (versionOlder "8.4" ghc.version) (enableFeature enableStaticLibraries "static")) (optionalString (isGhcjs || versionOlder "7.4" ghc.version) (enableFeature enableSharedExecutables "executable-dynamic")) (optionalString (isGhcjs || versionOlder "7" ghc.version) (enableFeature doCheck "tests")) + (enableFeature doBenchmark "benchmarks") "--enable-library-vanilla" # TODO: Should this be configurable? "--enable-library-for-ghci" # TODO: Should this be configurable? ] ++ optionals (enableDeadCodeElimination && (stdenv.lib.versionOlder "8.0.1" ghc.version)) [