summary refs log tree commit diff
path: root/pkgs/development/libraries/glib
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-11-21 22:32:16 +0100
committerJan Tojnar <jtojnar@gmail.com>2019-11-21 22:32:16 +0100
commit1c9ba9f6ababe1c1555fb44fb64c56e5e36df80a (patch)
treed99ba53509f83c8b624922b967d50333b6d5b6e8 /pkgs/development/libraries/glib
parentb94b8ca3878df09f79d42f197bd7c9bf2740bae7 (diff)
downloadnixpkgs-1c9ba9f6ababe1c1555fb44fb64c56e5e36df80a.tar
nixpkgs-1c9ba9f6ababe1c1555fb44fb64c56e5e36df80a.tar.gz
nixpkgs-1c9ba9f6ababe1c1555fb44fb64c56e5e36df80a.tar.bz2
nixpkgs-1c9ba9f6ababe1c1555fb44fb64c56e5e36df80a.tar.lz
nixpkgs-1c9ba9f6ababe1c1555fb44fb64c56e5e36df80a.tar.xz
nixpkgs-1c9ba9f6ababe1c1555fb44fb64c56e5e36df80a.tar.zst
nixpkgs-1c9ba9f6ababe1c1555fb44fb64c56e5e36df80a.zip
glib.setupHook: fix make_glib_find_gsettings_schemas
GSETTINGS_SCHEMAS_PATH needs to contain a list of directories containing glib-2.0/schemas.
770a4c7946a1c55bf6295a34a42e1c4b657d1088 broke that by accidentally adding glib-2.0 to the paths.
Diffstat (limited to 'pkgs/development/libraries/glib')
-rw-r--r--pkgs/development/libraries/glib/setup-hook.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/glib/setup-hook.sh b/pkgs/development/libraries/glib/setup-hook.sh
index 20714ea7ab8..37c750b8db6 100644
--- a/pkgs/development/libraries/glib/setup-hook.sh
+++ b/pkgs/development/libraries/glib/setup-hook.sh
@@ -1,8 +1,8 @@
 
 make_glib_find_gsettings_schemas() {
     # For packages that need gschemas of other packages (e.g. empathy)
-    for maybe_dir in "$1"/share/gsettings-schemas/*/glib-2.0; do
-        if [[ -d "$maybe_dir/schemas" ]]; then
+    for maybe_dir in "$1"/share/gsettings-schemas/*; do
+        if [[ -d "$maybe_dir/glib-2.0/schemas" ]]; then
             addToSearchPath GSETTINGS_SCHEMAS_PATH "$maybe_dir"
         fi
     done