mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Merge pull request #838 from errge/hfuse
Fix HFuse compilation with GHC 7.6.3
This commit is contained in:
commit
1b36041aba
@ -8,6 +8,11 @@ cabal.mkDerivation (self: {
|
||||
|
||||
preConfigure = ''
|
||||
sed -i -e "s@ Extra-Lib-Dirs: /usr/local/lib@ Extra-Lib-Dirs: ${fuse}/lib@" HFuse.cabal
|
||||
sed -i -e "s/LANGUAGE FlexibleContexts/LANGUAGE FlexibleContexts, RankNTypes/" System/Fuse.hsc
|
||||
sed -i -e "s/E(Exception/E(catch, Exception, IOException/" System/Fuse.hsc
|
||||
sed -i -e "s/IO(catch,/IO(/" System/Fuse.hsc
|
||||
sed -i -e "s/IO.catch/ E.catch/" System/Fuse.hsc
|
||||
sed -i -e "s/const exitFailure/\\\\(_ :: IOException) -> exitFailure/" System/Fuse.hsc
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user