Skip to content

Commit

Permalink
Enable benchmarks by default when calculating plan (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Feb 4, 2020
1 parent 122bd81 commit efb9a07
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/call-cabal-project-to-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
, nix-tools ? defaults.nix-tools
, hpack ? defaults.hpack
, cabal-install ? defaults.cabal-install
, configureArgs ? "" # Extra arguments to pass to `cabal new-configure` (--enable-tests is included by default, include `--disable-tests` to override that)
, configureArgs ? "" # Extra arguments to pass to `cabal v2-configure`.
# `--enable-tests --enable-benchmarks` are included by default.
# If the tests and benchmarks are not needed and they
# causes the wrong plan to be choosen, then we can use
# `configureArgs = "--disable-tests --disable-benchmarks";`
, ...
}@args:
# cabal-install versions before 2.4 will generate insufficient plan information.
Expand Down Expand Up @@ -201,10 +205,11 @@ let
index-state =
builtins.trace ("Using index-state: ${index-state-found}" + (if name == null then "" else " for " + name))
index-state-found;
sha256 = index-sha256-found; }} cabal new-configure \
sha256 = index-sha256-found; }} cabal v2-configure \
--with-ghc=${ghc.targetPrefix}ghc \
--with-ghc-pkg=${ghc.targetPrefix}ghc-pkg \
--enable-tests \
--enable-benchmarks \
${configureArgs}
mkdir -p $out
Expand Down

0 comments on commit efb9a07

Please sign in to comment.