dotfiles/oni/packages/count-emails.scm

42 lines
1.6 KiB
Scheme

(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
(let ((commit "de8d1094fca307b44020ae85ef0acf0d467cd8c4")
(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
(base32 "1wkppgkwp6rd7bx9zbyyljq4px47jb2flfgiflvjh1qxwdz9m25a"))
(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+))))