couchdb3: switch to beamMinimalPackages.erlang

This heavily reduces the closure size, because the regular BEAM package
includes many graphical libraries that are not needed for couchdb. This
reduces the closure size by over 1Gib in total, to about 350Mib instead
of 1.4Gib, which is a great improvement in non-graphical server
environments where couchdb is likely to be running.
This commit is contained in:
dish
2025-08-17 11:11:27 -04:00
parent 32e53310eb
commit f31b4450df
+3 -1
View File
@@ -9990,7 +9990,9 @@ with pkgs;
clickhouse-cli = with python3Packages; toPythonApplication clickhouse-cli;
couchdb3 = callPackage ../servers/http/couchdb/3.nix { };
couchdb3 = callPackage ../servers/http/couchdb/3.nix {
erlang = beamMinimalPackages.erlang;
};
dcnnt = python3Packages.callPackage ../servers/dcnnt { };