gnu: sugar: Augment GI_TYPELIB_PATH, don't replace it.

This is important so that the typelib files of libraries that may have been
propagated by Sugar activities are visible when launching the activities
via sugar-toolkit-gtk3's "sugar-activity3" tool.

Activities propagate their needed gobject introspection libraries; when
installed to the system profile these libraries are available to the Sugar
launchers.

* gnu/packages/sugar.scm (sugar)[arguments]: Do not replace GI_TYPELIB_PATH
but augment it.
This commit is contained in:
Ricardo Wurmus 2023-02-28 22:31:58 +01:00
parent 7dd45f86dc
commit bf542dea07
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -122,7 +122,8 @@ (define-public sugar
(wrap-program executable
`("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH")
,(python:site-packages inputs outputs)))
`("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
`("GI_TYPELIB_PATH" prefix
(,(getenv "GI_TYPELIB_PATH")))))
(find-files (string-append #$output "/bin") "^sugar.*")))))))
(inputs
(list bash-minimal