2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, erlang, icu, openssl, spidermonkey_1_8_5, curl, help2man
|
2014-01-17 00:30:16 +00:00
|
|
|
, sphinx, which, file, pkgconfig, getopt }:
|
2009-11-05 14:41:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "couchdb";
|
2017-11-19 16:38:04 +00:00
|
|
|
version = "1.7.1";
|
2014-01-17 00:30:16 +00:00
|
|
|
|
2009-11-05 14:41:05 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://apache/couchdb/source/${version}/apache-${pname}-${version}.tar.gz";
|
2017-11-19 16:38:04 +00:00
|
|
|
sha256 = "1b9cbdrmh1i71mrwvhm17v4cf7lckpil1vvq7lpmxyn6zfk0l84i";
|
2009-11-05 14:41:05 +00:00
|
|
|
};
|
|
|
|
|
2017-11-19 16:38:04 +00:00
|
|
|
nativeBuildInputs = [ help2man which file pkgconfig sphinx ];
|
2020-10-09 18:42:05 +01:00
|
|
|
buildInputs = [ erlang icu openssl spidermonkey_1_8_5 curl ];
|
2015-01-16 07:51:22 +00:00
|
|
|
|
2009-11-06 14:50:41 +00:00
|
|
|
postInstall = ''
|
2017-11-19 16:38:04 +00:00
|
|
|
substituteInPlace $out/bin/couchdb --replace getopt "${getopt}/bin/getopt"
|
2009-11-06 14:50:41 +00:00
|
|
|
'';
|
2011-12-15 12:24:25 +00:00
|
|
|
|
2014-01-17 00:30:16 +00:00
|
|
|
/*
|
|
|
|
Versions of SpiderMonkey after the js185-1.0.0 release remove the optional
|
|
|
|
enforcement of preventing anonymous functions in a statement context. This
|
|
|
|
will most likely break your existing JavaScript code as well as render all
|
|
|
|
example code invalid.
|
2009-11-05 14:41:05 +00:00
|
|
|
|
2014-01-17 00:30:16 +00:00
|
|
|
If you wish to ignore this error pass --enable-js-trunk to ./configure.
|
|
|
|
*/
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-js-trunk"
|
|
|
|
];
|
2014-01-17 00:30:16 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "A database that uses JSON for documents, JavaScript for MapReduce queries, and regular HTTP for an API";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://couchdb.apache.org";
|
2016-01-20 16:50:15 +00:00
|
|
|
license = licenses.asl20;
|
2016-08-02 15:41:28 +01:00
|
|
|
platforms = platforms.all;
|
2019-07-03 10:27:39 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2014-01-17 00:30:16 +00:00
|
|
|
};
|
2009-11-05 14:41:05 +00:00
|
|
|
}
|