diff options
Diffstat (limited to 'pkgs/development/libraries/gobject-introspection/setup-hook.sh')
-rw-r--r-- | pkgs/development/libraries/gobject-introspection/setup-hook.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gobject-introspection/setup-hook.sh b/pkgs/development/libraries/gobject-introspection/setup-hook.sh new file mode 100644 index 000000000000..d411ad69dc43 --- /dev/null +++ b/pkgs/development/libraries/gobject-introspection/setup-hook.sh @@ -0,0 +1,14 @@ +make_gobject_introspection_find_gir_files() { + + # required for .typelib files, eg mypaint git version + if [ -d "$1/lib/girepository-1.0" ]; then + addToSearchPath GI_TYPELIB_PATH $1/lib/girepository-1.0 + fi + + # XDG_DATA_DIRS: required for .gir files? + if [ -d "$1/share" ]; then + addToSearchPath XDG_DATA_DIRS $1/share + fi +} + +envHooks+=(make_gobject_introspection_find_gir_files) |