2005-11-01 13:11:12 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
export MOUNT_FUSE_PATH=$out/sbin
|
2007-01-06 17:32:29 +01:00
|
|
|
export INIT_D_PATH=$out/etc/init.d
|
|
|
|
export UDEV_RULES_PATH=$out/etc/udev/rules.d
|
2005-11-01 13:11:12 +01:00
|
|
|
|
2007-01-06 18:34:56 +01:00
|
|
|
# This is ugly. Normally, FUSE executes $out/bin/fusermount to mount
|
|
|
|
# the file system. However, fusermount should be setuid root, but Nix
|
|
|
|
# doesn't support setuid binaries, so fusermount will fail. By
|
|
|
|
# setting FUSERMOUNT_DIR to a non-existant path, FUSE will fall back
|
|
|
|
# to searching for fusermount in $PATH. The user is responsible for
|
|
|
|
# (e.g.) setting up a setuid-wrapper for fusermount and adding it to
|
|
|
|
# $PATH.
|
|
|
|
export NIX_CFLAGS_COMPILE="-DFUSERMOUNT_DIR=\"/no-such-path\""
|
|
|
|
|
2007-12-25 13:29:02 +01:00
|
|
|
export preBuild="sed -e 's@/bin/@$utillinux/bin/@g' -i lib/mount_util.c";
|
|
|
|
|
2007-01-06 17:32:29 +01:00
|
|
|
genericBuild
|