mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
8c125c0c74
These packages, and maybe some more include unix.h for some reason. Creating that file makes them build, and in the case of xdebug also appear to work.
26 lines
471 B
Nix
26 lines
471 B
Nix
{ stdenv, php, autoreconfHook, fetchurl }:
|
|
|
|
{ name
|
|
, buildInputs ? []
|
|
, makeFlags ? []
|
|
, src ? fetchurl {
|
|
url = "http://pecl.php.net/get/${name}.tgz";
|
|
inherit (args) sha256;
|
|
}
|
|
, ...
|
|
}@args:
|
|
|
|
stdenv.mkDerivation (args // {
|
|
name = "php-${name}";
|
|
|
|
inherit src;
|
|
|
|
buildInputs = [ php autoreconfHook ] ++ buildInputs;
|
|
|
|
makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;
|
|
|
|
autoreconfPhase = "phpize";
|
|
|
|
preConfigure = "touch unix.h";
|
|
})
|