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