weblate: move env variable(s) into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-14 12:25:18 +01:00
parent ee95484c64
commit b2ede7e2e8
+13 -8
View File
@@ -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 = {