Subject: bug#39308: closed (Re: [bug#39308] [PATCH] gnu: Install the udev rules for light to its output.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 27 Jan 2020 18:03:02 +0000

Your bug report

#39308: [PATCH] gnu: Install the udev rules for light to its output.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
39308: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=39308
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#39308] [PATCH] gnu: Install the udev rules for light to its output.
From: Efraim Flashner <[email-masked]>
To: Amin Bandali <[email-masked]>
Cc: [email-masked]
Date: Mon, 27 Jan 2020 20:01:38 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Looks good to me! Patch pushed.

-- 
Efraim Flashner   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Subject: [PATCH] gnu: Install the udev rules for light to its output.
From: Amin Bandali <[email-masked]>
To: [email-masked]
Cc: Amin Bandali <[email-masked]>
Date: Mon, 27 Jan 2020 09:52:47 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/linux.scm (light): Add install-udev-rules phase to copy the
90-backlight.rules file from the root of the repository to the special
lib/udev/rules.d/ directory of the out output.
---
 gnu/packages/linux.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 9b0dfd8eb7..dfbe2f88bd 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -5042,6 +5042,15 @@ monitoring tools for Linux.  These include @code{mpstat}, @code{iostat},
         (base32 "0zrjipd392bzjvxx0rjrb0cgi0ix1d83fwgw1mcy8kc4d16cgyjg"))
        (file-name (git-file-name name version))))
     (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-udev-rules
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (install-file
+                "90-backlight.rules" (string-append out "/lib/udev/rules.d"))
+               #t))))))
     (native-inputs
      `(("autoconf" ,autoconf)
        ("automake" ,automake)))
-- 
2.25.0