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