couchdb: use quickjs instead of spidermonkey

Allows us to drop spidermonkey_91, which reached EOL years ago. We won't
switch to the latest supported spidermonkey version for couchdb(128)
because as of commit its support ends in 3 weeks, so there would be no
use trying to update it again after this. Better to just switch now and
avoid pain in the future.
This commit is contained in:
dish
2025-08-25 19:29:13 -04:00
parent 1b7a38082c
commit 4acde7282a
+2 -5
View File
@@ -5,7 +5,6 @@
erlang,
icu,
openssl,
spidermonkey_91,
python3,
nixosTests,
}:
@@ -20,8 +19,6 @@ stdenv.mkDerivation rec {
};
postPatch = ''
substituteInPlace src/couch/rebar.config.script --replace '/usr/include/mozjs-91' "${spidermonkey_91.dev}/include/mozjs-91"
substituteInPlace configure --replace '/usr/include/''${SM_HEADERS}' "${spidermonkey_91.dev}/include/mozjs-91"
patchShebangs bin/rebar
''
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
@@ -37,14 +34,14 @@ stdenv.mkDerivation rec {
buildInputs = [
icu
openssl
spidermonkey_91
(python3.withPackages (ps: with ps; [ requests ]))
];
dontAddPrefix = "True";
configureFlags = [
"--spidermonkey-version=91"
"--js-engine=quickjs"
"--disable-spidermonkey"
];
buildFlags = [