build-pecl: honour nativeBuildInputs
Otherwise certain extensions are unable to locate pkgconfig.
This commit is contained in:
parent
a7d25d4bbc
commit
eb33f5bc04
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
{ name
|
{ name
|
||||||
, buildInputs ? []
|
, buildInputs ? []
|
||||||
|
, nativeBuildInputs ? []
|
||||||
, makeFlags ? []
|
, makeFlags ? []
|
||||||
, src ? fetchurl {
|
, src ? fetchurl {
|
||||||
url = "http://pecl.php.net/get/${name}.tgz";
|
url = "http://pecl.php.net/get/${name}.tgz";
|
||||||
|
@ -15,7 +16,7 @@ stdenv.mkDerivation (args // {
|
||||||
|
|
||||||
inherit src;
|
inherit src;
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ] ++ nativeBuildInputs;
|
||||||
buildInputs = [ php ] ++ buildInputs;
|
buildInputs = [ php ] ++ buildInputs;
|
||||||
|
|
||||||
makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;
|
makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;
|
||||||
|
|
Loading…
Reference in New Issue