From patchwork Wed Sep 18 15:36:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Becze X-Patchwork-Id: 15409 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 66D7F173FF; Wed, 18 Sep 2019 17:51:34 +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 12B1D173FA for ; Wed, 18 Sep 2019 17:51:34 +0100 (BST) Received: from localhost ([::1]:32774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAdAy-00044m-So for patchwork@mira.cbaines.net; Wed, 18 Sep 2019 12:51:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51981) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAc1s-0007bQ-Na for guix-patches@gnu.org; Wed, 18 Sep 2019 11:38:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAc1r-0005FJ-20 for guix-patches@gnu.org; Wed, 18 Sep 2019 11:38:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45905) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iAc1q-0005Ez-UX for guix-patches@gnu.org; Wed, 18 Sep 2019 11:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iAc1q-00074x-RK for guix-patches@gnu.org; Wed, 18 Sep 2019 11:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37444] [PATCH v2 2/4] added aerc, a simple email client Resent-From: Martin Becze Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Sep 2019 15:38:02 +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.156882105427143 (code B ref 37444); Wed, 18 Sep 2019 15:38:02 +0000 Received: (at 37444) by debbugs.gnu.org; 18 Sep 2019 15:37:34 +0000 Received: from localhost ([127.0.0.1]:54720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAc1O-00073e-1e for submit@debbugs.gnu.org; Wed, 18 Sep 2019 11:37:34 -0400 Received: from mx1.riseup.net ([198.252.153.129]:40808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAc1K-00073K-4Y for 37444@debbugs.gnu.org; Wed, 18 Sep 2019 11:37:30 -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 A1B8D1A4B83 for <37444@debbugs.gnu.org>; Wed, 18 Sep 2019 08:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1568821049; bh=33acdmuniv5229fgyr9ylDIC1/j3N+Gd8xyH36c4Ue8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cSB9hDJCYlsJxMYK7mPCuQ8UKnkG5ILIjggaKHdVyurZ/e/uwIs9kay4pPFVYpfE9 +8DdjKAyta73sT4sLpufALBWUs2U/eaIOv+slmm15FtrlHFM9XHjDHGcmR0v8g1h+d O5MqnB2uKZJct6B3LSbMlk8b4YJvndnTst23hPHs= X-Riseup-User-ID: 3612E7B9CBCB4469090F5A4212EB57CB1201A8EE016C11F51AD52A3C8D970C07 Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id D9407221CD5; Wed, 18 Sep 2019 08:37:28 -0700 (PDT) From: Martin Becze Date: Wed, 18 Sep 2019 11:36:25 -0400 Message-Id: <20190918153626.7825-2-mjbecze@riseup.net> In-Reply-To: <20190918153626.7825-1-mjbecze@riseup.net> References: <20190918153626.7825-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 fdbb082fdc..b878c81c66 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))))