man-only packages: fixup after stdenv changes

Thanks to @avnik for notification.
The stdenv now auto-removes developer-only documentation
unless explicitly indicated, which wasn't a good fit for these packages.
This commit is contained in:
Vladimír Čunát 2016-01-28 13:55:37 +01:00
parent 363f667e8b
commit c979012631
3 changed files with 9 additions and 2 deletions

View File

@ -9,7 +9,10 @@ stdenv.mkDerivation rec {
sha256 = "0v8zxq4scfixy3pjpw9ankvv5v8frv62khv4xm1jpkswyq6rbqcg";
};
# keep developer docs separately (man2 and man3)
outputs = [ "out" "docdev" ];
makeFlags = [ "MANDIR=$(out)/share/man" ];
postFixup = ''moveToOutput share/man/man2 "$docdev" '';
meta = with stdenv.lib; {
inherit version;

View File

@ -8,6 +8,8 @@ stdenv.mkDerivation rec {
sha256 = "0153py77ll759jacq41dp2z2ksr08pdcfic0rwjd6pr84dk89y9v";
};
outputDocdev = "out";
installPhase = ''
mkdir -p $out/share/man
cp -R * $out/share/man

View File

@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "09c5gjhcz97ghfrv9zkgfb1wckvmqnhbzga0xidbm1ir7640di8l";
};
outputDocdev = "out";
preConfigure = "
patchShebangs ./configure
patchShebangs ./do_install