php.packages.buildPecl: Introduce built-in extension dependencies
Introduce the internalDeps attribute used by mkExtension, to refer to internal php extensions built by mkExtension.
This commit is contained in:
parent
90dcab948c
commit
9ac0d9ad61
|
@ -1,9 +1,11 @@
|
||||||
{ stdenv, php, autoreconfHook, fetchurl, re2c }:
|
{ stdenv, lib, php, autoreconfHook, fetchurl, re2c }:
|
||||||
|
|
||||||
{ pname
|
{ pname
|
||||||
, version
|
, version
|
||||||
|
, internalDeps ? []
|
||||||
, buildInputs ? []
|
, buildInputs ? []
|
||||||
, nativeBuildInputs ? []
|
, nativeBuildInputs ? []
|
||||||
|
, postPhpize ? ""
|
||||||
, makeFlags ? []
|
, makeFlags ? []
|
||||||
, src ? fetchurl {
|
, src ? fetchurl {
|
||||||
url = "http://pecl.php.net/get/${pname}-${version}.tgz";
|
url = "http://pecl.php.net/get/${pname}-${version}.tgz";
|
||||||
|
@ -22,5 +24,11 @@ stdenv.mkDerivation (args // {
|
||||||
|
|
||||||
makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;
|
makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;
|
||||||
|
|
||||||
autoreconfPhase = "phpize";
|
autoreconfPhase = ''
|
||||||
|
phpize
|
||||||
|
${postPhpize}
|
||||||
|
${lib.concatMapStringsSep "\n"
|
||||||
|
(dep: "mkdir -p ext; ln -s ${dep.dev}/include ext/${dep.extensionName}")
|
||||||
|
internalDeps}
|
||||||
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue