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