@ -8,21 +8,16 @@ stdenv.mkDerivation rec {
sha256 = " 1 k 1 i n 1 b a 9 k v h 0 k p l r i 9 7 6 5 w h 0 y k 6 8 q r k k 1 a 5 5 d q s m 2 1 q f r y c 1 i d q " ;
} ;
# !!! It would be better to obtain the path to the mount helpers
# (/sbin/mount.*) through an environment variable, but that's
# somewhat risky because we have to consider that mount can setuid
# root...
configureFlags = ''
- - disable-use-tty-group
- - enable-write
- - enable-fs-paths-default = /var/run/current-system/sw/sbin : /sbin
$ { if ncurses == null then " - - w i t h o u t - n c u r s e s " else " " }
'' ;
buildInputs = stdenv . lib . optional ( ncurses != null ) ncurses ;
# !!! It would be better to obtain the path to the mount helpers
# (/sbin/mount.*) through an environment variable, but that's
# somewhat risky because we have to consider that mount can setuid
# root...
preConfigure = ''
substituteInPlace mount/mount.c - - replace /sbin/mount. /var/run/current-system/sw/sbin/mount.
substituteInPlace mount/umount.c - - replace /sbin/umount. /var/run/current-system/sw/sbin/umount.
'' ;
}