mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
26 lines
545 B
Nix
26 lines
545 B
Nix
{ stdenv, php, autoreconfHook, fetchurl }:
|
|
|
|
{ pname
|
|
, version
|
|
, buildInputs ? []
|
|
, nativeBuildInputs ? []
|
|
, makeFlags ? []
|
|
, src ? fetchurl {
|
|
url = "http://pecl.php.net/get/${pname}-${version}.tgz";
|
|
inherit (args) sha256;
|
|
}
|
|
, ...
|
|
}@args:
|
|
|
|
stdenv.mkDerivation (args // {
|
|
name = "php-${pname}-${version}";
|
|
|
|
inherit src;
|
|
|
|
nativeBuildInputs = [ autoreconfHook ] ++ nativeBuildInputs;
|
|
buildInputs = [ php ] ++ buildInputs;
|
|
|
|
makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;
|
|
|
|
autoreconfPhase = "phpize";
|
|
})
|