2014-01-17 01:30:16 +01:00
|
|
|
{ stdenv, fetchurl, erlang, icu, openssl, spidermonkey, curl, help2man, python
|
|
|
|
, sphinx, which, file, pkgconfig, getopt }:
|
2009-11-05 15:41:05 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-01-17 01:30:16 +01:00
|
|
|
name = "couchdb-${version}";
|
2014-07-05 10:18:42 +02:00
|
|
|
version = "1.6.0";
|
2014-01-17 01:30:16 +01:00
|
|
|
|
2009-11-05 15:41:05 +01:00
|
|
|
src = fetchurl {
|
2014-06-01 16:01:22 +02:00
|
|
|
url = "mirror://apache/couchdb/source/${version}/apache-${name}.tar.gz";
|
2014-07-05 10:18:42 +02:00
|
|
|
sha256 = "0m4k7i3gibzzcabssysv42rmdr89myppc6765xr0jggwkwdxgxmx";
|
2009-11-05 15:41:05 +01:00
|
|
|
};
|
|
|
|
|
2014-06-01 16:01:22 +02:00
|
|
|
buildInputs = [ erlang icu openssl spidermonkey curl help2man sphinx which
|
|
|
|
file pkgconfig ];
|
2009-11-05 15:41:05 +01:00
|
|
|
|
2009-11-06 15:50:41 +01:00
|
|
|
postInstall = ''
|
|
|
|
sed -i -e "s|\`getopt|\`${getopt}/bin/getopt|" $out/bin/couchdb
|
|
|
|
'';
|
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.
|
|
|
|
*/
|
|
|
|
configureFlags = ''
|
|
|
|
--enable-js-trunk
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
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";
|
2014-01-17 01:30:16 +01:00
|
|
|
homepage = "http://couchdb.apache.org";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ viric garbas ];
|
|
|
|
};
|
2009-11-05 15:41:05 +01:00
|
|
|
}
|