@@ -3,30 +3,18 @@
33
44stdenv.mkDerivation rec {
55 name = "couchdb-${version}";
6− version = "1.6.1";
6+ version = "1.7.1";
77
88 src = fetchurl {
99 url = "mirror://apache/couchdb/source/${version}/apache-${name}.tar.gz";
10− sha256 = "09w6ijj9l5jzh81nvc3hrlqp345ajg3haj353g9kxkik6wbinq2s";
10+ sha256 = "1b9cbdrmh1i71mrwvhm17v4cf7lckpil1vvq7lpmxyn6zfk0l84i";
1111 };
1212
13− buildInputs = [ erlang icu openssl spidermonkey curl help2man sphinx which
14− file pkgconfig ];
15−
16− /* This patch removes the `-Werror` flag as there are warnings due to
17− * _BSD_SOURCE being deprecated in glibc >= 2.20
18− */
19− patchPhase = ''
20− patch src/couchdb/priv/Makefile.in <<EOF
21− 392c392
22− < couchjs_CFLAGS = -g -Wall -Werror -D_BSD_SOURCE \$(CURL_CFLAGS) \$(JS_CFLAGS)
23− ---
24− > couchjs_CFLAGS = -g -Wall -D_BSD_SOURCE \$(CURL_CFLAGS) \$(JS_CFLAGS)
25− EOF
26− '';
13+ nativeBuildInputs = [ help2man which file pkgconfig sphinx ];
14+ buildInputs = [ erlang icu openssl spidermonkey curl ];
2715
2816 postInstall = ''
29− sed -i -e "s|\`getopt|\`${getopt}/bin/getopt|" $out/bin/couchdb
17+ substituteInPlace $out/bin/couchdb --replace getopt "${getopt}/bin/getopt"
3018 '';
3119
3220 /*