* Cygwin: provide a Perl setup hook so that Perl dependencies work

properly.

svn path=/nixpkgs/trunk/; revision=34002
This commit is contained in:
Eelco Dolstra
2012-05-07 02:06:29 +00:00
parent 0d95f69b2d
commit 08b6b9fa3a
5 changed files with 21 additions and 11 deletions
@@ -0,0 +1,15 @@
{ stdenv }:
stdenv.mkDerivation {
name = "perl";
unpackPhase = "true";
installPhase =
''
mkdir -p $out/bin
ln -s /usr/bin/perl $out/bin
'';
setupHook = ./setup-hook.sh;
}
@@ -0,0 +1,5 @@
addPerlLibPath () {
addToSearchPath PERL5LIB $1/lib/perl5/site_perl/5.10/i686-cygwin
}
envHooks=(${envHooks[@]} addPerlLibPath)