From 8c125c0c7448086cb4bd8dafd1f798d8697fcd78 Mon Sep 17 00:00:00 2001 From: Emil Rangden Date: Thu, 5 Feb 2015 20:22:28 +0100 Subject: [PATCH] fix phpPackages memcache,memcached,xdebug These packages, and maybe some more include unix.h for some reason. Creating that file makes them build, and in the case of xdebug also appear to work. --- pkgs/build-support/build-pecl.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/build-support/build-pecl.nix b/pkgs/build-support/build-pecl.nix index 135b68186f3a..5837d413abc9 100644 --- a/pkgs/build-support/build-pecl.nix +++ b/pkgs/build-support/build-pecl.nix @@ -20,4 +20,6 @@ stdenv.mkDerivation (args // { makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags; autoreconfPhase = "phpize"; + + preConfigure = "touch unix.h"; })