2009-12-09 12:59:23 +00:00
|
|
|
args @ {stdenv, fetchurl, erlang, spidermonkey,
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2009-11-05 14:41:05 +00:00
|
|
|
configureFlags = "--with-erlang=${erlang}/lib/erlang/usr/include";
|
|
|
|
|
|
|
|
}
|