perl: Remove dependencies in $out on glibc-dev and $man

This commit is contained in:
Eelco Dolstra 2013-08-26 12:04:07 +02:00
parent 7c8518c194
commit 5a7f19a02b

View File

@ -14,6 +14,7 @@ stdenv.mkDerivation rec {
sha256 = "1dpd9lhc4723wmsn4dsn4m320qlqgyw28bvcbhnfqp2nl3f0ikv9";
};
# TODO: Add a "dev" output containing the header files.
outputs = [ "out" "man" ];
setOutputConfigureFlags = false;
@ -61,6 +62,17 @@ stdenv.mkDerivation rec {
substituteInPlace dist/Cwd/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
'';
postInstall =
''
# Remove dependency between "out" and "man" outputs.
rm $out/lib/perl5/*/*/.packlist
# Remove dependencies on glibc.dev and coreutils.
substituteInPlace $out/lib/perl5/*/*/Config_heavy.pl \
--replace ${stdenv.glibc.dev or "/blabla"} /no-such-path \
--replace $man /no-such-path
''; # */
setupHook = ./setup-hook.sh;
passthru.libPrefix = "lib/perl5/site_perl";