mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
* Cygwin: provide a Perl setup hook so that Perl dependencies work
properly. svn path=/nixpkgs/trunk/; revision=34002
This commit is contained in:
parent
0d95f69b2d
commit
08b6b9fa3a
15
pkgs/development/interpreters/perl/sys-perl/default.nix
Normal file
15
pkgs/development/interpreters/perl/sys-perl/default.nix
Normal 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;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
addPerlLibPath () {
|
||||
addToSearchPath PERL5LIB $1/lib/perl5/site_perl/5.10/i686-cygwin
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPerlLibPath)
|
|
@ -1,4 +0,0 @@
|
|||
source $stdenv/setup
|
||||
mkdir $out
|
||||
mkdir $out/bin
|
||||
ln -s /usr/bin/perl $out/bin
|
|
@ -1,6 +0,0 @@
|
|||
{stdenv}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "perl";
|
||||
builder = ./builder.sh;
|
||||
}
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue