2014-07-03 07:52:02 -07:00
|
|
|
{ stdenv, php, autoreconfHook, fetchurl }:
|
2014-03-24 05:37:36 -07:00
|
|
|
|
2014-07-03 07:52:02 -07:00
|
|
|
{ name
|
|
|
|
, buildInputs ? []
|
|
|
|
, makeFlags ? []
|
|
|
|
, src ? fetchurl {
|
|
|
|
url = "http://pecl.php.net/get/${name}.tgz";
|
|
|
|
inherit (args) sha256;
|
|
|
|
}
|
|
|
|
, ...
|
|
|
|
}@args:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (args // {
|
2014-07-03 07:19:57 -07:00
|
|
|
name = "php-${name}";
|
|
|
|
|
2014-07-03 07:52:02 -07:00
|
|
|
inherit src;
|
|
|
|
|
|
|
|
buildInputs = [ php autoreconfHook ] ++ buildInputs;
|
2014-03-24 05:37:36 -07:00
|
|
|
|
2014-07-03 07:52:02 -07:00
|
|
|
makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;
|
2014-03-24 05:37:36 -07:00
|
|
|
|
|
|
|
autoreconfPhase = "phpize";
|
2015-02-05 11:22:28 -08:00
|
|
|
|
|
|
|
preConfigure = "touch unix.h";
|
2014-03-24 05:37:36 -07:00
|
|
|
})
|