Commit afb9fff1 authored by Anderson Torres's avatar Anderson Torres
Browse files

emacs: jansson is now optional

Since it is not needed in Emacs 30+.
parent b585a1d3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -75,6 +75,8 @@
, withGlibNetworking ? withPgtk || withGTK3 || (withX && withXwidgets)
, withGpm ? stdenv.isLinux
, withImageMagick ? lib.versionOlder version "27" && (withX || withNS)
# Emacs 30+ has native JSON support
, withJansson ? lib.versionOlder version "30"
, withMailutils ? true
, withMotif ? false
, withNS ? stdenv.isDarwin && !(variant == "macport" || noGui)
@@ -220,7 +222,9 @@ mkDerivation (finalAttrs: {
    gettext
    gnutls
    (lib.getDev harfbuzz)
  ] ++ lib.optionals withJansson [
    jansson
  ] ++ [
    libxml2
    ncurses
  ] ++ lib.optionals withAcl [