2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl, php, autoconf, automake }:
|
|
|
|
|
2010-01-06 18:04:38 +01:00
|
|
|
stdenv.mkDerivation {
|
2010-07-28 13:55:54 +02:00
|
|
|
name = "php-xdebug-2.0.5";
|
2010-01-06 18:04:38 +01:00
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
src = fetchurl {
|
2010-01-06 18:04:38 +01:00
|
|
|
url = "http://xdebug.org/files/xdebug-2.0.5.tgz";
|
|
|
|
sha256 = "1cmq7c36gj8n41mfq1wba5rij8j77yqhydpcsbcysk1zchg68f26";
|
|
|
|
};
|
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
buildInputs = [ php autoconf automake ];
|
2010-01-06 18:04:38 +01:00
|
|
|
|
|
|
|
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 = {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "PHP debugger and profiler extension";
|
2010-01-06 18:04:38 +01:00
|
|
|
homepage = http://xdebug.org/;
|
|
|
|
license = "xdebug"; # based on PHP-3
|
2010-07-28 13:55:54 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
2010-01-07 11:59:49 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-01-06 18:04:38 +01:00
|
|
|
};
|
|
|
|
}
|