From f31b4450df40031919ce48178ed7a12e1cadf68d Mon Sep 17 00:00:00 2001 From: dish Date: Sun, 17 Aug 2025 11:11:27 -0400 Subject: [PATCH] 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. --- pkgs/top-level/all-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 413c9d330f41..4d210e107fc0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };