diff --git a/pkgs/by-name/we/weblate/package.nix b/pkgs/by-name/we/weblate/package.nix index 04749c37a459..f18891ea3379 100644 --- a/pkgs/by-name/we/weblate/package.nix +++ b/pkgs/by-name/we/weblate/package.nix @@ -21,6 +21,15 @@ let django = prev.django_5; }; }; + + GI_TYPELIB_PATH = lib.makeSearchPathOutput "out" "lib/girepository-1.0" [ + pango + harfbuzz + librsvg + gdk-pixbuf + glib + gobject-introspection + ]; in python.pkgs.buildPythonApplication rec { pname = "weblate"; @@ -157,14 +166,10 @@ python.pkgs.buildPythonApplication rec { }; # We don't just use wrapGAppsNoGuiHook because we need to expose GI_TYPELIB_PATH - GI_TYPELIB_PATH = lib.makeSearchPathOutput "out" "lib/girepository-1.0" [ - pango - harfbuzz - librsvg - gdk-pixbuf - glib - gobject-introspection - ]; + env = { + inherit GI_TYPELIB_PATH; + }; + makeWrapperArgs = [ "--set GI_TYPELIB_PATH \"$GI_TYPELIB_PATH\"" ]; passthru = {