aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/emacs-xyz.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/emacs-xyz.scm')
-rw-r--r--gnu/packages/emacs-xyz.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index fb49a5e353..5500796c71 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -1993,6 +1993,41 @@ directly.")
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")