* 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

View File

@ -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;
}

View File

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

View File

@ -1,4 +0,0 @@
source $stdenv/setup
mkdir $out
mkdir $out/bin
ln -s /usr/bin/perl $out/bin

View File

@ -1,6 +0,0 @@
{stdenv}:
stdenv.mkDerivation {
name = "perl";
builder = ./builder.sh;
}

View File

@ -2816,7 +2816,7 @@ let
spidermonkey_1_8_0rc1 = callPackage ../development/interpreters/spidermonkey/1.8.0-rc1.nix { };
spidermonkey_185 = callPackage ../development/interpreters/spidermonkey/185-1.0.0.nix { };
sysPerl = callPackage ../development/interpreters/sys-perl { };
sysPerl = callPackage ../development/interpreters/perl/sys-perl { };
tcl = callPackage ../development/interpreters/tcl { };