diff mbox series

[bug#57027,v2] gnu: Add emacs-tmr.

Message ID 20220810003149.23233-1-jgart@dismail.de
State Accepted
Headers show
Series [bug#57027,v2] gnu: Add emacs-tmr. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

jgart Aug. 10, 2022, 12:31 a.m. UTC
* gnu/packages/emacs-xyz.scm (emacs-tmr): New variable.

Forgot to patch ffplay ;()
---
 gnu/packages/emacs-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Comments

Nicolas Goaziou Aug. 26, 2022, 8:29 a.m. UTC | #1
Hello,

jgart via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/emacs-xyz.scm (emacs-tmr): New variable.

Applied. Thank you.

> +    (description
> +"Emacs package to set timers using a convenient notation.")

I changed this into a full sentence.

Regards,
diff mbox series

Patch

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")