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:
parent
e1f633bdae
commit
ffd11da9d9
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user