2011-12-15 12:24:25 +00:00
|
|
|
args @ {stdenv, fetchurl, erlang, spidermonkey,
|
2009-12-09 12:59:23 +00:00
|
|
|
icu, getopt, curl, ...}:
|
|
|
|
|
|
|
|
let s = import ./src-for-default.nix; in
|
2009-11-05 14:41:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2009-12-09 12:59:23 +00:00
|
|
|
inherit (s) name;
|
2009-11-05 14:41:05 +00:00
|
|
|
src = fetchurl {
|
2009-12-09 12:59:23 +00:00
|
|
|
inherit (s) url;
|
|
|
|
sha256 = s.hash;
|
2009-11-05 14:41:05 +00:00
|
|
|
};
|
|
|
|
|
2009-12-09 12:59:23 +00:00
|
|
|
buildInputs = [erlang spidermonkey icu curl];
|
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
|
|
|
|
|
|
|
configureFlags = "--with-erlang=${erlang}/lib/erlang/usr/include --with-js-include=${spidermonkey}/include --with-js-lib=${spidermonkey}/lib";
|
2009-11-05 14:41:05 +00:00
|
|
|
|
|
|
|
}
|