couchdb: fix eval for cross-compilation

Use erlangR22 for the build platform.
Requires buildPackages in top-level due to no splicing at that level.
This commit is contained in:
Rick van Schijndel
2022-08-14 00:17:01 +03:00
committed by Artturin
parent 058764026b
commit 77449a077a
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, erlang, icu, openssl, spidermonkey_91
, coreutils, bash, makeWrapper, python3, nixosTests }:
, coreutils, bash, python3, nixosTests }:
stdenv.mkDerivation rec {
pname = "couchdb";
@@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-acn9b4ATNVf2igLpLdpypP1kbWRvQp9Fu4Mpow+C8g4=";
};
buildInputs = [ erlang icu openssl spidermonkey_91 (python3.withPackages(ps: with ps; [ requests ]))];
nativeBuildInputs = [
erlang
];
buildInputs = [ icu openssl spidermonkey_91 (python3.withPackages(ps: with ps; [ requests ]))];
postPatch = ''
substituteInPlace src/couch/rebar.config.script --replace '/usr/include/mozjs-91' "${spidermonkey_91.dev}/include/mozjs-91"
patchShebangs bin/rebar
+1 -1
View File
@@ -22332,7 +22332,7 @@ with pkgs;
codeowners = callPackage ../development/tools/codeowners { };
couchdb3 = callPackage ../servers/http/couchdb/3.nix {
erlang = erlangR22;
erlang = buildPackages.erlangR22;
};
dcnnt = python3Packages.callPackage ../servers/dcnnt { };