From: Amin Bandali <mab@gnu.org>
To: 39308@debbugs.gnu.org
Cc: Amin Bandali <mab@gnu.org>
Subject: [bug#39308] [PATCH] gnu: Install the udev rules for light to its output.
Date: Mon, 27 Jan 2020 09:52:47 -0500 [thread overview]
Message-ID: <20200127145247.4327-1-mab@gnu.org> (raw)
* 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
next reply other threads:[~2020-01-27 14:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-27 14:52 Amin Bandali [this message]
2020-01-27 17:54 ` [bug#39308] [PATCH] gnu: Install the udev rules for light to its output Amin Bandali
2020-01-27 18:01 ` bug#39308: " Efraim Flashner
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=20200127145247.4327-1-mab@gnu.org \
--to=mab@gnu.org \
--cc=39308@debbugs.gnu.org \
/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.