perlPackages: fix build packages for non-default perl

This commit is contained in:
volth
2019-05-03 10:53:36 +00:00
parent 3567b1390f
commit 120398ab4b
4 changed files with 12 additions and 9 deletions
@@ -22,7 +22,7 @@ preConfigure() {
fi
done
perl Makefile.PL PREFIX=$out INSTALLDIRS=site $makeMakerFlags PERL=$(type -P perl) FULLPERL=\"$perl/bin/perl\"
perl Makefile.PL PREFIX=$out INSTALLDIRS=site $makeMakerFlags PERL=$(type -P perl) FULLPERL=\"$fullperl/bin/perl\"
}
@@ -1,4 +1,4 @@
{ lib, stdenv, perl, buildPackages, toPerlModule }:
{ lib, stdenv, perl, buildPerl, toPerlModule }:
{ nativeBuildInputs ? [], name, ... } @ attrs:
@@ -37,6 +37,6 @@ toPerlModule(stdenv.mkDerivation (
name = "perl${perl.version}-${name}";
builder = ./builder.sh;
nativeBuildInputs = nativeBuildInputs ++ [ (perl.dev or perl) ];
perl = buildPackages.perl;
fullperl = buildPerl;
}
))