2009-11-06 15:50:41 +01:00
|
|
|
{stdenv, fetchurl, erlang, spidermonkey, icu, getopt}:
|
2009-11-05 15:41:05 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "apache-couchdb-0.8.1-incubating";
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://apache/incubator/couchdb/0.8.1-incubating/apache-couchdb-0.8.1-incubating.tar.gz;
|
|
|
|
sha256 = "0w59kl7p5mgym1cd7j2pji6fcjq0y7yabcx2hx43vrcyjw31azv4";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [erlang spidermonkey icu];
|
|
|
|
|
2009-11-06 15:50:41 +01:00
|
|
|
postInstall = ''
|
|
|
|
sed -i -e "s|\`getopt|\`${getopt}/bin/getopt|" $out/bin/couchdb
|
|
|
|
'';
|
|
|
|
|
2009-11-05 15:41:05 +01:00
|
|
|
configureFlags = "--with-erlang=${erlang}/lib/erlang/usr/include";
|
|
|
|
|
|
|
|
}
|