Change:
I installed emacs via , but when I try open file dialog it crashes with error (emacs:4798): WARNING : Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files (emacs:4798): GLib-GIO-CRITICAL : gsettingsschemasourcelookup: assertion 'source != NULL' failed (emacs:4798): GLib-GIO-ERROR : No GSettings schemas are installed on the system Fatal error 5: Trace/breakpoint trap Backtrace: emacs[0x509edc] emacs[0x4ef82b] emacs[0x50827e] emacs[0x5084a9] emacs[0x508549] /nix/store/68sa3m89shpfaqq1b9xp5p1360vqhwx6-glibc-(+0x11840)[0x7fa04bc9a840] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libglib-(+0x4f731)[0x7fa04eec5731] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libglib-(glogdefaulthandler+0xcc)[0x7fa04eec67bc] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libglib-(glogv+0x1f4)[0x7fa04eec6ae4] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libglib-(glog+0x8f)[0x7fa04eec6cef] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libgio-(+0x107db2)[0x7fa04f4e3db2] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libgobject-(+0x1517b)[0x7fa04f19f17b] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libgobject-(gobjectnewvalist+0x163)[0x7fa04f1a0a53] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libgobject-(gobjectnew+0xf1)[0x7fa04f1a0fa1] /nix/store/w1r76jqpwqy34lcm9y0a3r4bbk6i4af1-gtk+3-3.22.8/lib/libgtk-3.so.0(+0x1c332c)[0x7fa0509f332c] /nix/store/w1r76jqpwqy34lcm9y0a3r4bbk6i4af1-gtk+3-3.22.8/lib/libgtk-3.so.0(+0x1c6820)[0x7fa0509f6820] /nix/store/w1r76jqpwqy34lcm9y0a3r4bbk6i4af1-gtk+3-3.22.8/lib/libgtk-3.so.0(+0x1bee54)[0x7fa0509eee54] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libgobject-(gclosureinvoke+0x145)[0x7fa04f199a85] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libgobject-(+0x21a71)[0x7fa04f1aba71] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libgobject-(gsignalemitvalist+0xfbc)[0x7fa04f1b481c] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libgobject-(gsignalemitbyname+0x4a5)[0x7fa04f1b5015] /nix/store/w1r76jqpwqy34lcm9y0a3r4bbk6i4af1-gtk+3-3.22.8/lib/libgtk-3.so.0(+0x1ccd24)[0x7fa0509fcd24] /nix/store/w1r76jqpwqy34lcm9y0a3r4bbk6i4af1-gtk+3-3.22.8/lib/libgtk-3.so.0(+0x1cd026)[0x7fa0509fd026] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libgobject-(gobjectsetproperty+0x20b)[0x7fa04f1a1d6b] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libgobject-(+0x151e9)[0x7fa04f19f1e9] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libgobject-(gobjectnewvalist+0x163)[0x7fa04f1a0a53] /nix/store/k5qdcln2yvdwy55xlkmgl998a2hfb427-glib-2.50.3/lib/libgobject-(gobjectnew+0xf1)[0x7fa04f1a0fa1] /nix/store/w1r76jqpwqy34lcm9y0a3r4bbk6i4af1-gtk+3-3.22.8/lib/libgtk-3.so.0(gtkfilechooserdialog_new+0x74)[0x7fa0509ef6a4] emacs[0x4de2c0] emacs[0x4e1868] emacs[0x4cede4] emacs[0x565ff7] emacs[0x59f163] emacs[0x565e2b] emacs[0x59f163] emacs[0x565e2b] emacs[0x59f163] emacs[0x565e2b] emacs[0x59f163] emacs[0x56556d] emacs[0x568ac7] ... Trace/breakpoint trap I opened of emacs, but "wrapGAppsHook" is already used. emacs; to open file or create new System: NixOS 17.03beta320. (Gorilla) Nix version: nix-env (Nix) 1.11.7 Nixpkgs version: "17.03beta320."
Using info from here: I in = { packageOverrides = pkgs: { emacs = ( { # Use gtk2 withGTK2 = true; withGTK3 = false; }); }; }; After building emacs with gtk2 issue was resolved. Why don't make emacs build with gtk2 by default?
Can you try it with ? We try to move from GTK2 currently; that's why when it's possible we use other toolkits.
thanks this fix works for me.
Thank you for testing!

Discussion:
<ins> {stdenv, fetchurl, yacc, flex, pkgconfig, glib, xz}: stdenv.mkDerivation rec { version = "0.15.2"; name = "vala-${version}"; src = fetchurl { url = "mirror://gnome/sources/vala/0.15/${name}.tar.xz"; sha256 = "0g71zq6dpqrw2f40wfzdf18fdw41ymr17laqniy2kr622hkxdi8w"; }; buildNativeInputs = [ yacc flex pkgconfig xz ]; buildInputs = [ glib ]; meta = { description = "Compiler for the GObject type system"; homepage = "http://live.gnome.org/Vala"; license = "free-copyleft"; platforms = stdenv.lib.platforms.all; maintainers = [ stdenv.lib.maintainers.antono ]; }; } </ins>

<ins> {stdenv, fetchurl, yacc, flex, pkgconfig, glib, xz}: stdenv.mkDerivation rec { version = "0.16.1"; name = "vala-${version}"; src = fetchurl { url = "mirror://gnome/sources/vala/0.16/${name}.tar.xz"; sha256 = "1n708n9ixyy9qrzyv1wf4ybvcclx43ib9ki028wwpvkz6kv8zqlb"; }; buildNativeInputs = [ yacc flex pkgconfig xz ]; buildInputs = [ glib ]; meta = { description = "Compiler for the GObject type system"; homepage = "http://live.gnome.org/Vala"; license = "free-copyleft"; platforms = stdenv.lib.platforms.all; maintainers = [ stdenv.lib.maintainers.antono ]; }; } </ins>

{stdenv, fetchurl, yacc, flex, pkgconfig, glib, xz}: stdenv.mkDerivation rec { <del> name = "vala-0.14.2"; </del> <ins> version = "0.17.2"; name = "vala-${version}"; </ins> src = fetchurl { <del> url = mirror://gnome/sources/vala/0.14/vala-0.14.2.tar.xz; sha256 = "1l5kllw9vpwv24lzv9fp64l3sad46wpxgvsgryrwlrjg91w6jzl0"; </del> <ins> url = "mirror://gnome/sources/vala/0.17/${name}.tar.xz"; sha256 = "09i2s0dwmrk147ind2dx7nq845g12fp6fsjqrphhrr0dbi0zzgh3"; </ins> }; buildNativeInputs = [ yacc flex pkgconfig xz ];

meta = { description = "Compiler for the GObject type system"; homepage = "http://live.gnome.org/Vala"; <ins> license = "free-copyleft"; platforms = stdenv.lib.platforms.all; maintainers = [ stdenv.lib.maintainers.antono ]; </ins> }; }

urweb = callPackage ../development/compilers/urweb { }; <del> vala = callPackage ../development/compilers/vala { }; </del> <ins> vala = vala17; vala15 = callPackage ../development/compilers/vala/15.2.nix { }; vala16 = callPackage ../development/compilers/vala/16.1.nix { }; vala17 = callPackage ../development/compilers/vala/default.nix { }; </ins> visualcpp = callPackage ../development/compilers/visual-c++ { };