mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
* 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:
parent
5dd0d85528
commit
a78d2f55fb
@ -57,4 +57,6 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
|
passthru.libPrefix = "lib/perl5/site_perl";
|
||||||
}
|
}
|
||||||
|
@ -58,4 +58,6 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
|
passthru.libPrefix = "lib/perl5/site_perl";
|
||||||
}
|
}
|
||||||
|
@ -62,4 +62,6 @@ genericBuild
|
|||||||
];
|
];
|
||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
|
passthru.libPrefix = "lib/perl5/site_perl";
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ stdenv }:
|
{ stdenv }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "perl";
|
name = "perl";
|
||||||
|
|
||||||
unpackPhase = "true";
|
unpackPhase = "true";
|
||||||
@ -12,4 +12,8 @@ stdenv.mkDerivation {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
|
libPrefix = "lib/perl5/site_perl/5.10/i686-cygwin";
|
||||||
|
|
||||||
|
passthru.libPrefix = libPrefix;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
addPerlLibPath () {
|
addPerlLibPath () {
|
||||||
addToSearchPath PERL5LIB $1/lib/perl5/site_perl/5.10/i686-cygwin
|
addToSearchPath PERL5LIB $1/@libPrefix@
|
||||||
}
|
}
|
||||||
|
|
||||||
envHooks=(${envHooks[@]} addPerlLibPath)
|
envHooks=(${envHooks[@]} addPerlLibPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user