atom: fix crash on Glib-GIO-ERROR

include gtk3 to fix atom's path such that file open dialogs wont cause atom to crash due to missing GIO files
This commit is contained in:
Yannik Sander 2018-08-05 16:30:30 +02:00 committed by Jörg Thalheim
parent f5cf11b2f1
commit 57d5e2b20d

View file

@ -1,4 +1,4 @@
{ stdenv, pkgs, fetchurl, makeWrapper, gvfs, atomEnv}:
{ stdenv, pkgs, fetchurl, makeWrapper, wrapGAppsHook, gvfs, atomEnv, gtk3}:
let
common = pname: {version, sha256, beta ? null}:
@ -14,7 +14,16 @@ let
inherit sha256;
};
nativeBuildInputs = [ makeWrapper ];
nativeBuildInputs = [
wrapGAppsHook # Fix error: GLib-GIO-ERROR **: No GSettings schemas are installed on the system
gtk3 # Fix error: GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' is not installed
];
preFixup = ''
gappsWrapperArgs+=(
--prefix "PATH" : "${gvfs}/bin" \
)
'';
buildCommand = ''
mkdir -p $out/usr/
@ -25,9 +34,6 @@ let
rm -r $out/share/lintian
rm -r $out/usr/
sed -i "s/${pname})/.${pname}-wrapped)/" $out/bin/${pname}
# sed -i "s/'${pname}'/'.${pname}-wrapped'/" $out/bin/${pname}
wrapProgram $out/bin/${pname} \
--prefix "PATH" : "${gvfs}/bin"
fixupPhase