lol
at 16.09-beta 39 lines 1.1 kB view raw
1{ stdenv, fetchurl, utillinux }: 2 3stdenv.mkDerivation rec { 4 name = "fuse-2.9.5"; 5 6 #builder = ./builder.sh; 7 8 src = fetchurl { 9 url = "https://github.com/libfuse/libfuse/releases/download/fuse_2_9_5/${name}.tar.gz"; 10 sha256 = "1dfvbi1p57svbv2sfnbqwpnsk219spvjnlapf35azhgzqlf3g7sp"; 11 }; 12 13 buildInputs = [ utillinux ]; 14 15 inherit utillinux; 16 17 preConfigure = 18 '' 19 export MOUNT_FUSE_PATH=$out/sbin 20 export INIT_D_PATH=$TMPDIR/etc/init.d 21 export UDEV_RULES_PATH=$out/etc/udev/rules.d 22 23 # Ensure that FUSE calls the setuid wrapper, not 24 # $out/bin/fusermount. It falls back to calling fusermount in 25 # $PATH, so it should also work on non-NixOS systems. 26 export NIX_CFLAGS_COMPILE="-DFUSERMOUNT_DIR=\"/var/setuid-wrappers\"" 27 28 sed -e 's@/bin/@${utillinux}/bin/@g' -i lib/mount_util.c 29 ''; 30 31 enableParallelBuilding = true; 32 33 meta = with stdenv.lib; { 34 homepage = http://fuse.sourceforge.net/; 35 description = "Kernel module and library that allows filesystems to be implemented in user space"; 36 platforms = platforms.linux; 37 maintainers = [ maintainers.mornfall ]; 38 }; 39}