buildEnv: use buildPackages.perl so crossDrv works

This commit is contained in:
Eric Litak 2017-04-13 01:55:29 -07:00
parent 6b73c0f198
commit bd45ec6416

View File

@ -2,7 +2,7 @@
# a fork of the buildEnv in the Nix distribution. Most changes should
# eventually be merged back into the Nix distribution.
{ perl, runCommand, lib }:
{ buildPackages, runCommand, lib }:
{ name
@ -66,6 +66,6 @@ runCommand name
passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else null;
}
''
${perl}/bin/perl -w ${./builder.pl}
${buildPackages.perl}/bin/perl -w ${./builder.pl}
eval "$postBuild"
''