~ruther/guix-local

4a32b83753b124169003589fae42eff03ff482cc — Steve George 11 months ago ce37c47
gnu: Update neomutt.

* gnu/packages/mail.scm (neomutt): Update to 20250404.
[arguments] <configure-flags>: remove deprecated options --disable-idn,
  --with-ui and --debug. Change --ssl option to new format. Add --zstd.
<phases>: Remove breaking tests.
[inputs]: Add zstd.

Change-Id: Id823068d28595b398911cde4fce4d1a5c5576561
Signed-off-by: Steve George <steve@futurile.net>
1 files changed, 19 insertions(+), 11 deletions(-)

M gnu/packages/mail.scm
M gnu/packages/mail.scm => gnu/packages/mail.scm +19 -11
@@ 729,7 729,7 @@ operating systems.")
(define-public neomutt
  (package
    (name "neomutt")
    (version "20230517")
    (version "20250404")
    (source
     (origin
       (method git-fetch)


@@ 738,7 738,8 @@ operating systems.")
             (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0kjllp2scgmpkl8yd0hwz6jmm98hr2r7qkb75ps9753fl96i4bfn"))))
        (base32
          "1w53g6l98cd3x2a6m0q245fm5gln95vzpgskvg4dz9yysmbki9az"))))
    (build-system gnu-build-system)
    (inputs
     (list cyrus-sasl


@@ 753,7 754,8 @@ operating systems.")
           libidn2
           libxml2
           lmdb
           notmuch))
           notmuch
           `(,zstd "lib")))
    (native-inputs
     `(("automake" ,automake)
       ("gettext-minimal" ,gettext-minimal)


@@ 773,7 775,8 @@ operating systems.")
                   (commit commit)))
             (file-name (git-file-name "neomutt-test-files" commit))
             (sha256
              (base32 "1ci04nqkab9mh60zzm66sd6mhsr6lya8wp92njpbvafc86vvwdlr")))))))
              (base32
                "1ci04nqkab9mh60zzm66sd6mhsr6lya8wp92njpbvafc86vvwdlr")))))))
    (arguments
     `(#:test-target "test"
       #:configure-flags


@@ 789,15 792,16 @@ operating systems.")
             "--gdbm"

             "--gnutls"
             "--disable-ssl"
             "--ssl=1"
             "--sasl"
             (string-append "--with-sasl="
                            (assoc-ref %build-inputs "cyrus-sasl"))


             "--smime"
             "--notmuch"
             "--disable-idn"
             (string-append "--with-notmuch="
                            (assoc-ref %build-inputs "notmuch"))

             "--idn2"

             ;; If we do not set this, neomutt wants to check


@@ 805,12 809,11 @@ operating systems.")
             ;; in the chroot.
             "--with-mailpath=/var/mail"

             "--with-ui=ncurses"
             (string-append "--with-ncurses="
                            (assoc-ref %build-inputs "ncurses"))
             (string-append "--prefix="
                            (assoc-ref %outputs "out"))
             "--debug")
             "--zstd=1")
       #:phases
       (modify-phases %standard-phases
         ;; TODO: autosetup is meant to be included in the source,


@@ 828,14 831,19 @@ operating systems.")
         (add-before 'check 'prepare-test-files
           (lambda* (#:key inputs #:allow-other-keys)
             (copy-recursively (assoc-ref inputs "neomutt-test-files") "tests")
             ;; FIXME: investigate why tests are failing, Nix is also disabling one
             (substitute* "test/main.c"
                          (("NEOMUTT_TEST_ITEM\\(test_expando_filter\\)") "")
                           (("NEOMUTT_TEST_ITEM\\(test_mutt_sig_exit_handler\\)") "")
                           (("NEOMUTT_TEST_ITEM\\(test_mutt_path_tilde\\)") ""))
             (with-directory-excursion "tests"
               (setenv "NEOMUTT_TEST_DIR" (getcwd)) ; must be absolute
               (invoke "bash" "setup.sh")))))))
    (home-page "https://neomutt.org/")
    (synopsis "Command-line mail reader based on Mutt")
    (description
     "NeoMutt is a command-line mail reader which is based on mutt.
It adds a large amount of new and improved features to mutt.")
     "NeoMutt is a command-line mail reader which is based on Mutt.
It adds a large amount of new and improved features to Mutt.")
    (license license:gpl2+)))

(define-public gmime