git.iko.soy/typeable/nixpkgs
on master help sign in
emacs: fix runtime GTK3 dependencies

Fixes #23845.

commita8785daf0ea794f1791c598c6cac9db3858b45bb authorNikolay Amiantov <ab@fmap.me> dateMon 13 Mar 2017, 22:06 (10 years ago) parent6cc1200
1 file changed+5−4
pkgs/applications/editors/emacs/default.nix+5−4
pkgs/applications/editors/emacs/default.nix+5−4
@@ -4,7 +4,7 @@
44, alsaLib, cairo, acl, gpm, AppKit, CoreWLAN, Kerberos, GSS, ImageIO
55, withX ? !stdenv.isDarwin
66, withGTK2 ? false, gtk2 ? null
7−, withGTK3 ? true, gtk3 ? null
7+, withGTK3 ? true, gtk3 ? null, gsettings_desktop_schemas ? null
88, withXwidgets ? false, webkitgtk24x ? null, wrapGAppsHook ? null, glib_networking ? null
99, withCsrc ? true
1010, srcRepo ? false, autoconf ? null, automake ? null, texinfo ? null
@@ -57,7 +57,8 @@ stdenv.mkDerivation rec {
5757 ];
5858
5959 nativeBuildInputs = [ pkgconfig ]
60− ++ lib.optionals srcRepo [ autoconf automake texinfo ];
60+ ++ lib.optionals srcRepo [ autoconf automake texinfo ]
61+ ++ lib.optional (withX && (withGTK3 || withXwidgets)) wrapGAppsHook;
6162
6263 buildInputs =
6364 [ ncurses gconf libxml2 gnutls alsaLib acl gpm gettext ]
@@ -66,9 +67,9 @@ stdenv.mkDerivation rec {
6667 [ xlibsWrapper libXaw Xaw3d libXpm libpng libjpeg libungif libtiff librsvg libXft
6768 imagemagick gconf ]
6869 ++ lib.optional (withX && withGTK2) gtk2
69− ++ lib.optional (withX && withGTK3) gtk3
70+ ++ lib.optionals (withX && withGTK3) [ gtk3 gsettings_desktop_schemas ]
7071 ++ lib.optional (stdenv.isDarwin && withX) cairo
71− ++ lib.optionals withXwidgets [ webkitgtk24x wrapGAppsHook glib_networking ];
72+ ++ lib.optionals (withX && withXwidgets) [ webkitgtk24x glib_networking ];
7273
7374 propagatedBuildInputs = lib.optionals stdenv.isDarwin [ AppKit GSS ImageIO ];
7475