From 1dba3fe14af4c67b80d811962db9973e22fa635c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 24 Feb 2013 21:15:43 +0100 Subject: [PATCH] pkgs/build-support/cabal: enable 'doCheck=true' by default --- pkgs/build-support/cabal/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/build-support/cabal/default.nix b/pkgs/build-support/cabal/default.nix index 26100c98ad7..038b05df8a4 100644 --- a/pkgs/build-support/cabal/default.nix +++ b/pkgs/build-support/cabal/default.nix @@ -90,6 +90,10 @@ # pass the '--enable-split-objs' flag to cabal in the configure stage enableSplitObjs = true; + # pass the '--enable-tests' flag to cabal in the configure stage + # and run any regression test suites the package might have + doCheck = true; + extraConfigureFlags = [ (stdenv.lib.enableFeature enableLibraryProfiling "library-profiling") (stdenv.lib.enableFeature self.enableSplitObjs "split-objs")