git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #16987 from binarin/emacs-25-with-xwidgets

emacs25pre: Add option for building with xwidgets

commitc9a3cbb122a6ee28db2d218c3a971c3f13ed0353 authorDamien Cassou <damien@cassou.me> dateSun 17 Jul 2016, 07:20 (10 years ago) parent62455c79edcfa8
1 file changed+7−3
pkgs/applications/editors/emacs-25/default.nix+7−3
pkgs/applications/editors/emacs-25/default.nix+7−3
@@ -5,6 +5,7 @@
55, autoconf, automake
66, withX ? !stdenv.isDarwin
77, withGTK3 ? false, gtk3 ? null
8+, withXwidgets ? false, webkitgtk24x ? null, wrapGAppsHook ? null, glib_networking ? null
89, withGTK2 ? true, gtk2
910}:
1011
@@ -14,6 +15,7 @@ assert withGTK2 -> withX || stdenv.isDarwin;
1415assert withGTK3 -> withX || stdenv.isDarwin;
1516assert withGTK2 -> !withGTK3 && gtk2 != null;
1617assert withGTK3 -> !withGTK2 && gtk3 != null;
18+assert withXwidgets -> withGTK3 && webkitgtk24x != null;
1719
1820let
1921 toolkit =
@@ -49,17 +51,19 @@ stdenv.mkDerivation rec {
4951 imagemagick gconf ]
5052 ++ stdenv.lib.optional (withX && withGTK2) gtk2
5153 ++ stdenv.lib.optional (withX && withGTK3) gtk3
52− ++ stdenv.lib.optional (stdenv.isDarwin && withX) cairo;
54+ ++ stdenv.lib.optional (stdenv.isDarwin && withX) cairo
55+ ++ stdenv.lib.optionals withXwidgets [webkitgtk24x wrapGAppsHook glib_networking];
5356
5457 propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ AppKit GSS ImageIO ];
5558
5659 configureFlags =
57− if stdenv.isDarwin
60+ (if stdenv.isDarwin
5861 then [ "--with-ns" "--disable-ns-self-contained" ]
5962 else if withX
6063 then [ "--with-x-toolkit=${toolkit}" "--with-xft" ]
6164 else [ "--with-x=no" "--with-xpm=no" "--with-jpeg=no" "--with-png=no"
62− "--with-gif=no" "--with-tiff=no" ];
65+ "--with-gif=no" "--with-tiff=no" ])
66+ ++ stdenv.lib.optional withXwidgets "--with-xwidgets";
6367
6468 NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (stdenv.isDarwin && withX)
6569 "-I${cairo.dev}/include/cairo";