diff --git a/pkgs/development/interpreters/sys-perl/builder.sh b/pkgs/development/interpreters/sys-perl/builder.sh new file mode 100644 index 000000000000..33c54134f3b9 --- /dev/null +++ b/pkgs/development/interpreters/sys-perl/builder.sh @@ -0,0 +1,4 @@ +. $stdenv/setup +mkdir $out +mkdir $out/bin +ln -s /usr/bin/perl $out/bin diff --git a/pkgs/development/interpreters/sys-perl/default.nix b/pkgs/development/interpreters/sys-perl/default.nix new file mode 100644 index 000000000000..346d9d08a898 --- /dev/null +++ b/pkgs/development/interpreters/sys-perl/default.nix @@ -0,0 +1,6 @@ +{stdenv}: + +stdenv.mkDerivation { + name = "perl"; + builder = ./builder.sh; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index db2959611b31..add49a498791 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -288,11 +288,17 @@ rec { inherit fetchurl stdenv unzip ghc happy; }; - perl = (import ../development/interpreters/perl) { + realPerl = (import ../development/interpreters/perl) { inherit fetchurl stdenv; patch = gnupatch; }; + sysPerl = (import ../development/interpreters/sys-perl) { + inherit stdenv; + }; + + perl = if stdenv.system == "powerpc-darwin7.3.0" then sysPerl else realPerl; + python = (import ../development/interpreters/python) { inherit fetchurl stdenv zlib; }; diff --git a/pkgs/system/populate-cache.nix b/pkgs/system/populate-cache.nix index c2fe7584e116..91d1bd07271c 100644 --- a/pkgs/system/populate-cache.nix +++ b/pkgs/system/populate-cache.nix @@ -60,6 +60,7 @@ let { powerpcDarwinPkgs = {inherit (import ./powerpc-darwin.nix) aterm + subversion ;};