@@ -65,8 +65,8 @@ hooks =
6565 , ("haddock", haddockHook) -- https://github.com/haskell/haddock/issues/511
6666 , ("hakyll", set (testDepends . tool . contains (pkg "utillinux")) True) -- test suite depends on "rev"
6767 , ("haskell-src-exts == 1.17.1", set doCheck False) -- test suite fails with ghc 8.0.1
68− , ("hfsevents", over (metaSection . platforms) (Set.filter (\(Platform _ os) -> os == OSX)))
6968 , ("HFuse", set phaseOverrides hfusePreConfigure)
69+ , ("hfsevents", hfseventsOverrides)
7070 , ("hlibgit2 >= 0.18.0.14", set (testDepends . tool . contains (pkg "git")) True)
7171 , ("hmatrix", set phaseOverrides "preConfigure = \"sed -i hmatrix.cabal -e 's@/usr/@/dont/hardcode/paths/@'\";")
7272 , ("holy-project", set doCheck False) -- attempts to access the network
@@ -264,6 +264,14 @@ giCairoPhaseOverrides = over phaseOverrides (++'\n':txt) . giPhaseOverrides
264264 , "'';"
265265 ]
266266
267+hfseventsOverrides :: Derivation -> Derivation
268+hfseventsOverrides
269+ = set isLibrary True
270+ . over (metaSection . platforms) (Set.filter (\(Platform _ os) -> os == OSX))
271+ . set (libraryDepends . tool . contains (bind "pkgs.darwin.apple_sdk.frameworks.CoreServices")) True
272+ . set (libraryDepends . system . contains (bind "pkgs.darwin.apple_sdk.frameworks.Cocoa")) True
273+ . over (libraryDepends . haskell) (Set.union (Set.fromList (map bind ["self.base", "self.cereal", "self.mtl", "self.text", "self.bytestring"])))
274+
267275{-
268276postProcess' :: Derivation -> Derivation
269277postProcess' deriv@(MkDerivation {..})