You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

399 lines
15 KiB

gnu: Replace uses of 'libjpeg' with 'libjpeg-turbo'. * gnu/packages/abiword.scm (abiword)[inputs]: Change from LIBJPEG to LIBJPEG-TURBO. * gnu/packages/admin.scm (testdisk)[inputs]: Likewise. * gnu/packages/algebra.scm (giac)[inputs]: Likewise. * gnu/packages/animation.scm (synfig)[inputs]: Likewise. * gnu/packages/astronomy.scm (gnuastro, celestia)[inputs]: Likewise. * gnu/packages/cdrom.scm (dvdstyler)[inputs]: Likewise. * gnu/packages/cran.scm (r-jpeg, r-tiff, r-readbitmap)[inputs]: Likewise. * gnu/packages/cups.scm (cups-filters, hplip)[inputs]: Likewise. * gnu/packages/display-managers.scm (slim)[inputs]: Likewise. * gnu/packages/ebook.scm (fbreader)[inputs]: Likewise. * gnu/packages/emacs.scm (emacs)[inputs]: Likewise. * gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise. * gnu/packages/fltk.scm (fltk, ntk)[inputs]: Likewise. * gnu/packages/fontutils.scm (fontforge)[inputs]: Likewise. * gnu/packages/freedesktop.scm (weston)[inputs]: Likewise. * gnu/packages/game-development.scm (sfml, allegro, aseprite, python-pygame, eureka, ioquake3)[inputs]: Likewise. * gnu/packages/games.scm (adanaxisgpl, freedroidrpg, irrlicht, minetest, fizmo, supertuxkart, gzdoom, xmoto, xonotic)[inputs]: Likewise. * gnu/packages/gd.scm (gd, perl-gd)[inputs]: Likewise. * gnu/packages/ghostscript.scm (lcms)[inputs]: Likewise. (ghostscript)[inputs, native-inputs]: Likewise. * gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise. * gnu/packages/gnome.scm (libgnomeui, eog, tracker-miners, gthumb)[inputs]: Likewise. * gnu/packages/gnunet.scm (libextractor)[inputs]: Likewise. * gnu/packages/gnustep.scm (windowmaker)[inputs]: Likewise. * gnu/packages/graphics.scm (blender, blender-2.79, openimageio, openscenegraph, openscenegraph-3.4, povray, fgallery)[inputs]: Likewise. * gnu/packages/graphviz.scm (graphviz)[inputs]: Likewise. * gnu/packages/gstreamer.scm (gst-plugins-good)[inputs]: Likewise. * gnu/packages/gtk.scm (gdk-pixbuf)[inputs]: Likewise. * gnu/packages/image-processing.scm (dcmtk, mia, vtk, opencv, vips, nip2, vxl, insight-toolkit)[inputs]: Likewise. * gnu/packages/image-viewers.scm (gpicview, luminance-hdr)[inputs]: Likewise. * gnu/packages/image.scm (jpegoptim, libtiff, leptonica, imlib2, freeimage, vigra, libwebp, libmng, jasper, steghide, jp2a)[inputs]: Likewise. * gnu/packages/imagemagick.scm (imagemagick, graphicsmagick)[inputs]: Likewise. * gnu/packages/java.scm (icedtea-6, icedtea-7, openjdk9, openjdk11, openjdk12)[inputs]: Likewise. * gnu/packages/kde-frameworks.scm (khtml)[inputs]: Likewise. * gnu/packages/kodi.scm (kodi)[inputs]: Likewise. * gnu/packages/machine-learning.scm (dlib, tensorflow)[inputs]: Likewise. * gnu/packages/mate.scm (atril, eom)[inputs]: Likewise. * gnu/packages/maths.scm (hdf4, hdf-java, hdf-eos2, netcdf)[inputs]: Likewise. * gnu/packages/netpbm.scm (netpbm)[inputs]: Likewise. * gnu/packages/pdf.scm (zathura-pdf-mupdf, podofo, mupdf, fbida)[inputs]: Likewise. * gnu/packages/photo.scm (libraw, libpano13, enblend-enfuse, darktable, hugin, rawtherapee)[inputs]: Likewise. * gnu/packages/prolog.scm (swi-prolog)[native-inputs]: Likewise. * gnu/packages/python-xyz.scm (python-hdf4, python-pillow)[inputs]: Likewise. * gnu/packages/qt.scm (qtbase, qtwebkit)[inputs]: Likewise. * gnu/packages/rdesktop.scm (freerdp)[inputs]: Likewise. * gnu/packages/scanner.scm (sane-backends, xsane)[inputs]: Likewise. * gnu/packages/scheme.scm (racket)[inputs]: Likewise. * gnu/packages/scribus.scm (scribus)[inputs]: Likewise. * gnu/packages/sdl.scm (sdl-image)[propagated-inputs]: Likewise. (guile-sdl)[native-inputs]: Likewise. * gnu/packages/spice.scm (spice-gtk)[inputs]: Likewise. * gnu/packages/statistics.scm (r-with-tests)[inputs]: Likewise. * gnu/packages/tcl.scm (perl-tk)[inputs]: Likewise. * gnu/packages/upnp.scm (readymedia)[inputs]: Likewise. * gnu/packages/video.scm (mplayer, mpv, v4l-utils, motion)[inputs]: Likewise. * gnu/packages/web-browsers.scm (dillo, links)[inputs]: Likewise. * gnu/packages/web.scm (netsurf)[inputs]: Likewise. * gnu/packages/webkit.scm (webkitgtk)[inputs]: Likewise. * gnu/packages/wine.scm (wine)[inputs]: Likewise. * gnu/packages/wv.scm (wv)[inputs]: Likewise. * gnu/packages/wxwidgets.scm (wxwidgets, wxwidgets-2)[inputs]: Likewise. * gnu/packages/xdisorg.scm (xscreensaver)[inputs]: Likewise. * gnu/packages/xfce.scm (tumbler)[inputs]: Likewise. * gnu/packages/xfig.scm (xfig, transfig)[inputs]: Likewise. * gnu/packages/xorg.scm (xpra)[inputs]: Likewise.
2 years ago
gnu: Fix descriptions to not use quotes. * gnu/packages/admin.scm (wpa-supplicant-minimal, mingetty, di), * gnu/packages/audio.scm (fil-plugins), * gnu/packages/base.scm (make-ld-wrapper, make-glibc-locales), * gnu/packages/bioinformatics.scm (r-samtools), * gnu/packages/chez.scm (chez-mit), * gnu/packages/commencement.scm (make-gcc-toolchain), * gnu/packages/compression.scm (fastjar), * gnu/packages/cran.scm (r-maps, r-rcpp), * gnu/packages/databases.scm (sparql-query), * gnu/packages/dunst.scm (dunst), * gnu/packages/ftp.scm (ncftp), * gnu/packages/gl.scm (freeglut), * gnu/packages/haskell-check.scm (ghc-tasty-golden), * gnu/packages/haskell.scm (ghc-case-insensitive, ghc-text, ghc-haskell-src, ghc-syb, ghc-deepseq-generics, ghc-network-uri, ghc-rerebase, ghc-zlib), * gnu/packages/image.scm (jbig2dec), * gnu/packages/kde-frameworks.scm (kinit, karchive), * gnu/packages/linux.scm (wireless-tools, perf, module-init-tools, kbd), * gnu/packages/lirc.scm (lirc), * gnu/packages/lisp.scm (uglify-js), * gnu/packages/mate.scm (mate-netbook), * gnu/packages/microcom.scm (microcom), * gnu/packages/music.scm (bristol), * gnu/packages/networking.scm (perl-geo-ip), * gnu/packages/patchutils.scm (patches), * gnu/packages/perl-check.scm (perl-test-more-utf8), * gnu/packages/perl.scm (perl-log-report-optional, perl-file-which, perl-io-tty, perl-log-any, perl-digest-sha1, perl-class-load, perl-regexp-common, perl-module-pluggable, perl-class-modifier), * gnu/packages/python-xyz.scm (python-backports-abc, python-natsort), * gnu/packages/samba.scm (iniparser), * gnu/packages/search.scm (mlocate), * gnu/packages/spice.scm (spice), * gnu/packages/statistics.scm (r-dt, r-lubridate, r-estimability, r-commonmark, r-digest, r-viridislite, r-stringr), * gnu/packages/tex.scm (texlive-latex-changebar), * gnu/packages/version-control.scm (subversion), * gnu/packages/w3m.scm (w3m), * gnu/packages/web.scm (perl-http-parser, perl-plack-middleware-reverseproxy), * gnu/packages/xorg.scm (xkeyboard-config, mkfontdir, xcursor-theme, mkfontscale, xinit, font-alias)[description]: Use @code instead of quotes.
3 years ago
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2016 David Craven <david@craven.ch>
  3. ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
  4. ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
  5. ;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
  6. ;;;
  7. ;;; This file is part of GNU Guix.
  8. ;;;
  9. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  10. ;;; under the terms of the GNU General Public License as published by
  11. ;;; the Free Software Foundation; either version 3 of the License, or (at
  12. ;;; your option) any later version.
  13. ;;;
  14. ;;; GNU Guix is distributed in the hope that it will be useful, but
  15. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  16. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. ;;; GNU General Public License for more details.
  18. ;;;
  19. ;;; You should have received a copy of the GNU General Public License
  20. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  21. (define-module (gnu packages spice)
  22. #:use-module (gnu packages)
  23. #:use-module (gnu packages base)
  24. #:use-module (gnu packages compression)
  25. #:use-module (gnu packages cyrus-sasl)
  26. #:use-module (gnu packages gl)
  27. #:use-module (gnu packages glib)
  28. #:use-module (gnu packages gnome)
  29. #:use-module (gnu packages gstreamer)
  30. #:use-module (gnu packages gtk)
  31. #:use-module (gnu packages image)
  32. #:use-module (gnu packages libusb)
  33. #:use-module (gnu packages linux)
  34. #:use-module (gnu packages nss)
  35. #:use-module (gnu packages pkg-config)
  36. #:use-module (gnu packages pulseaudio)
  37. #:use-module (gnu packages python)
  38. #:use-module (gnu packages security-token)
  39. #:use-module (gnu packages tls)
  40. #:use-module (gnu packages xorg)
  41. #:use-module (gnu packages xdisorg)
  42. #:use-module (gnu packages xiph)
  43. #:use-module (gnu packages xml)
  44. #:use-module (guix build-system gnu)
  45. #:use-module (guix build-system meson)
  46. #:use-module (guix download)
  47. #:use-module (guix packages)
  48. #:use-module ((guix licenses) #:prefix license:)
  49. #:use-module (guix utils))
  50. (define-public usbredir
  51. (package
  52. (name "usbredir")
  53. (home-page "https://spice-space.org")
  54. (version "0.8.0")
  55. (source (origin
  56. (method url-fetch)
  57. (uri (string-append home-page "/download/" name "/" name "-"
  58. version ".tar.bz2"))
  59. (sha256
  60. (base32
  61. "002yik1x7kn0427xahvnhjby2np14a6xqw7c3dx530n9h5d9rg47"))))
  62. (build-system gnu-build-system)
  63. (propagated-inputs
  64. `(("libusb" ,libusb)))
  65. (native-inputs
  66. `(("pkg-config" ,pkg-config)))
  67. (synopsis "Tools for sending USB device traffic over a network")
  68. (description
  69. "Usbredir is a network protocol for sending USB device traffic over a
  70. network connection. It can be used to redirect traffic from a USB device to a
  71. different (virtual) machine than the one to which the USB device is attached.")
  72. (license (list license:gpl2+ license:lgpl2.0+ license:lgpl2.1+))))
  73. (define-public virglrenderer
  74. (package
  75. (name "virglrenderer")
  76. (version "0.6.0")
  77. (source (origin
  78. (method url-fetch)
  79. (uri (string-append
  80. "https://www.freedesktop.org/software/virgl/"
  81. "virglrenderer-" version ".tar.bz2"))
  82. (patches (search-patches "virglrenderer-CVE-2017-6386.patch"))
  83. (sha256
  84. (base32
  85. "06kf0q4l52gzx5p63l8850hff8pmhp7xv1hk8zgx2apbw18y6jd5"))))
  86. (build-system gnu-build-system)
  87. (inputs
  88. `(("libepoxy" ,libepoxy)
  89. ("mesa" ,mesa)
  90. ("udev" ,eudev)))
  91. (native-inputs
  92. `(("pkg-config" ,pkg-config)))
  93. (synopsis "Virtual 3D GPU library")
  94. (description "A virtual 3D GPU library that enables a virtualized operating
  95. system to use the host GPU to accelerate 3D rendering.")
  96. (home-page "https://virgil3d.github.io")
  97. (license (list license:expat license:bsd-3))))
  98. (define-public spice-protocol
  99. (package
  100. (name "spice-protocol")
  101. (version "0.14.2")
  102. (source (origin
  103. (method url-fetch)
  104. (uri (string-append
  105. "https://www.spice-space.org/download/releases/"
  106. "spice-protocol-" version ".tar.xz"))
  107. (sha256
  108. (base32
  109. "1sgi9ksb781qs47pdbw0bmnyg8dgayn5xrzj6vzdy043nv466flg"))))
  110. (build-system meson-build-system)
  111. (arguments
  112. `(#:phases
  113. (modify-phases %standard-phases
  114. (add-after 'unpack 'install-documentation
  115. (lambda* (#:key outputs #:allow-other-keys)
  116. (let* ((out (assoc-ref outputs "out"))
  117. (doc (string-append out "/share/doc/"
  118. ,name "-" ,version)))
  119. (install-file "COPYING" doc)
  120. #t))))))
  121. (synopsis "Protocol headers for the SPICE protocol")
  122. (description "SPICE (the Simple Protocol for Independent Computing
  123. Environments) is a remote-display system built for virtual environments
  124. which allows users to view a desktop computing environment.")
  125. (home-page "https://www.spice-space.org")
  126. (license (list license:bsd-3 license:lgpl2.1+))))
  127. (define-public spice-gtk
  128. (package
  129. (name "spice-gtk")
  130. (version "0.37")
  131. (source (origin
  132. (method url-fetch)
  133. (uri (string-append
  134. "https://spice-space.org/download/gtk/"
  135. "spice-gtk-" version ".tar.bz2"))
  136. (sha256
  137. (base32
  138. "1drvj8y35gnxbnrxsipwi15yh0vs9ixzv4wslz6r3lra8w3bfa0z"))))
  139. (build-system gnu-build-system)
  140. (propagated-inputs
  141. `(("gstreamer" ,gstreamer)
  142. ("gst-libav" ,gst-libav)
  143. ("gst-plugins-base" ,gst-plugins-base)
  144. ("gst-plugins-good" ,gst-plugins-good)
  145. ("gst-plugins-bad" ,gst-plugins-bad)
  146. ("gst-plugins-ugly" ,gst-plugins-ugly)
  147. ("spice-protocol" ,spice-protocol)
  148. ;; These are required by the pkg-config files.
  149. ("gtk+" ,gtk+)
  150. ("pixman" ,pixman)
  151. ("openssl" ,openssl)))
  152. (inputs
  153. `(("glib-networking" ,glib-networking)
  154. ("gobject-introspection" ,gobject-introspection)
  155. ("json-glib" ,json-glib)
  156. ("libepoxy" ,libepoxy)
  157. ("libjpeg" ,libjpeg-turbo)
  158. ("libxcb" ,libxcb)
  159. ("lz4" ,lz4)
  160. ("mesa" ,mesa)
  161. ("pulseaudio" ,pulseaudio)
  162. ("python" ,python)
  163. ("opus" ,opus)
  164. ("usbredir" ,usbredir)))
  165. (native-inputs
  166. `(("glib:bin" ,glib "bin")
  167. ("intltool" ,intltool)
  168. ("pkg-config" ,pkg-config)
  169. ("vala" ,vala)))
  170. (arguments
  171. `(#:configure-flags
  172. '("--enable-gstaudio"
  173. "--enable-gstvideo"
  174. "--enable-pulse"
  175. "--enable-vala"
  176. "--enable-introspection")
  177. #:phases
  178. (modify-phases %standard-phases
  179. (add-before 'check 'disable-session-test
  180. (lambda _
  181. ;; XXX: Disable session tests, because they require USB support,
  182. ;; which is not available in the build container.
  183. (substitute* "tests/Makefile"
  184. (("test-session\\$\\(EXEEXT\\) ") ""))
  185. #t))
  186. (add-after 'install 'patch-la-files
  187. (lambda* (#:key inputs outputs #:allow-other-keys)
  188. (let ((out (assoc-ref outputs "out"))
  189. (libjpeg (assoc-ref inputs "libjpeg")))
  190. ;; Add an absolute reference for libjpeg in the .la files
  191. ;; so it does not have to be propagated.
  192. (substitute* (find-files (string-append out "/lib") "\\.la$")
  193. (("-ljpeg")
  194. (string-append "-L" libjpeg "/lib -ljpeg")))
  195. #t)))
  196. (add-after
  197. 'install 'wrap-spicy
  198. (lambda* (#:key inputs outputs #:allow-other-keys)
  199. (let ((out (assoc-ref outputs "out"))
  200. (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
  201. (wrap-program (string-append out "/bin/spicy")
  202. `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
  203. #t)))))
  204. (synopsis "Gtk client and libraries for SPICE remote desktop servers")
  205. (description "Gtk client and libraries for SPICE remote desktop servers.")
  206. (home-page "https://www.spice-space.org")
  207. (license (list license:lgpl2.1+ license:lgpl2.0+))))
  208. (define-public spice
  209. (package
  210. (name "spice")
  211. (version "0.14.3")
  212. (source (origin
  213. (method url-fetch)
  214. (uri (string-append
  215. "https://www.spice-space.org/download/releases/"
  216. "spice-server/spice-" version ".tar.bz2"))
  217. (sha256
  218. (base32
  219. "05512vkfayw18ypg4acqbbpr72nsnsz9bj7k8c2wyrvnl3j4n7am"))))
  220. (build-system gnu-build-system)
  221. (propagated-inputs
  222. `(("openssl" ,openssl)
  223. ("pixman" ,pixman)
  224. ("spice-protocol" ,spice-protocol)))
  225. (inputs
  226. `(("cyrus-sasl" ,cyrus-sasl)
  227. ("glib" ,glib)
  228. ("libjpeg-turbo" ,libjpeg-turbo)
  229. ("libcacard" ,libcacard) ; smartcard support
  230. ("lz4" ,lz4)
  231. ("opus" ,opus)
  232. ("orc" ,orc)
  233. ("zlib" ,zlib)))
  234. (native-inputs
  235. `(("pkg-config" ,pkg-config)
  236. ("python" ,python)
  237. ("spice-gtk" ,spice-gtk)
  238. ;; These are needed for the server listen tests.
  239. ("glib-networking" ,glib-networking)
  240. ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
  241. (arguments
  242. `(#:configure-flags
  243. '("--enable-lz4"
  244. "--enable-automated-tests")
  245. ;; Several tests appear to be opening the same sockets concurrently.
  246. #:parallel-tests? #f))
  247. (synopsis "Server implementation of the SPICE protocol")
  248. (description "SPICE is a remote display system built for virtual
  249. environments which allows you to view a computing @code{desktop} environment
  250. not only on the machine where it is running, but from anywhere on the
  251. Internet and from a wide variety of machine architectures.")
  252. (home-page "https://www.spice-space.org")
  253. (license (list license:lgpl2.1+ license:lgpl2.0+))))
  254. (define-public spice-vdagent
  255. (package
  256. (name "spice-vdagent")
  257. (version "0.17.0")
  258. (source (origin
  259. (method url-fetch)
  260. (uri (string-append
  261. "http://www.spice-space.org/download/releases/"
  262. "spice-vdagent-" version ".tar.bz2"))
  263. (sha256
  264. (base32
  265. "0gdkyylyg1hksg0i0anvznqfli2q39335fnrmcd6847frpc8njpi"))))
  266. (build-system gnu-build-system)
  267. (arguments
  268. `(#:configure-flags
  269. '("--localstatedir=/var")
  270. #:phases
  271. (modify-phases %standard-phases
  272. (add-after 'unpack 'patch-makefile.in
  273. (lambda _
  274. (substitute* "Makefile.in"
  275. (((string-append "\\$\\(mkdir_p\\) \\$\\(DESTDIR\\)"
  276. "\\$\\(localstatedir\\)/run/spice-vdagentd"))
  277. "-$(mkdir_p) $(DESTDIR)$(localstatedir)/run/spice-vdagentd"))
  278. #t))
  279. (add-after 'unpack 'patch-spice-vdagent.desktop
  280. (lambda* (#:key outputs #:allow-other-keys)
  281. (substitute* "data/spice-vdagent.desktop"
  282. (("Exec=/usr/bin/spice-vdagent")
  283. (string-append "Exec=" (assoc-ref outputs "out")
  284. "/bin/spice-vdagent")))
  285. #t)))))
  286. (inputs
  287. `(("alsa-lib" ,alsa-lib)
  288. ("dbus" ,dbus)
  289. ("glib" ,glib)
  290. ("libpciaccess" ,libpciaccess)
  291. ("libx11" ,libx11)
  292. ("libxext" ,libxext)
  293. ("libxfixes" ,libxfixes)
  294. ("libxinerama" ,libxinerama)
  295. ("libxrandr" ,libxrandr)
  296. ("spice-protocol" ,spice-protocol)))
  297. (native-inputs
  298. `(("pkg-config" ,pkg-config)))
  299. (synopsis "Spice agent for Linux")
  300. (description "Spice-vdagent enables sharing the clipboard and guest display
  301. resolution scaling on graphical console window resize.")
  302. (home-page "https://www.spice-space.org")
  303. (license license:gpl3+)))
  304. (define-public libcacard
  305. (package
  306. (name "libcacard")
  307. (version "2.7.0")
  308. (source (origin
  309. (method url-fetch)
  310. (uri (string-append
  311. "https://gitlab.freedesktop.org/spice/libcacard/uploads/"
  312. "56cb2499198e78e560a1d4c716cd8ab1"
  313. "/libcacard-" version ".tar.xz"))
  314. (sha256
  315. (base32
  316. "0vyvkk4b6xjwq1ccggql13c1x7g4y90clpkqw28257azgn2a1c8n"))))
  317. (build-system gnu-build-system)
  318. (arguments
  319. '(#:tests? #f ; TODO Tests require gnutls built with
  320. ; p11-kit
  321. #:phases
  322. (modify-phases %standard-phases
  323. (add-after 'unpack 'patch-tests
  324. (lambda* (#:key inputs #:allow-other-keys)
  325. (substitute* "tests/setup-softhsm2.sh"
  326. (("\\/usr\\/lib64\\/pkcs11\\/libsofthsm2\\.so")
  327. (string-append (assoc-ref inputs "softhsm")
  328. "/lib/softhsm/libsofthsm2.so")))
  329. #t)))))
  330. (propagated-inputs
  331. `(("glib" ,glib) ; Requires: in the pkg-config file
  332. ("nss" ,nss))) ; Requires.private: in the pkg-config
  333. ; file
  334. (native-inputs
  335. `(("openssl" ,openssl)
  336. ("nss" ,nss "bin")
  337. ("opensc" ,opensc)
  338. ("softhsm" ,softhsm)
  339. ("gnutls" ,gnutls)
  340. ("pkg-config" ,pkg-config)
  341. ("which" ,which)))
  342. (synopsis "Emulate and share smart cards with virtual machines")
  343. (description
  344. "The @acronym{CAC,Common Access Card} library can be used to emulate and
  345. share smart cards from client system to local or remote virtual machines.")
  346. (home-page "https://gitlab.freedesktop.org/spice/libcacard")
  347. (license license:lgpl2.1+)))
  348. (define-public virt-viewer
  349. (package
  350. (name "virt-viewer")
  351. (version "7.0")
  352. (source (origin
  353. (method url-fetch)
  354. (uri (string-append
  355. "https://virt-manager.org/download/sources/virt-viewer/"
  356. "virt-viewer-" version ".tar.gz"))
  357. (sha256
  358. (base32
  359. "00y9vi69sja4pkrfnvrkwsscm41bqrjzvp8aijb20pvg6ymczhj7"))))
  360. (build-system gnu-build-system)
  361. (inputs
  362. `(("gtk+" ,gtk+)
  363. ("libcap" ,libcap)
  364. ("libxml2" ,libxml2)
  365. ("spice-gtk" ,spice-gtk)))
  366. (native-inputs
  367. `(("glib:bin" ,glib "bin")
  368. ("intltool" ,intltool)
  369. ("pkg-config" ,pkg-config)))
  370. (arguments
  371. `(#:configure-flags
  372. '("--with-spice-gtk")
  373. #:phases
  374. (modify-phases %standard-phases
  375. (add-after
  376. 'install 'wrap-remote-viewer
  377. (lambda* (#:key inputs outputs #:allow-other-keys)
  378. (let ((out (assoc-ref outputs "out"))
  379. (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
  380. (wrap-program (string-append out "/bin/remote-viewer")
  381. `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
  382. #t)))))
  383. (synopsis "Graphical console client for virtual machines")
  384. (description "Graphical console client for virtual machines using SPICE or
  385. VNC.")
  386. (home-page "https://virt-manager.org")
  387. (license license:gpl2+)))