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