2014-07-03 18:52:02 +04:00
|
|
|
{ stdenv, php, autoreconfHook, fetchurl }:
|
2014-03-24 16:37:36 +04:00
|
|
|
|
2014-07-03 18:52:02 +04:00
|
|
|
{ name
|
|
|
|
, buildInputs ? []
|
2017-11-02 19:28:06 +03:00
|
|
|
, nativeBuildInputs ? []
|
2014-07-03 18:52:02 +04:00
|
|
|
, makeFlags ? []
|
|
|
|
, src ? fetchurl {
|
|
|
|
url = "http://pecl.php.net/get/${name}.tgz";
|
|
|
|
inherit (args) sha256;
|
|
|
|
}
|
|
|
|
, ...
|
|
|
|
}@args:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (args // {
|
2014-07-03 18:19:57 +04:00
|
|
|
name = "php-${name}";
|
|
|
|
|
2014-07-03 18:52:02 +04:00
|
|
|
inherit src;
|
|
|
|
|
2017-11-02 19:28:06 +03:00
|
|
|
nativeBuildInputs = [ autoreconfHook ] ++ nativeBuildInputs;
|
2017-09-06 00:26:13 +03:00
|
|
|
buildInputs = [ php ] ++ buildInputs;
|
2014-03-24 16:37:36 +04:00
|
|
|
|
2014-07-03 18:52:02 +04:00
|
|
|
makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;
|
2014-03-24 16:37:36 +04:00
|
|
|
|
|
|
|
autoreconfPhase = "phpize";
|
|
|
|
})
|