1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

* Perl generic builder: set nix-support/propagated-user-env-packages

to the propagated build inputs as a convenience to people who want
  to install Perl packages into their user environments.

svn path=/nixpkgs/trunk/; revision=8278
This commit is contained in:
Eelco Dolstra 2007-03-13 13:32:17 +00:00
parent 15036d306b
commit 6e6624f4c5

View file

@ -30,12 +30,23 @@ preConfigure() {
perl Makefile.PL PREFIX=$out $makeMakerFlags
}
postFixup=postFixup
postFixup() {
# If a user installs a Perl package, she probably also wants its
# dependencies in the user environment (since Perl modules don't
# have something like an RPATH, so the only way to find the
# dependencies is to have them in the PERL5LIB variable).
if test -e $out/nix-support/propagated-build-inputs; then
ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages
fi
}
if test -n "$perlPreHook"; then
source $perlPreHook
eval "$perlPreHook"
fi
genericBuild
if test -n "$perlPostHook"; then
source $perlPostHook
eval "$perlPostHook"
fi