git.iko.soy/typeable/cabal2nix
on master help sign in
Add various post-process hooks.

- sharc-timbre builds run >8 hours on my machine and should not ever be attempted on Hydra. Disabling the Hydra builds in itself is not enough, because it will be built to satisfy dependencies, like csound-catalog. - The ssh test suite runs for 12 hours straight without doing anything that resembles progress. Also alphabetized the hooks.

commit75f96c67d56e2950df32648caaa9eabf9d3e5420 authorPeter Simons <simons@cryp.to> dateSun 29 May 2016, 10:46 (10 years ago) parent259cdff
1 file changed+13−11
distribution-nixpkgs/src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs+13−11
distribution-nixpkgs/src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs+13−11
@@ -34,14 +34,14 @@ fixGtkBuilds drv = drv & dependencies . pkgconfig %~ Set.filter (not . collidesW
3434
3535hooks :: [(Dependency, Derivation -> Derivation)]
3636hooks =
37− [ ("alex", set (executableDepends . tool . contains (bind "self.happy")) True)
38− , ("alex < 3.1.5", set (testDepends . tool . contains (pkg "perl")) True)
39− , ("Agda < 2.5", set (executableDepends . tool . contains (pkg "emacs")) True . set phaseOverrides agdaPostInstall)
37+ [ ("Agda < 2.5", set (executableDepends . tool . contains (pkg "emacs")) True . set phaseOverrides agdaPostInstall)
4038 , ("Agda >= 2.5", set (executableDepends . tool . contains (pkg "emacs")) True . set phaseOverrides agda25PostInstall)
39+ , ("alex < 3.1.5", set (testDepends . tool . contains (pkg "perl")) True)
40+ , ("alex", set (executableDepends . tool . contains (bind "self.happy")) True)
4141 , ("bindings-GLFW", over (libraryDepends . system) (Set.union (Set.fromList [bind "pkgs.xorg.libXext", bind "pkgs.xorg.libXfixes"])))
4242 , ("bustle", set (libraryDepends . pkgconfig . contains "system-glib = pkgs.glib") True)
43− , ("cabal-install", set phaseOverrides cabalInstallPostInstall)
4443 , ("cabal-helper", set doCheck False) -- https://github.com/DanielG/cabal-helper/issues/17
44+ , ("cabal-install", set phaseOverrides cabalInstallPostInstall)
4545 , ("darcs", set phaseOverrides darcsInstallPostInstall . set doCheck False)
4646 , ("dbus", set doCheck False) -- don't execute tests that try to access the network
4747 , ("dns", set testTarget "spec") -- don't execute tests that try to access the network
@@ -55,29 +55,29 @@ hooks =
5555 , ("goatee-gtk", over (metaSection . platforms) (Set.filter (\(Platform _ os) -> os /= OtherOS "darwin")))
5656 , ("gtk3", gtk3Hook)
5757 , ("haddock", haddockHook) -- https://github.com/haskell/haddock/issues/511
58− , ("haskell-src-exts == 1.17.1", set doCheck False) -- test suite fails with ghc 8.0.1
5958 , ("hakyll", set (testDepends . tool . contains (pkg "utillinux")) True) -- test suite depends on "rev"
59+ , ("haskell-src-exts == 1.17.1", set doCheck False) -- test suite fails with ghc 8.0.1
6060 , ("hfsevents", over (metaSection . platforms) (Set.filter (\(Platform _ os) -> os == OtherOS "darwin")))
6161 , ("HFuse", set phaseOverrides hfusePreConfigure)
6262 , ("hlibgit2 >= 0.18.0.14", set (testDepends . tool . contains (pkg "git")) True)
6363 , ("hmatrix", set phaseOverrides "preConfigure = \"sed -i hmatrix.cabal -e 's@/usr/@/dont/hardcode/paths/@'\";")
6464 , ("holy-project", set doCheck False) -- attempts to access the network
65− , ("hslua", over (libraryDepends . each) (replace (pkg "lua") (pkg "lua5_1")))
6665 , ("hsignal < 0.2.7.4", set phaseOverrides "prePatch = \"rm -v Setup.lhs\";") -- https://github.com/amcphail/hsignal/issues/1
66+ , ("hslua", over (libraryDepends . each) (replace (pkg "lua") (pkg "lua5_1")))
6767 , ("http-client", set doCheck False) -- attempts to access the network
68− , ("http-client-tls >= 0.2.2", set doCheck False) -- attempts to access the network
6968 , ("http-client-openssl >= 0.2.0.1", set doCheck False) -- attempts to access the network
69+ , ("http-client-tls >= 0.2.2", set doCheck False) -- attempts to access the network
7070 , ("http-conduit", set doCheck False) -- attempts to access the network
7171 , ("imagemagick", set (libraryDepends . pkgconfig . contains (pkg "imagemagick")) True) -- https://github.com/NixOS/cabal2nix/issues/136
7272 , ("include-file <= 0.1.0.2", set (libraryDepends . haskell . contains (bind "self.random")) True) -- https://github.com/Daniel-Diaz/include-file/issues/1
73− , ("jsaddle", set (dependencies . haskell . contains (bind "self.ghcjs-base")) False)
7473 , ("js-jquery", set doCheck False) -- attempts to access the network
74+ , ("jsaddle", set (dependencies . haskell . contains (bind "self.ghcjs-base")) False)
7575 , ("libconfig", over (libraryDepends . system) (replace "config = null" (pkg "libconfig")))
7676 , ("liquid-fixpoint", set (executableDepends . system . contains (pkg "ocaml")) True . set (testDepends . system . contains (pkg "z3")) True)
7777 , ("liquidhaskell", set (testDepends . system . contains (pkg "z3")) True)
7878 , ("MFlow < 4.6", set (libraryDepends . tool . contains (bind "self.cpphs")) True)
79− , ("mysql", set (libraryDepends . system . contains (pkg "mysql")) True)
8079 , ("mwc-random", set doCheck False)
80+ , ("mysql", set (libraryDepends . system . contains (pkg "mysql")) True)
8181 , ("network-attoparsec", set doCheck False) -- test suite requires network access
8282 , ("pandoc >= 1.16.0.2", set doCheck False) -- https://github.com/jgm/pandoc/issues/2709 and https://github.com/fpco/stackage/issues/1332
8383 , ("pandoc-citeproc", set doCheck False) -- https://github.com/jgm/pandoc-citeproc/issues/172
@@ -85,17 +85,19 @@ hooks =
8585 , ("rocksdb-haskell", set (metaSection . platforms) (Set.singleton (Platform X86_64 Linux)))
8686 , ("sdr", over (metaSection . platforms) (Set.filter (\(Platform arch _) -> arch == X86_64))) -- https://github.com/adamwalker/sdr/issues/2
8787 , ("shake-language-c", set doCheck False) -- https://github.com/samplecount/shake-language-c/issues/26
88+ , ("sharc-timbre", set (metaSection . broken) True) -- The build takes insanely long, i.e. >8 hours.
89+ , ("ssh", set doCheck False) -- test suite runs forever, probably can't deal with our lack of network access
8890 , ("stack", set phaseOverrides stackOverrides . set doCheck False)
8991 , ("stripe-http-streams", set doCheck False . set (metaSection . broken) False)
90− , ("text", set doCheck False) -- break infinite recursion
9192 , ("target", set (testDepends . system . contains (pkg "z3")) True)
9293 , ("terminfo", set (libraryDepends . system . contains (pkg "ncurses")) True)
94+ , ("text", set doCheck False) -- break infinite recursion
9395 , ("thyme", set (libraryDepends . tool . contains (bind "self.cpphs")) True) -- required on Darwin
9496 , ("twilio", set doCheck False) -- attempts to access the network
9597 , ("tz", set phaseOverrides "preConfigure = \"export TZDIR=${pkgs.tzdata}/share/zoneinfo\";")
9698 , ("websockets", set doCheck False) -- https://github.com/jaspervdj/websockets/issues/104
97− , ("wxcore", set (libraryDepends . pkgconfig . contains (pkg "wxGTK")) True)
9899 , ("wxc", wxcHook)
100+ , ("wxcore", set (libraryDepends . pkgconfig . contains (pkg "wxGTK")) True)
99101 , ("X11", over (libraryDepends . system) (Set.union (Set.fromList $ map bind ["pkgs.xorg.libXinerama","pkgs.xorg.libXext","pkgs.xorg.libXrender"])))
100102 , ("xmonad", set phaseOverrides xmonadPostInstall)
101103 , ("zip-archive", over (testDepends . tool) (replace (bind "self.zip") (pkg "zip")))