diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-01-16 08:51:22 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-01-16 08:51:22 +0100 |
commit | 4361a7a597441ada24399896beb94dbe563f465f (patch) | |
tree | 9cfd1afe958684c1f059a2eef7451a36d0a974cc /pkgs/servers/http/couchdb | |
parent | 06f722654108003be5b689921178bfe67047e7cb (diff) |
couchdb: fix build
Diffstat (limited to 'pkgs/servers/http/couchdb')
-rw-r--r-- | pkgs/servers/http/couchdb/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/servers/http/couchdb/default.nix b/pkgs/servers/http/couchdb/default.nix index 0e7146175446..54412d2ab400 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 ''; |