nixpkgs/pkgs/build-support/build-pecl.nix

27 lines
545 B
Nix
Raw Normal View History

2014-07-03 18:52:02 +04:00
{ stdenv, php, autoreconfHook, fetchurl }:
2014-03-24 16:37:36 +04:00
2019-04-20 17:09:05 +03:00
{ pname
, version
2014-07-03 18:52:02 +04:00
, buildInputs ? []
, nativeBuildInputs ? []
2014-07-03 18:52:02 +04:00
, makeFlags ? []
, src ? fetchurl {
2019-04-20 17:09:05 +03:00
url = "http://pecl.php.net/get/${pname}-${version}.tgz";
2014-07-03 18:52:02 +04:00
inherit (args) sha256;
}
, ...
}@args:
stdenv.mkDerivation (args // {
2019-04-20 17:09:05 +03:00
name = "php-${pname}-${version}";
2014-07-03 18:19:57 +04:00
2014-07-03 18:52:02 +04:00
inherit src;
nativeBuildInputs = [ autoreconfHook ] ++ nativeBuildInputs;
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";
})