From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:40587) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iw5n5-0007Uy-KJ for guix-patches@gnu.org; Mon, 27 Jan 2020 09:55:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iw5n4-0003Kk-MI for guix-patches@gnu.org; Mon, 27 Jan 2020 09:55:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51996) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iw5n4-0003K0-J1 for guix-patches@gnu.org; Mon, 27 Jan 2020 09:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iw5n4-0004kI-I6 for guix-patches@gnu.org; Mon, 27 Jan 2020 09:55:02 -0500 Subject: [bug#39308] [PATCH] gnu: Install the udev rules for light to its output. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:40341) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iw5mA-00079k-LJ for guix-patches@gnu.org; Mon, 27 Jan 2020 09:54:07 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iw5mA-0001Ur-IA for guix-patches@gnu.org; Mon, 27 Jan 2020 09:54:06 -0500 From: Amin Bandali Date: Mon, 27 Jan 2020 09:52:47 -0500 Message-Id: <20200127145247.4327-1-mab@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39308@debbugs.gnu.org Cc: Amin Bandali * 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