From eb33f5bc04828103f0c0388ca61e31ff816921b2 Mon Sep 17 00:00:00 2001 From: Piotr Bogdan Date: Thu, 2 Nov 2017 16:28:06 +0000 Subject: [PATCH] build-pecl: honour nativeBuildInputs Otherwise certain extensions are unable to locate pkgconfig. --- pkgs/build-support/build-pecl.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/build-pecl.nix b/pkgs/build-support/build-pecl.nix index 30a42fcc0fed..ce948739c320 100644 --- a/pkgs/build-support/build-pecl.nix +++ b/pkgs/build-support/build-pecl.nix @@ -2,6 +2,7 @@ { name , buildInputs ? [] +, nativeBuildInputs ? [] , makeFlags ? [] , src ? fetchurl { url = "http://pecl.php.net/get/${name}.tgz"; @@ -15,7 +16,7 @@ stdenv.mkDerivation (args // { inherit src; - nativeBuildInputs = [ autoreconfHook ]; + nativeBuildInputs = [ autoreconfHook ] ++ nativeBuildInputs; buildInputs = [ php ] ++ buildInputs; makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;