at 15.09-beta 18 lines 709 B view raw
1source $stdenv/setup 2 3export MOUNT_FUSE_PATH=$out/sbin 4export INIT_D_PATH=$out/etc/init.d 5export 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. 14export NIX_CFLAGS_COMPILE="-DFUSERMOUNT_DIR=\"/no-such-path\"" 15 16export preBuild="sed -e 's@/bin/@$utillinux/bin/@g' -i lib/mount_util.c"; 17 18genericBuild