libcap*: fix with multiple outputs

I don't think we need the license file in each of these,
so I only left it with the library (it isn't big).
This commit is contained in:
Vladimír Čunát 2015-10-03 19:12:06 +02:00
parent c83b59130f
commit 54eef65533
4 changed files with 5 additions and 5 deletions

View File

@ -19,6 +19,7 @@ stdenv.mkDerivation rec {
makeFlags = "lib=lib prefix=$(out)";
postInstall = ''
rm "$out"/lib/*.a
mkdir -p "$dev/share/doc/${name}"
cp ../License "$dev/share/doc/${name}/License"
'';

View File

@ -10,6 +10,4 @@ stdenv.mkDerivation rec {
makeFlags = "MANDIR=$(out)/share/man";
preConfigure = "cd doc";
postInstall = libcap.postinst name;
}

View File

@ -12,6 +12,4 @@ stdenv.mkDerivation rec {
preConfigure = "cd pam_cap";
makeFlags = "${libcap.makeFlags} PAM_CAP=yes";
postInstall = libcap.postinst name;
}

View File

@ -21,5 +21,8 @@ stdenv.mkDerivation rec {
installFlags = "RAISE_SETFCAP=no";
postInstall = libcap.postinst name;
postInstall = ''
mkdir -p "$out/share/doc/${name}"
cp ../License "$out/share/doc/${name}/"
'';
}