2022-09-27 01:05:48 +02:00
|
|
|
(define-module (oni packages inbox-size)
|
|
|
|
#: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)
|
2022-11-08 05:16:19 +01:00
|
|
|
#:use-module (oni packages scsh))
|
2022-09-27 01:05:48 +02:00
|
|
|
|
|
|
|
(define-public (inbox-size emacs)
|
|
|
|
(let ((commit "e9a94db05e45be9357ccc757601c1cd890a6254c")
|
|
|
|
(revision "0"))
|
|
|
|
(package
|
|
|
|
(name "inbox-size")
|
|
|
|
(version (git-version "0.0.0" revision commit))
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(uri (git-reference
|
|
|
|
(url "git://ryuslash.org/util/tom/inbox-size")
|
|
|
|
(commit commit)))
|
|
|
|
(method git-fetch)
|
|
|
|
(sha256
|
|
|
|
(base32 "09mjxk85cqvcxk5n51izfqap36pjd35z476fmvd5vq7d5kgnczzw"))
|
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
(propagated-inputs
|
|
|
|
(list bash scsh emacs))
|
|
|
|
(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 "inbox-size" bin)))))))
|
|
|
|
(home-page "https://ryuslash.org/")
|
|
|
|
(synopsis "A simple script that checks the size of my GTD inbox.")
|
|
|
|
(description "Counts the number of items in my GTD inbox.")
|
|
|
|
(license license:gpl3+))))
|