From 91d3482f24790c8e23aa1e6282e3185235184a61 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 26 Nov 2025 17:36:21 +0100 Subject: [PATCH 1/2] weblate: add missing typelib for cairo --- pkgs/by-name/we/weblate/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/we/weblate/package.nix b/pkgs/by-name/we/weblate/package.nix index 10f23f721c9b..f2625af2956f 100644 --- a/pkgs/by-name/we/weblate/package.nix +++ b/pkgs/by-name/we/weblate/package.nix @@ -8,6 +8,7 @@ librsvg, gdk-pixbuf, glib, + gobject-introspection, borgbackup, writeText, nixosTests, @@ -154,6 +155,7 @@ python.pkgs.buildPythonApplication rec { librsvg gdk-pixbuf glib + gobject-introspection ]; makeWrapperArgs = [ "--set GI_TYPELIB_PATH \"$GI_TYPELIB_PATH\"" ]; From 1c878b17cc59ca1ae8f8afd04da5964c5acb6b77 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 26 Nov 2025 21:22:33 +0100 Subject: [PATCH 2/2] nixos/weblate: add gunicorn preloading --- nixos/modules/services/web-apps/weblate.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/weblate.nix b/nixos/modules/services/web-apps/weblate.nix index 36346ab5e012..2219c0d59a58 100644 --- a/nixos/modules/services/web-apps/weblate.nix +++ b/nixos/modules/services/web-apps/weblate.nix @@ -369,9 +369,10 @@ in }); in '' - ${gunicorn}/bin/gunicorn \ + ${lib.getExe gunicorn} \ --name=weblate \ --bind='unix:///run/weblate.socket' \ + --preload \ weblate.wsgi ''; ExecReload = "${lib.getExe' pkgs.coreutils "kill"} -s HUP $MAINPID";