Skip to content

Commit 79b7377

Browse files
Merge pull request #621 from NixOS/drop-haddock-overrides
FromCabal.PostProcess: drop haddockHook
2 parents d129ba9 + a77ca3c commit 79b7377

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

cabal2nix/src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs

-7
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ hooks =
116116
, ("graphviz", set (testDepends . system . contains (pkg "graphviz")) True)
117117
, ("gtk3", gtk3Hook)
118118
, ("gtkglext", gtkglextHook)
119-
, ("haddock", haddockHook) -- https://github.com/haskell/haddock/issues/511
120119
, ("hakyll", set (testDepends . tool . contains (pkg "util-linux")) True) -- test suite depends on "rev"
121120
, ("haskell-src-exts", set doCheck False)
122121
, ("hfsevents", hfseventsOverrides)
@@ -217,12 +216,6 @@ gtk3Hook :: Derivation -> Derivation -- https://github.com/NixOS/cabal2nix/is
217216
gtk3Hook = set (libraryDepends . pkgconfig . contains (pkg "gtk3")) True
218217
. over (libraryDepends . pkgconfig) (Set.filter (\b -> view localName b /= "gtk3"))
219218

220-
haddockHook :: Derivation -> Derivation
221-
haddockHook = set doCheck False
222-
. set phaseOverrides "preCheck = \"unset GHC_PACKAGE_PATH\";"
223-
. over (dependencies . haskell) (Set.filter (\b -> view localName b /= "haddock-test"))
224-
. set (metaSection . broken) False
225-
226219
hfusePreConfigure :: String
227220
hfusePreConfigure = unlines
228221
[ "preConfigure = ''"

0 commit comments

Comments
 (0)