utillinux: placeholder, touchup how su is disabled
This commit is contained in:
parent
1800e3ca5c
commit
3b7ea8a7b9
@ -41,15 +41,19 @@ in stdenv.mkDerivation rec {
|
|||||||
"--disable-use-tty-group"
|
"--disable-use-tty-group"
|
||||||
"--enable-fs-paths-default=/run/wrappers/bin:/run/current-system/sw/bin:/sbin"
|
"--enable-fs-paths-default=/run/wrappers/bin:/run/current-system/sw/bin:/sbin"
|
||||||
"--disable-makeinstall-setuid" "--disable-makeinstall-chown"
|
"--disable-makeinstall-setuid" "--disable-makeinstall-chown"
|
||||||
|
"--disable-su" # provided by shadow
|
||||||
(lib.withFeature (ncurses != null) "ncursesw")
|
(lib.withFeature (ncurses != null) "ncursesw")
|
||||||
(lib.withFeature (systemd != null) "systemd")
|
(lib.withFeature (systemd != null) "systemd")
|
||||||
(lib.withFeatureAs (systemd != null)
|
(lib.withFeatureAs (systemd != null)
|
||||||
"systemdsystemunitdir" "$(bin)/lib/systemd/system/")
|
"systemdsystemunitdir" "${placeholder "bin"}/lib/systemd/system/")
|
||||||
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
|
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
|
||||||
"scanf_cv_type_modifier=ms"
|
"scanf_cv_type_modifier=ms"
|
||||||
;
|
;
|
||||||
|
|
||||||
makeFlags = "usrbin_execdir=$(bin)/bin usrsbin_execdir=$(bin)/sbin";
|
makeFlags = [
|
||||||
|
"usrbin_execdir=${placeholder "bin"}/bin"
|
||||||
|
"usrsbin_execdir=${placeholder "bin"}/sbin"
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs =
|
buildInputs =
|
||||||
@ -58,9 +62,7 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
doCheck = false; # "For development purpose only. Don't execute on production system!"
|
doCheck = false; # "For development purpose only. Don't execute on production system!"
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString minimal ''
|
||||||
rm "$bin/bin/su" # su should be supplied by the su package (shadow)
|
|
||||||
'' + lib.optionalString minimal ''
|
|
||||||
rm -rf $out/share/{locale,doc,bash-completion}
|
rm -rf $out/share/{locale,doc,bash-completion}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user