mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
util-linux: Clean up to use less bash
This commit is contained in:
parent
e517da3929
commit
f83b5e4f7a
1 changed files with 5 additions and 6 deletions
|
@ -28,10 +28,6 @@ in stdenv.mkDerivation rec {
|
|||
--replace "/bin/umount" "$out/bin/umount"
|
||||
'';
|
||||
|
||||
preConfigure = lib.optionalString (systemd != null) ''
|
||||
configureFlags+=" --with-systemd --with-systemdsystemunitdir=$bin/lib/systemd/system/"
|
||||
'';
|
||||
|
||||
# !!! 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
|
||||
|
@ -43,8 +39,11 @@ in stdenv.mkDerivation rec {
|
|||
"--disable-use-tty-group"
|
||||
"--enable-fs-paths-default=/run/wrappers/bin:/var/run/current-system/sw/bin:/sbin"
|
||||
"--disable-makeinstall-setuid" "--disable-makeinstall-chown"
|
||||
] ++ lib.optional (ncurses == null) "--without-ncurses"
|
||||
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
|
||||
(lib.withFeature (ncurses != null) "ncurses")
|
||||
(lib.withFeature (systemd != null) "systemd")
|
||||
(lib.withFeatureAs (systemd != null)
|
||||
"systemdsystemunitdir" "$bin/lib/systemd/system/")
|
||||
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
|
||||
"scanf_cv_type_modifier=ms"
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in a new issue