Subject: [bug#57021] [PATCH v9] gnu: Add nmail.

From: Christina O'Donnell <[email-masked]>
Date: Sun, 21 Apr 2024 14:49:07 +0100

From: M <[email-masked]>

* gnu/packages/mail.scm (nmail): New variable.

Reviewed-by: Christina O'Donnell <[email-masked]>
Change-Id: I850ac3a1b6e6db6d1869bb3fe8ff9d3a9e71cc86
---
 gnu/packages/mail.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index e0fbd0a5ff3..3eb4f57e67e 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -51,6 +51,7 @@
 ;;; Copyright © 2022 muradm <[email-masked]>
 ;;; Copyright © 2022 jgart <[email-masked]>
 ;;; Copyright © 2022 ( <[email-masked]>
+;;; Copyright © 2022 Mathieu Laparie <[email-masked]>
 ;;; Copyright © 2023 Timo Wilken <[email-masked]>
 ;;; Copyright © 2023 Arjan Adriaanse <[email-masked]>
 ;;; Copyright © 2023 Wilko Meyer <[email-masked]>
@@ -455,6 +456,43 @@ (define-public mairix
 Maildir, MH, MMDF or mbox folders.")
       (license license:gpl2))))
 
+(define-public nmail
+  (package
+    (name "nmail")
+    (version "4.54")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/d99kris/nmail/")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0bk2kq0pk1r4w5xv94yh37vrwxs8lczjg11gfraxh9cxyjigwsrp"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (replace 'check
+                     (lambda* (#:key tests? #:allow-other-keys)
+                       (when tests?
+                         (invoke "ctest" "--output-on-failure")))))))
+    (inputs (list cyrus-sasl
+                  file
+                  libetpan
+                  ncurses
+                  openssl
+                  sqlite
+                  (list util-linux "lib")
+                  xapian))
+    (native-inputs (list pkg-config))
+    (home-page "https://github.com/d99kris/nmail")
+    (synopsis "Terminal-based email client")
+    (description
+     "@command{nmail} is an easily configurable terminal-based email client with
+a @code{ncurses} user interface similar to @code{alpine} and @code{pine}.")
+    (license license:expat)))
+
 (define-public go-gitlab.com-shackra-goimapnotify
   (package
     (name "go-gitlab.com-shackra-goimapnotify")

base-commit: ba52975ea91af49e8e6a436438a578589a209ecc
-- 
2.41.0