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'.
This commit is contained in:
Tony Zorman 2023-11-11 12:41:42 +01:00
parent 70a04815b1
commit d2c3b7799a

View File

@ -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 {