summary refs log tree commit diff
path: root/pkgs/os-specific/linux/shadow
diff options
context:
space:
mode:
authordanbst <abcz2.uprola@gmail.com>2016-11-30 01:44:28 +0200
committerdanbst <abcz2.uprola@gmail.com>2016-11-30 01:44:28 +0200
commitac51528df83401ff357d08ee69d31b5a6d421279 (patch)
tree7e4522129230c483922d26135b67e4707f0d512a /pkgs/os-specific/linux/shadow
parent2d679dbe745e05e62a0f14c0fad12f83f3d4e2b3 (diff)
downloadnixpkgs-ac51528df83401ff357d08ee69d31b5a6d421279.tar
nixpkgs-ac51528df83401ff357d08ee69d31b5a6d421279.tar.gz
nixpkgs-ac51528df83401ff357d08ee69d31b5a6d421279.tar.bz2
nixpkgs-ac51528df83401ff357d08ee69d31b5a6d421279.tar.lz
nixpkgs-ac51528df83401ff357d08ee69d31b5a6d421279.tar.xz
nixpkgs-ac51528df83401ff357d08ee69d31b5a6d421279.tar.zst
nixpkgs-ac51528df83401ff357d08ee69d31b5a6d421279.zip
shadow: fix collision with coreutils (man groups.1.gz)
The `groups.1.gz` collides with one from coreutils. The code to fix this
was already present in expression, but wrongly assumes that share/man/man1
directory will be copied to `man` output after `installPhase`.

It turned out, that man directory is set at configure step, so we should
remove file from `man` output.
Diffstat (limited to 'pkgs/os-specific/linux/shadow')
-rw-r--r--pkgs/os-specific/linux/shadow/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/shadow/default.nix b/pkgs/os-specific/linux/shadow/default.nix
index e56f285d526..e99d7d86bfb 100644
--- a/pkgs/os-specific/linux/shadow/default.nix
+++ b/pkgs/os-specific/linux/shadow/default.nix
@@ -43,7 +43,8 @@ stdenv.mkDerivation rec {
   postInstall =
     ''
       # Don't install ‘groups’, since coreutils already provides it.
-      rm $out/bin/groups $out/share/man/man1/groups.*
+      rm $out/bin/groups
+      rm $man/share/man/man1/groups.*
 
       # Move the su binary into the su package
       mkdir -p $su/bin