git.iko.soy/typeable/nixpkgs
on master help sign in
emacs25pre: Add option for building with xwidgets
commit658c2de1b74f82995e3a08c826ca6da6d3ffc336 authorAlexey Lebedeff <alebedev@mirantis.com> dateFri 15 Jul 2016, 16:18 (10 years ago) parentc30d4e0
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
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.optional withXwidgets webkitgtk24x;
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";