git.iko.soy/typeable/cabal2nix
on master help sign in
hspec-core: work around unstable test

https://github.com/hspec/hspec/issues/330

commit74d58eebfb53f5f630a40de66ae70368202bdcbb authorPeter Simons <simons@cryp.to> dateSun 1 Oct 2017, 15:40 (9 years ago) parent8d48aca
1 file changed+4
src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs+4
src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs+4
@@ -71,6 +71,7 @@ hooks =
7171 , ("haddock", haddockHook) -- https://github.com/haskell/haddock/issues/511
7272 , ("hakyll", set (testDepends . tool . contains (pkg "utillinux")) True) -- test suite depends on "rev"
7373 , ("haskell-src-exts", set doCheck False)
74+ , ("hspec-core >= 2.4.4", hspecCoreOverrides)
7475 , ("hfsevents", hfseventsOverrides)
7576 , ("HFuse", set phaseOverrides hfusePreConfigure)
7677 , ("hlibgit2 >= 0.18.0.14", set (testDepends . tool . contains (pkg "git")) True)
@@ -298,3 +299,6 @@ opencvOverrides = set phaseOverrides "hardeningDisable = [ \"bindnow\" ];"
298299 . over (libraryDepends . pkgconfig) (replace (pkg "opencv") (pkg "opencv3"))
299300 . set (configureFlags . contains "--with-gcc=${stdenv.cc}/bin/c++") True
300301 . set (configureFlags . contains "--with-ld=${stdenv.cc}/bin/c++") True
302+
303+hspecCoreOverrides :: Derivation -> Derivation -- https://github.com/hspec/hspec/issues/330
304+hspecCoreOverrides = set phaseOverrides "testTarget = \"--test-option=--skip --test-option='Test.Hspec.Core.Runner.hspecResult runs specs in parallel'\";"