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