git.iko.soy/typeable/nixpkgs
on master help sign in
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..'.

commitcdd8031fca5169c2ff952e57e2c81ccd5e9fde03 authorArnout Engelen <arnout@bzzt.net> dateSat 2 Jan 2021, 12:47 (6 years ago) parent0224ebf
1 file changed+4−1
pkgs/development/arduino/arduino-core/default.nix+4−1
pkgs/development/arduino/arduino-core/default.nix+4−1
@@ -112,7 +112,10 @@ stdenv.mkDerivation rec {
112112 };
113113
114114
115− nativeBuildInputs = [ wrapGAppsHook ];
115+ # the glib setup hook will populate GSETTINGS_SCHEMAS_PATH,
116+ # wrapGAppHooks (among other things) adds it to XDG_DATA_DIRS
117+ # so 'save as...' works:
118+ nativeBuildInputs = [ glib wrapGAppsHook ];
116119 buildInputs = [
117120 jdk
118121 ant