dotfiles/oni/packages/count-emails.scm

43 lines
1.6 KiB
Scheme
Raw Normal View History

(define-module (oni packages count-emails)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages shells)
#:use-module (gnu packages mail))
(define-public count-emails
2022-10-14 05:45:32 +02:00
(let ((commit "66165bdecea54888967fcc6a8c29a3df09a18256")
(revision "0"))
(package
(name "count-emails")
(version (git-version "0.0.0" revision commit))
(source
(origin
(uri (git-reference
(url "git://ryuslash.org/util/tom/count-emails")
(commit commit)))
(method git-fetch)
(sha256
2022-10-14 05:45:32 +02:00
(base32 "0pv4wbxbg0szs2jiskmxvivrq44ha5ljdn18j3j2pi8q1dp9rmb3"))
(file-name (git-file-name name version))))
(propagated-inputs
(list bash scsh notmuch))
(build-system gnu-build-system)
(arguments
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(delete 'configure)
(delete 'build)
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
(install-file "count-emails" bin)))))))
(home-page "https://ryuslash.org/")
(synopsis "A simple script that counts the number of unread emails.")
(description "Counts the number of unread emails.")
(license license:gpl3+))))