File tree 1 file changed +11
-12
lines changed
pkgs/os-specific/linux/util-linux
1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -30,30 +30,29 @@ stdenv.mkDerivation rec {
30
30
} ;
31
31
32
32
preConfigure = lib . optionalString ( systemd != null ) ''
33
- configureFlags+="--with-systemd --with-systemdsystemunitdir=$bin/lib/systemd/system/"
33
+ configureFlags+=" --with-systemd --with-systemdsystemunitdir=$bin/lib/systemd/system/"
34
34
'' ;
35
35
36
36
# !!! It would be better to obtain the path to the mount helpers
37
37
# (/sbin/mount.*) through an environment variable, but that's
38
38
# somewhat risky because we have to consider that mount can setuid
39
39
# root...
40
- configureFlags = ''
41
- --enable-write
42
- --enable-last
43
- --enable-mesg
44
- --disable-use-tty-group
45
- --enable-fs-paths-default=/run/wrappers/bin:/var/run/current-system/sw/bin:/sbin
46
- ${ if ncurses == null then "--without-ncurses" else "" }
47
- '' ;
40
+ configureFlags = [
41
+ "--enable-write"
42
+ "--enable-last"
43
+ "--enable-mesg"
44
+ "--disable-use-tty-group"
45
+ "--enable-fs-paths-default=/run/wrappers/bin:/var/run/current-system/sw/bin:/sbin"
46
+ "--disable-makeinstall-setuid" "--disable-makeinstall-chown"
47
+ ]
48
+ ++ lib . optional ( ncurses == null ) "--without-ncurses" ;
48
49
49
50
makeFlags = "usrbin_execdir=$(bin)/bin usrsbin_execdir=$(bin)/sbin" ;
50
51
51
52
nativeBuildInputs = [ pkgconfig ] ;
52
53
buildInputs =
53
54
[ zlib pam ]
54
- ++ lib . optional ( ncurses != null ) ncurses
55
- ++ lib . optional ( systemd != null ) systemd
56
- ++ lib . optional ( perl != null ) perl ;
55
+ ++ lib . filter ( p : p != null ) [ ncurses systemd perl ] ;
57
56
58
57
postInstall = ''
59
58
rm "$bin/bin/su" # su should be supplied by the su package (shadow)
You can’t perform that action at this time.
0 commit comments