Subject: [PATCH 08/13] services: gitolite-accounts: Convert to match-record.

From: Tomas Volf <[email-masked]>
Date: Sat, 22 Mar 2025 18:00:28 +0100

* gnu/services/version-control.scm (gitolite-accounts): Use match-record
instead of match-lambda with $.

Change-Id: I37e3018513a8f20eeed8614dff46a63b8d7c2883
---
 gnu/services/version-control.scm | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/gnu/services/version-control.scm b/gnu/services/version-control.scm
index 5e217ed170..83391c15d1 100644
--- a/gnu/services/version-control.scm
+++ b/gnu/services/version-control.scm
@@ -335,18 +335,19 @@ (define-record-type* <gitolite-configuration>
                   (default (gitolite-rc-file)))
   (admin-pubkey   gitolite-configuration-admin-pubkey))
 
-(define gitolite-accounts
-  (match-lambda
-    (($ <gitolite-configuration> package user group home-directory
-                                 rc-file admin-pubkey)
-     ;; User group and account to run Gitolite.
-     (list (user-group (name group) (system? #t))
-           (user-account
-            (name user)
-            (group group)
-            (system? #t)
-            (comment "Gitolite user")
-            (home-directory home-directory))))))
+(define (gitolite-accounts config)
+  (match-record config <gitolite-configuration>
+                (user group home-directory)
+    ;; User group and account to run Gitolite.
+    (list (user-group
+           (name group)
+           (system? #t))
+          (user-account
+           (name user)
+           (group group)
+           (system? #t)
+           (comment "Gitolite user")
+           (home-directory home-directory)))))
 
 (define gitolite-activation
   (match-lambda
-- 
2.48.1