mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
7d7d3775e5
This reverts commit 8c125c0c74
.
26 lines
510 B
Nix
26 lines
510 B
Nix
{ stdenv, php, autoreconfHook, fetchurl }:
|
|
|
|
{ name
|
|
, buildInputs ? []
|
|
, nativeBuildInputs ? []
|
|
, makeFlags ? []
|
|
, src ? fetchurl {
|
|
url = "http://pecl.php.net/get/${name}.tgz";
|
|
inherit (args) sha256;
|
|
}
|
|
, ...
|
|
}@args:
|
|
|
|
stdenv.mkDerivation (args // {
|
|
name = "php-${name}";
|
|
|
|
inherit src;
|
|
|
|
nativeBuildInputs = [ autoreconfHook ] ++ nativeBuildInputs;
|
|
buildInputs = [ php ] ++ buildInputs;
|
|
|
|
makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;
|
|
|
|
autoreconfPhase = "phpize";
|
|
})
|