summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
author(unmatched-parenthesis <paren@disroot.org>2022-10-21 22:11:37 +0100
committerRaghav Gururajan <rg@raghavgururajan.name>2022-11-28 02:12:48 -0500
commit6f4bfc5263ba0de5e3357b2fc210c3f451cf89c7 (patch)
tree0c02b9894d0b9b48f52f828eca4aa7997a7d1ea1 /gnu
parentffc9986ee21aef1f4bf8a0d9f7f919ffbc2a5505 (diff)
gnu: Add aerc.
* gnu/packages/mail.scm (aerc): New variable. Signed-off-by: Raghav Gururajan <rg@raghavgururajan.name>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/mail.scm119
1 files changed, 119 insertions, 0 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index dc9fed90eb9..cef5fe29166 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -50,6 +50,7 @@
50;;; Copyright © 2022 Guillaume Le Vaillant <glv@posteo.net> 50;;; Copyright © 2022 Guillaume Le Vaillant <glv@posteo.net>
51;;; Copyright © 2022 muradm <mail@muradm.net> 51;;; Copyright © 2022 muradm <mail@muradm.net>
52;;; Copyright © 2022 jgart <jgart@dismail.de> 52;;; Copyright © 2022 jgart <jgart@dismail.de>
53;;; Copyright © 2022 ( <paren@disroot.org>
53;;; 54;;;
54;;; This file is part of GNU Guix. 55;;; This file is part of GNU Guix.
55;;; 56;;;
@@ -151,6 +152,7 @@
151 #:use-module (gnu packages rdf) 152 #:use-module (gnu packages rdf)
152 #:use-module (gnu packages readline) 153 #:use-module (gnu packages readline)
153 #:use-module (gnu packages ruby) 154 #:use-module (gnu packages ruby)
155 #:use-module (gnu packages rust-apps)
154 #:use-module (gnu packages search) 156 #:use-module (gnu packages search)
155 #:use-module (gnu packages serialization) 157 #:use-module (gnu packages serialization)
156 #:use-module (gnu packages samba) 158 #:use-module (gnu packages samba)
@@ -4754,3 +4756,120 @@ addresses.")
4754mailserver on their machine. It enables these users to send their mail over a 4756mailserver on their machine. It enables these users to send their mail over a
4755remote SMTP server.") 4757remote SMTP server.")
4756 (license license:gpl2+))) 4758 (license license:gpl2+)))
4759
4760(define-public aerc
4761 (package
4762 (name "aerc")
4763 (version "0.13.0")
4764 (source (origin
4765 (method git-fetch)
4766 (uri (git-reference
4767 (url "https://git.sr.ht/~rjarry/aerc")
4768 (commit version)))
4769 (file-name (git-file-name name version))
4770 (sha256
4771 (base32
4772 "18rykklc0ppl53sm9lzhrw6kv4rcc7x45nv7qii7m4qads2pyjm5"))))
4773 (build-system go-build-system)
4774 (arguments
4775 (list #:import-path "git.sr.ht/~rjarry/aerc"
4776 ;; Installing the source is only necessary for Go libraries.
4777 #:install-source? #f
4778 #:build-flags
4779 #~(list "-tags=notmuch" "-ldflags"
4780 (string-append "-X main.Version=" #$version
4781 " -X git.sr.ht/~rjarry/aerc/config.shareDir="
4782 #$output "/share/aerc"))
4783 #:phases
4784 #~(modify-phases %standard-phases
4785 (add-after 'unpack 'patch-paths
4786 (lambda* (#:key import-path inputs #:allow-other-keys)
4787 (with-directory-excursion
4788 (string-append "src/" import-path)
4789 (substitute* (list "config/config.go"
4790 "lib/templates/template.go"
4791 "widgets/compose.go"
4792 "widgets/msgviewer.go"
4793 "worker/maildir/worker.go"
4794 "worker/notmuch/worker.go")
4795 (("\"sh\"")
4796 (string-append
4797 "\"" (search-input-file inputs "bin/sh")
4798 "\"")))
4799 (substitute* "commands/z.go"
4800 (("\"zoxide\"")
4801 (string-append
4802 "\"" (search-input-file inputs "bin/zoxide")
4803 "\"")))
4804 (substitute* (list "lib/crypto/gpg/gpg.go"
4805 "lib/crypto/gpg/gpg_test.go"
4806 "lib/crypto/gpg/gpgbin/keys.go"
4807 "lib/crypto/gpg/gpgbin/gpgbin.go")
4808 (("\"gpg\"")
4809 (string-append
4810 "\"" (search-input-file inputs "bin/gpg")
4811 "\""))
4812 (("strings\\.Contains\\(stderr\\.String\\(\\), .*\\)")
4813 "strings.Contains(stderr.String(), \"gpg\")")))))
4814 (add-after 'build 'doc
4815 (lambda* (#:key import-path build-flags #:allow-other-keys)
4816 (invoke "make" "doc" "-C"
4817 (string-append "src/" import-path))))
4818 (replace 'install
4819 (lambda* (#:key import-path build-flags #:allow-other-keys)
4820 (invoke "make" "install" "-C"
4821 (string-append "src/" import-path)
4822 (string-append "PREFIX=" #$output)))))))
4823 (inputs (list gnupg
4824 go-github-com-zenhack-go-notmuch
4825 go-golang-org-x-oauth2
4826 go-github-com-xo-terminfo
4827 go-github-com-stretchr-testify
4828 go-github-com-riywo-loginshell
4829 go-github-com-pkg-errors
4830 go-github-com-mitchellh-go-homedir
4831 go-github-com-miolini-datacounter
4832 go-github-com-mattn-go-runewidth
4833 go-github-com-mattn-go-isatty
4834 go-github-com-lithammer-fuzzysearch
4835 go-github-com-kyoh86-xdg
4836 go-github-com-imdario-mergo
4837 go-github-com-google-shlex
4838 go-github-com-go-ini-ini
4839 go-github-com-gdamore-tcell-v2
4840 go-github-com-gatherstars-com-jwz
4841 go-github-com-fsnotify-fsnotify
4842 go-github-com-emersion-go-smtp
4843 go-github-com-emersion-go-sasl
4844 go-github-com-emersion-go-pgpmail
4845 go-github-com-emersion-go-message
4846 go-github-com-emersion-go-maildir
4847 go-github-com-emersion-go-imap-sortthread
4848 go-github-com-emersion-go-imap
4849 go-github-com-emersion-go-msgauth
4850 go-github-com-emersion-go-mbox
4851 go-github-com-ddevault-go-libvterm
4852 go-github-com-danwakefield-fnmatch
4853 go-github-com-creack-pty
4854 go-github-com-arran4-golang-ical
4855 go-github-com-protonmail-go-crypto
4856 go-github-com-syndtr-goleveldb-leveldb
4857 go-git-sr-ht-sircmpwn-getopt
4858 go-git-sr-ht-rockorager-tcell-term
4859 zoxide))
4860 (native-inputs (list scdoc))
4861 (home-page "https://git.sr.ht/~rjarry/aerc")
4862 (synopsis "Email client for the terminal")
4863 (description "@code{aerc} is a textual email client for terminals. It
4864features:
4865@enumerate
4866@item First-class support for using patches and @code{git send-email}
4867@item Vi-like keybindings and command system
4868@item A built-in console
4869@item Support for multiple accounts
4870@end enumerate")
4871 ;; The license given is MIT/Expat; however, linking against notmuch
4872 ;; effectively makes it GPL-3.0-or-later. See this thread discussing it:
4873 ;; <https://lists.sr.ht/~rjarry/aerc-devel/%3Cb5cb213a7d0c699a886971658c2476
4874 ;; 1073eb2391%40disroot.org%3E>
4875 (license license:gpl3+)))