2014-01-17 00:30:16 +00:00
|
|
|
{ stdenv, fetchurl, erlang, icu, openssl, spidermonkey, curl, help2man, python
|
|
|
|
, 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}";
|
|
|
|
version = "1.5.0";
|
|
|
|
|
2009-11-05 14:41:05 +00:00
|
|
|
src = fetchurl {
|
2014-01-17 00:30:16 +00:00
|
|
|
url = "mirror://apache/couchdb/source/${version}/apache-couchdb-${version}.tar.gz";
|
|
|
|
sha256 = "1vwgcckp3svgifmagyjmgazm6387i9m6z182p6ja891i8fkb5gdb";
|
2009-11-05 14:41:05 +00:00
|
|
|
};
|
|
|
|
|
2014-01-17 00:30:16 +00:00
|
|
|
buildInputs = [
|
|
|
|
erlang icu openssl spidermonkey curl help2man sphinx which file pkgconfig
|
|
|
|
];
|
2009-11-05 14:41:05 +00:00
|
|
|
|
2009-11-06 14:50:41 +00:00
|
|
|
postInstall = ''
|
|
|
|
sed -i -e "s|\`getopt|\`${getopt}/bin/getopt|" $out/bin/couchdb
|
|
|
|
'';
|
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.
|
|
|
|
*/
|
|
|
|
configureFlags = ''
|
|
|
|
--enable-js-trunk
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Apache CouchDB is a database that uses JSON for documents, JavaScript for MapReduce queries, and regular HTTP for an API";
|
|
|
|
homepage = "http://couchdb.apache.org";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ viric garbas ];
|
|
|
|
};
|
2009-11-05 14:41:05 +00:00
|
|
|
}
|