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