all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ian Eure <ian@retrospec.tv>
To: 67350@debbugs.gnu.org
Cc: Ian Eure <ian@retrospec.tv>, Andrew Tropin <andrew@trop.in>,
	Katherine Cox-Buday <cox.katherine.e+guix@gmail.com>,
	Liliana Marie Prikler <liliana.prikler@gmail.com>
Subject: [bug#67350] [PATCH] gnu: emacs-blight: Update to 1.1.
Date: Tue, 21 Nov 2023 14:31:19 -0800	[thread overview]
Message-ID: <d915db8b1d948b8c9357f41c02935a2f77714644.1700605879.git.ian@retrospec.tv> (raw)

*  (emacs-blight): Update to 1.1.

Include udev rules granting access to the backlight.

Change-Id: If277c0845845555d99b9fc55c908ffcea6ea56e6
---
 gnu/packages/emacs-xyz.scm | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 90fe9fceeb..0159b2875d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -6031,11 +6031,11 @@ (define-public emacs-inflections
     (license license:gpl3+)))
 
 (define-public emacs-blight
-  (let ((commit "6bf9c6192d2bf979eebbfae1963401ef3ff4ef5d")
+  (let ((commit "3fc2f1ef73de0c2b22a4db72adc4c4b051b34ea0")
         (revision "0"))
     (package
       (name "emacs-blight")
-      (version (git-version "0" revision commit))
+      (version (git-version "1.1" revision commit))
       (source
        (origin
          (method git-fetch)
@@ -6044,8 +6044,22 @@ (define-public emacs-blight
                (commit commit)))
          (file-name (git-file-name name version))
          (sha256
-          (base32 "1x7s1fcva5kkl9iyb5grd6crf38rrz3zb0c6wb85khi9far10vgq"))))
+          (base32 "1k1w1jr56pp8dgcpdxrymiam1hxsdy7nh6gi5l17pimwba3r4wbm"))))
       (build-system emacs-build-system)
+      (arguments
+       (list
+        #:phases #~(modify-phases %standard-phases
+                     (add-after 'unpack 'patch-udev-rules-absolute-path-bins
+                       (lambda* (#:key inputs #:allow-other-keys)
+                         (substitute* "20-backlight.rules"
+                           (("/bin/chgrp") (which "chgrp"))
+                           (("/bin/chmod") (which "chmod")))
+                         #t))
+                     (add-after 'install 'install-udev-rules
+                       (lambda* (#:key inputs outputs #:allow-other-keys)
+                         (install-file "20-backlight.rules"
+                                       (string-append (assoc-ref outputs "out")
+                                                      "/lib/udev/rules.d")))))))
       (home-page "https://codeberg.org/emacs-weirdware/blight")
       (synopsis "Control display brightness")
       (description

base-commit: 42be8fa560a7554ac35801b46c3a0a007fd742ce
-- 
2.41.0





             reply	other threads:[~2023-11-21 22:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-21 22:31 Ian Eure [this message]
2024-01-04 11:30 ` bug#67350: [PATCH] gnu: emacs-blight: Update to 1.1 Nicolas Goaziou via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d915db8b1d948b8c9357f41c02935a2f77714644.1700605879.git.ian@retrospec.tv \
    --to=ian@retrospec.tv \
    --cc=67350@debbugs.gnu.org \
    --cc=andrew@trop.in \
    --cc=cox.katherine.e+guix@gmail.com \
    --cc=liliana.prikler@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.