services: network-manager: Create account for 'network-manager-openconnect'.
[jackhill/guix/guix.git] / gnu / packages / gnome.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
5 ;;; Copyright © 2014, 2016 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
7 ;;; Copyright © 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
8 ;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
9 ;;; Copyright © 2015, 2017 Andy Wingo <wingo@igalia.com>
10 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
11 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2015, 2016, 2017, 2018 Mark H Weaver <mhw@netris.org>
13 ;;; Copyright © 2015 David Thompson <davet@gnu.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
15 ;;; Copyright © 2016, 2017, 2018 Rene Saavedra <pacoon@protonmail.com>
16 ;;; Copyright © 2016 Jochem Raat <jchmrt@riseup.net>
17 ;;; Copyright © 2016, 2017 Kei Kebreau <kkebreau@posteo.net>
18 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
19 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
20 ;;; Copyright © 2016, 2018 Leo Famulari <leo@famulari.name>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
23 ;;; Copyright © 2016 David Craven <david@craven.ch>
24 ;;; Copyright © 2016, 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
25 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
26 ;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com>
27 ;;; Copyright © 2017, 2018 nee <nee-git@hidamari.blue>
28 ;;; Copyright © 2017 Chris Marusich <cmmarusich@gmail.com>
29 ;;; Copyright © 2017 Mohammed Sadiq <sadiq@sadiqpk.org>
30 ;;; Copyright © 2017 Brendan Tildesley <mail@brendan.scot>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2018 Jovany Leandro G.C <bit4bit@riseup.net>
33 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
34 ;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
35 ;;; Copyright © 2018, 2019 Timothy Sample <samplet@ngyro.com>
36 ;;; Copyright © 2019 Danny Milosavljevic <dannym@scratchpost.org>
37 ;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
38 ;;; Copyright © 2019 Florian Pelz <pelzflorian@pelzflorian.de>
39 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
40 ;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
41 ;;; Copyright © 2019 Jonathan Frederickson <jonathan@terracrypt.net>
42 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
43 ;;; Copyright © 2019 Martin Becze <mjbecze@riseup.net>
44 ;;; Copyright © 2019 David Wilson <david@daviwil.com>
45 ;;;
46 ;;; This file is part of GNU Guix.
47 ;;;
48 ;;; GNU Guix is free software; you can redistribute it and/or modify it
49 ;;; under the terms of the GNU General Public License as published by
50 ;;; the Free Software Foundation; either version 3 of the License, or (at
51 ;;; your option) any later version.
52 ;;;
53 ;;; GNU Guix is distributed in the hope that it will be useful, but
54 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
55 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56 ;;; GNU General Public License for more details.
57 ;;;
58 ;;; You should have received a copy of the GNU General Public License
59 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
60
61 (define-module (gnu packages gnome)
62 #:use-module (gnu packages)
63 #:use-module (gnu packages admin)
64 #:use-module (gnu packages aspell)
65 #:use-module (gnu packages autotools)
66 #:use-module (gnu packages avahi)
67 #:use-module (gnu packages backup)
68 #:use-module (gnu packages base)
69 #:use-module (gnu packages bash)
70 #:use-module (gnu packages bison)
71 #:use-module (gnu packages boost)
72 #:use-module (gnu packages build-tools)
73 #:use-module (gnu packages calendar)
74 #:use-module (gnu packages cdrom)
75 #:use-module (gnu packages check)
76 #:use-module (gnu packages cmake)
77 #:use-module (gnu packages compression)
78 #:use-module (gnu packages cups)
79 #:use-module (gnu packages curl)
80 #:use-module (gnu packages cyrus-sasl)
81 #:use-module (gnu packages databases)
82 #:use-module (gnu packages dbm)
83 #:use-module (gnu packages djvu)
84 #:use-module (gnu packages dns)
85 #:use-module (gnu packages docbook)
86 #:use-module (gnu packages documentation)
87 #:use-module (gnu packages enchant)
88 #:use-module (gnu packages flex)
89 #:use-module (gnu packages fonts)
90 #:use-module (gnu packages file-systems)
91 #:use-module (gnu packages fontutils)
92 #:use-module (gnu packages freedesktop)
93 #:use-module (gnu packages game-development)
94 #:use-module (gnu packages gettext)
95 #:use-module (gnu packages ghostscript)
96 #:use-module (gnu packages gl)
97 #:use-module (gnu packages glib)
98 #:use-module (gnu packages gnupg)
99 #:use-module (gnu packages gnuzilla)
100 #:use-module (gnu packages gperf)
101 #:use-module (gnu packages graphviz)
102 #:use-module (gnu packages gstreamer)
103 #:use-module (gnu packages gtk)
104 #:use-module (gnu packages guile)
105 #:use-module (gnu packages ibus)
106 #:use-module (gnu packages image)
107 #:use-module (gnu packages imagemagick)
108 #:use-module (gnu packages inkscape)
109 #:use-module (gnu packages iso-codes)
110 #:use-module (gnu packages kerberos)
111 #:use-module (gnu packages libcanberra)
112 #:use-module (gnu packages libunistring)
113 #:use-module (gnu packages libusb)
114 #:use-module (gnu packages linux)
115 #:use-module (gnu packages lirc)
116 #:use-module (gnu packages lua)
117 #:use-module (gnu packages mail)
118 #:use-module (gnu packages multiprecision)
119 #:use-module (gnu packages music)
120 #:use-module (gnu packages ncurses)
121 #:use-module (gnu packages nettle)
122 #:use-module (gnu packages networking)
123 #:use-module (gnu packages ninja)
124 #:use-module (gnu packages nss)
125 #:use-module (gnu packages openldap)
126 #:use-module (gnu packages password-utils)
127 #:use-module (gnu packages pcre)
128 #:use-module (gnu packages pdf)
129 #:use-module (gnu packages perl)
130 #:use-module (gnu packages photo)
131 #:use-module (gnu packages pkg-config)
132 #:use-module (gnu packages polkit)
133 #:use-module (gnu packages popt)
134 #:use-module (gnu packages pretty-print)
135 #:use-module (gnu packages pulseaudio)
136 #:use-module (gnu packages python)
137 #:use-module (gnu packages python-crypto)
138 #:use-module (gnu packages python-web)
139 #:use-module (gnu packages python-xyz)
140 #:use-module (gnu packages rdesktop)
141 #:use-module (gnu packages readline)
142 #:use-module (gnu packages ruby)
143 #:use-module (gnu packages rust)
144 #:use-module (gnu packages samba)
145 #:use-module (gnu packages scanner)
146 #:use-module (gnu packages selinux)
147 #:use-module (gnu packages slang)
148 #:use-module (gnu packages speech)
149 #:use-module (gnu packages spice)
150 #:use-module (gnu packages sqlite)
151 #:use-module (gnu packages ssh)
152 #:use-module (gnu packages tex)
153 #:use-module (gnu packages time)
154 #:use-module (gnu packages tls)
155 #:use-module (gnu packages version-control)
156 #:use-module (gnu packages video)
157 #:use-module (gnu packages virtualization)
158 #:use-module (gnu packages vpn)
159 #:use-module (gnu packages web)
160 #:use-module (gnu packages web)
161 #:use-module (gnu packages webkit)
162 #:use-module (gnu packages xdisorg)
163 #:use-module (gnu packages xiph)
164 #:use-module (gnu packages xml)
165 #:use-module (gnu packages xorg)
166 #:use-module (gnu packages xorg)
167 #:use-module (gnu artwork)
168 #:use-module (guix build-system cmake)
169 #:use-module (guix build-system glib-or-gtk)
170 #:use-module (guix build-system gnu)
171 #:use-module (guix build-system meson)
172 #:use-module (guix build-system python)
173 #:use-module (guix build-system trivial)
174 #:use-module (guix download)
175 #:use-module (guix git-download)
176 #:use-module ((guix licenses) #:prefix license:)
177 #:use-module (guix packages)
178 #:use-module (guix utils)
179 #:use-module (guix gexp)
180 #:use-module (ice-9 match)
181 #:use-module (srfi srfi-1))
182
183 (define-public brasero
184 (package
185 (name "brasero")
186 (version "3.12.2")
187 (source (origin
188 (method url-fetch)
189 (uri (string-append "mirror://gnome/sources/" name "/"
190 (version-major+minor version) "/"
191 name "-" version ".tar.xz"))
192 (sha256
193 (base32
194 "0h90y674j26rvjahb8cc0w79zx477rb6zaqcj26wzvq8kmpic8k8"))))
195 (build-system glib-or-gtk-build-system)
196 (arguments
197 `(#:configure-flags (list
198 (string-append "--with-girdir="
199 (assoc-ref %outputs "out")
200 "/share/gir-1.0")
201 (string-append "--with-typelibdir="
202 (assoc-ref %outputs "out")
203 "/lib/girepository-1.0"))
204 #:phases
205 (modify-phases %standard-phases
206 (add-before 'configure 'embed-growisofs
207 (lambda* (#:key inputs #:allow-other-keys)
208 (substitute* "plugins/growisofs/burn-growisofs.c"
209 (("\"growisofs") (string-append "\"" (which "growisofs"))))
210 #t)))))
211 (propagated-inputs
212 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
213 (native-inputs
214 `(("intltool" ,intltool)
215 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
216 ("gobject-introspection" ,gobject-introspection)
217 ("pkg-config" ,pkg-config)))
218 (inputs
219 `(("dvd+rw-tools" ,dvd+rw-tools)
220 ("glib" ,glib)
221 ("gnome-doc-utils" ,gnome-doc-utils)
222 ("gstreamer" ,gstreamer)
223 ("gst-plugins-base" ,gst-plugins-base)
224 ("gtk+" ,gtk+)
225 ("itstool" ,itstool)
226 ("libcanberra" ,libcanberra)
227 ("libice" ,libice)
228 ("libnotify" ,libnotify)
229 ("libsm" ,libsm)
230 ("libxml2" ,libxml2)
231 ("totem-pl-parser" ,totem-pl-parser)))
232 (home-page "https://projects.gnome.org/brasero/")
233 (synopsis "CD/DVD burning tool for Gnome")
234 (description "Brasero is an application to burn CD/DVD for the Gnome
235 Desktop. It is designed to be as simple as possible and has some unique
236 features to enable users to create their discs easily and quickly.")
237 (license license:gpl2+)))
238
239 (define-public deja-dup
240 (package
241 (name "deja-dup")
242 (version "34.3")
243 (source (origin
244 (method url-fetch)
245 (uri "https://launchpadlibrarian.net/295170991/deja-dup-34.3.tar.xz")
246 (sha256
247 (base32
248 "1xqcr61hpbahbla7gdjn4ngjfz7w6f57y7f5pkb77yk05f60j2n9"))
249 (patches
250 (search-patches "deja-dup-use-ref-keyword-for-iter.patch"))))
251 (build-system glib-or-gtk-build-system)
252 (arguments
253 `(#:modules ((guix build gnu-build-system)
254 ((guix build cmake-build-system) #:prefix cmake:)
255 (guix build glib-or-gtk-build-system)
256 (guix build utils))
257 #:imported-modules (,@%glib-or-gtk-build-system-modules
258 (guix build cmake-build-system))
259 #:test-target "test"
260 #:configure-flags (list (string-append
261 "-DCMAKE_INSTALL_FULL_DATADIR=" %output)
262 (string-append
263 "-DCMAKE_INSTALL_LIBEXECDIR=" %output))
264 #:phases
265 (modify-phases %standard-phases
266 (add-after 'unpack 'patch-lockfile-deletion
267 (lambda rest
268 (substitute* "libdeja/tools/duplicity/DuplicityInstance.vala"
269 (("/bin/rm")
270 (which "rm")))))
271 (replace 'configure
272 (assoc-ref cmake:%standard-phases 'configure))
273 (delete 'check) ;; Fails due to issues with DBus
274 (add-after 'install 'wrap-deja-dup
275 (lambda* (#:key inputs outputs #:allow-other-keys)
276 (let ((python (assoc-ref inputs "python"))
277 (python-path (getenv "PYTHONPATH"))
278 (duplicity (assoc-ref inputs "duplicity"))
279 (out (assoc-ref outputs "out")))
280 (for-each
281 (lambda (program)
282 (wrap-program program
283 `("PATH" ":" prefix (,(string-append python "/bin")
284 ,(string-append duplicity "/bin"))))
285 (wrap-program program
286 `("PYTHONPATH" ":" prefix (,python-path))))
287
288 (find-files (string-append out "/bin")))
289 #t))))))
290 (inputs
291 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
292 ("gobject-introspection" ,gobject-introspection)
293 ("duplicity" ,duplicity)
294 ("python" ,python-2)
295 ("python-pygobject" ,python2-pygobject)
296 ("gtk+" ,gtk+)
297 ("libnotify" ,libnotify)
298 ("libpeas" ,libpeas)
299 ("libsecret" ,libsecret)
300 ("packagekit" ,packagekit)))
301 (native-inputs
302 `(("pkg-config" ,pkg-config)
303 ("vala" ,vala)
304 ("gettext" ,gettext-minimal)
305 ("itstool" ,itstool)
306 ("intltool" ,intltool)
307 ("cmake" ,cmake-minimal)))
308 (home-page "https://launchpad.net/deja-dup")
309 (synopsis "Simple backup tool, for regular encrypted backups")
310 (description
311 "Déjà Dup is a simple backup tool, for regular encrypted backups. It
312 uses duplicity as the backend, which supports incremental backups and storage
313 either on a local, or remote machine via a number of methods.")
314 (license license:gpl3+)))
315
316 (define-public dia
317 ;; This version from GNOME's repository includes fixes for compiling with
318 ;; recent versions of the build tools. The latest activity on the
319 ;; pre-GNOME version has been in 2014, while GNOME has continued applying
320 ;; fixes in 2016.
321 (let ((commit "fbc306168edab63db80b904956117cbbdc514ee4"))
322 (package
323 (name "dia")
324 (version (string-append "0.97.2-" (string-take commit 7)))
325 (source (origin
326 (method git-fetch)
327 (uri (git-reference
328 (url "https://git.gnome.org/browse/dia")
329 (commit commit)))
330 (file-name (string-append name "-" version "-checkout"))
331 (sha256
332 (base32
333 "1b4bba0k8ph4cwgw8xjglss0p6n111bpd5app67lrq79mp0ad06l"))))
334 (build-system gnu-build-system)
335 (inputs
336 `(("glib" ,glib "bin")
337 ("pango" ,pango)
338 ("gdk-pixbuf" ,gdk-pixbuf)
339 ("gtk+" ,gtk+-2)
340 ("libxml2" ,libxml2)
341 ("freetype" ,freetype)
342 ("libart-lgpl" ,libart-lgpl)))
343 (native-inputs
344 `(("intltool" ,intltool)
345 ("pkg-config" ,pkg-config)
346 ("automake" ,automake)
347 ("autoconf" ,autoconf)
348 ("libtool" ,libtool)
349 ("perl" ,perl)
350 ("python-wrapper" ,python-wrapper)))
351 (arguments
352 `(#:phases
353 (modify-phases %standard-phases
354 (add-after 'unpack 'run-autogen
355 (lambda _
356 (system* "sh" "autogen.sh"))))))
357 (home-page "https://wiki.gnome.org/Apps/Dia")
358 (synopsis "Diagram creation for GNOME")
359 (description "Dia can be used to draw different types of diagrams, and
360 includes support for UML static structure diagrams (class diagrams), entity
361 relationship modeling, and network diagrams. The program supports various file
362 formats like PNG, SVG, PDF and EPS.")
363 (license license:gpl2+))))
364
365 ;; This is the unstable release, but it is required for the current stable
366 ;; release of gvfs (1.38.1).
367 (define-public libgdata
368 (package
369 (name "libgdata")
370 (version "0.17.9")
371 (source (origin
372 (method url-fetch)
373 (uri (string-append "mirror://gnome/sources/" name "/"
374 (version-major+minor version) "/"
375 name "-" version ".tar.xz"))
376 (sha256
377 (base32
378 "0fj54yqxdapdppisqm1xcyrpgcichdmipq0a0spzz6009ikzgi45"))))
379 (build-system gnu-build-system)
380 (arguments
381 '(#:phases
382 (modify-phases %standard-phases
383 (add-before 'check 'disable-failing-tests
384 (lambda _
385 ;; The PicasaWeb API tests fail with gnome-online-accounts@3.24.2.
386 ;; They have been removed in libgdata 0.17.6, so just do the same.
387 (substitute* "gdata/tests/Makefile"
388 (("picasaweb\\$\\(EXEEXT\\) ") ""))
389 #t)))))
390 (native-inputs
391 `(("glib:bin" ,glib "bin")
392 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
393 ("intltool" ,intltool)
394 ("pkg-config" ,pkg-config)
395 ("uhttpmock" ,uhttpmock)))
396 (inputs
397 `(("cyrus-sasl" ,cyrus-sasl)
398 ("glib-networking" ,glib-networking)))
399 (propagated-inputs
400 `(("gcr" ,gcr)
401 ("glib" ,glib)
402 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
403 ("json-glib" ,json-glib)
404 ("liboauth" ,liboauth)
405 ("libsoup" ,libsoup)
406 ("libxml2" ,libxml2)))
407 (home-page "https://wiki.gnome.org/Projects/libgdata")
408 (synopsis "Library for accessing online service APIs")
409 (description
410 "libgdata is a GLib-based library for accessing online service APIs using
411 the GData protocol — most notably, Google's services. It provides APIs to
412 access the common Google services, and has full asynchronous support.")
413 (license license:lgpl2.1+)))
414
415 (define-public libgxps
416 (package
417 (name "libgxps")
418 (version "0.3.1")
419 (source (origin
420 (method url-fetch)
421 (uri (string-append "mirror://gnome/sources/" name "/"
422 (version-major+minor version) "/"
423 name "-" version ".tar.xz"))
424 (sha256
425 (base32
426 "157s4c9gjjss6yd7qp7n4q6s72gz1k4ilsx4xjvp357azk49z4qs"))))
427 (build-system meson-build-system)
428 (native-inputs
429 `(("gobject-introspection" ,gobject-introspection)
430 ("pkg-config" ,pkg-config)))
431 (inputs
432 `(("gtk+" ,gtk+)
433 ("libjpeg" ,libjpeg-turbo)
434 ("lcms" ,lcms)
435 ("libtiff" ,libtiff)))
436 (propagated-inputs
437 ;; In Requires of libgxps.pc.
438 `(("cairo" ,cairo)
439 ("glib" ,glib)
440 ("libarchive" ,libarchive)))
441 (home-page "https://wiki.gnome.org/Projects/libgxps")
442 (synopsis "GObject-based library for handling and rendering XPS documents")
443 (description
444 "libgxps is a GObject-based library for handling and rendering XPS
445 documents. This package also contains binaries that can convert XPS documents
446 to other formats.")
447 (license license:lgpl2.1+)))
448
449 (define-public gnome-common
450 (package
451 (name "gnome-common")
452 (version "3.18.0")
453 (source
454 (origin
455 (method url-fetch)
456 (uri (string-append "mirror://gnome/sources/" name "/"
457 (version-major+minor version) "/"
458 name "-" version ".tar.xz"))
459 (sha256
460 (base32
461 "1kzqi8qvh5p1zncj8msazlmvcwsczjz2hqxp4x2y0mg718vrwmi2"))))
462 (build-system gnu-build-system)
463 (home-page "https://www.gnome.org/")
464 (synopsis "Bootstrap GNOME modules built from Git")
465 (description "gnome-common contains various files needed to bootstrap
466 GNOME modules built from Git. It contains a common \"autogen.sh\" script that
467 can be used to configure a source directory checked out from Git and some
468 commonly used macros.")
469 (license license:gpl2+)))
470
471 (define-public gnome-desktop
472 (package
473 (name "gnome-desktop")
474 (version "3.30.2")
475 (source
476 (origin
477 (method url-fetch)
478 (uri (string-append "mirror://gnome/sources/" name "/"
479 (version-major+minor version) "/"
480 name "-" version ".tar.xz"))
481 (sha256
482 (base32
483 "0k6iccfj9naw42dl2mgljfvk12dmvg06plg86qd81nksrf9ycxal"))))
484 (build-system gnu-build-system)
485 (arguments
486 '(#:phases
487 (modify-phases %standard-phases
488 (add-before 'configure 'patch-path
489 (lambda* (#:key inputs #:allow-other-keys)
490 (let ((libc (assoc-ref inputs "libc")))
491 (substitute* "libgnome-desktop/gnome-languages.c"
492 (("\"locale\"")
493 (string-append "\"" libc "/bin/locale\"")))
494 #t))))))
495 (native-inputs
496 `(("gobject-introspection" ,gobject-introspection)
497 ("itstool" ,itstool)
498 ("intltool" ,intltool)
499 ("pkg-config" ,pkg-config)
500 ("xmllint" ,libxml2)))
501 (propagated-inputs
502 ;; Required by gnome-desktop-3.0.pc.
503 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
504 ("gtk+" ,gtk+)))
505 (inputs
506 `(("gdk-pixbuf" ,gdk-pixbuf)
507 ("glib" ,glib)
508 ("iso-codes" ,iso-codes)
509 ("libseccomp" ,libseccomp)
510 ("libx11" ,libx11)
511 ("libxext" ,libxext)
512 ("libxkbfile" ,libxkbfile)
513 ("libxrandr" ,libxrandr)
514 ("xkeyboard-config" ,xkeyboard-config)))
515 (home-page "https://www.gnome.org/")
516 (synopsis
517 "Libgnome-desktop, gnome-about, and desktop-wide documents")
518 (description
519 "The libgnome-desktop library provides API shared by several applications
520 on the desktop, but that cannot live in the platform for various reasons.
521 There is no API or ABI guarantee, although we are doing our best to provide
522 stability. Documentation for the API is available with gtk-doc.
523
524 The gnome-about program helps find which version of GNOME is installed.")
525 ; Some bits under the LGPL.
526 (license license:gpl2+)))
527
528 (define-public gnome-doc-utils
529 (package
530 (name "gnome-doc-utils")
531 (version "0.20.10")
532 (source
533 (origin
534 (method url-fetch)
535 (uri (string-append "mirror://gnome/sources/" name "/"
536 (version-major+minor version) "/"
537 name "-" version ".tar.xz"))
538 (sha256
539 (base32
540 "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb"))))
541 (build-system gnu-build-system)
542 (native-inputs
543 `(("intltool" ,intltool)
544 ("docbook-xml" ,docbook-xml-4.4)
545 ("python2-libxml2" ,python2-libxml2)
546 ("libxml2" ,libxml2)
547 ("libxslt" ,libxslt)
548 ("pkg-config" ,pkg-config)
549 ("python-2" ,python-2)))
550 (home-page "https://wiki.gnome.org/GnomeDocUtils")
551 (synopsis
552 "Documentation utilities for the Gnome project")
553 (description
554 "Gnome-doc-utils is a collection of documentation utilities for the
555 Gnome project. It includes xml2po tool which makes it easier to translate
556 and keep up to date translations of documentation.")
557 (license license:gpl2+))) ; xslt under lgpl
558
559 (define-public gnome-disk-utility
560 (package
561 (name "gnome-disk-utility")
562 (version "3.30.2")
563 (source (origin
564 (method url-fetch)
565 (uri (string-append "mirror://gnome/sources/" name "/"
566 (version-major+minor version) "/"
567 name "-" version ".tar.xz"))
568 (sha256
569 (base32
570 "1365fabz3q7n3bl775z82m1nzg18birxxyd7l2ssbbkqrx3h7wgi"))))
571 (build-system meson-build-system)
572 (native-inputs
573 `(("glib:bin" ,glib "bin")
574 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
575 ("intltool" ,intltool)
576 ("pkg-config" ,pkg-config)
577 ("docbook-xml" ,docbook-xml)
578 ("docbook-xsl" ,docbook-xsl)
579 ("libxml2" ,libxml2)
580 ("libxslt" ,libxslt)))
581 (inputs
582 `(("glib" ,glib)
583 ("appstream-glib" ,appstream-glib)
584 ("gnome-settings-daemon" ,gnome-settings-daemon)
585 ("gtk+" ,gtk+)
586 ("libcanberra" ,libcanberra)
587 ("libdvdread" ,libdvdread)
588 ("libnotify" ,libnotify)
589 ("libpwquality" ,libpwquality)
590 ("libsecret" ,libsecret)
591 ("udisks" ,udisks)))
592 (home-page "https://git.gnome.org/browse/gnome-disk-utility")
593 (synopsis "Disk management utility for GNOME")
594 (description "Disk management utility for GNOME.")
595 (license license:gpl2+)))
596
597 (define-public gcr
598 (package
599 (name "gcr")
600 (version "3.28.1")
601 (source (origin
602 (method url-fetch)
603 (uri (string-append "mirror://gnome/sources/" name "/"
604 (version-major+minor version) "/"
605 name "-" version ".tar.xz"))
606 (sha256
607 (base32
608 "12qn7mcmxb45lz1gq3s3b34rimiyrrshkrpvxdw1fc0w26i4l84m"))
609 (patches
610 (list
611 ;; This patch solves an ordering issue that showed up when
612 ;; running the test suite against newer Glib 2.60. See
613 ;; <https://gitlab.gnome.org/GNOME/gcr/merge_requests/9>.
614 (origin
615 (method url-fetch)
616 (uri (string-append "https://gitlab.gnome.org/GNOME/gcr/commit/"
617 "45d637578d7643ff96c0183ac267497a0b4c6344.diff"))
618 (file-name "gcr-hashtable-ordering.patch")
619 (sha256
620 (base32
621 "1vsqiys8fsm1f1vvds783wwf7zwi5v282rhsai8jrsm6x7h79gbi")))))))
622 (build-system gnu-build-system)
623 (arguments
624 '(#:phases
625 (modify-phases %standard-phases
626 ;; These fail because /var/lib/dbus/machine-id is not present in the
627 ;; build environment.
628 (add-after 'unpack 'disable-failing-tests
629 (lambda _
630 (substitute* "gcr/test-system-prompt.c"
631 (("g_test_add") "//")
632 (("return.*") "return 0;"))
633 #t))
634 (add-before 'check 'pre-check
635 (lambda _
636 ;; Some tests expect to write to $HOME.
637 (setenv "HOME" "/tmp")
638 #t)))))
639 (inputs
640 `(("dbus" ,dbus)
641 ("gnupg" ,gnupg) ;called as a child process during tests
642 ("libgcrypt" ,libgcrypt)))
643 (native-inputs
644 `(("python" ,python-2) ;for tests
645 ("pkg-config" ,pkg-config)
646 ("glib" ,glib "bin")
647 ("gobject-introspection" ,gobject-introspection)
648 ("intltool" ,intltool)
649 ("libxml2" ,libxml2)
650 ("vala" ,vala)
651 ("xsltproc" ,libxslt)))
652 ;; mentioned in gck.pc, gcr.pc and gcr-ui.pc
653 (propagated-inputs
654 `(("p11-kit" ,p11-kit)
655 ("glib" ,glib)
656 ("gtk+" ,gtk+)))
657 (home-page "https://www.gnome.org")
658 (synopsis "Libraries for displaying certificates and accessing key stores")
659 (description
660 "The GCR package contains libraries used for displaying certificates and
661 accessing key stores. It also provides the viewer for crypto files on the
662 GNOME Desktop.")
663 (license license:lgpl2.1+)))
664
665 (define-public libgnome-keyring
666 (package
667 (name "libgnome-keyring")
668 (version "3.12.0")
669 (source (origin
670 (method url-fetch)
671 (uri (string-append "mirror://gnome/sources/" name "/"
672 (version-major+minor version) "/"
673 name "-" version ".tar.xz"))
674 (sha256
675 (base32
676 "10vpjhgbjm7z2djy04qakd02qlzpd02xnbfjhk2aqwjzn3xpihf4"))))
677 (build-system gnu-build-system)
678 (inputs
679 `(("libgcrypt" ,libgcrypt)
680 ("dbus" ,dbus)))
681 (native-inputs
682 `(("pkg-config" ,pkg-config)
683 ("glib" ,glib "bin")
684 ("intltool" ,intltool)))
685 (propagated-inputs
686 ;; Referred to in .h files and .pc.
687 `(("glib" ,glib)))
688 (home-page "https://www.gnome.org")
689 (synopsis "Accessing passwords from the GNOME keyring")
690 (description
691 "Client library to access passwords from the GNOME keyring.")
692
693 ;; Though a couple of files are LGPLv2.1+.
694 (license license:lgpl2.0+)))
695
696 (define-public gnome-keyring
697 (package
698 (name "gnome-keyring")
699 (version "3.28.2")
700 (source (origin
701 (method url-fetch)
702 (uri (string-append "mirror://gnome/sources/" name "/"
703 (version-major+minor version) "/"
704 name "-" version ".tar.xz"))
705 (sha256
706 (base32
707 "0sk4las4ji8wv9nx8mldzqccmpmkvvr9pdwv9imj26r10xyin5w1"))))
708 (build-system gnu-build-system)
709 (arguments
710 `(#:tests? #f ;48 of 603 tests fail because /var/lib/dbus/machine-id does
711 ;not exist
712 #:configure-flags
713 (list
714 (string-append "--with-pkcs11-config="
715 (assoc-ref %outputs "out") "/share/p11-kit/modules/")
716 (string-append "--with-pkcs11-modules="
717 (assoc-ref %outputs "out") "/share/p11-kit/modules/"))
718 #:phases
719 (modify-phases %standard-phases
720 (add-after 'unpack 'fix-/bin/sh-reference
721 (lambda _
722 (substitute* "po/Makefile.in.in"
723 (("/bin/sh") (which "sh")))
724 #t))
725 (add-after 'unpack 'fix-docbook
726 (lambda* (#:key inputs #:allow-other-keys)
727 (substitute* "docs/Makefile.am"
728 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
729 (string-append (assoc-ref inputs "docbook-xsl")
730 "/xml/xsl/docbook-xsl-"
731 ,(package-version docbook-xsl)
732 "/manpages/docbook.xsl")))
733 (setenv "XML_CATALOG_FILES"
734 (string-append (assoc-ref inputs "docbook-xml")
735 "/xml/dtd/docbook/catalog.xml"))
736 ;; Rerun the whole thing to avoid version mismatch ("This is
737 ;; Automake 1.15.1, but the definition used by this
738 ;; AM_INIT_AUTOMAKE comes from Automake 1.15."). Note: we don't
739 ;; use 'autoreconf' because it insists on running 'libtoolize'.
740 (invoke "autoconf")
741 (invoke "aclocal")
742 (invoke "automake" "-ac"))))))
743 (inputs
744 `(("libgcrypt" ,libgcrypt)
745 ("linux-pam" ,linux-pam)
746 ("openssh" ,openssh)
747 ("dbus" ,dbus)
748 ("gcr" ,gcr)))
749 (native-inputs
750 `(("pkg-config" ,pkg-config)
751 ("glib" ,glib "bin")
752 ("glib" ,glib) ; for m4 macros
753 ("python" ,python-2) ;for tests
754 ("intltool" ,intltool)
755 ("autoconf" ,autoconf)
756 ("automake" ,automake)
757 ("libxslt" ,libxslt) ;for documentation
758 ("docbook-xml" ,docbook-xml-4.2)
759 ("docbook-xsl" ,docbook-xsl)))
760 (home-page "https://www.gnome.org")
761 (synopsis "Daemon to store passwords and encryption keys")
762 (description
763 "gnome-keyring is a program that keeps passwords and other secrets for
764 users. It is run as a daemon in the session, similar to ssh-agent, and other
765 applications locate it via an environment variable or D-Bus.
766
767 The program can manage several keyrings, each with its own master password,
768 and there is also a session keyring which is never stored to disk, but
769 forgotten when the session ends.")
770 (license license:lgpl2.1+)))
771
772 (define-public evince
773 (package
774 (name "evince")
775 (version "3.30.2")
776 (source (origin
777 (method url-fetch)
778 (uri (string-append "mirror://gnome/sources/" name "/"
779 (version-major+minor version) "/"
780 name "-" version ".tar.xz"))
781 (sha256
782 (base32
783 "0k7jln6dpg4bpv61niicjzkzyq6fhb3yfld7pc8ck71c8pmvsnx9"))))
784 (build-system glib-or-gtk-build-system)
785 (arguments
786 `(#:configure-flags '("--disable-nautilus")
787 #:phases
788 (modify-phases %standard-phases
789 (add-before 'install 'skip-gtk-update-icon-cache
790 ;; Don't create 'icon-theme.cache'.
791 (lambda _
792 (substitute* "data/Makefile"
793 (("gtk-update-icon-cache") "true"))
794 #t)))))
795 (inputs
796 `(("libarchive" ,libarchive)
797 ("libgxps" ,libgxps)
798 ("libspectre" ,libspectre)
799 ("djvulibre" ,djvulibre)
800 ("ghostscript" ,ghostscript)
801 ("poppler" ,poppler)
802 ("libtiff" ,libtiff)
803 ;; TODO:
804 ;; Build libkpathsea as a shared library for DVI support.
805 ;; ("libkpathsea" ,texlive-bin)
806 ("gnome-desktop" ,gnome-desktop)
807 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
808 ("gspell" ,gspell)
809 ("libgnome-keyring" ,libgnome-keyring)
810 ("adwaita-icon-theme" ,adwaita-icon-theme)
811 ("gdk-pixbuf" ,gdk-pixbuf)
812 ("atk" ,atk)
813 ("pango" ,pango)
814 ("gtk+" ,gtk+)
815 ("glib" ,glib)
816 ("libxml2" ,libxml2)
817 ("libsm" ,libsm)
818 ("libice" ,libice)
819 ("shared-mime-info" ,shared-mime-info)
820 ("dconf" ,dconf)
821 ("libcanberra" ,libcanberra)
822 ("libsecret" ,libsecret)
823
824 ;; For tests.
825 ("dogtail" ,python2-dogtail)))
826 (native-inputs
827 `(("itstool" ,itstool)
828 ("intltool" ,intltool)
829 ("glib" ,glib "bin")
830 ("pkg-config" ,pkg-config)
831 ("xmllint" ,libxml2)))
832 (home-page
833 "https://www.gnome.org/projects/evince/")
834 (synopsis "GNOME's document viewer")
835 (description
836 "Evince is a document viewer for multiple document formats. It
837 currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
838 of Evince is to replace the multiple document viewers that exist
839 on the GNOME Desktop with a single simple application.")
840 (license license:gpl2+)))
841
842 (define-public gsettings-desktop-schemas
843 (package
844 (name "gsettings-desktop-schemas")
845 (version "3.28.1")
846 (source
847 (origin
848 (method url-fetch)
849 (uri (string-append "mirror://gnome/sources/" name "/"
850 (version-major+minor version) "/"
851 name "-" version ".tar.xz"))
852 (sha256
853 (base32
854 "0bshwm49cd01ighsxqlbqn10q0ch71ff99gcrx8pr2gyky2ad3pq"))))
855 (build-system gnu-build-system)
856 (inputs
857 `(("glib" ,glib)))
858 (native-inputs
859 `(("intltool" ,intltool)
860 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
861 ("gobject-introspection" ,gobject-introspection)
862 ("pkg-config" ,pkg-config)))
863 (home-page "https://launchpad.net/gsettings-desktop-schemas")
864 (synopsis
865 "GNOME settings for various desktop components")
866 (description
867 "Gsettings-desktop-schemas contains a collection of GSettings schemas
868 for settings shared by various components of the GNOME desktop.")
869 (license license:lgpl2.1+)))
870
871 (define-public icon-naming-utils
872 (package
873 (name "icon-naming-utils")
874 (version "0.8.90")
875 (source
876 (origin
877 (method url-fetch)
878 (uri (string-append "https://tango.freedesktop.org/releases/icon-naming-utils-"
879 version ".tar.bz2"))
880 (sha256
881 (base32
882 "1mc3v28fdfqanx3lqx233vcr4glb4c2376k0kx2v91a4vxwqcdxi"))))
883 (build-system gnu-build-system)
884 (inputs
885 `(("perl" ,perl)
886 ("perl-xml-simple" ,perl-xml-simple)))
887 (arguments
888 '(#:phases
889 (modify-phases %standard-phases
890 (add-after 'install 'set-load-paths
891 ;; Tell 'icon-name-mapping' where XML::Simple is.
892 (lambda* (#:key outputs #:allow-other-keys)
893 (let* ((out (assoc-ref outputs "out"))
894 (prog (string-append out "/libexec/icon-name-mapping")))
895 (wrap-program
896 prog
897 `("PERL5LIB" = ,(list (getenv "PERL5LIB")))))
898 #t)))))
899 (home-page "http://tango.freedesktop.org/Standard_Icon_Naming_Specification")
900 (synopsis
901 "Utility to implement the Freedesktop Icon Naming Specification")
902 (description
903 "To help with the transition to the Freedesktop Icon Naming
904 Specification, the icon naming utility maps the icon names used by the
905 GNOME and KDE desktops to the icon names proposed in the specification.")
906 (license license:lgpl2.1+)))
907
908 (define-public gnome-icon-theme
909 (package
910 (name "gnome-icon-theme")
911 (version "3.12.0")
912 (source
913 (origin
914 (method url-fetch)
915 (uri (string-append "mirror://gnome/sources/" name "/"
916 (version-major+minor version) "/"
917 name "-" version ".tar.xz"))
918 (sha256
919 (base32
920 "0fjh9qmmgj34zlgxb09231ld7khys562qxbpsjlaplq2j85p57im"))))
921 (build-system gnu-build-system)
922 (arguments
923 '(#:configure-flags
924 ;; Don't create 'icon-theme.cache'.
925 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
926 (true (string-append coreutils "/bin/true")))
927 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
928 (native-inputs
929 `(("icon-naming-utils" ,icon-naming-utils)
930 ("intltool" ,intltool)
931 ("pkg-config" ,pkg-config)))
932 (home-page "https://art.gnome.org/")
933 (synopsis
934 "GNOME icon theme")
935 (description
936 "Icons for the GNOME desktop.")
937 (license license:lgpl3))) ; or Creative Commons BY-SA 3.0
938
939 ;; gnome-icon-theme was renamed to adwaita-icon-theme after version 3.12.0.
940 (define-public adwaita-icon-theme
941 (package (inherit gnome-icon-theme)
942 (name "adwaita-icon-theme")
943 (version "3.30.1")
944 (source (origin
945 (method url-fetch)
946 (uri (string-append "mirror://gnome/sources/" name "/"
947 (version-major+minor version) "/"
948 name "-" version ".tar.xz"))
949 (sha256
950 (base32
951 "1kp1lis3dr16jmlgycz1b29jsr6ir8wmqj6laqwlhs663cmjlxbd"))))
952 (native-inputs
953 `(("gtk-encode-symbolic-svg" ,gtk+ "bin")))))
954
955 (define-public tango-icon-theme
956 (package
957 (name "tango-icon-theme")
958 (version "0.8.90")
959 (source (origin
960 (method url-fetch)
961 (uri (string-append "http://tango.freedesktop.org/releases/"
962 "tango-icon-theme-" version ".tar.bz2"))
963 (sha256
964 (base32
965 "034r9s944b4yikyfgn602yv7s54wdzlq0qfvqh52b9x6kbx08h79"))))
966 (build-system gnu-build-system)
967 (native-inputs
968 `(("icon-naming-utils" ,icon-naming-utils)
969 ("intltool" ,intltool)
970 ("imagemagick" ,imagemagick)
971 ("pkg-config" ,pkg-config)))
972 (home-page "http://tango-project.org/")
973 (synopsis "Tango icon theme")
974 (description "This is an icon theme that follows the Tango visual
975 guidelines.")
976 (license license:public-domain)))
977
978 (define-public shared-mime-info
979 (package
980 (name "shared-mime-info")
981 (version "1.10")
982 (source (origin
983 (method url-fetch)
984 (uri (string-append "https://freedesktop.org/~hadess/"
985 "shared-mime-info-" version ".tar.xz"))
986 (sha256
987 (base32
988 "1gxyvwym3xgpmp262gfn8jg5sla6k5hy6m6dmy6grgiq90xsh9f6"))))
989 (build-system gnu-build-system)
990 (arguments
991 ;; The build system appears not to be parallel-safe.
992 '(#:parallel-build? #f))
993 (inputs
994 `(("glib" ,glib)
995 ("libxml2" ,libxml2)))
996 (native-inputs
997 `(("intltool" ,intltool)
998 ("pkg-config" ,pkg-config)))
999 (home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info")
1000 (synopsis "Database of common MIME types")
1001 (description
1002 "The shared-mime-info package contains the core database of common types
1003 and the update-mime-database command used to extend it. It requires glib2 to
1004 be installed for building the update command. Additionally, it uses intltool
1005 for translations, though this is only a dependency for the maintainers. This
1006 database is translated at Transifex.")
1007 (license license:gpl2+)))
1008
1009 (define-public system-config-printer
1010 (package
1011 (name "system-config-printer")
1012 (version "1.5.11")
1013 (source (origin
1014 (method url-fetch)
1015 (uri (string-append
1016 "https://github.com/zdohnal/system-config-printer/releases/"
1017 "download/" version
1018 "/system-config-printer-" version ".tar.xz"))
1019 (sha256
1020 (base32
1021 "1lq0q51bhanirpjjvvh4xiafi8hgpk8r32h0dj6dn3f32z8pib9q"))))
1022 (build-system glib-or-gtk-build-system)
1023 (arguments
1024 `(#:imported-modules ((guix build python-build-system)
1025 ,@%glib-or-gtk-build-system-modules)
1026 #:phases
1027 (modify-phases %standard-phases
1028 (add-after 'unpack 'patch-Makefile.am
1029 (lambda _
1030 ;; The Makefile generates some scripts, so set a valid shebang
1031 (substitute* "Makefile.am"
1032 (("/bin/bash") (which "bash")))
1033 (delete-file "configure")
1034 #t))
1035 (add-after 'unpack 'patch-docbook-xml
1036 (lambda* (#:key inputs #:allow-other-keys)
1037 ;; Modify the man XML otherwise xmlto tries to access the network
1038 (substitute* "man/system-config-printer.xml"
1039 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
1040 (string-append (assoc-ref inputs "docbook-xml")
1041 "/xml/dtd/docbook/")))
1042 #t))
1043 (add-after 'install 'wrap-for-python
1044 (@@ (guix build python-build-system) wrap))
1045 (add-after 'install 'wrap
1046 (lambda* (#:key outputs #:allow-other-keys)
1047 (let ((out (assoc-ref outputs "out"))
1048 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
1049 (for-each
1050 (lambda (program)
1051 (wrap-program program
1052 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
1053 (map (lambda (name)
1054 (string-append out "/bin/" name))
1055 '("system-config-printer"
1056 "system-config-printer-applet"
1057 "install-printerdriver"
1058 "scp-dbus-service"))))
1059 #t)))))
1060 (inputs
1061 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1062 ("gobject-introspection" ,gobject-introspection)
1063 ("python" ,python)
1064 ("cups" ,cups)
1065 ("python-dbus" ,python-dbus)
1066 ("python-pygobject" ,python-pygobject)
1067 ("python-pycups" ,python-pycups)
1068 ("python-requests" ,python-requests)
1069 ("python-pycairo" ,python-pycairo)
1070 ("libnotify" ,libnotify)
1071 ("packagekit" ,packagekit)))
1072 (native-inputs
1073 `(("pkg-config" ,pkg-config)
1074 ("desktop-file-utils" ,desktop-file-utils)
1075 ("glib" ,glib)
1076 ("autoconf" ,autoconf)
1077 ("automake" ,automake)
1078 ("intltool" ,intltool)
1079 ("xmlto" ,xmlto)
1080 ("docbook-xml" ,docbook-xml-4.1.2)
1081 ("docbook-xsl" ,docbook-xsl)
1082 ("libxml2" ,libxml2)))
1083 (home-page "https://github.com/zdohnal/system-config-printer")
1084 (synopsis "CUPS administration tool")
1085 (description
1086 "system-config-printer is a CUPS administration tool. It's written in
1087 Python using GTK+, and uses the @acronym{IPP, Internet Printing Protocol} when
1088 configuring CUPS.")
1089 (license license:gpl2+)))
1090
1091 (define-public hicolor-icon-theme
1092 (package
1093 (name "hicolor-icon-theme")
1094 (version "0.17")
1095 (source
1096 (origin
1097 (method url-fetch)
1098 (uri (string-append "https://icon-theme.freedesktop.org/releases/"
1099 "hicolor-icon-theme-" version ".tar.xz"))
1100 (sha256
1101 (base32
1102 "1n59i3al3zx6p90ff0l43gzpzmlqnzm6hf5cryxqrlbi48sq8x1i"))))
1103 (build-system gnu-build-system)
1104 (arguments
1105 `(#:tests? #f)) ; no check target
1106 (home-page "https://icon-theme.freedesktop.org/releases/")
1107 (synopsis
1108 "Freedesktop icon theme")
1109 (description
1110 "Freedesktop icon theme.")
1111 (license license:gpl2)))
1112
1113 (define-public libnotify
1114 (package
1115 (name "libnotify")
1116 (version "0.7.7")
1117 (source
1118 (origin
1119 (method url-fetch)
1120 (uri (string-append "mirror://gnome/sources/" name "/"
1121 (version-major+minor version) "/"
1122 name "-" version ".tar.xz"))
1123 (sha256
1124 (base32
1125 "017wgq9n00hx39n0hm784zn18hl721hbaijda868cm96bcqwxd4w"))))
1126 (build-system gnu-build-system)
1127 (arguments
1128 `(#:configure-flags '("--disable-static")))
1129 (propagated-inputs
1130 `(;; In Requires of libnotify.pc.
1131 ("gdk-pixbuf" ,gdk-pixbuf)
1132 ("glib" ,glib)))
1133 (inputs
1134 `(("gtk+" ,gtk+)
1135 ("libpng" ,libpng)))
1136 (native-inputs
1137 `(("pkg-config" ,pkg-config)
1138 ("glib" ,glib "bin")
1139 ("gobject-introspection" ,gobject-introspection)))
1140 (home-page "https://developer-next.gnome.org/libnotify/")
1141 (synopsis
1142 "GNOME desktop notification library")
1143 (description
1144 "Libnotify is a library that sends desktop notifications to a
1145 notification daemon, as defined in the Desktop Notifications spec. These
1146 notifications can be used to inform the user about an event or display
1147 some form of information without getting in the user's way.")
1148 (license license:lgpl2.1+)))
1149
1150 (define-public libpeas
1151 (package
1152 (name "libpeas")
1153 (version "1.22.0")
1154 (source
1155 (origin
1156 (method url-fetch)
1157 (uri (string-append "mirror://gnome/sources/" name "/"
1158 (version-major+minor version) "/"
1159 name "-" version ".tar.xz"))
1160 (sha256
1161 (base32
1162 "0qm908kisyjzjxvygdl18hjqxvvgkq9w0phs2g55pck277sw0bsv"))))
1163 (build-system gnu-build-system)
1164 (inputs
1165 `(("gtk+" ,gtk+)
1166 ("glade" ,glade3)
1167 ("python" ,python)
1168 ("python-pygobject" ,python-pygobject)))
1169 (native-inputs
1170 `(("pkg-config" ,pkg-config)
1171 ("glib:bin" ,glib "bin")
1172 ("gobject-introspection" ,gobject-introspection)
1173 ("intltool" ,intltool)))
1174 (propagated-inputs
1175 ;; The .pc file "Requires" gobject-introspection.
1176 `(("gobject-introspection" ,gobject-introspection)))
1177 (home-page "https://wiki.gnome.org/Libpeas")
1178 (synopsis "GObject plugin system")
1179 (description
1180 "Libpeas is a gobject-based plugin engine, targeted at giving every
1181 application the chance to assume its own extensibility. It also has a set of
1182 features including, but not limited to: multiple extension points; on-demand
1183 (lazy) programming language support for C, Python and JS; simplicity of the
1184 API.")
1185 (license license:lgpl2.0+)))
1186
1187 (define-public gtkglext
1188 (package
1189 (name "gtkglext")
1190 (version "1.2.0")
1191 (source (origin
1192 (method url-fetch)
1193 (uri (string-append "mirror://sourceforge/gtkglext/gtkglext/"
1194 version "/gtkglext-" version ".tar.gz"))
1195 (sha256
1196 (base32 "1ya4d2j2aacr9ii5zj4ac95fjpdvlm2rg79mgnk7yvl1dcy3y1z5"))
1197 (patches (search-patches
1198 "gtkglext-disable-disable-deprecated.patch"))))
1199 (build-system gnu-build-system)
1200 (arguments
1201 `(#:phases
1202 (modify-phases %standard-phases
1203 ;; Fix a collision between a local variable and a definition from
1204 ;; glibc's string.h.
1205 (add-after 'unpack 'fix-collision
1206 (lambda _
1207 (substitute* "gdk/gdkglshapes.c"
1208 ((" index") " triangle_index"))
1209 #t)))))
1210 (inputs `(("gtk+" ,gtk+-2)
1211 ("mesa" ,mesa)
1212 ("glu" ,glu)
1213 ("libx11" ,libx11)
1214 ("libxt" ,libxt)))
1215 (native-inputs `(("pkg-config" ,pkg-config)
1216 ("glib" ,glib "bin")))
1217 (propagated-inputs `(("pangox-compat" ,pangox-compat)))
1218 (home-page "https://projects.gnome.org/gtkglext")
1219 (synopsis "OpenGL extension to GTK+")
1220 (description "GtkGLExt is an OpenGL extension to GTK+. It provides
1221 additional GDK objects which support OpenGL rendering in GTK+ and GtkWidget
1222 API add-ons to make GTK+ widgets OpenGL-capable.")
1223 (license license:lgpl2.1+)))
1224
1225 (define-public glade3
1226 (package
1227 (name "glade")
1228 (version "3.22.1")
1229 (source (origin
1230 (method url-fetch)
1231 (uri (string-append "mirror://gnome/sources/" name "/"
1232 (version-major+minor version) "/"
1233 name "-" version ".tar.xz"))
1234 (sha256
1235 (base32
1236 "16p38xavpid51qfy0s26n0n21f9ws1w9k5s65bzh1w7ay8p9my6z"))))
1237 (build-system glib-or-gtk-build-system)
1238 (arguments
1239 `(#:tests? #f ; needs X, GL, and software rendering
1240 #:phases
1241 (modify-phases %standard-phases
1242 (add-before 'configure 'fix-docbook
1243 (lambda* (#:key inputs #:allow-other-keys)
1244 (substitute* "man/Makefile.in"
1245 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1246 (string-append (assoc-ref inputs "docbook-xsl")
1247 "/xml/xsl/docbook-xsl-"
1248 ,(package-version docbook-xsl)
1249 "/manpages/docbook.xsl")))
1250 #t)))))
1251 (inputs
1252 `(("gtk+" ,gtk+)
1253 ("libxml2" ,libxml2)))
1254 (native-inputs
1255 `(("intltool" ,intltool)
1256 ("itstool" ,itstool)
1257 ("libxslt" ,libxslt) ;for xsltproc
1258 ("docbook-xml" ,docbook-xml-4.2)
1259 ("docbook-xsl" ,docbook-xsl)
1260 ("python" ,python-2)
1261 ("pkg-config" ,pkg-config)))
1262 (home-page "https://glade.gnome.org")
1263 (synopsis "GTK+ rapid application development tool")
1264 (description "Glade is a rapid application development (RAD) tool to
1265 enable quick & easy development of user interfaces for the GTK+ toolkit and
1266 the GNOME desktop environment.")
1267 (license license:lgpl2.0+)))
1268
1269 (define-public libcroco
1270 (package
1271 (name "libcroco")
1272 (version "0.6.13")
1273 (source (origin
1274 (method url-fetch)
1275 (uri (string-append "mirror://gnome/sources/" name "/"
1276 (version-major+minor version) "/"
1277 name "-" version ".tar.xz"))
1278 (sha256
1279 (base32
1280 "1m110rbj5d2raxcdp4iz0qp172284945awrsbdlq99ksmqsc4zkn"))))
1281 (build-system gnu-build-system)
1282 (native-inputs
1283 `(("pkg-config" ,pkg-config)))
1284 (inputs
1285 `(("glib" ,glib)
1286 ("libxml2" ,libxml2)
1287 ("zlib" ,zlib)))
1288 (home-page "https://github.com/GNOME/libcroco")
1289 (synopsis "CSS2 parsing and manipulation library")
1290 (description
1291 "Libcroco is a standalone CSS2 parsing and manipulation library.
1292 The parser provides a low level event driven SAC-like API and a CSS object
1293 model like API. Libcroco provides a CSS2 selection engine and an experimental
1294 XML/CSS rendering engine.")
1295
1296 ;; LGPLv2.1-only.
1297 (license license:lgpl2.1)))
1298
1299 (define-public libgsf
1300 (package
1301 (name "libgsf")
1302 (version "1.14.46")
1303 (source (origin
1304 (method url-fetch)
1305 (uri (string-append "mirror://gnome/sources/" name "/"
1306 (version-major+minor version) "/"
1307 name "-" version ".tar.xz"))
1308 (sha256
1309 (base32
1310 "0bddmlzg719sjhlbzqlhb7chwk93qc7g68m2r9r8xz112jdradpa"))))
1311 (build-system gnu-build-system)
1312 (native-inputs
1313 `(("intltool" ,intltool)
1314 ("pkg-config" ,pkg-config)))
1315 (inputs
1316 `(("python" ,python)
1317 ("zlib" ,zlib)
1318 ("bzip2" ,bzip2)))
1319 (propagated-inputs
1320 `(("gdk-pixbuf" ,gdk-pixbuf)
1321 ("glib" ,glib)
1322 ("libxml2" ,libxml2)))
1323 (home-page "https://www.gnome.org/projects/libgsf")
1324 (synopsis "GNOME's Structured File Library")
1325 (description
1326 "Libgsf aims to provide an efficient extensible I/O abstraction for
1327 dealing with different structured file formats.")
1328
1329 ;; LGPLv2.1-only.
1330 (license license:lgpl2.1)))
1331
1332 (define-public librsvg
1333 (package
1334 (name "librsvg")
1335 (version "2.40.20")
1336 (source (origin
1337 (method url-fetch)
1338 (uri (string-append "mirror://gnome/sources/" name "/"
1339 (version-major+minor version) "/"
1340 name "-" version ".tar.xz"))
1341 (sha256
1342 (base32
1343 "0ay9himvw1l1swcf3h1312d2iqzfl65kpbfgiyfykgvq7cydvx6g"))))
1344 (build-system gnu-build-system)
1345 (arguments
1346 `(#:configure-flags
1347 (list "--disable-static"
1348 "--enable-vala") ; needed for e.g. gnome-mines
1349 #:phases
1350 (modify-phases %standard-phases
1351 (add-before 'configure 'pre-configure
1352 (lambda* (#:key inputs #:allow-other-keys)
1353 (substitute* "gdk-pixbuf-loader/Makefile.in"
1354 ;; By default the gdk-pixbuf loader is installed under
1355 ;; gdk-pixbuf's prefix. Work around that.
1356 (("gdk_pixbuf_moduledir = .*$")
1357 (string-append "gdk_pixbuf_moduledir = "
1358 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
1359 "loaders\n"))
1360 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
1361 (("gdk_pixbuf_cache_file = .*$")
1362 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
1363 #t))
1364 (add-before 'check 'remove-failing-tests
1365 (lambda _
1366 (with-directory-excursion "tests/fixtures/reftests"
1367 (for-each delete-file
1368 '(;; This test fails on i686:
1369 "svg1.1/masking-path-04-b.svg"
1370 ;; This test fails on armhf:
1371 "svg1.1/masking-mask-01-b.svg"
1372 ;; This test fails on aarch64:
1373 "bugs/777834-empty-text-children.svg")))
1374 #t)))))
1375 (native-inputs
1376 `(("pkg-config" ,pkg-config)
1377 ("vala" ,vala)
1378 ("glib" ,glib "bin") ; glib-mkenums, etc.
1379 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
1380 (inputs
1381 `(("pango" ,pango)
1382 ("libcroco" ,libcroco)
1383 ("bzip2" ,bzip2)
1384 ("libgsf" ,libgsf)
1385 ("libxml2" ,libxml2)))
1386 (propagated-inputs
1387 ;; librsvg-2.0.pc refers to all of that.
1388 `(("cairo" ,cairo)
1389 ("gdk-pixbuf" ,gdk-pixbuf)
1390 ("glib" ,glib)))
1391 (home-page "https://wiki.gnome.org/LibRsvg")
1392 (synopsis "Render SVG files using Cairo")
1393 (description
1394 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
1395 library.")
1396 (license license:lgpl2.0+)))
1397
1398 (define-public librsvg-next
1399 (package
1400 (name "librsvg")
1401 (version "2.46.0")
1402 (source (origin
1403 (method url-fetch)
1404 (uri (string-append "mirror://gnome/sources/" name "/"
1405 (version-major+minor version) "/"
1406 name "-" version ".tar.xz"))
1407 (sha256
1408 (base32
1409 "1la3az2af2ccm6rp86b6wh0kq7kxzl4n8pli5qxhyic1rd91xj4n"))))
1410 (build-system gnu-build-system)
1411 (arguments
1412 `(#:configure-flags
1413 (list "--disable-static"
1414 "--enable-vala") ; needed for e.g. gnome-mines
1415 #:make-flags '("CC=gcc")
1416 #:phases
1417 (modify-phases %standard-phases
1418 ;; Don't patch anything in vendor/ to avoid having to recompute
1419 ;; checksums for the bundled Cargo "crates". TODO: Unbundle those.
1420 (delete 'patch-source-shebangs)
1421 (delete 'patch-generated-file-shebangs)
1422 (delete 'patch-usr-bin-file)
1423 (add-before 'configure 'patch-all-the-things
1424 (lambda _
1425 (for-each patch-shebang '("tap-driver.sh" "tap-test"))
1426 (patch-/usr/bin/file "configure")
1427 (patch-makefile-SHELL "po/Makefile.in.in")
1428 #t))
1429 (add-before 'configure 'pre-configure
1430 (lambda* (#:key inputs #:allow-other-keys)
1431 (substitute* "gdk-pixbuf-loader/Makefile.in"
1432 ;; By default the gdk-pixbuf loader is installed under
1433 ;; gdk-pixbuf's prefix. Work around that.
1434 (("gdk_pixbuf_moduledir = .*$")
1435 (string-append "gdk_pixbuf_moduledir = "
1436 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
1437 "loaders\n"))
1438 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
1439 (("gdk_pixbuf_cache_file = .*$")
1440 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
1441 #t))
1442 (add-before 'check 'remove-failing-tests
1443 (lambda _
1444 (with-directory-excursion "tests/fixtures/reftests"
1445 (for-each delete-file
1446 '(;; The images produced by these tests differ slightly
1447 ;; from their reference counterparts due to differences
1448 ;; in the build environment (missing fonts, etc). See
1449 ;; <tests/README.md> for details.
1450 ;; These fail on x86_64.
1451 "svg1.1/coords-viewattr-02-b.svg"
1452 "svg1.1/filters-composite-04-f.svg"
1453 "svg1.1/filters-image-01-b.svg"
1454 "svg1.1/filters-conv-02-f.svg"
1455 "svg1.1/filters-conv-04-f.svg"
1456 ;; This test fails on i686:
1457 "svg1.1/masking-path-04-b.svg"
1458 ;; This test fails on armhf:
1459 "svg1.1/masking-mask-01-b.svg"
1460 ;; This test fails on aarch64:
1461 "bugs/777834-empty-text-children.svg")))
1462 #t)))))
1463 (native-inputs
1464 `(("pkg-config" ,pkg-config)
1465 ;; This is the minimum supported Rust version in Librsvg 2.46.
1466 ("rust" ,rust-1.34)
1467 ("cargo" ,rust-1.34 "cargo")
1468 ("vala" ,vala)
1469 ("glib" ,glib "bin") ; glib-mkenums, etc.
1470 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
1471 (inputs
1472 `(("pango" ,pango)
1473 ("libcroco" ,libcroco)
1474 ("bzip2" ,bzip2)
1475 ("libgsf" ,libgsf)
1476 ("libxml2" ,libxml2)))
1477 (propagated-inputs
1478 ;; librsvg-2.0.pc refers to all of that.
1479 `(("cairo" ,cairo)
1480 ("gdk-pixbuf" ,gdk-pixbuf)
1481 ("glib" ,glib)))
1482 (home-page "https://wiki.gnome.org/LibRsvg")
1483 (synopsis "Render SVG files using Cairo")
1484 (description
1485 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
1486 library.")
1487 (license license:lgpl2.0+)))
1488
1489 (define-public libidl
1490 (package
1491 (name "libidl")
1492 (version "0.8.14")
1493 (source (origin
1494 (method url-fetch)
1495 (uri (let ((upstream-name "libIDL"))
1496 (string-append "mirror://gnome/sources/" upstream-name "/"
1497 (version-major+minor version) "/"
1498 upstream-name "-" version ".tar.bz2")))
1499 (sha256
1500 (base32
1501 "08129my8s9fbrk0vqvnmx6ph4nid744g5vbwphzkaik51664vln5"))))
1502 (build-system gnu-build-system)
1503 (inputs `(("glib" ,glib)))
1504 (native-inputs
1505 `(("pkg-config" ,pkg-config)
1506 ("flex" ,flex)
1507 ("bison" ,bison)))
1508 (home-page "http://freecode.com/projects/libidl")
1509 (synopsis "Create trees of CORBA Interface Definition Language files")
1510 (description "Libidl is a library for creating trees of CORBA Interface
1511 Definition Language (idl) files, which is a specification for defining
1512 portable interfaces. libidl was initially written for orbit (the orb from the
1513 GNOME project, and the primary means of libidl distribution). However, the
1514 functionality was designed to be as reusable and portable as possible.")
1515 (license license:lgpl2.0+)))
1516
1517
1518 (define-public orbit2
1519 (package
1520 (name "orbit2")
1521 (version "2.14.19")
1522 (source (origin
1523 (method url-fetch)
1524 (uri (let ((upstream-name "ORBit2"))
1525 (string-append "mirror://gnome/sources/" upstream-name "/"
1526 (version-major+minor version) "/"
1527 upstream-name "-" version ".tar.bz2")))
1528 (sha256
1529 (base32
1530 "0l3mhpyym9m5iz09fz0rgiqxl2ym6kpkwpsp1xrr4aa80nlh1jam"))))
1531 (build-system gnu-build-system)
1532 (arguments
1533 `(#:configure-flags
1534 '(;; We don't need static libraries, plus they don't build reproducibly
1535 ;; (non-deterministic ordering of .o files in the archive.)
1536 "--disable-static"
1537
1538 ;; The programmer kindly gives us a hook to turn off deprecation
1539 ;; warnings ...
1540 "DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
1541 ;; ... which they then completly ignore !!
1542 #:phases
1543 (modify-phases %standard-phases
1544 (add-before 'configure 'ignore-deprecations
1545 (lambda _
1546 (substitute* "linc2/src/Makefile.in"
1547 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
1548 #t)))))
1549 (inputs `(("glib" ,glib)
1550 ("libidl" ,libidl)))
1551 (native-inputs
1552 `(("pkg-config" ,pkg-config)))
1553 (home-page "https://projects.gnome.org/orbit2/")
1554 (synopsis "CORBA 2.4-compliant Object Request Broker")
1555 (description "ORBit2 is a CORBA 2.4-compliant Object Request Broker (orb)
1556 featuring mature C, C++ and Python bindings.")
1557 ;; Licence notice is unclear. The Web page simply say "GPL" without giving
1558 ;; a version. SOME of the code files have licence notices for GPLv2+.
1559 ;; The tarball contains files of the text of GPLv2 and LGPLv2.
1560 (license license:gpl2+)
1561 (properties `((upstream-name . "ORBit2")))))
1562
1563
1564 (define-public libbonobo
1565 (package
1566 (name "libbonobo")
1567 (version "2.32.1")
1568 (source (origin
1569 (method url-fetch)
1570 (uri (string-append "mirror://gnome/sources/" name "/"
1571 (version-major+minor version)
1572 "/" name "-" version ".tar.bz2"))
1573 (sha256
1574 (base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))
1575 (patches (search-patches
1576 "libbonobo-activation-test-race.patch"))))
1577 (build-system gnu-build-system)
1578 (arguments
1579 ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
1580 `(#:configure-flags
1581 '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
1582 ;; ... which they then completly ignore !!
1583 #:phases
1584 (modify-phases %standard-phases
1585 (add-before 'configure 'ignore-deprecations
1586 (lambda _
1587 (substitute* "activation-server/Makefile.in"
1588 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
1589 #t)))
1590
1591 ;; There's apparently a race condition between the server stub
1592 ;; generation and linking of the example under 'samples/echo' that can
1593 ;; lead do undefined references when building in parallel, as reported
1594 ;; at <https://forums.gentoo.org/viewtopic-t-223376-start-550.html>.
1595 ;; Thus, disable parallel builds.
1596 #:parallel-build? #f))
1597 (inputs `(("popt" ,popt)
1598 ("libxml2" ,libxml2)))
1599 ;; The following are Required by the .pc file
1600 (propagated-inputs
1601 `(("glib" ,glib)
1602 ("orbit2" ,orbit2)))
1603 (native-inputs
1604 `(("intltool" ,intltool)
1605 ("pkg-config" ,pkg-config)
1606 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
1607 ("flex" ,flex)
1608 ("bison" ,bison)))
1609 (home-page "https://developer.gnome.org/libbonobo/")
1610 (synopsis "Framework for creating reusable components for use in GNOME applications")
1611 (description "Bonobo is a framework for creating reusable components for
1612 use in GNOME applications, built on top of CORBA.")
1613 ;; Licence not explicitly stated. Source files contain no licence notices.
1614 ;; Tarball contains text of both GPLv2 and LGPLv2
1615 ;; GPLv2 covers both conditions
1616 (license license:gpl2+)))
1617
1618
1619 (define-public gconf
1620 (package
1621 (name "gconf")
1622 (version "3.2.6")
1623 (source (origin
1624 (method url-fetch)
1625 (uri
1626 (let ((upstream-name "GConf"))
1627 (string-append "mirror://gnome/sources/" upstream-name "/"
1628 (version-major+minor version) "/"
1629 upstream-name "-" version ".tar.xz")))
1630 (sha256
1631 (base32 "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr"))))
1632 (build-system gnu-build-system)
1633 (inputs `(("dbus-glib" ,dbus-glib)
1634 ("libxml2" ,libxml2)))
1635 (propagated-inputs `(("glib" ,glib) ; referred to in the .pc file
1636 ("orbit2" ,orbit2)))
1637 (native-inputs
1638 `(("intltool" ,intltool)
1639 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
1640 ("pkg-config" ,pkg-config)))
1641 (home-page "https://projects.gnome.org/gconf/")
1642 (synopsis "Store application preferences")
1643 (description "Gconf is a system for storing application preferences. It
1644 is intended for user preferences; not arbitrary data storage.")
1645 (license license:lgpl2.0+)
1646 (properties '((upstream-name . "GConf")))))
1647
1648
1649 (define-public gnome-mime-data
1650 (package
1651 (name "gnome-mime-data")
1652 (version "2.18.0")
1653 (source (origin
1654 (method url-fetch)
1655 (uri (string-append "mirror://gnome/sources/" name "/"
1656 (version-major+minor version) "/"
1657 name "-" version ".tar.bz2"))
1658 (sha256
1659 (base32
1660 "1mvg8glb2a40yilmyabmb7fkbzlqd3i3d31kbkabqnq86xdnn69p"))))
1661 (build-system gnu-build-system)
1662 (native-inputs
1663 `(("perl" ,perl)
1664 ("intltool" ,intltool)))
1665 (arguments
1666 '(#:phases (modify-phases %standard-phases
1667 (add-after 'configure 'use-our-intltool
1668 (lambda _
1669 ;; Do not use the bundled intltool commands, which lack
1670 ;; the "dotless @INC" fixes of our 'intltool' package.
1671 (substitute* (find-files "." "^Makefile$")
1672 (("^INTLTOOL_(EXTRACT|UPDATE|MERGE) = .*$" _ tool)
1673 (string-append "INTLTOOL_" tool " = intltool-"
1674 (string-downcase tool) "\n")))
1675 #t)))))
1676 (home-page "https://www.gnome.org")
1677 (synopsis "Base MIME and Application database for GNOME")
1678 (description "GNOME Mime Data is a module which contains the base MIME
1679 and Application database for GNOME. The data stored by this module is
1680 designed to be accessed through the MIME functions in GnomeVFS.")
1681 (license license:gpl2+)))
1682
1683
1684 (define-public gnome-vfs
1685 (package
1686 (name "gnome-vfs")
1687 (version "2.24.4")
1688 (source (origin
1689 (method url-fetch)
1690 (uri (string-append "mirror://gnome/sources/" name "/"
1691 (version-major+minor version) "/"
1692 name "-" version ".tar.bz2"))
1693 (sha256
1694 (base32
1695 "1ajg8jb8k3snxc7rrgczlh8daxkjidmcv3zr9w809sq4p2sn9pk2"))))
1696 (build-system gnu-build-system)
1697 (arguments
1698 `(#:phases
1699 (modify-phases %standard-phases
1700 (add-before 'configure 'ignore-deprecations
1701 (lambda _
1702 (substitute* '("libgnomevfs/Makefile.in"
1703 "daemon/Makefile.in")
1704 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
1705 #t))
1706 (add-before 'configure 'patch-test-async-cancel-to-never-fail
1707 (lambda _
1708 (substitute* "test/test-async-cancel.c"
1709 (("EXIT_FAILURE") "77"))
1710 #t)))))
1711 (inputs `(("libxml2" ,libxml2)
1712 ("dbus-glib" ,dbus-glib)
1713 ("gconf" ,gconf)
1714 ("gnome-mime-data" ,gnome-mime-data)
1715 ("zlib" ,zlib)))
1716 (native-inputs
1717 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
1718 ("intltool" ,intltool)
1719 ("pkg-config" ,pkg-config)))
1720 (home-page "https://developer.gnome.org/gnome-vfs/")
1721 (synopsis "Access files and folders in GNOME applications")
1722 (description
1723 "GnomeVFS is the core library used to access files and folders in GNOME
1724 applications. It provides a file system abstraction which allows applications
1725 to access local and remote files with a single consistent API.")
1726 (license license:lgpl2.0+)))
1727
1728
1729
1730 (define-public libgnome
1731 (package
1732 (name "libgnome")
1733 (version "2.32.1")
1734 (source (origin
1735 (method url-fetch)
1736 (uri (string-append "mirror://gnome/sources/" name "/"
1737 (version-major+minor version) "/"
1738 name "-" version ".tar.bz2"))
1739 (sha256
1740 (base32
1741 "197pnq8y0knqjhm2fg4j6hbqqm3qfzfnd0irhwxpk1b4hqb3kimj"))
1742 (patches (search-patches "libgnome-encoding.patch"))))
1743 (build-system gnu-build-system)
1744 (arguments
1745 `(#:phases
1746 (modify-phases %standard-phases
1747 (add-before 'configure 'enable-deprecated
1748 (lambda _
1749 (substitute* "libgnome/Makefile.in"
1750 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
1751 #t)))))
1752 (inputs `(("libxml2" ,libxml2)))
1753 (native-inputs
1754 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
1755 ("intltool" ,intltool)
1756 ("pkg-config" ,pkg-config)))
1757 ;; The following are listed as Required in the .pc file
1758 ;; (except for libcanberra -- which seems to be oversight on the part
1759 ;; of the upstream developers -- anything that links against libgnome,
1760 ;; must also link against libcanberra
1761 (propagated-inputs
1762 `(("libcanberra" ,libcanberra)
1763 ("libbonobo" ,libbonobo)
1764 ("gconf" ,gconf)
1765 ("gnome-vfs" ,gnome-vfs)
1766 ("popt" ,popt))) ;gnome-program.h includes popt.h
1767 (home-page "https://developer.gnome.org/libgnome/")
1768 (synopsis "Useful routines for building applications")
1769 (description "The libgnome library provides a number of useful routines
1770 for building modern applications, including session management, activation of
1771 files and URIs, and displaying help.")
1772 (license license:lgpl2.0+)))
1773
1774
1775 (define-public libart-lgpl
1776 (package
1777 (name "libart-lgpl")
1778 (version "2.3.21")
1779 (source (origin
1780 (method url-fetch)
1781 (uri (let ((upstream-name "libart_lgpl"))
1782 (string-append "mirror://gnome/sources/" upstream-name "/"
1783 (version-major+minor version) "/"
1784 upstream-name "-" version ".tar.bz2")))
1785 (sha256
1786 (base32
1787 "1yknfkyzgz9s616is0l9gp5aray0f2ry4dw533jgzj8gq5s1xhgx"))))
1788 (build-system gnu-build-system)
1789 (native-inputs
1790 `(("pkg-config" ,pkg-config)))
1791 (home-page "https://people.gnome.org/~mathieu/libart")
1792 (synopsis "2D drawing library")
1793 (description "Libart is a 2D drawing library intended as a
1794 high-quality vector-based 2D library with antialiasing and alpha composition.")
1795 (license license:lgpl2.0+)))
1796
1797
1798
1799 (define-public libgnomecanvas
1800 (package
1801 (name "libgnomecanvas")
1802 (version "2.30.3")
1803 (source (origin
1804 (method url-fetch)
1805 (uri (string-append "mirror://gnome/sources/" name "/"
1806 (version-major+minor version) "/"
1807 name "-" version ".tar.gz"))
1808 (sha256
1809 (base32
1810 "1nhnq4lfkk8ljkdafscwaggx0h95mq0rxnd7zgqyq0xb6kkqbjm8"))))
1811 (build-system gnu-build-system)
1812 ;; Mentioned as Required in the .pc file
1813 (propagated-inputs `(("libart-lgpl" ,libart-lgpl)
1814 ("gtk+" ,gtk+-2)))
1815 (native-inputs
1816 `(("intltool" ,intltool)
1817 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
1818 ("pkg-config" ,pkg-config)))
1819 (home-page "https://developer.gnome.org/libgnomecanvas/")
1820 (synopsis "Flexible widget for creating interactive structured graphics")
1821 (description "The GnomeCanvas widget provides a flexible widget for
1822 creating interactive structured graphics.")
1823 (license license:lgpl2.0+)))
1824
1825 (define-public libgnomecanvasmm
1826 (package
1827 (name "libgnomecanvasmm")
1828 (version "2.26.0")
1829 (source (origin
1830 (method url-fetch)
1831 (uri (string-append "mirror://gnome/sources/" name "/"
1832 (version-major+minor version) "/"
1833 name "-" version ".tar.bz2"))
1834 (sha256
1835 (base32
1836 "0679hcnpam2gkag2i63sm0wdm35gwvzafnz1354mg6j5gzwpfrcr"))))
1837 (build-system gnu-build-system)
1838 (propagated-inputs `(("libgnomecanvas" ,libgnomecanvas)))
1839 (native-inputs
1840 `(("gtkmm-2" ,gtkmm-2)
1841 ("pkg-config" ,pkg-config)))
1842 (home-page "https://gtkmm.org")
1843 (synopsis "C++ bindings to the GNOME Canvas library")
1844 (description "C++ bindings to the GNOME Canvas library.")
1845 (license license:lgpl2.0+)))
1846
1847 (define-public libgnomeui
1848 (package
1849 (name "libgnomeui")
1850 (version "2.24.5")
1851 (source (origin
1852 (method url-fetch)
1853 (uri (string-append "mirror://gnome/sources/" name "/"
1854 (version-major+minor version) "/"
1855 name "-" version ".tar.bz2"))
1856 (patches (search-patches "libgnomeui-utf8.patch"))
1857 (sha256
1858 (base32
1859 "03rwbli76crkjl6gp422wrc9lqpl174k56cp9i96b7l8jlj2yddf"))))
1860 (build-system gnu-build-system)
1861 ;; Mentioned as Required in the .pc file
1862 (propagated-inputs `(("libbonoboui" ,libbonoboui)
1863 ("libgnome" ,libgnome)
1864 ("libgnomecanvas" ,libgnomecanvas)
1865 ("libgnome-keyring" ,libgnome-keyring)))
1866 (inputs `(("libjpeg" ,libjpeg)
1867 ("popt" ,popt)
1868 ("libbonobo" ,libbonobo)
1869 ("libxml2" ,libxml2)
1870 ("libglade" ,libglade)))
1871 (native-inputs
1872 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
1873 ("intltool" ,intltool)
1874 ("pkg-config" ,pkg-config)))
1875 (home-page "https://developer.gnome.org/libgnomeui/")
1876 (synopsis "Additional widgets for applications")
1877 (description "The libgnomeui library provides additional widgets for
1878 applications. Many of the widgets from libgnomeui have already been
1879 ported to GTK+.")
1880 (license license:lgpl2.0+)))
1881
1882 (define-public libglade
1883 (package
1884 (name "libglade")
1885 (version "2.6.4")
1886 (source (origin
1887 (method url-fetch)
1888 (uri (string-append "mirror://gnome/sources/" name "/"
1889 (version-major+minor version) "/"
1890 name "-" version ".tar.bz2"))
1891 (sha256
1892 (base32
1893 "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4"))))
1894 (build-system gnu-build-system)
1895 (inputs
1896 `(("python" ,python))) ;; needed for the optional libglade-convert program
1897 (propagated-inputs
1898 `(("gtk+-2" ,gtk+-2)
1899 ("libxml2" ,libxml2))) ; required by libglade-2.0.pc
1900 (native-inputs
1901 `(("pkg-config" ,pkg-config)))
1902 (home-page "https://developer.gnome.org/libglade")
1903 (synopsis "Load glade interfaces and access the glade built widgets")
1904 (description "Libglade is a library that provides interfaces for loading
1905 graphical interfaces described in glade files and for accessing the
1906 widgets built in the loading process.")
1907 (license license:gpl2+))) ; This is correct. GPL not LGPL
1908
1909 (define-public libgnomeprint
1910 ;; This library has been deprecated since 2006; see
1911 ;; <https://mail.gnome.org/archives/devel-announce-list/2006-August/msg00005.html>.
1912 (package
1913 (name "libgnomeprint")
1914 (version "2.18.8")
1915 (source (origin
1916 (method url-fetch)
1917 (uri (string-append "mirror://gnome/sources/" name "/"
1918 (version-major+minor version) "/"
1919 name "-" version ".tar.bz2"))
1920 (sha256
1921 (base32
1922 "14cnimvlc7ky22g2snyf4362412k3jk1syjf8b9887q5a63fqd0h"))))
1923 (build-system gnu-build-system)
1924 (inputs
1925 `(("popt" ,popt)
1926 ("libart-lgpl" ,libart-lgpl)
1927 ("gtk+" ,gtk+-2)
1928 ("libxml2" ,libxml2)))
1929 (native-inputs
1930 `(("intltool" ,intltool)
1931 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
1932 ("pkg-config" ,pkg-config)))
1933 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
1934 (synopsis "Printing framework for GNOME")
1935 (description
1936 "GNOME-print was a printing framework for GNOME. It has been deprecated
1937 since ca. 2006, when GTK+ itself incorporated printing support.")
1938 (license license:lgpl2.0+)))
1939
1940
1941 (define-public libgnomeprintui
1942 ;; Deprecated; see libgnomeprint.
1943 (package
1944 (name "libgnomeprintui")
1945 (version "2.18.6")
1946 (source (origin
1947 (method url-fetch)
1948 (uri (string-append "mirror://gnome/sources/" name "/"
1949 (version-major+minor version) "/"
1950 name "-" version ".tar.bz2"))
1951 (sha256
1952 (base32
1953 "0spl8vinb5n6n1krnfnr61dwaxidg67h8j94z9p59k2xdsvfashm"))))
1954 (build-system gnu-build-system)
1955 ;; Mentioned as Required in the .pc file
1956 (propagated-inputs `(("libgnomeprint" ,libgnomeprint)))
1957 (inputs `(("gtk+" ,gtk+-2)
1958 ("glib" ,glib)
1959 ("gnome-icon-theme" ,gnome-icon-theme)
1960 ("libgnomecanvas" ,libgnomecanvas)
1961 ("libxml2" ,libxml2)))
1962 (native-inputs
1963 `(("intltool" ,intltool)
1964 ("pkg-config" ,pkg-config)))
1965 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
1966 (synopsis "Printing framework for GNOME")
1967 (description (package-description libgnomeprint))
1968 (license license:lgpl2.0+)))
1969
1970 (define-public libbonoboui
1971 (package
1972 (name "libbonoboui")
1973 (version "2.24.5")
1974 (source (origin
1975 (method url-fetch)
1976 (uri (string-append "mirror://gnome/sources/" name "/"
1977 (version-major+minor version) "/"
1978 name "-" version ".tar.bz2"))
1979 (sha256
1980 (base32
1981 "1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
1982 (build-system gnu-build-system)
1983 (arguments
1984 `(#:phases
1985 (modify-phases %standard-phases
1986 (add-before 'check 'start-xserver
1987 (lambda* (#:key inputs #:allow-other-keys)
1988 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1989 (disp ":1"))
1990
1991 (setenv "HOME" (getcwd))
1992 (setenv "DISPLAY" disp)
1993 ;; There must be a running X server and make check doesn't start one.
1994 ;; Therefore we must do it.
1995 (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))))))
1996 ;; Mentioned as Required by the .pc file
1997 (propagated-inputs `(("libxml2" ,libxml2)))
1998 (inputs
1999 `(("popt" ,popt)
2000 ("pangox-compat" ,pangox-compat)
2001 ("libgnome" ,libgnome)
2002 ("libgnomecanvas" ,libgnomecanvas)
2003 ("libglade" ,libglade)))
2004 (native-inputs
2005 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
2006 ("intltool" ,intltool)
2007 ("xorg-server" ,xorg-server) ; For running the tests
2008 ("pkg-config" ,pkg-config)))
2009 (home-page "https://developer.gnome.org/libbonoboui/")
2010 (synopsis "Some user interface controls using Bonobo")
2011 (description "The Bonobo UI library provides a number of user interface
2012 controls using the Bonobo component framework.")
2013 (license license:lgpl2.0+)))
2014
2015 (define-public libwnck
2016 (package
2017 (name "libwnck")
2018 (version "3.30.0")
2019 (source (origin
2020 (method url-fetch)
2021 (uri (string-append "mirror://gnome/sources/" name "/"
2022 (version-major+minor version) "/"
2023 name "-" version ".tar.xz"))
2024 (sha256
2025 (base32
2026 "0f9lvhm3w25046dqq8xyg7nzggxpmdriwrb661nng05a8qk0svdc"))))
2027 (build-system gnu-build-system)
2028 (native-inputs
2029 `(("pkg-config" ,pkg-config)
2030 ("intltool" ,intltool)))
2031 (propagated-inputs
2032 `(("gtk+" ,gtk+)
2033 ("libxres" ,libxres)
2034 ("startup-notification" ,startup-notification)))
2035 (home-page "https://developer.gnome.org/libwnck/")
2036 (synopsis "Window Navigator Construction Kit")
2037 (description
2038 "Libwnck is the Window Navigator Construction Kit, a library for use in
2039 writing pagers, tasklists, and more generally applications that are dealing
2040 with window management. It tries hard to respect the Extended Window Manager
2041 Hints specification (EWMH).")
2042 (license license:lgpl2.0+)))
2043
2044 ;; stable version for gtk2, required by xfwm4.
2045 (define-public libwnck-2
2046 (package (inherit libwnck)
2047 (name "libwnck")
2048 (version "2.30.7")
2049 (source (origin
2050 (method url-fetch)
2051 (uri (string-append "mirror://gnome/sources/" name "/"
2052 (version-major+minor version) "/"
2053 name "-" version ".tar.xz"))
2054 (sha256
2055 (base32
2056 "15713yl0f8f3p99jzqqfmbicrdswd3vwpx7r3bkf1bgh6d9lvs4b"))))
2057 (propagated-inputs
2058 `(("gtk+" ,gtk+-2)
2059 ("libxres" ,libxres)
2060 ("startup-notification" ,startup-notification)))))
2061
2062 (define-public goffice
2063 (package
2064 (name "goffice")
2065 (version "0.10.44")
2066 (source (origin
2067 (method url-fetch)
2068 (uri (string-append "mirror://gnome/sources/" name "/"
2069 (version-major+minor version) "/"
2070 name "-" version ".tar.xz"))
2071 (sha256
2072 (base32 "1fd7cm6j0g0mqgpqs4y22b4gd2ll4mcyvg4d0q22d5ndjapl4q3d"))))
2073 (build-system gnu-build-system)
2074 (outputs '("out"
2075 "doc")) ;4.0 MiB of gtk-doc
2076 (arguments
2077 '(#:configure-flags (list (string-append "--with-html-dir="
2078 (assoc-ref %outputs "doc")
2079 "/share/gtk-doc/html"))))
2080 (inputs
2081 `(("gtk+" ,gtk+)
2082 ("libgsf" ,libgsf)
2083 ("librsvg" ,librsvg)
2084 ("libxslt" ,libxslt)
2085 ("libxml2" ,libxml2)))
2086 (native-inputs
2087 `(("intltool" ,intltool)
2088 ("glib" ,glib "bin")
2089 ("pkg-config" ,pkg-config)))
2090 (home-page "https://developer.gnome.org/goffice/")
2091 (synopsis "Document-centric objects and utilities")
2092 (description "A GLib/GTK+ set of document-centric objects and utilities.")
2093 (license
2094 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
2095 ;; Note: NOT LGPL
2096 (list license:gpl2 license:gpl3))))
2097
2098 (define-public goffice-0.8
2099 (package (inherit goffice)
2100 (version "0.8.17")
2101 (source (origin
2102 (method url-fetch)
2103 (uri (string-append "mirror://gnome/sources/" (package-name goffice) "/"
2104 (version-major+minor version) "/"
2105 (package-name goffice) "-" version ".tar.xz"))
2106 (sha256
2107 (base32 "05fvzbs5bin05bbsr4dp79aiva3lnq0a3a40zq55i13vnsz70l0n"))))
2108 (arguments
2109 `(#:phases
2110 (modify-phases %standard-phases
2111 (add-after 'unpack 'fix-pcre-check
2112 (lambda _
2113 ;; Only glib.h can be included directly. See
2114 ;; https://bugzilla.gnome.org/show_bug.cgi?id=670316
2115 (substitute* "configure"
2116 (("glib/gregex\\.h") "glib.h")) #t)))
2117
2118 ,@(package-arguments goffice)))
2119 (propagated-inputs
2120 ;; libgoffice-0.8.pc mentions libgsf-1
2121 `(("libgsf" ,libgsf)))
2122 (inputs
2123 `(("gtk" ,gtk+-2)
2124 ,@(alist-delete "gtk" (package-inputs goffice))))))
2125
2126 (define-public gnumeric
2127 (package
2128 (name "gnumeric")
2129 (version "1.12.45")
2130 (source (origin
2131 (method url-fetch)
2132 (uri (string-append "mirror://gnome/sources/gnumeric/"
2133 (version-major+minor version) "/"
2134 "gnumeric-" version ".tar.xz"))
2135 (sha256
2136 (base32
2137 "0c8dl1kvnj3g32qy3s92qpqpqfy0in59cx005gjvvzsflahav61h"))))
2138 (build-system glib-or-gtk-build-system)
2139 (arguments
2140 `(;; The gnumeric developers don't worry much about failing tests.
2141 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
2142 #:tests? #f
2143 #:phases
2144 (modify-phases %standard-phases
2145 (add-before
2146 'configure 'pre-conf
2147 (lambda* (#:key outputs #:allow-other-keys)
2148 ;; Make install tries to write into the directory of goffice
2149 ;; I am informed that this only affects the possibility to embed a
2150 ;; spreadsheet inside an Abiword document. So presumably when we
2151 ;; package Abiword we'll have to refer it to this directory.
2152 (substitute* "configure"
2153 (("^GOFFICE_PLUGINS_DIR=.*")
2154 (string-append "GOFFICE_PLUGINS_DIR="
2155 (assoc-ref outputs "out")
2156 "/goffice/plugins"))))))))
2157 (inputs
2158 `(("glib" ,glib)
2159 ("gtk+" ,gtk+)
2160 ("goffice" ,goffice)
2161 ("libgsf" ,libgsf)
2162 ("librsvg" ,librsvg)
2163 ("libxml2" ,libxml2)
2164 ("libxslt" ,libxslt)
2165 ("python" ,python-2)
2166 ("python2-pygobject" ,python2-pygobject)
2167 ("zlib" ,zlib)))
2168 (native-inputs
2169 `(("bison" ,bison)
2170 ("docbook-xml" ,docbook-xml)
2171 ("intltool" ,intltool)
2172 ("itstool" ,itstool/fixed) ;see <https://bugs.gnu.org/37468>
2173 ("glib:bin" ,glib "bin")
2174 ("pkg-config" ,pkg-config)))
2175 (home-page "http://www.gnumeric.org")
2176 (synopsis "Spreadsheet application")
2177 (description
2178 "GNUmeric is a GNU spreadsheet application, running under GNOME. It is
2179 interoperable with other spreadsheet applications. It has a vast array of
2180 features beyond typical spreadsheet functionality, such as support for linear
2181 and non-linear solvers, statistical analysis, and telecommunication
2182 engineering.")
2183 (license
2184 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
2185 (list license:gpl2 license:gpl3))))
2186
2187 (define-public gnome-themes-standard
2188 (package
2189 (name "gnome-themes-standard")
2190 (version "3.22.3")
2191 (source
2192 (origin
2193 (method url-fetch)
2194 (uri (string-append "mirror://gnome/sources/" name "/"
2195 (version-major+minor version) "/" name "-"
2196 version ".tar.xz"))
2197 (sha256
2198 (base32
2199 "0smmiamrgcgf5sa88bsn8hwmvsyx4gczzs359nwxbkv14b2qgp31"))))
2200 (build-system gnu-build-system)
2201 (arguments
2202 '(#:configure-flags
2203 ;; Don't create 'icon-theme.cache'.
2204 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
2205 (true (string-append coreutils "/bin/true")))
2206 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
2207 (inputs
2208 `(("gtk+" ,gtk+)
2209 ("gtk+-2" ,gtk+-2)
2210 ("librsvg" ,librsvg)
2211 ("libxml2" ,libxml2)
2212 ("glib" ,glib)))
2213 (native-inputs
2214 `(("intltool" ,intltool)
2215 ("glib:bin" ,glib "bin")
2216 ("pkg-config" ,pkg-config)))
2217 (home-page "https://launchpad.net/gnome-themes-standard")
2218 (synopsis "Default GNOME 3 themes")
2219 (description
2220 "The default GNOME 3 themes (Adwaita and some accessibility themes).")
2221 (license license:lgpl2.1+)))
2222
2223 (define-public seahorse
2224 (package
2225 (name "seahorse")
2226 (version "3.30")
2227 (source
2228 (origin
2229 (method url-fetch)
2230 (uri (string-append "mirror://gnome/sources/" name "/"
2231 (version-major+minor version) "/" name "-"
2232 version ".tar.xz"))
2233 (sha256
2234 (base32
2235 "1sbj1czlx1fakm72dwgbn0bwm12j838yaky4mkf6hf8j8afnxmzp"))))
2236 (build-system glib-or-gtk-build-system)
2237 (inputs
2238 `(("gtk+" ,gtk+)
2239 ("gcr" ,gcr)
2240 ("gnupg" ,gnupg)
2241 ("gpgme" ,gpgme)
2242 ("openldap" ,openldap)
2243 ("openssh" ,openssh)
2244 ("libsecret" ,libsecret)
2245 ("libsoup" ,libsoup)))
2246 (native-inputs
2247 `(("intltool" ,intltool)
2248 ("glib:bin" ,glib "bin")
2249 ("itstool" ,itstool)
2250 ("pkg-config" ,pkg-config)
2251 ("xmllint" ,libxml2)))
2252 (home-page "https://launchpad.net/gnome-themes-standard")
2253 (synopsis "Manage encryption keys and passwords in the GNOME keyring")
2254 (description
2255 "Seahorse is a GNOME application for managing encryption keys and
2256 passwords in the GNOME keyring.")
2257 (license license:gpl2+)))
2258
2259 (define-public vala
2260 (package
2261 (name "vala")
2262 (version "0.44.5")
2263 (source (origin
2264 (method url-fetch)
2265 (uri (string-append "mirror://gnome/sources/" name "/"
2266 (version-major+minor version) "/"
2267 name "-" version ".tar.xz"))
2268 (sha256
2269 (base32
2270 "0zy2kfcvhikczfzhk5l7pkw6mvn3d6vw8cv7g08iah85p22q33xv"))))
2271 (build-system gnu-build-system)
2272 (arguments
2273 '(#:phases
2274 (modify-phases %standard-phases
2275 (add-before 'check 'pre-check
2276 (lambda _
2277 (setenv "CC" "gcc")
2278 (substitute* "valadoc/tests/testrunner.sh"
2279 (("export PKG_CONFIG_PATH=" m)
2280 (string-append m "$PKG_CONFIG_PATH:")))
2281 ;; For missing '/etc/machine-id'.
2282 (setenv "DBUS_FATAL_WARNINGS" "0")
2283 #t)))))
2284 (native-inputs
2285 `(("pkg-config" ,pkg-config)
2286 ("flex" ,flex)
2287 ("bison" ,bison)
2288 ("xsltproc" ,libxslt)
2289 ("dbus" ,dbus) ; for dbus tests
2290 ("gobject-introspection" ,gobject-introspection))) ; for gir tests
2291 (inputs
2292 `(("graphviz" ,graphviz)))
2293 (propagated-inputs
2294 `(("glib" ,glib))) ; required by libvala-0.40.pc
2295 (home-page "https://live.gnome.org/Vala/")
2296 (synopsis "Compiler for the GObject type system")
2297 (description
2298 "Vala is a programming language that aims to bring modern programming
2299 language features to GNOME developers without imposing any additional runtime
2300 requirements and without using a different ABI compared to applications and
2301 libraries written in C.")
2302 (license license:lgpl2.1+)))
2303
2304 (define-public vte
2305 (package
2306 (name "vte")
2307 (version "0.56.3")
2308 (source (origin
2309 (method url-fetch)
2310 (uri (string-append "mirror://gnome/sources/" name "/"
2311 (version-major+minor version) "/"
2312 name "-" version ".tar.xz"))
2313 (sha256
2314 (base32
2315 "0j166gic5znssdb9r45qazq4kb4v9fial82czand5wa8i2yd988p"))))
2316 (build-system gnu-build-system)
2317 (native-inputs
2318 `(("pkg-config" ,pkg-config)
2319 ("intltool" ,intltool)
2320 ("vala" ,vala)
2321 ("gobject-introspection" ,gobject-introspection)
2322 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2323 ("gperf" ,gperf)
2324 ("xmllint" ,libxml2)))
2325 (propagated-inputs
2326 `(("gtk+" ,gtk+) ;required by vte-2.91.pc
2327 ("gnutls" ,gnutls) ;ditto
2328 ("pcre2" ,pcre2))) ;ditto
2329 (home-page "https://www.gnome.org/")
2330 (synopsis "Virtual Terminal Emulator")
2331 (description
2332 "VTE is a library (libvte) implementing a terminal emulator widget for
2333 GTK+, and a minimal sample application (vte) using that. Vte is mainly used in
2334 gnome-terminal, but can also be used to embed a console/terminal in games,
2335 editors, IDEs, etc.")
2336 (license license:lgpl2.1+)))
2337
2338 (define-public vte-ng
2339 (package
2340 (inherit vte)
2341 (name "vte-ng")
2342 (version "0.56.2.a")
2343 (home-page "https://github.com/thestinger/vte-ng")
2344 (source (origin
2345 (method git-fetch)
2346 (uri (git-reference (url home-page) (commit version)))
2347 (file-name (git-file-name name version))
2348 (sha256
2349 (base32
2350 "1lmba6i0abifmvvfb1q63ql6zh6d38148kp6skmkggiib2hi5dki"))))
2351 (native-inputs
2352 `(("gtk-doc" ,gtk-doc)
2353 ("gperf" ,gperf)
2354 ("autoconf" ,autoconf)
2355 ("automake" ,automake)
2356 ("libtool" ,libtool)
2357 ,@(package-native-inputs vte)))
2358 (arguments
2359 `(#:phases (modify-phases %standard-phases
2360 (replace 'bootstrap
2361 (lambda _
2362 (setenv "NOCONFIGURE" "true")
2363 (invoke "sh" "autogen.sh"))))))
2364 (synopsis "Enhanced VTE terminal widget")
2365 (description
2366 "VTE is a library (libvte) implementing a terminal emulator widget for
2367 GTK+, this fork provides additional functions exposed for keyboard text
2368 selection and URL hints.")))
2369
2370 ;; provides vte 2.90, required for some terminal emulators
2371 ;; tilda bug: https://github.com/lanoxx/tilda/issues/94
2372 ;; pantheon-terminal bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788021
2373 ;; roxterm bug: http://sourceforge.net/p/roxterm/bugs/107/
2374 ;; pantheon-terminal, roxterm are not currently packaged
2375 (define-public vte-0.36
2376 (package (inherit vte)
2377 (name "vte")
2378 (version "0.36.5")
2379 (source (origin
2380 (method url-fetch)
2381 (uri (string-append "mirror://gnome/sources/" name "/"
2382 (version-major+minor version) "/"
2383 name "-" version ".tar.xz"))
2384 (sha256
2385 (base32
2386 "1psfnqsmxx4qzc55qwvb8jai824ix4pqcdqhgxk0g2zh82bcxhn2"))))
2387 (propagated-inputs
2388 `(("gtk" ,gtk+)
2389 ("ncurses" ,ncurses)))))
2390
2391 ;; stable version for gtk2, required by xfce4-terminal.
2392 (define-public vte/gtk+-2
2393 (package (inherit vte)
2394 (name "vte")
2395 (version "0.28.2")
2396 (source (origin
2397 (method url-fetch)
2398 (uri (string-append "mirror://gnome/sources/" name "/"
2399 (version-major+minor version) "/"
2400 name "-" version ".tar.xz"))
2401 (sha256
2402 (base32
2403 "1bmhahkf8wdsra9whd3k5l5z4rv7r58ksr8mshzajgq2ma0hpkw6"))
2404 (patches (search-patches
2405 "vte-CVE-2012-2738-pt1.patch"
2406 "vte-CVE-2012-2738-pt2.patch"))))
2407 (arguments
2408 '(#:configure-flags '("--disable-python")))
2409 (native-inputs
2410 `(("pkg-config" ,pkg-config)
2411 ("intltool" ,intltool)
2412 ("glib" ,glib "bin"))) ; for glib-genmarshal, etc.
2413 (propagated-inputs
2414 `(("gtk+" ,gtk+-2) ; required by libvte.pc
2415 ("ncurses" ,ncurses))))) ; required by libvte.la
2416
2417 (define-public vinagre
2418 (package
2419 (name "vinagre")
2420 (version "3.22.0")
2421 (source (origin
2422 (method url-fetch)
2423 (uri (string-append "mirror://gnome/sources/" name "/"
2424 (version-major+minor version) "/"
2425 name "-" version ".tar.xz"))
2426 (patches (search-patches "vinagre-newer-freerdp.patch"
2427 "vinagre-newer-rdp-parameters.patch"))
2428 (sha256
2429 (base32
2430 "10jya3jyrm18nbw3v410gbkc7677bqamax44pzgd3j15randn76d"))))
2431 (build-system glib-or-gtk-build-system)
2432 (arguments
2433 ;; Disable -Werror and such, to avoid build failures on compilation
2434 ;; warnings.
2435 '(#:configure-flags '("--enable-compile-warnings=minimum")
2436 #:phases
2437 (modify-phases %standard-phases
2438 (add-before 'install 'skip-gtk-update-icon-cache
2439 (lambda _
2440 ;; Don't create 'icon-theme.cache'
2441 (substitute* (find-files "." "^Makefile$")
2442 (("gtk-update-icon-cache") (which "true")))
2443 #t))
2444 (add-after 'unpack 'patch-configure
2445 (lambda _
2446 (substitute* "configure"
2447 (("freerdp") "freerdp2"))
2448 #t)))))
2449 (native-inputs
2450 `(("pkg-config" ,pkg-config)
2451 ("intltool" ,intltool)
2452 ("itstool" ,itstool)
2453 ("glib-bin" ,glib "bin"))) ;for glib-compile-schemas
2454 (inputs
2455 `(("libxml2" ,libxml2)
2456 ("gtk-vnc" ,gtk-vnc)
2457 ("gnome-keyring" ,gnome-keyring)
2458 ("libsecret" ,libsecret)
2459 ("freerdp" ,freerdp)
2460 ("spice" ,spice)
2461 ("spice-gtk" ,spice-gtk)
2462 ("telepathy-glib" ,telepathy-glib)
2463 ("vte" ,vte)))
2464 (home-page "https://wiki.gnome.org/Apps/Vinagre")
2465 (synopsis "Remote desktop viewer for GNOME")
2466 (description "Vinagre is a remote display client supporting the VNC, SPICE
2467 and RDP protocols.")
2468 (license license:gpl3+)))
2469
2470 (define-public dconf
2471 (package
2472 (name "dconf")
2473 (version "0.32.0")
2474 (source (origin
2475 (method url-fetch)
2476 (uri (string-append
2477 "mirror://gnome/sources/" name "/"
2478 (version-major+minor version) "/"
2479 name "-" version ".tar.xz"))
2480 (sha256
2481 (base32
2482 "1azz4hb9z76yxn34yrrsiib3iqz5z4vpwn5q7cncp55w365ygg38"))))
2483 (build-system meson-build-system)
2484 (propagated-inputs
2485 ;; In Requires of dconf.pc.
2486 `(("glib" ,glib)))
2487 (inputs
2488 `(("gtk+" ,gtk+)
2489 ("dbus" ,dbus)))
2490 (native-inputs
2491 `(("bash-completion" ,bash-completion)
2492 ("libxslt" ,libxslt) ;for xsltproc
2493 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
2494 ("docbook-xml" ,docbook-xml-4.2)
2495 ("docbook-xsl" ,docbook-xsl)
2496 ("glib:bin" ,glib "bin")
2497 ("gtk-doc" ,gtk-doc)
2498 ("pkg-config" ,pkg-config)
2499 ("vala" ,vala)))
2500 (arguments
2501 `(#:tests? #f ; To contact dbus it needs to load /var/lib/dbus/machine-id
2502 ; or /etc/machine-id.
2503 #:glib-or-gtk? #t
2504 #:configure-flags '("-Denable-gtk-doc=true")))
2505 (home-page "https://developer.gnome.org/dconf")
2506 (synopsis "Low-level GNOME configuration system")
2507 (description "Dconf is a low-level configuration system. Its main purpose
2508 is to provide a backend to GSettings on platforms that don't already have
2509 configuration storage systems.")
2510 (license license:lgpl2.1+)))
2511
2512 (define-public json-glib
2513 (package
2514 (name "json-glib")
2515 (version "1.4.4")
2516 (source (origin
2517 (method url-fetch)
2518 (uri (string-append "mirror://gnome/sources/" name "/"
2519 (version-major+minor version) "/"
2520 name "-" version ".tar.xz"))
2521 (sha256
2522 (base32
2523 "0ixwyis47v5bkx6h8a1iqlw3638cxcv57ivxv4gw2gaig51my33j"))))
2524 (build-system meson-build-system)
2525 (native-inputs
2526 `(("gettext" ,gettext-minimal)
2527 ("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
2528 ("gobject-introspection" ,gobject-introspection)
2529 ("pkg-config" ,pkg-config)))
2530 (propagated-inputs
2531 `(("glib" ,glib))) ;according to json-glib-1.0.pc
2532 (home-page "https://wiki.gnome.org/Projects/JsonGlib")
2533 (synopsis "Compiler for the GObject type system")
2534 (description
2535 "JSON-GLib is a C library based on GLib providing serialization and
2536 deserialization support for the JavaScript Object Notation (JSON) format
2537 described by RFC 4627. It provides parser and generator GObject classes and
2538 various wrappers for the complex data types employed by JSON, such as arrays
2539 and objects.")
2540 (license license:lgpl2.1+)))
2541
2542 (define-public libxklavier
2543 (package
2544 (name "libxklavier")
2545 (version "5.4")
2546 (source (origin
2547 ;; Note: There's no tarball at ftp.gnome.org for this version.
2548 (method git-fetch)
2549 (uri (git-reference
2550 (url "https://anongit.freedesktop.org/git/libxklavier")
2551 (commit (string-append "libxklavier-" version))))
2552 (sha256
2553 (base32
2554 "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a"))
2555 (file-name (git-file-name name version))))
2556 (build-system gnu-build-system)
2557 (arguments
2558 '(#:phases
2559 (modify-phases %standard-phases
2560 (add-after 'unpack 'no-configure
2561 (lambda* _
2562 (setenv "NOCONFIGURE" "1")
2563 #t)))
2564 #:configure-flags
2565 (list (string-append "--with-xkb-base="
2566 (assoc-ref %build-inputs "xkeyboard-config")
2567 "/share/X11/xkb")
2568 "--disable-xmodmap-support")))
2569 (native-inputs
2570 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
2571 ("gobject-introspection" ,gobject-introspection)
2572 ("pkg-config" ,pkg-config)
2573 ("gtk-doc" ,gtk-doc)
2574 ("intltool" ,intltool)
2575 ("which" ,which)
2576 ("autoconf" ,autoconf)
2577 ("automake" ,automake)
2578 ("libtool" ,libtool)))
2579 (propagated-inputs
2580 ;; Required by libxklavier.pc.
2581 `(("glib" ,glib)
2582 ("libxml2" ,libxml2)))
2583 (inputs
2584 `(("iso-codes" ,iso-codes)
2585 ("libxi" ,libxi)
2586 ("libxkbfile" ,libxkbfile)
2587 ("xkbcomp" ,xkbcomp)
2588 ("xkeyboard-config" ,xkeyboard-config)))
2589 (home-page "https://www.freedesktop.org/wiki/Software/LibXklavier/")
2590 (synopsis "High-level API for X Keyboard Extension")
2591 (description
2592 "LibXklavier is a library providing high-level API for X Keyboard
2593 Extension known as XKB. This library is intended to support XFree86 and other
2594 commercial X servers. It is useful for creating XKB-related software (layout
2595 indicators etc).")
2596 (license license:lgpl2.0+)))
2597
2598 (define-public python2-rsvg
2599 ;; XXX: This is actually a subset of gnome-python-desktop.
2600 (package
2601 (name "python2-rsvg")
2602 (version "2.32.0")
2603 (source
2604 (origin
2605 (method url-fetch)
2606 (uri (string-append
2607 "mirror://gnome/sources/gnome-python-desktop/2.32/gnome-python-desktop-"
2608 version ".tar.bz2"))
2609 (sha256
2610 (base32
2611 "1s8f9rns9v7qlwjv9qh9lr8crp88dpzfm45hj47zc3ivpy0dbnq9"))))
2612 (build-system gnu-build-system)
2613 (native-inputs
2614 `(("pkg-config" ,pkg-config)))
2615 (inputs
2616 `(("python" ,python-2)
2617 ("python2-pygtk" ,python2-pygtk)
2618 ("librsvg" ,librsvg)))
2619 (home-page "https://www.gnome.org")
2620 (synopsis "Python bindings to librsvg")
2621 (description
2622 "This package provides Python bindings to librsvg, the SVG rendering
2623 library.")
2624
2625 ;; This is the license of the rsvg bindings. The license of each module
2626 ;; of gnome-python-desktop is given in 'COPYING'.
2627 (license license:lgpl2.1+)))
2628
2629 (define-public glib-networking
2630 (package
2631 (name "glib-networking")
2632 (version "2.60.3")
2633 (source (origin
2634 (method url-fetch)
2635 (uri (string-append "mirror://gnome/sources/glib-networking/"
2636 (version-major+minor version) "/"
2637 "glib-networking-" version ".tar.xz"))
2638 (sha256
2639 (base32
2640 "1mfw44qpmwvz6yzj8c6spx6z357wrmkk15byrkc5byagd82860fm"))))
2641 (build-system meson-build-system)
2642 (arguments
2643 `(#:configure-flags '("-Dlibproxy_support=false")))
2644 (native-inputs
2645 `(("pkg-config" ,pkg-config)
2646 ("intltool" ,intltool)))
2647 (inputs
2648 `(("glib" ,glib)
2649 ("gnutls" ,gnutls)
2650 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
2651 (home-page "https://www.gnome.org")
2652 (synopsis "Network-related GIO modules")
2653 (description
2654 "This package contains various network related extensions for the GIO
2655 library.")
2656 (license license:lgpl2.0+)))
2657
2658 (define-public rest
2659 (package
2660 (name "rest")
2661 (version "0.8.1")
2662 (source (origin
2663 (method url-fetch)
2664 (uri (string-append "mirror://gnome/sources/rest/"
2665 (version-major+minor version) "/"
2666 name "-" version ".tar.xz"))
2667 (sha256
2668 (base32
2669 "1j81bgqmd55s5lxyaxcplym9n6xywcs1cm9wmvafsg2xiv9sl4q5"))))
2670 (build-system gnu-build-system)
2671 (arguments
2672 '(#:tests? #f ; tests require internet connection
2673 #:configure-flags
2674 '("--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt")))
2675 (native-inputs
2676 `(("glib-mkenums" ,glib "bin")
2677 ("gobject-introspection" ,gobject-introspection)
2678 ("pkg-config" ,pkg-config)))
2679 (propagated-inputs
2680 ;; rest-0.7.pc refers to all these.
2681 `(("glib" ,glib)
2682 ("libsoup" ,libsoup)
2683 ("libxml2" ,libxml2)))
2684 (home-page "https://www.gtk.org/")
2685 (synopsis "RESTful web api query library")
2686 (description
2687 "This library was designed to make it easier to access web services that
2688 claim to be \"RESTful\". It includes convenience wrappers for libsoup and
2689 libxml to ease remote use of the RESTful API.")
2690 (license license:lgpl2.1+)))
2691
2692 (define-public libsoup
2693 (package
2694 (name "libsoup")
2695 (version "2.68.2")
2696 (source (origin
2697 (method url-fetch)
2698 (uri (string-append "mirror://gnome/sources/libsoup/"
2699 (version-major+minor version) "/"
2700 "libsoup-" version ".tar.xz"))
2701 (sha256
2702 (base32
2703 "0crr9qprmacr626fx83cx81ggk85zsgxr4mn577kpzj6m40k1bai"))))
2704 (build-system meson-build-system)
2705 (outputs '("out" "doc"))
2706 (arguments
2707 `(#:modules ((guix build utils)
2708 (guix build meson-build-system)
2709 (ice-9 popen))
2710
2711 #:configure-flags '("-Dgtk_doc=true")
2712 #:phases
2713 (modify-phases %standard-phases
2714 (add-after 'unpack 'adjust-tests
2715 (lambda _
2716 ;; This test fails due to missing /etc/nsswitch.conf
2717 ;; in the build environment.
2718 (substitute* "tests/socket-test.c"
2719 ((".*/sockets/unconnected.*") ""))
2720
2721 ;; These fail because "subdomain.localhost" does not resolve in
2722 ;; the build environment.
2723 (substitute* "tests/hsts-test.c"
2724 ((".*/hsts/basic.*") "")
2725 ((".*/hsts/subdomains.*") "")
2726 ((".*/hsts/superdomain.*") "")
2727 ((".*/hsts/utf8-address.*") ""))
2728 (substitute* "tests/hsts-db-test.c"
2729 ((".*/hsts-db/subdomains.*") ""))
2730
2731 ;; Generate a self-signed certificate that has "localhost" as its
2732 ;; 'dnsName'. Failing to do that, and starting with GnuTLS
2733 ;; 3.5.12, tests such as "ssl-tests" fail:
2734 ;;
2735 ;; ERROR:ssl-test.c:406:do_tls_interaction_test: Unexpected status 6 Unacceptable TLS certificate (expected 200 OK)
2736 ;;
2737 ;; 'certtool' is interactive so we have to pipe it the answers.
2738 ;; Reported at <https://bugzilla.gnome.org/show_bug.cgi?id=784696>.
2739 (let ((pipe (open-output-pipe "certtool --generate-self-signed \
2740 --load-privkey tests/test-key.pem --outfile tests/test-cert.pem")))
2741 (for-each (lambda (line)
2742 (display line pipe)
2743 (newline pipe))
2744 '("" ;Common name
2745 "" ;UID
2746 "Guix" ;Organizational unit name
2747 "GNU" ;Organization name
2748 "" ;Locality name
2749 "" ;State or province
2750 "" ;Country
2751 "" ;subject's domain component (DC)
2752 "" ;E-mail
2753 "" ;serial number
2754 "-1" ;expiration time
2755 "N" ;belong to authority?
2756 "N" ;web client certificate?
2757 "N" ;IPsec IKE?
2758 "Y" ;web server certificate?
2759 "localhost" ;dnsName of subject
2760 "" ;dnsName of subject (end)
2761 "" ;URI of subject
2762 "127.0.0.1" ;IP address of subject
2763 "" ;signing?
2764 "" ;encryption (RSA)?
2765 "" ;data encryption?
2766 "" ;sign OCSP requests?
2767 "" ;sign code?
2768 "" ;time stamping?
2769 "" ;email protection?
2770 "" ;URI of the CRL distribution point
2771 "y" ;above info OK?
2772 ))
2773 (close-pipe pipe))
2774 #t))
2775 (add-after 'install 'move-doc
2776 (lambda* (#:key outputs #:allow-other-keys)
2777 (let ((out (assoc-ref outputs "out"))
2778 (doc (assoc-ref outputs "doc")))
2779 (mkdir-p (string-append doc "/share"))
2780 (copy-recursively (string-append out "/share/gtk-doc")
2781 (string-append doc "/share/gtk-doc"))
2782 (delete-file-recursively (string-append out "/share/gtk-doc"))
2783 #t))))))
2784 (native-inputs
2785 `(("glib:bin" ,glib "bin") ; for glib-mkenums
2786 ("gobject-introspection" ,gobject-introspection)
2787 ("gtk-doc" ,gtk-doc)
2788 ("intltool" ,intltool)
2789 ("pkg-config" ,pkg-config)
2790 ("python" ,python-wrapper)
2791 ("vala" ,vala)
2792 ;; These are needed for the tests.
2793 ;; FIXME: Add PHP once available.
2794 ("curl" ,curl)
2795 ("gnutls" ,gnutls) ;for 'certtool'
2796 ("httpd" ,httpd)))
2797 (propagated-inputs
2798 ;; libsoup-2.4.pc refers to all these.
2799 `(("brotli" ,google-brotli)
2800 ("glib" ,glib)
2801 ("libpsl" ,libpsl)
2802 ("libxml2" ,libxml2)
2803 ("sqlite" ,sqlite)
2804 ("zlib" ,zlib)))
2805 (inputs
2806 `(("glib-networking" ,glib-networking)
2807 ("mit-krb5" ,mit-krb5)))
2808 (home-page "https://live.gnome.org/LibSoup/")
2809 (synopsis "GLib-based HTTP Library")
2810 (description
2811 "LibSoup is an HTTP client/server library for GNOME. It uses GObjects
2812 and the GLib main loop, to integrate well with GNOME applications.")
2813 (license license:lgpl2.0+)))
2814
2815 (define-public libsecret
2816 (package
2817 (name "libsecret")
2818 (version "0.19.1")
2819 (source (origin
2820 (method url-fetch)
2821 (uri (string-append
2822 "mirror://gnome/sources/libsecret/"
2823 (version-major+minor version) "/"
2824 "libsecret-" version ".tar.xz"))
2825 (sha256
2826 (base32
2827 "0fhflcsr70b1pps2pcvqcbdhip2ny5am9nbm634f4sj5g40y30w5"))))
2828 (build-system gnu-build-system)
2829 (outputs '("out" "doc"))
2830 (arguments
2831 `(#:tests? #f ; FIXME: Testing hangs.
2832 #:configure-flags
2833 (list (string-append "--with-html-dir="
2834 (assoc-ref %outputs "doc")
2835 "/share/gtk-doc/html"))))
2836 (native-inputs
2837 `(("gettext" ,gettext-minimal)
2838 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
2839 ("gobject-introspection" ,gobject-introspection)
2840 ("pkg-config" ,pkg-config)
2841 ("vala" ,vala)
2842 ("xsltproc" ,libxslt)))
2843 ;; These are needed for the tests.
2844 ;; FIXME: Add gjs once available.
2845 ;("dbus" ,dbus)
2846 ;("python2" ,python-2)
2847 ;("python2-dbus" ,python2-dbus)
2848 ;("python2-pygobject" ,python2-pygobject)
2849 ;("python2-pygobject-2" ,python2-pygobject-2)))
2850 (propagated-inputs
2851 `(("glib" ,glib))) ; required by libsecret-1.pc
2852 (inputs
2853 `(("docbook-xsl" ,docbook-xsl)
2854 ("libgcrypt" ,libgcrypt)
2855 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
2856 (home-page "https://wiki.gnome.org/Projects/Libsecret/")
2857 (synopsis "GObject bindings for \"Secret Service\" API")
2858 (description
2859 "Libsecret is a GObject based library for storing and retrieving passwords
2860 and other secrets. It communicates with the \"Secret Service\" using DBus.")
2861 (license license:lgpl2.1+)))
2862
2863 (define-public five-or-more
2864 (package
2865 (name "five-or-more")
2866 (version "3.30.0")
2867 (source
2868 (origin
2869 (method url-fetch)
2870 (uri (string-append "mirror://gnome/sources/" name "/"
2871 (version-major+minor version) "/"
2872 name "-" version ".tar.xz"))
2873 (sha256
2874 (base32
2875 "00d729p251kh96624i7qg2370r5mxwafs016i6hy01vsr71jzb9x"))))
2876 (build-system glib-or-gtk-build-system)
2877 (native-inputs
2878 `(("pkg-config" ,pkg-config)
2879 ("desktop-file-utils" ,desktop-file-utils)
2880 ("intltool" ,intltool)
2881 ("itstool" ,itstool)
2882 ("xmllint" ,libxml2)))
2883 (inputs
2884 `(("gtk+" ,gtk+)
2885 ("librsvg" ,librsvg)))
2886 (home-page "https://wiki.gnome.org/Apps/Five%20or%20more")
2887 (synopsis "Logic puzzle game")
2888 (description "Five or More is a game where you try to align
2889 five or more objects of the same color and shape causing them to disappear.
2890 On every turn more objects will appear, until the board is full.
2891 Try to last as long as possible.")
2892 (license license:gpl2+)))
2893
2894 (define-public gnome-mines
2895 (package
2896 (name "gnome-mines")
2897 (version "3.30.1.1")
2898 (source
2899 (origin
2900 (method url-fetch)
2901 (uri (string-append "mirror://gnome/sources/" name "/"
2902 (version-major+minor version) "/"
2903 name "-" version ".tar.xz"))
2904 (sha256
2905 (base32
2906 "08ddk400sg1g3q26gnm5mgv81vdqyix0yl7pd47p50vkc1w6f33z"))))
2907 (build-system meson-build-system)
2908 (arguments
2909 `(#:phases
2910 (modify-phases %standard-phases
2911 (delete 'bootstrap))))
2912 (native-inputs
2913 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
2914 ("pkg-config" ,pkg-config)
2915 ("desktop-file-utils" ,desktop-file-utils)
2916 ("intltool" ,intltool)
2917 ("itstool" ,itstool)
2918 ("vala" ,vala)
2919 ("yelp" ,yelp)
2920 ("appstream-glib" ,appstream-glib)))
2921 (inputs
2922 `(("gtk+" ,gtk+)
2923 ("libgnome-games-support" ,libgnome-games-support)
2924 ("librsvg" ,librsvg)))
2925 (home-page "https://wiki.gnome.org/Apps/Mines")
2926 (synopsis "Minesweeper game")
2927 (description
2928 "Mines (previously gnomine) is a puzzle game where you locate mines
2929 floating in an ocean using only your brain and a little bit of luck.")
2930 (license license:gpl2+)))
2931
2932 (define-public gnome-sudoku
2933 (package
2934 (name "gnome-sudoku")
2935 (version "3.30.0")
2936 (source
2937 (origin
2938 (method url-fetch)
2939 (uri (string-append "mirror://gnome/sources/" name "/"
2940 (version-major+minor version) "/"
2941 name "-" version ".tar.xz"))
2942 (sha256
2943 (base32
2944 "1xy986s51jnrcqwan2hy4bjdg6797yr9s7gxx2z2q4j4gkx3qa1f"))))
2945 (build-system glib-or-gtk-build-system)
2946 (native-inputs
2947 `(("pkg-config" ,pkg-config)
2948 ("desktop-file-utils" ,desktop-file-utils)
2949 ("intltool" ,intltool)
2950 ("itstool" ,itstool)
2951 ("xmllint" ,libxml2)))
2952 (inputs
2953 `(("gtk+" ,gtk+)
2954 ("json-glib" ,json-glib)
2955 ("libgee" ,libgee)
2956 ("librsvg" ,librsvg)
2957 ("qqwing" ,qqwing)))
2958 (home-page "https://wiki.gnome.org/Apps/Sudoku")
2959 (synopsis "Japanese logic game")
2960 (description
2961 "Sudoku is a Japanese logic game that exploded in popularity in 2005.
2962 GNOME Sudoku is meant to have an interface as simple and unobstrusive as
2963 possible while still providing features that make playing difficult Sudoku
2964 more fun.")
2965 (license license:gpl2+)))
2966
2967 (define-public gnome-terminal
2968 (package
2969 (name "gnome-terminal")
2970 (version "3.30.3")
2971 (source
2972 (origin
2973 (method url-fetch)
2974 (uri (string-append "mirror://gnome/sources/" name "/"
2975 (version-major+minor version) "/"
2976 name "-" version ".tar.xz"))
2977 (sha256
2978 (base32
2979 "0bar8qazk39acsif31h8i408nl82mzdcdg6p7ymak4l9pxyscxf8"))))
2980 (build-system glib-or-gtk-build-system)
2981 (arguments
2982 '(#:configure-flags
2983 (list "--disable-migration" "--disable-search-provider"
2984 "--without-nautilus-extension")
2985 #:phases
2986 (modify-phases %standard-phases
2987 (add-before 'configure 'patch-/bin/true
2988 (lambda _
2989 (substitute* "configure"
2990 (("/bin/true") (which "true"))))))))
2991 (native-inputs
2992 `(("pkg-config" ,pkg-config)
2993 ("desktop-file-utils" ,desktop-file-utils)
2994 ("intltool" ,intltool)
2995 ("itstool" ,itstool)
2996 ("xmllint" ,libxml2)))
2997 (propagated-inputs
2998 `(("dconf" ,dconf)))
2999 (inputs
3000 `(("gtk+" ,gtk+)
3001 ("vte" ,vte)
3002 ("gnutls" ,gnutls)
3003 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3004 ("util-linux" ,util-linux)
3005 ("vala" ,vala)))
3006 (home-page "https://wiki.gnome.org/Apps/Terminal")
3007 (synopsis "Terminal emulator")
3008 (description
3009 "GNOME Terminal is a terminal emulator application for accessing a
3010 UNIX shell environment which can be used to run programs available on
3011 your system.
3012
3013 It supports several profiles, multiple tabs and implements several
3014 keyboard shortcuts.")
3015 (license license:gpl3+)))
3016
3017 (define-public colord
3018 (package
3019 (name "colord")
3020 (version "1.4.3")
3021 (source
3022 (origin
3023 (method url-fetch)
3024 (uri (string-append "https://www.freedesktop.org/software/colord/releases/"
3025 name "-" version ".tar.xz"))
3026 (sha256
3027 (base32
3028 "1xwxahg9mgmapc16xkb4kgmc40zpadrwav33xqmn6cgaw6g6d3ls"))))
3029 (build-system meson-build-system)
3030 (arguments
3031 '(;; FIXME: One test fails:
3032 ;; /colord/icc-store (in lib/colord/colord-self-test-private):
3033 ;; Incorrect content type for /tmp/colord-vkve/already-exists.icc, got
3034 ;; application/x-zerosize
3035 #:tests? #f
3036 #:glib-or-gtk? #t
3037 #:configure-flags (list "-Dlocalstatedir=/var"
3038 ;; No dep on systemd.
3039 "-Dsystemd=false"
3040 ;; Wants to install to global completion dir;
3041 ;; punt.
3042 "-Dbash_completion=false"
3043 ;; colord-gtk not packaged yet.
3044 "-Dsession_example=false"
3045 "-Ddaemon_user=colord"
3046 "-Dsane=true"
3047 ;; Requires spotread
3048 "-Dargyllcms_sensor=false"
3049 ;; TODO: Requires docbook2x
3050 "-Dman=false")
3051 #:phases
3052 (modify-phases %standard-phases
3053 (add-before 'configure 'patch-build-system
3054 (lambda* (#:key outputs #:allow-other-keys)
3055 (substitute* "rules/meson.build"
3056 (("udev.get_pkgconfig_variable\\('udevdir'\\)")
3057 (string-append "'" (assoc-ref outputs "out") "/lib/udev'")))
3058 #t)))))
3059 (native-inputs
3060 `(("pkg-config" ,pkg-config)
3061 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
3062 ("gobject-introspection" ,gobject-introspection)
3063 ("gtk-doc" ,gtk-doc)
3064 ("libtool" ,libtool)
3065 ("intltool" ,intltool)))
3066 (propagated-inputs
3067 ;; colord.pc refers to all these.
3068 `(("glib" ,glib)
3069 ("udev" ,eudev)
3070 ("lcms" ,lcms)))
3071 (inputs
3072 `(("dbus-glib" ,dbus-glib)
3073 ("gusb" ,gusb)
3074 ("libgudev" ,libgudev)
3075 ("libusb" ,libusb)
3076 ("sqlite" ,sqlite)
3077 ("polkit" ,polkit)
3078 ("python" ,python-wrapper)
3079 ("sane-backends" ,sane-backends)))
3080 (home-page "https://www.freedesktop.org/software/colord/")
3081 (synopsis "Color management service")
3082 (description "Colord is a system service that makes it easy to manage,
3083 install and generate color profiles to accurately color manage input and
3084 output devices.")
3085 (license license:gpl2+)))
3086
3087 (define-public geoclue
3088 (package
3089 (name "geoclue")
3090 (version "2.4.8")
3091 (source
3092 (origin
3093 (method url-fetch)
3094 (uri (string-append "https://www.freedesktop.org/software/" name
3095 "/releases/" (version-major+minor version) "/"
3096 name "-" version ".tar.xz"))
3097 (sha256
3098 (base32
3099 "08yg1r7m0n9hwyvcy769qkmkf8lslqwv69cjfffwnc3zm5km25qj"))
3100 (patches (search-patches "geoclue-config.patch"))))
3101 (build-system glib-or-gtk-build-system)
3102 (arguments
3103 '(;; The tests want to run the system bus.
3104 #:tests? #f
3105 #:configure-flags (list ;; Disable bits requiring ModemManager.
3106 "--disable-3g-source"
3107 "--disable-cdma-source"
3108 "--disable-modem-gps-source"
3109 "--with-dbus-service-user=geoclue")
3110 #:phases
3111 (modify-phases %standard-phases
3112 (add-before 'configure 'patch-/bin/true
3113 (lambda _
3114 (substitute* "configure"
3115 (("/bin/true") (which "true")))
3116 #t)))))
3117 (native-inputs
3118 `(("pkg-config" ,pkg-config)
3119 ("gobject-introspection" ,gobject-introspection)
3120 ("intltool" ,intltool)))
3121 (inputs
3122 `(("avahi" ,avahi)
3123 ("glib" ,glib)
3124 ("json-glib" ,json-glib)
3125 ("libsoup" ,libsoup)))
3126 (home-page "https://www.freedesktop.org/wiki/Software/GeoClue/")
3127 (synopsis "Geolocation service")
3128 (description "Geoclue is a D-Bus service that provides location
3129 information. The primary goal of the Geoclue project is to make creating
3130 location-aware applications as simple as possible, while the secondary goal is
3131 to ensure that no application can access location information without explicit
3132 permission from user.")
3133 (license license:gpl2+)))
3134
3135 (define-public geocode-glib
3136 (package
3137 (name "geocode-glib")
3138 (version "3.26.1")
3139 (source (origin
3140 (method url-fetch)
3141 (uri (string-append "mirror://gnome/sources/geocode-glib/"
3142 (version-major+minor version) "/"
3143 "geocode-glib-" version ".tar.xz"))
3144 (sha256
3145 (base32
3146 "076ydfpyc4n5c9dbqmf26i4pilfi5jpw6cjcgrbgrjbndavnmajv"))))
3147 (build-system meson-build-system)
3148 (arguments
3149 `(#:phases
3150 (modify-phases %standard-phases
3151 ;; The tests require a bunch of locales.
3152 (add-before 'check 'set-locales
3153 (lambda* (#:key inputs #:allow-other-keys)
3154 (setenv "GUIX_LOCPATH"
3155 (string-append (assoc-ref inputs "glibc-locales")
3156 "/lib/locale"))
3157 #t)))))
3158 (native-inputs
3159 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3160 ("glibc-locales" ,glibc-locales) ; for tests
3161 ("gettext" ,gettext-minimal)
3162 ("gobject-introspection" ,gobject-introspection)
3163 ("gtk-doc" ,gtk-doc)
3164 ("pkg-config" ,pkg-config)
3165 ("json-glib" ,json-glib)))
3166 (propagated-inputs
3167 ;; geocode-glib-1.0.pc refers to GIO.
3168 `(("glib" ,glib)))
3169 (inputs
3170 `(("libsoup" ,libsoup)))
3171 (home-page "https://github.com/GNOME/geocode-glib/")
3172 (synopsis "Geocoding and reverse-geocoding library")
3173 (description
3174 "geocode-glib is a convenience library for geocoding (finding longitude,
3175 and latitude from an address) and reverse geocoding (finding an address from
3176 coordinates) using the Nominatim service. geocode-glib caches requests for
3177 faster results and to avoid unnecessary server load.")
3178 (license license:lgpl2.0+)))
3179
3180 (define-public upower
3181 (package
3182 (name "upower")
3183 (version "0.99.10")
3184 (source (origin
3185 (method url-fetch)
3186 (uri (string-append "https://gitlab.freedesktop.org/upower/upower/"
3187 "uploads/c438511024b9bc5a904f8775cfc8e4c4/"
3188 "upower-" version ".tar.xz"))
3189 (sha256
3190 (base32
3191 "17d2bclv5fgma2y3g8bsn9pdvspn1zrzismzdnzfivc0f2wm28k4"))
3192 (patches (search-patches "upower-builddir.patch"))))
3193 (build-system glib-or-gtk-build-system)
3194 (arguments
3195 '( ;; The tests want to contact the system bus, which can't be done in the
3196 ;; build environment. The integration test can run, but the last of
3197 ;; the up-self-tests doesn't. Disable tests for now.
3198 #:tests? #f
3199 #:configure-flags (list "--localstatedir=/var"
3200 (string-append "--with-udevrulesdir="
3201 (assoc-ref %outputs "out")
3202 "/lib/udev/rules.d"))))
3203 (native-inputs
3204 `(("gobject-introspection" ,gobject-introspection)
3205 ("pkg-config" ,pkg-config)
3206 ("intltool" ,intltool)
3207 ("python" ,python)
3208
3209 ;; For man pages.
3210 ("libxslt" ,libxslt) ;for 'xsltproc'
3211 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
3212 ("docbook-xsl" ,docbook-xsl)))
3213 (inputs
3214 `(("dbus-glib" ,dbus-glib)
3215 ("libgudev" ,libgudev)
3216 ("libusb" ,libusb)))
3217 (propagated-inputs
3218 ;; In Requires of upower-glib.pc.
3219 `(("glib" ,glib)))
3220 (home-page "https://upower.freedesktop.org/")
3221 (synopsis "System daemon for managing power devices")
3222 (description
3223 "UPower is an abstraction for enumerating power devices,
3224 listening to device events and querying history and statistics. Any
3225 application or service on the system can access the org.freedesktop.UPower
3226 service via the system message bus.")
3227 (license license:gpl2+)))
3228
3229 (define-public libgweather
3230 (package
3231 (name "libgweather")
3232 (version "3.28.3")
3233 (source (origin
3234 (method url-fetch)
3235 (uri (string-append "mirror://gnome/sources/" name "/"
3236 (version-major+minor version) "/"
3237 name "-" version ".tar.xz"))
3238 (sha256
3239 (base32
3240 "1xz60h59zgyk61y2wwzm0xlqav72i668g7v0x7rh9idz240hxls5"))))
3241 (build-system meson-build-system)
3242 (arguments
3243 `(#:tests? #f ; one of two tests requires network access
3244 #:configure-flags
3245 `(,(string-append "-Dzoneinfo_dir="
3246 (assoc-ref %build-inputs "tzdata")
3247 "/share/zoneinfo"))))
3248 (native-inputs
3249 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3250 ("gobject-introspection" ,gobject-introspection)
3251 ("pkg-config" ,pkg-config)
3252 ("vala" ,vala)
3253 ("intltool" ,intltool)))
3254 (propagated-inputs
3255 ;; gweather-3.0.pc refers to GTK+, GDK-Pixbuf, GLib/GObject, libxml, and
3256 ;; libsoup.
3257 `(("gtk+" ,gtk+)
3258 ("gdk-pixbuf" ,gdk-pixbuf)
3259 ("libxml2" ,libxml2)
3260 ("libsoup" ,libsoup)
3261 ("geocode-glib" ,geocode-glib)))
3262 (inputs
3263 `(("tzdata" ,tzdata)))
3264 (home-page "https://wiki.gnome.org/action/show/Projects/LibGWeather")
3265 (synopsis "Location, time zone, and weather library for GNOME")
3266 (description
3267 "libgweather is a library to access weather information from online
3268 services for numerous locations.")
3269 (license license:gpl2+)))
3270
3271 (define-public gnome-settings-daemon
3272 (package
3273 (name "gnome-settings-daemon")
3274 (version "3.30.2")
3275 (source
3276 (origin
3277 (method url-fetch)
3278 (uri (string-append "mirror://gnome/sources/" name "/"
3279 (version-major+minor version) "/"
3280 name "-" version ".tar.xz"))
3281 (sha256
3282 (base32
3283 "0c663csa3gnsr6wm0xfll6aani45snkdj7zjwjfzcwfh8w4a3z12"))))
3284 (build-system meson-build-system)
3285 (arguments
3286 `(#:glib-or-gtk? #t
3287 #:configure-flags
3288 (list (string-append "-Dudev_dir="
3289 (assoc-ref %outputs "out")
3290 "/lib/udev/rules.d/")
3291 ;; Otherwise, the RUNPATH will lack the final path component.
3292 (string-append "-Dc_link_args=-Wl,-rpath="
3293 (assoc-ref %outputs "out")
3294 "/lib/gnome-settings-daemon-3.0"))
3295 ;; Color management test can't reach the colord system service.
3296 #:tests? #f))
3297 (native-inputs
3298 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3299 ("pkg-config" ,pkg-config)
3300 ("intltool" ,intltool)
3301 ("xsltproc" ,libxslt)
3302 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
3303 ("docbook-xml" ,docbook-xml-4.2)
3304 ("docbook-xsl" ,docbook-xsl)))
3305 (inputs
3306 `(("alsa-lib" ,alsa-lib)
3307 ("colord" ,colord)
3308 ("libgudev" ,libgudev)
3309 ("upower" ,upower)
3310 ("polkit" ,polkit)
3311 ("pulseaudio" ,pulseaudio)
3312 ("libcanberra" ,libcanberra)
3313 ("libx11" ,libx11)
3314 ("libxtst" ,libxtst)
3315 ("lcms" ,lcms)
3316 ("libnotify" ,libnotify)
3317 ("geoclue" ,geoclue)
3318 ("geocode-glib" ,geocode-glib)
3319 ("libgweather" ,libgweather)
3320 ("gnome-desktop" ,gnome-desktop)
3321 ("nss" ,nss)
3322 ("cups" ,cups)
3323 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3324 ("libwacom" ,libwacom)
3325 ("librsvg" ,librsvg)
3326 ("xf86-input-wacom" ,xf86-input-wacom)
3327 ("wayland" ,wayland)
3328 ("network-manager" ,network-manager)))
3329 (home-page "https://www.gnome.org")
3330 (synopsis "GNOME settings daemon")
3331 (description
3332 "This package contains the daemon responsible for setting the various
3333 parameters of a GNOME session and the applications that run under it. It
3334 handles settings such keyboard layout, shortcuts, and accessibility, clipboard
3335 settings, themes, mouse settings, and startup of other daemons.")
3336 (license license:gpl2+)))
3337
3338 (define-public totem-pl-parser
3339 (package
3340 (name "totem-pl-parser")
3341 (version "3.26.3")
3342 (source (origin
3343 (method url-fetch)
3344 (uri (string-append "mirror://gnome/sources/totem-pl-parser/"
3345 (version-major+minor version) "/"
3346 "totem-pl-parser-" version ".tar.xz"))
3347 (sha256
3348 (base32
3349 "13a45py2j1r9967zgww8kd24bn2fhycd4m3kzr90sxx9l2w03z8f"))))
3350 (build-system meson-build-system)
3351 (arguments
3352 ;; FIXME: Tests require gvfs.
3353 `(#:tests? #f))
3354 (native-inputs
3355 `(("intltool" ,intltool)
3356 ("glib" ,glib "bin")
3357 ("gobject-introspection" ,gobject-introspection)
3358 ("pkg-config" ,pkg-config)))
3359 (propagated-inputs
3360 `(("glib" ,glib)
3361 ("gmime" ,gmime)
3362 ("libarchive" ,libarchive)
3363 ("libgcrypt" ,libgcrypt)
3364 ("libxml2" ,libxml2)))
3365 (inputs
3366 `(("libsoup" ,libsoup)))
3367 (home-page "https://projects.gnome.org/totem")
3368 (synopsis "Library to parse and save media playlists for GNOME")
3369 (description "Totem-pl-parser is a GObjects-based library to parse and save
3370 playlists in a variety of formats.")
3371 (license license:lgpl2.0+)))
3372
3373 (define-public aisleriot
3374 (package
3375 (name "aisleriot")
3376 (version "3.22.9")
3377 (source (origin
3378 (method url-fetch)
3379 (uri (string-append "mirror://gnome/sources/aisleriot/"
3380 (version-major+minor version) "/"
3381 "aisleriot-" version ".tar.xz"))
3382 (sha256
3383 (base32
3384 "0yzdh9cw5cjjgvfh75bihl968czlgfmpmn1z0fdk88sgvpjgzwji"))))
3385 (build-system glib-or-gtk-build-system)
3386 (arguments
3387 '(#:configure-flags
3388 '("--with-platform=gtk-only"
3389 "--with-card-theme-formats=svg")))
3390 (native-inputs
3391 `(("desktop-file-utils" ,desktop-file-utils)
3392 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
3393 ("intltool" ,intltool)
3394 ("itstool" ,itstool)
3395 ("pkg-config" ,pkg-config)
3396 ("xmllint" ,libxml2)))
3397 (inputs
3398 `(("gtk+" ,gtk+)
3399 ("guile" ,guile-2.2)
3400 ("libcanberra" ,libcanberra)
3401 ("librsvg" ,librsvg)))
3402 (home-page "https://wiki.gnome.org/Apps/Aisleriot")
3403 (synopsis "Solitaire card games")
3404 (description
3405 "Aisleriot (also known as Solitaire or sol) is a collection of card games
3406 which are easy to play with the aid of a mouse.")
3407 (license license:gpl3+)))
3408
3409 (define-public amtk
3410 (package
3411 (name "amtk")
3412 (version "5.0.1")
3413 (source (origin
3414 (method url-fetch)
3415 (uri (string-append "mirror://gnome/sources/amtk/"
3416 (version-major+minor version) "/"
3417 "amtk-" version ".tar.xz"))
3418 (sha256
3419 (base32
3420 "09yy95w1s83c43mh9vha1jbb780yighf5pd2j0ygjmc68sjg871d"))))
3421 (build-system gnu-build-system)
3422 (arguments
3423 '(#:configure-flags '("--enable-gtk-doc")))
3424 (native-inputs
3425 `(("gobject-introspection" ,gobject-introspection)
3426 ("glib:bin" ,glib "bin") ; for glib-mkenums
3427 ("gtk-doc" ,gtk-doc)
3428 ("pkg-config" ,pkg-config)))
3429 (inputs
3430 `(("glib" ,glib)
3431 ("gtk+" ,gtk+)))
3432 (home-page "https://wiki.gnome.org/Projects/Amtk")
3433 (synopsis "Actions, Menus and Toolbars Kit for GTK+ applications")
3434 (description
3435 "Amtk is the acronym for @acronym{Amtk, Actions Menus and Toolbars Kit}.
3436 It is a basic GtkUIManager replacement based on GAction. It is suitable for
3437 both a traditional UI or a modern UI with a GtkHeaderBar.")
3438 (license license:lgpl2.1+)))
3439
3440 (define-public devhelp
3441 (package
3442 (name "devhelp")
3443 (version "3.30.1")
3444 (source (origin
3445 (method url-fetch)
3446 (uri (string-append "mirror://gnome/sources/" name "/"
3447 (version-major+minor version) "/"
3448 name "-" version ".tar.xz"))
3449 (sha256
3450 (base32
3451 "036sddvhs0blqpc2ixmjdl9vxynvkn5jpgn0jxr1fxcm4rh3q07a"))))
3452 (build-system meson-build-system)
3453 (native-inputs
3454 `(("intltool" ,intltool)
3455 ("itstool" ,itstool)
3456 ("gobject-introspection" ,gobject-introspection)
3457 ("glib:bin" ,glib "bin") ; for glib-mkmenus
3458 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
3459 ("pkg-config" ,pkg-config)))
3460 (inputs
3461 `(("amtk" ,amtk)
3462 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3463 ("webkitgtk" ,webkitgtk)))
3464 (home-page "https://wiki.gnome.org/Apps/Devhelp")
3465 (synopsis "API documentation browser for GNOME")
3466 (description
3467 "Devhelp is an API documentation browser for GTK+ and GNOME. It works
3468 natively with GTK-Doc (the API reference system developed for GTK+ and used
3469 throughout GNOME for API documentation).")
3470 (license license:gpl2+)))
3471
3472 (define-public cogl
3473 (package
3474 (name "cogl")
3475 (version "1.22.4")
3476 (source
3477 (origin
3478 (method url-fetch)
3479 (uri (string-append "mirror://gnome/sources/cogl/"
3480 (version-major+minor version) "/"
3481 "cogl-" version ".tar.xz"))
3482 (sha256
3483 (base32 "1q0drs82a8f6glg1v29bb6g2nf15fw0rvdx3d0rgcgfarfaby5sj"))))
3484 ;; NOTE: mutter exports a bundled fork of cogl, so when making changes to
3485 ;; cogl, corresponding changes may be appropriate in mutter as well.
3486 (build-system gnu-build-system)
3487 (native-inputs
3488 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3489 ("gobject-introspection" ,gobject-introspection)
3490 ;;("xorg-server" ,xorg-server) ; for the test suite
3491 ("pkg-config" ,pkg-config)))
3492 (propagated-inputs
3493 `(("glib" ,glib)
3494 ("gdk-pixbuf" ,gdk-pixbuf)
3495 ("libx11" ,libx11)
3496 ("libxext" ,libxext)
3497 ("libxfixes" ,libxfixes)
3498 ("libxdamage" ,libxdamage)
3499 ("libxcomposite" ,libxcomposite)
3500 ("libxrandr" ,libxrandr)))
3501 (inputs
3502 `(("mesa" ,mesa)
3503 ("cairo" ,cairo)
3504 ("pango" ,pango)
3505 ("gstreamer" ,gstreamer)
3506 ("gst-plugins-base" ,gst-plugins-base)
3507 ("wayland" ,wayland)))
3508 (arguments
3509 `(#:configure-flags (list "--enable-cogl-gst"
3510 "--enable-wayland-egl-platform"
3511 "--enable-wayland-egl-server"
3512
3513 ;; Arrange to pass an absolute file name to
3514 ;; dlopen for libGL.so.
3515 (string-append "--with-gl-libname="
3516 (assoc-ref %build-inputs "mesa")
3517 "/lib/libGL.so"))
3518 ;; XXX FIXME: All tests fail, with many warnings printed like this:
3519 ;; _FontTransOpen: Unable to Parse address
3520 ;; ${prefix}/share/fonts/X11/misc/
3521 #:tests? #f
3522 #; #:phases
3523 #;
3524 (modify-phases %standard-phases
3525 (add-before 'check 'start-xorg-server
3526 (lambda* (#:key inputs #:allow-other-keys)
3527 ;; The test suite requires a running X server.
3528 (system (format #f "~a/bin/Xvfb :1 &"
3529 (assoc-ref inputs "xorg-server")))
3530 (setenv "DISPLAY" ":1")
3531 #t)))))
3532 (home-page "http://www.cogl3d.org")
3533 (synopsis "Object oriented GL/GLES Abstraction/Utility Layer")
3534 (description
3535 "Cogl is a small library for using 3D graphics hardware to draw pretty
3536 pictures. The API departs from the flat state machine style of OpenGL and is
3537 designed to make it easy to write orthogonal components that can render
3538 without stepping on each others toes.")
3539 (license (list license:expat ; most of the code
3540 license:bsd-3 ; cogl/cogl-point-in-poly.c
3541 license:sgifreeb2.0 ; cogl-path/tesselator/
3542 license:asl2.0)))) ; examples/android/
3543
3544 (define-public clutter
3545 (package
3546 (name "clutter")
3547 (version "1.26.2")
3548 (source
3549 (origin
3550 (method url-fetch)
3551 (uri (string-append "mirror://gnome/sources/" name "/"
3552 (version-major+minor version) "/"
3553 name "-" version ".tar.xz"))
3554 (sha256
3555 (base32
3556 "0mif1qnrpkgxi43h7pimim6w6zwywa16ixcliw0yjm9hk0a368z7"))))
3557 ;; NOTE: mutter exports a bundled fork of clutter, so when making changes
3558 ;; to clutter, corresponding changes may be appropriate in mutter as well.
3559 (build-system gnu-build-system)
3560 (outputs '("out"
3561 "doc")) ;9 MiB of gtk-doc HTML pages
3562 (native-inputs
3563 `(("glib:bin" ,glib "bin") ; for glib-genmarshal
3564 ("gobject-introspection" ,gobject-introspection)
3565 ("pkg-config" ,pkg-config)
3566 ("xsltproc" ,libxslt)))
3567 (propagated-inputs
3568 `(("cogl" ,cogl)
3569 ("cairo" ,cairo)
3570 ("atk" ,atk)
3571 ("gtk+" ,gtk+)
3572 ("json-glib" ,json-glib)
3573 ("glib" ,glib)
3574 ("libxcomposite" ,libxcomposite)
3575 ("libxdamage" ,libxdamage)
3576 ("libxext" ,libxext)
3577 ("xinput" ,xinput)))
3578 (inputs
3579 `(("libxkbcommon" ,libxkbcommon)
3580 ("udev" ,eudev)))
3581 (arguments
3582 `(#:configure-flags (list "--enable-x11-backend=yes"
3583
3584 ;; This produces share/doc/{clutter,cally}.
3585 (string-append "--with-html-dir="
3586 (assoc-ref %outputs "doc")
3587 "/share/doc"))
3588 ;; XXX FIXME: Get test suite working. It would probably fail in the
3589 ;; same way the cogl tests fail, since clutter is based on cogl.
3590 #:tests? #f))
3591 (home-page "http://www.clutter-project.org")
3592 (synopsis "OpenGL-based interactive canvas library")
3593 (description
3594 "Clutter is an OpenGL-based interactive canvas library, designed for
3595 creating fast, mainly 2D single window applications such as media box UIs,
3596 presentations, kiosk style applications and so on.")
3597 (license license:lgpl2.0+)))
3598
3599 (define-public clutter-gtk
3600 (package
3601 (name "clutter-gtk")
3602 (version "1.8.4")
3603 (source
3604 (origin
3605 (method url-fetch)
3606 (uri (string-append "mirror://gnome/sources/" name "/"
3607 (version-major+minor version) "/"
3608 name "-" version ".tar.xz"))
3609 (sha256
3610 (base32
3611 "01ibniy4ich0fgpam53q252idm7f4fn5xg5qvizcfww90gn9652j"))))
3612 (build-system gnu-build-system)
3613 (native-inputs
3614 `(("pkg-config" ,pkg-config)
3615 ("gobject-introspection" ,gobject-introspection)))
3616 (propagated-inputs
3617 ;; clutter-gtk.pc refers to all these.
3618 `(("clutter" ,clutter)
3619 ("gtk+" ,gtk+)))
3620 (home-page "http://www.clutter-project.org")
3621 (synopsis "OpenGL-based interactive canvas library GTK+ widget")
3622 (description
3623 "Clutter is an OpenGL-based interactive canvas library, designed for
3624 creating fast, mainly 2D single window applications such as media box UIs,
3625 presentations, kiosk style applications and so on.")
3626 (license license:lgpl2.0+)))
3627
3628 (define-public clutter-gst
3629 (package
3630 (name "clutter-gst")
3631 (version "3.0.27")
3632 (source
3633 (origin
3634 (method url-fetch)
3635 (uri (string-append "mirror://gnome/sources/clutter-gst/"
3636 (version-major+minor version) "/"
3637 "clutter-gst-" version ".tar.xz"))
3638 (sha256
3639 (base32 "17czmpl92dzi4h3rn5rishk015yi3jwiw29zv8qan94xcmnbssgy"))))
3640 (build-system gnu-build-system)
3641 (native-inputs
3642 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3643 ("pkg-config" ,pkg-config)
3644 ("gobject-introspection" ,gobject-introspection)))
3645 (inputs
3646 `(("clutter" ,clutter)
3647 ("gstreamer" ,gstreamer)
3648 ("gst-plugins-base" ,gst-plugins-base)))
3649 (home-page "http://www.clutter-project.org")
3650 (synopsis "Integration library for using GStreamer with Clutter")
3651 (description
3652 "Clutter-Gst is an integration library for using GStreamer with Clutter.
3653 It provides a GStreamer sink to upload frames to GL and an actor that
3654 implements the ClutterGstPlayer interface using playbin. Clutter is an
3655 OpenGL-based interactive canvas library.")
3656 (license license:lgpl2.0+)))
3657
3658 (define-public libchamplain
3659 (package
3660 (name "libchamplain")
3661 (version "0.12.16")
3662 (source (origin
3663 (method url-fetch)
3664 (uri (string-append
3665 "mirror://gnome/sources/libchamplain/0.12/libchamplain-"
3666 version ".tar.xz"))
3667 (sha256
3668 (base32
3669 "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja"))))
3670 (build-system gnu-build-system)
3671 (arguments '(#:configure-flags '("--enable-vala")))
3672 (native-inputs
3673 `(("gobject-introspection" ,gobject-introspection)
3674 ("pkg-config" ,pkg-config)
3675 ("vala" ,vala)))
3676 (propagated-inputs
3677 `(("libsoup" ,libsoup)
3678 ("sqlite" ,sqlite)
3679 ("clutter" ,clutter)
3680 ("clutter-gtk" ,clutter-gtk)
3681 ("glib:bin" ,glib "bin") ;glib-mkenums, etc.
3682 ("cairo" ,cairo)
3683 ("gtk+3" ,gtk+)
3684 ("glib" ,glib)))
3685 (home-page "https://projects.gnome.org/libchamplain/")
3686 (synopsis "C library providing a ClutterActor to display maps")
3687 (description
3688 "libchamplain is a C library providing a ClutterActor to display maps.
3689 It also provides a Gtk+ widget to display maps in Gtk+ applications. Python
3690 and Perl bindings are also available. It supports numerous free map sources
3691 such as OpenStreetMap, OpenCycleMap, OpenAerialMap, and Maps for free.")
3692 (license license:lgpl2.1+)))
3693
3694 (define-public gom
3695 (package
3696 (name "gom")
3697 (version "0.3.2")
3698 (source
3699 (origin
3700 (method url-fetch)
3701 (uri (string-append "mirror://gnome/sources/gom/"
3702 (version-major+minor version) "/"
3703 "gom-" version ".tar.xz"))
3704 (sha256
3705 (base32
3706 "1zaqqwwkyiswib3v1v8wafpbifpbpak0nn2kp13pizzn9bwz1s5w"))))
3707 (build-system gnu-build-system)
3708 (native-inputs
3709 `(("intltool" ,intltool)
3710 ("pkg-config" ,pkg-config)
3711 ("gobject-introspection" ,gobject-introspection)))
3712 (inputs
3713 `(("glib" ,glib)
3714 ("gdk-pixbuf" ,gdk-pixbuf)
3715 ("sqlite" ,sqlite)))
3716 ;; XXX TODO: Figure out how to run the test suite.
3717 (arguments `(#:tests? #f))
3718 (home-page "https://wiki.gnome.org/Projects/Gom")
3719 (synopsis "Object mapper from GObjects to SQLite")
3720 (description
3721 "Gom provides an object mapper from GObjects to SQLite. It helps you
3722 write applications that need to store structured data as well as make complex
3723 queries upon that data.")
3724 (license license:lgpl2.1+)))
3725
3726 (define-public libgnome-games-support
3727 (package
3728 (name "libgnome-games-support")
3729 (version "1.4.4")
3730 (source (origin
3731 (method url-fetch)
3732 (uri (string-append "mirror://gnome/sources/libgnome-games-support/"
3733 (version-major+minor version) "/"
3734 "libgnome-games-support-" version ".tar.xz"))
3735 (sha256
3736 (base32
3737 "1zkbmnrn161p74qg6jhsn9f66yjjzxfm13pl1klv9av8k1bax9pq"))))
3738 (build-system gnu-build-system)
3739 (arguments
3740 '(#:phases
3741 (modify-phases %standard-phases
3742 (add-before 'check 'pre-check
3743 (lambda _
3744 ;; Tests require a writable HOME.
3745 (setenv "HOME" (getcwd))
3746 #t)))))
3747 (native-inputs
3748 `(("intltool" ,intltool)
3749 ("pkg-config" ,pkg-config)
3750 ("vala" ,vala)))
3751 (propagated-inputs
3752 ;; Required by libgnome-games-support-1.0.pc
3753 `(("gtk+" ,gtk+)
3754 ("libgee" ,libgee)))
3755 (home-page "https://www.gnome.org/")
3756 (synopsis "Useful functionality shared among GNOME games")
3757 (description
3758 "libgnome-games-support is a small library intended for internal use by
3759 GNOME Games, but it may be used by others.")
3760 (license license:lgpl3+)))
3761
3762 (define-public gnome-klotski
3763 (package
3764 (name "gnome-klotski")
3765 (version "3.22.3")
3766 (source (origin
3767 (method url-fetch)
3768 (uri (string-append "mirror://gnome/sources/" name "/"
3769 (version-major+minor version) "/"
3770 name "-" version ".tar.xz"))
3771 (sha256
3772 (base32
3773 "0prc0s28pdflgzyvk1g0yfx982q2grivmz3858nwpqmbkha81r7f"))))
3774 (build-system glib-or-gtk-build-system)
3775 (native-inputs
3776 `(("desktop-file-utils" ,desktop-file-utils)
3777 ("intltool" ,intltool)
3778 ("itstool" ,itstool)
3779 ("pkg-config" ,pkg-config)
3780 ("xmllint" ,libxml2)))
3781 (inputs
3782 `(("gtk+" ,gtk+)
3783 ("libgnome-games-support" ,libgnome-games-support)
3784 ("librsvg" ,librsvg)))
3785 (home-page "https://wiki.gnome.org/Apps/Klotski")
3786 (synopsis "Sliding block puzzles")
3787 (description
3788 "GNOME Klotski is a set of block sliding puzzles. The objective is to move
3789 the patterned block to the area bordered by green markers. To do so, you will
3790 need to slide other blocks out of the way. Complete each puzzle in as few moves
3791 as possible!")
3792 (license license:gpl2+)))
3793
3794 (define-public grilo
3795 (package
3796 (name "grilo")
3797 (version "0.3.3")
3798 (source
3799 (origin
3800 (method url-fetch)
3801 (uri (string-append "mirror://gnome/sources/" name "/"
3802 (version-major+minor version) "/"
3803 name "-" version ".tar.xz"))
3804 (sha256
3805 (base32
3806 "1qx072m0gl6m3d5g5cbbf13p4h217icmlxjnrn829x5xqwi451sw"))))
3807 (build-system gnu-build-system)
3808 (native-inputs
3809 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
3810 ("intltool" ,intltool)
3811 ("pkg-config" ,pkg-config)
3812 ("gobject-introspection" ,gobject-introspection)))
3813 (inputs
3814 `(("cyrus-sasl" ,cyrus-sasl)
3815 ("glib" ,glib)
3816 ("gtk+" ,gtk+)
3817 ("libxml2" ,libxml2)
3818 ("liboauth" ,liboauth)
3819 ("libsoup" ,libsoup)
3820 ("totem-pl-parser" ,totem-pl-parser)))
3821 (arguments
3822 `(#:phases
3823 (modify-phases %standard-phases
3824 (add-after 'unpack 'fix-introspection-install-dir
3825 (lambda* (#:key outputs #:allow-other-keys)
3826 (let ((out (assoc-ref outputs "out")))
3827 (substitute* '("src/Makefile.in"
3828 "libs/pls/Makefile.in"
3829 "libs/net/Makefile.in")
3830 (("@INTROSPECTION_GIRDIR@")
3831 (string-append out "/share/gir-1.0/"))
3832 (("@INTROSPECTION_TYPELIBDIR@")
3833 (string-append out "/lib/girepository-1.0/")))
3834 #t))))))
3835 (native-search-paths
3836 (list (search-path-specification
3837 (variable "GRL_PLUGIN_PATH")
3838 (files (list (string-append "lib/grilo-"
3839 (version-major+minor version)))))))
3840 (home-page "https://live.gnome.org/Grilo")
3841 (synopsis "Framework for discovering and browsing media")
3842 (description
3843 "Grilo is a framework focused on making media discovery and browsing easy
3844 for application developers.")
3845 (license license:lgpl2.1+)))
3846
3847 (define-public grilo-plugins
3848 (package
3849 (name "grilo-plugins")
3850 (version "0.3.3")
3851 (source
3852 (origin
3853 (method url-fetch)
3854 (uri (string-append "mirror://gnome/sources/" name "/"
3855 (version-major+minor version) "/"
3856 name "-" version ".tar.xz"))
3857 (sha256
3858 (base32
3859 "172vr1y98d2mzlmg5akjn4ibrcj3gh22cwnb3cv9rvvzhj3yhrpy"))))
3860 (build-system gnu-build-system)
3861 (native-inputs
3862 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
3863 ("intltool" ,intltool)
3864 ("itstool" ,itstool)
3865 ("pkg-config" ,pkg-config)))
3866 (inputs
3867 `(("grilo" ,grilo)
3868 ("glib" ,glib)
3869 ("libxml2" ,libxml2)
3870 ("sqlite" ,sqlite)
3871 ("gom" ,gom)
3872 ;; XXX TODO: Add oauth
3873 ;; XXX TODO: Add goa
3874 ;; XXX TODO: Add gdata (e.g. needed for youtube plugin)
3875 ;; XXX TODO: Add lua (needs help finding it)
3876 ("json-glib" ,json-glib)
3877 ("avahi" ,avahi)
3878 ("gmime" ,gmime)
3879 ("libsoup" ,libsoup)
3880 ("libarchive" ,libarchive)
3881 ("totem-pl-parser" ,totem-pl-parser)))
3882 (arguments
3883 `(#:make-flags (list (string-append "GRL_PLUGINS_DIR="
3884 %output
3885 "/lib/grilo-"
3886 ,(version-major+minor version)))
3887 ;; XXX FIXME: Try to get the test suite working. It appears to require
3888 ;; a working system dbus. Inside the build container, all tests fail
3889 ;; with: "assertion failed: (source)". Outside of the build container,
3890 ;; most tests succeed.
3891 #:tests? #f))
3892 (home-page "https://live.gnome.org/Grilo")
3893 (synopsis "Plugins for the Grilo media discovery library")
3894 (description
3895 "Grilo is a framework focused on making media discovery and browsing easy
3896 for application developers.")
3897 (license license:lgpl2.1+)))
3898
3899 (define-public totem
3900 (package
3901 (name "totem")
3902 (version "3.30.0")
3903 (source
3904 (origin
3905 (method url-fetch)
3906 (uri (string-append "mirror://gnome/sources/" name "/"
3907 (version-major+minor version) "/"
3908 name "-" version ".tar.xz"))
3909 (sha256
3910 (base32
3911 "0rahkybxbmxhlmrrgrzxny1xm7wycx7ib4blxp1i2l1q3i8s84b0"))
3912 (patches (search-patches "totem-meson-easy-codec.patch"
3913 "totem-meson-compat.patch"))))
3914 (build-system meson-build-system)
3915 (native-inputs
3916 `(("pkg-config" ,pkg-config)
3917 ("desktop-file-utils" ,desktop-file-utils)
3918 ("gobject-introspection" ,gobject-introspection)
3919 ("glib:bin" ,glib "bin") ;for 'glib-mkenums'
3920 ("gtk:bin" ,gtk+ "bin") ;for 'gtk-update-icon-cache'
3921 ("intltool" ,intltool)
3922 ("itstool" ,itstool)
3923 ("xmllint" ,libxml2)))
3924 (propagated-inputs
3925 `(("dconf" ,dconf)))
3926 (inputs
3927 `(("gtk+" ,gtk+)
3928 ("gdk-pixbuf" ,gdk-pixbuf)
3929 ("atk" ,atk)
3930 ("cairo" ,cairo)
3931 ("dbus-glib" ,dbus-glib)
3932 ("clutter" ,clutter)
3933 ("clutter-gtk" ,clutter-gtk)
3934 ("clutter-gst" ,clutter-gst)
3935 ("xorgproto" ,xorgproto)
3936 ("libxxf86vm" ,libxxf86vm)
3937 ("libxtst" ,libxtst)
3938 ("libxrandr" ,libxrandr)
3939 ("libxml2" ,libxml2)
3940 ("libsoup" ,libsoup)
3941 ("libpeas" ,libpeas)
3942 ("librsvg" ,librsvg)
3943 ("lirc" ,lirc)
3944 ("gnome-desktop" ,gnome-desktop)
3945 ("gstreamer" ,gstreamer)
3946 ("gst-plugins-base" ,gst-plugins-base)
3947 ("gst-plugins-good" ,gst-plugins-good)
3948 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3949 ("adwaita-icon-theme" ,adwaita-icon-theme)
3950 ("python" ,python)
3951 ("python-pygobject" ,python2-pygobject)
3952 ;; XXX TODO pylint needed for python support
3953 ("totem-pl-parser" ,totem-pl-parser)
3954 ("grilo" ,grilo)
3955 ("grilo-plugins" ,grilo-plugins)
3956 ("vala" ,vala)))
3957 (arguments
3958 `(#:glib-or-gtk? #t
3959
3960 ;; Disable parallel builds until
3961 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28813 is
3962 ;; fixed. Try enabling it when updating this package in case
3963 ;; upstream has fixed it.
3964 #:parallel-build? #f
3965
3966 ;; Disable automatic GStreamer plugin installation via PackageKit and
3967 ;; all that.
3968 #:configure-flags '("-D" "enable-easy-codec-installation=no"
3969
3970 ;; Do not build .a files for the plugins, it's
3971 ;; completely useless. This saves 2 MiB.
3972 "--default-library" "shared")
3973
3974 #:phases
3975 (modify-phases %standard-phases
3976 (add-before
3977 'install 'disable-cache-generation
3978 (lambda _
3979 (setenv "DESTDIR" "/")
3980 #t))
3981 (add-after
3982 'install 'wrap-totem
3983 (lambda* (#:key inputs outputs #:allow-other-keys)
3984 (let ((out (assoc-ref outputs "out"))
3985 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
3986 (grl-plugin-path (getenv "GRL_PLUGIN_PATH")))
3987 (wrap-program (string-append out "/bin/totem")
3988 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
3989 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path)))
3990 (wrap-program (string-append out "/bin/totem-video-thumbnailer")
3991 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
3992 #t)))))
3993 (home-page "https://wiki.gnome.org/Apps/Videos")
3994 (synopsis "Simple media player for GNOME based on GStreamer")
3995 (description "Totem is a simple yet featureful media player for GNOME
3996 which can read a large number of file formats.")
3997 ;; GPL2+ with an exception clause for non-GPL compatible GStreamer plugins
3998 ;; to be used and distributed together with GStreamer and Totem. See
3999 ;; file://COPYING in the source distribution for details.
4000 (license license:gpl2+)))
4001
4002 (define-public rhythmbox
4003 (package
4004 (name "rhythmbox")
4005 (version "3.4.3")
4006 (source (origin
4007 (method url-fetch)
4008 (uri (string-append "mirror://gnome/sources/" name "/"
4009 (version-major+minor version) "/"
4010 name "-" version ".tar.xz"))
4011 (sha256
4012 (base32
4013 "1yx3n7p9vmv23jsv98fxwq95n78awdxqm8idhyhxx2d6vk4w1hgx"))))
4014 (build-system glib-or-gtk-build-system)
4015 (arguments
4016 `(#:configure-flags
4017 (list "--enable-lirc"
4018 "--enable-python"
4019 "--enable-vala"
4020 "--with-brasero"
4021 "--with-gudev"
4022 "--with-libsecret")
4023 #:phases
4024 (modify-phases %standard-phases
4025 (add-after
4026 'install 'wrap-rhythmbox
4027 (lambda* (#:key inputs outputs #:allow-other-keys)
4028 (let ((out (assoc-ref outputs "out"))
4029 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
4030 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
4031 (grl-plugin-path (getenv "GRL_PLUGIN_PATH"))
4032 (python-path (getenv "PYTHONPATH")))
4033 (wrap-program (string-append out "/bin/rhythmbox")
4034 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
4035 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
4036 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path))
4037 `("PYTHONPATH" ":" prefix (,python-path))))
4038 #t)))))
4039 (propagated-inputs
4040 `(("dconf" ,dconf)))
4041 (native-inputs
4042 `(("itstool" ,itstool)
4043 ("intltool" ,intltool)
4044 ("glib" ,glib "bin")
4045 ("gobject-introspection" ,gobject-introspection)
4046 ("desktop-file-utils" ,desktop-file-utils)
4047 ("pkg-config" ,pkg-config)
4048 ("xmllint" ,libxml2)))
4049 (inputs
4050 `(("json-glib" ,json-glib)
4051 ("tdb" ,tdb)
4052 ("gnome-desktop" ,gnome-desktop)
4053 ("python" ,python)
4054 ("python-pygobject" ,python2-pygobject)
4055 ("vala" ,vala)
4056 ("gmime" ,gmime)
4057 ("adwaita-icon-theme" ,adwaita-icon-theme)
4058 ("grilo" ,grilo)
4059 ("grilo-plugins" ,grilo-plugins)
4060 ("gstreamer" ,gstreamer)
4061 ("gst-plugins-base" ,gst-plugins-base)
4062 ("gst-plugins-good" ,gst-plugins-good)
4063 ("totem-pl-parser" ,totem-pl-parser)
4064 ("libgudev" ,libgudev)
4065 ;;("libmtp" ,libmtp) FIXME: Not detected
4066 ("libsecret" ,libsecret)
4067 ("libsoup" ,libsoup)
4068 ("libnotify" ,libnotify)
4069 ("libpeas" ,libpeas)
4070 ("lirc" ,lirc)
4071 ;; TODO: clutter* only used by visualizer plugin, which also requires mx
4072 ;;("clutter" ,clutter)
4073 ;;("clutter-gtk" ,clutter-gtk)
4074 ;;("clutter-gst" ,clutter-gst)
4075 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4076 ("atk" ,atk)
4077 ("pango" ,pango)
4078 ("gtk+" ,gtk+)
4079 ;; TODO:
4080 ;; * libgpod
4081 ;; * mx
4082 ("brasero" ,brasero)))
4083 (home-page "https://wiki.gnome.org/Apps/Rhythmbox")
4084 (synopsis "Music player for GNOME")
4085 (description "Rhythmbox is a music playing application for GNOME. It
4086 supports playlists, song ratings, and any codecs installed through gstreamer.")
4087 (license license:gpl2+)))
4088
4089 (define-public eog
4090 (package
4091 (name "eog")
4092 (version "3.28.4")
4093 (source (origin
4094 (method url-fetch)
4095 (uri (string-append "mirror://gnome/sources/" name "/"
4096 (version-major+minor version) "/"
4097 name "-" version ".tar.xz"))
4098 (sha256
4099 (base32
4100 "1wrq3l3z0x6q0hnc1vqr2hnyb1b14qw6aqvc5dldfgbs0yys6p55"))))
4101 (build-system meson-build-system)
4102 (arguments
4103 `(#:configure-flags
4104 ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
4105 (list (string-append "-Dc_link_args=-Wl,-rpath="
4106 (assoc-ref %outputs "out") "/lib/eog"))
4107 #:phases
4108 (modify-phases %standard-phases
4109 (add-after 'install 'wrap-eog
4110 (lambda* (#:key outputs #:allow-other-keys)
4111 (let ((out (assoc-ref outputs "out"))
4112 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
4113 (wrap-program (string-append out "/bin/eog")
4114 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
4115 #t)))))
4116 (propagated-inputs
4117 `(("dconf" ,dconf)))
4118 (native-inputs
4119 `(("intltool" ,intltool)
4120 ("itstool" ,itstool)
4121 ("glib" ,glib "bin")
4122 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
4123 ("gobject-introspection" ,gobject-introspection)
4124 ("pkg-config" ,pkg-config)
4125 ("xmllint" ,libxml2)))
4126 (inputs
4127 `(("gnome-desktop" ,gnome-desktop)
4128 ("shared-mime-info" ,shared-mime-info)
4129 ("adwaita-icon-theme" ,adwaita-icon-theme)
4130 ("exempi" ,exempi)
4131 ("lcms" ,lcms)
4132 ("libexif" ,libexif)
4133 ("libpeas" ,libpeas)
4134 ("libjpeg" ,libjpeg)
4135 ("librsvg" ,librsvg)
4136 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4137 ("gtk+" ,gtk+)))
4138 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
4139 (synopsis "GNOME image viewer")
4140 (description "Eye of GNOME is the GNOME image viewer. It
4141 supports image conversion, rotation, and slideshows.")
4142 (license license:gpl2+)))
4143
4144 (define-public eog-plugins
4145 ;; Note: EOG looks for its plugins (via libpeas) in ~/.local as well as
4146 ;; $DATA/lib/eog/plugins, where DATA is one of the entries in
4147 ;; $XDG_DATA_DIRS. Thus, for EOG to find these, you have to have
4148 ;; 'XDG_DATA_DIRS' appropriately set.
4149 (package
4150 (name "eog-plugins")
4151 (version "3.26.4")
4152 (source (origin
4153 (method url-fetch)
4154 (uri (string-append "mirror://gnome/sources/eog-plugins/"
4155 (version-major+minor version) "/"
4156 "eog-plugins-" version ".tar.xz"))
4157 (sha256
4158 (base32
4159 "0pd7fqa4ciy5844k5s1c6rlsqkk8pxd8cchxjcjhxlsngm9lynnx"))))
4160 (build-system gnu-build-system)
4161 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome/Plugins")
4162 (synopsis "Extensions for the Eye of GNOME image viewer")
4163 (native-inputs
4164 `(("pkg-config" ,pkg-config)
4165 ("gettext" ,gnu-gettext)))
4166 (inputs
4167 `(("eog" ,eog)
4168 ("glib" ,glib)
4169 ("gtk+" ,gtk+)
4170 ("libpeas" ,libpeas)
4171 ("libexif" ,libexif)
4172 ("libchamplain" ,libchamplain)))
4173 (description
4174 "This package provides plugins for the Eye of GNOME (EOG) image viewer,
4175 notably:
4176
4177 @itemize
4178 @item @dfn{EXIF Display}, which displays camera (EXIF) information;
4179 @item @dfn{Map}, which displays a map of where the picture was taken on the
4180 side panel;
4181 @item @dfn{Slideshow Shuffle}, to shuffle images in slideshow mode.
4182 @end itemize\n")
4183
4184 ;; XXX: eog-postasa-plugin-resources.c (which we don't build) contains a
4185 ;; long suspicious byte stream that goes to a
4186 ;; ".gresource.eog_postasa_plugin" ELF section.
4187 (license license:gpl2+)))
4188
4189 (define-public libgudev
4190 (package
4191 (name "libgudev")
4192 (version "232")
4193 (source (origin
4194 (method url-fetch)
4195 (uri (string-append "mirror://gnome/sources/" name "/"
4196 version "/" name "-" version ".tar.xz"))
4197 (sha256
4198 (base32
4199 "0q3qki451zzgdjazlgshsfzbbm0in40lyx7dyrag7kbkqnwv4k7f"))))
4200 (build-system gnu-build-system)
4201 (arguments
4202 '(#:configure-flags
4203 ;; umockdev depends on libgudev.
4204 (list "--disable-umockdev")))
4205 (native-inputs
4206 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
4207 ("gobject-introspection" ,gobject-introspection)
4208 ("pkg-config" ,pkg-config)))
4209 (propagated-inputs
4210 `(("glib" ,glib))) ; required by gudev-1.0.pc
4211 (inputs
4212 `(("udev" ,eudev)))
4213 (home-page "https://wiki.gnome.org/Projects/libgudev")
4214 (synopsis "GObject bindings for libudev")
4215 (description
4216 "This library provides GObject bindings for libudev. It was originally
4217 part of udev-extras, then udev, then systemd. It's now a project on its own.")
4218 (license license:lgpl2.1+)))
4219
4220 (define-public gvfs
4221 (package
4222 (name "gvfs")
4223 (version "1.40.1")
4224 (source (origin
4225 (method url-fetch)
4226 (uri (string-append "mirror://gnome/sources/gvfs/"
4227 (version-major+minor version) "/"
4228 "gvfs-" version ".tar.xz"))
4229 (sha256
4230 (base32
4231 "1cfnzamr4mvgpf6yhm28lh9cafy9z6842s8jpbqnfizfxybg8ylj"))))
4232 (build-system meson-build-system)
4233 (arguments
4234 '(#:glib-or-gtk? #t
4235 #:configure-flags
4236 (list "-Dsystemduserunitdir=no"
4237 "-Dtmpfilesdir=no"
4238 ;; Otherwise, the RUNPATH will lack the final path component.
4239 (string-append "-Dc_link_args=-Wl,-rpath="
4240 (assoc-ref %outputs "out") "/lib/gvfs"))))
4241 (native-inputs
4242 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
4243 ("gettext" ,gettext-minimal)
4244 ("gtk-doc" ,gtk-doc)
4245 ("pkg-config" ,pkg-config)
4246 ("xsltproc" ,libxslt)))
4247 (inputs
4248 `(("avahi" ,avahi)
4249 ("docbook-xml" ,docbook-xml-4.2)
4250 ("docbook-xsl" ,docbook-xsl)
4251 ("dbus" ,dbus)
4252 ("elogind" ,elogind)
4253 ("fuse" ,fuse)
4254 ("gcr" ,gcr)
4255 ("glib" ,glib)
4256 ("gnome-online-accounts" ,gnome-online-accounts)
4257 ("libarchive" ,libarchive)
4258 ("libbluray" ,libbluray)
4259 ("libcap" ,libcap)
4260 ("libcdio-paranoia" ,libcdio-paranoia)
4261 ("libgcrypt" ,libgcrypt)
4262 ("libgdata" ,libgdata)
4263 ("libgphoto2" ,libgphoto2)
4264 ("libgudev" ,libgudev)
4265 ("libimobiledevice" ,libimobiledevice)
4266 ("libmtp" ,libmtp)
4267 ("libnfs" ,libnfs)
4268 ("libsecret" ,libsecret)
4269 ("libsmbclient" ,samba)
4270 ("libsoup" ,libsoup)
4271 ("libxml2" ,libxml2)
4272 ("openssh" ,openssh)
4273 ("polkit" ,polkit)
4274 ("udisks" ,udisks)))
4275 (home-page "https://wiki.gnome.org/gvfs/")
4276 (synopsis "Userspace virtual file system for GIO")
4277 (description
4278 "GVFS is a userspace virtual file system designed to work with the I/O
4279 abstraction of GIO. It contains a GIO module that seamlessly adds GVFS support
4280 to all applications using the GIO API. It also supports exposing the GVFS
4281 mounts to non-GIO applications using FUSE.
4282
4283 GVFS comes with a set of backends, including trash support, SFTP, SMB, HTTP,
4284 DAV, and others.")
4285 (license license:lgpl2.0+)))
4286
4287 (define-public gusb
4288 (package
4289 (name "gusb")
4290 (version "0.3.0")
4291 (source (origin
4292 (method url-fetch)
4293 (uri (string-append "https://github.com/hughsie/libgusb/archive/"
4294 version ".tar.gz"))
4295 (sha256
4296 (base32
4297 "1wa9787ww7s1kl9jml6kiyrjgimlgagq4jmgdj7xcpsx83w10qxk"))))
4298 (build-system meson-build-system)
4299 (native-inputs
4300 `(("gobject-introspection" ,gobject-introspection)
4301 ("pkg-config" ,pkg-config)
4302 ("vala" ,vala)
4303 ("gtk-doc" ,gtk-doc)))
4304 (propagated-inputs
4305 ;; Both of these are required by gusb.pc.
4306 `(("glib" ,glib)
4307 ("libusb" ,libusb)))
4308 (arguments
4309 `(#:tests? #f)) ;libusb fails to initialize. Wonder what that is.
4310 (home-page "https://github.com/hughsie/libgusb")
4311 (synopsis "GLib binding for libusb1")
4312 (description
4313 "GUsb is a GObject wrapper for libusb1 that makes it easy to do
4314 asynchronous control, bulk and interrupt transfers with proper cancellation
4315 and integration into a mainloop. This makes it easy to integrate low level
4316 USB transfers with your high-level application or system daemon.")
4317 (license license:lgpl2.1+)))
4318
4319 (define-public simple-scan
4320 (package
4321 (name "simple-scan")
4322 (version "3.24.1")
4323 (source (origin
4324 (method url-fetch)
4325 (uri (string-append "https://launchpad.net/simple-scan/"
4326 (version-major+minor version) "/"
4327 version "/+download/simple-scan-"
4328 version ".tar.xz"))
4329 (sha256
4330 (base32
4331 "1czg21cdbd2fgqylxfnzfhhzy69gycf816d5bbaq6hb62hmq7bjy"))))
4332 (build-system glib-or-gtk-build-system)
4333 (inputs
4334 `(("gtk" ,gtk+)
4335 ("zlib" ,zlib)
4336 ("cairo" ,cairo)
4337 ("gdk-pixbuf" ,gdk-pixbuf)
4338 ("gusb" ,gusb)
4339 ("libsane" ,sane-backends)))
4340 (native-inputs
4341 `(("gettext" ,gettext-minimal)
4342 ("itstool" ,itstool)
4343 ("colord" ,colord)
4344 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
4345 ("pkg-config" ,pkg-config)
4346 ("vala" ,vala)
4347 ("xmllint" ,libxml2)))
4348 (arguments
4349 '(#:configure-flags '("--disable-packagekit")
4350 #:phases
4351 (modify-phases %standard-phases
4352 (add-after 'unpack 'clean
4353 (lambda _
4354 ;; Remove a left-over reference to PackageKit.
4355
4356 ;; https://bugs.launchpad.net/simple-scan/+bug/1462769
4357
4358 ;; There are some generated C files erroneously
4359 ;; included in the source distribution, and this
4360 ;; one breaks the build by referring to a
4361 ;; non-existent header (packagekit.h)
4362 (delete-file "src/ui.c"))))))
4363 (home-page "https://launchpad.net/simple-scan")
4364 (synopsis "Document and image scanner")
4365 (description "Simple Scan is an easy-to-use application, designed to let
4366 users connect their scanner and quickly have the image/document in an
4367 appropriate format. Simple Scan is basically a frontend for SANE - which is
4368 the same backend as XSANE uses. This means that all existing scanners will
4369 work and the interface is well tested.")
4370 (license license:gpl3+)))
4371
4372 (define-public eolie
4373 (package
4374 (name "eolie")
4375 (version "0.9.63")
4376 (source (origin
4377 (method url-fetch)
4378 (uri (string-append "https://gitlab.gnome.org/World/eolie/"
4379 "uploads/d42b466752729a0d3fa828a721e25043/"
4380 "eolie-" version ".tar.xz"))
4381 (sha256
4382 (base32
4383 "11pp8g0w22h1q0bbj9517l5838gcymvvp8fp9kh6h2dmgir2ssih"))))
4384 (build-system meson-build-system)
4385 (arguments
4386 `(#:glib-or-gtk? #t
4387 #:phases
4388 (modify-phases %standard-phases
4389 (add-after 'wrap 'wrap-more
4390 (lambda* (#:key inputs outputs #:allow-other-keys)
4391 (let* ((out (assoc-ref outputs "out"))
4392 ;; These libraries must be on LD_LIBRARY_PATH.
4393 (libs '("gtkspell3" "webkitgtk" "libsoup" "libsecret"
4394 "atk" "gtk+" "gsettings-desktop-schemas"
4395 "gobject-introspection"))
4396 (path (string-join
4397 (map (lambda (lib)
4398 (string-append (assoc-ref inputs lib) "/lib"))
4399 libs)
4400 ":")))
4401 (wrap-program (string-append out "/bin/eolie")
4402 `("LD_LIBRARY_PATH" ":" prefix (,path))
4403 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
4404 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
4405 #t)))))
4406 (native-inputs
4407 `(("intltool" ,intltool)
4408 ("itstool" ,itstool)
4409 ("pkg-config" ,pkg-config)
4410 ("python" ,python)
4411 ("glib:bin" ,glib "bin")
4412 ("gtk+" ,gtk+ "bin")))
4413 (inputs
4414 `(("gobject-introspection" ,gobject-introspection)
4415 ("glib-networking" ,glib-networking)
4416 ("cairo" ,cairo)
4417 ("gtk+" ,gtk+)
4418 ("atk" ,atk) ; propagated by gtk+, but we need it in LD_LIBRARY_PATH
4419 ("python" ,python-wrapper)
4420 ("python-dateutil" ,python-dateutil)
4421 ("python-pyfxa" ,python-pyfxa)
4422 ("python-pygobject" ,python-pygobject)
4423 ("python-pycairo" ,python-pycairo)
4424 ("python-pycrypto" ,python-pycrypto)
4425 ("libsecret" ,libsecret)
4426 ("gtkspell3" ,gtkspell3)
4427 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4428 ("webkitgtk" ,webkitgtk)))
4429 (home-page "https://wiki.gnome.org/Apps/Eolie")
4430 (synopsis "Web browser for GNOME")
4431 (description
4432 "Eolie is a new web browser for GNOME. It features Firefox sync support,
4433 a secret password store, an adblocker, and a modern UI.")
4434 (license license:gpl3+)))
4435
4436 (define-public epiphany
4437 (package
4438 (name "epiphany")
4439 (version "3.30.4")
4440 (source (origin
4441 (method url-fetch)
4442 (uri (string-append "mirror://gnome/sources/epiphany/"
4443 (version-major+minor version) "/"
4444 "epiphany-" version ".tar.xz"))
4445 (sha256
4446 (base32
4447 "0nk0krzrfck6hhfs52f4sjmj93yjyvabm72bq8i8f9l1pass5vgd"))))
4448
4449 (build-system meson-build-system)
4450 (arguments
4451 ;; FIXME: tests run under Xvfb, but fail with:
4452 ;; /src/bookmarks/ephy-bookmarks/create:
4453 ;; ** (test-ephy-bookmarks:19591): WARNING **: Unable to start Zeroconf
4454 ;; subsystem
4455 ;; FAIL
4456 '(#:tests? #f
4457 #:glib-or-gtk? #t
4458 #:configure-flags
4459 ;; Otherwise, the RUNPATH will lack the final 'epiphany' path component.
4460 (list (string-append "-Dc_link_args=-Wl,-rpath="
4461 (assoc-ref %outputs "out") "/lib/epiphany"))))
4462 (propagated-inputs
4463 `(("dconf" ,dconf)))
4464 (native-inputs
4465 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
4466 ("glib:bin" ,glib "bin") ; for glib-mkenums
4467 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
4468 ("intltool" ,intltool)
4469 ("itstool" ,itstool)
4470 ("pkg-config" ,pkg-config)
4471 ("xmllint" ,libxml2)))
4472 (inputs
4473 `(("avahi" ,avahi)
4474 ("gcr" ,gcr)
4475 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg) ; for loading SVG files
4476 ("glib-networking" ,glib-networking)
4477 ("gnome-desktop" ,gnome-desktop)
4478 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4479 ("json-glib" ,json-glib)
4480 ("iso-codes" ,iso-codes)
4481 ("libdazzle" ,libdazzle)
4482 ("libnotify" ,libnotify)
4483 ("libsecret" ,libsecret)
4484 ("libxslt" ,libxslt)
4485 ("nettle" ,nettle) ; for hogweed
4486 ("sqlite" ,sqlite)
4487 ("webkitgtk" ,webkitgtk)))
4488 (home-page "https://wiki.gnome.org/Apps/Web")
4489 (synopsis "GNOME web browser")
4490 (description
4491 "Epiphany is a GNOME web browser targeted at non-technical users. Its
4492 principles are simplicity and standards compliance.")
4493 (license license:gpl2+)))
4494
4495 (define-public d-feet
4496 (package
4497 (name "d-feet")
4498 (version "0.3.14")
4499 (source (origin
4500 (method url-fetch)
4501 (uri (string-append "mirror://gnome/sources/" name "/"
4502 (version-major+minor version) "/"
4503 name "-" version ".tar.xz"))
4504 (sha256
4505 (base32
4506 "1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f"))))
4507 (build-system glib-or-gtk-build-system)
4508 (arguments
4509 '(#:out-of-source? #f ; tests need to run in the source directory.
4510 #:phases
4511 (modify-phases %standard-phases
4512 (add-before
4513 'check 'pre-check
4514 (lambda _
4515 ;; The test suite requires a running X server.
4516 (system "Xvfb :1 &")
4517 (setenv "DISPLAY" ":1")
4518 ;; Don't fail on missing '/etc/machine-id'.
4519 (setenv "DBUS_FATAL_WARNINGS" "0")
4520 ;; tests.py and window.py don't meet E402:
4521 ;; E402 module level import not at top of file
4522 (substitute* "src/tests/Makefile"
4523 (("--ignore=E123") "--ignore=E123,E402"))
4524 #t))
4525 (add-after
4526 'install 'wrap-program
4527 (lambda* (#:key outputs #:allow-other-keys)
4528 (let ((prog (string-append (assoc-ref outputs "out")
4529 "/bin/d-feet")))
4530 (wrap-program prog
4531 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
4532 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
4533 #t))))))
4534 (native-inputs
4535 `(("intltool" ,intltool)
4536 ("itstool" ,itstool)
4537 ("pkg-config" ,pkg-config)
4538 ("python-pep8" ,python-pep8)
4539 ("xmllint" ,libxml2)
4540 ("xorg-server" ,xorg-server)))
4541 (inputs
4542 `(("gobject-introspection" ,gobject-introspection)
4543 ("gtk+" ,gtk+)
4544 ("python" ,python-wrapper)
4545 ("hicolor-icon-theme" ,hicolor-icon-theme)
4546 ("python-pygobject" ,python-pygobject)))
4547 (home-page "https://wiki.gnome.org/Apps/DFeet")
4548 (synopsis "D-Bus debugger")
4549 (description
4550 "D-Feet is a D-Bus debugger, which can be used to inspect D-Bus interfaces
4551 of running programs and invoke methods on those interfaces.")
4552 (license license:gpl2+)))
4553
4554 (define-public yelp-xsl
4555 (package
4556 (name "yelp-xsl")
4557 (version "3.32.1")
4558 (source (origin
4559 (method url-fetch)
4560 (uri (string-append "mirror://gnome/sources/" name "/"
4561 (version-major+minor version) "/"
4562 name "-" version ".tar.xz"))
4563 (sha256
4564 (base32
4565 "013z2ixx9kfrs6hq79qpil093xfbc12y1p0mvsh6lpala30iphya"))))
4566 (build-system gnu-build-system)
4567 (native-inputs
4568 `(("intltool" ,intltool)
4569 ("itstool" ,itstool)
4570 ("xmllint" ,libxml2)))
4571 (home-page "https://wiki.gnome.org/Apps/Yelp")
4572 (synopsis "XSL stylesheets for Yelp")
4573 (description
4574 "Yelp-xsl contains XSL stylesheets that are used by the yelp help browser
4575 to format Docbook and Mallard documents.")
4576 (license license:gpl2+)))
4577
4578 (define-public yelp
4579 (package
4580 (name "yelp")
4581 (version "3.30.0")
4582 (source (origin
4583 (method url-fetch)
4584 (uri (string-append "mirror://gnome/sources/" name "/"
4585 (version-major+minor version) "/"
4586 name "-" version ".tar.xz"))
4587 (sha256
4588 (base32
4589 "060a902j15k76fyhk8xfl38ipvrrcc0qd7nm2mcck4ifb45b0zv4"))))
4590 (build-system glib-or-gtk-build-system)
4591 (native-inputs
4592 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
4593 ("intltool" ,intltool)
4594 ("itstool" ,itstool)
4595 ("pkg-config" ,pkg-config)))
4596 (propagated-inputs
4597 `(("dconf" ,dconf)))
4598 (inputs
4599 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4600 ("libxslt" ,libxslt)
4601 ("sqlite" ,sqlite)
4602 ("webkitgtk" ,webkitgtk)
4603 ("yelp-xsl" ,yelp-xsl)))
4604 (home-page "https://wiki.gnome.org/Apps/Yelp")
4605 (synopsis "GNOME help browser")
4606 (description
4607 "Yelp is the help viewer in Gnome. It natively views Mallard, DocBook,
4608 man, info, and HTML documents. It can locate documents according to the
4609 freedesktop.org help system specification.")
4610 (license license:gpl2+)))
4611
4612 (define-public yelp-tools
4613 (package
4614 (name "yelp-tools")
4615 (version "3.28.0")
4616 (source (origin
4617 (method url-fetch)
4618 (uri (string-append "mirror://gnome/sources/" name "/"
4619 (version-major+minor version) "/"
4620 name "-" version ".tar.xz"))
4621 (sha256
4622 (base32
4623 "1b61dmlb1sd50fgq6zgnkcpx2s1py33q0x9cx67fzpsr4gmgxnw2"))))
4624 (build-system gnu-build-system)
4625 (native-inputs
4626 `(("pkg-config" ,pkg-config)))
4627 (propagated-inputs
4628 ;; Needed by `yelp-build', `yelp-check' or 'yelp.m4'.
4629 `(("itstool" ,itstool)
4630 ("xmllint" ,libxml2)
4631 ("xsltproc" ,libxslt)))
4632 (inputs
4633 `(("yelp-xsl" ,yelp-xsl)))
4634 (home-page "https://wiki.gnome.org/Apps/Yelp/Tools")
4635 (synopsis "Yelp documentation tools")
4636 (description
4637 "Yelp-tools is a collection of scripts and build utilities to help create,
4638 manage, and publish documentation for Yelp and the web. Most of the heavy
4639 lifting is done by packages like yelp-xsl and itstool. This package just
4640 wraps things up in a developer-friendly way.")
4641 (license license:gpl2+)))
4642
4643 (define-public yelp-tools/fixed
4644 ;; This variant fixes a python-libxml2 crash when processing UTF-8
4645 ;; sequences: <https://bugs.gnu.org/37468>. TODO: Remove this in
4646 ;; the next rebuild cycle.
4647 (hidden-package
4648 (package/inherit
4649 yelp-tools
4650 (propagated-inputs
4651 `(("itstool" ,itstool/fixed)
4652 ,@(alist-delete "itstool" (package-propagated-inputs yelp-tools)))))))
4653
4654 (define-public libgee
4655 (package
4656 (name "libgee")
4657 (version "0.20.2")
4658 (source (origin
4659 (method url-fetch)
4660 (uri (string-append "mirror://gnome/sources/libgee/"
4661 (version-major+minor version) "/"
4662 "libgee-" version ".tar.xz"))
4663 (sha256
4664 (base32
4665 "0g1mhl7nidg82v4cikkk8dakzc18hg7wv0dsf2pbyijzfm5mq0wy"))))
4666 (build-system gnu-build-system)
4667 (arguments
4668 `(#:phases
4669 (modify-phases %standard-phases
4670 (add-after 'unpack 'fix-introspection-install-dir
4671 (lambda* (#:key outputs #:allow-other-keys)
4672 (let ((out (assoc-ref outputs "out")))
4673 (substitute* "gee/Makefile.in"
4674 (("@INTROSPECTION_GIRDIR@")
4675 (string-append out "/share/gir-1.0/"))
4676 (("@INTROSPECTION_TYPELIBDIR@")
4677 (string-append out "/lib/girepository-1.0/")))))))))
4678 (native-inputs
4679 `(("glib" ,glib "bin")
4680 ("pkg-config" ,pkg-config)))
4681 (inputs
4682 `(("glib" ,glib)
4683 ("gobject-introspection" ,gobject-introspection)))
4684 (home-page "https://wiki.gnome.org/Projects/Libgee")
4685 (synopsis "GObject collection library")
4686 (description
4687 "Libgee is a utility library providing GObject-based interfaces and
4688 classes for commonly used data structures.")
4689 (license license:lgpl2.1+)))
4690
4691 (define-public gexiv2
4692 (package
4693 (name "gexiv2")
4694 (version "0.12.0")
4695 (source (origin
4696 (method url-fetch)
4697 (uri (string-append "mirror://gnome/sources/" name "/"
4698 (version-major+minor version) "/"
4699 name "-" version ".tar.xz"))
4700 (sha256
4701 (base32
4702 "0slj5yj8c90l9pp5i3z74x5r3r4da0xfmbzkfq5k0dkg72q3kxaq"))))
4703 (build-system meson-build-system)
4704 (native-inputs
4705 `(("gcr" ,gcr)
4706 ("glib" ,glib "bin")
4707 ("pkg-config" ,pkg-config)
4708 ("vala" ,vala)))
4709 (propagated-inputs
4710 ;; Listed in "Requires" section of gexiv2.pc
4711 `(("exiv2" ,exiv2)))
4712 (inputs
4713 `(("glib" ,glib)
4714 ("gobject-introspection" ,gobject-introspection)))
4715 (home-page "https://wiki.gnome.org/Projects/gexiv2")
4716 (synopsis "GObject wrapper around the Exiv2 photo metadata library")
4717 (description
4718 "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library. It
4719 allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
4720 metadata in photo and video files of various formats.")
4721 (license license:gpl2+)))
4722
4723 (define-public shotwell
4724 (package
4725 (name "shotwell")
4726 (version "0.30.7")
4727 (source (origin
4728 (method url-fetch)
4729 (uri (string-append "mirror://gnome/sources/shotwell/"
4730 (version-major+minor version) "/"
4731 "shotwell-" version ".tar.xz"))
4732 (sha256
4733 (base32
4734 "1m9i8r4gyd2hzlxjjwfyck4kz7gdg2vz2k6l6d0ga9hdfq2l4p9l"))))
4735 (build-system meson-build-system)
4736 (arguments
4737 '(#:glib-or-gtk? #t))
4738 (propagated-inputs
4739 `(("dconf" ,dconf)))
4740 (native-inputs
4741 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
4742 ("gettext" ,gettext-minimal)
4743 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
4744 ("itstool" ,itstool)
4745 ("pkg-config" ,pkg-config)
4746 ("vala" ,vala)))
4747 (inputs
4748 `(("glib:bin" ,glib "bin")
4749 ("gstreamer" ,gstreamer)
4750 ("gst-plugins-base" ,gst-plugins-base)
4751 ("libgdata" ,libgdata)
4752 ("libgee" ,libgee)
4753 ("gexiv2" ,gexiv2)
4754 ("libraw" ,libraw)
4755 ("json-glib" ,json-glib)
4756 ("webkitgtk" ,webkitgtk)
4757 ("sqlite" ,sqlite)
4758 ("libsoup" ,libsoup)
4759 ("libxml2" ,libxml2)
4760 ("libgudev" ,libgudev)
4761 ("libgphoto2" ,libgphoto2)
4762 ("gcr" ,gcr)))
4763 (home-page "https://wiki.gnome.org/Apps/Shotwell")
4764 (synopsis "Photo manager for GNOME 3")
4765 (description
4766 "Shotwell is a digital photo manager designed for the GNOME desktop
4767 environment. It allows you to import photos from disk or camera, organize
4768 them by keywords and events, view them in full-window or fullscreen mode, and
4769 share them with others via social networking and more.")
4770 (license license:lgpl2.1+)))
4771
4772 (define-public file-roller
4773 (package
4774 (name "file-roller")
4775 (version "3.30.1")
4776 (source (origin
4777 (method url-fetch)
4778 (uri (string-append "mirror://gnome/sources/" name "/"
4779 (version-major+minor version) "/"
4780 name "-" version ".tar.xz"))
4781 (sha256
4782 (base32
4783 "0kiragsqyixyx15747b71qc4nw8y4jx9d55wgg612xb0hp5l9pj1"))))
4784 (build-system meson-build-system)
4785 (native-inputs
4786 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
4787 ("intltool" ,intltool)
4788 ("pkg-config" ,pkg-config)
4789 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
4790 ("glib:bin" ,glib "bin")))
4791 ;; TODO: Add libnautilus.
4792 (inputs
4793 `(("gtk+" ,gtk+)
4794 ("gdk-pixbuf" ,gdk-pixbuf)
4795 ("json-glib" ,json-glib)
4796 ("libarchive" ,libarchive)
4797 ("libnotify" ,libnotify)
4798 ("itstool" ,itstool)
4799 ("libxml2" ,libxml2)))
4800 (synopsis "Graphical archive manager for GNOME")
4801 (description "File Roller is an archive manager for the GNOME desktop
4802 environment that allows users to view, unpack, and create compressed archives
4803 such as gzip tarballs.")
4804 (home-page "http://fileroller.sourceforge.net/")
4805 (license license:gpl2+)))
4806
4807 (define-public gnome-session
4808 (package
4809 (name "gnome-session")
4810 (version "3.30.1")
4811 (source (origin
4812 (method url-fetch)
4813 (uri (string-append "mirror://gnome/sources/" name "/"
4814 (version-major+minor version) "/"
4815 name "-" version ".tar.xz"))
4816 (sha256
4817 (base32
4818 "0fbpq103md4g9gi67rxnwvha21629nxx7qazddy6q6494sbqbzpa"))))
4819 (arguments
4820 '(#:glib-or-gtk? #t
4821 #:phases
4822 (modify-phases %standard-phases
4823 (add-before 'configure 'pre-configure
4824 (lambda* (#:key outputs #:allow-other-keys)
4825 ;; Use elogind instead of systemd.
4826 (substitute* "meson.build"
4827 (("libsystemd-login") "libelogind")
4828 (("and libsystemd_daemon_dep.found.*") ","))
4829 (substitute* "gnome-session/gsm-systemd.c"
4830 (("#include <systemd/sd-login.h>")
4831 "#include <elogind/sd-login.h>"))
4832 ;; Remove uses of the systemd daemon.
4833 (substitute* "gnome-session/gsm-autostart-app.c"
4834 (("#ifdef HAVE_SYSTEMD") "#if 0"))
4835 #t))
4836 (add-after 'install 'wrap-gnome-session
4837 (lambda* (#:key inputs outputs #:allow-other-keys)
4838 ;; Make sure 'gnome-session' finds the 'gsettings' program.
4839 (let ((glib (assoc-ref inputs "glib:bin"))
4840 (out (assoc-ref outputs "out")))
4841 (wrap-program (string-append out "/bin/gnome-session")
4842 `("PATH" ":" prefix (,(string-append glib "/bin"))))
4843 #t))))
4844
4845 #:configure-flags
4846 '("-Ddocbook=false" ; FIXME: disabled because of docbook validation error
4847 "-Dman=false" ; FIXME: disabled because of docbook validation error
4848 "-Dsystemd_journal=false")))
4849 (build-system meson-build-system)
4850 (native-inputs
4851 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
4852 ("pkg-config" ,pkg-config)
4853 ("intltool" ,intltool)
4854 ("xsltproc" ,libxslt)
4855 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
4856 ("docbook-xsl" ,docbook-xsl)
4857 ("docbook-xml" ,docbook-xml)
4858 ("xmlto" ,xmlto)))
4859 (inputs
4860 `(("elogind" ,elogind)
4861 ("gnome-desktop" ,gnome-desktop)
4862 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4863 ("gtk+" ,gtk+)
4864 ("json-glib" ,json-glib)
4865 ("libsm" ,libsm)
4866 ("libxcomposite" ,libxcomposite)
4867 ("libxtst" ,libxtst)
4868 ("mesa" ,mesa)
4869 ("upower" ,upower)
4870 ("xtrans" ,xtrans)))
4871 (synopsis "Session manager for GNOME")
4872 (description
4873 "This package contains the GNOME session manager, as well as a
4874 configuration program to choose applications starting on login.")
4875 (home-page "https://wiki.gnome.org/Projects/SessionManagement")
4876 (license license:gpl2+)))
4877
4878 (define-public gjs
4879 (package
4880 (name "gjs")
4881 (version "1.56.2")
4882 (source (origin
4883 (method url-fetch)
4884 (uri (string-append "mirror://gnome/sources/" name "/"
4885 (version-major+minor version) "/"
4886 name "-" version ".tar.xz"))
4887 (sha256
4888 (base32
4889 "1b5321krn89p3f7s2ik6gpfnc61apzljhlnbqky8c88f7n6832ac"))))
4890 (build-system gnu-build-system)
4891 (arguments
4892 '(#:phases
4893 (modify-phases %standard-phases
4894 (add-before
4895 'check 'pre-check
4896 (lambda _
4897 ;; The test suite requires a running X server.
4898 (system "Xvfb :1 &")
4899 (setenv "DISPLAY" ":1")
4900
4901 ;; For the missing /etc/machine-id.
4902 (setenv "DBUS_FATAL_WARNINGS" "0")
4903
4904 ;; Our mozjs-38 package does not compile the required Intl API
4905 ;; support for these failing tests.
4906 (substitute* "installed-tests/js/testLocale.js"
4907 ((".*toBeDefined.*") "")
4908 ((".*expect\\(datestr\\).*") ""))
4909 (substitute* "installed-tests/scripts/testCommandLine.sh"
4910 (("Valentín") "")
4911 (("☭") ""))
4912 #t)))))
4913 (native-inputs
4914 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
4915 ("pkg-config" ,pkg-config)
4916 ("xmllint" ,libxml2)
4917 ;; For testing
4918 ("dbus-launch" ,dbus)
4919 ("uuidgen" ,util-linux)
4920 ("xvfb" ,xorg-server-for-tests)))
4921 (propagated-inputs
4922 ;; These are all in the Requires.private field of gjs-1.0.pc.
4923 `(("cairo" ,cairo)
4924 ("gobject-introspection" ,gobject-introspection)
4925 ("mozjs" ,mozjs-60)))
4926 (inputs
4927 `(("gtk+" ,gtk+)
4928 ("readline" ,readline)))
4929 (synopsis "Javascript bindings for GNOME")
4930 (home-page "https://live.gnome.org/Gjs")
4931 (description
4932 "Gjs is a javascript binding for GNOME. It's mainly based on spidermonkey
4933 javascript engine and the GObject introspection framework.")
4934 (license license:gpl2+)))
4935
4936 (define-public gedit
4937 (package
4938 (name "gedit")
4939 (version "3.30.2")
4940 (source (origin
4941 (method url-fetch)
4942 (uri (string-append "mirror://gnome/sources/" name "/"
4943 (version-major+minor version) "/"
4944 name "-" version ".tar.xz"))
4945 (sha256
4946 (base32
4947 "0qwig35hzvjaqic9x92jcpmycnvcybsbnbiw6rppryx0arwb3wza"))))
4948 (build-system glib-or-gtk-build-system)
4949 (arguments
4950 `(#:phases
4951 (modify-phases %standard-phases
4952 (add-after
4953 'install 'wrap-gedit
4954 (lambda* (#:key inputs outputs #:allow-other-keys)
4955 (let ((out (assoc-ref outputs "out"))
4956 (gtksourceview (assoc-ref inputs "gtksourceview"))
4957 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
4958 (python-path (getenv "PYTHONPATH")))
4959 (wrap-program (string-append out "/bin/gedit")
4960 ;; For plugins.
4961 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
4962 `("PYTHONPATH" ":" prefix (,python-path))
4963 ;; For language-specs.
4964 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
4965 "/share")))))
4966 #t)))))
4967 (propagated-inputs
4968 `(("dconf" ,dconf)))
4969 (native-inputs
4970 `(("intltool" ,intltool)
4971 ("itstool" ,itstool)
4972 ("gobject-introspection" ,gobject-introspection)
4973 ("pkg-config" ,pkg-config)))
4974 (inputs
4975 `(("glib" ,glib)
4976 ("gspell" ,gspell)
4977 ("gtk+" ,gtk+)
4978 ("gtksourceview" ,gtksourceview-3)
4979 ("libpeas" ,libpeas)
4980 ("libxml2" ,libxml2)
4981 ("iso-codes" ,iso-codes)
4982 ("python-pygobject" ,python-pygobject)
4983 ("python" ,python)
4984 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4985 ("libx11" ,libx11)
4986 ("vala" ,vala)
4987 ("adwaita-icon-theme" ,adwaita-icon-theme)
4988 ("libsoup" ,libsoup)
4989 ("gnome-desktop" ,gnome-desktop)))
4990 (home-page "https://wiki.gnome.org/Apps/Gedit")
4991 (synopsis "GNOME text editor")
4992 (description "While aiming at simplicity and ease of use, gedit is a
4993 powerful general purpose text editor.")
4994 (license license:gpl2+)))
4995
4996 (define-public zenity
4997 (package
4998 (name "zenity")
4999 (version "3.32.0")
5000 (source (origin
5001 (method url-fetch)
5002 (uri (string-append "mirror://gnome/sources/zenity/"
5003 (version-major+minor version) "/"
5004 "zenity-" version ".tar.xz"))
5005 (sha256
5006 (base32
5007 "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7"))))
5008 (build-system gnu-build-system)
5009 (native-inputs
5010 `(("gettext" ,gettext-minimal)
5011 ("itstool" ,itstool)
5012 ("pkg-config" ,pkg-config)))
5013 (inputs
5014 `(("libnotify" ,libnotify)
5015 ("webkitgtk" ,webkitgtk)))
5016 (synopsis "Display graphical dialog boxes from shell scripts")
5017 (home-page "https://www.gnome.org")
5018 (description
5019 "Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you
5020 to display dialog boxes from the commandline and shell scripts.")
5021 (license license:lgpl2.0+)))
5022
5023 (define-public mutter
5024 (package
5025 (name "mutter")
5026 (version "3.30.2")
5027 (source (origin
5028 (method url-fetch)
5029 (uri (string-append "mirror://gnome/sources/" name "/"
5030 (version-major+minor version) "/"
5031 name "-" version ".tar.xz"))
5032 (sha256
5033 (base32
5034 "0qr3w480p31nbiad49213rj9rk6p9fl82a68pzznpz36p30dq96z"))))
5035 ;; NOTE: Since version 3.21.x, mutter now bundles and exports forked
5036 ;; versions of cogl and clutter. As a result, many of the inputs,
5037 ;; propagated-inputs, and configure flags used in cogl and clutter are
5038 ;; needed here as well.
5039 (build-system gnu-build-system)
5040 (arguments
5041 '(#:configure-flags
5042 ;; XXX: build fails with [-Werror]:
5043 ;; backends/meta-cursor-renderer.c:112:5: error:
5044 ;; implicit declaration of function ?roundf?
5045 (list "--enable-compile-warnings=minimum"
5046
5047 "--enable-native-backend"
5048
5049 ;; The following flags are needed for the bundled clutter
5050 "--enable-x11-backend=yes"
5051
5052 (string-append "--with-xwayland-path="
5053 (assoc-ref %build-inputs "xorg-server-xwayland")
5054 "/bin/Xwayland")
5055
5056 ;; the remaining flags are needed for the bundled cogl
5057 "--enable-cogl-gst"
5058 (string-append "--with-gl-libname="
5059 (assoc-ref %build-inputs "mesa")
5060 "/lib/libGL.so"))
5061 #:phases
5062 (modify-phases %standard-phases
5063 ;; Replace references to systemd libraries to elogind references.
5064 (add-before 'configure 'use-elogind
5065 (lambda _
5066 (substitute* (list "configure"
5067 "src/backends/native/meta-launcher.c"
5068 "src/core/main.c")
5069 (("systemd") "elogind"))
5070 #t)))))
5071 (native-inputs
5072 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5073 ("gobject-introspection" ,gobject-introspection)
5074 ("intltool" ,intltool)
5075 ("pkg-config" ,pkg-config)
5076 ;; For git build
5077 ("autoconf" ,autoconf)
5078 ("automake" ,automake)
5079 ("libtool" ,libtool)))
5080 (propagated-inputs
5081 `(;; libmutter.pc refers to these:
5082 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5083 ("gtk+" ,gtk+)
5084 ;; mutter-clutter-1.0.pc and mutter-cogl-1.0.pc refer to these:
5085 ("atk" ,atk)
5086 ("cairo" ,cairo)
5087 ("gdk-pixbuf" ,gdk-pixbuf)
5088 ("glib" ,glib)
5089 ("json-glib" ,json-glib)
5090 ("libinput" ,libinput)
5091 ("libx11" ,libx11)
5092 ("libxcomposite" ,libxcomposite)
5093 ("libxdamage" ,libxdamage)
5094 ("libxext" ,libxext)
5095 ("libxfixes" ,libxfixes)
5096 ("libxkbcommon" ,libxkbcommon)
5097 ("libxrandr" ,libxrandr)
5098 ("mesa" ,mesa)
5099 ("pango" ,pango)
5100 ("udev" ,eudev)
5101 ("xinput" ,xinput)))
5102 (inputs
5103 `(("elogind" ,elogind)
5104 ("gnome-desktop" ,gnome-desktop)
5105 ("libcanberra-gtk" ,libcanberra)
5106 ("libgudev" ,libgudev)
5107 ("libice" ,libice)
5108 ("libsm" ,libsm)
5109 ("libxkbfile" ,libxkbfile)
5110 ("libxrandr" ,libxrandr)
5111 ("libxtst" ,libxtst)
5112 ("startup-notification" ,startup-notification)
5113 ("upower-glib" ,upower)
5114 ("xkeyboard-config" ,xkeyboard-config)
5115 ("xorg-server-xwayland" ,xorg-server-xwayland)
5116 ("zenity" ,zenity)))
5117 (synopsis "Window and compositing manager")
5118 (home-page "https://www.gnome.org")
5119 (description
5120 "Mutter is a window and compositing manager that displays and manages your
5121 desktop via OpenGL. Mutter combines a sophisticated display engine using the
5122 Clutter toolkit with solid window-management logic inherited from the Metacity
5123 window manager.")
5124 (license license:gpl2+)))
5125
5126 (define-public gnome-online-accounts
5127 (package
5128 (name "gnome-online-accounts")
5129 (version "3.30.2")
5130 (source (origin
5131 (method url-fetch)
5132 (uri (string-append "mirror://gnome/sources/" name "/"
5133 (version-major+minor version) "/"
5134 name "-" version ".tar.xz"))
5135 (sha256
5136 (base32
5137 "1p1gdgryziklrgngn6m13xnvfx4gb01h723nndfi9944r24fbiq5"))))
5138 (outputs '("out" "lib"))
5139 (build-system glib-or-gtk-build-system)
5140 (arguments
5141 `(#:configure-flags
5142 (list (string-append "--libdir=" (assoc-ref %outputs "out") "/lib"))
5143 #:phases
5144 (modify-phases %standard-phases
5145 (add-before 'configure 'patch-libgoa-output
5146 (lambda* (#:key outputs #:allow-other-keys)
5147 (let ((lib (assoc-ref outputs "lib")))
5148 (substitute* '("src/goa/Makefile.in" "src/goa/goa-1.0.pc.in")
5149 (("@prefix@") lib)
5150 (("@exec_prefix@") lib)
5151 (("@libdir@") (string-append lib "/lib"))
5152 (("@includedir@") (string-append lib "/include"))
5153 (("@datadir@") (string-append lib "/share")))
5154 ;; Make sure gobject-introspection knows about the output
5155 ;; too (see <https://bugs.gnu.org/36535>).
5156 (setenv "outputs" "out lib")
5157 #t))))))
5158 (native-inputs
5159 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5160 ("gobject-introspection" ,gobject-introspection)
5161 ("intltool" ,intltool)
5162 ("pkg-config" ,pkg-config)
5163 ("xsltproc" ,libxslt)))
5164 (propagated-inputs
5165 `(("glib" ,glib) ; required by goa-1.0.pc
5166 ("gtk+" ,gtk+))) ; required by goa-backend-1.0.pc
5167 (inputs
5168 `(("docbook-xsl" ,docbook-xsl)
5169 ("json-glib" ,json-glib)
5170 ("libsecret" ,libsecret)
5171 ("rest" ,rest)
5172 ("webkitgtk" ,webkitgtk)))
5173 (synopsis "Single sign-on framework for GNOME")
5174 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineAccounts")
5175 (description
5176 "GNOME Online Accounts provides interfaces so that applications and
5177 libraries in GNOME can access the user's online accounts. It has providers for
5178 Google, ownCloud, Facebook, Flickr, Windows Live, Pocket, Foursquare, Microsoft
5179 Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
5180 (license license:lgpl2.0+)))
5181
5182 (define-public evolution-data-server
5183 (package
5184 (name "evolution-data-server")
5185 (version "3.30.5")
5186 (source (origin
5187 (method url-fetch)
5188 (uri (string-append "mirror://gnome/sources/" name "/"
5189 (version-major+minor version) "/"
5190 name "-" version ".tar.xz"))
5191 (patches (search-patches "evolution-data-server-locales.patch"))
5192 (sha256
5193 (base32
5194 "1s952wyhgcbmq9nfgk75v15zdy1h3wy5p5rmkqibaavmc0pk3mli"))))
5195 (build-system cmake-build-system)
5196 (arguments
5197 '(#:configure-flags
5198 (let* ((lib (string-append (assoc-ref %outputs "out") "/lib"))
5199 (runpaths (map (lambda (s)
5200 (string-append lib "/evolution-data-server/" s))
5201 '("addressbook-backends" "calendar-backends"
5202 "camel-providers" "credential-modules"
5203 "registry-modules"))))
5204 (list "-DENABLE_UOA=OFF" ;disable Ubuntu Online Accounts support
5205 "-DENABLE_GOOGLE=OFF" ;disable Google Contacts support
5206 "-DENABLE_GOOGLE_AUTH=OFF" ;disable Google authentication
5207 "-DENABLE_VALA_BINDINGS=ON"
5208 (string-append "-DCMAKE_INSTALL_RPATH=" lib ";"
5209 (string-append lib "/evolution-data-server;")
5210 (string-join runpaths ";"))
5211 "-DENABLE_INTROSPECTION=ON")) ;required for Vala bindings
5212 #:phases
5213 (modify-phases %standard-phases
5214 (add-after 'unpack 'disable-failing-tests
5215 (lambda _
5216 ;; tests/book-migration/test-migration.c:160:test_fetch_contacts:
5217 ;; assertion failed (g_slist_length (contacts) == 20): (0 == 20)
5218 (delete-file-recursively "tests/book-migration")
5219 (substitute* "tests/CMakeLists.txt"
5220 (("add_subdirectory\\(book-migration\\)") ""))
5221 ;; tests/libedata-cal/test-cal-meta-backend.c:1328:test_get_attachment_uris:
5222 ;; assertion failed (uris->data == expected_uri):
5223 ;; ("" == "file:///tests/libedata-cal/components/event-1.ics")
5224 (substitute* "tests/libedata-cal/CMakeLists.txt"
5225 (("test-cal-meta-backend") ""))
5226 #t))
5227 (add-after 'unpack 'patch-paths
5228 (lambda _
5229 (substitute* '("tests/test-server-utils/e-test-server-utils.c"
5230 "tests/libedata-book/data-test-utils.c"
5231 "tests/libedata-book/test-book-cache-utils.c"
5232 "tests/libedata-cal/test-cal-cache-utils.c")
5233 (("/bin/rm") (which "rm")))
5234 #t))
5235 (add-before 'configure 'dont-override-rpath
5236 (lambda _
5237 (substitute* "CMakeLists.txt"
5238 ;; CMakeLists.txt hard-codes runpath to just the libdir.
5239 ;; Remove it so the configure flag is respected.
5240 (("SET\\(CMAKE_INSTALL_RPATH .*") ""))
5241 #t)))))
5242 (native-inputs
5243 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
5244 ("gobject-introspection" ,gobject-introspection)
5245 ("gperf" ,gperf)
5246 ("intltool" ,intltool)
5247 ("pkg-config" ,pkg-config)
5248 ("vala" ,vala)
5249 ("python" ,python-wrapper)))
5250 (propagated-inputs
5251 ;; These are all in the Requires field of .pc files.
5252 `(("gtk+" ,gtk+)
5253 ("libical" ,libical)
5254 ("libsecret" ,libsecret)
5255 ("libsoup" ,libsoup)
5256 ("nss" ,nss)
5257 ("sqlite" ,sqlite)))
5258 (inputs
5259 `(("bdb" ,bdb)
5260 ("gcr" ,gcr)
5261 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
5262 ("json-glib" ,json-glib)
5263 ("libcanberra" ,libcanberra)
5264 ("libgweather" ,libgweather)
5265 ("mit-krb5" ,mit-krb5)
5266 ("openldap" ,openldap)
5267 ("webkitgtk" ,webkitgtk)))
5268 (synopsis "Store address books and calendars")
5269 (home-page "https://wiki.gnome.org/Apps/Evolution")
5270 (description
5271 "This package provides a unified backend for programs that work with
5272 contacts, tasks, and calendar information. It was originally developed for
5273 Evolution (hence the name), but is now used by other packages as well.")
5274 (license license:lgpl2.0)))
5275
5276 (define-public caribou
5277 (package
5278 (name "caribou")
5279 (version "0.4.21")
5280 (source (origin
5281 (method url-fetch)
5282 (uri (string-append "mirror://gnome/sources/" name "/"
5283 (version-major+minor version) "/"
5284 name "-" version ".tar.xz"))
5285 (sha256
5286 (base32
5287 "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
5288 (build-system glib-or-gtk-build-system)
5289 (arguments
5290 '(#:phases
5291 (modify-phases %standard-phases
5292 (add-before
5293 'build 'pre-build
5294 (lambda* (#:key outputs #:allow-other-keys)
5295 (let ((out (assoc-ref outputs "out")))
5296 ;; Use absolute shared library path in Caribou-1.0.typelib.
5297 (substitute* "libcaribou/Makefile"
5298 (("--shared-library=libcaribou.so")
5299 (string-append "--shared-library="
5300 out "/lib/libcaribou.so")))
5301 #t)))
5302 (add-after 'install 'wrap-programs
5303 (lambda* (#:key outputs #:allow-other-keys)
5304 (let* ((out (assoc-ref outputs "out"))
5305 (python-path (getenv "PYTHONPATH"))
5306 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
5307 (for-each
5308 (lambda (prog)
5309 (wrap-program prog
5310 `("PYTHONPATH" ":" prefix (,python-path))
5311 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
5312 (list (string-append out "/bin/caribou-preferences")
5313 (string-append out "/libexec/antler-keyboard"))))
5314 #t)))))
5315 (native-inputs
5316 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5317 ("gobject-introspection" ,gobject-introspection)
5318 ("intltool" ,intltool)
5319 ("pkg-config" ,pkg-config)
5320 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
5321 ("vala" ,vala)
5322 ("xsltproc" ,libxslt)))
5323 (propagated-inputs
5324 ;; caribou-1.0.pc refers to all these.
5325 `(("libgee" ,libgee)
5326 ("libxklavier" ,libxklavier)
5327 ("libxtst" ,libxtst)
5328 ("gtk+" ,gtk+)))
5329 (inputs
5330 `(("clutter" ,clutter)
5331 ("dconf" ,dconf)
5332 ("gtk+-2" ,gtk+-2)
5333 ("python-pygobject" ,python2-pygobject)))
5334 (synopsis "Text entry and UI navigation application")
5335 (home-page "https://wiki.gnome.org/Projects/Caribou")
5336 (description
5337 "Caribou is an input assistive technology intended for switch and pointer
5338 users.")
5339 (license license:lgpl2.1)))
5340
5341 (define-public network-manager
5342 (package
5343 (name "network-manager")
5344 (version "1.14.4")
5345 (source (origin
5346 (method url-fetch)
5347 (uri (string-append "mirror://gnome/sources/NetworkManager/"
5348 (version-major+minor version) "/"
5349 "NetworkManager-" version ".tar.xz"))
5350 (patches (search-patches "nm-plugin-path.patch"))
5351 (sha256
5352 (base32
5353 "064cgj9za0kzarks0lrv0qw2ysdphb5l97iw0c964bfiqzjfv8rm"))
5354 (modules '((guix build utils)))
5355 (snippet
5356 '(begin
5357 (substitute* "src/devices/wwan/nm-modem-manager.c"
5358 (("systemd") "elogind"))
5359 #t))))
5360 (build-system gnu-build-system)
5361 (outputs '("out"
5362 "doc")) ; 8 MiB of gtk-doc HTML
5363 (arguments
5364 '(#:configure-flags
5365 (let ((out (assoc-ref %outputs "out"))
5366 (doc (assoc-ref %outputs "doc"))
5367 (dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
5368 "/sbin/dhclient")))
5369 (list "--with-libnm-glib" ; needed by network-manager-applet
5370 "--with-systemd-journal=no"
5371 "--with-session-tracking=elogind"
5372 "--with-suspend-resume=elogind"
5373 "--with-consolekit=no"
5374 "--with-crypto=gnutls"
5375 "--disable-config-plugin-ibft"
5376 "--sysconfdir=/etc"
5377 "--localstatedir=/var"
5378 (string-append "--with-udev-dir="
5379 out "/lib/udev")
5380 (string-append "--with-dbus-sys-dir="
5381 out "/etc/dbus-1/system.d")
5382 (string-append "--with-html-dir="
5383 doc "/share/gtk-doc/html")
5384 (string-append "--with-dhclient=" dhclient)))
5385 #:phases
5386 (modify-phases %standard-phases
5387 ;; This bare "ls" invocation breaks some tests.
5388 (add-after 'unpack 'patch-ls-invocation
5389 (lambda _
5390 (substitute* "build-aux/ltmain.sh"
5391 (("`ls -")
5392 (string-append "`" (which "ls") " -")))
5393 #t))
5394 (add-before 'configure 'pre-configure
5395 (lambda _
5396 ;; These tests try to test aspects of network-manager's
5397 ;; functionality within restricted containers, but they don't
5398 ;; cope with being already in the Guix build jail as that jail
5399 ;; lacks some features that they would like to proxy over (like
5400 ;; a /sys mount).
5401 (substitute* '("Makefile.in")
5402 (("src/platform/tests/test-address-linux") " ")
5403 (("src/platform/tests/test-cleanup-linux") " ")
5404 (("src/platform/tests/test-link-linux") " ")
5405 (("src/platform/tests/test-route-linux") " ")
5406 (("src/devices/tests/test-acd") "")
5407 (("src/devices/tests/test-arping") " ")
5408 (("src/devices/tests/test-lldp") " ")
5409 (("src/tests/test-route-manager-linux") " "))
5410 #t))
5411 (add-after 'unpack 'delete-failing-tests
5412 (lambda _
5413 ;; FIXME: These three tests fail for unknown reasons.
5414 ;; ERROR:libnm-core/tests/test-general.c:5842:
5415 ;; _json_config_check_valid: assertion failed (res == expected): (1 == 0)
5416 ;; ERROR:libnm-core/tests/test-keyfile.c:647:
5417 ;; test_team_conf_read_invalid: assertion failed: (nm_setting_team_get_config (s_team) == NULL)
5418 ;; ERROR:libnm-core/tests/test-setting.c:907:
5419 ;; _test_team_config_sync: assertion failed: (nm_streq0 (nm_setting_team_get_runner (s_team), runner))
5420 (substitute* "Makefile.in"
5421 (("libnm-core/tests/test-general") " ")
5422 (("libnm-core/tests/test-keyfile") " ")
5423 (("libnm-core/tests/test-setting\\$\\(EXEEXT\\)") " "))
5424 #t))
5425 (add-before 'check 'pre-check
5426 (lambda _
5427 ;; For the missing /etc/machine-id.
5428 (setenv "DBUS_FATAL_WARNINGS" "0")
5429 #t))
5430 (replace 'install
5431 (lambda _
5432 (invoke "make"
5433 "sysconfdir=/tmp"
5434 "rundir=/tmp"
5435 "statedir=/tmp"
5436 "nmstatedir=/tmp/nm"
5437 "install")
5438 #t)))))
5439 (propagated-inputs
5440 `(("glib" ,glib)))
5441 (native-inputs
5442 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
5443 ("gobject-introspection" ,gobject-introspection)
5444 ("docbook-xsl" ,docbook-xsl)
5445 ("intltool" ,intltool)
5446 ("libxslt" ,libxslt)
5447 ("libxml2" ,libxml2)
5448 ("pkg-config" ,pkg-config)
5449 ;; For testing.
5450 ("python" ,python-wrapper)
5451 ("python-dbus" ,python-dbus)
5452 ("python-pygobject" ,python-pygobject)))
5453 (inputs
5454 `(("coreutils" ,coreutils) ; for ls
5455 ("curl" ,curl)
5456 ("cyrus-sasl" ,cyrus-sasl)
5457 ("dbus-glib" ,dbus-glib)
5458 ("dnsmasq" ,dnsmasq)
5459 ("eudev" ,eudev)
5460 ("gnutls" ,gnutls)
5461 ("iptables" ,iptables)
5462 ("isc-dhcp" ,isc-dhcp)
5463 ("jansson" ,jansson)
5464 ("libgcrypt" ,libgcrypt)
5465 ("libgudev" ,libgudev)
5466 ("libndp" ,libndp)
5467 ("libnl" ,libnl)
5468 ("libsoup" ,libsoup)
5469 ("modem-manager" ,modem-manager)
5470 ("newt" ,newt) ;for the 'nmtui' console interface
5471 ("polkit" ,polkit)
5472 ("ppp" ,ppp)
5473 ("readline" ,readline)
5474 ("util-linux" ,util-linux)
5475 ("elogind" ,elogind)))
5476 (synopsis "Network connection manager")
5477 (home-page "https://www.gnome.org/projects/NetworkManager/")
5478 (description
5479 "NetworkManager is a system network service that manages your network
5480 devices and connections, attempting to keep active network connectivity when
5481 available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE
5482 devices, and provides VPN integration with a variety of different VPN
5483 services.")
5484 (license license:gpl2+)
5485 (properties '((upstream-name . "NetworkManager")))))
5486
5487 (define-public network-manager-openvpn
5488 (package
5489 (name "network-manager-openvpn")
5490 ;; Updating? Check whether network-manager-applet still needs libnm_gtk.
5491 (version "1.8.10")
5492 (source (origin
5493 (method url-fetch)
5494 (uri (string-append
5495 "mirror://gnome/sources/NetworkManager-openvpn/"
5496 (version-major+minor version)
5497 "/NetworkManager-openvpn-" version ".tar.xz"))
5498 (sha256
5499 (base32
5500 "1vri49yff4lj13dnzkpq9nx3a4z1bmbrv807r151plj8m1mwhg5g"))))
5501 (build-system gnu-build-system)
5502 (arguments
5503 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
5504 #:phases
5505 (modify-phases %standard-phases
5506 (add-after 'configure 'patch-path
5507 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
5508 (let* ((ovpn (string-append (assoc-ref inputs "openvpn")
5509 "/sbin/openvpn"))
5510 (modprobe (string-append (assoc-ref inputs "kmod")
5511 "/bin/modprobe"))
5512 (pretty-ovpn (string-append "\"" ovpn "\"")))
5513 (for-each
5514 (lambda (file)
5515 (substitute* file
5516 (("\"/usr/local/sbin/openvpn\"") pretty-ovpn)
5517 (("\"/usr/sbin/openvpn\"") pretty-ovpn)
5518 (("\"/sbin/openvpn\"") pretty-ovpn)
5519 (("/sbin/modprobe") modprobe)))
5520 '("src/nm-openvpn-service.c" "properties/nm-openvpn-editor.c")))
5521 #t)))))
5522 (native-inputs
5523 `(("pkg-config" ,pkg-config)
5524 ("intltool" ,intltool)))
5525 (inputs
5526 `(("gtk+" ,gtk+)
5527 ("kmod" ,kmod)
5528 ("openvpn" ,openvpn)
5529 ("network-manager" ,network-manager)
5530 ("network-manager-applet" ,network-manager-applet) ;for libnma
5531 ("libsecret" ,libsecret)))
5532 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
5533 (synopsis "OpenVPN plug-in for NetworkManager")
5534 (description
5535 "This extension of NetworkManager allows it to take care of connections
5536 to virtual private networks (VPNs) via OpenVPN.")
5537 (license license:gpl2+)
5538 (properties `((upstream-name . "NetworkManager-openvpn")))))
5539
5540 (define-public network-manager-vpnc
5541 (package
5542 (name "network-manager-vpnc")
5543 (version "1.2.6")
5544 (source (origin
5545 (method url-fetch)
5546 (uri (string-append
5547 "mirror://gnome/sources/NetworkManager-vpnc/"
5548 (version-major+minor version)
5549 "/NetworkManager-vpnc-" version ".tar.xz"))
5550 (sha256
5551 (base32
5552 "1js5lwcsqws4klgypfxl4ikmakv7v7xgddij1fj6b0y0qicx0kyy"))))
5553 (build-system gnu-build-system)
5554 (arguments
5555 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
5556 #:phases
5557 (modify-phases %standard-phases
5558 (add-after 'configure 'patch-path
5559 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
5560 (let* ((vpnc (string-append (assoc-ref inputs "vpnc")
5561 "/sbin/vpnc"))
5562 (modprobe (string-append (assoc-ref inputs "kmod")
5563 "/bin/modprobe"))
5564 (pretty-ovpn (string-append "\"" vpnc "\"")))
5565 (substitute* "src/nm-vpnc-service.c"
5566 (("\"/usr/local/sbin/vpnc\"") pretty-ovpn)
5567 (("\"/usr/sbin/vpnc\"") pretty-ovpn)
5568 (("\"/sbin/vpnc\"") pretty-ovpn)
5569 (("/sbin/modprobe") modprobe)))
5570 #t)))))
5571 (native-inputs
5572 `(("pkg-config" ,pkg-config)
5573 ("intltool" ,intltool)))
5574 (inputs
5575 `(("gtk+" ,gtk+)
5576 ("kmod" ,kmod)
5577 ("vpnc" ,vpnc)
5578 ("network-manager" ,network-manager)
5579 ("network-manager-applet" ,network-manager-applet) ;for libnma
5580 ("libsecret" ,libsecret)))
5581 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
5582 (synopsis "VPNC plug-in for NetworkManager")
5583 (description
5584 "Support for configuring virtual private networks based on VPNC.
5585 Compatible with Cisco VPN concentrators configured to use IPsec.")
5586 (license license:gpl2+)
5587 (properties `((upstream-name . "NetworkManager-vpnc")))))
5588
5589 (define-public network-manager-openconnect
5590 (package
5591 (name "network-manager-openconnect")
5592 (version "1.2.6")
5593 (source (origin
5594 (method url-fetch)
5595 (uri (string-append
5596 "mirror://gnome/sources/NetworkManager-openconnect/"
5597 (version-major+minor version)
5598 "/NetworkManager-openconnect-" version ".tar.xz"))
5599 (sha256
5600 (base32
5601 "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m"))))
5602 (build-system gnu-build-system)
5603 (arguments
5604 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
5605 #:phases
5606 (modify-phases %standard-phases
5607 (add-after 'configure 'patch-path
5608 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
5609 (let* ((openconnect (string-append (assoc-ref inputs "openconnect")
5610 "/sbin/openconnect"))
5611 (modprobe (string-append (assoc-ref inputs "kmod")
5612 "/bin/modprobe"))
5613 (pretty-ovpn (string-append "\"" openconnect "\"")))
5614 (substitute* "src/nm-openconnect-service.c"
5615 (("\"/usr/local/sbin/openconnect\"") pretty-ovpn)
5616 (("\"/usr/sbin/openconnect\"") pretty-ovpn)
5617 (("/sbin/modprobe") modprobe)))
5618 #t)))))
5619 (native-inputs
5620 `(("intltool" ,intltool)
5621 ("network-manager-applet" ,network-manager-applet) ;for libnma
5622 ("pkg-config" ,pkg-config)))
5623 (inputs
5624 `(("gcr" ,gcr)
5625 ("gtk+" ,gtk+)
5626 ("kmod" ,kmod)
5627 ("libsecret" ,libsecret)
5628 ("libxml2" ,libxml2)
5629 ("network-manager" ,network-manager)
5630 ("openconnect" ,openconnect)))
5631 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
5632 (synopsis "OpenConnect plug-in for NetworkManager")
5633 (description
5634 "This extension of NetworkManager allows it to take care of connections
5635 to @acronym{VPNs, virtual private networks} via OpenConnect, an open client for
5636 Cisco's AnyConnect SSL VPN.")
5637 (license license:gpl2+)
5638 (properties `((upstream-name . "NetworkManager-openconnect")
5639
5640 ;; The 'etc/dbus-1/system.d/nm-openconnect-service.conf'
5641 ;; file refers to account "nm-openconnect". Specify it here
5642 ;; so that 'network-manager-service-type' creates it.
5643 (user-accounts . ("nm-openconnect"))))))
5644
5645 (define-public mobile-broadband-provider-info
5646 (package
5647 (name "mobile-broadband-provider-info")
5648 (version "20190116")
5649 (source (origin
5650 (method url-fetch)
5651 (uri (string-append
5652 "mirror://gnome/sources/"
5653 "mobile-broadband-provider-info/" version "/"
5654 "mobile-broadband-provider-info-" version ".tar.xz"))
5655 (sha256
5656 (base32
5657 "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"))))
5658 (build-system gnu-build-system)
5659 (arguments
5660 `(#:tests? #f)) ; no tests
5661 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
5662 (synopsis "Database of broadband connection configuration")
5663 (description "Database of broadband connection configuration.")
5664 (license license:public-domain)))
5665
5666 (define-public network-manager-applet
5667 (package
5668 (name "network-manager-applet")
5669 (version "1.8.24")
5670 (source (origin
5671 (method url-fetch)
5672 (uri (string-append "mirror://gnome/sources/network-manager-applet/"
5673 (version-major+minor version) "/"
5674 "network-manager-applet-" version ".tar.xz"))
5675 (sha256
5676 (base32
5677 "1gzvz4wfqfsfclqg56y954al8x6fmz71cnxlx1i4nqr7a25bp2qi"))))
5678 (build-system meson-build-system)
5679 (arguments
5680 '(#:configure-flags
5681 ;; ‘Nobody should be using this’ but network-manager-openvpn 1.8.10 does.
5682 (list "-Dlibnm_gtk=true")
5683 #:glib-or-gtk? #t))
5684 (native-inputs
5685 `(("intltool" ,intltool)
5686 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
5687 ("gobject-introspection" ,gobject-introspection)
5688 ("gtk-doc" ,gtk-doc)
5689 ("pkg-config" ,pkg-config)))
5690 (propagated-inputs
5691 ;; libnm-gtk.pc refers to all these.
5692 `(("dbus-glib" ,dbus-glib)
5693 ("gtk+" ,gtk+)
5694 ("network-manager" ,network-manager)))
5695 (inputs
5696 `(("gcr" ,gcr)
5697 ("iso-codes" ,iso-codes)
5698 ("libgudev" ,libgudev)
5699 ("libnotify" ,libnotify)
5700 ("libsecret" ,libsecret)
5701 ("libselinux" ,libselinux)
5702 ("jansson" ,jansson) ; for team support
5703 ("modem-manager" ,modem-manager)
5704 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)))
5705 (synopsis "Applet for managing network connections")
5706 (home-page "https://www.gnome.org/projects/NetworkManager/")
5707 (description
5708 "This package contains a systray applet for NetworkManager. It displays
5709 the available networks and allows users to easily switch between them.")
5710 (license license:gpl2+)))
5711
5712 (define-public libxml++
5713 (package
5714 (name "libxml++")
5715 (version "3.0.1")
5716 (source (origin
5717 (method url-fetch)
5718 (uri (string-append "mirror://gnome/sources/" name "/"
5719 (version-major+minor version) "/"
5720 name "-" version ".tar.xz"))
5721 (sha256
5722 (base32
5723 "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"))))
5724 (build-system gnu-build-system)
5725 ;; libxml++-3.0.pc refers to all these.
5726 (propagated-inputs
5727 `(("libxml2" ,libxml2)
5728 ("glibmm" ,glibmm)))
5729 (native-inputs
5730 `(("perl" ,perl)
5731 ("pkg-config" ,pkg-config)))
5732 (home-page "http://libxmlplusplus.sourceforge.net/")
5733 (synopsis "C++ wrapper for XML parser library libxml2")
5734 (description
5735 "This package provides a C++ wrapper for the XML parser library
5736 libxml2.")
5737 (license license:lgpl2.1+)))
5738
5739 (define-public libxml++-2
5740 (package
5741 (inherit libxml++)
5742 (name "libxml++")
5743 (version "2.40.1")
5744 (source (origin
5745 (method url-fetch)
5746 (uri (string-append "mirror://gnome/sources/" name "/"
5747 (version-major+minor version) "/"
5748 name "-" version ".tar.xz"))
5749 (sha256
5750 (base32
5751 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
5752
5753 (define-public gdm
5754 (package
5755 (name "gdm")
5756 (version "3.30.3")
5757 (source (origin
5758 (method url-fetch)
5759 (uri (string-append "mirror://gnome/sources/" name "/"
5760 (version-major+minor version) "/"
5761 name "-" version ".tar.xz"))
5762 (sha256
5763 (base32
5764 "15f7lz7z75krgbq8vb800afj96h8mw2fpy1s28za2911x5vgq0ak"))))
5765 (build-system glib-or-gtk-build-system)
5766 (arguments
5767 '(#:configure-flags
5768 `("--without-plymouth"
5769 "--disable-systemd-journal"
5770
5771 ;; Using --with-initial-vt=7 allows GDM to run alongside TTY 1,
5772 ;; instead of having to replace it (i.e., stopping the mingetty
5773 ;; service for TTY 1 before starting GDM).
5774 "--with-initial-vt=7"
5775
5776 ;; Use '/etc/environment' for locale settings instead of the
5777 ;; systemd-specific '/etc/locale.conf'.
5778 "--with-lang-file=/etc/environment"
5779
5780 ,(string-append "--with-udevdir="
5781 (assoc-ref %outputs "out") "/lib/udev")
5782
5783 "--localstatedir=/var"
5784 ,(string-append "--with-default-path="
5785 (string-join '("/run/setuid-programs"
5786 "/run/current-system/profile/bin"
5787 "/run/current-system/profile/sbin")
5788 ":"))
5789 ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
5790 ;; XDG_DATA_DIRS so that it finds its schemas.
5791 "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
5792 #:phases
5793 (modify-phases %standard-phases
5794 (add-before
5795 'configure 'pre-configure
5796 (lambda* (#:key inputs outputs #:allow-other-keys)
5797 ;; We don't have <systemd/sd-daemon.h>.
5798 (substitute* '("common/gdm-log.c"
5799 "daemon/gdm-server.c"
5800 "daemon/gdm-session-worker.c"
5801 "daemon/gdm-session-worker-job.c")
5802 (("#include <systemd/sd-daemon\\.h>") ""))
5803 ;; Use elogind for sd-login.
5804 (substitute* '("common/gdm-common.c"
5805 "daemon/gdm-manager.c"
5806 "libgdm/gdm-user-switching.c")
5807 (("#include <systemd/sd-login\\.h>")
5808 "#include <elogind/sd-login.h>"))
5809 ;; Check for elogind.
5810 (substitute* '("configure")
5811 (("libsystemd")
5812 "libelogind"))
5813 ;; Look for system-installed sessions in
5814 ;; /run/current-system/profile/share.
5815 (substitute* '("libgdm/gdm-sessions.c"
5816 "daemon/gdm-session.c"
5817 "daemon/gdm-display.c"
5818 "daemon/gdm-launch-environment.c")
5819 (("DATADIR \"/x")
5820 "\"/run/current-system/profile/share/x")
5821 (("DATADIR \"/wayland")
5822 "\"/run/current-system/profile/share/wayland")
5823 (("DATADIR \"/gnome")
5824 "\"/run/current-system/profile/share/gnome"))
5825 (let ((propagate '("GDM_CUSTOM_CONF"
5826 "GDM_DBUS_DAEMON"
5827 "GDM_X_SERVER"
5828 "GDM_X_SESSION"
5829 ;; XXX: Remove this once GNOME Shell is
5830 ;; a dependency of GDM.
5831 "XDG_DATA_DIRS")))
5832 (substitute* "daemon/gdm-session.c"
5833 (("set_up_session_environment \\(self\\);")
5834 (apply string-append
5835 "set_up_session_environment (self);\n"
5836 (map (lambda (name)
5837 (string-append
5838 "gdm_session_set_environment_variable "
5839 "(self, \"" name "\","
5840 "g_getenv (\"" name "\"));\n"))
5841 propagate)))))
5842 ;; Find the configuration file using an environment variable.
5843 (substitute* '("common/gdm-settings.c")
5844 (("GDM_CUSTOM_CONF")
5845 (string-append "(g_getenv(\"GDM_CUSTOM_CONF\") != NULL"
5846 " ? g_getenv(\"GDM_CUSTOM_CONF\")"
5847 " : GDM_CUSTOM_CONF)")))
5848 ;; Use service-supplied path to X.
5849 (substitute* '("daemon/gdm-server.c")
5850 (("\\(X_SERVER X_SERVER_ARG_FORMAT")
5851 "(\"%s\" X_SERVER_ARG_FORMAT, g_getenv (\"GDM_X_SERVER\")"))
5852 (substitute* '("daemon/gdm-x-session.c")
5853 (("\"dbus-daemon\"")
5854 "g_getenv (\"GDM_DBUS_DAEMON\")")
5855 (("X_SERVER")
5856 "g_getenv (\"GDM_X_SERVER\")")
5857 (("GDMCONFDIR \"/Xsession\"")
5858 "g_getenv (\"GDM_X_SESSION\")"))
5859 ;; Use an absolute path for GNOME Session.
5860 (substitute* "daemon/gdm-launch-environment.c"
5861 (("\"gnome-session\"")
5862 (string-append "\"" (assoc-ref inputs "gnome-session")
5863 "/bin/gnome-session\"")))
5864 ;; Do not automatically select the placeholder session.
5865 (substitute* "daemon/gdm-session.c"
5866 (("!g_str_has_suffix [(]base_name, \"\\.desktop\"[)]")
5867 (string-append "!g_str_has_suffix (base_name, \".desktop\") || "
5868 "(g_strcmp0(search_dirs[i], \""
5869 (assoc-ref outputs "out") "/share/gdm/BuiltInSessions/"
5870 "\") == 0 && "
5871 "g_strcmp0(base_name, \"fail.desktop\") == 0)"))
5872 (("g_error [(]\"GdmSession: no session desktop files installed, aborting\\.\\.\\.\"[)];")
5873 "{ self->priv->fallback_session_name = g_strdup(\"fail\"); goto out; }"))
5874 #t))
5875 ;; GDM requires that there be at least one desktop entry
5876 ;; file. This phase installs a hidden one that simply
5877 ;; fails. This enables users to use GDM with a
5878 ;; '~/.xsession' script with no other desktop entry files.
5879 ;; See <https://bugs.gnu.org/35068>.
5880 (add-after 'install 'install-placeholder-desktop-entry
5881 (lambda* (#:key inputs outputs #:allow-other-keys)
5882 (let* ((out (assoc-ref outputs "out"))
5883 (sessions (string-append out "/share/gdm/BuiltInSessions"))
5884 (fail (string-append sessions "/fail.desktop")))
5885 (mkdir-p sessions)
5886 (with-output-to-file fail
5887 (lambda ()
5888 (for-each
5889 display
5890 '("[Desktop Entry]\n"
5891 "Encoding=UTF-8\n"
5892 "Type=Application\n"
5893 "Name=Fail\n"
5894 "Comment=This session fails immediately.\n"
5895 "NoDisplay=true\n"
5896 "Exec=false\n"))))
5897 #t)))
5898 ;; GDM needs GNOME Session to run these applications. We link
5899 ;; their autostart files in `share/gdm/greeter/autostart'
5900 ;; because GDM explicitly tells GNOME Session to look there.
5901 ;;
5902 ;; XXX: GNOME Shell should be linked here too, but currently
5903 ;; GNOME Shell depends on GDM.
5904 (add-after 'install 'link-autostart-files
5905 (lambda* (#:key inputs outputs #:allow-other-keys)
5906 (let* ((out (assoc-ref outputs "out"))
5907 (autostart (string-append out "/share/gdm/"
5908 "greeter/autostart"))
5909 (settings (assoc-ref inputs "gnome-settings-daemon")))
5910 (mkdir-p autostart)
5911 (with-directory-excursion autostart
5912 (for-each (lambda (desktop)
5913 (symlink desktop (basename desktop)))
5914 (find-files (string-append settings "/etc/xdg"))))
5915 #t))))))
5916 (native-inputs
5917 `(("dconf" ,dconf)
5918 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5919 ("gobject-introspection" ,gobject-introspection)
5920 ("intltool" ,intltool)
5921 ("itstool" ,itstool)
5922 ("pkg-config" ,pkg-config)
5923 ("xmllint" ,libxml2)))
5924 (inputs
5925 `(("accountsservice" ,accountsservice)
5926 ("check" ,check) ; for testing
5927 ("elogind" ,elogind)
5928 ("gnome-session" ,gnome-session)
5929 ("gnome-settings-daemon" ,gnome-settings-daemon)
5930 ("gtk+" ,gtk+)
5931 ("iso-codes" ,iso-codes)
5932 ("libcanberra" ,libcanberra)
5933 ("linux-pam" ,linux-pam)))
5934 (synopsis "Display manager for GNOME")
5935 (home-page "https://wiki.gnome.org/Projects/GDM/")
5936 (description
5937 "GNOME Display Manager is a system service that is responsible for
5938 providing graphical log-ins and managing local and remote displays.")
5939 (license license:gpl2+)))
5940
5941 (define-public libgtop
5942 (package
5943 (name "libgtop")
5944 (version "2.40.0")
5945 (source (origin
5946 (method url-fetch)
5947 (uri (string-append "mirror://gnome/sources/libgtop/"
5948 (version-major+minor version) "/"
5949 "libgtop-" version ".tar.xz"))
5950 (sha256
5951 (base32
5952 "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq"))))
5953 (build-system gnu-build-system)
5954 (native-inputs
5955 `(("gobject-introspection" ,gobject-introspection)
5956 ("intltool" ,intltool)
5957 ("perl" ,perl)
5958 ("pkg-config" ,pkg-config)))
5959 (propagated-inputs
5960 `(("glib" ,glib))) ; required by libgtop-2.0.pc
5961 (synopsis "Portable system access library")
5962 (home-page "https://www.gnome.org/")
5963 (description
5964 "LibGTop is a library to get system specific data such as CPU and memory
5965 usage and information about running processes.")
5966 (license license:gpl2+)))
5967
5968 (define-public gnome-bluetooth
5969 (package
5970 (name "gnome-bluetooth")
5971 (version "3.28.0")
5972 (source (origin
5973 (method url-fetch)
5974 (uri (string-append "mirror://gnome/sources/" name "/"
5975 (version-major+minor version) "/"
5976 name "-" version ".tar.xz"))
5977 (sha256
5978 (base32
5979 "0q7yzklrlayj99risj096mr5x35anx94wvr6nbf6pwbvvzv7453p"))))
5980 (build-system meson-build-system)
5981 (native-inputs
5982 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
5983 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
5984 ("gobject-introspection" ,gobject-introspection)
5985 ("intltool" ,intltool)
5986 ("pkg-config" ,pkg-config)
5987 ("xmllint" ,libxml2)))
5988 (propagated-inputs
5989 ;; gnome-bluetooth-1.0.pc refers to all these.
5990 `(("gtk+" ,gtk+)
5991 ("udev" ,eudev)))
5992 (inputs
5993 `(("libcanberra" ,libcanberra)
5994 ("libnotify" ,libnotify)))
5995 (synopsis "GNOME Bluetooth subsystem")
5996 (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
5997 (description
5998 "This package contains tools for managing and manipulating Bluetooth
5999 devices using the GNOME desktop.")
6000 (license license:lgpl2.1+)))
6001
6002 (define-public gnome-control-center
6003 (package
6004 (name "gnome-control-center")
6005 (version "3.30.3")
6006 (source (origin
6007 (method url-fetch)
6008 (uri (string-append "mirror://gnome/sources/" name "/"
6009 (version-major+minor version) "/"
6010 name "-" version ".tar.xz"))
6011 (sha256
6012 (base32
6013 "0gih1cmqbv803kp30704sllghb0impa0mmv3j8pndfg4zr2mnq9r"))
6014 (patches
6015 (search-patches "gnome-control-center-udisks.patch"))))
6016 (build-system meson-build-system)
6017 (arguments
6018 '(#:glib-or-gtk? #t
6019 #:configure-flags
6020 (list "-Dcheese=false"
6021 (string-append "-Dgnome_session_libexecdir="
6022 (assoc-ref %build-inputs "gnome-session")
6023 "/libexec"))
6024 #:phases
6025 (modify-phases %standard-phases
6026 (add-before 'configure 'patch-paths
6027 (lambda* (#:key inputs #:allow-other-keys)
6028 (let ((libc (assoc-ref inputs "libc"))
6029 (tzdata (assoc-ref inputs "tzdata"))
6030 (libgnomekbd (assoc-ref inputs "libgnomekbd"))
6031 (nm-applet (assoc-ref inputs "network-manager-applet"))
6032 (gnome-desktop (assoc-ref inputs "gnome-desktop")))
6033 (substitute* "panels/datetime/tz.h"
6034 (("/usr/share/zoneinfo/zone.tab")
6035 (string-append tzdata "/share/zoneinfo/zone.tab")))
6036 (substitute* "tests/datetime/test-endianess.c"
6037 (("/usr/share/locale")
6038 (string-append libc "/share/locale")))
6039 (substitute* "panels/region/cc-region-panel.c"
6040 (("\"gkbd-keyboard-display")
6041 (string-append "\"" libgnomekbd
6042 "/bin/gkbd-keyboard-display")))
6043 (substitute* '("panels/network/net-device-wifi.c"
6044 "panels/network/net-device.c"
6045 "panels/network/connection-editor/net-connection-editor.c")
6046 (("\"nm-connection-editor")
6047 (string-append "\"" nm-applet
6048 "/bin/nm-connection-editor")))
6049 (substitute* '("panels/user-accounts/run-passwd.c")
6050 (("/usr/bin/passwd")
6051 "/run/setuid-programs/passwd"))
6052 (substitute* "panels/info/cc-info-overview-panel.c"
6053 (("DATADIR \"/gnome/gnome-version.xml\"")
6054 (string-append "\"" gnome-desktop
6055 "/share/gnome/gnome-version.xml\"")))
6056 #t))))))
6057 (native-inputs
6058 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
6059 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6060 ("intltool" ,intltool)
6061 ("pkg-config" ,pkg-config)
6062 ("xsltproc" ,libxslt)))
6063 (inputs
6064 `(("accountsservice" ,accountsservice)
6065 ("clutter-gtk" ,clutter-gtk)
6066 ("colord-gtk" ,colord-gtk)
6067 ("cups" ,cups)
6068 ("dconf" ,dconf)
6069 ("docbook-xsl" ,docbook-xsl)
6070 ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
6071 ("gnome-bluetooth" ,gnome-bluetooth)
6072 ("gnome-desktop" ,gnome-desktop)
6073 ("gnome-online-accounts" ,gnome-online-accounts)
6074 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6075 ("gnome-session" ,gnome-session)
6076 ("gnome-settings-daemon" ,gnome-settings-daemon)
6077 ("grilo" ,grilo)
6078 ("ibus" ,ibus)
6079 ("libcanberra" ,libcanberra)
6080 ("libgnomekbd" ,libgnomekbd)
6081 ("libgudev" ,libgudev)
6082 ("libgtop" ,libgtop)
6083 ("libpwquality" ,libpwquality)
6084 ("libsecret" ,libsecret)
6085 ("libsoup" ,libsoup)
6086 ("libxml2" ,libxml2)
6087 ("libwacom" ,libwacom)
6088 ("mesa" ,mesa)
6089 ("mit-krb5" ,mit-krb5)
6090 ("modem-manager" ,modem-manager)
6091 ("network-manager-applet" ,network-manager-applet)
6092 ("polkit" ,polkit)
6093 ("pulseaudio" ,pulseaudio)
6094 ("smbclient" ,samba)
6095 ("tzdata" ,tzdata)
6096 ("udisks" ,udisks)
6097 ("upower" ,upower)))
6098 (synopsis "Utilities to configure the GNOME desktop")
6099 (home-page "https://www.gnome.org/")
6100 (description
6101 "This package contains configuration applets for the GNOME desktop,
6102 allowing to set accessibility configuration, desktop fonts, keyboard and mouse
6103 properties, sound setup, desktop theme and background, user interface
6104 properties, screen resolution, and other GNOME parameters.")
6105 (license license:gpl2+)))
6106
6107 (define-public gnome-shell
6108 (package
6109 (name "gnome-shell")
6110 (version "3.30.2")
6111 (source (origin
6112 (method url-fetch)
6113 (uri (string-append "mirror://gnome/sources/" name "/"
6114 (version-major+minor version) "/"
6115 name "-" version ".tar.xz"))
6116 (sha256
6117 (base32
6118 "0kacd4w9lc5finsvs170i7827qkxwd1ddj0g2giizwffpjdjqqr2"))
6119 (patches (search-patches "gnome-shell-theme.patch"))
6120 (modules '((guix build utils)))
6121 (snippet
6122 #~(begin
6123 ;; Copy images for use on the GDM log-in screen.
6124 (copy-file #$(file-append %artwork-repository
6125 "/slim/0.x/background.png")
6126 "data/theme/guix-background.png")
6127 (copy-file #$(file-append %artwork-repository
6128 "/logo/Guix-horizontal-white.svg")
6129 "data/theme/guix-logo.svg")
6130 #t))))
6131 (build-system meson-build-system)
6132 (arguments
6133 `(#:glib-or-gtk? #t
6134 #:disallowed-references ((,glib "bin")
6135 ,inkscape ,libxslt
6136 ,ruby-sass)
6137 #:configure-flags
6138 (list "-Dsystemd=false"
6139 ;; Otherwise, the RUNPATH will lack the final path component.
6140 (string-append "-Dc_link_args=-Wl,-rpath="
6141 (assoc-ref %outputs "out")
6142 "/lib/gnome-shell"))
6143
6144 #:modules ((guix build meson-build-system)
6145 (guix build utils)
6146 (srfi srfi-1))
6147
6148 #:phases
6149 (modify-phases %standard-phases
6150 (add-after 'unpack 'fix-keysdir
6151 (lambda* (#:key outputs #:allow-other-keys)
6152 (let* ((out (assoc-ref outputs "out"))
6153 (keysdir (string-append
6154 out "/share/gnome-control-center/keybindings")))
6155 (substitute* "meson.build"
6156 (("keysdir =.*")
6157 (string-append "keysdir = '" keysdir "'\n")))
6158 #t)))
6159 (add-before 'configure 'convert-logo-to-png
6160 (lambda* (#:key inputs #:allow-other-keys)
6161 ;; Convert the logo from SVG to PNG.
6162 (invoke "inkscape" "--export-png=data/theme/guix-logo.png"
6163 "data/theme/guix-logo.svg")))
6164 (add-before 'configure 'record-absolute-file-names
6165 (lambda* (#:key inputs #:allow-other-keys)
6166 (substitute* "js/misc/ibusManager.js"
6167 (("'ibus-daemon'")
6168 (string-append "'" (assoc-ref inputs "ibus")
6169 "/bin/ibus-daemon'")))
6170 (substitute* "js/ui/status/keyboard.js"
6171 (("'gkbd-keyboard-display'")
6172 (string-append "'" (assoc-ref inputs "libgnomekbd")
6173 "/bin/gkbd-keyboard-display'")))
6174 #t))
6175 (add-before 'check 'pre-check
6176 (lambda* (#:key inputs #:allow-other-keys)
6177 ;; Tests require a running X server.
6178 (system "Xvfb :1 &")
6179 (setenv "DISPLAY" ":1")
6180 #t))
6181 (add-after 'install 'wrap-programs
6182 (lambda* (#:key inputs outputs #:allow-other-keys)
6183 (let ((out (assoc-ref outputs "out"))
6184 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6185 (python-path (getenv "PYTHONPATH")))
6186 (wrap-program (string-append out "/bin/gnome-shell")
6187 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6188 ;; FIXME: gnome-shell loads these libraries with unqualified
6189 ;; names only, so they need to be on LD_LIBRARY_PATH. The
6190 ;; alternative might be to patch gnome-shell.
6191 `("LD_LIBRARY_PATH" ":" prefix
6192 ,(map (lambda (pkg)
6193 (string-append (assoc-ref inputs pkg) "/lib"))
6194 '("gdk-pixbuf"
6195 "gnome-bluetooth" "librsvg" "libgweather"))))
6196 (for-each
6197 (lambda (prog)
6198 (wrap-program (string-append out "/bin/" prog)
6199 `("PYTHONPATH" ":" prefix (,python-path))
6200 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6201 '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
6202 #t)))
6203 (replace 'glib-or-gtk-wrap
6204 (let ((wrap (assoc-ref %standard-phases 'glib-or-gtk-wrap)))
6205 (lambda* (#:key inputs outputs #:allow-other-keys #:rest rest)
6206 ;; By default Inkscape et al. would end up in the XDG_DATA_DIRS
6207 ;; settings of the wrappers created by the 'glib-or-gtk-wrap'
6208 ;; phase. Fix that since we don't need these.
6209 (wrap #:inputs (fold alist-delete inputs
6210 '("inkscape" "intltool" "glib:bin"))
6211 #:outputs outputs)))))))
6212 (native-inputs
6213 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6214 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6215 ("gobject-introspection" ,gobject-introspection)
6216 ("inkscape" ,inkscape)
6217 ("intltool" ,intltool)
6218 ("pkg-config" ,pkg-config)
6219 ("python" ,python)
6220 ("ruby-sass" ,ruby-sass)
6221 ("sassc" ,sassc)
6222 ("xsltproc" ,libxslt)
6223 ;; For tests
6224 ("xorg-server" ,xorg-server-for-tests)))
6225 (inputs
6226 `(("accountsservice" ,accountsservice)
6227 ("caribou" ,caribou)
6228 ("docbook-xsl" ,docbook-xsl)
6229 ("evolution-data-server" ,evolution-data-server)
6230 ("gcr" ,gcr)
6231 ("gdm" ,gdm)
6232 ("gdk-pixbuf" ,gdk-pixbuf+svg)
6233 ("gjs" ,gjs)
6234 ("gnome-bluetooth" ,gnome-bluetooth)
6235 ("gnome-desktop" ,gnome-desktop)
6236 ("gnome-settings-daemon" ,gnome-settings-daemon)
6237 ("gst-plugins-base" ,gst-plugins-base)
6238 ("ibus" ,ibus)
6239 ("libcanberra" ,libcanberra)
6240 ("libcroco" ,libcroco)
6241 ("libgnomekbd" ,libgnomekbd) ;for gkbd-keyboard-display
6242 ("libgweather" ,libgweather)
6243 ("libsoup" ,libsoup)
6244 ("mesa-headers" ,mesa-headers)
6245 ("mutter" ,mutter)
6246 ("network-manager-applet" ,network-manager-applet)
6247 ("polkit" ,polkit)
6248 ("pulseaudio" ,pulseaudio)
6249 ("python-pygobject" ,python-pygobject)
6250 ("startup-notification" ,startup-notification)
6251 ("telepathy-logger" ,telepathy-logger)
6252 ("upower" ,upower)
6253 ;; XXX: These requirements were added in 3.24, but no mention in NEWS.
6254 ;; Missing propagation? See also: <https://bugs.gnu.org/27264>
6255 ("librsvg" ,librsvg)
6256 ("geoclue" ,geoclue)))
6257 (synopsis "Desktop shell for GNOME")
6258 (home-page "https://wiki.gnome.org/Projects/GnomeShell")
6259 (description
6260 "GNOME Shell provides core user interface functions for the GNOME desktop,
6261 like switching to windows and launching applications.")
6262 (license license:gpl2+)))
6263
6264 (define-public gtk-vnc
6265 (package
6266 (name "gtk-vnc")
6267 (version "0.9.0")
6268 (source
6269 (origin
6270 (method url-fetch)
6271 (uri (string-append "mirror://gnome/sources/" name "/"
6272 (version-major+minor version) "/"
6273 name "-" version ".tar.xz"))
6274 (sha256
6275 (base32
6276 "1dya1wc9vis8h0fv625pii1n70cckf1xjg1m2hndz989d118i6is"))))
6277 (build-system gnu-build-system)
6278 (arguments
6279 '(#:configure-flags '("--with-gtk=3.0")))
6280 (propagated-inputs
6281 `(("gtk+" ,gtk+))) ; required by gtk-vnc-2.0.pc.
6282 (inputs
6283 `(("cyrus-sasl" ,cyrus-sasl)
6284 ("gnutls" ,gnutls)
6285 ("libgcrypt" ,libgcrypt)
6286 ("pulseaudio" ,pulseaudio)))
6287 (native-inputs
6288 `(("glib:bin" ,glib "bin")
6289 ("gobject-introspection" ,gobject-introspection)
6290 ("intltool" ,intltool)
6291 ("pkg-config" ,pkg-config)
6292 ("python-wrapper" ,python-wrapper)
6293 ("vala" ,vala)))
6294 (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
6295 (synopsis "VNC viewer widget for GTK+")
6296 (description
6297 "GTK-VNC is a VNC viewer widget for GTK+, used by remote desktop viewing
6298 applications, for instance the Vinagre client, GNOME Boxes and virt-viewer.
6299 GTK-VNC implements client side RFB protocol and authentication extensions such
6300 as SASL, TLS and VeNCrypt. Additionally it supports encoding extensions.")
6301 (license license:lgpl2.1+)))
6302
6303 (define-public gnome-autoar
6304 (package
6305 (name "gnome-autoar")
6306 (version "0.2.3")
6307 (source (origin
6308 (method url-fetch)
6309 (uri (string-append "mirror://gnome/sources/" name "/"
6310 (version-major+minor version) "/"
6311 name "-" version ".tar.xz"))
6312 (sha256
6313 (base32
6314 "02i4zgqqqj56h7bcys6dz7n78m4nj2x4dv1ggjmnrk98n06xpsax"))))
6315 (build-system glib-or-gtk-build-system)
6316 (native-inputs
6317 `(("gnome-common" ,gnome-common)
6318 ("gobject-introspection" ,gobject-introspection)
6319 ("pkg-config" ,pkg-config)))
6320 (propagated-inputs
6321 `(("libarchive" ,libarchive))) ; XXX document why
6322 (inputs
6323 `(("gtk+" ,gtk+)))
6324 (synopsis "Archives integration support for GNOME")
6325 (home-page "https://git.gnome.org/browse/gnome-autoar/")
6326 (description
6327 "GNOME Autoar is a library which makes creating and extracting archives
6328 easy, safe, and automatic.")
6329 (license license:lgpl2.1+)))
6330
6331 (define-public tracker
6332 (package
6333 (name "tracker")
6334 (version "2.0.4")
6335 (source (origin
6336 (method url-fetch)
6337 (uri (string-append "mirror://gnome/sources/tracker/"
6338 (version-major+minor version) "/"
6339 "tracker-" version ".tar.xz"))
6340 (sha256
6341 (base32
6342 "1mfc5lv820kr7ssi7hldn25gmshh65k19kh478qjsnb64sshsbyf"))))
6343 (build-system glib-or-gtk-build-system)
6344 (arguments
6345 `(#:phases
6346 (modify-phases %standard-phases
6347 (add-after 'unpack 'disable-broken-tests
6348 (lambda _
6349 ;; FIXME: Most of these fail with GLib-GIO-FATAL-ERROR: Settings
6350 ;; schema 'org.freedesktop.Tracker.FTS' is not installed.
6351 (substitute* "tests/libtracker-miner/Makefile.in"
6352 (("tracker-file-notifier-test\\$\\(EXEEXT\\)") "")
6353 (("tracker-miner-fs-test\\$\\(EXEEXT\\)") "")
6354 (("tracker-monitor-test\\$\\(EXEEXT\\)") ""))
6355 (substitute* "tests/libtracker-fts/Makefile.in"
6356 (("tracker-fts-test\\$\\(EXEEXT\\)") ""))
6357 (substitute* "tests/libtracker-data/Makefile.in"
6358 (("tracker-ontology\\$\\(EXEEXT\\)") "")
6359 (("tracker-ontology-change\\$\\(EXEEXT\\)") "")
6360 (("tracker-backup\\$\\(EXEEXT\\)") "")
6361 (("tracker-sparql-blank\\$\\(EXEEXT\\)") "")
6362 (("tracker-sparql\\$\\(EXEEXT\\)") ""))
6363 ;; These fail because the SPARQL backend could not be loaded.
6364 ;; That's because /etc/machine-id is missing, but
6365 ;; DBUS_FATAL_WARNINGS does not help here.
6366 (substitute* "tests/libtracker-sparql/Makefile.in"
6367 (("tracker-gb-737023-test\\$\\(EXEEXT\\)") "")
6368 (("tracker-sparql-test\\$\\(EXEEXT\\)") ""))
6369 (substitute* "tests/tracker-steroids/Makefile.in"
6370 (("tracker-test\\$\\(EXEEXT\\)") ""))
6371 #t))
6372 ;; Two tests fail if LANG is not set.
6373 (add-before 'check 'pre-check
6374 (lambda _
6375 (setenv "LANG" "en_US.UTF-8")
6376 ;; For the missing /etc/machine-id.
6377 (setenv "DBUS_FATAL_WARNINGS" "0")
6378 #t)))))
6379 (native-inputs
6380 `(("gnome-common" ,gnome-common)
6381 ("gobject-introspection" ,gobject-introspection)
6382 ("intltool" ,intltool)
6383 ("pkg-config" ,pkg-config)
6384 ("vala" ,vala)))
6385 (inputs
6386 `(("gtk+" ,gtk+)
6387 ("dbus" ,dbus)
6388 ("gstreamer" ,gstreamer)
6389 ("gst-plugins-base" ,gst-plugins-base)
6390 ("sqlite" ,sqlite)
6391 ("python" ,python)
6392 ("poppler" ,poppler)
6393 ("libgsf" ,libgsf)
6394 ("libexif" ,libexif)
6395 ("libpng" ,libpng)
6396 ("libtiff" ,libtiff)
6397 ("libvorbis" ,libvorbis)
6398 ("flac" ,flac)
6399 ("totem-pl-parser" ,totem-pl-parser)
6400 ("zlib" ,zlib)
6401 ("exempi" ,exempi)
6402 ("libxml2" ,libxml2)
6403 ("upower" ,upower)
6404 ("libunistring" ,libunistring)
6405 ("giflib" ,giflib)
6406 ("json-glib" ,json-glib)
6407 ("openjpeg" ,openjpeg-1)
6408 ("libosinfo" ,libosinfo)
6409 ("libcue" ,libcue)
6410 ("libseccomp" ,libseccomp)
6411 ("libsoup" ,libsoup)
6412 ("libuuid" ,util-linux)))
6413 (synopsis "Metadata database, indexer and search tool")
6414 (home-page "https://wiki.gnome.org/Projects/Tracker")
6415 (description
6416 "Tracker is an advanced framework for first class objects with associated
6417 metadata and tags. It provides a one stop solution for all metadata, tags,
6418 shared object databases, search tools and indexing.")
6419 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
6420 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
6421 (license (list license:gpl2+
6422 license:lgpl2.1+
6423 license:lgpl2.0+))))
6424
6425 (define-public nautilus
6426 (package
6427 (name "nautilus")
6428 (version "3.30.5")
6429 (source (origin
6430 (method url-fetch)
6431 (uri (string-append "mirror://gnome/sources/" name "/"
6432 (version-major+minor version) "/"
6433 name "-" version ".tar.xz"))
6434 (sha256
6435 (base32
6436 "144r4py9b8w9ycsg6fggjg05kwvymh003qsb3h6apgpch5y3zgnv"))))
6437 (build-system meson-build-system)
6438 (arguments
6439 '(#:glib-or-gtk? #t
6440 ;; XXX: FAIL: check-nautilus
6441 ;; Settings schema 'org.gnome.nautilus.preferences' is not installed
6442 #:tests? #f))
6443 (native-inputs
6444 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6445 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
6446 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6447 ("gobject-introspection" ,gobject-introspection)
6448 ("intltool" ,intltool)
6449 ("pkg-config" ,pkg-config)))
6450 (inputs
6451 `(("dconf" ,dconf)
6452 ("gexiv2" ,gexiv2)
6453 ("gvfs" ,gvfs)
6454 ("exempi" ,exempi)
6455 ("gnome-desktop" ,gnome-desktop)
6456 ("gnome-autoar" ,gnome-autoar)
6457 ("libseccomp" ,libseccomp)
6458 ("libselinux" ,libselinux)
6459 ("tracker" ,tracker)
6460 ;; XXX: gtk+ is required by libnautilus-extension.pc
6461 ;;
6462 ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
6463 ;; package. See:
6464 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
6465 ("gtk+" ,gtk+)
6466 ("libexif" ,libexif)
6467 ("libxml2" ,libxml2)))
6468 (synopsis "File manager for GNOME")
6469 (home-page "https://wiki.gnome.org/Apps/Nautilus")
6470 (description
6471 "Nautilus (Files) is a file manager designed to fit the GNOME desktop
6472 design and behaviour, giving the user a simple way to navigate and manage its
6473 files.")
6474 (license license:gpl2+)))
6475
6476 (define-public baobab
6477 (package
6478 (name "baobab")
6479 (version "3.30.0")
6480 (source (origin
6481 (method url-fetch)
6482 (uri (string-append
6483 "mirror://gnome/sources/" name "/"
6484 (version-major+minor version) "/"
6485 name "-" version ".tar.xz"))
6486 (sha256
6487 (base32
6488 "0kx721s1hhw1g0nvbqhb93g8iq6f852imyhfhl02zcqy4ipx0kay"))))
6489 (build-system meson-build-system)
6490 (arguments
6491 '(#:glib-or-gtk? #t))
6492 (native-inputs
6493 `(("intltool" ,intltool)
6494 ("pkg-config" ,pkg-config)
6495 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6496 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6497 ("itstool" ,itstool)
6498 ("xmllint" ,libxml2)
6499 ("glib" ,glib "bin")
6500 ("vala" ,vala)))
6501 (inputs
6502 `(("gtk+" ,gtk+)))
6503 (synopsis "Disk usage analyzer for GNOME")
6504 (description
6505 "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
6506 usage in the GNOME desktop environment. It can easily scan device volumes or
6507 a specific user-requested directory branch (local or remote). Once the scan
6508 is complete it provides a graphical representation of each selected folder.")
6509 (home-page "https://wiki.gnome.org/Apps/Baobab")
6510 (license license:gpl2+)))
6511
6512 (define-public gnome-backgrounds
6513 (package
6514 (name "gnome-backgrounds")
6515 (version "3.30.0")
6516 (source
6517 (origin
6518 (method url-fetch)
6519 (uri (string-append "mirror://gnome/sources/" name "/"
6520 (version-major+minor version) "/"
6521 name "-" version ".tar.xz"))
6522 (sha256
6523 (base32
6524 "1179jrl16bp9gqabqhw7nnfp8qzf5y1vf9fi45bni6rfmwm3mrpc"))))
6525 (build-system meson-build-system)
6526 (native-inputs
6527 `(("intltool" ,intltool)))
6528 (home-page "https://git.gnome.org/browse/gnome-backgrounds")
6529 (synopsis "Background images for the GNOME desktop")
6530 (description
6531 "GNOME backgrounds package contains a collection of graphics files which
6532 can be used as backgrounds in the GNOME Desktop environment. Additionally,
6533 the package creates the proper framework and directory structure so that you
6534 can add your own files to the collection.")
6535 (license (list license:gpl2+
6536 license:cc-by2.0
6537 license:cc-by-sa2.0
6538 license:cc-by-sa3.0))))
6539
6540 (define-public gnome-screenshot
6541 (package
6542 (name "gnome-screenshot")
6543 (version "3.30.0")
6544 (source
6545 (origin
6546 (method url-fetch)
6547 (uri (string-append "mirror://gnome/sources/" name "/"
6548 (version-major+minor version) "/"
6549 name "-" version ".tar.xz"))
6550 (sha256
6551 (base32
6552 "06dx3svxq6sar4913mrz5lzb7hmc66wck138vmyxj8x8iv1iw0w8"))))
6553 (build-system meson-build-system)
6554 (native-inputs
6555 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6556 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6557 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6558 ("intltool" ,intltool)
6559 ("appstream-glib" ,appstream-glib)
6560 ("pkg-config" ,pkg-config)))
6561 (inputs
6562 `(("gtk+" ,gtk+)
6563 ("libcanberra" ,libcanberra)
6564 ("libx11" ,libx11)
6565 ("libxext" ,libxext)))
6566 (home-page "https://gitlab.gnome.org/GNOME/gnome-screenshot")
6567 (synopsis "Take pictures of your screen")
6568 (description
6569 "GNOME Screenshot is a utility used for taking screenshots of the entire
6570 screen, a window or a user defined area of the screen, with optional
6571 beautifying border effects.")
6572 (license license:gpl2+)))
6573
6574 (define-public dconf-editor
6575 (package
6576 (name "dconf-editor")
6577 (version "3.30.2")
6578 (source
6579 (origin
6580 (method url-fetch)
6581 (uri (string-append "mirror://gnome/sources/" name "/"
6582 (version-major+minor version) "/"
6583 name "-" version ".tar.xz"))
6584 (sha256
6585 (base32
6586 "06f736spn20s7qjsz00xw44v8r8bjhyrz1v3bix6v416jc5jp6ia"))))
6587 (build-system meson-build-system)
6588 (arguments
6589 '(#:phases (modify-phases %standard-phases
6590 (add-before 'configure 'set-glib-minimum-version
6591 (lambda _
6592 ;; Change the minimum required GLib version so that
6593 ;; 'valac' is passed '--target-glib 2.60.0'; failing to
6594 ;; do that, it complains that "55" is not an even
6595 ;; number. See <https://bugs.gnu.org/37503>.
6596 (substitute* "editor/meson.build"
6597 (("2\\.55\\.1") "2.60.0"))
6598 #t)))))
6599 (native-inputs
6600 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
6601 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6602 ("intltool" ,intltool)
6603 ("pkg-config" ,pkg-config)
6604 ("vala" ,vala)))
6605 (inputs
6606 `(("dconf" ,dconf)
6607 ("gtk+" ,gtk+)
6608 ("libxml2" ,libxml2)))
6609 (home-page "https://git.gnome.org/browse/dconf-editor")
6610 (synopsis "Graphical editor for GNOME's dconf configuration system")
6611 (description
6612 "Dconf-editor is a graphical tool for browsing and editing the dconf
6613 configuration system for GNOME. It allows users to configure desktop
6614 software that do not provide their own configuration interface.")
6615 (license license:lgpl2.1+)))
6616
6617 (define-public gnome-default-applications
6618 (package
6619 (name "gnome-default-applications")
6620 (version "0")
6621 (build-system trivial-build-system)
6622 (source #f)
6623 (propagated-inputs
6624 `(("nautilus" ,nautilus)
6625 ("evince" ,evince)))
6626 (arguments
6627 `(#:modules ((guix build utils))
6628 #:builder
6629 (begin
6630 (use-modules (guix build utils))
6631 (let* ((out (assoc-ref %outputs "out"))
6632 (apps (string-append out "/share/applications")))
6633 (mkdir-p apps)
6634 (call-with-output-file (string-append apps "/defaults.list")
6635 (lambda (port)
6636 (format port "[Default Applications]\n")
6637 (format port "inode/directory=org.gnome.Nautilus.desktop\n")
6638 (format port "application/pdf=evince.desktop\n")
6639 (format port "application/postscript=evince.desktop\n")))
6640 #t))))
6641 (synopsis "Default MIME type associations for the GNOME desktop")
6642 (description
6643 "Given many installed packages which might handle a given MIME type, a
6644 user running the GNOME desktop probably has some preferences: for example,
6645 that folders be opened by default by the Nautilus file manager, not the Baobab
6646 disk usage analyzer. This package establishes that set of default MIME type
6647 associations for GNOME.")
6648 (license license:gpl3+)
6649 (home-page #f)))
6650
6651 (define-public gnome
6652 (package
6653 (name "gnome")
6654 (version (package-version gnome-shell))
6655 (source #f)
6656 (build-system trivial-build-system)
6657 (arguments '(#:builder (begin (mkdir %output) #t)))
6658 (propagated-inputs
6659 ;; TODO: Add more packages according to:
6660 ;; <https://packages.debian.org/jessie/gnome-core>.
6661 `(("adwaita-icon-theme" ,adwaita-icon-theme)
6662 ("baobab" ,baobab)
6663 ("font-cantarell" ,font-cantarell)
6664 ("font-dejavu" ,font-dejavu)
6665 ("at-spi2-core" ,at-spi2-core)
6666 ("dbus" ,dbus)
6667 ("dconf" ,dconf)
6668 ("desktop-file-utils" ,desktop-file-utils)
6669 ("eog" ,eog)
6670 ("epiphany" ,epiphany)
6671 ("evince" ,evince)
6672 ("file-roller" ,file-roller)
6673 ("gedit" ,gedit)
6674 ("glib-networking" ,glib-networking)
6675 ("gnome-backgrounds" ,gnome-backgrounds)
6676 ("gnome-bluetooth" ,gnome-bluetooth)
6677 ("gnome-calculator" ,gnome-calculator)
6678 ("gnome-control-center" ,gnome-control-center)
6679 ("gnome-disk-utility" ,gnome-disk-utility)
6680 ("gnome-default-applications" ,gnome-default-applications)
6681 ("gnome-keyring" ,gnome-keyring)
6682 ("gnome-online-accounts" ,gnome-online-accounts)
6683 ("gnome-session" ,gnome-session)
6684 ("gnome-settings-daemon" ,gnome-settings-daemon)
6685 ("gnome-shell" ,gnome-shell)
6686 ("gnome-system-monitor" ,gnome-system-monitor)
6687 ("gnome-terminal" ,gnome-terminal)
6688 ("gnome-themes-standard" ,gnome-themes-standard)
6689 ("gst-plugins-base" ,gst-plugins-base)
6690 ("gst-plugins-good" ,gst-plugins-good)
6691 ("gucharmap" ,gucharmap)
6692 ("gvfs" ,gvfs)
6693 ("hicolor-icon-theme" ,hicolor-icon-theme)
6694 ("nautilus" ,nautilus)
6695 ("pinentry-gnome3" ,pinentry-gnome3)
6696 ("pulseaudio" ,pulseaudio)
6697 ("shared-mime-info" ,shared-mime-info)
6698 ("system-config-printer" ,system-config-printer)
6699 ("totem" ,totem)
6700 ("xdg-user-dirs" ,xdg-user-dirs)
6701 ("yelp" ,yelp)
6702 ("zenity" ,zenity)))
6703 (synopsis "The GNU desktop environment")
6704 (home-page "https://www.gnome.org/")
6705 (description
6706 "GNOME is the graphical desktop for GNU. It includes a wide variety of
6707 applications for browsing the web, editing text and images, creating
6708 documents and diagrams, playing media, scanning, and much more.")
6709 (license license:gpl2+)))
6710
6711 (define-public byzanz
6712 ;; The last stable release of Byzanz was in 2011, but there have been many
6713 ;; useful commits made to the Byzanz repository since then that it would be
6714 ;; silly to use such an old release.
6715 (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
6716 (package
6717 (name "byzanz")
6718 (version (string-append "0.2-1." (string-take commit 7)))
6719 (source (origin
6720 (method git-fetch)
6721 (uri (git-reference
6722 (url "https://git.gnome.org/browse/byzanz")
6723 (commit commit)))
6724 (file-name (string-append name "-" version "-checkout"))
6725 (sha256
6726 (base32
6727 "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
6728 (build-system glib-or-gtk-build-system)
6729 (arguments
6730 '(#:phases
6731 (modify-phases %standard-phases
6732 (replace 'bootstrap
6733 (lambda _
6734 ;; The build system cleverly detects that we're not building from
6735 ;; a release tarball and turns on -Werror for GCC.
6736 ;; Unsurprisingly, there is a warning during compilation that
6737 ;; causes the build to fail unnecessarily, so we remove the flag.
6738 (substitute* '("configure.ac")
6739 (("-Werror") ""))
6740 ;; The autogen.sh script in gnome-common will run ./configure
6741 ;; by default, which is problematic because source shebangs
6742 ;; have not yet been patched.
6743 (setenv "NOCONFIGURE" "t")
6744 (zero? (system* "sh" "autogen.sh")))))))
6745 (native-inputs
6746 `(("autoconf" ,autoconf)
6747 ("automake" ,automake)
6748 ("gnome-common" ,gnome-common)
6749 ("intltool" ,intltool)
6750 ("libtool" ,libtool)
6751 ("pkg-config" ,pkg-config)
6752 ("which" ,which)))
6753 (inputs
6754 `(("glib" ,glib)
6755 ("gstreamer" ,gstreamer)
6756 ("gst-plugins-base" ,gst-plugins-base)
6757 ("gtk+" ,gtk+)))
6758 (synopsis "Desktop recording program")
6759 (description "Byzanz is a simple desktop recording program with a
6760 command-line interface. It can record part or all of an X display for a
6761 specified duration and save it as a GIF encoded animated image file.")
6762 (home-page "https://git.gnome.org/browse/byzanz")
6763 (license license:gpl2+))))
6764
6765 (define-public gsound
6766 (package
6767 (name "gsound")
6768 (version "1.0.2")
6769 (source (origin
6770 (method url-fetch)
6771 (uri (string-append "mirror://gnome/sources/" name "/"
6772 (version-major+minor version) "/"
6773 name "-" version ".tar.xz"))
6774 (sha256
6775 (base32
6776 "0lwfwx2c99qrp08pfaj59pks5dphsnxjgrxyadz065d8xqqgza5v"))))
6777 (build-system glib-or-gtk-build-system)
6778 (native-inputs
6779 `(("pkg-config" ,pkg-config)
6780 ("gobject-introspection" ,gobject-introspection)
6781 ("vala" ,vala)))
6782 (inputs
6783 `(("glib" ,glib)
6784 ("libcanberra" ,libcanberra)))
6785 (home-page "https://wiki.gnome.org/Projects/GSound")
6786 (synopsis "GObject wrapper for libcanberra")
6787 (description
6788 "GSound is a small library for playing system sounds. It's designed to be
6789 used via GObject Introspection, and is a thin wrapper around the libcanberra C
6790 library.")
6791 (license license:lgpl2.1+)))
6792
6793 (define-public libzapojit
6794 (package
6795 (name "libzapojit")
6796 (version "0.0.3")
6797 (source (origin
6798 (method url-fetch)
6799 (uri (string-append "mirror://gnome/sources/" name "/"
6800 (version-major+minor version) "/"
6801 name "-" version ".tar.xz"))
6802 (sha256
6803 (base32
6804 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
6805 (build-system gnu-build-system)
6806 (native-inputs
6807 `(("gobject-introspection" ,gobject-introspection)
6808 ("intltool" ,intltool)
6809 ("pkg-config" ,pkg-config)))
6810 (inputs
6811 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6812 ("json-glib" ,json-glib)
6813 ("rest" ,rest)))
6814 (home-page "https://wiki.gnome.org/Projects/Zapojit")
6815 (synopsis "Library for accessing SkyDrive and Hotmail")
6816 (description
6817 "Libzapojit is a GLib-based library for accessing online service APIs of
6818 Microsoft SkyDrive and Hotmail, using their REST protocols.")
6819 (license license:lgpl2.1+)))
6820
6821 (define-public gnome-clocks
6822 (package
6823 (name "gnome-clocks")
6824 (version "3.30.1")
6825 (source (origin
6826 (method url-fetch)
6827 (uri (string-append "mirror://gnome/sources/" name "/"
6828 (version-major+minor version) "/"
6829 name "-" version ".tar.xz"))
6830 (sha256
6831 (base32
6832 "009fr6zwv37wryi0c0syi4i7pxpdbn3gliws68l99cjsbn2qd6pc"))))
6833 (build-system meson-build-system)
6834 (arguments
6835 '(#:glib-or-gtk? #t))
6836 (native-inputs
6837 `(("vala" ,vala)
6838 ("pkg-config" ,pkg-config)
6839 ("glib" ,glib "bin") ; for glib-compile-resources
6840 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6841 ("desktop-file-utils" ,desktop-file-utils)
6842 ("gettext" ,gettext-minimal)
6843 ("itstool" ,itstool)))
6844 (inputs
6845 `(("glib" ,glib)
6846 ("gtk+" ,gtk+)
6847 ("gsound" ,gsound)
6848 ("geoclue" ,geoclue)
6849 ("geocode-glib" ,geocode-glib)
6850 ("libgweather" ,libgweather)
6851 ("gnome-desktop" ,gnome-desktop)))
6852 (home-page "https://wiki.gnome.org/Apps/Clocks")
6853 (synopsis "GNOME's clock application")
6854 (description
6855 "GNOME Clocks is a simple clocks application designed to fit the GNOME
6856 desktop. It supports world clock, stop watch, alarms, and count down timer.")
6857 (license license:gpl3+)))
6858
6859 (define-public gnome-calendar
6860 (package
6861 (name "gnome-calendar")
6862 (version "3.30.1")
6863 (source (origin
6864 (method url-fetch)
6865 (uri (string-append "mirror://gnome/sources/" name "/"
6866 (version-major+minor version) "/"
6867 name "-" version ".tar.xz"))
6868 (sha256
6869 (base32
6870 "1avi7a29y8d8kzwslp51nwy6s692alms7917454j0xpfc6hnw62s"))))
6871 (build-system meson-build-system)
6872 (arguments
6873 '(#:glib-or-gtk? #t
6874 ;; gnome-calendar has to be installed before the tests can be run
6875 ;; https://bugzilla.gnome.org/show_bug.cgi?id=788224
6876 #:tests? #f))
6877 (native-inputs
6878 `(("gettext" ,gettext-minimal)
6879 ("glib-bin" ,glib "bin") ; For glib-compile-schemas
6880 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
6881 ("pkg-config" ,pkg-config)))
6882 (inputs
6883 `(("evolution-data-server" ,evolution-data-server)
6884 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6885 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6886 ("libdazzle" ,libdazzle)
6887 ("libedataserverui" ,evolution-data-server)
6888 ("libgweather" ,libgweather)
6889 ("geoclue" ,geoclue)))
6890 (home-page "https://wiki.gnome.org/Apps/Calendar")
6891 (synopsis "GNOME's calendar application")
6892 (description
6893 "GNOME Calendar is a simple calendar application designed to fit the GNOME
6894 desktop. It supports multiple calendars, month, week and year view.")
6895 (license license:gpl3+)))
6896
6897 (define-public gnome-todo
6898 (package
6899 (name "gnome-todo")
6900 (version "3.28.1")
6901 (source (origin
6902 (method url-fetch)
6903 (uri (string-append "mirror://gnome/sources/" name "/"
6904 (version-major+minor version) "/"
6905 name "-" version ".tar.xz"))
6906 (sha256
6907 (base32
6908 "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"))))
6909 (build-system meson-build-system)
6910 (arguments
6911 '(#:glib-or-gtk? #t
6912 #:phases (modify-phases %standard-phases
6913 (add-after
6914 'install 'wrap-gnome-todo
6915 (lambda* (#:key inputs outputs #:allow-other-keys)
6916 (let ((out (assoc-ref outputs "out"))
6917 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6918 (python-path (getenv "PYTHONPATH")))
6919 (wrap-program (string-append out "/bin/gnome-todo")
6920 ;; XXX: gi plugins are broken.
6921 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=787212
6922 ;; For plugins.
6923 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6924 `("PYTHONPATH" ":" prefix (,python-path))))
6925 #t)))))
6926 (native-inputs
6927 `(("gettext" ,gettext-minimal)
6928 ("gobject-introspection" ,gobject-introspection)
6929 ("glib:bin" ,glib "bin") ; For glib-compile-resources
6930 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
6931 ("pkg-config" ,pkg-config)))
6932 (inputs
6933 `(("rest" ,rest) ; For Todoist plugin
6934 ("json-glib" ,json-glib) ; For Todoist plugin
6935 ("libedataserverui" ,evolution-data-server)
6936 ("libical" ,libical)
6937 ("libpeas" ,libpeas)
6938 ("python-pygobject" ,python-pygobject)
6939 ("evolution-data-server" ,evolution-data-server)
6940 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6941 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
6942 (home-page "https://wiki.gnome.org/Apps/Todo")
6943 (synopsis "GNOME's ToDo Application")
6944 (description
6945 "GNOME To Do is a simplistic personal task manager designed to perfectly
6946 fit the GNOME desktop.")
6947 (license license:gpl3+)))
6948
6949 (define-public gnome-dictionary
6950 (package
6951 (name "gnome-dictionary")
6952 (version "3.26.1")
6953 (source (origin
6954 (method url-fetch)
6955 (uri (string-append "mirror://gnome/sources/" name "/"
6956 (version-major+minor version) "/"
6957 name "-" version ".tar.xz"))
6958 (sha256
6959 (base32
6960 "007k2bq8iplg4psdpz074r5d4zxvn4s95qym4rw9hs6giljbrf0n"))))
6961 (build-system meson-build-system)
6962 (arguments '(#:glib-or-gtk? #t
6963 #:phases (modify-phases %standard-phases
6964 (add-after 'unpack 'patch-install-script
6965 (lambda _
6966 ;; This script attempts to compile glib schemas
6967 ;; and create an empty MIME database. We do
6968 ;; that elsewhere, so prevent it from running.
6969 (substitute* "build-aux/post-install.sh"
6970 (("\\[ -z \"\\$DESTDIR\" \\]") "false"))
6971 #t)))))
6972 (native-inputs
6973 `(("glib:bin" ,glib "bin")
6974 ("gobject-introspection" ,gobject-introspection)
6975 ("intltool" ,intltool)
6976 ("itstool" ,itstool)
6977 ("pkg-config" ,pkg-config)
6978 ("xmllint" ,libxml2)))
6979 (inputs
6980 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6981 ("gtk+" ,gtk+)))
6982 (home-page "https://wiki.gnome.org/Apps/Dictionary")
6983 (synopsis "Look up words in dictionary sources")
6984 (description
6985 "GNOME Dictionary can look for the definition or translation of a word in
6986 existing databases over the internet.")
6987 (license license:gpl3+)))
6988
6989 (define-public gnome-tweaks
6990 (package
6991 (name "gnome-tweaks")
6992 (version "3.30.2")
6993 (source (origin
6994 (method url-fetch)
6995 (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
6996 (version-major+minor version) "/"
6997 "gnome-tweaks-" version ".tar.xz"))
6998 (patches
6999 (list (search-patch "gnome-tweaks-search-paths.patch")))
7000 (sha256
7001 (base32
7002 "0j63siy1i5pl2g6di1r9vjn54m9ahh42wj20j6689pza2lamay1z"))))
7003 (build-system meson-build-system)
7004 (arguments
7005 `(#:glib-or-gtk? #t
7006 #:configure-flags '("-Dlocalstatedir=/tmp"
7007 "-Dsysconfdir=/tmp")
7008 #:imported-modules ((guix build python-build-system)
7009 ,@%meson-build-system-modules)
7010 #:phases
7011 (modify-phases %standard-phases
7012 (add-after 'install 'wrap
7013 (@@ (guix build python-build-system) wrap))
7014 (add-after 'wrap 'wrap-gi-typelib
7015 (lambda* (#:key inputs outputs #:allow-other-keys)
7016 (let ((out (assoc-ref outputs "out"))
7017 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7018 (wrap-program (string-append out "/bin/gnome-tweaks")
7019 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7020 #t)))))
7021 (native-inputs
7022 `(("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7023 ("intltool" ,intltool)
7024 ("pkg-config" ,pkg-config)))
7025 (inputs
7026 `(("gnome-desktop" ,gnome-desktop)
7027 ("gtk+" ,gtk+)
7028 ("gobject-introspection" ,gobject-introspection)
7029 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7030 ("libnotify" ,libnotify)
7031 ("libsoup" ,libsoup)
7032 ("nautilus" ,nautilus)
7033 ("python" ,python)
7034 ("python-pygobject" ,python-pygobject)))
7035 (synopsis "Customize advanced GNOME 3 options")
7036 (home-page "https://wiki.gnome.org/Apps/Tweaks")
7037 (description
7038 "GNOME Tweaks allows adjusting advanced configuration settings in
7039 GNOME 3. This includes things like the fonts used in user interface elements,
7040 alternative user interface themes, changes in window management behavior,
7041 GNOME Shell appearance and extension, etc.")
7042 (license license:gpl3+)))
7043
7044 ;; This package has been renamed by upstream.
7045 (define-public gnome-tweak-tool
7046 (deprecated-package "gnome-tweak-tool" gnome-tweaks))
7047
7048 (define-public gnome-shell-extensions
7049 (package
7050 (name "gnome-shell-extensions")
7051 (version "3.30.1")
7052 (source (origin
7053 (method url-fetch)
7054 (uri (string-append "mirror://gnome/sources/" name "/"
7055 (version-major+minor version) "/"
7056 name "-" version ".tar.xz"))
7057 (sha256
7058 (base32
7059 "1grxn4f5x754r172wmnf0h0xpy69afmj359zsj1rwgqlzw4i4c5p"))))
7060 (build-system meson-build-system)
7061 (arguments
7062 '(#:configure-flags '("-Dextension_set=all")))
7063 (native-inputs
7064 `(("intltool" ,intltool)
7065 ("pkg-config" ,pkg-config)))
7066 (propagated-inputs
7067 `(("glib" ,glib)
7068 ("glib" ,glib "bin")))
7069 (synopsis "Extensions for GNOME Shell")
7070 (description "GNOME Shell extensions modify and extend GNOME Shell
7071 functionality and behavior.")
7072 (home-page "https://extensions.gnome.org/")
7073 (license license:gpl3+)))
7074
7075 (define-public numix-theme
7076 (package
7077 (name "numix-theme")
7078 (version "2.6.7")
7079 (source (origin
7080 (method git-fetch)
7081 (uri (git-reference
7082 (url "https://github.com/numixproject/numix-gtk-theme.git")
7083 (commit version)))
7084 (file-name (git-file-name name version))
7085 (sha256
7086 (base32
7087 "12mw0kr0kkvg395qlbsvkvaqccr90cmxw5rrsl236zh43kj8grb7"))))
7088 (build-system gnu-build-system)
7089 (arguments
7090 '(#:make-flags (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
7091 #:phases
7092 (modify-phases %standard-phases
7093 (delete 'configure)
7094 (delete 'check))))
7095 (native-inputs
7096 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas
7097 ("gnome-shell" ,gnome-shell)
7098 ("gtk+" ,gtk+)
7099 ("xmllint" ,libxml2)
7100 ("ruby-sass" ,ruby-sass)))
7101 (synopsis "Flat theme with light and dark elements")
7102 (description "Numix is a modern flat theme with a combination of light and
7103 dark elements. It supports GNOME, Unity, Xfce, and Openbox.")
7104 (home-page "https://numixproject.github.io")
7105 (license license:gpl3+)))
7106
7107 (define-public arc-theme
7108 (package
7109 (name "arc-theme")
7110 (version "20181022")
7111 (source (origin
7112 (method git-fetch)
7113 (uri (git-reference
7114 (url "https://github.com/NicoHood/arc-theme.git")
7115 (commit version)))
7116 (file-name (git-file-name name version))
7117 (sha256
7118 (base32
7119 "08951dk1irfadwpr3p323a4fprmxg53rk2r2niwq3v62ryhi3663"))))
7120 (build-system gnu-build-system)
7121 (arguments
7122 '(#:phases
7123 (modify-phases %standard-phases
7124 ;; autogen.sh calls configure at the end of the script.
7125 (replace 'bootstrap
7126 (lambda _ (invoke "autoreconf" "-vfi"))))))
7127 (native-inputs
7128 `(("autoconf" ,autoconf)
7129 ("automake" ,automake)
7130 ("glib" ,glib "bin") ; for glib-compile-resources
7131 ("gnome-shell" ,gnome-shell)
7132 ("gtk+" ,gtk+)
7133 ("inkscape" ,inkscape)
7134 ("optipng" ,optipng)
7135 ("pkg-config" ,pkg-config)
7136 ("sassc" ,sassc)))
7137 (synopsis "A flat GTK+ theme with transparent elements")
7138 (description "Arc is a flat theme with transparent elements for GTK 3, GTK
7139 2, and GNOME Shell which supports GTK 3 and GTK 2 based desktop environments
7140 like GNOME, Unity, Budgie, Pantheon, XFCE, Mate, etc.")
7141 (home-page "https://github.com/horst3180/arc-theme")
7142 ;; No "or later" language found.
7143 (license license:gpl3+)))
7144
7145 (define-public faba-icon-theme
7146 (package
7147 (name "faba-icon-theme")
7148 (version "4.3")
7149 (source
7150 (origin
7151 (method url-fetch)
7152 (uri (string-append "https://github.com/moka-project/"
7153 name "/archive/v" version ".tar.gz"))
7154 (file-name (string-append name "-" version ".tar.gz"))
7155 (sha256
7156 (base32
7157 "18ln06xl60qzvzz61zq9q72hdbfgjsza3flph8i2asyzx3dffz68"))))
7158 (build-system meson-build-system)
7159 (arguments
7160 `(#:phases
7161 (modify-phases %standard-phases
7162 (add-before 'configure 'disable-post-install
7163 (lambda _
7164 (substitute* "meson.build"
7165 (("meson.add_install_script.*") "")))))))
7166 (native-inputs
7167 `(("autoconf" ,autoconf)
7168 ("automake" ,automake)))
7169 (synopsis "Faba icon theme")
7170 (description
7171 "Faba is a minimal icon set used as a basis for other themes such as
7172 Moka")
7173 (home-page "https://snwh.org/moka")
7174 (license (list license:lgpl3+
7175 license:cc-by-sa4.0))))
7176
7177 (define-public moka-icon-theme
7178 (package
7179 (inherit faba-icon-theme)
7180 (name "moka-icon-theme")
7181 (version "5.4.0")
7182 (source (origin
7183 (method url-fetch)
7184 (uri (string-append "https://github.com/moka-project"
7185 "/moka-icon-theme/archive/v"
7186 version ".tar.gz"))
7187 (file-name (string-append name "-" version ".tar.gz"))
7188 (sha256
7189 (base32
7190 "1nbwdjj268hxv9lfagd9aylily9f0hhallp841v0i3imljp84bmk"))))
7191 (propagated-inputs
7192 ;; Moka is based on Faba by using it as a fallback icon set instead of
7193 ;; bundling it, so we need to add it as a propagated input.
7194 `(("faba-icon-theme" ,faba-icon-theme)))
7195 (synopsis "Moka icon theme")
7196 (description "Moka is a stylized desktop icon set, designed to be clear,
7197 simple and consistent.")
7198 (license (list license:gpl3+
7199 license:cc-by-sa4.0))))
7200
7201 (define-public arc-icon-theme
7202 (package
7203 (name "arc-icon-theme")
7204 (version "20161122")
7205 (source (origin
7206 (method url-fetch)
7207 (uri (string-append "https://github.com/horst3180/arc-icon-theme"
7208 "/archive/" version ".tar.gz"))
7209 (file-name (string-append name "-" version ".tar.gz"))
7210 (sha256
7211 (base32
7212 "1ya1cqvv8q847c0rpcg6apzky87q3h04y8jz5nmi52qk6kg8si0b"))))
7213 (build-system gnu-build-system)
7214 (arguments
7215 `(#:phases
7216 (modify-phases %standard-phases
7217 (add-after 'unpack 'disable-configure-during-bootstrap
7218 (lambda _
7219 (substitute* "autogen.sh"
7220 (("^\"\\$srcdir/configure\".*") ""))
7221 #t)))))
7222 (native-inputs
7223 `(("autoconf" ,autoconf)
7224 ("automake" ,automake)))
7225 ;; When Arc is missing an icon, it looks in the Moka icon theme for it.
7226 (propagated-inputs
7227 `(("moka-icon-theme" ,moka-icon-theme)))
7228 (synopsis "Arc icon theme")
7229 (description "The Arc icon theme provides a set of icons matching the
7230 style of the Arc GTK theme. Icons missing from the Arc theme are provided by
7231 the Moka icon theme.")
7232 (home-page "https://github.com/horst3180/arc-icon-theme")
7233 (license license:gpl3+)))
7234
7235 (define-public folks
7236 (package
7237 (name "folks")
7238 (version "0.11.4")
7239 (source (origin
7240 (method url-fetch)
7241 (uri (string-append
7242 "mirror://gnome/sources/folks/"
7243 (version-major+minor version) "/"
7244 "folks-" version ".tar.xz"))
7245 (sha256
7246 (base32
7247 "16hqh2gxlbx0b0hgq216hndr1m72vj54jvryzii9zqkk0g9kxc57"))))
7248 (build-system glib-or-gtk-build-system)
7249 (inputs
7250 `(("bdb" ,bdb)
7251 ("dbus-glib" ,dbus-glib)
7252 ("evolution-data-server" ,evolution-data-server)
7253 ("glib" ,glib)
7254 ("libgee" ,libgee)
7255 ("telepathy-glib" ,telepathy-glib)))
7256 (native-inputs
7257 `(("gobject-introspection" ,gobject-introspection)
7258 ("intltool" ,intltool)
7259 ("pkg-config" ,pkg-config)
7260 ("vala" ,vala)))
7261 (synopsis "Library to aggregate data about people")
7262 (description "Libfolks is a library that aggregates information about people
7263 from multiple sources (e.g., Telepathy connection managers for IM contacts,
7264 Evolution Data Server for local contacts, libsocialweb for web service contacts,
7265 etc.) to create metacontacts. It's written in Vala, which generates C code when
7266 compiled.")
7267 (home-page "https://wiki.gnome.org/Projects/Folks")
7268 (license license:lgpl2.1+)))
7269
7270 (define-public gfbgraph
7271 (package
7272 (name "gfbgraph")
7273 (version "0.2.3")
7274 (source (origin
7275 (method url-fetch)
7276 (uri (string-append
7277 "mirror://gnome/sources/gfbgraph/"
7278 (version-major+minor version) "/"
7279 "gfbgraph-" version ".tar.xz"))
7280 (sha256
7281 (base32
7282 "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs"))))
7283 (build-system glib-or-gtk-build-system)
7284 (arguments
7285 `(#:tests? #f ; Tests appear to require the network.
7286 ;; FIXME --enable-gtk-doc fails even with gtk-doc as a native-input.
7287 #:configure-flags '("--disable-gtk-doc"
7288 "--disable-static"
7289 "--enable-introspection")))
7290 (native-inputs
7291 `(("pkg-config" ,pkg-config)
7292 ("gobject-introspection" ,gobject-introspection)))
7293 (inputs
7294 `(("json-glib" ,json-glib)
7295 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
7296 ("rest" ,rest)))
7297 (synopsis "GLib/GObject wrapper for the Facebook API")
7298 (description "This library allows you to use the Facebook API from
7299 GLib/GObject code.")
7300 (home-page "https://wiki.gnome.org/Projects/GFBGraph")
7301 (license license:lgpl2.1+)))
7302
7303 (define-public libgnomekbd
7304 (package
7305 (name "libgnomekbd")
7306 (version "3.26.1")
7307 (source (origin
7308 (method url-fetch)
7309 (uri (string-append "mirror://gnome/sources/libgnomekbd/"
7310 (version-major+minor version) "/"
7311 "libgnomekbd-" version ".tar.xz"))
7312 (sha256
7313 (base32
7314 "0y962ykn3rr9gylj0pwpww7bi20lmhvsw6qvxs5bisbn2mih5jpp"))))
7315 (build-system gnu-build-system)
7316 (native-inputs
7317 `(("pkg-config" ,pkg-config)
7318 ("glib" ,glib "bin")
7319 ("intltool" ,intltool)))
7320 (propagated-inputs
7321 ;; Referred to in .h files and .pc.
7322 `(("glib" ,glib)
7323 ("gtk+" ,gtk+)
7324 ("libxklavier" ,libxklavier)))
7325 (home-page "https://www.gnome.org")
7326 (synopsis "GNOME keyboard configuration library")
7327 (description
7328 "Libgnomekbd is a keyboard configuration library for the GNOME desktop
7329 environment, which can notably display keyboard layouts.")
7330 (license license:lgpl2.0+)))
7331
7332 ;;; This package is no longer maintained:
7333 ;;; https://wiki.gnome.org/Attic/LibUnique
7334 ;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
7335 ;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
7336 (define-public libunique
7337 (package
7338 (name "libunique")
7339 (version "3.0.2")
7340 (source (origin
7341 (method url-fetch)
7342 (uri (string-append "mirror://gnome/sources/" name "/"
7343 (version-major+minor version) "/"
7344 name "-" version ".tar.xz"))
7345 (sha256
7346 (base32
7347 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
7348 (build-system glib-or-gtk-build-system)
7349 (arguments
7350 `(#:configure-flags '("--disable-static"
7351 "--disable-dbus" ; use gdbus
7352 "--enable-introspection")))
7353 (native-inputs
7354 `(("pkg-config" ,pkg-config)
7355 ("gobject-introspection" ,gobject-introspection)
7356 ("glib:bin" ,glib "bin")
7357 ("gtk-doc" ,gtk-doc)))
7358 (propagated-inputs
7359 ;; Referred to in .h files and .pc.
7360 `(("gtk+" ,gtk+)))
7361 (home-page "https://wiki.gnome.org/Attic/LibUnique")
7362 (synopsis "Library for writing single instance applications")
7363 (description
7364 "Libunique is a library for writing single instance applications. If you
7365 launch a single instance application twice, the second instance will either just
7366 quit or will send a message to the running instance. Libunique makes it easy to
7367 write this kind of application, by providing a base class, taking care of all
7368 the IPC machinery needed to send messages to a running instance, and also
7369 handling the startup notification side.")
7370 (license license:lgpl2.1+)))
7371
7372 (define-public gnome-calculator
7373 (package
7374 (name "gnome-calculator")
7375 (version "3.32.2")
7376 (source
7377 (origin
7378 (method url-fetch)
7379 (uri (string-append "mirror://gnome/sources/" name "/"
7380 (version-major+minor version) "/"
7381 name "-" version ".tar.xz"))
7382 (sha256
7383 (base32
7384 "0fgpn3sc226s9fpzhik5rkkrf669037gc659ga2kn9jsyckj6p41"))))
7385 (build-system meson-build-system)
7386 (arguments '(#:glib-or-gtk? #t))
7387 (native-inputs
7388 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
7389 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
7390 ("intltool" ,intltool)
7391 ("itstool" ,itstool)
7392 ("vala" ,vala)
7393 ("pkg-config" ,pkg-config)))
7394 (inputs
7395 `(("glib" ,glib)
7396 ("gtksourceview" ,gtksourceview)
7397 ("libsoup" ,libsoup)
7398 ("libxml2" ,libxml2)
7399 ("mpc" ,mpc)
7400 ("mpfr" ,mpfr)))
7401 (home-page "https://wiki.gnome.org/Apps/Calculator")
7402 (synopsis "Desktop calculator")
7403 (description
7404 "Calculator is an application that solves mathematical equations and
7405 is suitable as a default application in a Desktop environment.")
7406 (license license:gpl3)))
7407
7408 (define-public xpad
7409 (package
7410 (name "xpad")
7411 (version "5.1.0")
7412 (source
7413 (origin
7414 (method url-fetch)
7415 (uri (string-append "https://launchpad.net/xpad/trunk/"
7416 version "/+download/"
7417 name "-" version ".tar.bz2"))
7418 (sha256
7419 (base32
7420 "0l0g5x8g6dwhf5ksnqqrjjsycy57kcvdslkmsr6bl3vrsjd7qml3"))))
7421 (build-system gnu-build-system)
7422 (native-inputs
7423 `(("autoconf" ,autoconf)
7424 ("automake" ,automake)
7425 ("gtk+:bin" ,gtk+ "bin")
7426 ("intltool" ,intltool)
7427 ("pkg-config" ,pkg-config)))
7428 (inputs
7429 `(("gtksourceview" ,gtksourceview-3)
7430 ("libsm" ,libsm)))
7431 (home-page "https://wiki.gnome.org/Apps/Xpad")
7432 (synopsis "Virtual sticky note")
7433 (description
7434 "Xpad is a sticky note that strives to be simple, fault tolerant,
7435 and customizable. Xpad consists of independent pad windows, each is
7436 basically a text box in which notes can be written.")
7437 (license license:gpl3+)))
7438
7439 (define-public gucharmap
7440 (let ((unicode-files
7441 '(("Blocks.txt"
7442 "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1")
7443 ("DerivedAge.txt"
7444 "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6")
7445 ("NamesList.txt"
7446 "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61")
7447 ("Scripts.txt"
7448 "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx")
7449 ("UnicodeData.txt"
7450 "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap")
7451 ("Unihan.zip"
7452 "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"))))
7453 (package
7454 (name "gucharmap")
7455 (version "12.0.1")
7456 (source
7457 (origin
7458 (method url-fetch)
7459 (uri (string-append "mirror://gnome/sources/" name "/"
7460 (version-major+minor version) "/"
7461 name "-" version ".tar.xz"))
7462 (sha256
7463 (base32
7464 "0m915hm2b2d6r3vs1l80rqpssvg78pv8j6nv54yg62kzknnqmpir"))))
7465 (build-system glib-or-gtk-build-system)
7466 (arguments
7467 `(#:modules ((ice-9 match)
7468 (guix build glib-or-gtk-build-system)
7469 (guix build utils))
7470 #:configure-flags
7471 (list "--with-unicode-data=../unicode-data")
7472 #:phases
7473 (modify-phases %standard-phases
7474 (add-after 'unpack 'prepare-unicode-data
7475 (lambda* (#:key inputs #:allow-other-keys)
7476 (mkdir-p "../unicode-data")
7477 (with-directory-excursion "../unicode-data"
7478 (for-each (match-lambda
7479 ((file _)
7480 (install-file (assoc-ref inputs file) ".")))
7481 ',unicode-files))
7482 #t)))))
7483 (native-inputs
7484 `(("desktop-file-utils" ,desktop-file-utils)
7485 ("glib:bin" ,glib "bin") ; for glib-compile-resources.
7486 ("gobject-introspection" ,gobject-introspection)
7487 ("intltool" ,intltool)
7488 ("itstool" ,itstool)
7489 ("pkg-config" ,pkg-config)
7490 ,@(map (match-lambda
7491 ((file hash)
7492 `(,file
7493 ,(origin
7494 (method url-fetch)
7495 (uri (string-append
7496 "http://www.unicode.org/Public/12.0.0/ucd/"
7497 file))
7498 (sha256 (base32 hash))))))
7499 unicode-files)
7500 ("unzip" ,unzip)))
7501 (inputs
7502 `(("gtk+" ,gtk+)
7503 ("xmllint" ,libxml2)))
7504 (home-page "https://wiki.gnome.org/Apps/Gucharmap")
7505 (synopsis "Unicode character picker and font browser")
7506 (description
7507 "This program allows you to browse through all the available Unicode
7508 characters and categories for the installed fonts, and to examine their
7509 detailed properties. It is an easy way to find the character you might
7510 only know by its Unicode name or code point.")
7511 (license license:gpl3+))))
7512
7513 (define-public bluefish
7514 (package
7515 (name "bluefish")
7516 (version "2.2.10")
7517 (source
7518 (origin
7519 (method url-fetch)
7520 (uri (string-append "http://www.bennewitz.com/bluefish/stable/source/"
7521 name "-" version ".tar.gz"))
7522 (sha256
7523 (base32
7524 "1jw4has7lbp77lqmzvnnjmqcf0lacjfnka873lkkwdyrpzc4c1q4"))))
7525 (build-system gnu-build-system)
7526 (native-inputs
7527 `(("desktop-file-utils" ,desktop-file-utils)
7528 ("intltool" ,intltool)
7529 ("pkg-config" ,pkg-config)))
7530 (inputs
7531 `(("enchant" ,enchant)
7532 ("gtk+" ,gtk+)
7533 ("python" ,python-2)
7534 ("xmllint" ,libxml2)
7535 ("gucharmap" ,gucharmap)))
7536 (home-page "http://bluefish.openoffice.nl")
7537 (synopsis "Web development studio")
7538 (description
7539 "Bluefish is an editor targeted towards programmers and web developers,
7540 with many options to write web sites, scripts and other code.
7541 Bluefish supports many programming and markup languages.")
7542 (license license:gpl3+)))
7543
7544 (define-public gnome-system-monitor
7545 (package
7546 (name "gnome-system-monitor")
7547 (version "3.30.0")
7548 (source
7549 (origin
7550 (method url-fetch)
7551 (uri (string-append "mirror://gnome/sources/" name "/"
7552 (version-major+minor version) "/"
7553 name "-" version ".tar.xz"))
7554 (sha256
7555 (base32
7556 "0g0y565bjs6bdszrnxsz1f7hcm1x59i3mfvplysirh7nz3hpz888"))))
7557 (build-system meson-build-system)
7558 (arguments
7559 '(#:glib-or-gtk? #t
7560 #:configure-flags '("-Dsystemd=false")))
7561 (native-inputs
7562 `(("glib:bin" ,glib "bin") ; for glib-mkenums.
7563 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
7564 ("intltool" ,intltool)
7565 ("itstool" ,itstool)
7566 ("libgtop" ,libgtop)
7567 ("polkit" ,polkit)
7568 ("pkg-config" ,pkg-config)))
7569 (inputs
7570 `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
7571 ("gtk+" ,gtk+)
7572 ("gtkmm" ,gtkmm)
7573 ("librsvg" ,librsvg)
7574 ("libxml2" ,libxml2)
7575 ("libwnck" ,libwnck)))
7576 (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
7577 (synopsis "Process viewer and system resource monitor for GNOME")
7578 (description
7579 "GNOME System Monitor is a GNOME process viewer and system monitor with
7580 an attractive, easy-to-use interface. It has features, such as a tree view
7581 for process dependencies, icons for processes, the ability to hide processes,
7582 graphical time histories of CPU/memory/swap usage and the ability to
7583 kill/reinice processes.")
7584 (license license:gpl2+)))
7585
7586 (define-public python-pyatspi
7587 (package
7588 (name "python-pyatspi")
7589 (version "2.26.0")
7590 (source (origin
7591 (method url-fetch)
7592 (uri (string-append
7593 "mirror://gnome/sources/pyatspi/"
7594 (version-major+minor version)
7595 "/pyatspi-" version ".tar.xz"))
7596 (sha256
7597 (base32
7598 "0xdnix7gxzgf75xy9ris4dd6b05mqwicw190b98xqmypydyf95n6"))
7599 ;; Patch from upstream, fixed in newer versions.
7600 (patches (search-patches "python-pyatspi-python-37.patch"))))
7601 (build-system gnu-build-system)
7602 (arguments
7603 `(#:phases
7604 (modify-phases %standard-phases
7605 (add-before 'build 'fix-atk-load
7606 (lambda _
7607 (substitute* "pyatspi/__init__.py"
7608 (("from gi.repository import Atspi")
7609 "gi.require_version('Gtk', '3.0')
7610 from gi.repository import Gtk
7611 from gi.repository import Atspi"))
7612 #t)))))
7613 (native-inputs
7614 `(("pkg-config" ,pkg-config)))
7615 (inputs
7616 `(("python" ,python)
7617 ("python-pygobject" ,python-pygobject)))
7618 (synopsis "Python client bindings for D-Bus AT-SPI")
7619 (home-page "https://wiki.linuxfoundation.org/accessibility\
7620 /atk/at-spi/at-spi_on_d-bus")
7621 (description
7622 "This package includes a python client library for the AT-SPI D-Bus
7623 accessibility infrastructure.")
7624 (license license:lgpl2.0)
7625 (properties '((upstream-name . "pyatspi")))))
7626
7627 (define-public orca
7628 (package
7629 (name "orca")
7630 (version "3.30.2")
7631 (source (origin
7632 (method url-fetch)
7633 (uri (string-append
7634 "mirror://gnome/sources/" name "/"
7635 (version-major+minor version) "/"
7636 name "-" version ".tar.xz"))
7637 (sha256
7638 (base32
7639 "17asibc46i5gr2fw04jvvdi85zzmxwlnhyq7r6cr3m5prrdr8a53"))))
7640 (build-system glib-or-gtk-build-system)
7641 (arguments
7642 '(#:phases
7643 (modify-phases %standard-phases
7644 (add-before 'configure 'qualify-xkbcomp
7645 (lambda* (#:key inputs #:allow-other-keys)
7646 (let ((xkbcomp (string-append
7647 (assoc-ref inputs "xkbcomp") "/bin/xkbcomp")))
7648 (substitute* "src/orca/orca.py"
7649 (("'xkbcomp'") (format #f "'~a'" xkbcomp))))
7650 #t))
7651 (add-after 'install 'wrap-orca
7652 (lambda* (#:key outputs #:allow-other-keys)
7653 (let* ((out (assoc-ref outputs "out"))
7654 (prog (string-append out "/bin/orca")))
7655 (wrap-program prog
7656 `("GI_TYPELIB_PATH" ":" prefix
7657 (,(getenv "GI_TYPELIB_PATH")))
7658 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
7659 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
7660 `("PYTHONPATH" ":" prefix
7661 (,(getenv "PYTHONPATH")))))
7662 #t)))))
7663 (native-inputs
7664 `(("intltool" ,intltool)
7665 ("itstool" ,itstool)
7666 ("pkg-config" ,pkg-config)
7667 ("xmllint" ,libxml2)))
7668 (inputs
7669 `(("at-spi2-atk" ,at-spi2-atk)
7670 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7671 ("gstreamer" ,gstreamer)
7672 ("gst-plugins-base" ,gst-plugins-base)
7673 ("gst-plugins-good" ,gst-plugins-good)
7674 ("gtk+" ,gtk+)
7675 ("python" ,python)
7676 ("python-pygobject" ,python-pygobject)
7677 ("python-pyatspi" ,python-pyatspi)
7678 ("python-speechd" ,speech-dispatcher)
7679 ("xkbcomp" ,xkbcomp)))
7680 (synopsis
7681 "Screen reader for individuals who are blind or visually impaired")
7682 (home-page "https://wiki.gnome.org/Projects/Orca")
7683 (description
7684 "Orca is a screen reader that provides access to the graphical desktop
7685 via speech and refreshable braille. Orca works with applications and toolkits
7686 that support the Assistive Technology Service Provider Interface (AT-SPI).")
7687 (license license:lgpl2.1+)))
7688
7689 (define-public gspell
7690 (package
7691 (name "gspell")
7692 (version "1.8.2")
7693 (source (origin
7694 (method url-fetch)
7695 (uri (string-append "mirror://gnome/sources/" name "/"
7696 (version-major+minor version) "/"
7697 name "-" version ".tar.xz"))
7698 (sha256
7699 (base32
7700 "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
7701 (patches (search-patches "gspell-dash-test.patch"))))
7702 (build-system glib-or-gtk-build-system)
7703 (arguments
7704 '(#:phases
7705 (modify-phases %standard-phases
7706 (add-before 'check 'pre-check
7707 (lambda* (#:key inputs #:allow-other-keys)
7708 ;; Tests require a running X server.
7709 (system "Xvfb :1 &")
7710 (setenv "DISPLAY" ":1")
7711
7712 ;; For the missing /etc/machine-id.
7713 (setenv "DBUS_FATAL_WARNINGS" "0")
7714
7715 ;; Allow Enchant and its Aspell backend to find the en_US
7716 ;; dictionary.
7717 (setenv "ASPELL_DICT_DIR"
7718 (string-append (assoc-ref inputs "aspell-dict-en")
7719 "/lib/aspell"))
7720 #t)))))
7721 (inputs
7722 `(("gtk+" ,gtk+)
7723 ("glib" ,glib)
7724 ("iso-codes" ,iso-codes)))
7725 (native-inputs
7726 `(("glib" ,glib "bin")
7727 ("pkg-config" ,pkg-config)
7728 ("xmllint" ,libxml2)
7729
7730 ;; For tests.
7731 ("aspell-dict-en" ,aspell-dict-en)
7732 ("xorg-server" ,xorg-server)))
7733 (propagated-inputs
7734 `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
7735 (home-page "https://wiki.gnome.org/Projects/gspell")
7736 (synopsis "GNOME's alternative spell checker")
7737 (description
7738 "gspell provides a flexible API to add spell-checking to a GTK+
7739 application. It provides a GObject API, spell-checking to text entries and
7740 text views, and buttons to choose the language.")
7741 (license license:gpl2+)))
7742
7743 (define-public gnome-planner
7744 (package
7745 (name "gnome-planner")
7746 (version "0.14.6")
7747 (source (origin
7748 (method url-fetch)
7749 (uri (string-append "mirror://gnome/sources/planner/"
7750 (version-major+minor version) "/planner-"
7751 version ".tar.xz"))
7752 (sha256
7753 (base32
7754 "15h6ps58giy5r1g66sg1l4xzhjssl362mfny2x09khdqsvk2j38k"))))
7755 (build-system glib-or-gtk-build-system)
7756 (arguments
7757 ;; Disable the Python bindings because the Planner program functions
7758 ;; without them, and (as of 2017-06-13) we have not packaged all of
7759 ;; packages that are necessary for building the Python bindings.
7760 `(#:configure-flags
7761 (list "--disable-python"
7762 ,@(if (string=? "aarch64-linux" (%current-system))
7763 '("--build=aarch64-unknown-linux-gnu")
7764 '()))))
7765 (inputs
7766 `(("libgnomecanvas" ,libgnomecanvas)
7767 ("libgnomeui" ,libgnomeui)
7768 ("libglade" ,libglade)
7769 ("gnome-vfs" ,gnome-vfs)
7770 ("gconf" ,gconf)
7771 ("libxml2" ,libxml2)
7772 ("libxslt" ,libxslt)
7773 ("gtk+" ,gtk+)
7774 ("glib" ,glib)))
7775 (native-inputs
7776 `(("intltool" ,intltool)
7777 ("scrollkeeper" ,scrollkeeper)
7778 ("pkg-config" ,pkg-config)))
7779 (home-page "https://wiki.gnome.org/Apps/Planner")
7780 (synopsis "Project management software for the GNOME desktop")
7781 (description
7782 "GNOME Planner is a project management tool based on the Work Breakdown
7783 Structure (WBS). Its goal is to enable you to easily plan projects. Based on
7784 the resources, tasks, and constraints that you define, Planner generates
7785 various views into a project. For example, Planner can show a Gantt chart of
7786 the project. It can show a detailed summary of tasks including their
7787 duration, cost, and current progress. It can also show a report of resource
7788 utilization that highlights under-utilized and over-utilized resources. These
7789 views can be printed as PDF or PostScript files, or exported to HTML.")
7790 (license license:gpl2+)))
7791
7792 (define-public lollypop
7793 (package
7794 (name "lollypop")
7795 (version "1.1.3.1")
7796 (source
7797 (origin
7798 (method url-fetch)
7799 (uri (string-append "https://gitlab.gnome.org/World/lollypop/uploads/"
7800 "5a7cd7c72b6d83ae08d0c54c4691f9df/"
7801 name "-" version ".tar.xz"))
7802 (sha256
7803 (base32
7804 "1r5wn0bja9psz6nr1rcaysdkkwz84rbyzpdfw66cxa6wiy52pkjm"))))
7805 (build-system meson-build-system)
7806 (arguments
7807 `(#:imported-modules ((guix build python-build-system)
7808 ,@%meson-build-system-modules)
7809 #:glib-or-gtk? #t
7810 #:tests? #f ; no test suite
7811 #:phases
7812 (modify-phases %standard-phases
7813 (add-after 'install 'wrap-program
7814 (lambda* (#:key outputs #:allow-other-keys)
7815 (let ((out (assoc-ref outputs "out"))
7816 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7817 (wrap-program (string-append out "/bin/lollypop")
7818 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7819 #t))
7820 (add-after 'install 'wrap
7821 (@@ (guix build python-build-system) wrap)))))
7822 (native-inputs
7823 `(("intltool" ,intltool)
7824 ("itstool" ,itstool)
7825 ("glib:bin" ,glib "bin") ; For glib-compile-resources
7826 ("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7827 ("pkg-config" ,pkg-config)))
7828 (inputs
7829 `(("gobject-introspection" ,gobject-introspection)
7830 ("gst-plugins-base" ,gst-plugins-base)
7831 ("libnotify" ,libnotify)
7832 ("libsecret" ,libsecret)
7833 ("libsoup" ,libsoup)
7834 ("python" ,python)
7835 ("python-beautifulsoup4" ,python-beautifulsoup4)
7836 ("python-gst" ,python-gst)
7837 ("python-pil" ,python-pillow)
7838 ("python-pycairo" ,python-pycairo)
7839 ("python-pygobject" ,python-pygobject)
7840 ("python-pylast" ,python-pylast)
7841 ("totem-pl-parser" ,totem-pl-parser)
7842 ("webkitgtk" ,webkitgtk)))
7843 (propagated-inputs
7844 `(;; gst-plugins-base is required to start Lollypop,
7845 ;; the others are required to play streaming.
7846 ("gst-plugins-good" ,gst-plugins-good)
7847 ("gst-plugins-ugly" ,gst-plugins-ugly)))
7848 (home-page "https://wiki.gnome.org/Apps/Lollypop")
7849 (synopsis "GNOME music playing application")
7850 (description
7851 "Lollypop is a music player designed to play well with GNOME desktop.
7852 Lollypop plays audio formats such as mp3, mp4, ogg and flac and gets information
7853 from artists and tracks from the web. It also fetches cover artworks
7854 automatically and it can stream songs from online music services and charts.")
7855 (license license:gpl3+)))
7856
7857 (define-public gnome-video-effects
7858 (package
7859 (name "gnome-video-effects")
7860 (version "0.4.3")
7861 (source (origin
7862 (method url-fetch)
7863 (uri (string-append "mirror://gnome/sources/" name "/"
7864 (version-major+minor version) "/" name "-"
7865 version ".tar.xz"))
7866 (sha256
7867 (base32
7868 "06c2f1kihyhawap1s3zg5w7q7fypsybkp7xry4hxkdz4mpsy0zjs"))))
7869 (build-system glib-or-gtk-build-system)
7870 (arguments
7871 `(#:out-of-source? #f))
7872 (native-inputs
7873 `(("glib:bin" ,glib "bin")
7874 ("intltool" ,intltool)
7875 ("gettext" ,gettext-minimal)
7876 ("pkg-config" ,pkg-config)))
7877 (home-page "https://wiki.gnome.org/Projects/GnomeVideoEffects")
7878 (synopsis "Video effects for Cheese and other GNOME applications")
7879 (description
7880 "A collection of GStreamer video filters and effects to be used in
7881 photo-booth-like software, such as Cheese.")
7882 (license license:gpl2+)))
7883
7884 (define-public cheese
7885 (package
7886 (name "cheese")
7887 (version "3.30.0")
7888 (source (origin
7889 (method url-fetch)
7890 (uri (string-append "mirror://gnome/sources/" name "/"
7891 (version-major+minor version) "/" name "-"
7892 version ".tar.xz"))
7893 (sha256
7894 (base32
7895 "0zz2bgjaf2lsmfs3zn24925vbjb0rycr39i288brlbzixrpcyljr"))))
7896 (arguments
7897 ;; Tests require GDK.
7898 `(#:tests? #f
7899 #:phases
7900 (modify-phases %standard-phases
7901 (add-before 'install 'skip-gtk-update-icon-cache
7902 (lambda _
7903 ;; Don't create 'icon-theme.cache'
7904 (substitute* "Makefile"
7905 (("gtk-update-icon-cache") (which "true")))
7906 #t))
7907 (add-after 'install 'wrap-cheese
7908 (lambda* (#:key inputs outputs #:allow-other-keys)
7909 (let ((out (assoc-ref outputs "out"))
7910 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
7911 (wrap-program (string-append out "/bin/cheese")
7912 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
7913 #t)))))
7914 (build-system glib-or-gtk-build-system)
7915 (native-inputs
7916 `(("glib:bin" ,glib "bin")
7917 ("intltool" ,intltool)
7918 ("itstool" ,itstool)
7919 ("libxml2" ,libxml2)
7920 ("pkg-config" ,pkg-config)
7921 ("vala" ,vala)))
7922 (propagated-inputs
7923 `(("gnome-video-effects" ,gnome-video-effects)
7924 ("clutter" ,clutter)
7925 ("clutter-gst" ,clutter-gst)
7926 ("clutter-gtk" ,clutter-gtk)
7927 ("libcanberra" ,libcanberra)
7928 ("gdk-pixbuf" ,gdk-pixbuf)
7929 ("glib" ,glib)
7930 ("gstreamer" ,gstreamer)))
7931 (inputs
7932 `(("gnome-desktop" ,gnome-desktop)
7933 ("gobject-introspection" ,gobject-introspection)
7934 ("gst-plugins-base" ,gst-plugins-base)
7935 ("gst-plugins-bad" ,gst-plugins-bad)
7936 ("gtk+" ,gtk+)
7937 ("libx11" ,libx11)
7938 ("libxtst" ,libxtst)))
7939 (home-page "https://wiki.gnome.org/Apps/Cheese")
7940 (synopsis "Webcam photo booth software for GNOME")
7941 (description
7942 "Cheese uses your webcam to take photos and videos. Cheese can also
7943 apply fancy special effects and lets you share the fun with others.")
7944 (license license:gpl2+)))
7945
7946 (define-public sound-juicer
7947 (package
7948 (name "sound-juicer")
7949 (version "3.24.0")
7950 (source
7951 (origin
7952 (method url-fetch)
7953 (uri (string-append "mirror://gnome/sources/" name "/"
7954 (version-major+minor version) "/"
7955 name "-" version ".tar.xz"))
7956 (sha256
7957 (base32
7958 "19qg4xv0f9rkq34lragkmhii1llxsa87llbl28i759b0ks4f6sny"))))
7959 (build-system glib-or-gtk-build-system)
7960 (native-inputs
7961 `(("desktop-file-utils" ,desktop-file-utils)
7962 ("intltool" ,intltool)
7963 ("itstool" ,itstool)
7964 ("pkg-config" ,pkg-config)
7965 ("xmllint" ,libxml2)))
7966 (inputs
7967 `(("gtk+" ,gtk+)
7968 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7969 ("gstreamer" ,gstreamer)
7970 ("gst-plugins-base" ,gst-plugins-base)
7971 ("gst-plugins-good" ,gst-plugins-good)
7972 ("iso-codes" ,iso-codes)
7973 ("libbrasero-media3" ,brasero)
7974 ("libcanberra" ,libcanberra)
7975 ("libdiscid" ,libdiscid)
7976 ("libmusicbrainz" ,libmusicbrainz)
7977 ("neon" ,neon)))
7978 (home-page "https://wiki.gnome.org/Apps/SoundJuicer")
7979 (synopsis "Audio music cd ripper")
7980 (description "Sound Juicer extracts audio from compact discs and convert it
7981 into audio files that a personal computer or digital audio player can play.
7982 It supports ripping to any audio codec supported by a GStreamer plugin, such as
7983 mp3, Ogg Vorbis and FLAC")
7984 (license license:gpl2+)))
7985
7986 (define-public soundconverter
7987 (package
7988 (name "soundconverter")
7989 (version "3.0.1")
7990 (source
7991 (origin
7992 (method url-fetch)
7993 (uri (string-append "https://launchpad.net/soundconverter/trunk/"
7994 version "/+download/"
7995 "soundconverter-" version ".tar.xz"))
7996
7997 (sha256
7998 (base32 "1d6x1yf8psqbd9zbybxivfqg55khcnngp2mn92l161dfdk9512c5"))
7999 (patches
8000 (search-patches
8001 "soundconverter-remove-gconf-dependency.patch"))))
8002 (build-system glib-or-gtk-build-system)
8003 (arguments
8004 `(#:imported-modules ((guix build python-build-system)
8005 (guix build glib-or-gtk-build-system)
8006 ,@%gnu-build-system-modules)
8007
8008 #:modules ((guix build glib-or-gtk-build-system)
8009 (guix build utils)
8010 ((guix build gnu-build-system) #:prefix gnu:)
8011 ((guix build python-build-system) #:prefix python:))
8012
8013 #:phases
8014 (modify-phases %standard-phases
8015 (add-after 'install 'wrap-soundconverter-for-python
8016 (assoc-ref python:%standard-phases 'wrap))
8017 (add-after 'install 'wrap-soundconverter
8018 (lambda* (#:key inputs outputs #:allow-other-keys)
8019 (let ((out (assoc-ref outputs "out"))
8020 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
8021 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
8022 (wrap-program (string-append out "/bin/soundconverter")
8023 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
8024 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
8025 #t)))))
8026 (native-inputs
8027 `(("intltool" ,intltool)
8028 ("pkg-config" ,pkg-config)
8029 ("glib:bin" ,glib "bin")))
8030 (inputs
8031 `(("gtk+" ,gtk+)
8032 ("python" ,python)
8033 ("python-pygobject" ,python-pygobject)
8034 ("gstreamer" ,gstreamer)
8035 ("gst-plugins-base" ,gst-plugins-base)))
8036 (home-page "http://soundconverter.org/")
8037 (synopsis "Convert between audio formats with a graphical interface")
8038 (description
8039 "SoundConverter supports converting between many audio formats including
8040 Opus, Ogg Vorbis, FLAC and more. It supports parallel conversion, and
8041 configurable file renaming. ")
8042 (license license:gpl3)))
8043
8044 (define-public workrave
8045 (package
8046 (name "workrave")
8047 (version "1.10.34")
8048 (source
8049 (origin
8050 (method git-fetch)
8051 (uri (git-reference
8052 (url "https://github.com/rcaelers/workrave.git")
8053 (commit (string-append "v" (string-map
8054 (match-lambda (#\. #\_) (chr chr))
8055 version)))))
8056 (file-name (git-file-name name version))
8057 (sha256
8058 (base32 "0czwhr7nw523753ajcjjfwrf91mq8pmzr19gp0srqsvb1dsn1zcf"))))
8059 (build-system glib-or-gtk-build-system)
8060 (inputs `(("glib" ,glib)
8061 ("gtk+" ,gtk+)
8062 ("gdk-pixbuf" ,gdk-pixbuf)
8063 ("gtkmm" ,gtkmm)
8064 ("glibmm" ,glibmm)
8065 ("libx11" ,libx11)
8066 ("libxtst" ,libxtst)
8067 ("dconf" ,dconf)
8068 ("libice" ,libice)
8069 ("libsm" ,libsm)
8070 ("libxscrnsaver" ,libxscrnsaver)))
8071 (native-inputs `(("boost" ,boost)
8072 ("pkg-config" ,pkg-config)
8073 ("gettext" ,gnu-gettext)
8074 ("autoconf" ,autoconf)
8075 ("autoconf-archive" , autoconf-archive)
8076 ("automake" ,automake)
8077 ("libtool" ,libtool)
8078 ("intltool" ,intltool)
8079 ("gobject-introspection" ,gobject-introspection)
8080 ("python3" ,python-3)
8081 ("python-jinja2" ,python-jinja2)))
8082 (synopsis "Tool to help prevent repetitive strain injury (RSI)")
8083 (description
8084 "Workrave is a program that assists in the recovery and prevention of
8085 repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
8086 micro-pauses and rest breaks, and restricts you to your daily limit.")
8087 (home-page "http://www.workrave.org")
8088 (license license:gpl3+)))
8089
8090 (define-public ghex
8091 (package
8092 (name "ghex")
8093 (version "3.18.3")
8094 (source (origin
8095 (method url-fetch)
8096 (uri (string-append "mirror://gnome/sources/ghex/"
8097 (version-major+minor version) "/"
8098 "ghex-" version ".tar.xz"))
8099 (sha256
8100 (base32
8101 "1lq8920ad2chi9ibmyq0x9hg9yk63b0kdbzid03w42cwdzw50x66"))))
8102 (build-system glib-or-gtk-build-system)
8103 (native-inputs
8104 `(("pkg-config" ,pkg-config)
8105 ("gnome-common" ,gnome-common)
8106 ("which" ,which)
8107 ("intltool" ,intltool)
8108 ("yelp-tools" ,yelp-tools)
8109 ("desktop-file-utils" ,desktop-file-utils))) ; for 'desktop-file-validate'
8110 (inputs
8111 `(("atk" ,atk)
8112 ("gtk" ,gtk+)))
8113 (synopsis "GNOME hexadecimal editor")
8114 (description "The GHex program can view and edit files in two ways:
8115 hexadecimal or ASCII. It is useful for editing binary files in general.")
8116 (home-page "https://wiki.gnome.org/Apps/Ghex")
8117 (license license:gpl2)))
8118
8119 (define-public libdazzle
8120 (package
8121 (name "libdazzle")
8122 (version "3.33.90")
8123 (source (origin
8124 (method url-fetch)
8125 (uri (string-append "mirror://gnome/sources/libdazzle/"
8126 (version-major+minor version) "/"
8127 "libdazzle-" version ".tar.xz"))
8128 (sha256
8129 (base32
8130 "189m7q88d1a7bq0yyal9f3yhm9kz46lb61379nn4wsnnhpa1d0qs"))))
8131 (build-system meson-build-system)
8132 (arguments
8133 `(#:phases
8134 (modify-phases %standard-phases
8135 (add-before 'check 'pre-check
8136 (lambda _
8137 ;; Tests require a running X server.
8138 (system "Xvfb :1 &")
8139 (setenv "DISPLAY" ":1")
8140 #t)))))
8141 (native-inputs
8142 `(("glib" ,glib "bin") ; glib-compile-resources
8143 ("pkg-config" ,pkg-config)
8144 ;; For tests.
8145 ("xorg-server" ,xorg-server)))
8146 (inputs
8147 `(("glib" ,glib)
8148 ("gobject-introspection" ,gobject-introspection)
8149 ("gtk+" ,gtk+)
8150 ("vala" ,vala)))
8151 (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
8152 (synopsis "Companion library to GObject and Gtk+")
8153 (description "The libdazzle library is a companion library to GObject and
8154 Gtk+. It provides various features that the authors wish were in the
8155 underlying library but cannot for various reasons. In most cases, they are
8156 wildly out of scope for those libraries. In other cases, they are not quite
8157 generic enough to work for everyone.")
8158 (license license:gpl3+)))
8159
8160 (define-public evolution
8161 (package
8162 (name "evolution")
8163 (version "3.30.5")
8164 (source (origin
8165 (method url-fetch)
8166 (uri (string-append "mirror://gnome/sources/evolution/"
8167 (version-major+minor version) "/"
8168 "evolution-" version ".tar.xz"))
8169 (sha256
8170 (base32
8171 "1hhxj3rh921pp3l3c5k33bdypcas1p66krzs65k1qn82c5fpgl2h"))))
8172 (build-system cmake-build-system)
8173 (arguments
8174 `(#:imported-modules (,@%cmake-build-system-modules
8175 (guix build glib-or-gtk-build-system))
8176 #:modules ((guix build cmake-build-system)
8177 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
8178 (guix build utils))
8179 #:configure-flags
8180 (list "-DENABLE_PST_IMPORT=OFF" ; libpst is not packaged
8181 "-DENABLE_LIBCRYPTUI=OFF") ; libcryptui hasn't seen a release
8182 ; in four years and cannot be built.
8183 #:phases
8184 (modify-phases %standard-phases
8185 ;; The build system attempts to install user interface modules to the
8186 ;; output directory of the "evolution-data-server" package. This
8187 ;; change redirects that change.
8188 (add-after 'unpack 'patch-ui-module-dir
8189 (lambda* (#:key outputs #:allow-other-keys)
8190 (substitute* "src/modules/alarm-notify/CMakeLists.txt"
8191 (("\\$\\{edsuimoduledir\\}")
8192 (string-append (assoc-ref outputs "out")
8193 "/lib/evolution-data-server/ui-modules")))
8194 #t))
8195 (add-after 'install 'glib-or-gtk-compile-schemas
8196 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
8197 (add-after 'install 'glib-or-gtk-wrap
8198 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
8199 (native-inputs
8200 `(("glib" ,glib "bin") ; glib-mkenums
8201 ("pkg-config" ,pkg-config)
8202 ("intltool" ,intltool)
8203 ("itstool" ,itstool)))
8204 (inputs
8205 `(("enchant" ,enchant)
8206 ("evolution-data-server" ,evolution-data-server) ; must be the same version
8207 ("gcr" ,gcr)
8208 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8209 ("gnome-autoar" ,gnome-autoar)
8210 ("gnome-desktop" ,gnome-desktop)
8211 ("gtkspell3" ,gtkspell3)
8212 ("highlight" ,highlight)
8213 ("libcanberra" ,libcanberra)
8214 ("libedataserverui" ,evolution-data-server)
8215 ("libgweather" ,libgweather)
8216 ("libnotify" ,libnotify)
8217 ("libsoup" ,libsoup)
8218 ("nss" ,nss)
8219 ("openldap" ,openldap)
8220 ("webkitgtk" ,webkitgtk)
8221 ("ytnef" ,ytnef)))
8222 (home-page "https://gitlab.gnome.org/GNOME/evolution")
8223 (synopsis "Manage your email, contacts and schedule")
8224 (description "Evolution is a personal information management application
8225 that provides integrated mail, calendaring and address book
8226 functionality.")
8227 ;; See COPYING for details.
8228 (license (list license:lgpl2.1 license:lgpl3 ; either one of these
8229 license:openldap2.8 ; addressbook/gui/component/openldap-extract.h
8230 license:lgpl2.1+)))) ; smime/lib/*
8231
8232 (define-public gthumb
8233 (package
8234 (name "gthumb")
8235 (version "3.8.1")
8236 (source (origin
8237 (method url-fetch)
8238 (uri (string-append "mirror://gnome/sources/gthumb/"
8239 (version-major+minor version) "/"
8240 "gthumb-" version ".tar.xz"))
8241 (sha256
8242 (base32
8243 "184zn79w4s9y1zy42ar31p3jsg8rmkxy8k6iry51nz8aizbcs7jb"))))
8244 (build-system meson-build-system)
8245 (arguments
8246 `(#:glib-or-gtk? #t
8247 #:configure-flags
8248 ;; Ensure the RUNPATH contains all installed library locations.
8249 (list (string-append "-Dc_link_args=-Wl,-rpath="
8250 (assoc-ref %outputs "out")
8251 "/lib/gthumb/extensions")
8252 (string-append "-Dcpp_link_args=-Wl,-rpath="
8253 (assoc-ref %outputs "out")
8254 "/lib/gthumb/extensions"))))
8255 (native-inputs
8256 `(("pkg-config" ,pkg-config)
8257 ("glib:bin" ,glib "bin") ; for glib-compile-resources
8258 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8259 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8260 ("intltool" ,intltool)
8261 ("itstool" ,itstool)))
8262 (inputs
8263 `(("exiv2" ,exiv2)
8264 ("gtk" ,gtk+)
8265 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8266 ("gstreamer" ,gstreamer)
8267 ("clutter" ,clutter)
8268 ("clutter-gst" ,clutter-gst)
8269 ("clutter-gtk" ,clutter-gtk)
8270 ("libjpeg" ,libjpeg)
8271 ("libtiff" ,libtiff)
8272 ("libraw" ,libraw)))
8273 (home-page "https://wiki.gnome.org/Apps/Gthumb")
8274 (synopsis "GNOME image viewer and browser")
8275 (description "GThumb is an image viewer, browser, organizer, editor and
8276 advanced image management tool")
8277 (license license:gpl2+)))
8278
8279 (define-public terminator
8280 (package
8281 (name "terminator")
8282 (version "1.91")
8283 (source (origin
8284 (method url-fetch)
8285 (uri (string-append "https://launchpad.net/" name "/"
8286 "gtk3/" version "/" "+download/"
8287 name "-" version ".tar.gz"))
8288 (sha256
8289 (base32
8290 "0sdyqwydmdnh7j6mn74vrywz35m416kqsbxbrqcnv5ak08y6xxwm"))))
8291 (build-system python-build-system)
8292 (native-inputs
8293 `(("intltool" ,intltool)
8294 ("glib:bin" ,glib "bin") ; for glib-compile-resources
8295 ("gettext" ,gettext-minimal)
8296 ("pkg-config" ,pkg-config)))
8297 (inputs
8298 `(("cairo" ,cairo)
8299 ("gobject-introspection" ,gobject-introspection)
8300 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8301 ("python2-pycairo" ,python2-pycairo)
8302 ("python2-pygobject" ,python2-pygobject)
8303 ("python2-psutil" ,python2-psutil)
8304 ("vte" ,vte)))
8305 (arguments
8306 `(#:python ,python-2 ; Python 3 isn't supported
8307 #:imported-modules ((guix build glib-or-gtk-build-system)
8308 ,@%python-build-system-modules)
8309 #:modules ((guix build python-build-system)
8310 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
8311 (guix build utils))
8312 #:phases
8313 (modify-phases %standard-phases
8314 (add-after
8315 'install 'wrap-program
8316 (lambda* (#:key outputs #:allow-other-keys)
8317 (let ((prog (string-append (assoc-ref outputs "out")
8318 "/bin/terminator")))
8319 (wrap-program prog
8320 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
8321 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
8322 #t)))
8323 (add-after 'wrap-program 'glib-or-gtk-wrap
8324 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
8325 (home-page "https://gnometerminator.blogspot.com/")
8326 (synopsis "Store and run multiple GNOME terminals in one window")
8327 (description
8328 "Terminator allows you to run multiple GNOME terminals in a grid and
8329 +tabs, and it supports drag and drop re-ordering of terminals.")
8330 (license license:gpl2)))
8331
8332 (define-public libhandy
8333 (package
8334 (name "libhandy")
8335 (version "0.0.11")
8336 (source
8337 (origin
8338 (method git-fetch)
8339 (uri (git-reference
8340 (url "https://source.puri.sm/Librem5/libhandy")
8341 (commit (string-append "v" version))))
8342 (file-name (git-file-name name version))
8343 (sha256
8344 (base32 "0622zp5wrvn5bvgardijxd11y76g1i54fs32y03dw9nrar7i6vb0"))))
8345 (build-system meson-build-system)
8346 (arguments
8347 `(#:configure-flags
8348 '("-Dglade_catalog=disabled"
8349 "-Dgtk_doc=true")
8350 #:phases
8351 (modify-phases %standard-phases
8352 (add-before 'check 'pre-check
8353 (lambda _
8354 ;; Tests require a running X server.
8355 (system "Xvfb :1 &")
8356 (setenv "DISPLAY" ":1")
8357 #t)))))
8358 (inputs
8359 `(("gtk+" ,gtk+)))
8360 (native-inputs
8361 `(("glib:bin" ,glib "bin")
8362 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
8363 ("vala" ,vala)
8364 ("gtk-doc" ,gtk-doc)
8365 ("pkg-config" ,pkg-config)
8366 ("gettext" ,gettext-minimal)
8367 ("xorg-server" ,xorg-server)
8368
8369 ;; Test suite dependencies.
8370 ("hicolor-icon-theme" ,hicolor-icon-theme)))
8371 (home-page "https://source.puri.sm/Librem5/libhandy")
8372 (synopsis "Library full of GTK+ widgets for mobile phones")
8373 (description "The aim of the handy library is to help with developing user
8374 intefaces for mobile devices using GTK+.")
8375 (license license:lgpl2.1+)))
8376
8377 (define-public libgit2-glib
8378 (package
8379 (name "libgit2-glib")
8380 (version "0.28.0.1")
8381 (source (origin
8382 (method url-fetch)
8383 (uri (string-append "mirror://gnome/sources/" name "/"
8384 (version-major+minor version) "/"
8385 name "-" version ".tar.xz"))
8386 (sha256
8387 (base32
8388 "0a0g7aw66rfgnqr4z7fgbk5zzcjq66m4rp8v4val3a212941h0g7"))))
8389 (build-system meson-build-system)
8390 (native-inputs
8391 `(("glib:bin" ,glib "bin") ;; For glib-mkenums
8392 ("gobject-introspection" ,gobject-introspection)
8393 ("intltool" ,intltool)
8394 ("libssh2" ,libssh2)
8395 ("pkg-config" ,pkg-config)
8396 ("python-pygobject" ,python-pygobject)
8397 ("python-wrapper" ,python-wrapper)
8398 ("vala" ,vala)))
8399 (inputs
8400 `(("glib" ,glib)
8401 ("libgit2" ,libgit2)))
8402 (synopsis "GLib wrapper around the libgit2 Git access library")
8403 (description "libgit2-glib is a GLib wrapper library around the libgit2 Git
8404 access library. It only implements the core plumbing functions, not really the
8405 higher level porcelain stuff.")
8406 (home-page "https://wiki.gnome.org/Projects/Libgit2-glib")
8407 (license license:gpl2+)))
8408
8409 (define-public gnome-mahjongg
8410 (package
8411 (name "gnome-mahjongg")
8412 (version "3.35.1")
8413 (source (origin
8414 (method git-fetch)
8415 (uri (git-reference
8416 (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
8417 (commit version)))
8418 (file-name (git-file-name name version))
8419 (sha256
8420 (base32
8421 "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
8422 (build-system meson-build-system)
8423 (arguments
8424 `(#:glib-or-gtk? #t))
8425 (native-inputs
8426 `(("appstream-glib" ,appstream-glib)
8427 ("gettext" ,gettext-minimal)
8428 ("glib:bin" ,glib "bin") ;; For glib-compile-resources
8429 ("gtk+" ,gtk+ "bin") ;; For gtk-update-icon-cache
8430 ("itstool" ,itstool)
8431 ("pkg-config" ,pkg-config)
8432 ("vala" ,vala)))
8433 (propagated-inputs
8434 `(("dconf" ,dconf)))
8435 (inputs
8436 `(("glib" ,glib)
8437 ("gtk+" ,gtk+)
8438 ("librsvg" ,librsvg)))
8439 (synopsis "Mahjongg tile-matching game")
8440 (description "GNOME Mahjongg is a game based on the classic Chinese
8441 tile-matching game Mahjong. It features multiple board layouts, tile themes,
8442 and a high score table.")
8443 (home-page "https://wiki.gnome.org/Apps/Mahjongg")
8444 (license license:gpl2+)))