git.iko.soy/typeable/cabal2nix
on master help sign in
Disable doCheck and jailbreak in all of LTS Haskell.
commit9855013d80c85c1b341106e91e800e7868c53e75 authorPeter Simons <simons@cryp.to> dateTue 15 Sep 2015, 17:42 (11 years ago) parent80c41b6
2 files changed+7−4
distribution-nixpkgs/src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs+1−4 hackage2nix/src/Main.hs+6
distribution-nixpkgs/src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs+1−4
@@ -42,7 +42,7 @@ hooks =
4242 , ("eventstore", over (metaSection . platforms) (Set.filter (\(Platform arch _) -> arch == X86_64)))
4343 , ("git-annex", gitAnnexHook)
4444 , ("haddock", set phaseOverrides "preCheck = \"unset GHC_PACKAGE_PATH\";")
45− , ("hspec-expectations", set doCheck False)
45+ , ("hspec-discover", set runHaddock False)
4646 , ("HFuse", set phaseOverrides hfusePreConfigure)
4747 , ("gf", set phaseOverrides gfPhaseOverrides . set doCheck False)
4848 , ("github-backup", set (executableDepends . tool . contains (pkg "git")) True)
@@ -55,15 +55,12 @@ hooks =
5555 . set (testDepends . system . contains (pkg "z3")) True)
5656 , ("liquidhaskell", set (testDepends . system . contains (pkg "z3")) True)
5757 , ("mysql", set (libraryDepends . system . contains (pkg "mysql")) True)
58− , ("nanospec", set doCheck False)
5958 , ("nats", set runHaddock False)
6059 , ("readline", over (libraryDepends . system) (Set.union (pkgs ["readline", "ncurses"])))
6160 , ("rocksdb-haskell", set (metaSection . platforms) (Set.singleton (Platform X86_64 Linux)))
6261 , ("stack", set phaseOverrides stackPostInstall)
63− , ("stringbuilder", set doCheck False)
6462 , ("target", set (testDepends . system . contains (pkg "z3")) True)
6563 , ("terminfo", set (libraryDepends . system . contains (pkg "ncurses")) True)
66− , ("text", set doCheck False)
6764 , ("thyme", set (libraryDepends . tool . contains (bind "self.cpphs")) True) -- required on Darwin
6865 , ("xmonad", set phaseOverrides xmonadPostInstall)
6966 , ("wxc", wxcHook)
hackage2nix/src/Main.hs+6
@@ -200,6 +200,12 @@ main = do
200200 hPutStrLn h ""
201201 hPutStrLn h ("self: super: assert super.ghc.name == " ++ show (display compiler) ++ "; {")
202202 hPutStrLn h ""
203+ hPutStrLn h " # Disable all tests suites and jailbreaks in this package set."
204+ hPutStrLn h " mkDerivation = args: super.mkDerivation (args // {"
205+ hPutStrLn h " doCheck = false;"
206+ hPutStrLn h " jailbreak = false;"
207+ hPutStrLn h " });"
208+ hPutStrLn h ""
203209 hPutStrLn h " # core libraries provided by the compiler"
204210 forM_ (Map.keys corePackages') $ \n -> do
205211 unless (n == "ghc") (hPutStrLn h (" " ++ n ++ " = null;"))