gnu: network-manager-applet: Don't use NAME in source URI.
[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.4")
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 "0gyrv46h9k17qym48qacq4zpxbap6hi17shn921824zm98m2bdvr"))))
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 (define-public mobile-broadband-provider-info
5641 (package
5642 (name "mobile-broadband-provider-info")
5643 (version "20190116")
5644 (source (origin
5645 (method url-fetch)
5646 (uri (string-append
5647 "mirror://gnome/sources/"
5648 "mobile-broadband-provider-info/" version "/"
5649 "mobile-broadband-provider-info-" version ".tar.xz"))
5650 (sha256
5651 (base32
5652 "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"))))
5653 (build-system gnu-build-system)
5654 (arguments
5655 `(#:tests? #f)) ; no tests
5656 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
5657 (synopsis "Database of broadband connection configuration")
5658 (description "Database of broadband connection configuration.")
5659 (license license:public-domain)))
5660
5661 (define-public network-manager-applet
5662 (package
5663 (name "network-manager-applet")
5664 (version "1.8.24")
5665 (source (origin
5666 (method url-fetch)
5667 (uri (string-append "mirror://gnome/sources/network-manager-applet/"
5668 (version-major+minor version) "/"
5669 "network-manager-applet-" version ".tar.xz"))
5670 (sha256
5671 (base32
5672 "1gzvz4wfqfsfclqg56y954al8x6fmz71cnxlx1i4nqr7a25bp2qi"))))
5673 (build-system meson-build-system)
5674 (arguments
5675 '(#:configure-flags
5676 ;; ‘Nobody should be using this’ but network-manager-openvpn 1.8.10 does.
5677 (list "-Dlibnm_gtk=true")
5678 #:glib-or-gtk? #t))
5679 (native-inputs
5680 `(("intltool" ,intltool)
5681 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
5682 ("gobject-introspection" ,gobject-introspection)
5683 ("gtk-doc" ,gtk-doc)
5684 ("pkg-config" ,pkg-config)))
5685 (propagated-inputs
5686 ;; libnm-gtk.pc refers to all these.
5687 `(("dbus-glib" ,dbus-glib)
5688 ("gtk+" ,gtk+)
5689 ("network-manager" ,network-manager)))
5690 (inputs
5691 `(("gcr" ,gcr)
5692 ("iso-codes" ,iso-codes)
5693 ("libgudev" ,libgudev)
5694 ("libnotify" ,libnotify)
5695 ("libsecret" ,libsecret)
5696 ("libselinux" ,libselinux)
5697 ("jansson" ,jansson) ; for team support
5698 ("modem-manager" ,modem-manager)
5699 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)))
5700 (synopsis "Applet for managing network connections")
5701 (home-page "https://www.gnome.org/projects/NetworkManager/")
5702 (description
5703 "This package contains a systray applet for NetworkManager. It displays
5704 the available networks and allows users to easily switch between them.")
5705 (license license:gpl2+)))
5706
5707 (define-public libxml++
5708 (package
5709 (name "libxml++")
5710 (version "3.0.1")
5711 (source (origin
5712 (method url-fetch)
5713 (uri (string-append "mirror://gnome/sources/" name "/"
5714 (version-major+minor version) "/"
5715 name "-" version ".tar.xz"))
5716 (sha256
5717 (base32
5718 "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"))))
5719 (build-system gnu-build-system)
5720 ;; libxml++-3.0.pc refers to all these.
5721 (propagated-inputs
5722 `(("libxml2" ,libxml2)
5723 ("glibmm" ,glibmm)))
5724 (native-inputs
5725 `(("perl" ,perl)
5726 ("pkg-config" ,pkg-config)))
5727 (home-page "http://libxmlplusplus.sourceforge.net/")
5728 (synopsis "C++ wrapper for XML parser library libxml2")
5729 (description
5730 "This package provides a C++ wrapper for the XML parser library
5731 libxml2.")
5732 (license license:lgpl2.1+)))
5733
5734 (define-public libxml++-2
5735 (package
5736 (inherit libxml++)
5737 (name "libxml++")
5738 (version "2.40.1")
5739 (source (origin
5740 (method url-fetch)
5741 (uri (string-append "mirror://gnome/sources/" name "/"
5742 (version-major+minor version) "/"
5743 name "-" version ".tar.xz"))
5744 (sha256
5745 (base32
5746 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
5747
5748 (define-public gdm
5749 (package
5750 (name "gdm")
5751 (version "3.30.3")
5752 (source (origin
5753 (method url-fetch)
5754 (uri (string-append "mirror://gnome/sources/" name "/"
5755 (version-major+minor version) "/"
5756 name "-" version ".tar.xz"))
5757 (sha256
5758 (base32
5759 "15f7lz7z75krgbq8vb800afj96h8mw2fpy1s28za2911x5vgq0ak"))))
5760 (build-system glib-or-gtk-build-system)
5761 (arguments
5762 '(#:configure-flags
5763 `("--without-plymouth"
5764 "--disable-systemd-journal"
5765
5766 ;; Using --with-initial-vt=7 allows GDM to run alongside TTY 1,
5767 ;; instead of having to replace it (i.e., stopping the mingetty
5768 ;; service for TTY 1 before starting GDM).
5769 "--with-initial-vt=7"
5770
5771 ;; Use '/etc/environment' for locale settings instead of the
5772 ;; systemd-specific '/etc/locale.conf'.
5773 "--with-lang-file=/etc/environment"
5774
5775 ,(string-append "--with-udevdir="
5776 (assoc-ref %outputs "out") "/lib/udev")
5777
5778 "--localstatedir=/var"
5779 ,(string-append "--with-default-path="
5780 (string-join '("/run/setuid-programs"
5781 "/run/current-system/profile/bin"
5782 "/run/current-system/profile/sbin")
5783 ":"))
5784 ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
5785 ;; XDG_DATA_DIRS so that it finds its schemas.
5786 "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
5787 #:phases
5788 (modify-phases %standard-phases
5789 (add-before
5790 'configure 'pre-configure
5791 (lambda* (#:key inputs outputs #:allow-other-keys)
5792 ;; We don't have <systemd/sd-daemon.h>.
5793 (substitute* '("common/gdm-log.c"
5794 "daemon/gdm-server.c"
5795 "daemon/gdm-session-worker.c"
5796 "daemon/gdm-session-worker-job.c")
5797 (("#include <systemd/sd-daemon\\.h>") ""))
5798 ;; Use elogind for sd-login.
5799 (substitute* '("common/gdm-common.c"
5800 "daemon/gdm-manager.c"
5801 "libgdm/gdm-user-switching.c")
5802 (("#include <systemd/sd-login\\.h>")
5803 "#include <elogind/sd-login.h>"))
5804 ;; Check for elogind.
5805 (substitute* '("configure")
5806 (("libsystemd")
5807 "libelogind"))
5808 ;; Look for system-installed sessions in
5809 ;; /run/current-system/profile/share.
5810 (substitute* '("libgdm/gdm-sessions.c"
5811 "daemon/gdm-session.c"
5812 "daemon/gdm-display.c"
5813 "daemon/gdm-launch-environment.c")
5814 (("DATADIR \"/x")
5815 "\"/run/current-system/profile/share/x")
5816 (("DATADIR \"/wayland")
5817 "\"/run/current-system/profile/share/wayland")
5818 (("DATADIR \"/gnome")
5819 "\"/run/current-system/profile/share/gnome"))
5820 (let ((propagate '("GDM_CUSTOM_CONF"
5821 "GDM_DBUS_DAEMON"
5822 "GDM_X_SERVER"
5823 "GDM_X_SESSION"
5824 ;; XXX: Remove this once GNOME Shell is
5825 ;; a dependency of GDM.
5826 "XDG_DATA_DIRS")))
5827 (substitute* "daemon/gdm-session.c"
5828 (("set_up_session_environment \\(self\\);")
5829 (apply string-append
5830 "set_up_session_environment (self);\n"
5831 (map (lambda (name)
5832 (string-append
5833 "gdm_session_set_environment_variable "
5834 "(self, \"" name "\","
5835 "g_getenv (\"" name "\"));\n"))
5836 propagate)))))
5837 ;; Find the configuration file using an environment variable.
5838 (substitute* '("common/gdm-settings.c")
5839 (("GDM_CUSTOM_CONF")
5840 (string-append "(g_getenv(\"GDM_CUSTOM_CONF\") != NULL"
5841 " ? g_getenv(\"GDM_CUSTOM_CONF\")"
5842 " : GDM_CUSTOM_CONF)")))
5843 ;; Use service-supplied path to X.
5844 (substitute* '("daemon/gdm-server.c")
5845 (("\\(X_SERVER X_SERVER_ARG_FORMAT")
5846 "(\"%s\" X_SERVER_ARG_FORMAT, g_getenv (\"GDM_X_SERVER\")"))
5847 (substitute* '("daemon/gdm-x-session.c")
5848 (("\"dbus-daemon\"")
5849 "g_getenv (\"GDM_DBUS_DAEMON\")")
5850 (("X_SERVER")
5851 "g_getenv (\"GDM_X_SERVER\")")
5852 (("GDMCONFDIR \"/Xsession\"")
5853 "g_getenv (\"GDM_X_SESSION\")"))
5854 ;; Use an absolute path for GNOME Session.
5855 (substitute* "daemon/gdm-launch-environment.c"
5856 (("\"gnome-session\"")
5857 (string-append "\"" (assoc-ref inputs "gnome-session")
5858 "/bin/gnome-session\"")))
5859 ;; Do not automatically select the placeholder session.
5860 (substitute* "daemon/gdm-session.c"
5861 (("!g_str_has_suffix [(]base_name, \"\\.desktop\"[)]")
5862 (string-append "!g_str_has_suffix (base_name, \".desktop\") || "
5863 "(g_strcmp0(search_dirs[i], \""
5864 (assoc-ref outputs "out") "/share/gdm/BuiltInSessions/"
5865 "\") == 0 && "
5866 "g_strcmp0(base_name, \"fail.desktop\") == 0)"))
5867 (("g_error [(]\"GdmSession: no session desktop files installed, aborting\\.\\.\\.\"[)];")
5868 "{ self->priv->fallback_session_name = g_strdup(\"fail\"); goto out; }"))
5869 #t))
5870 ;; GDM requires that there be at least one desktop entry
5871 ;; file. This phase installs a hidden one that simply
5872 ;; fails. This enables users to use GDM with a
5873 ;; '~/.xsession' script with no other desktop entry files.
5874 ;; See <https://bugs.gnu.org/35068>.
5875 (add-after 'install 'install-placeholder-desktop-entry
5876 (lambda* (#:key inputs outputs #:allow-other-keys)
5877 (let* ((out (assoc-ref outputs "out"))
5878 (sessions (string-append out "/share/gdm/BuiltInSessions"))
5879 (fail (string-append sessions "/fail.desktop")))
5880 (mkdir-p sessions)
5881 (with-output-to-file fail
5882 (lambda ()
5883 (for-each
5884 display
5885 '("[Desktop Entry]\n"
5886 "Encoding=UTF-8\n"
5887 "Type=Application\n"
5888 "Name=Fail\n"
5889 "Comment=This session fails immediately.\n"
5890 "NoDisplay=true\n"
5891 "Exec=false\n"))))
5892 #t)))
5893 ;; GDM needs GNOME Session to run these applications. We link
5894 ;; their autostart files in `share/gdm/greeter/autostart'
5895 ;; because GDM explicitly tells GNOME Session to look there.
5896 ;;
5897 ;; XXX: GNOME Shell should be linked here too, but currently
5898 ;; GNOME Shell depends on GDM.
5899 (add-after 'install 'link-autostart-files
5900 (lambda* (#:key inputs outputs #:allow-other-keys)
5901 (let* ((out (assoc-ref outputs "out"))
5902 (autostart (string-append out "/share/gdm/"
5903 "greeter/autostart"))
5904 (settings (assoc-ref inputs "gnome-settings-daemon")))
5905 (mkdir-p autostart)
5906 (with-directory-excursion autostart
5907 (for-each (lambda (desktop)
5908 (symlink desktop (basename desktop)))
5909 (find-files (string-append settings "/etc/xdg"))))
5910 #t))))))
5911 (native-inputs
5912 `(("dconf" ,dconf)
5913 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5914 ("gobject-introspection" ,gobject-introspection)
5915 ("intltool" ,intltool)
5916 ("itstool" ,itstool)
5917 ("pkg-config" ,pkg-config)
5918 ("xmllint" ,libxml2)))
5919 (inputs
5920 `(("accountsservice" ,accountsservice)
5921 ("check" ,check) ; for testing
5922 ("elogind" ,elogind)
5923 ("gnome-session" ,gnome-session)
5924 ("gnome-settings-daemon" ,gnome-settings-daemon)
5925 ("gtk+" ,gtk+)
5926 ("iso-codes" ,iso-codes)
5927 ("libcanberra" ,libcanberra)
5928 ("linux-pam" ,linux-pam)))
5929 (synopsis "Display manager for GNOME")
5930 (home-page "https://wiki.gnome.org/Projects/GDM/")
5931 (description
5932 "GNOME Display Manager is a system service that is responsible for
5933 providing graphical log-ins and managing local and remote displays.")
5934 (license license:gpl2+)))
5935
5936 (define-public libgtop
5937 (package
5938 (name "libgtop")
5939 (version "2.40.0")
5940 (source (origin
5941 (method url-fetch)
5942 (uri (string-append "mirror://gnome/sources/libgtop/"
5943 (version-major+minor version) "/"
5944 "libgtop-" version ".tar.xz"))
5945 (sha256
5946 (base32
5947 "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq"))))
5948 (build-system gnu-build-system)
5949 (native-inputs
5950 `(("gobject-introspection" ,gobject-introspection)
5951 ("intltool" ,intltool)
5952 ("perl" ,perl)
5953 ("pkg-config" ,pkg-config)))
5954 (propagated-inputs
5955 `(("glib" ,glib))) ; required by libgtop-2.0.pc
5956 (synopsis "Portable system access library")
5957 (home-page "https://www.gnome.org/")
5958 (description
5959 "LibGTop is a library to get system specific data such as CPU and memory
5960 usage and information about running processes.")
5961 (license license:gpl2+)))
5962
5963 (define-public gnome-bluetooth
5964 (package
5965 (name "gnome-bluetooth")
5966 (version "3.28.0")
5967 (source (origin
5968 (method url-fetch)
5969 (uri (string-append "mirror://gnome/sources/" name "/"
5970 (version-major+minor version) "/"
5971 name "-" version ".tar.xz"))
5972 (sha256
5973 (base32
5974 "0q7yzklrlayj99risj096mr5x35anx94wvr6nbf6pwbvvzv7453p"))))
5975 (build-system meson-build-system)
5976 (native-inputs
5977 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
5978 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
5979 ("gobject-introspection" ,gobject-introspection)
5980 ("intltool" ,intltool)
5981 ("pkg-config" ,pkg-config)
5982 ("xmllint" ,libxml2)))
5983 (propagated-inputs
5984 ;; gnome-bluetooth-1.0.pc refers to all these.
5985 `(("gtk+" ,gtk+)
5986 ("udev" ,eudev)))
5987 (inputs
5988 `(("libcanberra" ,libcanberra)
5989 ("libnotify" ,libnotify)))
5990 (synopsis "GNOME Bluetooth subsystem")
5991 (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
5992 (description
5993 "This package contains tools for managing and manipulating Bluetooth
5994 devices using the GNOME desktop.")
5995 (license license:lgpl2.1+)))
5996
5997 (define-public gnome-control-center
5998 (package
5999 (name "gnome-control-center")
6000 (version "3.30.3")
6001 (source (origin
6002 (method url-fetch)
6003 (uri (string-append "mirror://gnome/sources/" name "/"
6004 (version-major+minor version) "/"
6005 name "-" version ".tar.xz"))
6006 (sha256
6007 (base32
6008 "0gih1cmqbv803kp30704sllghb0impa0mmv3j8pndfg4zr2mnq9r"))
6009 (patches
6010 (search-patches "gnome-control-center-udisks.patch"))))
6011 (build-system meson-build-system)
6012 (arguments
6013 '(#:glib-or-gtk? #t
6014 #:configure-flags
6015 (list "-Dcheese=false"
6016 (string-append "-Dgnome_session_libexecdir="
6017 (assoc-ref %build-inputs "gnome-session")
6018 "/libexec"))
6019 #:phases
6020 (modify-phases %standard-phases
6021 (add-before 'configure 'patch-paths
6022 (lambda* (#:key inputs #:allow-other-keys)
6023 (let ((libc (assoc-ref inputs "libc"))
6024 (tzdata (assoc-ref inputs "tzdata"))
6025 (libgnomekbd (assoc-ref inputs "libgnomekbd"))
6026 (nm-applet (assoc-ref inputs "network-manager-applet"))
6027 (gnome-desktop (assoc-ref inputs "gnome-desktop")))
6028 (substitute* "panels/datetime/tz.h"
6029 (("/usr/share/zoneinfo/zone.tab")
6030 (string-append tzdata "/share/zoneinfo/zone.tab")))
6031 (substitute* "tests/datetime/test-endianess.c"
6032 (("/usr/share/locale")
6033 (string-append libc "/share/locale")))
6034 (substitute* "panels/region/cc-region-panel.c"
6035 (("\"gkbd-keyboard-display")
6036 (string-append "\"" libgnomekbd
6037 "/bin/gkbd-keyboard-display")))
6038 (substitute* '("panels/network/net-device-wifi.c"
6039 "panels/network/net-device.c"
6040 "panels/network/connection-editor/net-connection-editor.c")
6041 (("\"nm-connection-editor")
6042 (string-append "\"" nm-applet
6043 "/bin/nm-connection-editor")))
6044 (substitute* '("panels/user-accounts/run-passwd.c")
6045 (("/usr/bin/passwd")
6046 "/run/setuid-programs/passwd"))
6047 (substitute* "panels/info/cc-info-overview-panel.c"
6048 (("DATADIR \"/gnome/gnome-version.xml\"")
6049 (string-append "\"" gnome-desktop
6050 "/share/gnome/gnome-version.xml\"")))
6051 #t))))))
6052 (native-inputs
6053 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
6054 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6055 ("intltool" ,intltool)
6056 ("pkg-config" ,pkg-config)
6057 ("xsltproc" ,libxslt)))
6058 (inputs
6059 `(("accountsservice" ,accountsservice)
6060 ("clutter-gtk" ,clutter-gtk)
6061 ("colord-gtk" ,colord-gtk)
6062 ("cups" ,cups)
6063 ("dconf" ,dconf)
6064 ("docbook-xsl" ,docbook-xsl)
6065 ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
6066 ("gnome-bluetooth" ,gnome-bluetooth)
6067 ("gnome-desktop" ,gnome-desktop)
6068 ("gnome-online-accounts" ,gnome-online-accounts)
6069 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6070 ("gnome-session" ,gnome-session)
6071 ("gnome-settings-daemon" ,gnome-settings-daemon)
6072 ("grilo" ,grilo)
6073 ("ibus" ,ibus)
6074 ("libcanberra" ,libcanberra)
6075 ("libgnomekbd" ,libgnomekbd)
6076 ("libgudev" ,libgudev)
6077 ("libgtop" ,libgtop)
6078 ("libpwquality" ,libpwquality)
6079 ("libsecret" ,libsecret)
6080 ("libsoup" ,libsoup)
6081 ("libxml2" ,libxml2)
6082 ("libwacom" ,libwacom)
6083 ("mesa" ,mesa)
6084 ("mit-krb5" ,mit-krb5)
6085 ("modem-manager" ,modem-manager)
6086 ("network-manager-applet" ,network-manager-applet)
6087 ("polkit" ,polkit)
6088 ("pulseaudio" ,pulseaudio)
6089 ("smbclient" ,samba)
6090 ("tzdata" ,tzdata)
6091 ("udisks" ,udisks)
6092 ("upower" ,upower)))
6093 (synopsis "Utilities to configure the GNOME desktop")
6094 (home-page "https://www.gnome.org/")
6095 (description
6096 "This package contains configuration applets for the GNOME desktop,
6097 allowing to set accessibility configuration, desktop fonts, keyboard and mouse
6098 properties, sound setup, desktop theme and background, user interface
6099 properties, screen resolution, and other GNOME parameters.")
6100 (license license:gpl2+)))
6101
6102 (define-public gnome-shell
6103 (package
6104 (name "gnome-shell")
6105 (version "3.30.2")
6106 (source (origin
6107 (method url-fetch)
6108 (uri (string-append "mirror://gnome/sources/" name "/"
6109 (version-major+minor version) "/"
6110 name "-" version ".tar.xz"))
6111 (sha256
6112 (base32
6113 "0kacd4w9lc5finsvs170i7827qkxwd1ddj0g2giizwffpjdjqqr2"))
6114 (patches (search-patches "gnome-shell-theme.patch"))
6115 (modules '((guix build utils)))
6116 (snippet
6117 #~(begin
6118 ;; Copy images for use on the GDM log-in screen.
6119 (copy-file #$(file-append %artwork-repository
6120 "/slim/0.x/background.png")
6121 "data/theme/guix-background.png")
6122 (copy-file #$(file-append %artwork-repository
6123 "/logo/Guix-horizontal-white.svg")
6124 "data/theme/guix-logo.svg")
6125 #t))))
6126 (build-system meson-build-system)
6127 (arguments
6128 `(#:glib-or-gtk? #t
6129 #:disallowed-references ((,glib "bin")
6130 ,inkscape ,libxslt
6131 ,ruby-sass)
6132 #:configure-flags
6133 (list "-Dsystemd=false"
6134 ;; Otherwise, the RUNPATH will lack the final path component.
6135 (string-append "-Dc_link_args=-Wl,-rpath="
6136 (assoc-ref %outputs "out")
6137 "/lib/gnome-shell"))
6138
6139 #:modules ((guix build meson-build-system)
6140 (guix build utils)
6141 (srfi srfi-1))
6142
6143 #:phases
6144 (modify-phases %standard-phases
6145 (add-after 'unpack 'fix-keysdir
6146 (lambda* (#:key outputs #:allow-other-keys)
6147 (let* ((out (assoc-ref outputs "out"))
6148 (keysdir (string-append
6149 out "/share/gnome-control-center/keybindings")))
6150 (substitute* "meson.build"
6151 (("keysdir =.*")
6152 (string-append "keysdir = '" keysdir "'\n")))
6153 #t)))
6154 (add-before 'configure 'convert-logo-to-png
6155 (lambda* (#:key inputs #:allow-other-keys)
6156 ;; Convert the logo from SVG to PNG.
6157 (invoke "inkscape" "--export-png=data/theme/guix-logo.png"
6158 "data/theme/guix-logo.svg")))
6159 (add-before 'configure 'record-absolute-file-names
6160 (lambda* (#:key inputs #:allow-other-keys)
6161 (substitute* "js/misc/ibusManager.js"
6162 (("'ibus-daemon'")
6163 (string-append "'" (assoc-ref inputs "ibus")
6164 "/bin/ibus-daemon'")))
6165 (substitute* "js/ui/status/keyboard.js"
6166 (("'gkbd-keyboard-display'")
6167 (string-append "'" (assoc-ref inputs "libgnomekbd")
6168 "/bin/gkbd-keyboard-display'")))
6169 #t))
6170 (add-before 'check 'pre-check
6171 (lambda* (#:key inputs #:allow-other-keys)
6172 ;; Tests require a running X server.
6173 (system "Xvfb :1 &")
6174 (setenv "DISPLAY" ":1")
6175 #t))
6176 (add-after 'install 'wrap-programs
6177 (lambda* (#:key inputs outputs #:allow-other-keys)
6178 (let ((out (assoc-ref outputs "out"))
6179 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6180 (python-path (getenv "PYTHONPATH")))
6181 (wrap-program (string-append out "/bin/gnome-shell")
6182 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6183 ;; FIXME: gnome-shell loads these libraries with unqualified
6184 ;; names only, so they need to be on LD_LIBRARY_PATH. The
6185 ;; alternative might be to patch gnome-shell.
6186 `("LD_LIBRARY_PATH" ":" prefix
6187 ,(map (lambda (pkg)
6188 (string-append (assoc-ref inputs pkg) "/lib"))
6189 '("gdk-pixbuf"
6190 "gnome-bluetooth" "librsvg" "libgweather"))))
6191 (for-each
6192 (lambda (prog)
6193 (wrap-program (string-append out "/bin/" prog)
6194 `("PYTHONPATH" ":" prefix (,python-path))
6195 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6196 '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
6197 #t)))
6198 (replace 'glib-or-gtk-wrap
6199 (let ((wrap (assoc-ref %standard-phases 'glib-or-gtk-wrap)))
6200 (lambda* (#:key inputs outputs #:allow-other-keys #:rest rest)
6201 ;; By default Inkscape et al. would end up in the XDG_DATA_DIRS
6202 ;; settings of the wrappers created by the 'glib-or-gtk-wrap'
6203 ;; phase. Fix that since we don't need these.
6204 (wrap #:inputs (fold alist-delete inputs
6205 '("inkscape" "intltool" "glib:bin"))
6206 #:outputs outputs)))))))
6207 (native-inputs
6208 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6209 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6210 ("gobject-introspection" ,gobject-introspection)
6211 ("inkscape" ,inkscape)
6212 ("intltool" ,intltool)
6213 ("pkg-config" ,pkg-config)
6214 ("python" ,python)
6215 ("ruby-sass" ,ruby-sass)
6216 ("sassc" ,sassc)
6217 ("xsltproc" ,libxslt)
6218 ;; For tests
6219 ("xorg-server" ,xorg-server-for-tests)))
6220 (inputs
6221 `(("accountsservice" ,accountsservice)
6222 ("caribou" ,caribou)
6223 ("docbook-xsl" ,docbook-xsl)
6224 ("evolution-data-server" ,evolution-data-server)
6225 ("gcr" ,gcr)
6226 ("gdm" ,gdm)
6227 ("gdk-pixbuf" ,gdk-pixbuf+svg)
6228 ("gjs" ,gjs)
6229 ("gnome-bluetooth" ,gnome-bluetooth)
6230 ("gnome-desktop" ,gnome-desktop)
6231 ("gnome-settings-daemon" ,gnome-settings-daemon)
6232 ("gst-plugins-base" ,gst-plugins-base)
6233 ("ibus" ,ibus)
6234 ("libcanberra" ,libcanberra)
6235 ("libcroco" ,libcroco)
6236 ("libgnomekbd" ,libgnomekbd) ;for gkbd-keyboard-display
6237 ("libgweather" ,libgweather)
6238 ("libsoup" ,libsoup)
6239 ("mesa-headers" ,mesa-headers)
6240 ("mutter" ,mutter)
6241 ("network-manager-applet" ,network-manager-applet)
6242 ("polkit" ,polkit)
6243 ("pulseaudio" ,pulseaudio)
6244 ("python-pygobject" ,python-pygobject)
6245 ("startup-notification" ,startup-notification)
6246 ("telepathy-logger" ,telepathy-logger)
6247 ("upower" ,upower)
6248 ;; XXX: These requirements were added in 3.24, but no mention in NEWS.
6249 ;; Missing propagation? See also: <https://bugs.gnu.org/27264>
6250 ("librsvg" ,librsvg)
6251 ("geoclue" ,geoclue)))
6252 (synopsis "Desktop shell for GNOME")
6253 (home-page "https://wiki.gnome.org/Projects/GnomeShell")
6254 (description
6255 "GNOME Shell provides core user interface functions for the GNOME desktop,
6256 like switching to windows and launching applications.")
6257 (license license:gpl2+)))
6258
6259 (define-public gtk-vnc
6260 (package
6261 (name "gtk-vnc")
6262 (version "0.9.0")
6263 (source
6264 (origin
6265 (method url-fetch)
6266 (uri (string-append "mirror://gnome/sources/" name "/"
6267 (version-major+minor version) "/"
6268 name "-" version ".tar.xz"))
6269 (sha256
6270 (base32
6271 "1dya1wc9vis8h0fv625pii1n70cckf1xjg1m2hndz989d118i6is"))))
6272 (build-system gnu-build-system)
6273 (arguments
6274 '(#:configure-flags '("--with-gtk=3.0")))
6275 (propagated-inputs
6276 `(("gtk+" ,gtk+))) ; required by gtk-vnc-2.0.pc.
6277 (inputs
6278 `(("cyrus-sasl" ,cyrus-sasl)
6279 ("gnutls" ,gnutls)
6280 ("libgcrypt" ,libgcrypt)
6281 ("pulseaudio" ,pulseaudio)))
6282 (native-inputs
6283 `(("glib:bin" ,glib "bin")
6284 ("gobject-introspection" ,gobject-introspection)
6285 ("intltool" ,intltool)
6286 ("pkg-config" ,pkg-config)
6287 ("python-wrapper" ,python-wrapper)
6288 ("vala" ,vala)))
6289 (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
6290 (synopsis "VNC viewer widget for GTK+")
6291 (description
6292 "GTK-VNC is a VNC viewer widget for GTK+, used by remote desktop viewing
6293 applications, for instance the Vinagre client, GNOME Boxes and virt-viewer.
6294 GTK-VNC implements client side RFB protocol and authentication extensions such
6295 as SASL, TLS and VeNCrypt. Additionally it supports encoding extensions.")
6296 (license license:lgpl2.1+)))
6297
6298 (define-public gnome-autoar
6299 (package
6300 (name "gnome-autoar")
6301 (version "0.2.3")
6302 (source (origin
6303 (method url-fetch)
6304 (uri (string-append "mirror://gnome/sources/" name "/"
6305 (version-major+minor version) "/"
6306 name "-" version ".tar.xz"))
6307 (sha256
6308 (base32
6309 "02i4zgqqqj56h7bcys6dz7n78m4nj2x4dv1ggjmnrk98n06xpsax"))))
6310 (build-system glib-or-gtk-build-system)
6311 (native-inputs
6312 `(("gnome-common" ,gnome-common)
6313 ("gobject-introspection" ,gobject-introspection)
6314 ("pkg-config" ,pkg-config)))
6315 (propagated-inputs
6316 `(("libarchive" ,libarchive))) ; XXX document why
6317 (inputs
6318 `(("gtk+" ,gtk+)))
6319 (synopsis "Archives integration support for GNOME")
6320 (home-page "https://git.gnome.org/browse/gnome-autoar/")
6321 (description
6322 "GNOME Autoar is a library which makes creating and extracting archives
6323 easy, safe, and automatic.")
6324 (license license:lgpl2.1+)))
6325
6326 (define-public tracker
6327 (package
6328 (name "tracker")
6329 (version "2.0.4")
6330 (source (origin
6331 (method url-fetch)
6332 (uri (string-append "mirror://gnome/sources/tracker/"
6333 (version-major+minor version) "/"
6334 "tracker-" version ".tar.xz"))
6335 (sha256
6336 (base32
6337 "1mfc5lv820kr7ssi7hldn25gmshh65k19kh478qjsnb64sshsbyf"))))
6338 (build-system glib-or-gtk-build-system)
6339 (arguments
6340 `(#:phases
6341 (modify-phases %standard-phases
6342 (add-after 'unpack 'disable-broken-tests
6343 (lambda _
6344 ;; FIXME: Most of these fail with GLib-GIO-FATAL-ERROR: Settings
6345 ;; schema 'org.freedesktop.Tracker.FTS' is not installed.
6346 (substitute* "tests/libtracker-miner/Makefile.in"
6347 (("tracker-file-notifier-test\\$\\(EXEEXT\\)") "")
6348 (("tracker-miner-fs-test\\$\\(EXEEXT\\)") "")
6349 (("tracker-monitor-test\\$\\(EXEEXT\\)") ""))
6350 (substitute* "tests/libtracker-fts/Makefile.in"
6351 (("tracker-fts-test\\$\\(EXEEXT\\)") ""))
6352 (substitute* "tests/libtracker-data/Makefile.in"
6353 (("tracker-ontology\\$\\(EXEEXT\\)") "")
6354 (("tracker-ontology-change\\$\\(EXEEXT\\)") "")
6355 (("tracker-backup\\$\\(EXEEXT\\)") "")
6356 (("tracker-sparql-blank\\$\\(EXEEXT\\)") "")
6357 (("tracker-sparql\\$\\(EXEEXT\\)") ""))
6358 ;; These fail because the SPARQL backend could not be loaded.
6359 ;; That's because /etc/machine-id is missing, but
6360 ;; DBUS_FATAL_WARNINGS does not help here.
6361 (substitute* "tests/libtracker-sparql/Makefile.in"
6362 (("tracker-gb-737023-test\\$\\(EXEEXT\\)") "")
6363 (("tracker-sparql-test\\$\\(EXEEXT\\)") ""))
6364 (substitute* "tests/tracker-steroids/Makefile.in"
6365 (("tracker-test\\$\\(EXEEXT\\)") ""))
6366 #t))
6367 ;; Two tests fail if LANG is not set.
6368 (add-before 'check 'pre-check
6369 (lambda _
6370 (setenv "LANG" "en_US.UTF-8")
6371 ;; For the missing /etc/machine-id.
6372 (setenv "DBUS_FATAL_WARNINGS" "0")
6373 #t)))))
6374 (native-inputs
6375 `(("gnome-common" ,gnome-common)
6376 ("gobject-introspection" ,gobject-introspection)
6377 ("intltool" ,intltool)
6378 ("pkg-config" ,pkg-config)
6379 ("vala" ,vala)))
6380 (inputs
6381 `(("gtk+" ,gtk+)
6382 ("dbus" ,dbus)
6383 ("gstreamer" ,gstreamer)
6384 ("gst-plugins-base" ,gst-plugins-base)
6385 ("sqlite" ,sqlite)
6386 ("python" ,python)
6387 ("poppler" ,poppler)
6388 ("libgsf" ,libgsf)
6389 ("libexif" ,libexif)
6390 ("libpng" ,libpng)
6391 ("libtiff" ,libtiff)
6392 ("libvorbis" ,libvorbis)
6393 ("flac" ,flac)
6394 ("totem-pl-parser" ,totem-pl-parser)
6395 ("zlib" ,zlib)
6396 ("exempi" ,exempi)
6397 ("libxml2" ,libxml2)
6398 ("upower" ,upower)
6399 ("libunistring" ,libunistring)
6400 ("giflib" ,giflib)
6401 ("json-glib" ,json-glib)
6402 ("openjpeg" ,openjpeg-1)
6403 ("libosinfo" ,libosinfo)
6404 ("libcue" ,libcue)
6405 ("libseccomp" ,libseccomp)
6406 ("libsoup" ,libsoup)
6407 ("libuuid" ,util-linux)))
6408 (synopsis "Metadata database, indexer and search tool")
6409 (home-page "https://wiki.gnome.org/Projects/Tracker")
6410 (description
6411 "Tracker is an advanced framework for first class objects with associated
6412 metadata and tags. It provides a one stop solution for all metadata, tags,
6413 shared object databases, search tools and indexing.")
6414 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
6415 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
6416 (license (list license:gpl2+
6417 license:lgpl2.1+
6418 license:lgpl2.0+))))
6419
6420 (define-public nautilus
6421 (package
6422 (name "nautilus")
6423 (version "3.30.5")
6424 (source (origin
6425 (method url-fetch)
6426 (uri (string-append "mirror://gnome/sources/" name "/"
6427 (version-major+minor version) "/"
6428 name "-" version ".tar.xz"))
6429 (sha256
6430 (base32
6431 "144r4py9b8w9ycsg6fggjg05kwvymh003qsb3h6apgpch5y3zgnv"))))
6432 (build-system meson-build-system)
6433 (arguments
6434 '(#:glib-or-gtk? #t
6435 ;; XXX: FAIL: check-nautilus
6436 ;; Settings schema 'org.gnome.nautilus.preferences' is not installed
6437 #:tests? #f))
6438 (native-inputs
6439 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6440 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
6441 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6442 ("gobject-introspection" ,gobject-introspection)
6443 ("intltool" ,intltool)
6444 ("pkg-config" ,pkg-config)))
6445 (inputs
6446 `(("dconf" ,dconf)
6447 ("gexiv2" ,gexiv2)
6448 ("gvfs" ,gvfs)
6449 ("exempi" ,exempi)
6450 ("gnome-desktop" ,gnome-desktop)
6451 ("gnome-autoar" ,gnome-autoar)
6452 ("libseccomp" ,libseccomp)
6453 ("libselinux" ,libselinux)
6454 ("tracker" ,tracker)
6455 ;; XXX: gtk+ is required by libnautilus-extension.pc
6456 ;;
6457 ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
6458 ;; package. See:
6459 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
6460 ("gtk+" ,gtk+)
6461 ("libexif" ,libexif)
6462 ("libxml2" ,libxml2)))
6463 (synopsis "File manager for GNOME")
6464 (home-page "https://wiki.gnome.org/Apps/Nautilus")
6465 (description
6466 "Nautilus (Files) is a file manager designed to fit the GNOME desktop
6467 design and behaviour, giving the user a simple way to navigate and manage its
6468 files.")
6469 (license license:gpl2+)))
6470
6471 (define-public baobab
6472 (package
6473 (name "baobab")
6474 (version "3.30.0")
6475 (source (origin
6476 (method url-fetch)
6477 (uri (string-append
6478 "mirror://gnome/sources/" name "/"
6479 (version-major+minor version) "/"
6480 name "-" version ".tar.xz"))
6481 (sha256
6482 (base32
6483 "0kx721s1hhw1g0nvbqhb93g8iq6f852imyhfhl02zcqy4ipx0kay"))))
6484 (build-system meson-build-system)
6485 (arguments
6486 '(#:glib-or-gtk? #t))
6487 (native-inputs
6488 `(("intltool" ,intltool)
6489 ("pkg-config" ,pkg-config)
6490 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6491 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6492 ("itstool" ,itstool)
6493 ("xmllint" ,libxml2)
6494 ("glib" ,glib "bin")
6495 ("vala" ,vala)))
6496 (inputs
6497 `(("gtk+" ,gtk+)))
6498 (synopsis "Disk usage analyzer for GNOME")
6499 (description
6500 "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
6501 usage in the GNOME desktop environment. It can easily scan device volumes or
6502 a specific user-requested directory branch (local or remote). Once the scan
6503 is complete it provides a graphical representation of each selected folder.")
6504 (home-page "https://wiki.gnome.org/Apps/Baobab")
6505 (license license:gpl2+)))
6506
6507 (define-public gnome-backgrounds
6508 (package
6509 (name "gnome-backgrounds")
6510 (version "3.30.0")
6511 (source
6512 (origin
6513 (method url-fetch)
6514 (uri (string-append "mirror://gnome/sources/" name "/"
6515 (version-major+minor version) "/"
6516 name "-" version ".tar.xz"))
6517 (sha256
6518 (base32
6519 "1179jrl16bp9gqabqhw7nnfp8qzf5y1vf9fi45bni6rfmwm3mrpc"))))
6520 (build-system meson-build-system)
6521 (native-inputs
6522 `(("intltool" ,intltool)))
6523 (home-page "https://git.gnome.org/browse/gnome-backgrounds")
6524 (synopsis "Background images for the GNOME desktop")
6525 (description
6526 "GNOME backgrounds package contains a collection of graphics files which
6527 can be used as backgrounds in the GNOME Desktop environment. Additionally,
6528 the package creates the proper framework and directory structure so that you
6529 can add your own files to the collection.")
6530 (license (list license:gpl2+
6531 license:cc-by2.0
6532 license:cc-by-sa2.0
6533 license:cc-by-sa3.0))))
6534
6535 (define-public gnome-screenshot
6536 (package
6537 (name "gnome-screenshot")
6538 (version "3.30.0")
6539 (source
6540 (origin
6541 (method url-fetch)
6542 (uri (string-append "mirror://gnome/sources/" name "/"
6543 (version-major+minor version) "/"
6544 name "-" version ".tar.xz"))
6545 (sha256
6546 (base32
6547 "06dx3svxq6sar4913mrz5lzb7hmc66wck138vmyxj8x8iv1iw0w8"))))
6548 (build-system meson-build-system)
6549 (native-inputs
6550 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6551 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6552 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6553 ("intltool" ,intltool)
6554 ("appstream-glib" ,appstream-glib)
6555 ("pkg-config" ,pkg-config)))
6556 (inputs
6557 `(("gtk+" ,gtk+)
6558 ("libcanberra" ,libcanberra)
6559 ("libx11" ,libx11)
6560 ("libxext" ,libxext)))
6561 (home-page "https://gitlab.gnome.org/GNOME/gnome-screenshot")
6562 (synopsis "Take pictures of your screen")
6563 (description
6564 "GNOME Screenshot is a utility used for taking screenshots of the entire
6565 screen, a window or a user defined area of the screen, with optional
6566 beautifying border effects.")
6567 (license license:gpl2+)))
6568
6569 (define-public dconf-editor
6570 (package
6571 (name "dconf-editor")
6572 (version "3.30.2")
6573 (source
6574 (origin
6575 (method url-fetch)
6576 (uri (string-append "mirror://gnome/sources/" name "/"
6577 (version-major+minor version) "/"
6578 name "-" version ".tar.xz"))
6579 (sha256
6580 (base32
6581 "06f736spn20s7qjsz00xw44v8r8bjhyrz1v3bix6v416jc5jp6ia"))))
6582 (build-system meson-build-system)
6583 (arguments
6584 '(#:phases (modify-phases %standard-phases
6585 (add-before 'configure 'set-glib-minimum-version
6586 (lambda _
6587 ;; Change the minimum required GLib version so that
6588 ;; 'valac' is passed '--target-glib 2.60.0'; failing to
6589 ;; do that, it complains that "55" is not an even
6590 ;; number. See <https://bugs.gnu.org/37503>.
6591 (substitute* "editor/meson.build"
6592 (("2\\.55\\.1") "2.60.0"))
6593 #t)))))
6594 (native-inputs
6595 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
6596 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6597 ("intltool" ,intltool)
6598 ("pkg-config" ,pkg-config)
6599 ("vala" ,vala)))
6600 (inputs
6601 `(("dconf" ,dconf)
6602 ("gtk+" ,gtk+)
6603 ("libxml2" ,libxml2)))
6604 (home-page "https://git.gnome.org/browse/dconf-editor")
6605 (synopsis "Graphical editor for GNOME's dconf configuration system")
6606 (description
6607 "Dconf-editor is a graphical tool for browsing and editing the dconf
6608 configuration system for GNOME. It allows users to configure desktop
6609 software that do not provide their own configuration interface.")
6610 (license license:lgpl2.1+)))
6611
6612 (define-public gnome-default-applications
6613 (package
6614 (name "gnome-default-applications")
6615 (version "0")
6616 (build-system trivial-build-system)
6617 (source #f)
6618 (propagated-inputs
6619 `(("nautilus" ,nautilus)
6620 ("evince" ,evince)))
6621 (arguments
6622 `(#:modules ((guix build utils))
6623 #:builder
6624 (begin
6625 (use-modules (guix build utils))
6626 (let* ((out (assoc-ref %outputs "out"))
6627 (apps (string-append out "/share/applications")))
6628 (mkdir-p apps)
6629 (call-with-output-file (string-append apps "/defaults.list")
6630 (lambda (port)
6631 (format port "[Default Applications]\n")
6632 (format port "inode/directory=org.gnome.Nautilus.desktop\n")
6633 (format port "application/pdf=evince.desktop\n")
6634 (format port "application/postscript=evince.desktop\n")))
6635 #t))))
6636 (synopsis "Default MIME type associations for the GNOME desktop")
6637 (description
6638 "Given many installed packages which might handle a given MIME type, a
6639 user running the GNOME desktop probably has some preferences: for example,
6640 that folders be opened by default by the Nautilus file manager, not the Baobab
6641 disk usage analyzer. This package establishes that set of default MIME type
6642 associations for GNOME.")
6643 (license license:gpl3+)
6644 (home-page #f)))
6645
6646 (define-public gnome
6647 (package
6648 (name "gnome")
6649 (version (package-version gnome-shell))
6650 (source #f)
6651 (build-system trivial-build-system)
6652 (arguments '(#:builder (begin (mkdir %output) #t)))
6653 (propagated-inputs
6654 ;; TODO: Add more packages according to:
6655 ;; <https://packages.debian.org/jessie/gnome-core>.
6656 `(("adwaita-icon-theme" ,adwaita-icon-theme)
6657 ("baobab" ,baobab)
6658 ("font-cantarell" ,font-cantarell)
6659 ("font-dejavu" ,font-dejavu)
6660 ("at-spi2-core" ,at-spi2-core)
6661 ("dbus" ,dbus)
6662 ("dconf" ,dconf)
6663 ("desktop-file-utils" ,desktop-file-utils)
6664 ("eog" ,eog)
6665 ("epiphany" ,epiphany)
6666 ("evince" ,evince)
6667 ("file-roller" ,file-roller)
6668 ("gedit" ,gedit)
6669 ("glib-networking" ,glib-networking)
6670 ("gnome-backgrounds" ,gnome-backgrounds)
6671 ("gnome-bluetooth" ,gnome-bluetooth)
6672 ("gnome-calculator" ,gnome-calculator)
6673 ("gnome-control-center" ,gnome-control-center)
6674 ("gnome-disk-utility" ,gnome-disk-utility)
6675 ("gnome-default-applications" ,gnome-default-applications)
6676 ("gnome-keyring" ,gnome-keyring)
6677 ("gnome-online-accounts" ,gnome-online-accounts)
6678 ("gnome-session" ,gnome-session)
6679 ("gnome-settings-daemon" ,gnome-settings-daemon)
6680 ("gnome-shell" ,gnome-shell)
6681 ("gnome-system-monitor" ,gnome-system-monitor)
6682 ("gnome-terminal" ,gnome-terminal)
6683 ("gnome-themes-standard" ,gnome-themes-standard)
6684 ("gst-plugins-base" ,gst-plugins-base)
6685 ("gst-plugins-good" ,gst-plugins-good)
6686 ("gucharmap" ,gucharmap)
6687 ("gvfs" ,gvfs)
6688 ("hicolor-icon-theme" ,hicolor-icon-theme)
6689 ("nautilus" ,nautilus)
6690 ("pinentry-gnome3" ,pinentry-gnome3)
6691 ("pulseaudio" ,pulseaudio)
6692 ("shared-mime-info" ,shared-mime-info)
6693 ("system-config-printer" ,system-config-printer)
6694 ("totem" ,totem)
6695 ("xdg-user-dirs" ,xdg-user-dirs)
6696 ("yelp" ,yelp)
6697 ("zenity" ,zenity)))
6698 (synopsis "The GNU desktop environment")
6699 (home-page "https://www.gnome.org/")
6700 (description
6701 "GNOME is the graphical desktop for GNU. It includes a wide variety of
6702 applications for browsing the web, editing text and images, creating
6703 documents and diagrams, playing media, scanning, and much more.")
6704 (license license:gpl2+)))
6705
6706 (define-public byzanz
6707 ;; The last stable release of Byzanz was in 2011, but there have been many
6708 ;; useful commits made to the Byzanz repository since then that it would be
6709 ;; silly to use such an old release.
6710 (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
6711 (package
6712 (name "byzanz")
6713 (version (string-append "0.2-1." (string-take commit 7)))
6714 (source (origin
6715 (method git-fetch)
6716 (uri (git-reference
6717 (url "https://git.gnome.org/browse/byzanz")
6718 (commit commit)))
6719 (file-name (string-append name "-" version "-checkout"))
6720 (sha256
6721 (base32
6722 "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
6723 (build-system glib-or-gtk-build-system)
6724 (arguments
6725 '(#:phases
6726 (modify-phases %standard-phases
6727 (replace 'bootstrap
6728 (lambda _
6729 ;; The build system cleverly detects that we're not building from
6730 ;; a release tarball and turns on -Werror for GCC.
6731 ;; Unsurprisingly, there is a warning during compilation that
6732 ;; causes the build to fail unnecessarily, so we remove the flag.
6733 (substitute* '("configure.ac")
6734 (("-Werror") ""))
6735 ;; The autogen.sh script in gnome-common will run ./configure
6736 ;; by default, which is problematic because source shebangs
6737 ;; have not yet been patched.
6738 (setenv "NOCONFIGURE" "t")
6739 (zero? (system* "sh" "autogen.sh")))))))
6740 (native-inputs
6741 `(("autoconf" ,autoconf)
6742 ("automake" ,automake)
6743 ("gnome-common" ,gnome-common)
6744 ("intltool" ,intltool)
6745 ("libtool" ,libtool)
6746 ("pkg-config" ,pkg-config)
6747 ("which" ,which)))
6748 (inputs
6749 `(("glib" ,glib)
6750 ("gstreamer" ,gstreamer)
6751 ("gst-plugins-base" ,gst-plugins-base)
6752 ("gtk+" ,gtk+)))
6753 (synopsis "Desktop recording program")
6754 (description "Byzanz is a simple desktop recording program with a
6755 command-line interface. It can record part or all of an X display for a
6756 specified duration and save it as a GIF encoded animated image file.")
6757 (home-page "https://git.gnome.org/browse/byzanz")
6758 (license license:gpl2+))))
6759
6760 (define-public gsound
6761 (package
6762 (name "gsound")
6763 (version "1.0.2")
6764 (source (origin
6765 (method url-fetch)
6766 (uri (string-append "mirror://gnome/sources/" name "/"
6767 (version-major+minor version) "/"
6768 name "-" version ".tar.xz"))
6769 (sha256
6770 (base32
6771 "0lwfwx2c99qrp08pfaj59pks5dphsnxjgrxyadz065d8xqqgza5v"))))
6772 (build-system glib-or-gtk-build-system)
6773 (native-inputs
6774 `(("pkg-config" ,pkg-config)
6775 ("gobject-introspection" ,gobject-introspection)
6776 ("vala" ,vala)))
6777 (inputs
6778 `(("glib" ,glib)
6779 ("libcanberra" ,libcanberra)))
6780 (home-page "https://wiki.gnome.org/Projects/GSound")
6781 (synopsis "GObject wrapper for libcanberra")
6782 (description
6783 "GSound is a small library for playing system sounds. It's designed to be
6784 used via GObject Introspection, and is a thin wrapper around the libcanberra C
6785 library.")
6786 (license license:lgpl2.1+)))
6787
6788 (define-public libzapojit
6789 (package
6790 (name "libzapojit")
6791 (version "0.0.3")
6792 (source (origin
6793 (method url-fetch)
6794 (uri (string-append "mirror://gnome/sources/" name "/"
6795 (version-major+minor version) "/"
6796 name "-" version ".tar.xz"))
6797 (sha256
6798 (base32
6799 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
6800 (build-system gnu-build-system)
6801 (native-inputs
6802 `(("gobject-introspection" ,gobject-introspection)
6803 ("intltool" ,intltool)
6804 ("pkg-config" ,pkg-config)))
6805 (inputs
6806 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6807 ("json-glib" ,json-glib)
6808 ("rest" ,rest)))
6809 (home-page "https://wiki.gnome.org/Projects/Zapojit")
6810 (synopsis "Library for accessing SkyDrive and Hotmail")
6811 (description
6812 "Libzapojit is a GLib-based library for accessing online service APIs of
6813 Microsoft SkyDrive and Hotmail, using their REST protocols.")
6814 (license license:lgpl2.1+)))
6815
6816 (define-public gnome-clocks
6817 (package
6818 (name "gnome-clocks")
6819 (version "3.30.1")
6820 (source (origin
6821 (method url-fetch)
6822 (uri (string-append "mirror://gnome/sources/" name "/"
6823 (version-major+minor version) "/"
6824 name "-" version ".tar.xz"))
6825 (sha256
6826 (base32
6827 "009fr6zwv37wryi0c0syi4i7pxpdbn3gliws68l99cjsbn2qd6pc"))))
6828 (build-system meson-build-system)
6829 (arguments
6830 '(#:glib-or-gtk? #t))
6831 (native-inputs
6832 `(("vala" ,vala)
6833 ("pkg-config" ,pkg-config)
6834 ("glib" ,glib "bin") ; for glib-compile-resources
6835 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6836 ("desktop-file-utils" ,desktop-file-utils)
6837 ("gettext" ,gettext-minimal)
6838 ("itstool" ,itstool)))
6839 (inputs
6840 `(("glib" ,glib)
6841 ("gtk+" ,gtk+)
6842 ("gsound" ,gsound)
6843 ("geoclue" ,geoclue)
6844 ("geocode-glib" ,geocode-glib)
6845 ("libgweather" ,libgweather)
6846 ("gnome-desktop" ,gnome-desktop)))
6847 (home-page "https://wiki.gnome.org/Apps/Clocks")
6848 (synopsis "GNOME's clock application")
6849 (description
6850 "GNOME Clocks is a simple clocks application designed to fit the GNOME
6851 desktop. It supports world clock, stop watch, alarms, and count down timer.")
6852 (license license:gpl3+)))
6853
6854 (define-public gnome-calendar
6855 (package
6856 (name "gnome-calendar")
6857 (version "3.30.1")
6858 (source (origin
6859 (method url-fetch)
6860 (uri (string-append "mirror://gnome/sources/" name "/"
6861 (version-major+minor version) "/"
6862 name "-" version ".tar.xz"))
6863 (sha256
6864 (base32
6865 "1avi7a29y8d8kzwslp51nwy6s692alms7917454j0xpfc6hnw62s"))))
6866 (build-system meson-build-system)
6867 (arguments
6868 '(#:glib-or-gtk? #t
6869 ;; gnome-calendar has to be installed before the tests can be run
6870 ;; https://bugzilla.gnome.org/show_bug.cgi?id=788224
6871 #:tests? #f))
6872 (native-inputs
6873 `(("gettext" ,gettext-minimal)
6874 ("glib-bin" ,glib "bin") ; For glib-compile-schemas
6875 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
6876 ("pkg-config" ,pkg-config)))
6877 (inputs
6878 `(("evolution-data-server" ,evolution-data-server)
6879 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6880 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6881 ("libdazzle" ,libdazzle)
6882 ("libedataserverui" ,evolution-data-server)
6883 ("libgweather" ,libgweather)
6884 ("geoclue" ,geoclue)))
6885 (home-page "https://wiki.gnome.org/Apps/Calendar")
6886 (synopsis "GNOME's calendar application")
6887 (description
6888 "GNOME Calendar is a simple calendar application designed to fit the GNOME
6889 desktop. It supports multiple calendars, month, week and year view.")
6890 (license license:gpl3+)))
6891
6892 (define-public gnome-todo
6893 (package
6894 (name "gnome-todo")
6895 (version "3.28.1")
6896 (source (origin
6897 (method url-fetch)
6898 (uri (string-append "mirror://gnome/sources/" name "/"
6899 (version-major+minor version) "/"
6900 name "-" version ".tar.xz"))
6901 (sha256
6902 (base32
6903 "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"))))
6904 (build-system meson-build-system)
6905 (arguments
6906 '(#:glib-or-gtk? #t
6907 #:phases (modify-phases %standard-phases
6908 (add-after
6909 'install 'wrap-gnome-todo
6910 (lambda* (#:key inputs outputs #:allow-other-keys)
6911 (let ((out (assoc-ref outputs "out"))
6912 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6913 (python-path (getenv "PYTHONPATH")))
6914 (wrap-program (string-append out "/bin/gnome-todo")
6915 ;; XXX: gi plugins are broken.
6916 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=787212
6917 ;; For plugins.
6918 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6919 `("PYTHONPATH" ":" prefix (,python-path))))
6920 #t)))))
6921 (native-inputs
6922 `(("gettext" ,gettext-minimal)
6923 ("gobject-introspection" ,gobject-introspection)
6924 ("glib:bin" ,glib "bin") ; For glib-compile-resources
6925 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
6926 ("pkg-config" ,pkg-config)))
6927 (inputs
6928 `(("rest" ,rest) ; For Todoist plugin
6929 ("json-glib" ,json-glib) ; For Todoist plugin
6930 ("libedataserverui" ,evolution-data-server)
6931 ("libical" ,libical)
6932 ("libpeas" ,libpeas)
6933 ("python-pygobject" ,python-pygobject)
6934 ("evolution-data-server" ,evolution-data-server)
6935 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6936 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
6937 (home-page "https://wiki.gnome.org/Apps/Todo")
6938 (synopsis "GNOME's ToDo Application")
6939 (description
6940 "GNOME To Do is a simplistic personal task manager designed to perfectly
6941 fit the GNOME desktop.")
6942 (license license:gpl3+)))
6943
6944 (define-public gnome-dictionary
6945 (package
6946 (name "gnome-dictionary")
6947 (version "3.26.1")
6948 (source (origin
6949 (method url-fetch)
6950 (uri (string-append "mirror://gnome/sources/" name "/"
6951 (version-major+minor version) "/"
6952 name "-" version ".tar.xz"))
6953 (sha256
6954 (base32
6955 "007k2bq8iplg4psdpz074r5d4zxvn4s95qym4rw9hs6giljbrf0n"))))
6956 (build-system meson-build-system)
6957 (arguments '(#:glib-or-gtk? #t
6958 #:phases (modify-phases %standard-phases
6959 (add-after 'unpack 'patch-install-script
6960 (lambda _
6961 ;; This script attempts to compile glib schemas
6962 ;; and create an empty MIME database. We do
6963 ;; that elsewhere, so prevent it from running.
6964 (substitute* "build-aux/post-install.sh"
6965 (("\\[ -z \"\\$DESTDIR\" \\]") "false"))
6966 #t)))))
6967 (native-inputs
6968 `(("glib:bin" ,glib "bin")
6969 ("gobject-introspection" ,gobject-introspection)
6970 ("intltool" ,intltool)
6971 ("itstool" ,itstool)
6972 ("pkg-config" ,pkg-config)
6973 ("xmllint" ,libxml2)))
6974 (inputs
6975 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6976 ("gtk+" ,gtk+)))
6977 (home-page "https://wiki.gnome.org/Apps/Dictionary")
6978 (synopsis "Look up words in dictionary sources")
6979 (description
6980 "GNOME Dictionary can look for the definition or translation of a word in
6981 existing databases over the internet.")
6982 (license license:gpl3+)))
6983
6984 (define-public gnome-tweaks
6985 (package
6986 (name "gnome-tweaks")
6987 (version "3.30.2")
6988 (source (origin
6989 (method url-fetch)
6990 (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
6991 (version-major+minor version) "/"
6992 "gnome-tweaks-" version ".tar.xz"))
6993 (patches
6994 (list (search-patch "gnome-tweaks-search-paths.patch")))
6995 (sha256
6996 (base32
6997 "0j63siy1i5pl2g6di1r9vjn54m9ahh42wj20j6689pza2lamay1z"))))
6998 (build-system meson-build-system)
6999 (arguments
7000 `(#:glib-or-gtk? #t
7001 #:configure-flags '("-Dlocalstatedir=/tmp"
7002 "-Dsysconfdir=/tmp")
7003 #:imported-modules ((guix build python-build-system)
7004 ,@%meson-build-system-modules)
7005 #:phases
7006 (modify-phases %standard-phases
7007 (add-after 'install 'wrap
7008 (@@ (guix build python-build-system) wrap))
7009 (add-after 'wrap 'wrap-gi-typelib
7010 (lambda* (#:key inputs outputs #:allow-other-keys)
7011 (let ((out (assoc-ref outputs "out"))
7012 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7013 (wrap-program (string-append out "/bin/gnome-tweaks")
7014 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7015 #t)))))
7016 (native-inputs
7017 `(("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7018 ("intltool" ,intltool)
7019 ("pkg-config" ,pkg-config)))
7020 (inputs
7021 `(("gnome-desktop" ,gnome-desktop)
7022 ("gtk+" ,gtk+)
7023 ("gobject-introspection" ,gobject-introspection)
7024 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7025 ("libnotify" ,libnotify)
7026 ("libsoup" ,libsoup)
7027 ("nautilus" ,nautilus)
7028 ("python" ,python)
7029 ("python-pygobject" ,python-pygobject)))
7030 (synopsis "Customize advanced GNOME 3 options")
7031 (home-page "https://wiki.gnome.org/Apps/Tweaks")
7032 (description
7033 "GNOME Tweaks allows adjusting advanced configuration settings in
7034 GNOME 3. This includes things like the fonts used in user interface elements,
7035 alternative user interface themes, changes in window management behavior,
7036 GNOME Shell appearance and extension, etc.")
7037 (license license:gpl3+)))
7038
7039 ;; This package has been renamed by upstream.
7040 (define-public gnome-tweak-tool
7041 (deprecated-package "gnome-tweak-tool" gnome-tweaks))
7042
7043 (define-public gnome-shell-extensions
7044 (package
7045 (name "gnome-shell-extensions")
7046 (version "3.30.1")
7047 (source (origin
7048 (method url-fetch)
7049 (uri (string-append "mirror://gnome/sources/" name "/"
7050 (version-major+minor version) "/"
7051 name "-" version ".tar.xz"))
7052 (sha256
7053 (base32
7054 "1grxn4f5x754r172wmnf0h0xpy69afmj359zsj1rwgqlzw4i4c5p"))))
7055 (build-system meson-build-system)
7056 (arguments
7057 '(#:configure-flags '("-Dextension_set=all")))
7058 (native-inputs
7059 `(("intltool" ,intltool)
7060 ("pkg-config" ,pkg-config)))
7061 (propagated-inputs
7062 `(("glib" ,glib)
7063 ("glib" ,glib "bin")))
7064 (synopsis "Extensions for GNOME Shell")
7065 (description "GNOME Shell extensions modify and extend GNOME Shell
7066 functionality and behavior.")
7067 (home-page "https://extensions.gnome.org/")
7068 (license license:gpl3+)))
7069
7070 (define-public numix-theme
7071 (package
7072 (name "numix-theme")
7073 (version "2.6.7")
7074 (source (origin
7075 (method git-fetch)
7076 (uri (git-reference
7077 (url "https://github.com/numixproject/numix-gtk-theme.git")
7078 (commit version)))
7079 (file-name (git-file-name name version))
7080 (sha256
7081 (base32
7082 "12mw0kr0kkvg395qlbsvkvaqccr90cmxw5rrsl236zh43kj8grb7"))))
7083 (build-system gnu-build-system)
7084 (arguments
7085 '(#:make-flags (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
7086 #:phases
7087 (modify-phases %standard-phases
7088 (delete 'configure)
7089 (delete 'check))))
7090 (native-inputs
7091 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas
7092 ("gnome-shell" ,gnome-shell)
7093 ("gtk+" ,gtk+)
7094 ("xmllint" ,libxml2)
7095 ("ruby-sass" ,ruby-sass)))
7096 (synopsis "Flat theme with light and dark elements")
7097 (description "Numix is a modern flat theme with a combination of light and
7098 dark elements. It supports GNOME, Unity, Xfce, and Openbox.")
7099 (home-page "https://numixproject.github.io")
7100 (license license:gpl3+)))
7101
7102 (define-public arc-theme
7103 (package
7104 (name "arc-theme")
7105 (version "20181022")
7106 (source (origin
7107 (method git-fetch)
7108 (uri (git-reference
7109 (url "https://github.com/NicoHood/arc-theme.git")
7110 (commit version)))
7111 (file-name (git-file-name name version))
7112 (sha256
7113 (base32
7114 "08951dk1irfadwpr3p323a4fprmxg53rk2r2niwq3v62ryhi3663"))))
7115 (build-system gnu-build-system)
7116 (arguments
7117 '(#:phases
7118 (modify-phases %standard-phases
7119 ;; autogen.sh calls configure at the end of the script.
7120 (replace 'bootstrap
7121 (lambda _ (invoke "autoreconf" "-vfi"))))))
7122 (native-inputs
7123 `(("autoconf" ,autoconf)
7124 ("automake" ,automake)
7125 ("glib" ,glib "bin") ; for glib-compile-resources
7126 ("gnome-shell" ,gnome-shell)
7127 ("gtk+" ,gtk+)
7128 ("inkscape" ,inkscape)
7129 ("optipng" ,optipng)
7130 ("pkg-config" ,pkg-config)
7131 ("sassc" ,sassc)))
7132 (synopsis "A flat GTK+ theme with transparent elements")
7133 (description "Arc is a flat theme with transparent elements for GTK 3, GTK
7134 2, and GNOME Shell which supports GTK 3 and GTK 2 based desktop environments
7135 like GNOME, Unity, Budgie, Pantheon, XFCE, Mate, etc.")
7136 (home-page "https://github.com/horst3180/arc-theme")
7137 ;; No "or later" language found.
7138 (license license:gpl3+)))
7139
7140 (define-public faba-icon-theme
7141 (package
7142 (name "faba-icon-theme")
7143 (version "4.3")
7144 (source
7145 (origin
7146 (method url-fetch)
7147 (uri (string-append "https://github.com/moka-project/"
7148 name "/archive/v" version ".tar.gz"))
7149 (file-name (string-append name "-" version ".tar.gz"))
7150 (sha256
7151 (base32
7152 "18ln06xl60qzvzz61zq9q72hdbfgjsza3flph8i2asyzx3dffz68"))))
7153 (build-system meson-build-system)
7154 (arguments
7155 `(#:phases
7156 (modify-phases %standard-phases
7157 (add-before 'configure 'disable-post-install
7158 (lambda _
7159 (substitute* "meson.build"
7160 (("meson.add_install_script.*") "")))))))
7161 (native-inputs
7162 `(("autoconf" ,autoconf)
7163 ("automake" ,automake)))
7164 (synopsis "Faba icon theme")
7165 (description
7166 "Faba is a minimal icon set used as a basis for other themes such as
7167 Moka")
7168 (home-page "https://snwh.org/moka")
7169 (license (list license:lgpl3+
7170 license:cc-by-sa4.0))))
7171
7172 (define-public moka-icon-theme
7173 (package
7174 (inherit faba-icon-theme)
7175 (name "moka-icon-theme")
7176 (version "5.4.0")
7177 (source (origin
7178 (method url-fetch)
7179 (uri (string-append "https://github.com/moka-project"
7180 "/moka-icon-theme/archive/v"
7181 version ".tar.gz"))
7182 (file-name (string-append name "-" version ".tar.gz"))
7183 (sha256
7184 (base32
7185 "1nbwdjj268hxv9lfagd9aylily9f0hhallp841v0i3imljp84bmk"))))
7186 (propagated-inputs
7187 ;; Moka is based on Faba by using it as a fallback icon set instead of
7188 ;; bundling it, so we need to add it as a propagated input.
7189 `(("faba-icon-theme" ,faba-icon-theme)))
7190 (synopsis "Moka icon theme")
7191 (description "Moka is a stylized desktop icon set, designed to be clear,
7192 simple and consistent.")
7193 (license (list license:gpl3+
7194 license:cc-by-sa4.0))))
7195
7196 (define-public arc-icon-theme
7197 (package
7198 (name "arc-icon-theme")
7199 (version "20161122")
7200 (source (origin
7201 (method url-fetch)
7202 (uri (string-append "https://github.com/horst3180/arc-icon-theme"
7203 "/archive/" version ".tar.gz"))
7204 (file-name (string-append name "-" version ".tar.gz"))
7205 (sha256
7206 (base32
7207 "1ya1cqvv8q847c0rpcg6apzky87q3h04y8jz5nmi52qk6kg8si0b"))))
7208 (build-system gnu-build-system)
7209 (arguments
7210 `(#:phases
7211 (modify-phases %standard-phases
7212 (add-after 'unpack 'disable-configure-during-bootstrap
7213 (lambda _
7214 (substitute* "autogen.sh"
7215 (("^\"\\$srcdir/configure\".*") ""))
7216 #t)))))
7217 (native-inputs
7218 `(("autoconf" ,autoconf)
7219 ("automake" ,automake)))
7220 ;; When Arc is missing an icon, it looks in the Moka icon theme for it.
7221 (propagated-inputs
7222 `(("moka-icon-theme" ,moka-icon-theme)))
7223 (synopsis "Arc icon theme")
7224 (description "The Arc icon theme provides a set of icons matching the
7225 style of the Arc GTK theme. Icons missing from the Arc theme are provided by
7226 the Moka icon theme.")
7227 (home-page "https://github.com/horst3180/arc-icon-theme")
7228 (license license:gpl3+)))
7229
7230 (define-public folks
7231 (package
7232 (name "folks")
7233 (version "0.11.4")
7234 (source (origin
7235 (method url-fetch)
7236 (uri (string-append
7237 "mirror://gnome/sources/folks/"
7238 (version-major+minor version) "/"
7239 "folks-" version ".tar.xz"))
7240 (sha256
7241 (base32
7242 "16hqh2gxlbx0b0hgq216hndr1m72vj54jvryzii9zqkk0g9kxc57"))))
7243 (build-system glib-or-gtk-build-system)
7244 (inputs
7245 `(("bdb" ,bdb)
7246 ("dbus-glib" ,dbus-glib)
7247 ("evolution-data-server" ,evolution-data-server)
7248 ("glib" ,glib)
7249 ("libgee" ,libgee)
7250 ("telepathy-glib" ,telepathy-glib)))
7251 (native-inputs
7252 `(("gobject-introspection" ,gobject-introspection)
7253 ("intltool" ,intltool)
7254 ("pkg-config" ,pkg-config)
7255 ("vala" ,vala)))
7256 (synopsis "Library to aggregate data about people")
7257 (description "Libfolks is a library that aggregates information about people
7258 from multiple sources (e.g., Telepathy connection managers for IM contacts,
7259 Evolution Data Server for local contacts, libsocialweb for web service contacts,
7260 etc.) to create metacontacts. It's written in Vala, which generates C code when
7261 compiled.")
7262 (home-page "https://wiki.gnome.org/Projects/Folks")
7263 (license license:lgpl2.1+)))
7264
7265 (define-public gfbgraph
7266 (package
7267 (name "gfbgraph")
7268 (version "0.2.3")
7269 (source (origin
7270 (method url-fetch)
7271 (uri (string-append
7272 "mirror://gnome/sources/gfbgraph/"
7273 (version-major+minor version) "/"
7274 "gfbgraph-" version ".tar.xz"))
7275 (sha256
7276 (base32
7277 "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs"))))
7278 (build-system glib-or-gtk-build-system)
7279 (arguments
7280 `(#:tests? #f ; Tests appear to require the network.
7281 ;; FIXME --enable-gtk-doc fails even with gtk-doc as a native-input.
7282 #:configure-flags '("--disable-gtk-doc"
7283 "--disable-static"
7284 "--enable-introspection")))
7285 (native-inputs
7286 `(("pkg-config" ,pkg-config)
7287 ("gobject-introspection" ,gobject-introspection)))
7288 (inputs
7289 `(("json-glib" ,json-glib)
7290 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
7291 ("rest" ,rest)))
7292 (synopsis "GLib/GObject wrapper for the Facebook API")
7293 (description "This library allows you to use the Facebook API from
7294 GLib/GObject code.")
7295 (home-page "https://wiki.gnome.org/Projects/GFBGraph")
7296 (license license:lgpl2.1+)))
7297
7298 (define-public libgnomekbd
7299 (package
7300 (name "libgnomekbd")
7301 (version "3.26.1")
7302 (source (origin
7303 (method url-fetch)
7304 (uri (string-append "mirror://gnome/sources/libgnomekbd/"
7305 (version-major+minor version) "/"
7306 "libgnomekbd-" version ".tar.xz"))
7307 (sha256
7308 (base32
7309 "0y962ykn3rr9gylj0pwpww7bi20lmhvsw6qvxs5bisbn2mih5jpp"))))
7310 (build-system gnu-build-system)
7311 (native-inputs
7312 `(("pkg-config" ,pkg-config)
7313 ("glib" ,glib "bin")
7314 ("intltool" ,intltool)))
7315 (propagated-inputs
7316 ;; Referred to in .h files and .pc.
7317 `(("glib" ,glib)
7318 ("gtk+" ,gtk+)
7319 ("libxklavier" ,libxklavier)))
7320 (home-page "https://www.gnome.org")
7321 (synopsis "GNOME keyboard configuration library")
7322 (description
7323 "Libgnomekbd is a keyboard configuration library for the GNOME desktop
7324 environment, which can notably display keyboard layouts.")
7325 (license license:lgpl2.0+)))
7326
7327 ;;; This package is no longer maintained:
7328 ;;; https://wiki.gnome.org/Attic/LibUnique
7329 ;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
7330 ;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
7331 (define-public libunique
7332 (package
7333 (name "libunique")
7334 (version "3.0.2")
7335 (source (origin
7336 (method url-fetch)
7337 (uri (string-append "mirror://gnome/sources/" name "/"
7338 (version-major+minor version) "/"
7339 name "-" version ".tar.xz"))
7340 (sha256
7341 (base32
7342 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
7343 (build-system glib-or-gtk-build-system)
7344 (arguments
7345 `(#:configure-flags '("--disable-static"
7346 "--disable-dbus" ; use gdbus
7347 "--enable-introspection")))
7348 (native-inputs
7349 `(("pkg-config" ,pkg-config)
7350 ("gobject-introspection" ,gobject-introspection)
7351 ("glib:bin" ,glib "bin")
7352 ("gtk-doc" ,gtk-doc)))
7353 (propagated-inputs
7354 ;; Referred to in .h files and .pc.
7355 `(("gtk+" ,gtk+)))
7356 (home-page "https://wiki.gnome.org/Attic/LibUnique")
7357 (synopsis "Library for writing single instance applications")
7358 (description
7359 "Libunique is a library for writing single instance applications. If you
7360 launch a single instance application twice, the second instance will either just
7361 quit or will send a message to the running instance. Libunique makes it easy to
7362 write this kind of application, by providing a base class, taking care of all
7363 the IPC machinery needed to send messages to a running instance, and also
7364 handling the startup notification side.")
7365 (license license:lgpl2.1+)))
7366
7367 (define-public gnome-calculator
7368 (package
7369 (name "gnome-calculator")
7370 (version "3.32.2")
7371 (source
7372 (origin
7373 (method url-fetch)
7374 (uri (string-append "mirror://gnome/sources/" name "/"
7375 (version-major+minor version) "/"
7376 name "-" version ".tar.xz"))
7377 (sha256
7378 (base32
7379 "0fgpn3sc226s9fpzhik5rkkrf669037gc659ga2kn9jsyckj6p41"))))
7380 (build-system meson-build-system)
7381 (arguments '(#:glib-or-gtk? #t))
7382 (native-inputs
7383 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
7384 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
7385 ("intltool" ,intltool)
7386 ("itstool" ,itstool)
7387 ("vala" ,vala)
7388 ("pkg-config" ,pkg-config)))
7389 (inputs
7390 `(("glib" ,glib)
7391 ("gtksourceview" ,gtksourceview)
7392 ("libsoup" ,libsoup)
7393 ("libxml2" ,libxml2)
7394 ("mpc" ,mpc)
7395 ("mpfr" ,mpfr)))
7396 (home-page "https://wiki.gnome.org/Apps/Calculator")
7397 (synopsis "Desktop calculator")
7398 (description
7399 "Calculator is an application that solves mathematical equations and
7400 is suitable as a default application in a Desktop environment.")
7401 (license license:gpl3)))
7402
7403 (define-public xpad
7404 (package
7405 (name "xpad")
7406 (version "5.1.0")
7407 (source
7408 (origin
7409 (method url-fetch)
7410 (uri (string-append "https://launchpad.net/xpad/trunk/"
7411 version "/+download/"
7412 name "-" version ".tar.bz2"))
7413 (sha256
7414 (base32
7415 "0l0g5x8g6dwhf5ksnqqrjjsycy57kcvdslkmsr6bl3vrsjd7qml3"))))
7416 (build-system gnu-build-system)
7417 (native-inputs
7418 `(("autoconf" ,autoconf)
7419 ("automake" ,automake)
7420 ("gtk+:bin" ,gtk+ "bin")
7421 ("intltool" ,intltool)
7422 ("pkg-config" ,pkg-config)))
7423 (inputs
7424 `(("gtksourceview" ,gtksourceview-3)
7425 ("libsm" ,libsm)))
7426 (home-page "https://wiki.gnome.org/Apps/Xpad")
7427 (synopsis "Virtual sticky note")
7428 (description
7429 "Xpad is a sticky note that strives to be simple, fault tolerant,
7430 and customizable. Xpad consists of independent pad windows, each is
7431 basically a text box in which notes can be written.")
7432 (license license:gpl3+)))
7433
7434 (define-public gucharmap
7435 (let ((unicode-files
7436 '(("Blocks.txt"
7437 "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1")
7438 ("DerivedAge.txt"
7439 "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6")
7440 ("NamesList.txt"
7441 "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61")
7442 ("Scripts.txt"
7443 "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx")
7444 ("UnicodeData.txt"
7445 "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap")
7446 ("Unihan.zip"
7447 "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"))))
7448 (package
7449 (name "gucharmap")
7450 (version "12.0.1")
7451 (source
7452 (origin
7453 (method url-fetch)
7454 (uri (string-append "mirror://gnome/sources/" name "/"
7455 (version-major+minor version) "/"
7456 name "-" version ".tar.xz"))
7457 (sha256
7458 (base32
7459 "0m915hm2b2d6r3vs1l80rqpssvg78pv8j6nv54yg62kzknnqmpir"))))
7460 (build-system glib-or-gtk-build-system)
7461 (arguments
7462 `(#:modules ((ice-9 match)
7463 (guix build glib-or-gtk-build-system)
7464 (guix build utils))
7465 #:configure-flags
7466 (list "--with-unicode-data=../unicode-data")
7467 #:phases
7468 (modify-phases %standard-phases
7469 (add-after 'unpack 'prepare-unicode-data
7470 (lambda* (#:key inputs #:allow-other-keys)
7471 (mkdir-p "../unicode-data")
7472 (with-directory-excursion "../unicode-data"
7473 (for-each (match-lambda
7474 ((file _)
7475 (install-file (assoc-ref inputs file) ".")))
7476 ',unicode-files))
7477 #t)))))
7478 (native-inputs
7479 `(("desktop-file-utils" ,desktop-file-utils)
7480 ("glib:bin" ,glib "bin") ; for glib-compile-resources.
7481 ("gobject-introspection" ,gobject-introspection)
7482 ("intltool" ,intltool)
7483 ("itstool" ,itstool)
7484 ("pkg-config" ,pkg-config)
7485 ,@(map (match-lambda
7486 ((file hash)
7487 `(,file
7488 ,(origin
7489 (method url-fetch)
7490 (uri (string-append
7491 "http://www.unicode.org/Public/12.0.0/ucd/"
7492 file))
7493 (sha256 (base32 hash))))))
7494 unicode-files)
7495 ("unzip" ,unzip)))
7496 (inputs
7497 `(("gtk+" ,gtk+)
7498 ("xmllint" ,libxml2)))
7499 (home-page "https://wiki.gnome.org/Apps/Gucharmap")
7500 (synopsis "Unicode character picker and font browser")
7501 (description
7502 "This program allows you to browse through all the available Unicode
7503 characters and categories for the installed fonts, and to examine their
7504 detailed properties. It is an easy way to find the character you might
7505 only know by its Unicode name or code point.")
7506 (license license:gpl3+))))
7507
7508 (define-public bluefish
7509 (package
7510 (name "bluefish")
7511 (version "2.2.10")
7512 (source
7513 (origin
7514 (method url-fetch)
7515 (uri (string-append "http://www.bennewitz.com/bluefish/stable/source/"
7516 name "-" version ".tar.gz"))
7517 (sha256
7518 (base32
7519 "1jw4has7lbp77lqmzvnnjmqcf0lacjfnka873lkkwdyrpzc4c1q4"))))
7520 (build-system gnu-build-system)
7521 (native-inputs
7522 `(("desktop-file-utils" ,desktop-file-utils)
7523 ("intltool" ,intltool)
7524 ("pkg-config" ,pkg-config)))
7525 (inputs
7526 `(("enchant" ,enchant)
7527 ("gtk+" ,gtk+)
7528 ("python" ,python-2)
7529 ("xmllint" ,libxml2)
7530 ("gucharmap" ,gucharmap)))
7531 (home-page "http://bluefish.openoffice.nl")
7532 (synopsis "Web development studio")
7533 (description
7534 "Bluefish is an editor targeted towards programmers and web developers,
7535 with many options to write web sites, scripts and other code.
7536 Bluefish supports many programming and markup languages.")
7537 (license license:gpl3+)))
7538
7539 (define-public gnome-system-monitor
7540 (package
7541 (name "gnome-system-monitor")
7542 (version "3.30.0")
7543 (source
7544 (origin
7545 (method url-fetch)
7546 (uri (string-append "mirror://gnome/sources/" name "/"
7547 (version-major+minor version) "/"
7548 name "-" version ".tar.xz"))
7549 (sha256
7550 (base32
7551 "0g0y565bjs6bdszrnxsz1f7hcm1x59i3mfvplysirh7nz3hpz888"))))
7552 (build-system meson-build-system)
7553 (arguments
7554 '(#:glib-or-gtk? #t
7555 #:configure-flags '("-Dsystemd=false")))
7556 (native-inputs
7557 `(("glib:bin" ,glib "bin") ; for glib-mkenums.
7558 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
7559 ("intltool" ,intltool)
7560 ("itstool" ,itstool)
7561 ("libgtop" ,libgtop)
7562 ("polkit" ,polkit)
7563 ("pkg-config" ,pkg-config)))
7564 (inputs
7565 `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
7566 ("gtk+" ,gtk+)
7567 ("gtkmm" ,gtkmm)
7568 ("librsvg" ,librsvg)
7569 ("libxml2" ,libxml2)
7570 ("libwnck" ,libwnck)))
7571 (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
7572 (synopsis "Process viewer and system resource monitor for GNOME")
7573 (description
7574 "GNOME System Monitor is a GNOME process viewer and system monitor with
7575 an attractive, easy-to-use interface. It has features, such as a tree view
7576 for process dependencies, icons for processes, the ability to hide processes,
7577 graphical time histories of CPU/memory/swap usage and the ability to
7578 kill/reinice processes.")
7579 (license license:gpl2+)))
7580
7581 (define-public python-pyatspi
7582 (package
7583 (name "python-pyatspi")
7584 (version "2.26.0")
7585 (source (origin
7586 (method url-fetch)
7587 (uri (string-append
7588 "mirror://gnome/sources/pyatspi/"
7589 (version-major+minor version)
7590 "/pyatspi-" version ".tar.xz"))
7591 (sha256
7592 (base32
7593 "0xdnix7gxzgf75xy9ris4dd6b05mqwicw190b98xqmypydyf95n6"))
7594 ;; Patch from upstream, fixed in newer versions.
7595 (patches (search-patches "python-pyatspi-python-37.patch"))))
7596 (build-system gnu-build-system)
7597 (arguments
7598 `(#:phases
7599 (modify-phases %standard-phases
7600 (add-before 'build 'fix-atk-load
7601 (lambda _
7602 (substitute* "pyatspi/__init__.py"
7603 (("from gi.repository import Atspi")
7604 "gi.require_version('Gtk', '3.0')
7605 from gi.repository import Gtk
7606 from gi.repository import Atspi"))
7607 #t)))))
7608 (native-inputs
7609 `(("pkg-config" ,pkg-config)))
7610 (inputs
7611 `(("python" ,python)
7612 ("python-pygobject" ,python-pygobject)))
7613 (synopsis "Python client bindings for D-Bus AT-SPI")
7614 (home-page "https://wiki.linuxfoundation.org/accessibility\
7615 /atk/at-spi/at-spi_on_d-bus")
7616 (description
7617 "This package includes a python client library for the AT-SPI D-Bus
7618 accessibility infrastructure.")
7619 (license license:lgpl2.0)
7620 (properties '((upstream-name . "pyatspi")))))
7621
7622 (define-public orca
7623 (package
7624 (name "orca")
7625 (version "3.30.2")
7626 (source (origin
7627 (method url-fetch)
7628 (uri (string-append
7629 "mirror://gnome/sources/" name "/"
7630 (version-major+minor version) "/"
7631 name "-" version ".tar.xz"))
7632 (sha256
7633 (base32
7634 "17asibc46i5gr2fw04jvvdi85zzmxwlnhyq7r6cr3m5prrdr8a53"))))
7635 (build-system glib-or-gtk-build-system)
7636 (arguments
7637 '(#:phases
7638 (modify-phases %standard-phases
7639 (add-before 'configure 'qualify-xkbcomp
7640 (lambda* (#:key inputs #:allow-other-keys)
7641 (let ((xkbcomp (string-append
7642 (assoc-ref inputs "xkbcomp") "/bin/xkbcomp")))
7643 (substitute* "src/orca/orca.py"
7644 (("'xkbcomp'") (format #f "'~a'" xkbcomp))))
7645 #t))
7646 (add-after 'install 'wrap-orca
7647 (lambda* (#:key outputs #:allow-other-keys)
7648 (let* ((out (assoc-ref outputs "out"))
7649 (prog (string-append out "/bin/orca")))
7650 (wrap-program prog
7651 `("GI_TYPELIB_PATH" ":" prefix
7652 (,(getenv "GI_TYPELIB_PATH")))
7653 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
7654 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
7655 `("PYTHONPATH" ":" prefix
7656 (,(getenv "PYTHONPATH")))))
7657 #t)))))
7658 (native-inputs
7659 `(("intltool" ,intltool)
7660 ("itstool" ,itstool)
7661 ("pkg-config" ,pkg-config)
7662 ("xmllint" ,libxml2)))
7663 (inputs
7664 `(("at-spi2-atk" ,at-spi2-atk)
7665 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7666 ("gstreamer" ,gstreamer)
7667 ("gst-plugins-base" ,gst-plugins-base)
7668 ("gst-plugins-good" ,gst-plugins-good)
7669 ("gtk+" ,gtk+)
7670 ("python" ,python)
7671 ("python-pygobject" ,python-pygobject)
7672 ("python-pyatspi" ,python-pyatspi)
7673 ("python-speechd" ,speech-dispatcher)
7674 ("xkbcomp" ,xkbcomp)))
7675 (synopsis
7676 "Screen reader for individuals who are blind or visually impaired")
7677 (home-page "https://wiki.gnome.org/Projects/Orca")
7678 (description
7679 "Orca is a screen reader that provides access to the graphical desktop
7680 via speech and refreshable braille. Orca works with applications and toolkits
7681 that support the Assistive Technology Service Provider Interface (AT-SPI).")
7682 (license license:lgpl2.1+)))
7683
7684 (define-public gspell
7685 (package
7686 (name "gspell")
7687 (version "1.8.2")
7688 (source (origin
7689 (method url-fetch)
7690 (uri (string-append "mirror://gnome/sources/" name "/"
7691 (version-major+minor version) "/"
7692 name "-" version ".tar.xz"))
7693 (sha256
7694 (base32
7695 "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
7696 (patches (search-patches "gspell-dash-test.patch"))))
7697 (build-system glib-or-gtk-build-system)
7698 (arguments
7699 '(#:phases
7700 (modify-phases %standard-phases
7701 (add-before 'check 'pre-check
7702 (lambda* (#:key inputs #:allow-other-keys)
7703 ;; Tests require a running X server.
7704 (system "Xvfb :1 &")
7705 (setenv "DISPLAY" ":1")
7706
7707 ;; For the missing /etc/machine-id.
7708 (setenv "DBUS_FATAL_WARNINGS" "0")
7709
7710 ;; Allow Enchant and its Aspell backend to find the en_US
7711 ;; dictionary.
7712 (setenv "ASPELL_DICT_DIR"
7713 (string-append (assoc-ref inputs "aspell-dict-en")
7714 "/lib/aspell"))
7715 #t)))))
7716 (inputs
7717 `(("gtk+" ,gtk+)
7718 ("glib" ,glib)
7719 ("iso-codes" ,iso-codes)))
7720 (native-inputs
7721 `(("glib" ,glib "bin")
7722 ("pkg-config" ,pkg-config)
7723 ("xmllint" ,libxml2)
7724
7725 ;; For tests.
7726 ("aspell-dict-en" ,aspell-dict-en)
7727 ("xorg-server" ,xorg-server)))
7728 (propagated-inputs
7729 `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
7730 (home-page "https://wiki.gnome.org/Projects/gspell")
7731 (synopsis "GNOME's alternative spell checker")
7732 (description
7733 "gspell provides a flexible API to add spell-checking to a GTK+
7734 application. It provides a GObject API, spell-checking to text entries and
7735 text views, and buttons to choose the language.")
7736 (license license:gpl2+)))
7737
7738 (define-public gnome-planner
7739 (package
7740 (name "gnome-planner")
7741 (version "0.14.6")
7742 (source (origin
7743 (method url-fetch)
7744 (uri (string-append "mirror://gnome/sources/planner/"
7745 (version-major+minor version) "/planner-"
7746 version ".tar.xz"))
7747 (sha256
7748 (base32
7749 "15h6ps58giy5r1g66sg1l4xzhjssl362mfny2x09khdqsvk2j38k"))))
7750 (build-system glib-or-gtk-build-system)
7751 (arguments
7752 ;; Disable the Python bindings because the Planner program functions
7753 ;; without them, and (as of 2017-06-13) we have not packaged all of
7754 ;; packages that are necessary for building the Python bindings.
7755 `(#:configure-flags
7756 (list "--disable-python"
7757 ,@(if (string=? "aarch64-linux" (%current-system))
7758 '("--build=aarch64-unknown-linux-gnu")
7759 '()))))
7760 (inputs
7761 `(("libgnomecanvas" ,libgnomecanvas)
7762 ("libgnomeui" ,libgnomeui)
7763 ("libglade" ,libglade)
7764 ("gnome-vfs" ,gnome-vfs)
7765 ("gconf" ,gconf)
7766 ("libxml2" ,libxml2)
7767 ("libxslt" ,libxslt)
7768 ("gtk+" ,gtk+)
7769 ("glib" ,glib)))
7770 (native-inputs
7771 `(("intltool" ,intltool)
7772 ("scrollkeeper" ,scrollkeeper)
7773 ("pkg-config" ,pkg-config)))
7774 (home-page "https://wiki.gnome.org/Apps/Planner")
7775 (synopsis "Project management software for the GNOME desktop")
7776 (description
7777 "GNOME Planner is a project management tool based on the Work Breakdown
7778 Structure (WBS). Its goal is to enable you to easily plan projects. Based on
7779 the resources, tasks, and constraints that you define, Planner generates
7780 various views into a project. For example, Planner can show a Gantt chart of
7781 the project. It can show a detailed summary of tasks including their
7782 duration, cost, and current progress. It can also show a report of resource
7783 utilization that highlights under-utilized and over-utilized resources. These
7784 views can be printed as PDF or PostScript files, or exported to HTML.")
7785 (license license:gpl2+)))
7786
7787 (define-public lollypop
7788 (package
7789 (name "lollypop")
7790 (version "1.1.3.1")
7791 (source
7792 (origin
7793 (method url-fetch)
7794 (uri (string-append "https://gitlab.gnome.org/World/lollypop/uploads/"
7795 "5a7cd7c72b6d83ae08d0c54c4691f9df/"
7796 name "-" version ".tar.xz"))
7797 (sha256
7798 (base32
7799 "1r5wn0bja9psz6nr1rcaysdkkwz84rbyzpdfw66cxa6wiy52pkjm"))))
7800 (build-system meson-build-system)
7801 (arguments
7802 `(#:imported-modules ((guix build python-build-system)
7803 ,@%meson-build-system-modules)
7804 #:glib-or-gtk? #t
7805 #:tests? #f ; no test suite
7806 #:phases
7807 (modify-phases %standard-phases
7808 (add-after 'install 'wrap-program
7809 (lambda* (#:key outputs #:allow-other-keys)
7810 (let ((out (assoc-ref outputs "out"))
7811 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7812 (wrap-program (string-append out "/bin/lollypop")
7813 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7814 #t))
7815 (add-after 'install 'wrap
7816 (@@ (guix build python-build-system) wrap)))))
7817 (native-inputs
7818 `(("intltool" ,intltool)
7819 ("itstool" ,itstool)
7820 ("glib:bin" ,glib "bin") ; For glib-compile-resources
7821 ("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7822 ("pkg-config" ,pkg-config)))
7823 (inputs
7824 `(("gobject-introspection" ,gobject-introspection)
7825 ("gst-plugins-base" ,gst-plugins-base)
7826 ("libnotify" ,libnotify)
7827 ("libsecret" ,libsecret)
7828 ("libsoup" ,libsoup)
7829 ("python" ,python)
7830 ("python-beautifulsoup4" ,python-beautifulsoup4)
7831 ("python-gst" ,python-gst)
7832 ("python-pil" ,python-pillow)
7833 ("python-pycairo" ,python-pycairo)
7834 ("python-pygobject" ,python-pygobject)
7835 ("python-pylast" ,python-pylast)
7836 ("totem-pl-parser" ,totem-pl-parser)
7837 ("webkitgtk" ,webkitgtk)))
7838 (propagated-inputs
7839 `(;; gst-plugins-base is required to start Lollypop,
7840 ;; the others are required to play streaming.
7841 ("gst-plugins-good" ,gst-plugins-good)
7842 ("gst-plugins-ugly" ,gst-plugins-ugly)))
7843 (home-page "https://wiki.gnome.org/Apps/Lollypop")
7844 (synopsis "GNOME music playing application")
7845 (description
7846 "Lollypop is a music player designed to play well with GNOME desktop.
7847 Lollypop plays audio formats such as mp3, mp4, ogg and flac and gets information
7848 from artists and tracks from the web. It also fetches cover artworks
7849 automatically and it can stream songs from online music services and charts.")
7850 (license license:gpl3+)))
7851
7852 (define-public gnome-video-effects
7853 (package
7854 (name "gnome-video-effects")
7855 (version "0.4.3")
7856 (source (origin
7857 (method url-fetch)
7858 (uri (string-append "mirror://gnome/sources/" name "/"
7859 (version-major+minor version) "/" name "-"
7860 version ".tar.xz"))
7861 (sha256
7862 (base32
7863 "06c2f1kihyhawap1s3zg5w7q7fypsybkp7xry4hxkdz4mpsy0zjs"))))
7864 (build-system glib-or-gtk-build-system)
7865 (arguments
7866 `(#:out-of-source? #f))
7867 (native-inputs
7868 `(("glib:bin" ,glib "bin")
7869 ("intltool" ,intltool)
7870 ("gettext" ,gettext-minimal)
7871 ("pkg-config" ,pkg-config)))
7872 (home-page "https://wiki.gnome.org/Projects/GnomeVideoEffects")
7873 (synopsis "Video effects for Cheese and other GNOME applications")
7874 (description
7875 "A collection of GStreamer video filters and effects to be used in
7876 photo-booth-like software, such as Cheese.")
7877 (license license:gpl2+)))
7878
7879 (define-public cheese
7880 (package
7881 (name "cheese")
7882 (version "3.30.0")
7883 (source (origin
7884 (method url-fetch)
7885 (uri (string-append "mirror://gnome/sources/" name "/"
7886 (version-major+minor version) "/" name "-"
7887 version ".tar.xz"))
7888 (sha256
7889 (base32
7890 "0zz2bgjaf2lsmfs3zn24925vbjb0rycr39i288brlbzixrpcyljr"))))
7891 (arguments
7892 ;; Tests require GDK.
7893 `(#:tests? #f
7894 #:phases
7895 (modify-phases %standard-phases
7896 (add-before 'install 'skip-gtk-update-icon-cache
7897 (lambda _
7898 ;; Don't create 'icon-theme.cache'
7899 (substitute* "Makefile"
7900 (("gtk-update-icon-cache") (which "true")))
7901 #t))
7902 (add-after 'install 'wrap-cheese
7903 (lambda* (#:key inputs outputs #:allow-other-keys)
7904 (let ((out (assoc-ref outputs "out"))
7905 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
7906 (wrap-program (string-append out "/bin/cheese")
7907 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
7908 #t)))))
7909 (build-system glib-or-gtk-build-system)
7910 (native-inputs
7911 `(("glib:bin" ,glib "bin")
7912 ("intltool" ,intltool)
7913 ("itstool" ,itstool)
7914 ("libxml2" ,libxml2)
7915 ("pkg-config" ,pkg-config)
7916 ("vala" ,vala)))
7917 (propagated-inputs
7918 `(("gnome-video-effects" ,gnome-video-effects)
7919 ("clutter" ,clutter)
7920 ("clutter-gst" ,clutter-gst)
7921 ("clutter-gtk" ,clutter-gtk)
7922 ("libcanberra" ,libcanberra)
7923 ("gdk-pixbuf" ,gdk-pixbuf)
7924 ("glib" ,glib)
7925 ("gstreamer" ,gstreamer)))
7926 (inputs
7927 `(("gnome-desktop" ,gnome-desktop)
7928 ("gobject-introspection" ,gobject-introspection)
7929 ("gst-plugins-base" ,gst-plugins-base)
7930 ("gst-plugins-bad" ,gst-plugins-bad)
7931 ("gtk+" ,gtk+)
7932 ("libx11" ,libx11)
7933 ("libxtst" ,libxtst)))
7934 (home-page "https://wiki.gnome.org/Apps/Cheese")
7935 (synopsis "Webcam photo booth software for GNOME")
7936 (description
7937 "Cheese uses your webcam to take photos and videos. Cheese can also
7938 apply fancy special effects and lets you share the fun with others.")
7939 (license license:gpl2+)))
7940
7941 (define-public sound-juicer
7942 (package
7943 (name "sound-juicer")
7944 (version "3.24.0")
7945 (source
7946 (origin
7947 (method url-fetch)
7948 (uri (string-append "mirror://gnome/sources/" name "/"
7949 (version-major+minor version) "/"
7950 name "-" version ".tar.xz"))
7951 (sha256
7952 (base32
7953 "19qg4xv0f9rkq34lragkmhii1llxsa87llbl28i759b0ks4f6sny"))))
7954 (build-system glib-or-gtk-build-system)
7955 (native-inputs
7956 `(("desktop-file-utils" ,desktop-file-utils)
7957 ("intltool" ,intltool)
7958 ("itstool" ,itstool)
7959 ("pkg-config" ,pkg-config)
7960 ("xmllint" ,libxml2)))
7961 (inputs
7962 `(("gtk+" ,gtk+)
7963 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7964 ("gstreamer" ,gstreamer)
7965 ("gst-plugins-base" ,gst-plugins-base)
7966 ("gst-plugins-good" ,gst-plugins-good)
7967 ("iso-codes" ,iso-codes)
7968 ("libbrasero-media3" ,brasero)
7969 ("libcanberra" ,libcanberra)
7970 ("libdiscid" ,libdiscid)
7971 ("libmusicbrainz" ,libmusicbrainz)
7972 ("neon" ,neon)))
7973 (home-page "https://wiki.gnome.org/Apps/SoundJuicer")
7974 (synopsis "Audio music cd ripper")
7975 (description "Sound Juicer extracts audio from compact discs and convert it
7976 into audio files that a personal computer or digital audio player can play.
7977 It supports ripping to any audio codec supported by a GStreamer plugin, such as
7978 mp3, Ogg Vorbis and FLAC")
7979 (license license:gpl2+)))
7980
7981 (define-public soundconverter
7982 (package
7983 (name "soundconverter")
7984 (version "3.0.1")
7985 (source
7986 (origin
7987 (method url-fetch)
7988 (uri (string-append "https://launchpad.net/soundconverter/trunk/"
7989 version "/+download/"
7990 "soundconverter-" version ".tar.xz"))
7991
7992 (sha256
7993 (base32 "1d6x1yf8psqbd9zbybxivfqg55khcnngp2mn92l161dfdk9512c5"))
7994 (patches
7995 (search-patches
7996 "soundconverter-remove-gconf-dependency.patch"))))
7997 (build-system glib-or-gtk-build-system)
7998 (arguments
7999 `(#:imported-modules ((guix build python-build-system)
8000 (guix build glib-or-gtk-build-system)
8001 ,@%gnu-build-system-modules)
8002
8003 #:modules ((guix build glib-or-gtk-build-system)
8004 (guix build utils)
8005 ((guix build gnu-build-system) #:prefix gnu:)
8006 ((guix build python-build-system) #:prefix python:))
8007
8008 #:phases
8009 (modify-phases %standard-phases
8010 (add-after 'install 'wrap-soundconverter-for-python
8011 (assoc-ref python:%standard-phases 'wrap))
8012 (add-after 'install 'wrap-soundconverter
8013 (lambda* (#:key inputs outputs #:allow-other-keys)
8014 (let ((out (assoc-ref outputs "out"))
8015 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
8016 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
8017 (wrap-program (string-append out "/bin/soundconverter")
8018 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
8019 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
8020 #t)))))
8021 (native-inputs
8022 `(("intltool" ,intltool)
8023 ("pkg-config" ,pkg-config)
8024 ("glib:bin" ,glib "bin")))
8025 (inputs
8026 `(("gtk+" ,gtk+)
8027 ("python" ,python)
8028 ("python-pygobject" ,python-pygobject)
8029 ("gstreamer" ,gstreamer)
8030 ("gst-plugins-base" ,gst-plugins-base)))
8031 (home-page "http://soundconverter.org/")
8032 (synopsis "Convert between audio formats with a graphical interface")
8033 (description
8034 "SoundConverter supports converting between many audio formats including
8035 Opus, Ogg Vorbis, FLAC and more. It supports parallel conversion, and
8036 configurable file renaming. ")
8037 (license license:gpl3)))
8038
8039 (define-public workrave
8040 (package
8041 (name "workrave")
8042 (version "1.10.34")
8043 (source
8044 (origin
8045 (method git-fetch)
8046 (uri (git-reference
8047 (url "https://github.com/rcaelers/workrave.git")
8048 (commit (string-append "v" (string-map
8049 (match-lambda (#\. #\_) (chr chr))
8050 version)))))
8051 (file-name (git-file-name name version))
8052 (sha256
8053 (base32 "0czwhr7nw523753ajcjjfwrf91mq8pmzr19gp0srqsvb1dsn1zcf"))))
8054 (build-system glib-or-gtk-build-system)
8055 (inputs `(("glib" ,glib)
8056 ("gtk+" ,gtk+)
8057 ("gdk-pixbuf" ,gdk-pixbuf)
8058 ("gtkmm" ,gtkmm)
8059 ("glibmm" ,glibmm)
8060 ("libx11" ,libx11)
8061 ("libxtst" ,libxtst)
8062 ("dconf" ,dconf)
8063 ("libice" ,libice)
8064 ("libsm" ,libsm)
8065 ("libxscrnsaver" ,libxscrnsaver)))
8066 (native-inputs `(("boost" ,boost)
8067 ("pkg-config" ,pkg-config)
8068 ("gettext" ,gnu-gettext)
8069 ("autoconf" ,autoconf)
8070 ("autoconf-archive" , autoconf-archive)
8071 ("automake" ,automake)
8072 ("libtool" ,libtool)
8073 ("intltool" ,intltool)
8074 ("gobject-introspection" ,gobject-introspection)
8075 ("python3" ,python-3)
8076 ("python-jinja2" ,python-jinja2)))
8077 (synopsis "Tool to help prevent repetitive strain injury (RSI)")
8078 (description
8079 "Workrave is a program that assists in the recovery and prevention of
8080 repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
8081 micro-pauses and rest breaks, and restricts you to your daily limit.")
8082 (home-page "http://www.workrave.org")
8083 (license license:gpl3+)))
8084
8085 (define-public ghex
8086 (package
8087 (name "ghex")
8088 (version "3.18.3")
8089 (source (origin
8090 (method url-fetch)
8091 (uri (string-append "mirror://gnome/sources/ghex/"
8092 (version-major+minor version) "/"
8093 "ghex-" version ".tar.xz"))
8094 (sha256
8095 (base32
8096 "1lq8920ad2chi9ibmyq0x9hg9yk63b0kdbzid03w42cwdzw50x66"))))
8097 (build-system glib-or-gtk-build-system)
8098 (native-inputs
8099 `(("pkg-config" ,pkg-config)
8100 ("gnome-common" ,gnome-common)
8101 ("which" ,which)
8102 ("intltool" ,intltool)
8103 ("yelp-tools" ,yelp-tools)
8104 ("desktop-file-utils" ,desktop-file-utils))) ; for 'desktop-file-validate'
8105 (inputs
8106 `(("atk" ,atk)
8107 ("gtk" ,gtk+)))
8108 (synopsis "GNOME hexadecimal editor")
8109 (description "The GHex program can view and edit files in two ways:
8110 hexadecimal or ASCII. It is useful for editing binary files in general.")
8111 (home-page "https://wiki.gnome.org/Apps/Ghex")
8112 (license license:gpl2)))
8113
8114 (define-public libdazzle
8115 (package
8116 (name "libdazzle")
8117 (version "3.33.90")
8118 (source (origin
8119 (method url-fetch)
8120 (uri (string-append "mirror://gnome/sources/libdazzle/"
8121 (version-major+minor version) "/"
8122 "libdazzle-" version ".tar.xz"))
8123 (sha256
8124 (base32
8125 "189m7q88d1a7bq0yyal9f3yhm9kz46lb61379nn4wsnnhpa1d0qs"))))
8126 (build-system meson-build-system)
8127 (arguments
8128 `(#:phases
8129 (modify-phases %standard-phases
8130 (add-before 'check 'pre-check
8131 (lambda _
8132 ;; Tests require a running X server.
8133 (system "Xvfb :1 &")
8134 (setenv "DISPLAY" ":1")
8135 #t)))))
8136 (native-inputs
8137 `(("glib" ,glib "bin") ; glib-compile-resources
8138 ("pkg-config" ,pkg-config)
8139 ;; For tests.
8140 ("xorg-server" ,xorg-server)))
8141 (inputs
8142 `(("glib" ,glib)
8143 ("gobject-introspection" ,gobject-introspection)
8144 ("gtk+" ,gtk+)
8145 ("vala" ,vala)))
8146 (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
8147 (synopsis "Companion library to GObject and Gtk+")
8148 (description "The libdazzle library is a companion library to GObject and
8149 Gtk+. It provides various features that the authors wish were in the
8150 underlying library but cannot for various reasons. In most cases, they are
8151 wildly out of scope for those libraries. In other cases, they are not quite
8152 generic enough to work for everyone.")
8153 (license license:gpl3+)))
8154
8155 (define-public evolution
8156 (package
8157 (name "evolution")
8158 (version "3.30.5")
8159 (source (origin
8160 (method url-fetch)
8161 (uri (string-append "mirror://gnome/sources/evolution/"
8162 (version-major+minor version) "/"
8163 "evolution-" version ".tar.xz"))
8164 (sha256
8165 (base32
8166 "1hhxj3rh921pp3l3c5k33bdypcas1p66krzs65k1qn82c5fpgl2h"))))
8167 (build-system cmake-build-system)
8168 (arguments
8169 `(#:imported-modules (,@%cmake-build-system-modules
8170 (guix build glib-or-gtk-build-system))
8171 #:modules ((guix build cmake-build-system)
8172 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
8173 (guix build utils))
8174 #:configure-flags
8175 (list "-DENABLE_PST_IMPORT=OFF" ; libpst is not packaged
8176 "-DENABLE_LIBCRYPTUI=OFF") ; libcryptui hasn't seen a release
8177 ; in four years and cannot be built.
8178 #:phases
8179 (modify-phases %standard-phases
8180 ;; The build system attempts to install user interface modules to the
8181 ;; output directory of the "evolution-data-server" package. This
8182 ;; change redirects that change.
8183 (add-after 'unpack 'patch-ui-module-dir
8184 (lambda* (#:key outputs #:allow-other-keys)
8185 (substitute* "src/modules/alarm-notify/CMakeLists.txt"
8186 (("\\$\\{edsuimoduledir\\}")
8187 (string-append (assoc-ref outputs "out")
8188 "/lib/evolution-data-server/ui-modules")))
8189 #t))
8190 (add-after 'install 'glib-or-gtk-compile-schemas
8191 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
8192 (add-after 'install 'glib-or-gtk-wrap
8193 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
8194 (native-inputs
8195 `(("glib" ,glib "bin") ; glib-mkenums
8196 ("pkg-config" ,pkg-config)
8197 ("intltool" ,intltool)
8198 ("itstool" ,itstool)))
8199 (inputs
8200 `(("enchant" ,enchant)
8201 ("evolution-data-server" ,evolution-data-server) ; must be the same version
8202 ("gcr" ,gcr)
8203 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8204 ("gnome-autoar" ,gnome-autoar)
8205 ("gnome-desktop" ,gnome-desktop)
8206 ("gtkspell3" ,gtkspell3)
8207 ("highlight" ,highlight)
8208 ("libcanberra" ,libcanberra)
8209 ("libedataserverui" ,evolution-data-server)
8210 ("libgweather" ,libgweather)
8211 ("libnotify" ,libnotify)
8212 ("libsoup" ,libsoup)
8213 ("nss" ,nss)
8214 ("openldap" ,openldap)
8215 ("webkitgtk" ,webkitgtk)
8216 ("ytnef" ,ytnef)))
8217 (home-page "https://gitlab.gnome.org/GNOME/evolution")
8218 (synopsis "Manage your email, contacts and schedule")
8219 (description "Evolution is a personal information management application
8220 that provides integrated mail, calendaring and address book
8221 functionality.")
8222 ;; See COPYING for details.
8223 (license (list license:lgpl2.1 license:lgpl3 ; either one of these
8224 license:openldap2.8 ; addressbook/gui/component/openldap-extract.h
8225 license:lgpl2.1+)))) ; smime/lib/*
8226
8227 (define-public gthumb
8228 (package
8229 (name "gthumb")
8230 (version "3.8.1")
8231 (source (origin
8232 (method url-fetch)
8233 (uri (string-append "mirror://gnome/sources/gthumb/"
8234 (version-major+minor version) "/"
8235 "gthumb-" version ".tar.xz"))
8236 (sha256
8237 (base32
8238 "184zn79w4s9y1zy42ar31p3jsg8rmkxy8k6iry51nz8aizbcs7jb"))))
8239 (build-system meson-build-system)
8240 (arguments
8241 `(#:glib-or-gtk? #t
8242 #:configure-flags
8243 ;; Ensure the RUNPATH contains all installed library locations.
8244 (list (string-append "-Dc_link_args=-Wl,-rpath="
8245 (assoc-ref %outputs "out")
8246 "/lib/gthumb/extensions")
8247 (string-append "-Dcpp_link_args=-Wl,-rpath="
8248 (assoc-ref %outputs "out")
8249 "/lib/gthumb/extensions"))))
8250 (native-inputs
8251 `(("pkg-config" ,pkg-config)
8252 ("glib:bin" ,glib "bin") ; for glib-compile-resources
8253 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8254 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8255 ("intltool" ,intltool)
8256 ("itstool" ,itstool)))
8257 (inputs
8258 `(("exiv2" ,exiv2)
8259 ("gtk" ,gtk+)
8260 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8261 ("gstreamer" ,gstreamer)
8262 ("clutter" ,clutter)
8263 ("clutter-gst" ,clutter-gst)
8264 ("clutter-gtk" ,clutter-gtk)
8265 ("libjpeg" ,libjpeg)
8266 ("libtiff" ,libtiff)
8267 ("libraw" ,libraw)))
8268 (home-page "https://wiki.gnome.org/Apps/Gthumb")
8269 (synopsis "GNOME image viewer and browser")
8270 (description "GThumb is an image viewer, browser, organizer, editor and
8271 advanced image management tool")
8272 (license license:gpl2+)))
8273
8274 (define-public terminator
8275 (package
8276 (name "terminator")
8277 (version "1.91")
8278 (source (origin
8279 (method url-fetch)
8280 (uri (string-append "https://launchpad.net/" name "/"
8281 "gtk3/" version "/" "+download/"
8282 name "-" version ".tar.gz"))
8283 (sha256
8284 (base32
8285 "0sdyqwydmdnh7j6mn74vrywz35m416kqsbxbrqcnv5ak08y6xxwm"))))
8286 (build-system python-build-system)
8287 (native-inputs
8288 `(("intltool" ,intltool)
8289 ("glib:bin" ,glib "bin") ; for glib-compile-resources
8290 ("gettext" ,gettext-minimal)
8291 ("pkg-config" ,pkg-config)))
8292 (inputs
8293 `(("cairo" ,cairo)
8294 ("gobject-introspection" ,gobject-introspection)
8295 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8296 ("python2-pycairo" ,python2-pycairo)
8297 ("python2-pygobject" ,python2-pygobject)
8298 ("python2-psutil" ,python2-psutil)
8299 ("vte" ,vte)))
8300 (arguments
8301 `(#:python ,python-2 ; Python 3 isn't supported
8302 #:imported-modules ((guix build glib-or-gtk-build-system)
8303 ,@%python-build-system-modules)
8304 #:modules ((guix build python-build-system)
8305 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
8306 (guix build utils))
8307 #:phases
8308 (modify-phases %standard-phases
8309 (add-after
8310 'install 'wrap-program
8311 (lambda* (#:key outputs #:allow-other-keys)
8312 (let ((prog (string-append (assoc-ref outputs "out")
8313 "/bin/terminator")))
8314 (wrap-program prog
8315 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
8316 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
8317 #t)))
8318 (add-after 'wrap-program 'glib-or-gtk-wrap
8319 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
8320 (home-page "https://gnometerminator.blogspot.com/")
8321 (synopsis "Store and run multiple GNOME terminals in one window")
8322 (description
8323 "Terminator allows you to run multiple GNOME terminals in a grid and
8324 +tabs, and it supports drag and drop re-ordering of terminals.")
8325 (license license:gpl2)))
8326
8327 (define-public libhandy
8328 (package
8329 (name "libhandy")
8330 (version "0.0.11")
8331 (source
8332 (origin
8333 (method git-fetch)
8334 (uri (git-reference
8335 (url "https://source.puri.sm/Librem5/libhandy")
8336 (commit (string-append "v" version))))
8337 (file-name (git-file-name name version))
8338 (sha256
8339 (base32 "0622zp5wrvn5bvgardijxd11y76g1i54fs32y03dw9nrar7i6vb0"))))
8340 (build-system meson-build-system)
8341 (arguments
8342 `(#:configure-flags
8343 '("-Dglade_catalog=disabled"
8344 "-Dgtk_doc=true")
8345 #:phases
8346 (modify-phases %standard-phases
8347 (add-before 'check 'pre-check
8348 (lambda _
8349 ;; Tests require a running X server.
8350 (system "Xvfb :1 &")
8351 (setenv "DISPLAY" ":1")
8352 #t)))))
8353 (inputs
8354 `(("gtk+" ,gtk+)))
8355 (native-inputs
8356 `(("glib:bin" ,glib "bin")
8357 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
8358 ("vala" ,vala)
8359 ("gtk-doc" ,gtk-doc)
8360 ("pkg-config" ,pkg-config)
8361 ("gettext" ,gettext-minimal)
8362 ("xorg-server" ,xorg-server)
8363
8364 ;; Test suite dependencies.
8365 ("hicolor-icon-theme" ,hicolor-icon-theme)))
8366 (home-page "https://source.puri.sm/Librem5/libhandy")
8367 (synopsis "Library full of GTK+ widgets for mobile phones")
8368 (description "The aim of the handy library is to help with developing user
8369 intefaces for mobile devices using GTK+.")
8370 (license license:lgpl2.1+)))
8371
8372 (define-public libgit2-glib
8373 (package
8374 (name "libgit2-glib")
8375 (version "0.28.0.1")
8376 (source (origin
8377 (method url-fetch)
8378 (uri (string-append "mirror://gnome/sources/" name "/"
8379 (version-major+minor version) "/"
8380 name "-" version ".tar.xz"))
8381 (sha256
8382 (base32
8383 "0a0g7aw66rfgnqr4z7fgbk5zzcjq66m4rp8v4val3a212941h0g7"))))
8384 (build-system meson-build-system)
8385 (native-inputs
8386 `(("glib:bin" ,glib "bin") ;; For glib-mkenums
8387 ("gobject-introspection" ,gobject-introspection)
8388 ("intltool" ,intltool)
8389 ("libssh2" ,libssh2)
8390 ("pkg-config" ,pkg-config)
8391 ("python-pygobject" ,python-pygobject)
8392 ("python-wrapper" ,python-wrapper)
8393 ("vala" ,vala)))
8394 (inputs
8395 `(("glib" ,glib)
8396 ("libgit2" ,libgit2)))
8397 (synopsis "GLib wrapper around the libgit2 Git access library")
8398 (description "libgit2-glib is a GLib wrapper library around the libgit2 Git
8399 access library. It only implements the core plumbing functions, not really the
8400 higher level porcelain stuff.")
8401 (home-page "https://wiki.gnome.org/Projects/Libgit2-glib")
8402 (license license:gpl2+)))
8403
8404 (define-public gnome-mahjongg
8405 (package
8406 (name "gnome-mahjongg")
8407 (version "3.35.1")
8408 (source (origin
8409 (method git-fetch)
8410 (uri (git-reference
8411 (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
8412 (commit version)))
8413 (file-name (git-file-name name version))
8414 (sha256
8415 (base32
8416 "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
8417 (build-system meson-build-system)
8418 (arguments
8419 `(#:glib-or-gtk? #t))
8420 (native-inputs
8421 `(("appstream-glib" ,appstream-glib)
8422 ("gettext" ,gettext-minimal)
8423 ("glib:bin" ,glib "bin") ;; For glib-compile-resources
8424 ("gtk+" ,gtk+ "bin") ;; For gtk-update-icon-cache
8425 ("itstool" ,itstool)
8426 ("pkg-config" ,pkg-config)
8427 ("vala" ,vala)))
8428 (propagated-inputs
8429 `(("dconf" ,dconf)))
8430 (inputs
8431 `(("glib" ,glib)
8432 ("gtk+" ,gtk+)
8433 ("librsvg" ,librsvg)))
8434 (synopsis "Mahjongg tile-matching game")
8435 (description "GNOME Mahjongg is a game based on the classic Chinese
8436 tile-matching game Mahjong. It features multiple board layouts, tile themes,
8437 and a high score table.")
8438 (home-page "https://wiki.gnome.org/Apps/Mahjongg")
8439 (license license:gpl2+)))