1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
nixpkgs/pkgs/build-support/build-pecl.nix

26 lines
510 B
Nix
Raw Normal View History

2014-07-03 15:52:02 +01:00
{ stdenv, php, autoreconfHook, fetchurl }:
2014-03-24 12:37:36 +00:00
2014-07-03 15:52:02 +01:00
{ name
, buildInputs ? []
, nativeBuildInputs ? []
2014-07-03 15:52:02 +01:00
, makeFlags ? []
, src ? fetchurl {
url = "http://pecl.php.net/get/${name}.tgz";
inherit (args) sha256;
}
, ...
}@args:
stdenv.mkDerivation (args // {
2014-07-03 15:19:57 +01:00
name = "php-${name}";
2014-07-03 15:52:02 +01:00
inherit src;
nativeBuildInputs = [ autoreconfHook ] ++ nativeBuildInputs;
buildInputs = [ php ] ++ buildInputs;
2014-03-24 12:37:36 +00:00
2014-07-03 15:52:02 +01:00
makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;
2014-03-24 12:37:36 +00:00
autoreconfPhase = "phpize";
})