summary refs log tree commit diff
path: root/pkgs/servers/http
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-01-16 08:51:22 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-01-16 08:51:22 +0100
commit4361a7a597441ada24399896beb94dbe563f465f (patch)
tree9cfd1afe958684c1f059a2eef7451a36d0a974cc /pkgs/servers/http
parent06f722654108003be5b689921178bfe67047e7cb (diff)
downloadnixpkgs-4361a7a597441ada24399896beb94dbe563f465f.tar
nixpkgs-4361a7a597441ada24399896beb94dbe563f465f.tar.gz
nixpkgs-4361a7a597441ada24399896beb94dbe563f465f.tar.bz2
nixpkgs-4361a7a597441ada24399896beb94dbe563f465f.tar.lz
nixpkgs-4361a7a597441ada24399896beb94dbe563f465f.tar.xz
nixpkgs-4361a7a597441ada24399896beb94dbe563f465f.tar.zst
nixpkgs-4361a7a597441ada24399896beb94dbe563f465f.zip
couchdb: fix build
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r--pkgs/servers/http/couchdb/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/servers/http/couchdb/default.nix b/pkgs/servers/http/couchdb/default.nix
index 0e714617544..54412d2ab40 100644
--- a/pkgs/servers/http/couchdb/default.nix
+++ b/pkgs/servers/http/couchdb/default.nix
@@ -13,6 +13,18 @@ stdenv.mkDerivation rec {
   buildInputs = [ erlang icu openssl spidermonkey curl help2man sphinx which
     file pkgconfig ];
 
+  /* This patch removes the `-Werror` flag as there are warnings due to
+   * _BSD_SOURCE being deprecated in glibc >= 2.20
+   */
+  patchPhase = ''
+    patch src/couchdb/priv/Makefile.in <<EOF
+    392c392
+    < couchjs_CFLAGS = -g -Wall -Werror -D_BSD_SOURCE \$(CURL_CFLAGS) \$(JS_CFLAGS)
+    ---
+    > couchjs_CFLAGS = -g -Wall -D_BSD_SOURCE \$(CURL_CFLAGS) \$(JS_CFLAGS)
+    EOF
+  '';
+
   postInstall = ''
     sed -i -e "s|\`getopt|\`${getopt}/bin/getopt|" $out/bin/couchdb
   '';