pkgs/build-support/cabal: enable 'doCheck' only on GHC versions 7.x or later

Older GHC's come with a version of Cabal that doesn't even understand the
--{enable,disable}-tests command line arguments.
This commit is contained in:
Peter Simons 2013-03-11 12:25:53 +01:00
parent e1f633bdae
commit ffd11da9d9

View File

@ -92,13 +92,12 @@
# pass the '--enable-tests' flag to cabal in the configure stage
# and run any regression test suites the package might have
doCheck = true;
doCheck = stdenv.lib.versionOlder "7" ghc.ghcVersion;
extraConfigureFlags = [
(stdenv.lib.enableFeature enableLibraryProfiling "library-profiling")
(stdenv.lib.enableFeature self.enableSplitObjs "split-objs")
(stdenv.lib.enableFeature self.doCheck "tests")
];
] ++ stdenv.lib.optional (stdenv.lib.versionOlder "7" ghc.ghcVersion) (stdenv.lib.enableFeature self.doCheck "tests");
# compiles Setup and configures
configurePhase = ''