From dbc584532017e3cf906681331f2855d457149ea9 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Fri, 24 Dec 2021 11:48:43 -0800 Subject: [PATCH] emacs: Add withPgtk argument Recently Emacs merged the pgtk branch. --- pkgs/applications/editors/emacs/generic.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/editors/emacs/generic.nix b/pkgs/applications/editors/emacs/generic.nix index 6b4491169212..bb899bf3de1c 100644 --- a/pkgs/applications/editors/emacs/generic.nix +++ b/pkgs/applications/editors/emacs/generic.nix @@ -25,6 +25,7 @@ , srcRepo ? false, autoreconfHook ? null, texinfo ? null , siteStart ? ./site-start.el , nativeComp ? false +, withPgtk ? false , withImageMagick ? lib.versionOlder version "27" && (withX || withNS) , toolkit ? ( if withGTK2 then "gtk2" @@ -150,6 +151,7 @@ let emacs = stdenv.mkDerivation (lib.optionalAttrs nativeComp { ++ lib.optional withXwidgets "--with-xwidgets" ++ lib.optional nativeComp "--with-native-compilation" ++ lib.optional withImageMagick "--with-imagemagick" + ++ lib.optional withPgtk "--with-pgtk" ; installTargets = [ "tags" "install" ];