summaryrefslogtreecommitdiffstats
path: root/pkgs/development/arduino
diff options
context:
space:
mode:
authorArnout Engelen <arnout@bzzt.net>2021-01-02 12:47:38 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2021-01-02 14:04:03 +0100
commitcdd8031fca5169c2ff952e57e2c81ccd5e9fde03 (patch)
treeb5873ef692afc1a55ef3733b87e2458054db8cae /pkgs/development/arduino
parent0224ebfc4cdeac3b4f6c9b813dbce5511221a74a (diff)
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..'.
Diffstat (limited to 'pkgs/development/arduino')
-rw-r--r--pkgs/development/arduino/arduino-core/default.nix5
1 files changed, 4 insertions, 1 deletions
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