-
-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
couchdb: add support for version 3.1.0
- Loading branch information
Showing
5 changed files
with
124 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4882,6 +4882,12 @@ | |
githubId = 1202012; | ||
name = "Ignat Loskutov"; | ||
}; | ||
lostnet = { | ||
email = "[email protected]"; | ||
github = "lostnet"; | ||
githubId = 1422781; | ||
name = "Will Young"; | ||
}; | ||
louisdk1 = { | ||
email = "[email protected]"; | ||
github = "louisdk1"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ stdenv, fetchurl, erlang, icu, openssl, spidermonkey | ||
, coreutils, bash, makeWrapper, python3 }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "couchdb"; | ||
version = "3.1.0"; | ||
|
||
|
||
# when updating this, please consider bumping the erlang/OTP version | ||
# in all-packages.nix | ||
src = fetchurl { | ||
url = "mirror://apache/couchdb/source/${version}/apache-${pname}-${version}.tar.gz"; | ||
sha256 = "1vgqj3zsrkdqgnwzji3mqkapnfd6kq466f5xnya0fvzzl6bcfrs8"; | ||
}; | ||
|
||
buildInputs = [ erlang icu openssl spidermonkey (python3.withPackages(ps: with ps; [ requests ]))]; | ||
postPatch = '' | ||
substituteInPlace src/couch/rebar.config.script --replace '/usr/include/mozjs-68' "${spidermonkey.dev}/include/mozjs-68" | ||
patchShebangs bin/rebar | ||
''; | ||
|
||
dontAddPrefix= "True"; | ||
configureFlags = ["--spidermonkey-version=68"]; | ||
buildFlags = ["release"]; | ||
|
||
installPhase = '' | ||
mkdir -p $out | ||
cp -r rel/couchdb/* $out | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A database that uses JSON for documents, JavaScript for MapReduce queries, and regular HTTP for an API"; | ||
homepage = "http://couchdb.apache.org"; | ||
license = licenses.asl20; | ||
platforms = platforms.all; | ||
maintainers = with maintainers; [ lostnet ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters