perl: get perl in HOST_PATH for patch-shebangs

This commit is contained in:
worldofpeace 2019-05-17 00:12:24 -04:00
parent f0a4305e0a
commit 764c298111

View File

@ -1,6 +1,6 @@
{ lib, stdenv, perl, buildPerl, toPerlModule }:
{ nativeBuildInputs ? [], name, ... } @ attrs:
{ buildInputs ? [], nativeBuildInputs ? [], name, ... } @ attrs:
toPerlModule(stdenv.mkDerivation (
(
@ -36,6 +36,7 @@ toPerlModule(stdenv.mkDerivation (
{
name = "perl${perl.version}-${name}";
builder = ./builder.sh;
buildInputs = buildInputs ++ [ perl ];
nativeBuildInputs = nativeBuildInputs ++ [ (perl.dev or perl) ];
fullperl = buildPerl;
}