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