moving xdebug into its own package. This means you have to specify an additional php.ini file to make php debugger work for command line php.

svn path=/nixpkgs/trunk/; revision=19266
This commit is contained in:
Marc Weber
2010-01-06 17:04:38 +00:00
parent 4220742818
commit 900a1c22a4
4 changed files with 87 additions and 36 deletions

View File

@@ -0,0 +1,34 @@
args: with args;
stdenv.mkDerivation {
name = "php-xdebug";
src = args.fetchurl {
url = "http://xdebug.org/files/xdebug-2.0.5.tgz";
sha256 = "1cmq7c36gj8n41mfq1wba5rij8j77yqhydpcsbcysk1zchg68f26";
};
buildInputs = [php autoconf automake];
configurePhase = ''
phpize
./configure --prefix=$out
'';
buildPhase = ''
make && make test
'';
installPhase = ''
ensureDir $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 = [args.lib.maintainers.marcweber];
platforms = args.lib.platforms.linux;
};
}