diff options
author | Arnout Engelen <arnout@bzzt.net> | 2021-01-02 12:47:38 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2021-01-02 14:04:03 +0100 |
commit | cdd8031fca5169c2ff952e57e2c81ccd5e9fde03 (patch) | |
tree | b5873ef692afc1a55ef3733b87e2458054db8cae /pkgs/development/arduino | |
parent | 0224ebfc4cdeac3b4f6c9b813dbce5511221a74a (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.nix | 5 |
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 07e9c7bdb0281..456a8d8b81c52 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 |