diff mbox series

[bug#39323] gnu: Add emacs-delight.

Message ID 20200127235245.15174-1-mab@gnu.org
State Accepted
Headers show
Series [bug#39323] gnu: Add emacs-delight. | expand

Checks

Context Check Description
cbaines/applying patch fail View Laminar job

Commit Message

Amin Bandali Jan. 27, 2020, 11:52 p.m. UTC
* gnu/packages/emacs-xyz.scm (emacs-delight): New variable.
---
 gnu/packages/emacs-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

Comments

Nicolas Goaziou Jan. 28, 2020, 7:57 a.m. UTC | #1
Hello,

Amin Bandali <mab@gnu.org> writes:

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

Thank you.

> +(define-public emacs-delight
> +  (let ((commit "05ef4d7d1a371884defcb47e881904f2a25a40b7")
> +        (revision "0"))
> +    (package
> +      (name "emacs-delight")
> +      (version (git-version "1.5" revision commit))
> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri (git-reference
> +               (url "https://git.savannah.gnu.org/git/delight.git")
> +               (commit commit)))

Is it possible to stick to the release from GNU ELPA instead? Or is
there any particular reason to use this commit?

Regards,
diff mbox series

Patch

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c5214405d0..3c6edbad3f 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21125,3 +21125,25 @@  pattern guessed from thing under current cursor position.
 mercury-mode provided by Emacs as a wrapper around prolog-mode.")
       (home-page "https://github.com/ahungry/metal-mercury-mode")
       (license license:gpl3+))))
+
+(define-public emacs-delight
+  (let ((commit "05ef4d7d1a371884defcb47e881904f2a25a40b7")
+        (revision "0"))
+    (package
+      (name "emacs-delight")
+      (version (git-version "1.5" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://git.savannah.gnu.org/git/delight.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0z4p8bl2sac2zdmx2bbzzcb09y7bxbbr1r6x6b68w2swngkm9rac"))))
+      (build-system emacs-build-system)
+      (home-page "https://elpa.gnu.org/packages/delight.html")
+      (synopsis "Dimmer switch for your mode-line lighter text")
+      (description "@code{delight} enables customizing or hiding the
+mode-line text (lighter) of major and minor modes.")
+      (license license:gpl3+))))