mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
eb33f5bc04
Otherwise certain extensions are unable to locate pkgconfig.
28 lines
544 B
Nix
28 lines
544 B
Nix
{ stdenv, php, autoreconfHook, fetchurl }:
|
|
|
|
{ name
|
|
, buildInputs ? []
|
|
, nativeBuildInputs ? []
|
|
, makeFlags ? []
|
|
, src ? fetchurl {
|
|
url = "http://pecl.php.net/get/${name}.tgz";
|
|
inherit (args) sha256;
|
|
}
|
|
, ...
|
|
}@args:
|
|
|
|
stdenv.mkDerivation (args // {
|
|
name = "php-${name}";
|
|
|
|
inherit src;
|
|
|
|
nativeBuildInputs = [ autoreconfHook ] ++ nativeBuildInputs;
|
|
buildInputs = [ php ] ++ buildInputs;
|
|
|
|
makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;
|
|
|
|
autoreconfPhase = "phpize";
|
|
|
|
preConfigure = "touch unix.h";
|
|
})
|