unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#57088] [PATCH] Add emacs-blight and emacs-lemon
@ 2022-08-09 18:57 Baptiste Strazzulla
  2022-08-26  8:29 ` bug#57088: " Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Baptiste Strazzulla @ 2022-08-09 18:57 UTC (permalink / raw)
  To: 57088


[-- Attachment #1.1: Type: text/plain, Size: 2 bytes --]



[-- Attachment #1.2: Type: text/html, Size: 337 bytes --]

[-- Attachment #2: 0001-gnu-Add-emacs-blight.patch --]
[-- Type: application/octet-stream, Size: 2571 bytes --]

From 80953dce0f7a5de74d020520770553899e7222f8 Mon Sep 17 00:00:00 2001
From: Zzull <bstrazzull@hotmail.fr>
Date: Tue, 9 Aug 2022 20:51:23 +0200
Subject: [PATCH 1/2] gnu: Add emacs-blight

* gnu/packages/emacs-xyz.scm (emacs-blight): New variable.
---
 gnu/packages/emacs-xyz.scm | 31 ++++++++++++++++++++++++++++++-
 1 file changed, 30 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 3c1d322db3..e74a78557a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -49,7 +49,7 @@
 ;;; Copyright © 2019, 2020, 2021 Joseph LaFreniere <joseph@lafreniere.xyz>
 ;;; Copyright © 2019 Todor Kondić <tk.code@protonmail.com>15669
 ;;; Copyright © 2019 Amar Singh <nly@disroot.org>
-;;; Copyright © 2019 Baptiste Strazzulla <bstrazzull@hotmail.fr>
+;;; Copyright © 2019, 2022 Baptiste Strazzulla <bstrazzull@hotmail.fr>
 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;; Copyright © 2019 Jens Mølgaard <jens@zete.tk>
 ;;; Copyright © 2019, 2020 Amin Bandali <bandali@gnu.org>
@@ -4300,6 +4300,35 @@ (define-public emacs-s
 strings.")
     (license license:gpl3+)))
 
+(define-public emacs-blight
+  (let ((commit "6bf9c6192d")
+        (revision "0"))
+    (package
+      (name "emacs-blight")
+      (version (git-version "1.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/blight")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1x7s1fcva5kkl9iyb5grd6crf38rrz3zb0c6wb85khi9far10vgq"))))
+      (build-system emacs-build-system)
+      (home-page "https://codeberg.org/emacs-weirdware/blight")
+      (synopsis "Control display brightness")
+      (description
+       "@code{blight} allows you to control display brightness from Emacs.  It
+features object-oriented code using EIEIO, a base class implementing a
+reasonable API which focuses on the extremely basic \"set the back light to
+this percentage\" functionality instead of advanced tightly-coupled frippery,
+it includes a concrete implementation that uses SysFS to control brightness.
+Other systems (D-Bus, macOS, Windows, xbacklight, XELB using XRandR) are
+easily supportable, giving the same experience across environments.  It has a
+500% snappier name than any other backlight tool for Emacs.")
+      (license license:gpl3+))))
+
 (define-public emacs-symon
   (package
     (name "emacs-symon")
-- 
2.37.1


[-- Attachment #3: 0002-gnu-Add-emacs-lemon.patch --]
[-- Type: application/octet-stream, Size: 2002 bytes --]

From fd779bc76c3aa4f34c1fd921096d422e3e798ecf Mon Sep 17 00:00:00 2001
From: Zzull <bstrazzull@hotmail.fr>
Date: Tue, 9 Aug 2022 20:52:19 +0200
Subject: [PATCH 2/2] gnu: Add emacs-lemon

* gnu/packages/emacs-xyz.scm (emacs-lemon): New variable.
---
 gnu/packages/emacs-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index e74a78557a..3e12b9e50a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -4349,6 +4349,36 @@ (define-public emacs-symon
      "Tiny graphical system monitor for the Emacs minibuffer when idle.")
     (license license:gpl2+)))
 
+(define-public emacs-lemon
+  (let ((commit "37a6e6d6ef")
+        (revision "0"))
+    (package
+      (name "emacs-lemon")
+      (version (git-version "2.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/lemon")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0bc77vzi4p6mlzmhgybbldlpcsiiv4xqrd5lnc7wzvmxv8byhqpm"))))
+      (build-system emacs-build-system)
+      (native-inputs
+       (list emacs-emms emacs-blight))
+      (propagated-inputs
+       (list emacs-s))
+      (home-page "https://codeberg.org/emacs-weirdware/lemon")
+      (synopsis "System monitors in the echo area")
+      (description
+       "@code{lemon} is a tiny system monitor which displays system information
+in the echo area when Emacs is has been idle for a few seconds.  This is a
+fork of zk_phi’s Symon, which has been largely rewritten.  It fixes a number of
+bugs and shortcomings and emphasizes customizability and code reuse, but also
+drops support for non-Linux platforms.  It works nicely with EXWM.")
+      (license license:gpl3+))))
+
 (define-public emacs-sx
   (let ((version "20191229")
         (revision "0")
-- 
2.37.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#57088: [PATCH] Add emacs-blight and emacs-lemon
  2022-08-09 18:57 [bug#57088] [PATCH] Add emacs-blight and emacs-lemon Baptiste Strazzulla
@ 2022-08-26  8:29 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2022-08-26  8:29 UTC (permalink / raw)
  To: Baptiste Strazzulla; +Cc: 57088-done

Hello,

Baptiste Strazzulla <bstrazzull@hotmail.fr> writes:

> Subject: [PATCH 1/2] gnu: Add emacs-blight

Applied with the following changes. Thank you.

> +(define-public emacs-blight
> +  (let ((commit "6bf9c6192d")

Changed to a full hash.

> +        (revision "0"))
> +    (package
> +      (name "emacs-blight")
> +      (version (git-version "1.0.0" revision commit))

AFAICT, there is no mention of a version number whatsoever across the
code base. I set the base version to 0 instead.

> +      (description
> +       "@code{blight} allows you to control display brightness from Emacs.  It
> +features object-oriented code using EIEIO, a base class implementing a
> +reasonable API which focuses on the extremely basic \"set the back light to
> +this percentage\" functionality instead of advanced tightly-coupled frippery,
> +it includes a concrete implementation that uses SysFS to control brightness.
> +Other systems (D-Bus, macOS, Windows, xbacklight, XELB using XRandR) are
> +easily supportable, giving the same experience across environments.  It has a
> +500% snappier name than any other backlight tool for Emacs.")

I trimmed down the description a bit.

> +(define-public emacs-lemon
> +  (let ((commit "37a6e6d6ef")

Same as above.

> +      (native-inputs
> +       (list emacs-emms emacs-blight))

I re-ordered inputs alphabetically.

> +      (description
> +       "@code{lemon} is a tiny system monitor which displays system information
> +in the echo area when Emacs is has been idle for a few seconds.  This is a
> +fork of zk_phi’s Symon, which has been largely rewritten.  It fixes a number of
> +bugs and shortcomings and emphasizes customizability and code reuse, but also
> +drops support for non-Linux platforms.  It works nicely with EXWM.")

I removed the penultimate sentence, which is not useful in our case.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-26  8:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-09 18:57 [bug#57088] [PATCH] Add emacs-blight and emacs-lemon Baptiste Strazzulla
2022-08-26  8:29 ` bug#57088: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).