diff options
author | numkem <numkem@numkem.org> | 2018-06-15 15:35:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-15 15:35:23 -0400 |
commit | cfbef4a9e6e73f14fbfd5f0b8e9ef8966393976d (patch) | |
tree | ad1269cffa620ce756c0533e438ac86febdf4add /pkgs/servers/http/couchdb/default.nix | |
parent | 47aa1da7a020e96764ef522c2d63398aa0332798 (diff) | |
parent | 54ea1cd58aefde76f7ab2f63e955b9c622c70d1f (diff) | |
download | nixlib-cfbef4a9e6e73f14fbfd5f0b8e9ef8966393976d.tar nixlib-cfbef4a9e6e73f14fbfd5f0b8e9ef8966393976d.tar.gz nixlib-cfbef4a9e6e73f14fbfd5f0b8e9ef8966393976d.tar.bz2 nixlib-cfbef4a9e6e73f14fbfd5f0b8e9ef8966393976d.tar.lz nixlib-cfbef4a9e6e73f14fbfd5f0b8e9ef8966393976d.tar.xz nixlib-cfbef4a9e6e73f14fbfd5f0b8e9ef8966393976d.tar.zst nixlib-cfbef4a9e6e73f14fbfd5f0b8e9ef8966393976d.zip |
Merge pull request #1 from NixOS/master
Sync with upstream
Diffstat (limited to 'pkgs/servers/http/couchdb/default.nix')
-rw-r--r-- | pkgs/servers/http/couchdb/default.nix | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/pkgs/servers/http/couchdb/default.nix b/pkgs/servers/http/couchdb/default.nix index 54412d2ab400..43334819dc56 100644 --- a/pkgs/servers/http/couchdb/default.nix +++ b/pkgs/servers/http/couchdb/default.nix @@ -3,30 +3,18 @@ stdenv.mkDerivation rec { name = "couchdb-${version}"; - version = "1.6.1"; + version = "1.7.1"; src = fetchurl { url = "mirror://apache/couchdb/source/${version}/apache-${name}.tar.gz"; - sha256 = "09w6ijj9l5jzh81nvc3hrlqp345ajg3haj353g9kxkik6wbinq2s"; + sha256 = "1b9cbdrmh1i71mrwvhm17v4cf7lckpil1vvq7lpmxyn6zfk0l84i"; }; - 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 - ''; + nativeBuildInputs = [ help2man which file pkgconfig sphinx ]; + buildInputs = [ erlang icu openssl spidermonkey curl ]; postInstall = '' - sed -i -e "s|\`getopt|\`${getopt}/bin/getopt|" $out/bin/couchdb + substituteInPlace $out/bin/couchdb --replace getopt "${getopt}/bin/getopt" ''; /* @@ -41,10 +29,11 @@ stdenv.mkDerivation rec { --enable-js-trunk ''; - meta = { + meta = with stdenv.lib; { description = "A database that uses JSON for documents, JavaScript for MapReduce queries, and regular HTTP for an API"; - homepage = "http://couchdb.apache.org"; - license = stdenv.lib.licenses.asl20; - maintainers = with stdenv.lib.maintainers; [ viric garbas ]; + homepage = http://couchdb.apache.org; + license = licenses.asl20; + platforms = platforms.all; + maintainers = with maintainers; [ garbas ]; }; } |