@@ -30,6 +30,7 @@ postProcess deriv@(MkDerivation {..})
30 | pname == "haskell-src" = deriv { buildTools = "happy":buildTools }
30 | pname == "haskell-src" = deriv { buildTools = "happy":buildTools }
31 | pname == "haskell-src-meta" = deriv { buildDepends = "uniplate":buildDepends }
31 | pname == "haskell-src-meta" = deriv { buildDepends = "uniplate":buildDepends }
32 | pname == "hflags" = deriv { metaSection = metaSection { license = Unknown (Just "Apache-2.0") } }
32 | pname == "hflags" = deriv { metaSection = metaSection { license = Unknown (Just "Apache-2.0") } }
33+ | pname == "HFuse" = deriv { phaseOverrides = hfusePreConfigure }
33 | pname == "highlighting-kate"= highlightingKatePostProcessing deriv
34 | pname == "highlighting-kate"= highlightingKatePostProcessing deriv
34 | pname == "hmatrix" = deriv { extraLibs = "gsl":"liblapack":"blas":extraLibs }
35 | pname == "hmatrix" = deriv { extraLibs = "gsl":"liblapack":"blas":extraLibs }
35 | pname == "hspec" = deriv { doCheck = False }
36 | pname == "hspec" = deriv { doCheck = False }
@@ -161,3 +162,15 @@ ghciPostInstall = unlines
161 , " ln -s \"$out/share/$pname-$version/ghci\" \"$out/share/ghci/$pname\""
162 , " ln -s \"$out/share/$pname-$version/ghci\" \"$out/share/ghci/$pname\""
166+hfusePreConfigure :: String
167+hfusePreConfigure = unlines
168+ [ "preConfigure = ''"
169+ , " sed -i -e \"s@ Extra-Lib-Dirs: /usr/local/lib@ Extra-Lib-Dirs: ${fuse}/lib@\" HFuse.cabal"
170+ , " sed -i -e \"s/LANGUAGE FlexibleContexts/LANGUAGE FlexibleContexts, RankNTypes/\" System/Fuse.hsc"
171+ , " sed -i -e \"s/E(Exception/E(catch, Exception, IOException/\" System/Fuse.hsc"
172+ , " sed -i -e \"s/IO(catch,/IO(/\" System/Fuse.hsc"
173+ , " sed -i -e \"s/IO.catch/ E.catch/\" System/Fuse.hsc"
174+ , " sed -i -e \"s/const exitFailure/\\\\\\\\(_ :: IOException) -> exitFailure/\" System/Fuse.hsc"