about summary refs log tree commit diff
path: root/pkgs/development/libraries/glib
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-01-17 11:03:56 +0100
committerGitHub <noreply@github.com>2019-01-17 11:03:56 +0100
commit31ff786277d157b71253d178d2da4402f23d317d (patch)
tree9e11075345329474f7899b7046f945531facc498 /pkgs/development/libraries/glib
parent6d3ed732f8b7f712766a0dcb66ffa3cc2842a090 (diff)
parent388faed25c88e2304d37a190e43e97a9a2ae23c5 (diff)
downloadnixlib-31ff786277d157b71253d178d2da4402f23d317d.tar
nixlib-31ff786277d157b71253d178d2da4402f23d317d.tar.gz
nixlib-31ff786277d157b71253d178d2da4402f23d317d.tar.bz2
nixlib-31ff786277d157b71253d178d2da4402f23d317d.tar.lz
nixlib-31ff786277d157b71253d178d2da4402f23d317d.tar.xz
nixlib-31ff786277d157b71253d178d2da4402f23d317d.tar.zst
nixlib-31ff786277d157b71253d178d2da4402f23d317d.zip
Merge pull request #54130 from jtojnar/glib-gsettings-prefix
glib.setupHook: fix gsettings-schemas location
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 5275529991f7..a1cb1f40c58a 100644
--- a/pkgs/development/libraries/glib/setup-hook.sh
+++ b/pkgs/development/libraries/glib/setup-hook.sh
@@ -15,9 +15,9 @@ preInstallPhases+=" glibPreInstallPhase"
 
 glibPreFixupPhase() {
     # Move gschemas in case the install flag didn't help
-    if [ -d "${!outputLib}/share/glib-2.0/schemas" ]; then
+    if [ -d "$prefix/share/glib-2.0/schemas" ]; then
         mkdir -p "${!outputLib}/share/gsettings-schemas/$name/glib-2.0"
-        mv "${!outputLib}/share/glib-2.0/schemas" "${!outputLib}/share/gsettings-schemas/$name/glib-2.0/"
+        mv "$prefix/share/glib-2.0/schemas" "${!outputLib}/share/gsettings-schemas/$name/glib-2.0/"
     fi
 
     addToSearchPath GSETTINGS_SCHEMAS_PATH "${!outputLib}/share/gsettings-schemas/$name"