From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aKwLFyQxU2MiHgEAbAwnHQ (envelope-from ) for ; Sat, 22 Oct 2022 01:54:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QPI+FiQxU2Ou+AAAG6o9tA (envelope-from ) for ; Sat, 22 Oct 2022 01:54:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EF2372AC82 for ; Sat, 22 Oct 2022 01:54:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1om0EB-0004KJ-BM; Fri, 21 Oct 2022 18:10:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olzL9-0007k7-Jd for guix-patches@gnu.org; Fri, 21 Oct 2022 17:14:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olzL9-0002dU-Bz for guix-patches@gnu.org; Fri, 21 Oct 2022 17:14:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olzL9-0000mW-6a for guix-patches@gnu.org; Fri, 21 Oct 2022 17:14:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55903] [PATCH v13 42/42] gnu: Add aerc. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 21 Oct 2022 21:14:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55903 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55903@debbugs.gnu.org Cc: "\(unmatched-parenthesis" Received: via spool by 55903-submit@debbugs.gnu.org id=B55903.16663868262954 (code B ref 55903); Fri, 21 Oct 2022 21:14:03 +0000 Received: (at 55903) by debbugs.gnu.org; 21 Oct 2022 21:13:46 +0000 Received: from localhost ([127.0.0.1]:39264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olzKs-0000lU-20 for submit@debbugs.gnu.org; Fri, 21 Oct 2022 17:13:46 -0400 Received: from knopi.disroot.org ([178.21.23.139]:41264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olzJZ-0000dO-6B for 55903@debbugs.gnu.org; Fri, 21 Oct 2022 17:12:30 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 673954E89C; Fri, 21 Oct 2022 23:12:19 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fTKali_qJWr2; Fri, 21 Oct 2022 23:12:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1666386715; bh=KPkfMXCoLSycIDwgCyVmpASeGQl7WPAQWczmDvtz4Gc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=NT7OGev8tvpJwJXmc/B5HwUQ3UMhfFKLeMQtQal9I5dUP9da0XPXoD+laI7qrl/va BHyiXRwTVhtb3YTjfohFpeNt07+Qw0ELy1yP4xF9du8BtZRf3gQAThBoEG8i1QQTJ4 IzH0Q3rR/PQ17EYSnL208ETt2h5ZQu5VlQedAoPSolPB6mHQT1/w2o/qGibQMsZ1gc iSV6wYWRav6ycAeEB8IOuWppv4LJbUHjQsSCxrMIwzSeM6xKe5xG7ZIZZjn8EdPK8g EjHH6Z6AzaFl1uBGdA1ShwffjAjgINmFSW1zqKNBgr7U0ZPrOmDEgDjyH7bag5jnMG NFxWymUhLtCiQ== Date: Fri, 21 Oct 2022 22:11:37 +0100 Message-Id: <20221021211137.3296-42-paren@disroot.org> In-Reply-To: <20221021211137.3296-1-paren@disroot.org> References: <20221021211137.3296-1-paren@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666396452; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+JsAbdvahkCWBt9buUWNC53hfazGiUioI970aS9NC1I=; b=qSRXvC+ko2Ldy9GfZXIN5FsRduwSVhDXxzSgHLW4CmTp7euAOl+vM1g91NLpSz2Wd9U/50 u0tXNeN4+0k4zBXXRV747zaKjnDoOMc6bDfk+dyBB45Y4E7lW0Ff8oI7wyCvhkBKPLjABW fMAEcuckOs7FvZRZLjdNkLi/ZsMhQwLKAz+uOmDO/14m2yql9DoDQUk/8iqOp+npa6t1MR 2ToEq2qklp5KTkKHoJf9UuhB+uL9G7OpiaETYOo7URN5hgQjZOSFjqutcNJg2n/HVhYOHS jIt8XE3LI1MI0MSX18m7CALrLJkas+8A0Nxtxn8sQeR8jZvC3FThxPIyb3CLfw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666396452; a=rsa-sha256; cv=none; b=IS61N6P0dEGKtwIReVjrb/gGINcI9GZuHrsiHklqp+EUtrMzFuLwJWJuyLpU1+iAbnwl5r LFXhFGJ4AzsweAA3B86Nqm94F3fXQGJ9Aw1OLNXWr3rBefSDkF0LFcz5/qMEHiIInB9GIe MiQJk3dfs4mZjXilR0h0TSjNubYsj73QPxGcy4++0AXMKBGEwrDrLiWtyq6nXX7IbHp4Yo WIcihJIme9J6m6/tuzSzZxcgdusdDRYWOkuHKv+grZnMzkKI1rOXN4C8PLL22ZL0+m1U3B lKCqnZfovRhr/At62s5fDgYjoUz/V4ucDSnlYGBx2a4aMeei/l3vYUQMyOJ1Lw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=NT7OGev8; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.04 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=NT7OGev8; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EF2372AC82 X-Spam-Score: -2.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: VrqHe19EUTCu From: "(unmatched-parenthesis" * gnu/packages/mail.scm (aerc): New variable. --- gnu/packages/mail.scm | 119 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 28acfadea0..5dca03e0bd 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -50,6 +50,7 @@ ;;; Copyright © 2022 Guillaume Le Vaillant ;;; Copyright © 2022 muradm ;;; Copyright © 2022 jgart +;;; Copyright © 2022 ( ;;; ;;; This file is part of GNU Guix. ;;; @@ -151,6 +152,7 @@ (define-module (gnu packages mail) #:use-module (gnu packages rdf) #:use-module (gnu packages readline) #:use-module (gnu packages ruby) + #:use-module (gnu packages rust-apps) #:use-module (gnu packages search) #:use-module (gnu packages serialization) #:use-module (gnu packages samba) @@ -4754,3 +4756,120 @@ (define-public smtpmail mailserver on their machine. It enables these users to send their mail over a remote SMTP server.") (license license:gpl2+))) + +(define-public aerc + (package + (name "aerc") + (version "0.13.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~rjarry/aerc") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "18rykklc0ppl53sm9lzhrw6kv4rcc7x45nv7qii7m4qads2pyjm5")))) + (build-system go-build-system) + (arguments + (list #:import-path "git.sr.ht/~rjarry/aerc" + ;; Installing the source is only necessary for Go libraries. + #:install-source? #f + #:build-flags + #~(list "-tags=notmuch" "-ldflags" + (string-append "-X main.Version=" #$version + " -X git.sr.ht/~rjarry/aerc/config.shareDir=" + #$output "/share/aerc")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-paths + (lambda* (#:key import-path inputs #:allow-other-keys) + (with-directory-excursion + (string-append "src/" import-path) + (substitute* (list "config/config.go" + "lib/templates/template.go" + "widgets/compose.go" + "widgets/msgviewer.go" + "worker/maildir/worker.go" + "worker/notmuch/worker.go") + (("\"sh\"") + (string-append + "\"" (search-input-file inputs "bin/sh") + "\""))) + (substitute* "commands/z.go" + (("\"zoxide\"") + (string-append + "\"" (search-input-file inputs "bin/zoxide") + "\""))) + (substitute* (list "lib/crypto/gpg/gpg.go" + "lib/crypto/gpg/gpg_test.go" + "lib/crypto/gpg/gpgbin/keys.go" + "lib/crypto/gpg/gpgbin/gpgbin.go") + (("\"gpg\"") + (string-append + "\"" (search-input-file inputs "bin/gpg") + "\"")) + (("strings\\.Contains\\(stderr\\.String\\(\\), .*\\)") + "strings.Contains(stderr.String(), \"gpg\")"))))) + (add-after 'build 'doc + (lambda* (#:key import-path build-flags #:allow-other-keys) + (invoke "make" "doc" "-C" + (string-append "src/" import-path)))) + (replace 'install + (lambda* (#:key import-path build-flags #:allow-other-keys) + (invoke "make" "install" "-C" + (string-append "src/" import-path) + (string-append "PREFIX=" #$output))))))) + (inputs (list gnupg + go-github-com-zenhack-go-notmuch + go-golang-org-x-oauth2 + go-github-com-xo-terminfo + go-github-com-stretchr-testify + go-github-com-riywo-loginshell + go-github-com-pkg-errors + go-github-com-mitchellh-go-homedir + go-github-com-miolini-datacounter + go-github-com-mattn-go-runewidth + go-github-com-mattn-go-isatty + go-github-com-lithammer-fuzzysearch + go-github-com-kyoh86-xdg + go-github-com-imdario-mergo + go-github-com-google-shlex + go-github-com-go-ini-ini + go-github-com-gdamore-tcell-v2 + go-github-com-gatherstars-com-jwz + go-github-com-fsnotify-fsnotify + go-github-com-emersion-go-smtp + go-github-com-emersion-go-sasl + go-github-com-emersion-go-pgpmail + go-github-com-emersion-go-message + go-github-com-emersion-go-maildir + go-github-com-emersion-go-imap-sortthread + go-github-com-emersion-go-imap + go-github-com-emersion-go-msgauth + go-github-com-emersion-go-mbox + go-github-com-ddevault-go-libvterm + go-github-com-danwakefield-fnmatch + go-github-com-creack-pty + go-github-com-arran4-golang-ical + go-github-com-protonmail-go-crypto + go-github-com-syndtr-goleveldb-leveldb + go-git-sr-ht-sircmpwn-getopt + go-git-sr-ht-rockorager-tcell-term + zoxide)) + (native-inputs (list scdoc)) + (home-page "https://git.sr.ht/~rjarry/aerc") + (synopsis "Email client for the terminal") + (description "@code{aerc} is a textual email client for terminals. It +features: +@enumerate +@item First-class support for using patches and @code{git send-email} +@item Vi-like keybindings and command system +@item A built-in console +@item Support for multiple accounts +@end enumerate") + ;; The license given is MIT/Expat; however, linking against notmuch + ;; effectively makes it GPL-3.0-or-later. See this thread discussing it: + ;; + (license license:gpl3+))) -- 2.38.0