[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/45: services: udev: Rewrite udev-rule to use file->udev-rule.
From: |
guix-commits |
Subject: |
20/45: services: udev: Rewrite udev-rule to use file->udev-rule. |
Date: |
Sun, 18 Feb 2024 08:41:06 -0500 (EST) |
jpoiret pushed a commit to branch core-updates-glibc-2.39
in repository guix.
commit d4127f9a6feb3e015d7bfa57c1ea11fda1ef8b69
Author: Vivien Kraus <vivien@planete-kraus.eu>
AuthorDate: Thu Oct 5 19:33:24 2023 +0200
services: udev: Rewrite udev-rule to use file->udev-rule.
* gnu/services/base.scm (udev-rule): Use file->udev-rule.
---
gnu/services/base.scm | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 60388a22dd..2da29e65ba 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -2271,19 +2271,7 @@ item of @var{packages}."
(define (udev-rule file-name contents)
"Return a directory with a udev rule file FILE-NAME containing CONTENTS."
- (computed-file file-name
- (with-imported-modules '((guix build utils))
- #~(begin
- (use-modules (guix build utils))
-
- (define rules.d
- (string-append #$output "/lib/udev/rules.d"))
-
- (mkdir-p rules.d)
- (call-with-output-file
- (string-append rules.d "/" #$file-name)
- (lambda (port)
- (display #$contents port)))))))
+ (file->udev-rule file-name (plain-file file-name contents)))
(define (file->udev-rule file-name file)
"Return a directory with a udev rule file FILE-NAME which is a copy of FILE."
- 17/45: gnu: shadow: Add libxcrypt dependency., (continued)
- 17/45: gnu: shadow: Add libxcrypt dependency., guix-commits, 2024/02/18
- 18/45: gnu: tcsh: Add libxcrypt dependency., guix-commits, 2024/02/18
- 28/45: gnu: apr: Add libxcrypt dependency., guix-commits, 2024/02/18
- 21/45: services: udev: Make udev-rule helper functions generic., guix-commits, 2024/02/18
- 37/45: gnu: cryptsetup: G-Expify static-library., guix-commits, 2024/02/18
- 09/45: gnu: ffmpeg: Fix builds., guix-commits, 2024/02/18
- 19/45: gnu: eudev: Update to 3.2.14., guix-commits, 2024/02/18
- 33/45: gnu: tdb: Add libxcrypt dependency., guix-commits, 2024/02/18
- 24/45: gnu: upower: Update to 1.90.2., guix-commits, 2024/02/18
- 16/45: gnu: elogind: Add libxcrypt dependency., guix-commits, 2024/02/18
- 20/45: services: udev: Rewrite udev-rule to use file->udev-rule.,
guix-commits <=
- 27/45: gnu: apr-util: Update to 1.6.3., guix-commits, 2024/02/18
- 41/45: gnu: sambda/pinned: Add libxcrypt dependency., guix-commits, 2024/02/18
- 13/45: gnu: libxcrypt: Remove python from native-inputs., guix-commits, 2024/02/18
- 12/45: gnu: gcc: Patch crypt out of bundled libsanitizer., guix-commits, 2024/02/18
- 42/45: gnu: talloc: Remove reference to crypt., guix-commits, 2024/02/18
- 23/45: gnu: libgudev: Update to 238., guix-commits, 2024/02/18
- 34/45: gnu: httpd: Add libxcrypt dependency., guix-commits, 2024/02/18
- 25/45: gnu: mesa: Hardcode libvulkan.so's dependency for zink., guix-commits, 2024/02/18
- 43/45: gnu: tevent: Remove reference to crypt., guix-commits, 2024/02/18
- 29/45: gnu: apr-util: Add libxcrypt dependency., guix-commits, 2024/02/18