summaryrefslogtreecommitdiff
path: root/doc/languages-frameworks
diff options
context:
space:
mode:
authorLeah Amelia Chen <hi@pluie.me>2024-12-12 12:41:58 +0100
committerJan Tojnar <jtojnar@gmail.com>2026-01-19 02:18:28 +0100
commit1def69720c0ca26c3f3238622f8c535a2ba764a7 (patch)
tree7e4879ded69a37231ce5f98a0cd0d58f6f13d0be /doc/languages-frameworks
parentlibglycin: Add setup hook for patching Rust vendor directory (diff)
downloadnixpkgs-1def69720c0ca26c3f3238622f8c535a2ba764a7.tar.gz
libglycin: Introduce setup hook for adding loader paths to wrapper
This setup hook discovers glycin loaders in the inputs list it is placed into, and adds them to `gappsWrapperArgs`. This should simplify glycin-dependent programs’ expressions. Just add `libglycin.setupHook` (for Rust programs) or `libglycin` (for other languages) to `buildInputs`. The latter will also pull in the setup hook. Note, the setup hook needs to go to the `buildInputs` since we cannot have a different offset when used as standalone hook instead of propagated from `libglycin`. We chose `hostOffset` to make it work with the proper placement of `libglycin` in `buildInputs`. Co-authored-by: Seth Flynn <getchoo@tuta.io> Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r--doc/languages-frameworks/gnome.section.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/languages-frameworks/gnome.section.md b/doc/languages-frameworks/gnome.section.md
index 252f7ea3dea7..ecfda62b5700 100644
--- a/doc/languages-frameworks/gnome.section.md
+++ b/doc/languages-frameworks/gnome.section.md
@@ -129,6 +129,8 @@ The hooks do the following:
- []{#ssec-gnome-hooks-gst-grl-plugins} Setup hooks of `gst_all_1.gstreamer` and `grilo` will populate the `GST_PLUGIN_SYSTEM_PATH_1_0` and `GRL_PLUGIN_PATH` variables, respectively, which will then be added to the wrapper by `wrapGApps*` hook.
+- []{#ssec-gnome-hooks-libglycin} `libglycin`'s [setup hook](#libglycin-setup-hook) will populate `XDG_DATA_DIRS` with the path to the loaders.
+
You can also pass additional arguments to `makeWrapper` using `gappsWrapperArgs` in `preFixup` hook:
```nix