2011-08-08 12:12:04 +00:00
|
|
|
{ cabal, fuse }:
|
|
|
|
|
|
|
|
cabal.mkDerivation (self: {
|
|
|
|
pname = "HFuse";
|
2012-04-23 09:34:01 +00:00
|
|
|
version = "0.2.4.1";
|
|
|
|
sha256 = "12k04dvh92kk2i68bcb70xnk378qxmh46f241k06di5rkcgwyg1k";
|
2011-08-09 23:00:20 +00:00
|
|
|
extraLibraries = [ fuse ];
|
2011-08-10 07:27:23 +00:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i -e "s@ Extra-Lib-Dirs: /usr/local/lib@ Extra-Lib-Dirs: ${fuse}/lib@" HFuse.cabal
|
2013-09-08 20:25:27 +00:00
|
|
|
sed -i -e "s@ Include-Dirs: /usr/include, /usr/local/include, .@ Include-Dirs: ${fuse}/include@" HFuse.cabal
|
2013-08-16 16:18:19 +00:00
|
|
|
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
|
2011-08-10 07:27:23 +00:00
|
|
|
'';
|
2011-08-09 23:00:20 +00:00
|
|
|
meta = {
|
2012-04-23 09:34:01 +00:00
|
|
|
homepage = "https://github.com/toothbrush/hfuse";
|
2011-08-15 11:27:02 +00:00
|
|
|
description = "HFuse is a binding for the Linux FUSE library";
|
2011-08-09 23:00:20 +00:00
|
|
|
license = self.stdenv.lib.licenses.bsd3;
|
|
|
|
platforms = self.ghc.meta.platforms;
|
2013-08-17 09:39:11 +00:00
|
|
|
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
2011-08-09 23:00:20 +00:00
|
|
|
};
|
2011-08-08 12:12:04 +00:00
|
|
|
})
|