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