1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/development/interpreters/php-xdebug/default.nix

37 lines
811 B
Nix
Raw Normal View History

{ stdenv, fetchurl, php, autoconf, automake }:
2013-06-30 01:51:20 +01:00
stdenv.mkDerivation rec {
version = "2.2.3";
name = "php-xdebug-${version}";
src = fetchurl {
2013-06-30 01:51:20 +01:00
url = "http://xdebug.org/files/xdebug-2.2.3.tgz";
sha256 = "076px4ax3qcqr3mmhi9jjkfhn7pcymrpda4hzy6kgn3flhnqfldk";
};
buildInputs = [ php autoconf automake ];
configurePhase = ''
phpize
./configure --prefix=$out
'';
buildPhase = ''
make && make test
'';
installPhase = ''
mkdir -p $out/lib/xdebug
cp modules/xdebug.so $out/lib
cp LICENSE $out/lib/xdebug
'';
meta = {
description = "PHP debugger and profiler extension";
homepage = http://xdebug.org/;
license = "xdebug"; # based on PHP-3
maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = stdenv.lib.platforms.linux;
};
}