···1-source $stdenv/setup
2-3-export MOUNT_FUSE_PATH=$out/sbin
4-export INIT_D_PATH=$out/etc/init.d
5-export UDEV_RULES_PATH=$out/etc/udev/rules.d
6-7-# This is ugly. Normally, FUSE executes $out/bin/fusermount to mount
8-# the file system. However, fusermount should be setuid root, but Nix
9-# doesn't support setuid binaries, so fusermount will fail. By
10-# setting FUSERMOUNT_DIR to a non-existant path, FUSE will fall back
11-# to searching for fusermount in $PATH. The user is responsible for
12-# (e.g.) setting up a setuid-wrapper for fusermount and adding it to
13-# $PATH.
14-export NIX_CFLAGS_COMPILE="-DFUSERMOUNT_DIR=\"/no-such-path\""
15-16-export preBuild="sed -e 's@/bin/@$utillinux/bin/@g' -i lib/mount_util.c";
17-18-genericBuild