mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 07:34:36 +00:00
37 lines
811 B
Nix
37 lines
811 B
Nix
{ stdenv, fetchurl, php, autoconf, automake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.2.3";
|
|
name = "php-xdebug-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://xdebug.org/files/xdebug-2.2.3.tgz";
|
|
sha256 = "076px4ax3qcqr3mmhi9jjkfhn7pcymrpda4hzy6kgn3flhnqfldk";
|
|
};
|
|
|
|
buildInputs = [ php autoconf automake ];
|
|
|
|
configurePhase = ''
|
|
phpize
|
|
./configure --prefix=$out
|
|
'';
|
|
|
|
buildPhase = ''
|
|
make && make test
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib/xdebug
|
|
cp modules/xdebug.so $out/lib
|
|
cp LICENSE $out/lib/xdebug
|
|
'';
|
|
|
|
meta = {
|
|
description = "PHP debugger and profiler extension";
|
|
homepage = http://xdebug.org/;
|
|
license = "xdebug"; # based on PHP-3
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|