[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/22: services: gnome-polkit-settings: Add spice-gtk.
From: |
guix-commits |
Subject: |
17/22: services: gnome-polkit-settings: Add spice-gtk. |
Date: |
Sat, 25 Feb 2023 14:51:30 -0500 (EST) |
apteryx pushed a commit to branch master
in repository guix.
commit acbb112c1b40adb03f3f72c8c8f5bbf2b51c08d6
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Feb 16 12:21:39 2023 -0500
services: gnome-polkit-settings: Add spice-gtk.
* gnu/services/desktop.scm (gnome-polkit-settings): Add spice-gtk to the
GNOME
packages providing polkit rules.
(package-direct-input-selector): Allow passing a list corresponding to the
dependency tree, so that non-propagated transitive inputs can be specified.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
gnu/services/desktop.scm | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index fe1f0fd20a..189334dc23 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
-;;; Copyright © 2017, 2020, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2017, 2020, 2022, 2023 Maxim Cournoyer
<maxim.cournoyer@gmail.com>
;;; Copyright © 2017 Nikita <nikita@n0.is>
;;; Copyright © 2018, 2020, 2022 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
@@ -183,11 +183,19 @@
(define (bool value)
(if value "true\n" "false\n"))
-(define (package-direct-input-selector input)
+(define (package-direct-input-selector tree)
+ "Return a procedure that selects TREE from the inputs of PACKAGE. If TREE
+is a list, it recursively searches it until it locates the last item of TREE."
(lambda (package)
- (match (assoc-ref (package-direct-inputs package) input)
- ((package . _) package))))
-
+ (let loop ((tree (if (pair? tree)
+ tree
+ (list tree)))
+ (package package))
+ (if (null? tree)
+ package
+ (loop (cdr tree)
+ (car (assoc-ref (package-direct-inputs package)
+ (car tree))))))))
;;;
@@ -1360,7 +1368,10 @@ rules."
'("gnome-settings-daemon"
"gnome-control-center"
"gnome-system-monitor"
- "gvfs")))
+ "gvfs"
+ ;; spice-gtk provides polkit actions for USB redirection
+ ;; in GNOME Boxes.
+ ("gnome-boxes" "spice-gtk"))))
(define gnome-desktop-service-type
(service-type
- branch master updated (7b40cb7c6e -> 61f691fdfb), guix-commits, 2023/02/25
- 01/22: gnu: spice-gtk: Fix indentation and normalize field order., guix-commits, 2023/02/25
- 03/22: gnu: spice-gtk: Use gexps., guix-commits, 2023/02/25
- 17/22: services: gnome-polkit-settings: Add spice-gtk.,
guix-commits <=
- 14/22: gnu: spice-gtk: Enable support for polkit, webdav and others., guix-commits, 2023/02/25
- 20/22: gnu: gnome-boxes: Mention extra configuration requirements., guix-commits, 2023/02/25
- 21/22: gnu: spice-gtk: Adjust the default file name of the ACL helper binary., guix-commits, 2023/02/25
- 09/22: gnu: libcacard: Remove obsolete configure flags., guix-commits, 2023/02/25
- 13/22: gnu: phodav: Propagate glib, libsoup and libxml2., guix-commits, 2023/02/25
- 04/22: gnu: spice-gtk: Update to 0.42., guix-commits, 2023/02/25
- 18/22: services: desktop: Extract a new gnome-package procedure., guix-commits, 2023/02/25
- 07/22: gnu: usbredir: Update to 0.13.0., guix-commits, 2023/02/25
- 08/22: gnu: virglrenderer: Update to 0.7.0., guix-commits, 2023/02/25
- 11/22: gnu: spice-vdagent: Update to 0.22.1., guix-commits, 2023/02/25