1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/interpreters/php-xdebug/default.nix
Jason \"Don\" O'Conal b4105cfaff php53: fix build on darwin (close #748)
* add empty unix.h header
* build with kerberos
* ensure the binary has no extension
2013-07-28 09:41:58 +02:00

40 lines
938 B
Nix

{ stdenv, fetchurl, php, autoconf, automake }:
stdenv.mkDerivation rec {
version = "2.2.3";
name = "php-xdebug-${version}";
src = fetchurl {
url = "http://xdebug.org/files/xdebug-2.2.3.tgz";
sha256 = "076px4ax3qcqr3mmhi9jjkfhn7pcymrpda4hzy6kgn3flhnqfldk";
};
buildInputs = [ php autoconf automake ];
configurePhase = ''
phpize
./configure --prefix=$out
'' + stdenv.lib.optionalString stdenv.isDarwin ''
# looks for this file for some reason -- isn't needed
touch unix.h
'';
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;
};
}