2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl, erlang, icu, openssl, spidermonkey, 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 {
|
2014-01-17 00:30:16 +00:00
|
|
|
name = "couchdb-${version}";
|
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 {
|
2014-06-01 15:01:22 +01:00
|
|
|
url = "mirror://apache/couchdb/source/${version}/apache-${name}.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 ];
|
|
|
|
buildInputs = [ erlang icu openssl spidermonkey 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
|
|
|
|
2016-01-20 16:50:15 +00:00
|
|
|
meta = with stdenv.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";
|
2017-08-01 21:03:30 +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;
|
2016-01-20 16:50:15 +00:00
|
|
|
maintainers = with maintainers; [ garbas ];
|
2014-01-17 00:30:16 +00:00
|
|
|
};
|
2009-11-05 14:41:05 +00:00
|
|
|
}
|