diff options
author | William A. Kennington III <william@wkennington.com> | 2014-04-05 13:41:23 -0500 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2014-04-05 16:01:52 -0500 |
commit | 28ab3acb58b0e5a5ffa932c9c6eb19db05a6c334 (patch) | |
tree | 73e82a6fd588acd0b85a5fc07dfd2479dfcbcd01 /pkgs/os-specific/linux/shadow | |
parent | 4ab58240a9c5cf977767965d978a8f6bb7127f41 (diff) |
su: Make the su package a provider of only the su binary
Additionally, provide su with the base system and remove su from the util-linux package as it is now provided by shadow.
Diffstat (limited to 'pkgs/os-specific/linux/shadow')
-rw-r--r-- | pkgs/os-specific/linux/shadow/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/shadow/default.nix b/pkgs/os-specific/linux/shadow/default.nix index 1055fccd8aa35..9d024ae3109c1 100644 --- a/pkgs/os-specific/linux/shadow/default.nix +++ b/pkgs/os-specific/linux/shadow/default.nix @@ -26,6 +26,8 @@ stdenv.mkDerivation rec { patches = [ ./keep-path.patch dots_in_usernames ]; + outputs = [ "out" "su" ]; + # Assume System V `setpgrp (void)', which is the default on GNU variants # (`AC_FUNC_SETPGRP' is not cross-compilation capable.) preConfigure = "export ac_cv_func_setpgrp_void=yes"; @@ -35,10 +37,14 @@ stdenv.mkDerivation rec { substituteInPlace lib/nscd.c --replace /usr/sbin/nscd ${glibc}/sbin/nscd ''; - # Don't install ‘groups’, since coreutils already provides it. postInstall = '' + # Don't install ‘groups’, since coreutils already provides it. rm $out/bin/groups $out/share/man/man1/groups.* + + # Move the su binary into the su package + mkdir -p $su/bin + mv $out/bin/su $su/bin ''; meta = { |