2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl, php, autoconf, automake }:
|
|
|
|
|
2013-06-30 02:51:20 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.2.3";
|
|
|
|
name = "php-xdebug-${version}";
|
2010-01-06 18:04:38 +01:00
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
src = fetchurl {
|
2013-06-30 02:51:20 +02:00
|
|
|
url = "http://xdebug.org/files/xdebug-2.2.3.tgz";
|
|
|
|
sha256 = "076px4ax3qcqr3mmhi9jjkfhn7pcymrpda4hzy6kgn3flhnqfldk";
|
2010-01-06 18:04:38 +01:00
|
|
|
};
|
|
|
|
|
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
|
2013-07-14 03:47:14 +02:00
|
|
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
# looks for this file for some reason -- isn't needed
|
|
|
|
touch unix.h
|
2010-01-06 18:04:38 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make && make test
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/lib/xdebug
|
2010-01-06 18:04:38 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|