M guixrus/packages/aerc.scm => guixrus/packages/aerc.scm +87 -1
@@ 1,6 1,8 @@
;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2022 jgart <jgart@dismail.de>
+;;; Copyright © 2022 (unmatched parenthesis <paren@disroot.org>
+;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
@@ 19,12 21,96 @@
(define-module (guixrus packages aerc)
#:use-module (guix build-system go)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages)
- #:use-module (gnu packages video)
+ #:use-module (gnu packages base)
#:use-module (gnu packages golang)
+ #:use-module (gnu packages man)
+ #:use-module (gnu packages mail)
+ #:use-module (gnu packages video)
#:use-module (guixrus packages common go))
+(define-public aerc
+ (package
+ (name "aerc")
+ (version "0.0.0-20220531123251-2551dd1bfa2c")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.sr.ht/~rjarry/aerc")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1zbskcsfpg8akifnaffwxsm6pi8j0mk6aq1rkymnr6ll28l0pkl2"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "git.sr.ht/~rjarry/aerc"
+ #:install-source? #f ; end-user application
+ #:build-flags
+ #~(list "-tags=notmuch" "-ldflags"
+ (string-append "-X main.Version="
+ #$(go-version->git-ref version)
+ " -X git.sr.ht/~rjarry/aerc/config.shareDir="
+ #$output "/share/aerc"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'build 'doc
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (invoke "make" "doc"))))
+ (replace 'install
+ (lambda* (#:key outputs import-path #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (with-directory-excursion (string-append "src/" import-path)
+ (invoke "make" "install"
+ (string-append "PREFIX=" out)))))))))
+ (native-inputs (list scdoc))
+ (propagated-inputs (list go-github-com-zenhack-go-notmuch
+ go-gopkg-in-yaml-v2
+ go-google-golang-org-protobuf-proto
+ go-google-golang-org-appengine
+ go-golang-org-x-term
+ go-golang-org-x-sys
+ go-golang-org-x-oauth2
+ go-golang-org-x-net
+ 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-pointer
+ go-github-com-mattn-go-isatty
+ go-github-com-lucasb-eyer-go-colorful
+ go-github-com-lithammer-fuzzysearch
+ go-github-com-kyoh86-xdg
+ go-github-com-imdario-mergo
+ go-github-com-google-shlex
+ go-github-com-golang-protobuf-proto
+ go-github-com-go-ini-ini
+ go-github-com-gdamore-tcell
+ 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-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-openpgp
+ go-git-srht-sircmpwn-getopt))
+ (home-page "https://git.sr.ht/~rjarry/aerc")
+ (synopsis "A pretty good email client")
+ (description "@code{aerc} is an email client for your terminal.")
+ (license license:expat)))