From patchwork Thu Sep 26 15:21:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Becze X-Patchwork-Id: 15484 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B885C17440; Thu, 26 Sep 2019 16:48:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 6444D1742E for ; Thu, 26 Sep 2019 16:48:17 +0100 (BST) Received: from localhost ([::1]:39720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDW08-0007Pt-Hn for patchwork@mira.cbaines.net; Thu, 26 Sep 2019 11:48:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54081) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDVbu-00089r-Bf for guix-patches@gnu.org; Thu, 26 Sep 2019 11:23:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDVbs-0006bl-HW for guix-patches@gnu.org; Thu, 26 Sep 2019 11:23:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35549) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDVbs-0006bV-Ds for guix-patches@gnu.org; Thu, 26 Sep 2019 11:23:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iDVbs-0004Tg-7w for guix-patches@gnu.org; Thu, 26 Sep 2019 11:23:12 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37444] [PATCH v3 21/23] added aerc, a simple email client Resent-From: Martin Becze Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Sep 2019 15:23:12 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37444 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37444@debbugs.gnu.org Received: via spool by 37444-submit@debbugs.gnu.org id=B37444.156951138417083 (code B ref 37444); Thu, 26 Sep 2019 15:23:12 +0000 Received: (at 37444) by debbugs.gnu.org; 26 Sep 2019 15:23:04 +0000 Received: from localhost ([127.0.0.1]:44349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDVbi-0004R5-Qw for submit@debbugs.gnu.org; Thu, 26 Sep 2019 11:23:03 -0400 Received: from mx1.riseup.net ([198.252.153.129]:43130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDVbI-0004PR-2K for 37444@debbugs.gnu.org; Thu, 26 Sep 2019 11:22:37 -0400 Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 46fJZg4YbBzFbJh; Thu, 26 Sep 2019 08:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1569511355; bh=8hTNzVXtveDth+Y05mVfihLYKUWf4Xx8FlXKujk5Ix4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YzzPFwU4dKJlRhlD6dvA4slTX+VxJnV5uu/wuQ2uthii/kVEVzW85B5P8+By8XJdh HLgZkR1mMRU3G1MUWRvUBQ5slarD2nBQhC5EKCsZ4jwVJlofHeqfzUGpzCMI29+HoX FGZrT4H9vo82zVtVHcm9N4Vz5xUg9sOfnHmk8W8w= X-Riseup-User-ID: 44EA246EA756830CFB964403D3BFF00877DEC950E8B9FA1658D49DAC1E21A7FF Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 46fJZf3xkwzJxbr; Thu, 26 Sep 2019 08:22:34 -0700 (PDT) From: Martin Becze Date: Thu, 26 Sep 2019 11:21:16 -0400 Message-Id: <20190926152118.8073-21-mjbecze@riseup.net> In-Reply-To: <20190926152118.8073-1-mjbecze@riseup.net> References: <87blv7pfdi.fsf@gnu.org> <20190926152118.8073-1-mjbecze@riseup.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Becze Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/mail.scm | 81 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 3d5417bfb5..7631438e0a 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2018 Alex Vong ;;; Copyright © 2018 Gábor Boskovits ;;; Copyright © 2018, 2019 Ricardo Wurmus +;;; Copyright © 2019 Martin Becze ;;; ;;; This file is part of GNU Guix. ;;; @@ -74,6 +75,7 @@ #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) + #:use-module (gnu packages golang) #:use-module (gnu packages groff) #:use-module (gnu packages gsasl) #:use-module (gnu packages gtk) @@ -111,6 +113,7 @@ #:use-module (gnu packages sqlite) #:use-module (gnu packages tcl) #:use-module (gnu packages texinfo) + #:use-module (gnu packages textutils) #:use-module (gnu packages time) #:use-module (gnu packages tls) #:use-module (gnu packages version-control) @@ -133,6 +136,7 @@ #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (guix build-system guile) + #:use-module (guix build-system go) #:use-module (guix build-system perl) #:use-module (guix build-system python) #:use-module (guix build-system trivial)) @@ -3082,3 +3086,80 @@ related tools to process winmail.dat files.") complement or replace traditional mailing lists. Readers may read via NNTP, Atom feeds or HTML archives.") (license agpl3+)))) + +(define-public aerc + (let ((url "https://git.sr.ht/~sircmpwn/aerc")) + (package + (name "aerc") + (version "0.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url url) + (commit version))) + (sha256 + (base32 + "0l063pnz02r4jsg0kd9jp8m5nq10n5q9zdjpx26gfnd9ww4fs46h")) + (file-name (git-file-name name version)))) + (build-system go-build-system) + (arguments + '(#:import-path "git.sr.ht/~sircmpwn/aerc" + #:install-source? #f + #:phases + (modify-phases %standard-phases + (add-after 'setup-go-environment 'setup-make-environment + (lambda* (#:key outputs #:allow-other-keys) + (setenv "PREFIX" (assoc-ref outputs "out")) + #t)) + (replace 'build + (lambda _ + (with-directory-excursion "src/git.sr.ht/~sircmpwn/aerc" + (invoke "make")))) + (replace 'install + (lambda _ + (with-directory-excursion "src/git.sr.ht/~sircmpwn/aerc" + (invoke "make" "install")))) + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((ncurses (assoc-ref inputs "ncurses")) + (out (assoc-ref outputs "out"))) + (wrap-program (string-append out "/bin/aerc") + `("PATH" ":" prefix (,(string-append ncurses "/bin"))))) + #t))))) + (inputs + `(("ncurses" ,ncurses))) + (native-inputs + `(("scdoc" ,scdoc) + ("automake" ,automake) + ("go-git-sr-ht-sircmpwn-getopt" ,go-git-sr-ht-sircmpwn-getopt) + ("go-git-sr-ht-sircmpwn-pty" ,go-git-sr-ht-sircmpwn-pty) + ("go-git-sr-ht-sircmpwn-tcell" ,go-git-sr-ht-sircmpwn-tcell) + ("go-github-com-danwakefield-fnmatch" + ,go-github-com-danwakefield-fnmatch) + ("go-github-com-ddevault-go-libvterm" + ,go-github-com-ddevault-go-libvterm) + ("go-github-com-emersion-go-imap" ,go-github-com-emersion-go-imap) + ("go-github-com-emersion-go-imap-idle" + ,go-github-com-emersion-go-imap-idle) + ("go-github-com-emersion-go-maildir" ,go-github-com-emersion-go-maildir) + ("go-github-com-emersion-go-message" ,go-github-com-emersion-go-message) + ("go-github-com-emersion-go-sasl" ,go-github-com-emersion-go-sasl) + ("go-github-com-emersion-go-smtp" ,go-github-com-emersion-go-smtp) + ("go-github-com-fsnotify-fsnotify" ,go-github-com-fsnotify-fsnotify) + ("go-github-com-go-ini-ini" ,go-github-com-go-ini-ini) + ("go-github-com-google-shlex" ,go-github-com-google-shlex) + ("go-github-com-kyoh86-xdg" ,go-github-com-kyoh86-xdg) + ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty) + ("go-github.com-mattn-go-runewidth" ,go-github.com-mattn-go-runewidth) + ("go-github-com-miolini-datacounter" ,go-github-com-miolini-datacounter) + ("go-github-com-mitchellh-go-homedir" + ,go-github-com-mitchellh-go-homedir) + ("go-github-com-pkg-errors" ,go-github-com-pkg-errors) + ("go-github-com-riywo-loginshell" ,go-github-com-riywo-loginshell) + ("go-golang-org-x-oauth2" ,go-golang-org-x-oauth2))) + (home-page url) + (synopsis "An email client for your terminal") + (description "Join the IRC channel: #aerc on irc.freenode.net for end-user + support, and #aerc-dev for development.") + (license license:expat))))