summary refs log tree commit diff
path: root/pkgs/development/libraries/gobject-introspection
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-01-19 14:17:16 +0100
committerJan Tojnar <jtojnar@gmail.com>2019-01-20 04:04:44 +0100
commitb766ec29a78b0a90734f07d512a136b3e0e18b45 (patch)
tree988012d8ecdbafd326a154560a1763755b7d2bd7 /pkgs/development/libraries/gobject-introspection
parent492f3c3faa081329d7a7667b39c53cf12811964e (diff)
downloadnixpkgs-b766ec29a78b0a90734f07d512a136b3e0e18b45.tar
nixpkgs-b766ec29a78b0a90734f07d512a136b3e0e18b45.tar.gz
nixpkgs-b766ec29a78b0a90734f07d512a136b3e0e18b45.tar.bz2
nixpkgs-b766ec29a78b0a90734f07d512a136b3e0e18b45.tar.lz
nixpkgs-b766ec29a78b0a90734f07d512a136b3e0e18b45.tar.xz
nixpkgs-b766ec29a78b0a90734f07d512a136b3e0e18b45.tar.zst
nixpkgs-b766ec29a78b0a90734f07d512a136b3e0e18b45.zip
gobject-introspection.setupHook: limit XDG_DATA_DIRS
The setup hook was adding share directory to XDG_DATA_DIRS variable whenever
it existed, even when gir-1.0 subdirectory did not.
Diffstat (limited to 'pkgs/development/libraries/gobject-introspection')
-rw-r--r--pkgs/development/libraries/gobject-introspection/setup-hook.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/gobject-introspection/setup-hook.sh b/pkgs/development/libraries/gobject-introspection/setup-hook.sh
index a79ce05a38d..a68d544cfbe 100644
--- a/pkgs/development/libraries/gobject-introspection/setup-hook.sh
+++ b/pkgs/development/libraries/gobject-introspection/setup-hook.sh
@@ -4,8 +4,8 @@ make_gobject_introspection_find_gir_files() {
       addToSearchPath GI_TYPELIB_PATH $1/lib/girepository-1.0
     fi
 
-    # XDG_DATA_DIRS: required for .gir files?
-    if [ -d "$1/share" ]; then
+    # XDG_DATA_DIRS: required for finding .gir files
+    if [ -d "$1/share/gir-1.0" ]; then
       addToSearchPath XDG_DATA_DIRS $1/share
     fi
 }