gnu: spice-gtk: Enable support for polkit, webdav and others.
* gnu/packages/spice.scm (spice-gtk) [arguments]: Add the correct-polkit-dir and fake-pkexec phases. [inputs]: Add acl, cyrus-sasl, libcap-ng, polkit and usbutils. [propagated-inputs]: Add libcacard and phodav. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
9582f49a0c
commit
27ae83f5f0
@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
(define-module (gnu packages spice)
|
(define-module (gnu packages spice)
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages acl)
|
||||||
|
#:use-module (gnu packages admin)
|
||||||
#:use-module (gnu packages autotools)
|
#:use-module (gnu packages autotools)
|
||||||
#:use-module (gnu packages base)
|
#:use-module (gnu packages base)
|
||||||
#:use-module (gnu packages bash)
|
#:use-module (gnu packages bash)
|
||||||
@ -39,6 +41,7 @@
|
|||||||
#:use-module (gnu packages nss)
|
#:use-module (gnu packages nss)
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
|
#:use-module (gnu packages polkit)
|
||||||
#:use-module (gnu packages pulseaudio)
|
#:use-module (gnu packages pulseaudio)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
#:use-module (gnu packages python-build)
|
#:use-module (gnu packages python-build)
|
||||||
@ -156,6 +159,13 @@ which allows users to view a desktop computing environment.")
|
|||||||
((".*'session.c',.*") "")
|
((".*'session.c',.*") "")
|
||||||
(("tests_sources \\+= 'cd-emu.c'" all)
|
(("tests_sources \\+= 'cd-emu.c'" all)
|
||||||
(string-append "# " all)))))
|
(string-append "# " all)))))
|
||||||
|
(add-before 'configure 'correct-polkit-dir
|
||||||
|
(lambda _
|
||||||
|
(substitute* "meson.build"
|
||||||
|
(("d.get_variable\\(pkgconfig: 'policydir')")
|
||||||
|
(string-append "'" #$output "/share/polkit-1/actions'")))))
|
||||||
|
(add-before 'install 'fake-pkexec
|
||||||
|
(lambda _ (setenv "PKEXEC_UID" "-1")))
|
||||||
(add-after 'install 'wrap-spicy
|
(add-after 'install 'wrap-spicy
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(wrap-program (search-input-file outputs "bin/spicy")
|
(wrap-program (search-input-file outputs "bin/spicy")
|
||||||
@ -170,13 +180,18 @@ which allows users to view a desktop computing environment.")
|
|||||||
python-six
|
python-six
|
||||||
vala))
|
vala))
|
||||||
(inputs
|
(inputs
|
||||||
(list glib-networking
|
(list cyrus-sasl
|
||||||
|
glib-networking
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
json-glib
|
json-glib
|
||||||
|
acl
|
||||||
|
libcap-ng
|
||||||
libepoxy
|
libepoxy
|
||||||
libxcb
|
libxcb
|
||||||
mesa
|
mesa
|
||||||
pulseaudio))
|
polkit
|
||||||
|
pulseaudio
|
||||||
|
usbutils))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list gstreamer
|
(list gstreamer
|
||||||
gst-plugins-base
|
gst-plugins-base
|
||||||
@ -187,8 +202,10 @@ which allows users to view a desktop computing environment.")
|
|||||||
gtk+
|
gtk+
|
||||||
openssl-1.1
|
openssl-1.1
|
||||||
opus
|
opus
|
||||||
|
libcacard
|
||||||
libjpeg-turbo
|
libjpeg-turbo
|
||||||
lz4
|
lz4
|
||||||
|
phodav
|
||||||
pixman
|
pixman
|
||||||
usbredir))
|
usbredir))
|
||||||
(synopsis "Gtk client and libraries for SPICE remote desktop servers")
|
(synopsis "Gtk client and libraries for SPICE remote desktop servers")
|
||||||
|
Loading…
Reference in New Issue
Block a user