nixpkgs/pkgs/servers/http/couchdb/default.nix
Cillian de Roiste 02eb690bad Upgrading CouchDB to 1.1.1 with SpiderMonkey 185
svn path=/nixpkgs/trunk/; revision=30905
2011-12-15 12:24:25 +00:00

21 lines
521 B
Nix

args @ {stdenv, fetchurl, erlang, spidermonkey,
icu, getopt, curl, ...}:
let s = import ./src-for-default.nix; in
stdenv.mkDerivation rec {
inherit (s) name;
src = fetchurl {
inherit (s) url;
sha256 = s.hash;
};
buildInputs = [erlang spidermonkey icu curl];
postInstall = ''
sed -i -e "s|\`getopt|\`${getopt}/bin/getopt|" $out/bin/couchdb
'';
configureFlags = "--with-erlang=${erlang}/lib/erlang/usr/include --with-js-include=${spidermonkey}/include --with-js-lib=${spidermonkey}/lib";
}