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.
This commit is contained in:
danbst 2016-11-30 01:44:28 +02:00
parent 2d679dbe74
commit ac51528df8

View file

@ -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