From cdd8031fca5169c2ff952e57e2c81ccd5e9fde03 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sat, 2 Jan 2021 12:47:38 +0100 Subject: [PATCH] arduino-core: fix 'Save as...' Before, 'Save as..' would crash because it tries to use GSettings to find some settings, but the GSettings schema's could not be found in the XDG_DATA_DIRS. Adding the glib setup hook populates GSETTINGS_SCHEMAS_PATH so wrapGAppsHook can add it to XDG_DATA_DIRS, fixing 'Save as..'. --- pkgs/development/arduino/arduino-core/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/arduino/arduino-core/default.nix b/pkgs/development/arduino/arduino-core/default.nix index 07e9c7bdb028..456a8d8b81c5 100644 --- a/pkgs/development/arduino/arduino-core/default.nix +++ b/pkgs/development/arduino/arduino-core/default.nix @@ -112,7 +112,10 @@ stdenv.mkDerivation rec { }; - nativeBuildInputs = [ wrapGAppsHook ]; + # the glib setup hook will populate GSETTINGS_SCHEMAS_PATH, + # wrapGAppHooks (among other things) adds it to XDG_DATA_DIRS + # so 'save as...' works: + nativeBuildInputs = [ glib wrapGAppsHook ]; buildInputs = [ jdk ant