From d2c3b7799abceebadbe9b742b4e1652533949306 Mon Sep 17 00:00:00 2001 From: Tony Zorman Date: Sat, 11 Nov 2023 12:41:42 +0100 Subject: [PATCH] emacs: Add withSmallJaDic flag Quoting from the Emacs 29 release notes: > Building Emacs includes generation of a Japanese dictionary, which is > used by Japanese input methods. Previously, the build included a step > of reducing the size of this dictionary's vocabulary. This vocabulary > reduction is now optional, by default off. If you need the Emacs > build to include the vocabulary reduction, configure Emacs with the > option '--with-small-ja-dic'. --- pkgs/applications/editors/emacs/make-emacs.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/editors/emacs/make-emacs.nix b/pkgs/applications/editors/emacs/make-emacs.nix index d3aabb739ec8..c5cc91c1268d 100644 --- a/pkgs/applications/editors/emacs/make-emacs.nix +++ b/pkgs/applications/editors/emacs/make-emacs.nix @@ -89,6 +89,7 @@ , withX ? !(stdenv.isDarwin || noGui || withPgtk) , withXinput2 ? withX && lib.versionAtLeast version "29" , withXwidgets ? !stdenv.isDarwin && !noGui && (withGTK3 || withPgtk) +, withSmallJaDic ? false # Options , siteStart ? ./site-start.el @@ -337,6 +338,7 @@ mkDerivation (finalAttrs: { ++ lib.optional withTreeSitter "--with-tree-sitter" ++ lib.optional withXinput2 "--with-xinput2" ++ lib.optional withXwidgets "--with-xwidgets" + ++ lib.optional withSmallJaDic "--with-small-ja-dic" ; env = lib.optionalAttrs withNativeCompilation {