[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#57027] [PATCH v2] gnu: Add emacs-tmr.
From: |
jgart |
Subject: |
[bug#57027] [PATCH v2] gnu: Add emacs-tmr. |
Date: |
Tue, 9 Aug 2022 19:31:50 -0500 |
* gnu/packages/emacs-xyz.scm (emacs-tmr): New variable.
Forgot to patch ffplay ;()
---
gnu/packages/emacs-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 2691072268..bb63c9bd79 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -13676,6 +13676,40 @@ (define-public emacs-logos
(license (list license:gpl3+
license:fdl1.3+)))) ; GFDLv1.3+ for the manual
+(define-public emacs-tmr
+ (package
+ (name "emacs-tmr")
+ (version "0.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.sr.ht/~protesilaos/tmr")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1vz9zfqap221baiy41wpxph33g6h2plnanzgpjs0wk8dz1fpwfky"))))
+ (build-system emacs-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-ffplay
+ (lambda* (#:key inputs #:allow-other-keys)
+ (make-file-writable "tmr.el")
+ (substitute* "tmr.el"
+ (("\"ffplay")
+ (string-append "\""
+ (search-input-file inputs
+ "/bin/ffplay")))))))))
+ (native-inputs (list texinfo))
+ (inputs (list ffmpeg))
+ (home-page "https://protesilaos.com/emacs/tmr/")
+ (synopsis "Set timers using a convenient notation")
+ (description
+"Emacs package to set timers using a convenient notation.")
+ (license license:gpl3+)))
+
(define-public emacs-gn-mode
(package
(name "emacs-gn-mode")
--
2.37.1