From 05cb452f0dabd80213782dc731c53452df8ff5d0 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Fri, 18 Sep 2020 17:47:54 +0200 Subject: [PATCH] Install gsettings schemas. --- common-gui.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/common-gui.nix b/common-gui.nix index 72ef2a7..f72e5db 100644 --- a/common-gui.nix +++ b/common-gui.nix @@ -101,4 +101,21 @@ agent.pinentryFlavor = "gnome3"; }; + # https://github.com/NixOS/nixpkgs/pull/54083 + environment.extraSetup = '' + if [ -d $out/share/gsettings-schemas/ ]; then + # Create the standard schemas directory + mkdir -p $out/share/glib-2.0/schemas + # symlink any schema files to the standard schema directory + for d in $out/share/gsettings-schemas/*; do + # Force symlink, in case there are duplicates + ln -fs $d/glib-2.0/schemas/*.xml $out/share/glib-2.0/schemas + done + # and compile them + if [ -w $out/share/glib-2.0/schemas ]; then + ${pkgs.glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas + fi + fi + ''; + }