2018-07-20 17:44:44 -07:00
|
|
|
{ stdenv, fetchurl, erlang, icu, openssl, spidermonkey, curl, help2man
|
2014-01-16 16:30:16 -08:00
|
|
|
, sphinx, which, file, pkgconfig, getopt }:
|
2009-11-05 06:41:05 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "couchdb";
|
2017-11-19 08:38:04 -08:00
|
|
|
version = "1.7.1";
|
2014-01-16 16:30:16 -08:00
|
|
|
|
2009-11-05 06:41:05 -08:00
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "mirror://apache/couchdb/source/${version}/apache-${pname}-${version}.tar.gz";
|
2017-11-19 08:38:04 -08:00
|
|
|
sha256 = "1b9cbdrmh1i71mrwvhm17v4cf7lckpil1vvq7lpmxyn6zfk0l84i";
|
2009-11-05 06:41:05 -08:00
|
|
|
};
|
|
|
|
|
2017-11-19 08:38:04 -08:00
|
|
|
nativeBuildInputs = [ help2man which file pkgconfig sphinx ];
|
|
|
|
buildInputs = [ erlang icu openssl spidermonkey curl ];
|
2015-01-15 23:51:22 -08:00
|
|
|
|
2009-11-06 06:50:41 -08:00
|
|
|
postInstall = ''
|
2017-11-19 08:38:04 -08:00
|
|
|
substituteInPlace $out/bin/couchdb --replace getopt "${getopt}/bin/getopt"
|
2009-11-06 06:50:41 -08:00
|
|
|
'';
|
2011-12-15 04:24:25 -08:00
|
|
|
|
2014-01-16 16:30:16 -08: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 06:41:05 -08:00
|
|
|
|
2014-01-16 16:30:16 -08:00
|
|
|
If you wish to ignore this error pass --enable-js-trunk to ./configure.
|
|
|
|
*/
|
2018-07-25 14:44:21 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-js-trunk"
|
|
|
|
];
|
2014-01-16 16:30:16 -08:00
|
|
|
|
2016-01-20 08:50:15 -08:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 07:21:08 -07:00
|
|
|
description = "A database that uses JSON for documents, JavaScript for MapReduce queries, and regular HTTP for an API";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://couchdb.apache.org";
|
2016-01-20 08:50:15 -08:00
|
|
|
license = licenses.asl20;
|
2016-08-02 07:41:28 -07:00
|
|
|
platforms = platforms.all;
|
2019-07-03 02:27:39 -07:00
|
|
|
maintainers = with maintainers; [ ];
|
2014-01-16 16:30:16 -08:00
|
|
|
};
|
2009-11-05 06:41:05 -08:00
|
|
|
}
|