gnu: Add emacs-alarm-clock.

* gnu/packages/emacs-xyz.scm (emacs-alarm-clock): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Arun Isaac 2022-08-27 10:41:36 +02:00 committed by Nicolas Goaziou
parent 5655a84779
commit 5299ee228f
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -1993,6 +1993,41 @@ (define-public emacs-ahg
Distributed @acronym{Source Control Management, SCM} system.")
(license license:gpl3+))))
(define-public emacs-alarm-clock
(package
(name "emacs-alarm-clock")
(version "1.0.1")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/wlemuel/alarm-clock")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"11afq6lnlqdzbll015fx3031bslwfaz5362qgk2ipgqlk872559h"))))
(build-system emacs-build-system)
(arguments
(list #:include #~(cons "alarm.mp3" %default-include)
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'configure
(lambda* (#:key inputs #:allow-other-keys)
(let ((mpg123 (search-input-file inputs "/bin/mpg123"))
(notify-send
(search-input-file inputs "/bin/notify-send")))
(substitute* "alarm-clock.el"
(("\"mpg123\"") (string-append "\"" mpg123 "\""))
(("notify-send") notify-send))))))))
(inputs
(list libnotify mpg123))
(propagated-inputs
(list emacs-f))
(home-page "https://github.com/wlemuel/alarm-clock")
(synopsis "Alarm clock for Emacs")
(description "Alarm Clock provides an alarm clock for Emacs.")
(license license:gpl3+)))
(define-public emacs-anaphora
(package
(name "emacs-anaphora")