diff --git a/pkgs/development/libraries/neon/0.29.6-darwin-fix-configure.patch b/pkgs/development/libraries/neon/0.29.6-darwin-fix-configure.patch new file mode 100644 index 000000000000..87222a9c0ce0 --- /dev/null +++ b/pkgs/development/libraries/neon/0.29.6-darwin-fix-configure.patch @@ -0,0 +1,12 @@ +diff -Nuar neon-0.29.6/configure neon-0.29.6-darwin-fix-configure/configure +--- neon-0.29.6/configure 2011-05-03 14:25:31.000000000 +0200 ++++ neon-0.29.6-darwin-fix-configure/configure 2012-06-06 23:32:21.000000000 +0200 +@@ -4184,7 +4184,7 @@ + $as_echo "$ne_cv_os_uname" >&6; } + + if test "$ne_cv_os_uname" = "Darwin"; then +- CPPFLAGS="$CPPFLAGS -no-cpp-precomp" ++ CPPFLAGS="$CPPFLAGS" + LDFLAGS="$LDFLAGS -flat_namespace" + # poll has various issues in various Darwin releases + if test x${ac_cv_func_poll+set} != xset; then diff --git a/pkgs/development/libraries/neon/0.29.nix b/pkgs/development/libraries/neon/0.29.nix index 8666f6233a93..ffc409d271e0 100644 --- a/pkgs/development/libraries/neon/0.29.nix +++ b/pkgs/development/libraries/neon/0.29.nix @@ -9,6 +9,10 @@ assert compressionSupport -> zlib != null; assert sslSupport -> openssl != null; assert static || shared; +let + inherit (stdenv.lib) optionals; +in + stdenv.mkDerivation rec { name = "neon-0.29.6"; @@ -17,6 +21,8 @@ stdenv.mkDerivation rec { sha256 = "0hzbjqdx1z8zw0vmbknf159wjsxbcq8ii0wgwkqhxj3dimr0nr4w"; }; + patches = optionals stdenv.isDarwin [ ./0.29.6-darwin-fix-configure.patch ]; + buildInputs = [libxml2 pkgconfig openssl] ++ stdenv.lib.optional compressionSupport zlib;