aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/spice.scm
blob: 3b88e2904313ac8d3fe6d4ba289b8b957b14da55 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 David Craven <david@craven.ch>
;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu services spice)
  #:use-module (gnu packages spice)
  #:use-module (gnu services)
  #:use-module (gnu services shepherd)
  #:use-module (guix gexp)
  #:use-module (guix records)
  #:export (spice-vdagent-configuration
            spice-vdagent-configuration?
            spice-vdagent-service-type
            spice-vdagent-service))

(define-record-type* <spice-vdagent-configuration>
  spice-vdagent-configuration make-spice-vdagent-configuration
  spice-vdagent-configuration?
  (spice-vdagent spice-vdagent-configuration-spice-vdagent
                 (default spice-vdagent)))

(define (spice-vdagent-shepherd-service config)
  "Return a <shepherd-service> for spice-vdagentd with CONFIG."
  (define spice-vdagent (spice-vdagent-configuration-spice-vdagent config))

  (define spice-vdagentd-command
    (list
     (file-append spice-vdagent "/sbin/spice-vdagentd")
     "-x"))

  (list
   (shepherd-service
    (documentation "Spice vdagentd service")
    (requirement '(dbus-system))
    (provision '(spice-vdagentd))
    (start #~(lambda args
               ;; spice-vdagentd supports being activated upon the client
               ;; connecting to its socket; when not using such feature, the
               ;; socket should not exist before vdagentd creates it itself.
               (mkdir-p "/run/spice-vdagentd")
               (false-if-exception
                (delete-file "/run/spice-vdagentd/spice-vdagent-sock"))
               (fork+exec-command '#$spice-vdagentd-command)))
    (stop #~(make-kill-destructor)))))

(define spice-vdagent-profile
  (compose list spice-vdagent-configuration-spice-vdagent))

(define spice-vdagent-service-type
  (service-type
   (name 'spice-vdagent)
   (default-value (spice-vdagent-configuration))
   (extensions
    (list (service-extension shepherd-root-service-type
                             spice-vdagent-shepherd-service)
          (service-extension profile-service-type
                             spice-vdagent-profile)))))

(define* (spice-vdagent-service
          #:optional (config (spice-vdagent-configuration)))
  "Start the @command{vdagentd} and @command{vdagent} daemons
from @var{spice-vdagent} to enable guest window resizing and
clipboard sharing."
  (service spice-vdagent-service-type config))
/vnc.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wireservice.scm, gnu/packages/wm.scm, gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, tests/lint.scm: Remove trailing ".git" from 'git-reference' URL. Ludovic Courtès 2020-06-18gnu: go-ipfs: Update to 0.5.1....* gnu/packages/ipfs.scm (go-ipfs): Update to 0.5.1 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Martin Becze 2020-03-11gnu: gx: Update to 0.14.3....* gnu/packages/ipfs.scm (gx): Update to 0.14.3. Tobias Geerinckx-Rice 2020-02-14gnu: go-ipfs: Update to 0.4.23...* gnu/packages/ipfs.scm (go-ipfs): Update to 0.4.23 Signed-off-by: Leo Famulari <leo@famulari.name> Jack Hill 2019-12-12gnu: gx: Update to 0.14.2....* gnu/packages/ipfs.scm (gx): Update to 0.14.2. Tobias Geerinckx-Rice 2019-10-29gnu: gogoprotobuf: Consolidate packages....* gnu/packages/golang.scm (go-github-com-gogo-protobuf)[arguments]: Adjust the #:import-path, and skip the tests and build phases. (go-github-com-gogo-protobuf-protoc-gen-gogo, go-github-com-gogo-protobuf-gogoproto, go-github-com-gogo-protobuf-proto): Remove variables. (go-github-com-libp2p-go-libp2p-crypto, go-github-com-libp2p-go-libp2p-peer, go-github-com-libp2p-go-libp2p-metrics): Adjust accordingly. * gnu/packages/ipfs.scm (go-github-com-ipfs-go-ipfs-api, gx, gx-go): Likewise. * gnu/packages/syncthing.scm (syncthing): Likewise. Leo Famulari 2019-10-29gnu: Go standard library 'x' packages: Consolidate....* gnu/packages/golang.scm (go-golang-org-x-text, go-golang-org-x-sys, go-golang-org-x-net, go-golang-org-x-time): New variables. (go-golang.org-x-crypto-ssh-terminal, go-golang-org-x-crypto-bcrypt, go-golang-org-x-crypto-blowfish, go-golang-org-x-crypto-pbkdf2, go-golang-org-x-crypto-tea, go-golang-org-x-crypto-salsa20, go-golang-org-x-crypto-cast5, go-golang-org-x-crypto-twofish, go-golang-org-x-crypto-xtea, go-golang-org-x-crypto-ed25519, go-golang-org-x-crypto-ripemd160, go-golang-org-x-crypto-blake2s, go-golang-org-x-crypto-sha3, go-golang-org-x-text-encoding, go-golang-org-x-text-transform, go-golang-org-x-text-unicode-norm, go-golang-org-x-net-ipv4, go-golang-org-x-net-bpf, go-golang-org-x-net-context, go-golang-org-x-net-internal-socks, go-golang-org-x-net-internal-socket, go-golang-org-x-net-internal-iana, go-golang-org-x-net-ipv6, go-golang-org-x-net-proxy, go-golang-org-x-sys-cpu, go-golang-org-x-sys-unix, go-golang-org-x-time-rate): Remove variables. (go-github-com-sirupsen-logrus, go-github-com-docker-distribution, go-github-com-libp2p-go-libp2p-crypto, go-github-com-multiformats-go-multihash, go-github-com-libp2p-go-libp2p-peer, go-github-com-libp2p-go-libp2p-metrics, go-github-com-multiformats-go-multiaddr, go-github-com-multiformats-go-multiaddr-net, go-github-com-mattn-go-isatty, go-github-com-gdamore-encoding, go-github-com-gdamore-tcell): Adjust accordingly. * gnu/packages/docker.scm (docker-libnetwork-cmd-proxy): Likewise. * gnu/packages/databases.scm (mongo-tools): Likewise. * gnu/packages/ipfs.scm (go-github-com-ipfs-go-ipfs-api, gx, gx-go): Likewise. * gnu/packages/web.scm (poussetaches): Likewise. * gnu/packages/terminals.scm (go-github-com-junegunn-fzf, go-github.com-howeyc-gopass): Likewise. (go-golang.org-x-crypto-ssh-terminal): Remove variable. * gnu/packages/syncthing.scm (syncthing, go-github-com-oschwald-geoip2-golang, go-github-com-oschwald-maxminddb-golang, go-github-com-syncthing-notify): Adjust accordingly. * gnu/packages/linux.scm (go-netlink): Likewise. Leo Famulari 2019-08-24gnu: go-ipfs: Update to 0.4.22....* gnu/packages/ipfs.scm (go-ipfs): Update from 0.4.19 to 0.4.22. 宋文武 2019-04-25gnu, guix: Yearly ritual purging of the filesystems....* gnu/packages/android.scm (android-ext4-utils)[synopsis]: Fix ‘file system’ spelling. * gnu/packages/disk.scm (rmlint)[synopsis, description]: Likewise. * gnu/packages/golang.scm (go-github-com-kr-fs)[synopsis, description]: Likewise & edit for grammar. * gnu/packages/ipfs.scm (gx, go-ipfs)[description]: Likewise. * /gnu/packages/java.scm (java-commons-vfs)[synopsis]: Likewise. * gnu/packages/linux.scm (fuseiso)[description]: Likewise. (genext2fs)[synopsis, description]: Likewise. * gnu/packages/package-management.scm (libostree)[description]: Likewise. * gnu/packages/python-xyz.scm (python-requests-file)[description]: Likewise & mark up. * gnu/packages/rails.scm (ruby-with-advisory-lock)[description]: Likewise. * gnu/packages/ruby.scm (ruby-rerun)[description]: Likewise. * guix/build/go-build-system.scm (setup-go-environment)<docstring>: Likewise. * guix/store/deduplication.scm (get-temp-link)<docstring>: Likewise. Tobias Geerinckx-Rice 2019-03-16gnu: go-ipfs: Update to 0.4.19....* gnu/packages/ipfs.scm (go-ipfs): Update to 0.4.19. Tobias Geerinckx-Rice 2019-03-14gnu: Remove the various Go union meta-packages....* gnu/packages/golang.scm (go-github-com-gogo-protobuf-union, go-golang-org-x-crypto-union): Remove variables. (go-golang-org-x-crypto-bcrypt, go-golang-org-x-crypto-blowfish, go-golang-org-x-crypto-pbkdf2, go-golang-org-x-crypto-tea, go-golang-org-x-crypto-xtea, go-golang-org-x-crypto-salsa20, go-golang-org-x-crypto-twofish,)[arguments]: Remove obsolete 'make-gzip-archive-writable' phase. (go-golang-org-x-crypto-ed25519)[arguments]: The phase 'make-gzip-archive-writable' belongs here now. (go-github-com-multiformats-go-multihash)[native-inputs]: Remove go-golang-org-x-crypto-union. Add go-golang-org-x-crypto-blake2s and go-golang-org-x-crypto-sha3. (go-github-com-libp2p-go-libp2p-peer)[native-inputs]: Remove go-golang-org-x-crypto-union. Add go-golang-org-x-crypto-blake2s, go-golang-org-x-crypto-ed25519, and go-golang-org-x-crypto-sha3. (go-github-com-libp2p-go-libp2p-metrics)[native-inputs]: Remove go-golang-org-x-crypto-union. Add go-golang-org-x-crypto-sha3, go-golang-org-x-crypto-ed25519, and go-golang-org-x-crypto-blake2s. (go-github-com-multiformats-go-multiaddr)[native-inputs]: Remove go-golang-org-x-crypto-union. Add go-golang-org-x-crypto-sha3 and go-golang-org-x-crypto-blake2s. (go-github-com-multiformats-go-multiaddr-net)[native-inputs]: Remove go-golang-org-x-crypto-union. Add go-golang-org-x-crypto-sha3 and go-golang-org-x-crypto-blake2s. * gnu/packages/ipfs.scm (go-github-com-ipfs-go-ipfs-api)[native-inputs]: Remove go-golang-org-x-crypto-union. Add go-golang-org-x-crypto-blake2s, go-golang-org-x-crypto-ed25519, and go-golang-org-x-crypto-sha3. (gx)[native-inputs]: Remove go-golang-org-x-crypto-union. Add go-golang-org-x-crypto-blake2s, go-golang-org-x-crypto-ed25519, and go-golang-org-x-crypto-sha3. (gx-go)[native-inputs]: Remove go-golang-org-x-crypto-union. Add go-golang-org-x-crypto-blake2s, go-golang-org-x-crypto-ed25519, and go-golang-org-x-crypto-sha3. * gnu/packages/syncthing.scm: Remove go-golang-org-x-text-union, go-golang-org-x-net-union, and go-github-com-vitrun-qart-union. Leo Famulari 2019-02-04gnu: gx, go-github-com-whyrusleeping-gx-util: Update to 0.14.1....* gnu/packages/ipfs.scm (gx, go-github-com-whyrusleeping-gx-util): Update to 0.14.1. Tobias Geerinckx-Rice 2018-12-13gnu: go-ipfs: Work around tar bomb....* gnu/packages/ipfs.scm (go-ipfs)[source](method): Switch to URL-FETCH/TARBOMB. (file-name): New field. [arguments]: Add 'make-files-writable' phase. Ludovic Courtès 2018-12-09gnu: Add go-ipfs....* gnu/packages/ipfs.scm (go-ipfs): New variable. Pierre Neidhardt 2018-10-24gnu: Add gx-go....* gnu/packages/ipfs.scm (gx-go): New variable. Pierre Neidhardt 2018-10-24gnu: Add go-github-com-whyrusleeping-gx-util....* gnu/packages/ipfs.scm (go-github-com-whyrusleeping-gx-util): New variable. Pierre Neidhardt 2018-10-24gnu: Add gx....* gnu/packages/ipfs.scm (gx): New variable. Pierre Neidhardt 2018-10-24gnu: Add go-github-com-ipfs-go-ipfs-api....* gnu/packages/ipfs.scm (go-github-com-ipfs-go-ipfs-api): New variable. Pierre Neidhardt 2018-10-24gnu: Add go-github-com-ipfs-go-ipfs-cmdkit-files....* gnu/packages/ipfs.scm (go-github-com-ipfs-go-ipfs-cmdkit-files): New variable. Pierre Neidhardt