perl: Remove dependencies in $out on glibc-dev and $man
This commit is contained in:
parent
7c8518c194
commit
5a7f19a02b
@ -14,6 +14,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1dpd9lhc4723wmsn4dsn4m320qlqgyw28bvcbhnfqp2nl3f0ikv9";
|
sha256 = "1dpd9lhc4723wmsn4dsn4m320qlqgyw28bvcbhnfqp2nl3f0ikv9";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: Add a "dev" output containing the header files.
|
||||||
outputs = [ "out" "man" ];
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
setOutputConfigureFlags = false;
|
setOutputConfigureFlags = false;
|
||||||
@ -61,6 +62,17 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace dist/Cwd/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
|
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;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
passthru.libPrefix = "lib/perl5/site_perl";
|
passthru.libPrefix = "lib/perl5/site_perl";
|
||||||
|
Loading…
Reference in New Issue
Block a user