* Perl: set passthru.libPrefix to communicate the relative location of

Perl packages for $PERL5LIB.

svn path=/nixpkgs/trunk/; revision=34061
This commit is contained in:
Eelco Dolstra 2012-05-11 13:41:24 +00:00
parent 5dd0d85528
commit a78d2f55fb
5 changed files with 12 additions and 2 deletions

View File

@ -57,4 +57,6 @@ stdenv.mkDerivation rec {
'';
setupHook = ./setup-hook.sh;
passthru.libPrefix = "lib/perl5/site_perl";
}

View File

@ -58,4 +58,6 @@ stdenv.mkDerivation rec {
'';
setupHook = ./setup-hook.sh;
passthru.libPrefix = "lib/perl5/site_perl";
}

View File

@ -62,4 +62,6 @@ genericBuild
];
setupHook = ./setup-hook.sh;
passthru.libPrefix = "lib/perl5/site_perl";
}

View File

@ -1,6 +1,6 @@
{ stdenv }:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
name = "perl";
unpackPhase = "true";
@ -12,4 +12,8 @@ stdenv.mkDerivation {
'';
setupHook = ./setup-hook.sh;
libPrefix = "lib/perl5/site_perl/5.10/i686-cygwin";
passthru.libPrefix = libPrefix;
}

View File

@ -1,5 +1,5 @@
addPerlLibPath () {
addToSearchPath PERL5LIB $1/lib/perl5/site_perl/5.10/i686-cygwin
addToSearchPath PERL5LIB $1/@libPrefix@
}
envHooks=(${envHooks[@]} addPerlLibPath)