gnu: lollypop: 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.34.1")
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 "1pr6fvbaam1mzxjwyqd53hcxzdjzf73idn10j4j7n54nwg6hgr45"))))
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.1.1")
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 "12x7xmwh62yl0ax90v8nkx3jqzviaz9hz2g56yml78wzww20gawy"))
2236 (patches (search-patches
2237 "seahorse-gkr-use-0-on-empty-flags.patch"))))
2238 (build-system meson-build-system)
2239 (arguments
2240 '(#:phases
2241 (modify-phases %standard-phases
2242 (add-after 'unpack 'skip-gtk-update-icon-cache
2243 ;; Don't create 'icon-theme.cache'.
2244 (lambda _
2245 (substitute* "build-aux/meson_post_install.py"
2246 (("gtk-update-icon-cache") "true"))
2247 #t)))))
2248 (inputs
2249 `(("gtk+" ,gtk+)
2250 ("gcr" ,gcr)
2251 ("gnupg" ,gnupg)
2252 ("gpgme" ,gpgme)
2253 ("openldap" ,openldap)
2254 ("openssh" ,openssh)
2255 ("avahi" ,avahi)
2256 ("libsecret" ,libsecret)
2257 ("libsoup" ,libsoup)))
2258 (native-inputs
2259 `(("gettext" ,gettext-minimal)
2260 ("glib:bin" ,glib "bin")
2261 ("itstool" ,itstool)
2262 ("pkg-config" ,pkg-config)
2263 ("vala" ,vala)
2264 ("xmllint" ,libxml2)))
2265 (home-page "https://launchpad.net/gnome-themes-standard")
2266 (synopsis "Manage encryption keys and passwords in the GNOME keyring")
2267 (description
2268 "Seahorse is a GNOME application for managing encryption keys and
2269 passwords in the GNOME keyring.")
2270 (license license:gpl2+)))
2271
2272 (define-public vala
2273 (package
2274 (name "vala")
2275 (version "0.44.5")
2276 (source (origin
2277 (method url-fetch)
2278 (uri (string-append "mirror://gnome/sources/" name "/"
2279 (version-major+minor version) "/"
2280 name "-" version ".tar.xz"))
2281 (sha256
2282 (base32
2283 "0zy2kfcvhikczfzhk5l7pkw6mvn3d6vw8cv7g08iah85p22q33xv"))))
2284 (build-system gnu-build-system)
2285 (arguments
2286 '(#:phases
2287 (modify-phases %standard-phases
2288 (add-before 'check 'pre-check
2289 (lambda _
2290 (setenv "CC" "gcc")
2291 (substitute* "valadoc/tests/testrunner.sh"
2292 (("export PKG_CONFIG_PATH=" m)
2293 (string-append m "$PKG_CONFIG_PATH:")))
2294 ;; For missing '/etc/machine-id'.
2295 (setenv "DBUS_FATAL_WARNINGS" "0")
2296 #t)))))
2297 (native-inputs
2298 `(("pkg-config" ,pkg-config)
2299 ("flex" ,flex)
2300 ("bison" ,bison)
2301 ("xsltproc" ,libxslt)
2302 ("dbus" ,dbus) ; for dbus tests
2303 ("gobject-introspection" ,gobject-introspection))) ; for gir tests
2304 (inputs
2305 `(("graphviz" ,graphviz)))
2306 (propagated-inputs
2307 `(("glib" ,glib))) ; required by libvala-0.40.pc
2308 (home-page "https://live.gnome.org/Vala/")
2309 (synopsis "Compiler for the GObject type system")
2310 (description
2311 "Vala is a programming language that aims to bring modern programming
2312 language features to GNOME developers without imposing any additional runtime
2313 requirements and without using a different ABI compared to applications and
2314 libraries written in C.")
2315 (license license:lgpl2.1+)))
2316
2317 (define-public vte
2318 (package
2319 (name "vte")
2320 (version "0.56.3")
2321 (source (origin
2322 (method url-fetch)
2323 (uri (string-append "mirror://gnome/sources/" name "/"
2324 (version-major+minor version) "/"
2325 name "-" version ".tar.xz"))
2326 (sha256
2327 (base32
2328 "0j166gic5znssdb9r45qazq4kb4v9fial82czand5wa8i2yd988p"))))
2329 (build-system gnu-build-system)
2330 (native-inputs
2331 `(("pkg-config" ,pkg-config)
2332 ("intltool" ,intltool)
2333 ("vala" ,vala)
2334 ("gobject-introspection" ,gobject-introspection)
2335 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2336 ("gperf" ,gperf)
2337 ("xmllint" ,libxml2)))
2338 (propagated-inputs
2339 `(("gtk+" ,gtk+) ;required by vte-2.91.pc
2340 ("gnutls" ,gnutls) ;ditto
2341 ("pcre2" ,pcre2))) ;ditto
2342 (home-page "https://www.gnome.org/")
2343 (synopsis "Virtual Terminal Emulator")
2344 (description
2345 "VTE is a library (libvte) implementing a terminal emulator widget for
2346 GTK+, and a minimal sample application (vte) using that. Vte is mainly used in
2347 gnome-terminal, but can also be used to embed a console/terminal in games,
2348 editors, IDEs, etc.")
2349 (license license:lgpl2.1+)))
2350
2351 (define-public vte-ng
2352 (package
2353 (inherit vte)
2354 (name "vte-ng")
2355 (version "0.58.2.a")
2356 (home-page "https://github.com/thestinger/vte-ng")
2357 (source (origin
2358 (method git-fetch)
2359 (uri (git-reference (url home-page) (commit version)))
2360 (file-name (git-file-name name version))
2361 (sha256
2362 (base32
2363 "0rnm5c6m3abbm81jsfdas0y80z299ny54gr4syn4bfrms3s4g19l"))))
2364 (build-system meson-build-system)
2365 (native-inputs
2366 `(("gtk-doc" ,gtk-doc)
2367 ,@(package-native-inputs vte)))
2368 (arguments
2369 `(#:configure-flags '("-Ddocs=true")))
2370 (synopsis "Enhanced VTE terminal widget")
2371 (description
2372 "VTE is a library (libvte) implementing a terminal emulator widget for
2373 GTK+, this fork provides additional functions exposed for keyboard text
2374 selection and URL hints.")))
2375
2376 ;; provides vte 2.90, required for some terminal emulators
2377 ;; tilda bug: https://github.com/lanoxx/tilda/issues/94
2378 ;; pantheon-terminal bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788021
2379 ;; roxterm bug: http://sourceforge.net/p/roxterm/bugs/107/
2380 ;; pantheon-terminal, roxterm are not currently packaged
2381 (define-public vte-0.36
2382 (package (inherit vte)
2383 (name "vte")
2384 (version "0.36.5")
2385 (source (origin
2386 (method url-fetch)
2387 (uri (string-append "mirror://gnome/sources/" name "/"
2388 (version-major+minor version) "/"
2389 name "-" version ".tar.xz"))
2390 (sha256
2391 (base32
2392 "1psfnqsmxx4qzc55qwvb8jai824ix4pqcdqhgxk0g2zh82bcxhn2"))))
2393 (propagated-inputs
2394 `(("gtk" ,gtk+)
2395 ("ncurses" ,ncurses)))))
2396
2397 ;; stable version for gtk2, required by xfce4-terminal.
2398 (define-public vte/gtk+-2
2399 (package (inherit vte)
2400 (name "vte")
2401 (version "0.28.2")
2402 (source (origin
2403 (method url-fetch)
2404 (uri (string-append "mirror://gnome/sources/" name "/"
2405 (version-major+minor version) "/"
2406 name "-" version ".tar.xz"))
2407 (sha256
2408 (base32
2409 "1bmhahkf8wdsra9whd3k5l5z4rv7r58ksr8mshzajgq2ma0hpkw6"))
2410 (patches (search-patches
2411 "vte-CVE-2012-2738-pt1.patch"
2412 "vte-CVE-2012-2738-pt2.patch"))))
2413 (arguments
2414 '(#:configure-flags '("--disable-python")))
2415 (native-inputs
2416 `(("pkg-config" ,pkg-config)
2417 ("intltool" ,intltool)
2418 ("glib" ,glib "bin"))) ; for glib-genmarshal, etc.
2419 (propagated-inputs
2420 `(("gtk+" ,gtk+-2) ; required by libvte.pc
2421 ("ncurses" ,ncurses))))) ; required by libvte.la
2422
2423 (define-public vinagre
2424 (package
2425 (name "vinagre")
2426 (version "3.22.0")
2427 (source (origin
2428 (method url-fetch)
2429 (uri (string-append "mirror://gnome/sources/" name "/"
2430 (version-major+minor version) "/"
2431 name "-" version ".tar.xz"))
2432 (patches (search-patches "vinagre-newer-freerdp.patch"
2433 "vinagre-newer-rdp-parameters.patch"))
2434 (sha256
2435 (base32
2436 "10jya3jyrm18nbw3v410gbkc7677bqamax44pzgd3j15randn76d"))))
2437 (build-system glib-or-gtk-build-system)
2438 (arguments
2439 ;; Disable -Werror and such, to avoid build failures on compilation
2440 ;; warnings.
2441 '(#:configure-flags '("--enable-compile-warnings=minimum")
2442 #:phases
2443 (modify-phases %standard-phases
2444 (add-before 'install 'skip-gtk-update-icon-cache
2445 (lambda _
2446 ;; Don't create 'icon-theme.cache'
2447 (substitute* (find-files "." "^Makefile$")
2448 (("gtk-update-icon-cache") (which "true")))
2449 #t))
2450 (add-after 'unpack 'patch-configure
2451 (lambda _
2452 (substitute* "configure"
2453 (("freerdp") "freerdp2"))
2454 #t)))))
2455 (native-inputs
2456 `(("pkg-config" ,pkg-config)
2457 ("intltool" ,intltool)
2458 ("itstool" ,itstool)
2459 ("glib-bin" ,glib "bin"))) ;for glib-compile-schemas
2460 (inputs
2461 `(("libxml2" ,libxml2)
2462 ("gtk-vnc" ,gtk-vnc)
2463 ("gnome-keyring" ,gnome-keyring)
2464 ("libsecret" ,libsecret)
2465 ("freerdp" ,freerdp)
2466 ("spice" ,spice)
2467 ("spice-gtk" ,spice-gtk)
2468 ("telepathy-glib" ,telepathy-glib)
2469 ("vte" ,vte)))
2470 (home-page "https://wiki.gnome.org/Apps/Vinagre")
2471 (synopsis "Remote desktop viewer for GNOME")
2472 (description "Vinagre is a remote display client supporting the VNC, SPICE
2473 and RDP protocols.")
2474 (license license:gpl3+)))
2475
2476 (define-public dconf
2477 (package
2478 (name "dconf")
2479 (version "0.32.0")
2480 (source (origin
2481 (method url-fetch)
2482 (uri (string-append
2483 "mirror://gnome/sources/" name "/"
2484 (version-major+minor version) "/"
2485 name "-" version ".tar.xz"))
2486 (sha256
2487 (base32
2488 "1azz4hb9z76yxn34yrrsiib3iqz5z4vpwn5q7cncp55w365ygg38"))))
2489 (build-system meson-build-system)
2490 (propagated-inputs
2491 ;; In Requires of dconf.pc.
2492 `(("glib" ,glib)))
2493 (inputs
2494 `(("gtk+" ,gtk+)
2495 ("dbus" ,dbus)))
2496 (native-inputs
2497 `(("bash-completion" ,bash-completion)
2498 ("libxslt" ,libxslt) ;for xsltproc
2499 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
2500 ("docbook-xml" ,docbook-xml-4.2)
2501 ("docbook-xsl" ,docbook-xsl)
2502 ("glib:bin" ,glib "bin")
2503 ("gtk-doc" ,gtk-doc)
2504 ("pkg-config" ,pkg-config)
2505 ("vala" ,vala)))
2506 (arguments
2507 `(#:tests? #f ; To contact dbus it needs to load /var/lib/dbus/machine-id
2508 ; or /etc/machine-id.
2509 #:glib-or-gtk? #t
2510 #:configure-flags '("-Denable-gtk-doc=true")))
2511 (home-page "https://developer.gnome.org/dconf")
2512 (synopsis "Low-level GNOME configuration system")
2513 (description "Dconf is a low-level configuration system. Its main purpose
2514 is to provide a backend to GSettings on platforms that don't already have
2515 configuration storage systems.")
2516 (license license:lgpl2.1+)))
2517
2518 (define-public json-glib
2519 (package
2520 (name "json-glib")
2521 (version "1.4.4")
2522 (source (origin
2523 (method url-fetch)
2524 (uri (string-append "mirror://gnome/sources/" name "/"
2525 (version-major+minor version) "/"
2526 name "-" version ".tar.xz"))
2527 (sha256
2528 (base32
2529 "0ixwyis47v5bkx6h8a1iqlw3638cxcv57ivxv4gw2gaig51my33j"))))
2530 (build-system meson-build-system)
2531 (native-inputs
2532 `(("gettext" ,gettext-minimal)
2533 ("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
2534 ("gobject-introspection" ,gobject-introspection)
2535 ("pkg-config" ,pkg-config)))
2536 (propagated-inputs
2537 `(("glib" ,glib))) ;according to json-glib-1.0.pc
2538 (home-page "https://wiki.gnome.org/Projects/JsonGlib")
2539 (synopsis "Compiler for the GObject type system")
2540 (description
2541 "JSON-GLib is a C library based on GLib providing serialization and
2542 deserialization support for the JavaScript Object Notation (JSON) format
2543 described by RFC 4627. It provides parser and generator GObject classes and
2544 various wrappers for the complex data types employed by JSON, such as arrays
2545 and objects.")
2546 (license license:lgpl2.1+)))
2547
2548 (define-public libxklavier
2549 (package
2550 (name "libxklavier")
2551 (version "5.4")
2552 (source (origin
2553 ;; Note: There's no tarball at ftp.gnome.org for this version.
2554 (method git-fetch)
2555 (uri (git-reference
2556 (url "https://anongit.freedesktop.org/git/libxklavier")
2557 (commit (string-append "libxklavier-" version))))
2558 (sha256
2559 (base32
2560 "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a"))
2561 (file-name (git-file-name name version))))
2562 (build-system gnu-build-system)
2563 (arguments
2564 '(#:phases
2565 (modify-phases %standard-phases
2566 (add-after 'unpack 'no-configure
2567 (lambda* _
2568 (setenv "NOCONFIGURE" "1")
2569 #t)))
2570 #:configure-flags
2571 (list (string-append "--with-xkb-base="
2572 (assoc-ref %build-inputs "xkeyboard-config")
2573 "/share/X11/xkb")
2574 "--disable-xmodmap-support")))
2575 (native-inputs
2576 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
2577 ("gobject-introspection" ,gobject-introspection)
2578 ("pkg-config" ,pkg-config)
2579 ("gtk-doc" ,gtk-doc)
2580 ("intltool" ,intltool)
2581 ("which" ,which)
2582 ("autoconf" ,autoconf)
2583 ("automake" ,automake)
2584 ("libtool" ,libtool)))
2585 (propagated-inputs
2586 ;; Required by libxklavier.pc.
2587 `(("glib" ,glib)
2588 ("libxml2" ,libxml2)))
2589 (inputs
2590 `(("iso-codes" ,iso-codes)
2591 ("libxi" ,libxi)
2592 ("libxkbfile" ,libxkbfile)
2593 ("xkbcomp" ,xkbcomp)
2594 ("xkeyboard-config" ,xkeyboard-config)))
2595 (home-page "https://www.freedesktop.org/wiki/Software/LibXklavier/")
2596 (synopsis "High-level API for X Keyboard Extension")
2597 (description
2598 "LibXklavier is a library providing high-level API for X Keyboard
2599 Extension known as XKB. This library is intended to support XFree86 and other
2600 commercial X servers. It is useful for creating XKB-related software (layout
2601 indicators etc).")
2602 (license license:lgpl2.0+)))
2603
2604 (define-public python2-rsvg
2605 ;; XXX: This is actually a subset of gnome-python-desktop.
2606 (package
2607 (name "python2-rsvg")
2608 (version "2.32.0")
2609 (source
2610 (origin
2611 (method url-fetch)
2612 (uri (string-append
2613 "mirror://gnome/sources/gnome-python-desktop/2.32/gnome-python-desktop-"
2614 version ".tar.bz2"))
2615 (sha256
2616 (base32
2617 "1s8f9rns9v7qlwjv9qh9lr8crp88dpzfm45hj47zc3ivpy0dbnq9"))))
2618 (build-system gnu-build-system)
2619 (native-inputs
2620 `(("pkg-config" ,pkg-config)))
2621 (inputs
2622 `(("python" ,python-2)
2623 ("python2-pygtk" ,python2-pygtk)
2624 ("librsvg" ,librsvg)))
2625 (home-page "https://www.gnome.org")
2626 (synopsis "Python bindings to librsvg")
2627 (description
2628 "This package provides Python bindings to librsvg, the SVG rendering
2629 library.")
2630
2631 ;; This is the license of the rsvg bindings. The license of each module
2632 ;; of gnome-python-desktop is given in 'COPYING'.
2633 (license license:lgpl2.1+)))
2634
2635 (define-public glib-networking
2636 (package
2637 (name "glib-networking")
2638 (version "2.60.3")
2639 (source (origin
2640 (method url-fetch)
2641 (uri (string-append "mirror://gnome/sources/glib-networking/"
2642 (version-major+minor version) "/"
2643 "glib-networking-" version ".tar.xz"))
2644 (sha256
2645 (base32
2646 "1mfw44qpmwvz6yzj8c6spx6z357wrmkk15byrkc5byagd82860fm"))))
2647 (build-system meson-build-system)
2648 (arguments
2649 `(#:configure-flags '("-Dlibproxy_support=false")))
2650 (native-inputs
2651 `(("pkg-config" ,pkg-config)
2652 ("intltool" ,intltool)))
2653 (inputs
2654 `(("glib" ,glib)
2655 ("gnutls" ,gnutls)
2656 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
2657 (home-page "https://www.gnome.org")
2658 (synopsis "Network-related GIO modules")
2659 (description
2660 "This package contains various network related extensions for the GIO
2661 library.")
2662 (license license:lgpl2.0+)))
2663
2664 (define-public rest
2665 (package
2666 (name "rest")
2667 (version "0.8.1")
2668 (source (origin
2669 (method url-fetch)
2670 (uri (string-append "mirror://gnome/sources/rest/"
2671 (version-major+minor version) "/"
2672 name "-" version ".tar.xz"))
2673 (sha256
2674 (base32
2675 "1j81bgqmd55s5lxyaxcplym9n6xywcs1cm9wmvafsg2xiv9sl4q5"))))
2676 (build-system gnu-build-system)
2677 (arguments
2678 '(#:tests? #f ; tests require internet connection
2679 #:configure-flags
2680 '("--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt")))
2681 (native-inputs
2682 `(("glib-mkenums" ,glib "bin")
2683 ("gobject-introspection" ,gobject-introspection)
2684 ("pkg-config" ,pkg-config)))
2685 (propagated-inputs
2686 ;; rest-0.7.pc refers to all these.
2687 `(("glib" ,glib)
2688 ("libsoup" ,libsoup)
2689 ("libxml2" ,libxml2)))
2690 (home-page "https://www.gtk.org/")
2691 (synopsis "RESTful web api query library")
2692 (description
2693 "This library was designed to make it easier to access web services that
2694 claim to be \"RESTful\". It includes convenience wrappers for libsoup and
2695 libxml to ease remote use of the RESTful API.")
2696 (license license:lgpl2.1+)))
2697
2698 (define-public libsoup
2699 (package
2700 (name "libsoup")
2701 (version "2.68.2")
2702 (source (origin
2703 (method url-fetch)
2704 (uri (string-append "mirror://gnome/sources/libsoup/"
2705 (version-major+minor version) "/"
2706 "libsoup-" version ".tar.xz"))
2707 (sha256
2708 (base32
2709 "0crr9qprmacr626fx83cx81ggk85zsgxr4mn577kpzj6m40k1bai"))))
2710 (build-system meson-build-system)
2711 (outputs '("out" "doc"))
2712 (arguments
2713 `(#:modules ((guix build utils)
2714 (guix build meson-build-system)
2715 (ice-9 popen))
2716
2717 #:configure-flags '("-Dgtk_doc=true")
2718 #:phases
2719 (modify-phases %standard-phases
2720 (add-after 'unpack 'adjust-tests
2721 (lambda _
2722 ;; This test fails due to missing /etc/nsswitch.conf
2723 ;; in the build environment.
2724 (substitute* "tests/socket-test.c"
2725 ((".*/sockets/unconnected.*") ""))
2726
2727 ;; These fail because "subdomain.localhost" does not resolve in
2728 ;; the build environment.
2729 (substitute* "tests/hsts-test.c"
2730 ((".*/hsts/basic.*") "")
2731 ((".*/hsts/subdomains.*") "")
2732 ((".*/hsts/superdomain.*") "")
2733 ((".*/hsts/utf8-address.*") ""))
2734 (substitute* "tests/hsts-db-test.c"
2735 ((".*/hsts-db/subdomains.*") ""))
2736
2737 ;; Generate a self-signed certificate that has "localhost" as its
2738 ;; 'dnsName'. Failing to do that, and starting with GnuTLS
2739 ;; 3.5.12, tests such as "ssl-tests" fail:
2740 ;;
2741 ;; ERROR:ssl-test.c:406:do_tls_interaction_test: Unexpected status 6 Unacceptable TLS certificate (expected 200 OK)
2742 ;;
2743 ;; 'certtool' is interactive so we have to pipe it the answers.
2744 ;; Reported at <https://bugzilla.gnome.org/show_bug.cgi?id=784696>.
2745 (let ((pipe (open-output-pipe "certtool --generate-self-signed \
2746 --load-privkey tests/test-key.pem --outfile tests/test-cert.pem")))
2747 (for-each (lambda (line)
2748 (display line pipe)
2749 (newline pipe))
2750 '("" ;Common name
2751 "" ;UID
2752 "Guix" ;Organizational unit name
2753 "GNU" ;Organization name
2754 "" ;Locality name
2755 "" ;State or province
2756 "" ;Country
2757 "" ;subject's domain component (DC)
2758 "" ;E-mail
2759 "" ;serial number
2760 "-1" ;expiration time
2761 "N" ;belong to authority?
2762 "N" ;web client certificate?
2763 "N" ;IPsec IKE?
2764 "Y" ;web server certificate?
2765 "localhost" ;dnsName of subject
2766 "" ;dnsName of subject (end)
2767 "" ;URI of subject
2768 "127.0.0.1" ;IP address of subject
2769 "" ;signing?
2770 "" ;encryption (RSA)?
2771 "" ;data encryption?
2772 "" ;sign OCSP requests?
2773 "" ;sign code?
2774 "" ;time stamping?
2775 "" ;email protection?
2776 "" ;URI of the CRL distribution point
2777 "y" ;above info OK?
2778 ))
2779 (close-pipe pipe))
2780 #t))
2781 (add-after 'install 'move-doc
2782 (lambda* (#:key outputs #:allow-other-keys)
2783 (let ((out (assoc-ref outputs "out"))
2784 (doc (assoc-ref outputs "doc")))
2785 (mkdir-p (string-append doc "/share"))
2786 (copy-recursively (string-append out "/share/gtk-doc")
2787 (string-append doc "/share/gtk-doc"))
2788 (delete-file-recursively (string-append out "/share/gtk-doc"))
2789 #t))))))
2790 (native-inputs
2791 `(("glib:bin" ,glib "bin") ; for glib-mkenums
2792 ("gobject-introspection" ,gobject-introspection)
2793 ("gtk-doc" ,gtk-doc)
2794 ("intltool" ,intltool)
2795 ("pkg-config" ,pkg-config)
2796 ("python" ,python-wrapper)
2797 ("vala" ,vala)
2798 ;; These are needed for the tests.
2799 ;; FIXME: Add PHP once available.
2800 ("curl" ,curl)
2801 ("gnutls" ,gnutls) ;for 'certtool'
2802 ("httpd" ,httpd)))
2803 (propagated-inputs
2804 ;; libsoup-2.4.pc refers to all these.
2805 `(("brotli" ,google-brotli)
2806 ("glib" ,glib)
2807 ("libpsl" ,libpsl)
2808 ("libxml2" ,libxml2)
2809 ("sqlite" ,sqlite)
2810 ("zlib" ,zlib)))
2811 (inputs
2812 `(("glib-networking" ,glib-networking)
2813 ("mit-krb5" ,mit-krb5)))
2814 (home-page "https://live.gnome.org/LibSoup/")
2815 (synopsis "GLib-based HTTP Library")
2816 (description
2817 "LibSoup is an HTTP client/server library for GNOME. It uses GObjects
2818 and the GLib main loop, to integrate well with GNOME applications.")
2819 (license license:lgpl2.0+)))
2820
2821 (define-public libsecret
2822 (package
2823 (name "libsecret")
2824 (version "0.19.1")
2825 (source (origin
2826 (method url-fetch)
2827 (uri (string-append
2828 "mirror://gnome/sources/libsecret/"
2829 (version-major+minor version) "/"
2830 "libsecret-" version ".tar.xz"))
2831 (sha256
2832 (base32
2833 "0fhflcsr70b1pps2pcvqcbdhip2ny5am9nbm634f4sj5g40y30w5"))))
2834 (build-system gnu-build-system)
2835 (outputs '("out" "doc"))
2836 (arguments
2837 `(#:tests? #f ; FIXME: Testing hangs.
2838 #:configure-flags
2839 (list (string-append "--with-html-dir="
2840 (assoc-ref %outputs "doc")
2841 "/share/gtk-doc/html"))))
2842 (native-inputs
2843 `(("gettext" ,gettext-minimal)
2844 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
2845 ("gobject-introspection" ,gobject-introspection)
2846 ("pkg-config" ,pkg-config)
2847 ("vala" ,vala)
2848 ("xsltproc" ,libxslt)))
2849 ;; These are needed for the tests.
2850 ;; FIXME: Add gjs once available.
2851 ;("dbus" ,dbus)
2852 ;("python2" ,python-2)
2853 ;("python2-dbus" ,python2-dbus)
2854 ;("python2-pygobject" ,python2-pygobject)
2855 ;("python2-pygobject-2" ,python2-pygobject-2)))
2856 (propagated-inputs
2857 `(("glib" ,glib))) ; required by libsecret-1.pc
2858 (inputs
2859 `(("docbook-xsl" ,docbook-xsl)
2860 ("libgcrypt" ,libgcrypt)
2861 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
2862 (home-page "https://wiki.gnome.org/Projects/Libsecret/")
2863 (synopsis "GObject bindings for \"Secret Service\" API")
2864 (description
2865 "Libsecret is a GObject based library for storing and retrieving passwords
2866 and other secrets. It communicates with the \"Secret Service\" using DBus.")
2867 (license license:lgpl2.1+)))
2868
2869 (define-public five-or-more
2870 (package
2871 (name "five-or-more")
2872 (version "3.30.0")
2873 (source
2874 (origin
2875 (method url-fetch)
2876 (uri (string-append "mirror://gnome/sources/" name "/"
2877 (version-major+minor version) "/"
2878 name "-" version ".tar.xz"))
2879 (sha256
2880 (base32
2881 "00d729p251kh96624i7qg2370r5mxwafs016i6hy01vsr71jzb9x"))))
2882 (build-system glib-or-gtk-build-system)
2883 (native-inputs
2884 `(("pkg-config" ,pkg-config)
2885 ("desktop-file-utils" ,desktop-file-utils)
2886 ("intltool" ,intltool)
2887 ("itstool" ,itstool)
2888 ("xmllint" ,libxml2)))
2889 (inputs
2890 `(("gtk+" ,gtk+)
2891 ("librsvg" ,librsvg)))
2892 (home-page "https://wiki.gnome.org/Apps/Five%20or%20more")
2893 (synopsis "Logic puzzle game")
2894 (description "Five or More is a game where you try to align
2895 five or more objects of the same color and shape causing them to disappear.
2896 On every turn more objects will appear, until the board is full.
2897 Try to last as long as possible.")
2898 (license license:gpl2+)))
2899
2900 (define-public gnome-mines
2901 (package
2902 (name "gnome-mines")
2903 (version "3.30.1.1")
2904 (source
2905 (origin
2906 (method url-fetch)
2907 (uri (string-append "mirror://gnome/sources/" name "/"
2908 (version-major+minor version) "/"
2909 name "-" version ".tar.xz"))
2910 (sha256
2911 (base32
2912 "08ddk400sg1g3q26gnm5mgv81vdqyix0yl7pd47p50vkc1w6f33z"))))
2913 (build-system meson-build-system)
2914 (arguments
2915 `(#:phases
2916 (modify-phases %standard-phases
2917 (delete 'bootstrap))))
2918 (native-inputs
2919 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
2920 ("pkg-config" ,pkg-config)
2921 ("desktop-file-utils" ,desktop-file-utils)
2922 ("intltool" ,intltool)
2923 ("itstool" ,itstool)
2924 ("vala" ,vala)
2925 ("yelp" ,yelp)
2926 ("appstream-glib" ,appstream-glib)))
2927 (inputs
2928 `(("gtk+" ,gtk+)
2929 ("libgnome-games-support" ,libgnome-games-support)
2930 ("librsvg" ,librsvg)))
2931 (home-page "https://wiki.gnome.org/Apps/Mines")
2932 (synopsis "Minesweeper game")
2933 (description
2934 "Mines (previously gnomine) is a puzzle game where you locate mines
2935 floating in an ocean using only your brain and a little bit of luck.")
2936 (license license:gpl2+)))
2937
2938 (define-public gnome-sudoku
2939 (package
2940 (name "gnome-sudoku")
2941 (version "3.30.0")
2942 (source
2943 (origin
2944 (method url-fetch)
2945 (uri (string-append "mirror://gnome/sources/" name "/"
2946 (version-major+minor version) "/"
2947 name "-" version ".tar.xz"))
2948 (sha256
2949 (base32
2950 "1xy986s51jnrcqwan2hy4bjdg6797yr9s7gxx2z2q4j4gkx3qa1f"))))
2951 (build-system glib-or-gtk-build-system)
2952 (native-inputs
2953 `(("pkg-config" ,pkg-config)
2954 ("desktop-file-utils" ,desktop-file-utils)
2955 ("intltool" ,intltool)
2956 ("itstool" ,itstool)
2957 ("xmllint" ,libxml2)))
2958 (inputs
2959 `(("gtk+" ,gtk+)
2960 ("json-glib" ,json-glib)
2961 ("libgee" ,libgee)
2962 ("librsvg" ,librsvg)
2963 ("qqwing" ,qqwing)))
2964 (home-page "https://wiki.gnome.org/Apps/Sudoku")
2965 (synopsis "Japanese logic game")
2966 (description
2967 "Sudoku is a Japanese logic game that exploded in popularity in 2005.
2968 GNOME Sudoku is meant to have an interface as simple and unobstrusive as
2969 possible while still providing features that make playing difficult Sudoku
2970 more fun.")
2971 (license license:gpl2+)))
2972
2973 (define-public gnome-terminal
2974 (package
2975 (name "gnome-terminal")
2976 (version "3.30.3")
2977 (source
2978 (origin
2979 (method url-fetch)
2980 (uri (string-append "mirror://gnome/sources/" name "/"
2981 (version-major+minor version) "/"
2982 name "-" version ".tar.xz"))
2983 (sha256
2984 (base32
2985 "0bar8qazk39acsif31h8i408nl82mzdcdg6p7ymak4l9pxyscxf8"))))
2986 (build-system glib-or-gtk-build-system)
2987 (arguments
2988 '(#:configure-flags
2989 (list "--disable-migration" "--disable-search-provider"
2990 "--without-nautilus-extension")
2991 #:phases
2992 (modify-phases %standard-phases
2993 (add-before 'configure 'patch-/bin/true
2994 (lambda _
2995 (substitute* "configure"
2996 (("/bin/true") (which "true"))))))))
2997 (native-inputs
2998 `(("pkg-config" ,pkg-config)
2999 ("desktop-file-utils" ,desktop-file-utils)
3000 ("intltool" ,intltool)
3001 ("itstool" ,itstool)
3002 ("xmllint" ,libxml2)))
3003 (propagated-inputs
3004 `(("dconf" ,dconf)))
3005 (inputs
3006 `(("gtk+" ,gtk+)
3007 ("vte" ,vte)
3008 ("gnutls" ,gnutls)
3009 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3010 ("util-linux" ,util-linux)
3011 ("vala" ,vala)))
3012 (home-page "https://wiki.gnome.org/Apps/Terminal")
3013 (synopsis "Terminal emulator")
3014 (description
3015 "GNOME Terminal is a terminal emulator application for accessing a
3016 UNIX shell environment which can be used to run programs available on
3017 your system.
3018
3019 It supports several profiles, multiple tabs and implements several
3020 keyboard shortcuts.")
3021 (license license:gpl3+)))
3022
3023 (define-public colord
3024 (package
3025 (name "colord")
3026 (version "1.4.4")
3027 (source
3028 (origin
3029 (method url-fetch)
3030 (uri (string-append "https://www.freedesktop.org/software/colord/releases/"
3031 "colord-" version ".tar.xz"))
3032 (sha256
3033 (base32 "19f0938fr7nvvm3jr263dlknaq7md40zrac2npfyz25zc00yh3ws"))))
3034 (build-system meson-build-system)
3035 (arguments
3036 '(;; FIXME: One test fails:
3037 ;; /colord/icc-store (in lib/colord/colord-self-test-private):
3038 ;; Incorrect content type for /tmp/colord-vkve/already-exists.icc, got
3039 ;; application/x-zerosize
3040 #:tests? #f
3041 #:glib-or-gtk? #t
3042 #:configure-flags (list "-Dlocalstatedir=/var"
3043 ;; No dep on systemd.
3044 "-Dsystemd=false"
3045 ;; Wants to install to global completion dir;
3046 ;; punt.
3047 "-Dbash_completion=false"
3048 "-Ddaemon_user=colord"
3049 "-Dsane=true"
3050 "-Dvapi=true"
3051 ;; Requires spotread.
3052 "-Dargyllcms_sensor=false"
3053 ;; TODO: Requires docbook2x.
3054 "-Dman=false")
3055 #:phases
3056 (modify-phases %standard-phases
3057 (add-before 'configure 'patch-build-system
3058 (lambda* (#:key outputs #:allow-other-keys)
3059 (substitute* "rules/meson.build"
3060 (("udev.get_pkgconfig_variable\\('udevdir'\\)")
3061 (string-append "'" (assoc-ref outputs "out") "/lib/udev'")))
3062 #t)))))
3063 (native-inputs
3064 `(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
3065 ("gobject-introspection" ,gobject-introspection)
3066 ("gtk-doc" ,gtk-doc)
3067 ("intltool" ,intltool)
3068 ("libtool" ,libtool)
3069 ("pkg-config" ,pkg-config)
3070 ("vala" ,vala)))
3071 (propagated-inputs
3072 ;; colord.pc refers to all these.
3073 `(("glib" ,glib)
3074 ("lcms" ,lcms)
3075 ("udev" ,eudev)))
3076 (inputs
3077 `(("dbus-glib" ,dbus-glib)
3078 ("gusb" ,gusb)
3079 ("libgudev" ,libgudev)
3080 ("libusb" ,libusb)
3081 ("polkit" ,polkit)
3082 ("python" ,python-wrapper)
3083 ("sqlite" ,sqlite)
3084 ("sane-backends" ,sane-backends)))
3085 (home-page "https://www.freedesktop.org/software/colord/")
3086 (synopsis "Color management service")
3087 (description "Colord is a system service that makes it easy to manage,
3088 install and generate color profiles to accurately color manage input and
3089 output devices.")
3090 (license license:gpl2+)))
3091
3092 (define-public geoclue
3093 (package
3094 (name "geoclue")
3095 (version "2.4.8")
3096 (source
3097 (origin
3098 (method url-fetch)
3099 (uri (string-append "https://www.freedesktop.org/software/" name
3100 "/releases/" (version-major+minor version) "/"
3101 name "-" version ".tar.xz"))
3102 (sha256
3103 (base32
3104 "08yg1r7m0n9hwyvcy769qkmkf8lslqwv69cjfffwnc3zm5km25qj"))
3105 (patches (search-patches "geoclue-config.patch"))))
3106 (build-system glib-or-gtk-build-system)
3107 (arguments
3108 '(;; The tests want to run the system bus.
3109 #:tests? #f
3110 #:configure-flags (list ;; Disable bits requiring ModemManager.
3111 "--disable-3g-source"
3112 "--disable-cdma-source"
3113 "--disable-modem-gps-source"
3114 "--with-dbus-service-user=geoclue")
3115 #:phases
3116 (modify-phases %standard-phases
3117 (add-before 'configure 'patch-/bin/true
3118 (lambda _
3119 (substitute* "configure"
3120 (("/bin/true") (which "true")))
3121 #t)))))
3122 (native-inputs
3123 `(("pkg-config" ,pkg-config)
3124 ("gobject-introspection" ,gobject-introspection)
3125 ("intltool" ,intltool)))
3126 (inputs
3127 `(("avahi" ,avahi)
3128 ("glib" ,glib)
3129 ("json-glib" ,json-glib)
3130 ("libsoup" ,libsoup)))
3131 (home-page "https://www.freedesktop.org/wiki/Software/GeoClue/")
3132 (synopsis "Geolocation service")
3133 (description "Geoclue is a D-Bus service that provides location
3134 information. The primary goal of the Geoclue project is to make creating
3135 location-aware applications as simple as possible, while the secondary goal is
3136 to ensure that no application can access location information without explicit
3137 permission from user.")
3138 (license license:gpl2+)))
3139
3140 (define-public geocode-glib
3141 (package
3142 (name "geocode-glib")
3143 (version "3.26.1")
3144 (source (origin
3145 (method url-fetch)
3146 (uri (string-append "mirror://gnome/sources/geocode-glib/"
3147 (version-major+minor version) "/"
3148 "geocode-glib-" version ".tar.xz"))
3149 (sha256
3150 (base32
3151 "076ydfpyc4n5c9dbqmf26i4pilfi5jpw6cjcgrbgrjbndavnmajv"))))
3152 (build-system meson-build-system)
3153 (arguments
3154 `(#:phases
3155 (modify-phases %standard-phases
3156 ;; The tests require a bunch of locales.
3157 (add-before 'check 'set-locales
3158 (lambda* (#:key inputs #:allow-other-keys)
3159 (setenv "GUIX_LOCPATH"
3160 (string-append (assoc-ref inputs "glibc-locales")
3161 "/lib/locale"))
3162 #t)))))
3163 (native-inputs
3164 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3165 ("glibc-locales" ,glibc-locales) ; for tests
3166 ("gettext" ,gettext-minimal)
3167 ("gobject-introspection" ,gobject-introspection)
3168 ("gtk-doc" ,gtk-doc)
3169 ("pkg-config" ,pkg-config)
3170 ("json-glib" ,json-glib)))
3171 (propagated-inputs
3172 ;; geocode-glib-1.0.pc refers to GIO.
3173 `(("glib" ,glib)))
3174 (inputs
3175 `(("libsoup" ,libsoup)))
3176 (home-page "https://github.com/GNOME/geocode-glib/")
3177 (synopsis "Geocoding and reverse-geocoding library")
3178 (description
3179 "geocode-glib is a convenience library for geocoding (finding longitude,
3180 and latitude from an address) and reverse geocoding (finding an address from
3181 coordinates) using the Nominatim service. geocode-glib caches requests for
3182 faster results and to avoid unnecessary server load.")
3183 (license license:lgpl2.0+)))
3184
3185 (define-public upower
3186 (package
3187 (name "upower")
3188 (version "0.99.10")
3189 (source (origin
3190 (method url-fetch)
3191 (uri (string-append "https://gitlab.freedesktop.org/upower/upower/"
3192 "uploads/c438511024b9bc5a904f8775cfc8e4c4/"
3193 "upower-" version ".tar.xz"))
3194 (sha256
3195 (base32
3196 "17d2bclv5fgma2y3g8bsn9pdvspn1zrzismzdnzfivc0f2wm28k4"))
3197 (patches (search-patches "upower-builddir.patch"))))
3198 (build-system glib-or-gtk-build-system)
3199 (arguments
3200 '( ;; The tests want to contact the system bus, which can't be done in the
3201 ;; build environment. The integration test can run, but the last of
3202 ;; the up-self-tests doesn't. Disable tests for now.
3203 #:tests? #f
3204 #:configure-flags (list "--localstatedir=/var"
3205 (string-append "--with-udevrulesdir="
3206 (assoc-ref %outputs "out")
3207 "/lib/udev/rules.d"))))
3208 (native-inputs
3209 `(("gobject-introspection" ,gobject-introspection)
3210 ("pkg-config" ,pkg-config)
3211 ("intltool" ,intltool)
3212 ("python" ,python)
3213
3214 ;; For man pages.
3215 ("libxslt" ,libxslt) ;for 'xsltproc'
3216 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
3217 ("docbook-xsl" ,docbook-xsl)))
3218 (inputs
3219 `(("dbus-glib" ,dbus-glib)
3220 ("libgudev" ,libgudev)
3221 ("libusb" ,libusb)))
3222 (propagated-inputs
3223 ;; In Requires of upower-glib.pc.
3224 `(("glib" ,glib)))
3225 (home-page "https://upower.freedesktop.org/")
3226 (synopsis "System daemon for managing power devices")
3227 (description
3228 "UPower is an abstraction for enumerating power devices,
3229 listening to device events and querying history and statistics. Any
3230 application or service on the system can access the org.freedesktop.UPower
3231 service via the system message bus.")
3232 (license license:gpl2+)))
3233
3234 (define-public libgweather
3235 (package
3236 (name "libgweather")
3237 (version "3.28.3")
3238 (source (origin
3239 (method url-fetch)
3240 (uri (string-append "mirror://gnome/sources/" name "/"
3241 (version-major+minor version) "/"
3242 name "-" version ".tar.xz"))
3243 (sha256
3244 (base32
3245 "1xz60h59zgyk61y2wwzm0xlqav72i668g7v0x7rh9idz240hxls5"))))
3246 (build-system meson-build-system)
3247 (arguments
3248 `(#:tests? #f ; one of two tests requires network access
3249 #:configure-flags
3250 `(,(string-append "-Dzoneinfo_dir="
3251 (assoc-ref %build-inputs "tzdata")
3252 "/share/zoneinfo"))))
3253 (native-inputs
3254 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3255 ("gobject-introspection" ,gobject-introspection)
3256 ("pkg-config" ,pkg-config)
3257 ("vala" ,vala)
3258 ("intltool" ,intltool)))
3259 (propagated-inputs
3260 ;; gweather-3.0.pc refers to GTK+, GDK-Pixbuf, GLib/GObject, libxml, and
3261 ;; libsoup.
3262 `(("gtk+" ,gtk+)
3263 ("gdk-pixbuf" ,gdk-pixbuf)
3264 ("libxml2" ,libxml2)
3265 ("libsoup" ,libsoup)
3266 ("geocode-glib" ,geocode-glib)))
3267 (inputs
3268 `(("tzdata" ,tzdata)))
3269 (home-page "https://wiki.gnome.org/action/show/Projects/LibGWeather")
3270 (synopsis "Location, time zone, and weather library for GNOME")
3271 (description
3272 "libgweather is a library to access weather information from online
3273 services for numerous locations.")
3274 (license license:gpl2+)))
3275
3276 (define-public gnome-settings-daemon
3277 (package
3278 (name "gnome-settings-daemon")
3279 (version "3.30.2")
3280 (source
3281 (origin
3282 (method url-fetch)
3283 (uri (string-append "mirror://gnome/sources/" name "/"
3284 (version-major+minor version) "/"
3285 name "-" version ".tar.xz"))
3286 (sha256
3287 (base32
3288 "0c663csa3gnsr6wm0xfll6aani45snkdj7zjwjfzcwfh8w4a3z12"))))
3289 (build-system meson-build-system)
3290 (arguments
3291 `(#:glib-or-gtk? #t
3292 #:configure-flags
3293 (list (string-append "-Dudev_dir="
3294 (assoc-ref %outputs "out")
3295 "/lib/udev/rules.d/")
3296 ;; Otherwise, the RUNPATH will lack the final path component.
3297 (string-append "-Dc_link_args=-Wl,-rpath="
3298 (assoc-ref %outputs "out")
3299 "/lib/gnome-settings-daemon-3.0"))
3300 ;; Color management test can't reach the colord system service.
3301 #:tests? #f))
3302 (native-inputs
3303 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3304 ("pkg-config" ,pkg-config)
3305 ("intltool" ,intltool)
3306 ("xsltproc" ,libxslt)
3307 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
3308 ("docbook-xml" ,docbook-xml-4.2)
3309 ("docbook-xsl" ,docbook-xsl)))
3310 (inputs
3311 `(("alsa-lib" ,alsa-lib)
3312 ("colord" ,colord)
3313 ("libgudev" ,libgudev)
3314 ("upower" ,upower)
3315 ("polkit" ,polkit)
3316 ("pulseaudio" ,pulseaudio)
3317 ("libcanberra" ,libcanberra)
3318 ("libx11" ,libx11)
3319 ("libxtst" ,libxtst)
3320 ("lcms" ,lcms)
3321 ("libnotify" ,libnotify)
3322 ("geoclue" ,geoclue)
3323 ("geocode-glib" ,geocode-glib)
3324 ("libgweather" ,libgweather)
3325 ("gnome-desktop" ,gnome-desktop)
3326 ("nss" ,nss)
3327 ("cups" ,cups)
3328 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3329 ("libwacom" ,libwacom)
3330 ("librsvg" ,librsvg)
3331 ("xf86-input-wacom" ,xf86-input-wacom)
3332 ("wayland" ,wayland)
3333 ("network-manager" ,network-manager)))
3334 (home-page "https://www.gnome.org")
3335 (synopsis "GNOME settings daemon")
3336 (description
3337 "This package contains the daemon responsible for setting the various
3338 parameters of a GNOME session and the applications that run under it. It
3339 handles settings such keyboard layout, shortcuts, and accessibility, clipboard
3340 settings, themes, mouse settings, and startup of other daemons.")
3341 (license license:gpl2+)))
3342
3343 (define-public totem-pl-parser
3344 (package
3345 (name "totem-pl-parser")
3346 (version "3.26.3")
3347 (source (origin
3348 (method url-fetch)
3349 (uri (string-append "mirror://gnome/sources/totem-pl-parser/"
3350 (version-major+minor version) "/"
3351 "totem-pl-parser-" version ".tar.xz"))
3352 (sha256
3353 (base32
3354 "13a45py2j1r9967zgww8kd24bn2fhycd4m3kzr90sxx9l2w03z8f"))))
3355 (build-system meson-build-system)
3356 (arguments
3357 ;; FIXME: Tests require gvfs.
3358 `(#:tests? #f))
3359 (native-inputs
3360 `(("intltool" ,intltool)
3361 ("glib" ,glib "bin")
3362 ("gobject-introspection" ,gobject-introspection)
3363 ("pkg-config" ,pkg-config)))
3364 (propagated-inputs
3365 `(("glib" ,glib)
3366 ("gmime" ,gmime)
3367 ("libarchive" ,libarchive)
3368 ("libgcrypt" ,libgcrypt)
3369 ("libxml2" ,libxml2)))
3370 (inputs
3371 `(("libsoup" ,libsoup)))
3372 (home-page "https://projects.gnome.org/totem")
3373 (synopsis "Library to parse and save media playlists for GNOME")
3374 (description "Totem-pl-parser is a GObjects-based library to parse and save
3375 playlists in a variety of formats.")
3376 (license license:lgpl2.0+)))
3377
3378 (define-public aisleriot
3379 (package
3380 (name "aisleriot")
3381 (version "3.22.9")
3382 (source (origin
3383 (method url-fetch)
3384 (uri (string-append "mirror://gnome/sources/aisleriot/"
3385 (version-major+minor version) "/"
3386 "aisleriot-" version ".tar.xz"))
3387 (sha256
3388 (base32
3389 "0yzdh9cw5cjjgvfh75bihl968czlgfmpmn1z0fdk88sgvpjgzwji"))))
3390 (build-system glib-or-gtk-build-system)
3391 (arguments
3392 '(#:configure-flags
3393 '("--with-platform=gtk-only"
3394 "--with-card-theme-formats=svg")))
3395 (native-inputs
3396 `(("desktop-file-utils" ,desktop-file-utils)
3397 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
3398 ("intltool" ,intltool)
3399 ("itstool" ,itstool)
3400 ("pkg-config" ,pkg-config)
3401 ("xmllint" ,libxml2)))
3402 (inputs
3403 `(("gtk+" ,gtk+)
3404 ("guile" ,guile-2.2)
3405 ("libcanberra" ,libcanberra)
3406 ("librsvg" ,librsvg)))
3407 (home-page "https://wiki.gnome.org/Apps/Aisleriot")
3408 (synopsis "Solitaire card games")
3409 (description
3410 "Aisleriot (also known as Solitaire or sol) is a collection of card games
3411 which are easy to play with the aid of a mouse.")
3412 (license license:gpl3+)))
3413
3414 (define-public amtk
3415 (package
3416 (name "amtk")
3417 (version "5.0.1")
3418 (source (origin
3419 (method url-fetch)
3420 (uri (string-append "mirror://gnome/sources/amtk/"
3421 (version-major+minor version) "/"
3422 "amtk-" version ".tar.xz"))
3423 (sha256
3424 (base32
3425 "09yy95w1s83c43mh9vha1jbb780yighf5pd2j0ygjmc68sjg871d"))))
3426 (build-system gnu-build-system)
3427 (arguments
3428 '(#:configure-flags '("--enable-gtk-doc")))
3429 (native-inputs
3430 `(("gobject-introspection" ,gobject-introspection)
3431 ("glib:bin" ,glib "bin") ; for glib-mkenums
3432 ("gtk-doc" ,gtk-doc)
3433 ("pkg-config" ,pkg-config)))
3434 (inputs
3435 `(("glib" ,glib)
3436 ("gtk+" ,gtk+)))
3437 (home-page "https://wiki.gnome.org/Projects/Amtk")
3438 (synopsis "Actions, Menus and Toolbars Kit for GTK+ applications")
3439 (description
3440 "Amtk is the acronym for @acronym{Amtk, Actions Menus and Toolbars Kit}.
3441 It is a basic GtkUIManager replacement based on GAction. It is suitable for
3442 both a traditional UI or a modern UI with a GtkHeaderBar.")
3443 (license license:lgpl2.1+)))
3444
3445 (define-public devhelp
3446 (package
3447 (name "devhelp")
3448 (version "3.30.1")
3449 (source (origin
3450 (method url-fetch)
3451 (uri (string-append "mirror://gnome/sources/" name "/"
3452 (version-major+minor version) "/"
3453 name "-" version ".tar.xz"))
3454 (sha256
3455 (base32
3456 "036sddvhs0blqpc2ixmjdl9vxynvkn5jpgn0jxr1fxcm4rh3q07a"))))
3457 (build-system meson-build-system)
3458 (native-inputs
3459 `(("intltool" ,intltool)
3460 ("itstool" ,itstool)
3461 ("gobject-introspection" ,gobject-introspection)
3462 ("glib:bin" ,glib "bin") ; for glib-mkmenus
3463 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
3464 ("pkg-config" ,pkg-config)))
3465 (inputs
3466 `(("amtk" ,amtk)
3467 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3468 ("webkitgtk" ,webkitgtk)))
3469 (home-page "https://wiki.gnome.org/Apps/Devhelp")
3470 (synopsis "API documentation browser for GNOME")
3471 (description
3472 "Devhelp is an API documentation browser for GTK+ and GNOME. It works
3473 natively with GTK-Doc (the API reference system developed for GTK+ and used
3474 throughout GNOME for API documentation).")
3475 (license license:gpl2+)))
3476
3477 (define-public cogl
3478 (package
3479 (name "cogl")
3480 (version "1.22.4")
3481 (source
3482 (origin
3483 (method url-fetch)
3484 (uri (string-append "mirror://gnome/sources/cogl/"
3485 (version-major+minor version) "/"
3486 "cogl-" version ".tar.xz"))
3487 (sha256
3488 (base32 "1q0drs82a8f6glg1v29bb6g2nf15fw0rvdx3d0rgcgfarfaby5sj"))))
3489 ;; NOTE: mutter exports a bundled fork of cogl, so when making changes to
3490 ;; cogl, corresponding changes may be appropriate in mutter as well.
3491 (build-system gnu-build-system)
3492 (native-inputs
3493 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3494 ("gobject-introspection" ,gobject-introspection)
3495 ;;("xorg-server" ,xorg-server) ; for the test suite
3496 ("pkg-config" ,pkg-config)))
3497 (propagated-inputs
3498 `(("glib" ,glib)
3499 ("gdk-pixbuf" ,gdk-pixbuf)
3500 ("libx11" ,libx11)
3501 ("libxext" ,libxext)
3502 ("libxfixes" ,libxfixes)
3503 ("libxdamage" ,libxdamage)
3504 ("libxcomposite" ,libxcomposite)
3505 ("libxrandr" ,libxrandr)))
3506 (inputs
3507 `(("mesa" ,mesa)
3508 ("cairo" ,cairo)
3509 ("pango" ,pango)
3510 ("gstreamer" ,gstreamer)
3511 ("gst-plugins-base" ,gst-plugins-base)
3512 ("wayland" ,wayland)))
3513 (arguments
3514 `(#:configure-flags (list "--enable-cogl-gst"
3515 "--enable-wayland-egl-platform"
3516 "--enable-wayland-egl-server"
3517
3518 ;; Arrange to pass an absolute file name to
3519 ;; dlopen for libGL.so.
3520 (string-append "--with-gl-libname="
3521 (assoc-ref %build-inputs "mesa")
3522 "/lib/libGL.so"))
3523 ;; XXX FIXME: All tests fail, with many warnings printed like this:
3524 ;; _FontTransOpen: Unable to Parse address
3525 ;; ${prefix}/share/fonts/X11/misc/
3526 #:tests? #f
3527 #; #:phases
3528 #;
3529 (modify-phases %standard-phases
3530 (add-before 'check 'start-xorg-server
3531 (lambda* (#:key inputs #:allow-other-keys)
3532 ;; The test suite requires a running X server.
3533 (system (format #f "~a/bin/Xvfb :1 &"
3534 (assoc-ref inputs "xorg-server")))
3535 (setenv "DISPLAY" ":1")
3536 #t)))))
3537 (home-page "http://www.cogl3d.org")
3538 (synopsis "Object oriented GL/GLES Abstraction/Utility Layer")
3539 (description
3540 "Cogl is a small library for using 3D graphics hardware to draw pretty
3541 pictures. The API departs from the flat state machine style of OpenGL and is
3542 designed to make it easy to write orthogonal components that can render
3543 without stepping on each others toes.")
3544 (license (list license:expat ; most of the code
3545 license:bsd-3 ; cogl/cogl-point-in-poly.c
3546 license:sgifreeb2.0 ; cogl-path/tesselator/
3547 license:asl2.0)))) ; examples/android/
3548
3549 (define-public clutter
3550 (package
3551 (name "clutter")
3552 (version "1.26.2")
3553 (source
3554 (origin
3555 (method url-fetch)
3556 (uri (string-append "mirror://gnome/sources/" name "/"
3557 (version-major+minor version) "/"
3558 name "-" version ".tar.xz"))
3559 (sha256
3560 (base32
3561 "0mif1qnrpkgxi43h7pimim6w6zwywa16ixcliw0yjm9hk0a368z7"))))
3562 ;; NOTE: mutter exports a bundled fork of clutter, so when making changes
3563 ;; to clutter, corresponding changes may be appropriate in mutter as well.
3564 (build-system gnu-build-system)
3565 (outputs '("out"
3566 "doc")) ;9 MiB of gtk-doc HTML pages
3567 (native-inputs
3568 `(("glib:bin" ,glib "bin") ; for glib-genmarshal
3569 ("gobject-introspection" ,gobject-introspection)
3570 ("pkg-config" ,pkg-config)
3571 ("xsltproc" ,libxslt)))
3572 (propagated-inputs
3573 `(("cogl" ,cogl)
3574 ("cairo" ,cairo)
3575 ("atk" ,atk)
3576 ("gtk+" ,gtk+)
3577 ("json-glib" ,json-glib)
3578 ("glib" ,glib)
3579 ("libxcomposite" ,libxcomposite)
3580 ("libxdamage" ,libxdamage)
3581 ("libxext" ,libxext)
3582 ("xinput" ,xinput)))
3583 (inputs
3584 `(("libxkbcommon" ,libxkbcommon)
3585 ("udev" ,eudev)))
3586 (arguments
3587 `(#:configure-flags (list "--enable-x11-backend=yes"
3588
3589 ;; This produces share/doc/{clutter,cally}.
3590 (string-append "--with-html-dir="
3591 (assoc-ref %outputs "doc")
3592 "/share/doc"))
3593 ;; XXX FIXME: Get test suite working. It would probably fail in the
3594 ;; same way the cogl tests fail, since clutter is based on cogl.
3595 #:tests? #f))
3596 (home-page "http://www.clutter-project.org")
3597 (synopsis "OpenGL-based interactive canvas library")
3598 (description
3599 "Clutter is an OpenGL-based interactive canvas library, designed for
3600 creating fast, mainly 2D single window applications such as media box UIs,
3601 presentations, kiosk style applications and so on.")
3602 (license license:lgpl2.0+)))
3603
3604 (define-public clutter-gtk
3605 (package
3606 (name "clutter-gtk")
3607 (version "1.8.4")
3608 (source
3609 (origin
3610 (method url-fetch)
3611 (uri (string-append "mirror://gnome/sources/" name "/"
3612 (version-major+minor version) "/"
3613 name "-" version ".tar.xz"))
3614 (sha256
3615 (base32
3616 "01ibniy4ich0fgpam53q252idm7f4fn5xg5qvizcfww90gn9652j"))))
3617 (build-system gnu-build-system)
3618 (native-inputs
3619 `(("pkg-config" ,pkg-config)
3620 ("gobject-introspection" ,gobject-introspection)))
3621 (propagated-inputs
3622 ;; clutter-gtk.pc refers to all these.
3623 `(("clutter" ,clutter)
3624 ("gtk+" ,gtk+)))
3625 (home-page "http://www.clutter-project.org")
3626 (synopsis "OpenGL-based interactive canvas library GTK+ widget")
3627 (description
3628 "Clutter is an OpenGL-based interactive canvas library, designed for
3629 creating fast, mainly 2D single window applications such as media box UIs,
3630 presentations, kiosk style applications and so on.")
3631 (license license:lgpl2.0+)))
3632
3633 (define-public clutter-gst
3634 (package
3635 (name "clutter-gst")
3636 (version "3.0.27")
3637 (source
3638 (origin
3639 (method url-fetch)
3640 (uri (string-append "mirror://gnome/sources/clutter-gst/"
3641 (version-major+minor version) "/"
3642 "clutter-gst-" version ".tar.xz"))
3643 (sha256
3644 (base32 "17czmpl92dzi4h3rn5rishk015yi3jwiw29zv8qan94xcmnbssgy"))))
3645 (build-system gnu-build-system)
3646 (native-inputs
3647 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3648 ("pkg-config" ,pkg-config)
3649 ("gobject-introspection" ,gobject-introspection)))
3650 (inputs
3651 `(("clutter" ,clutter)
3652 ("gstreamer" ,gstreamer)
3653 ("gst-plugins-base" ,gst-plugins-base)))
3654 (home-page "http://www.clutter-project.org")
3655 (synopsis "Integration library for using GStreamer with Clutter")
3656 (description
3657 "Clutter-Gst is an integration library for using GStreamer with Clutter.
3658 It provides a GStreamer sink to upload frames to GL and an actor that
3659 implements the ClutterGstPlayer interface using playbin. Clutter is an
3660 OpenGL-based interactive canvas library.")
3661 (license license:lgpl2.0+)))
3662
3663 (define-public libchamplain
3664 (package
3665 (name "libchamplain")
3666 (version "0.12.16")
3667 (source (origin
3668 (method url-fetch)
3669 (uri (string-append
3670 "mirror://gnome/sources/libchamplain/0.12/libchamplain-"
3671 version ".tar.xz"))
3672 (sha256
3673 (base32
3674 "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja"))))
3675 (build-system gnu-build-system)
3676 (arguments '(#:configure-flags '("--enable-vala")))
3677 (native-inputs
3678 `(("gobject-introspection" ,gobject-introspection)
3679 ("pkg-config" ,pkg-config)
3680 ("vala" ,vala)))
3681 (propagated-inputs
3682 `(("libsoup" ,libsoup)
3683 ("sqlite" ,sqlite)
3684 ("clutter" ,clutter)
3685 ("clutter-gtk" ,clutter-gtk)
3686 ("glib:bin" ,glib "bin") ;glib-mkenums, etc.
3687 ("cairo" ,cairo)
3688 ("gtk+3" ,gtk+)
3689 ("glib" ,glib)))
3690 (home-page "https://projects.gnome.org/libchamplain/")
3691 (synopsis "C library providing a ClutterActor to display maps")
3692 (description
3693 "libchamplain is a C library providing a ClutterActor to display maps.
3694 It also provides a Gtk+ widget to display maps in Gtk+ applications. Python
3695 and Perl bindings are also available. It supports numerous free map sources
3696 such as OpenStreetMap, OpenCycleMap, OpenAerialMap, and Maps for free.")
3697 (license license:lgpl2.1+)))
3698
3699 (define-public gom
3700 (package
3701 (name "gom")
3702 (version "0.3.2")
3703 (source
3704 (origin
3705 (method url-fetch)
3706 (uri (string-append "mirror://gnome/sources/gom/"
3707 (version-major+minor version) "/"
3708 "gom-" version ".tar.xz"))
3709 (sha256
3710 (base32
3711 "1zaqqwwkyiswib3v1v8wafpbifpbpak0nn2kp13pizzn9bwz1s5w"))))
3712 (build-system gnu-build-system)
3713 (native-inputs
3714 `(("intltool" ,intltool)
3715 ("pkg-config" ,pkg-config)
3716 ("gobject-introspection" ,gobject-introspection)))
3717 (inputs
3718 `(("glib" ,glib)
3719 ("gdk-pixbuf" ,gdk-pixbuf)
3720 ("sqlite" ,sqlite)))
3721 ;; XXX TODO: Figure out how to run the test suite.
3722 (arguments `(#:tests? #f))
3723 (home-page "https://wiki.gnome.org/Projects/Gom")
3724 (synopsis "Object mapper from GObjects to SQLite")
3725 (description
3726 "Gom provides an object mapper from GObjects to SQLite. It helps you
3727 write applications that need to store structured data as well as make complex
3728 queries upon that data.")
3729 (license license:lgpl2.1+)))
3730
3731 (define-public libgnome-games-support
3732 (package
3733 (name "libgnome-games-support")
3734 (version "1.4.4")
3735 (source (origin
3736 (method url-fetch)
3737 (uri (string-append "mirror://gnome/sources/libgnome-games-support/"
3738 (version-major+minor version) "/"
3739 "libgnome-games-support-" version ".tar.xz"))
3740 (sha256
3741 (base32
3742 "1zkbmnrn161p74qg6jhsn9f66yjjzxfm13pl1klv9av8k1bax9pq"))))
3743 (build-system gnu-build-system)
3744 (arguments
3745 '(#:phases
3746 (modify-phases %standard-phases
3747 (add-before 'check 'pre-check
3748 (lambda _
3749 ;; Tests require a writable HOME.
3750 (setenv "HOME" (getcwd))
3751 #t)))))
3752 (native-inputs
3753 `(("intltool" ,intltool)
3754 ("pkg-config" ,pkg-config)
3755 ("vala" ,vala)))
3756 (propagated-inputs
3757 ;; Required by libgnome-games-support-1.0.pc
3758 `(("gtk+" ,gtk+)
3759 ("libgee" ,libgee)))
3760 (home-page "https://www.gnome.org/")
3761 (synopsis "Useful functionality shared among GNOME games")
3762 (description
3763 "libgnome-games-support is a small library intended for internal use by
3764 GNOME Games, but it may be used by others.")
3765 (license license:lgpl3+)))
3766
3767 (define-public gnome-klotski
3768 (package
3769 (name "gnome-klotski")
3770 (version "3.22.3")
3771 (source (origin
3772 (method url-fetch)
3773 (uri (string-append "mirror://gnome/sources/" name "/"
3774 (version-major+minor version) "/"
3775 name "-" version ".tar.xz"))
3776 (sha256
3777 (base32
3778 "0prc0s28pdflgzyvk1g0yfx982q2grivmz3858nwpqmbkha81r7f"))))
3779 (build-system glib-or-gtk-build-system)
3780 (native-inputs
3781 `(("desktop-file-utils" ,desktop-file-utils)
3782 ("intltool" ,intltool)
3783 ("itstool" ,itstool)
3784 ("pkg-config" ,pkg-config)
3785 ("xmllint" ,libxml2)))
3786 (inputs
3787 `(("gtk+" ,gtk+)
3788 ("libgnome-games-support" ,libgnome-games-support)
3789 ("librsvg" ,librsvg)))
3790 (home-page "https://wiki.gnome.org/Apps/Klotski")
3791 (synopsis "Sliding block puzzles")
3792 (description
3793 "GNOME Klotski is a set of block sliding puzzles. The objective is to move
3794 the patterned block to the area bordered by green markers. To do so, you will
3795 need to slide other blocks out of the way. Complete each puzzle in as few moves
3796 as possible!")
3797 (license license:gpl2+)))
3798
3799 (define-public grilo
3800 (package
3801 (name "grilo")
3802 (version "0.3.3")
3803 (source
3804 (origin
3805 (method url-fetch)
3806 (uri (string-append "mirror://gnome/sources/" name "/"
3807 (version-major+minor version) "/"
3808 name "-" version ".tar.xz"))
3809 (sha256
3810 (base32
3811 "1qx072m0gl6m3d5g5cbbf13p4h217icmlxjnrn829x5xqwi451sw"))))
3812 (build-system gnu-build-system)
3813 (native-inputs
3814 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
3815 ("intltool" ,intltool)
3816 ("pkg-config" ,pkg-config)
3817 ("gobject-introspection" ,gobject-introspection)))
3818 (inputs
3819 `(("cyrus-sasl" ,cyrus-sasl)
3820 ("glib" ,glib)
3821 ("gtk+" ,gtk+)
3822 ("libxml2" ,libxml2)
3823 ("liboauth" ,liboauth)
3824 ("libsoup" ,libsoup)
3825 ("totem-pl-parser" ,totem-pl-parser)))
3826 (arguments
3827 `(#:phases
3828 (modify-phases %standard-phases
3829 (add-after 'unpack 'fix-introspection-install-dir
3830 (lambda* (#:key outputs #:allow-other-keys)
3831 (let ((out (assoc-ref outputs "out")))
3832 (substitute* '("src/Makefile.in"
3833 "libs/pls/Makefile.in"
3834 "libs/net/Makefile.in")
3835 (("@INTROSPECTION_GIRDIR@")
3836 (string-append out "/share/gir-1.0/"))
3837 (("@INTROSPECTION_TYPELIBDIR@")
3838 (string-append out "/lib/girepository-1.0/")))
3839 #t))))))
3840 (native-search-paths
3841 (list (search-path-specification
3842 (variable "GRL_PLUGIN_PATH")
3843 (files (list (string-append "lib/grilo-"
3844 (version-major+minor version)))))))
3845 (home-page "https://live.gnome.org/Grilo")
3846 (synopsis "Framework for discovering and browsing media")
3847 (description
3848 "Grilo is a framework focused on making media discovery and browsing easy
3849 for application developers.")
3850 (license license:lgpl2.1+)))
3851
3852 (define-public grilo-plugins
3853 (package
3854 (name "grilo-plugins")
3855 (version "0.3.3")
3856 (source
3857 (origin
3858 (method url-fetch)
3859 (uri (string-append "mirror://gnome/sources/" name "/"
3860 (version-major+minor version) "/"
3861 name "-" version ".tar.xz"))
3862 (sha256
3863 (base32
3864 "172vr1y98d2mzlmg5akjn4ibrcj3gh22cwnb3cv9rvvzhj3yhrpy"))))
3865 (build-system gnu-build-system)
3866 (native-inputs
3867 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
3868 ("intltool" ,intltool)
3869 ("itstool" ,itstool)
3870 ("pkg-config" ,pkg-config)))
3871 (inputs
3872 `(("grilo" ,grilo)
3873 ("glib" ,glib)
3874 ("libxml2" ,libxml2)
3875 ("sqlite" ,sqlite)
3876 ("gom" ,gom)
3877 ;; XXX TODO: Add oauth
3878 ;; XXX TODO: Add goa
3879 ;; XXX TODO: Add gdata (e.g. needed for youtube plugin)
3880 ;; XXX TODO: Add lua (needs help finding it)
3881 ("json-glib" ,json-glib)
3882 ("avahi" ,avahi)
3883 ("gmime" ,gmime)
3884 ("libsoup" ,libsoup)
3885 ("libarchive" ,libarchive)
3886 ("totem-pl-parser" ,totem-pl-parser)))
3887 (arguments
3888 `(#:make-flags (list (string-append "GRL_PLUGINS_DIR="
3889 %output
3890 "/lib/grilo-"
3891 ,(version-major+minor version)))
3892 ;; XXX FIXME: Try to get the test suite working. It appears to require
3893 ;; a working system dbus. Inside the build container, all tests fail
3894 ;; with: "assertion failed: (source)". Outside of the build container,
3895 ;; most tests succeed.
3896 #:tests? #f))
3897 (home-page "https://live.gnome.org/Grilo")
3898 (synopsis "Plugins for the Grilo media discovery library")
3899 (description
3900 "Grilo is a framework focused on making media discovery and browsing easy
3901 for application developers.")
3902 (license license:lgpl2.1+)))
3903
3904 (define-public totem
3905 (package
3906 (name "totem")
3907 (version "3.30.0")
3908 (source
3909 (origin
3910 (method url-fetch)
3911 (uri (string-append "mirror://gnome/sources/" name "/"
3912 (version-major+minor version) "/"
3913 name "-" version ".tar.xz"))
3914 (sha256
3915 (base32
3916 "0rahkybxbmxhlmrrgrzxny1xm7wycx7ib4blxp1i2l1q3i8s84b0"))
3917 (patches (search-patches "totem-meson-easy-codec.patch"
3918 "totem-meson-compat.patch"))))
3919 (build-system meson-build-system)
3920 (native-inputs
3921 `(("pkg-config" ,pkg-config)
3922 ("desktop-file-utils" ,desktop-file-utils)
3923 ("gobject-introspection" ,gobject-introspection)
3924 ("glib:bin" ,glib "bin") ;for 'glib-mkenums'
3925 ("gtk:bin" ,gtk+ "bin") ;for 'gtk-update-icon-cache'
3926 ("intltool" ,intltool)
3927 ("itstool" ,itstool)
3928 ("xmllint" ,libxml2)))
3929 (propagated-inputs
3930 `(("dconf" ,dconf)))
3931 (inputs
3932 `(("gtk+" ,gtk+)
3933 ("gdk-pixbuf" ,gdk-pixbuf)
3934 ("atk" ,atk)
3935 ("cairo" ,cairo)
3936 ("dbus-glib" ,dbus-glib)
3937 ("clutter" ,clutter)
3938 ("clutter-gtk" ,clutter-gtk)
3939 ("clutter-gst" ,clutter-gst)
3940 ("xorgproto" ,xorgproto)
3941 ("libxxf86vm" ,libxxf86vm)
3942 ("libxtst" ,libxtst)
3943 ("libxrandr" ,libxrandr)
3944 ("libxml2" ,libxml2)
3945 ("libsoup" ,libsoup)
3946 ("libpeas" ,libpeas)
3947 ("librsvg" ,librsvg)
3948 ("lirc" ,lirc)
3949 ("gnome-desktop" ,gnome-desktop)
3950 ("gstreamer" ,gstreamer)
3951 ("gst-plugins-base" ,gst-plugins-base)
3952 ("gst-plugins-good" ,gst-plugins-good)
3953 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3954 ("adwaita-icon-theme" ,adwaita-icon-theme)
3955 ("python" ,python)
3956 ("python-pygobject" ,python2-pygobject)
3957 ;; XXX TODO pylint needed for python support
3958 ("totem-pl-parser" ,totem-pl-parser)
3959 ("grilo" ,grilo)
3960 ("grilo-plugins" ,grilo-plugins)
3961 ("vala" ,vala)))
3962 (arguments
3963 `(#:glib-or-gtk? #t
3964
3965 ;; Disable parallel builds until
3966 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28813 is
3967 ;; fixed. Try enabling it when updating this package in case
3968 ;; upstream has fixed it.
3969 #:parallel-build? #f
3970
3971 ;; Disable automatic GStreamer plugin installation via PackageKit and
3972 ;; all that.
3973 #:configure-flags '("-D" "enable-easy-codec-installation=no"
3974
3975 ;; Do not build .a files for the plugins, it's
3976 ;; completely useless. This saves 2 MiB.
3977 "--default-library" "shared")
3978
3979 #:phases
3980 (modify-phases %standard-phases
3981 (add-before
3982 'install 'disable-cache-generation
3983 (lambda _
3984 (setenv "DESTDIR" "/")
3985 #t))
3986 (add-after
3987 'install 'wrap-totem
3988 (lambda* (#:key inputs outputs #:allow-other-keys)
3989 (let ((out (assoc-ref outputs "out"))
3990 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
3991 (grl-plugin-path (getenv "GRL_PLUGIN_PATH")))
3992 (wrap-program (string-append out "/bin/totem")
3993 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
3994 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path)))
3995 (wrap-program (string-append out "/bin/totem-video-thumbnailer")
3996 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
3997 #t)))))
3998 (home-page "https://wiki.gnome.org/Apps/Videos")
3999 (synopsis "Simple media player for GNOME based on GStreamer")
4000 (description "Totem is a simple yet featureful media player for GNOME
4001 which can read a large number of file formats.")
4002 ;; GPL2+ with an exception clause for non-GPL compatible GStreamer plugins
4003 ;; to be used and distributed together with GStreamer and Totem. See
4004 ;; file://COPYING in the source distribution for details.
4005 (license license:gpl2+)))
4006
4007 (define-public rhythmbox
4008 (package
4009 (name "rhythmbox")
4010 (version "3.4.3")
4011 (source (origin
4012 (method url-fetch)
4013 (uri (string-append "mirror://gnome/sources/" name "/"
4014 (version-major+minor version) "/"
4015 name "-" version ".tar.xz"))
4016 (sha256
4017 (base32
4018 "1yx3n7p9vmv23jsv98fxwq95n78awdxqm8idhyhxx2d6vk4w1hgx"))))
4019 (build-system glib-or-gtk-build-system)
4020 (arguments
4021 `(#:configure-flags
4022 (list "--enable-lirc"
4023 "--enable-python"
4024 "--enable-vala"
4025 "--with-brasero"
4026 "--with-gudev"
4027 "--with-libsecret")
4028 #:phases
4029 (modify-phases %standard-phases
4030 (add-after
4031 'install 'wrap-rhythmbox
4032 (lambda* (#:key inputs outputs #:allow-other-keys)
4033 (let ((out (assoc-ref outputs "out"))
4034 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
4035 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
4036 (grl-plugin-path (getenv "GRL_PLUGIN_PATH"))
4037 (python-path (getenv "PYTHONPATH")))
4038 (wrap-program (string-append out "/bin/rhythmbox")
4039 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
4040 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
4041 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path))
4042 `("PYTHONPATH" ":" prefix (,python-path))))
4043 #t)))))
4044 (propagated-inputs
4045 `(("dconf" ,dconf)))
4046 (native-inputs
4047 `(("itstool" ,itstool)
4048 ("intltool" ,intltool)
4049 ("glib" ,glib "bin")
4050 ("gobject-introspection" ,gobject-introspection)
4051 ("desktop-file-utils" ,desktop-file-utils)
4052 ("pkg-config" ,pkg-config)
4053 ("xmllint" ,libxml2)))
4054 (inputs
4055 `(("json-glib" ,json-glib)
4056 ("tdb" ,tdb)
4057 ("gnome-desktop" ,gnome-desktop)
4058 ("python" ,python)
4059 ("python-pygobject" ,python2-pygobject)
4060 ("vala" ,vala)
4061 ("gmime" ,gmime)
4062 ("adwaita-icon-theme" ,adwaita-icon-theme)
4063 ("grilo" ,grilo)
4064 ("grilo-plugins" ,grilo-plugins)
4065 ("gstreamer" ,gstreamer)
4066 ("gst-plugins-base" ,gst-plugins-base)
4067 ("gst-plugins-good" ,gst-plugins-good)
4068 ("totem-pl-parser" ,totem-pl-parser)
4069 ("libgudev" ,libgudev)
4070 ;;("libmtp" ,libmtp) FIXME: Not detected
4071 ("libsecret" ,libsecret)
4072 ("libsoup" ,libsoup)
4073 ("libnotify" ,libnotify)
4074 ("libpeas" ,libpeas)
4075 ("lirc" ,lirc)
4076 ;; TODO: clutter* only used by visualizer plugin, which also requires mx
4077 ;;("clutter" ,clutter)
4078 ;;("clutter-gtk" ,clutter-gtk)
4079 ;;("clutter-gst" ,clutter-gst)
4080 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4081 ("atk" ,atk)
4082 ("pango" ,pango)
4083 ("gtk+" ,gtk+)
4084 ;; TODO:
4085 ;; * libgpod
4086 ;; * mx
4087 ("brasero" ,brasero)))
4088 (home-page "https://wiki.gnome.org/Apps/Rhythmbox")
4089 (synopsis "Music player for GNOME")
4090 (description "Rhythmbox is a music playing application for GNOME. It
4091 supports playlists, song ratings, and any codecs installed through gstreamer.")
4092 (license license:gpl2+)))
4093
4094 (define-public eog
4095 (package
4096 (name "eog")
4097 (version "3.28.4")
4098 (source (origin
4099 (method url-fetch)
4100 (uri (string-append "mirror://gnome/sources/" name "/"
4101 (version-major+minor version) "/"
4102 name "-" version ".tar.xz"))
4103 (sha256
4104 (base32
4105 "1wrq3l3z0x6q0hnc1vqr2hnyb1b14qw6aqvc5dldfgbs0yys6p55"))))
4106 (build-system meson-build-system)
4107 (arguments
4108 `(#:configure-flags
4109 ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
4110 (list (string-append "-Dc_link_args=-Wl,-rpath="
4111 (assoc-ref %outputs "out") "/lib/eog"))
4112 #:phases
4113 (modify-phases %standard-phases
4114 (add-after 'install 'wrap-eog
4115 (lambda* (#:key outputs #:allow-other-keys)
4116 (let ((out (assoc-ref outputs "out"))
4117 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
4118 (wrap-program (string-append out "/bin/eog")
4119 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
4120 #t)))))
4121 (propagated-inputs
4122 `(("dconf" ,dconf)))
4123 (native-inputs
4124 `(("intltool" ,intltool)
4125 ("itstool" ,itstool)
4126 ("glib" ,glib "bin")
4127 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
4128 ("gobject-introspection" ,gobject-introspection)
4129 ("pkg-config" ,pkg-config)
4130 ("xmllint" ,libxml2)))
4131 (inputs
4132 `(("gnome-desktop" ,gnome-desktop)
4133 ("shared-mime-info" ,shared-mime-info)
4134 ("adwaita-icon-theme" ,adwaita-icon-theme)
4135 ("exempi" ,exempi)
4136 ("lcms" ,lcms)
4137 ("libexif" ,libexif)
4138 ("libpeas" ,libpeas)
4139 ("libjpeg" ,libjpeg)
4140 ("librsvg" ,librsvg)
4141 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4142 ("gtk+" ,gtk+)))
4143 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
4144 (synopsis "GNOME image viewer")
4145 (description "Eye of GNOME is the GNOME image viewer. It
4146 supports image conversion, rotation, and slideshows.")
4147 (license license:gpl2+)))
4148
4149 (define-public eog-plugins
4150 ;; Note: EOG looks for its plugins (via libpeas) in ~/.local as well as
4151 ;; $DATA/lib/eog/plugins, where DATA is one of the entries in
4152 ;; $XDG_DATA_DIRS. Thus, for EOG to find these, you have to have
4153 ;; 'XDG_DATA_DIRS' appropriately set.
4154 (package
4155 (name "eog-plugins")
4156 (version "3.26.4")
4157 (source (origin
4158 (method url-fetch)
4159 (uri (string-append "mirror://gnome/sources/eog-plugins/"
4160 (version-major+minor version) "/"
4161 "eog-plugins-" version ".tar.xz"))
4162 (sha256
4163 (base32
4164 "0pd7fqa4ciy5844k5s1c6rlsqkk8pxd8cchxjcjhxlsngm9lynnx"))))
4165 (build-system gnu-build-system)
4166 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome/Plugins")
4167 (synopsis "Extensions for the Eye of GNOME image viewer")
4168 (native-inputs
4169 `(("pkg-config" ,pkg-config)
4170 ("gettext" ,gnu-gettext)))
4171 (inputs
4172 `(("eog" ,eog)
4173 ("glib" ,glib)
4174 ("gtk+" ,gtk+)
4175 ("libpeas" ,libpeas)
4176 ("libexif" ,libexif)
4177 ("libchamplain" ,libchamplain)))
4178 (description
4179 "This package provides plugins for the Eye of GNOME (EOG) image viewer,
4180 notably:
4181
4182 @itemize
4183 @item @dfn{EXIF Display}, which displays camera (EXIF) information;
4184 @item @dfn{Map}, which displays a map of where the picture was taken on the
4185 side panel;
4186 @item @dfn{Slideshow Shuffle}, to shuffle images in slideshow mode.
4187 @end itemize\n")
4188
4189 ;; XXX: eog-postasa-plugin-resources.c (which we don't build) contains a
4190 ;; long suspicious byte stream that goes to a
4191 ;; ".gresource.eog_postasa_plugin" ELF section.
4192 (license license:gpl2+)))
4193
4194 (define-public libgudev
4195 (package
4196 (name "libgudev")
4197 (version "232")
4198 (source (origin
4199 (method url-fetch)
4200 (uri (string-append "mirror://gnome/sources/" name "/"
4201 version "/" name "-" version ".tar.xz"))
4202 (sha256
4203 (base32
4204 "0q3qki451zzgdjazlgshsfzbbm0in40lyx7dyrag7kbkqnwv4k7f"))))
4205 (build-system gnu-build-system)
4206 (arguments
4207 '(#:configure-flags
4208 ;; umockdev depends on libgudev.
4209 (list "--disable-umockdev")))
4210 (native-inputs
4211 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
4212 ("gobject-introspection" ,gobject-introspection)
4213 ("pkg-config" ,pkg-config)))
4214 (propagated-inputs
4215 `(("glib" ,glib))) ; required by gudev-1.0.pc
4216 (inputs
4217 `(("udev" ,eudev)))
4218 (home-page "https://wiki.gnome.org/Projects/libgudev")
4219 (synopsis "GObject bindings for libudev")
4220 (description
4221 "This library provides GObject bindings for libudev. It was originally
4222 part of udev-extras, then udev, then systemd. It's now a project on its own.")
4223 (license license:lgpl2.1+)))
4224
4225 (define-public gvfs
4226 (package
4227 (name "gvfs")
4228 (version "1.40.1")
4229 (source (origin
4230 (method url-fetch)
4231 (uri (string-append "mirror://gnome/sources/gvfs/"
4232 (version-major+minor version) "/"
4233 "gvfs-" version ".tar.xz"))
4234 (sha256
4235 (base32
4236 "1cfnzamr4mvgpf6yhm28lh9cafy9z6842s8jpbqnfizfxybg8ylj"))))
4237 (build-system meson-build-system)
4238 (arguments
4239 '(#:glib-or-gtk? #t
4240 #:configure-flags
4241 (list "-Dsystemduserunitdir=no"
4242 "-Dtmpfilesdir=no"
4243 ;; Otherwise, the RUNPATH will lack the final path component.
4244 (string-append "-Dc_link_args=-Wl,-rpath="
4245 (assoc-ref %outputs "out") "/lib/gvfs"))))
4246 (native-inputs
4247 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
4248 ("gettext" ,gettext-minimal)
4249 ("gtk-doc" ,gtk-doc)
4250 ("pkg-config" ,pkg-config)
4251 ("xsltproc" ,libxslt)))
4252 (inputs
4253 `(("avahi" ,avahi)
4254 ("docbook-xml" ,docbook-xml-4.2)
4255 ("docbook-xsl" ,docbook-xsl)
4256 ("dbus" ,dbus)
4257 ("elogind" ,elogind)
4258 ("fuse" ,fuse)
4259 ("gcr" ,gcr)
4260 ("glib" ,glib)
4261 ("gnome-online-accounts" ,gnome-online-accounts)
4262 ("libarchive" ,libarchive)
4263 ("libbluray" ,libbluray)
4264 ("libcap" ,libcap)
4265 ("libcdio-paranoia" ,libcdio-paranoia)
4266 ("libgcrypt" ,libgcrypt)
4267 ("libgdata" ,libgdata)
4268 ("libgphoto2" ,libgphoto2)
4269 ("libgudev" ,libgudev)
4270 ("libimobiledevice" ,libimobiledevice)
4271 ("libmtp" ,libmtp)
4272 ("libnfs" ,libnfs)
4273 ("libsecret" ,libsecret)
4274 ("libsmbclient" ,samba)
4275 ("libsoup" ,libsoup)
4276 ("libxml2" ,libxml2)
4277 ("openssh" ,openssh)
4278 ("polkit" ,polkit)
4279 ("udisks" ,udisks)))
4280 (home-page "https://wiki.gnome.org/gvfs/")
4281 (synopsis "Userspace virtual file system for GIO")
4282 (description
4283 "GVFS is a userspace virtual file system designed to work with the I/O
4284 abstraction of GIO. It contains a GIO module that seamlessly adds GVFS support
4285 to all applications using the GIO API. It also supports exposing the GVFS
4286 mounts to non-GIO applications using FUSE.
4287
4288 GVFS comes with a set of backends, including trash support, SFTP, SMB, HTTP,
4289 DAV, and others.")
4290 (license license:lgpl2.0+)))
4291
4292 (define-public gusb
4293 (package
4294 (name "gusb")
4295 (version "0.3.0")
4296 (source (origin
4297 (method url-fetch)
4298 (uri (string-append "https://github.com/hughsie/libgusb/archive/"
4299 version ".tar.gz"))
4300 (sha256
4301 (base32
4302 "1wa9787ww7s1kl9jml6kiyrjgimlgagq4jmgdj7xcpsx83w10qxk"))))
4303 (build-system meson-build-system)
4304 (native-inputs
4305 `(("gobject-introspection" ,gobject-introspection)
4306 ("pkg-config" ,pkg-config)
4307 ("vala" ,vala)
4308 ("gtk-doc" ,gtk-doc)))
4309 (propagated-inputs
4310 ;; Both of these are required by gusb.pc.
4311 `(("glib" ,glib)
4312 ("libusb" ,libusb)))
4313 (arguments
4314 `(#:tests? #f)) ;libusb fails to initialize. Wonder what that is.
4315 (home-page "https://github.com/hughsie/libgusb")
4316 (synopsis "GLib binding for libusb1")
4317 (description
4318 "GUsb is a GObject wrapper for libusb1 that makes it easy to do
4319 asynchronous control, bulk and interrupt transfers with proper cancellation
4320 and integration into a mainloop. This makes it easy to integrate low level
4321 USB transfers with your high-level application or system daemon.")
4322 (license license:lgpl2.1+)))
4323
4324 (define-public simple-scan
4325 (package
4326 (name "simple-scan")
4327 (version "3.34.1")
4328 (source
4329 (origin
4330 (method url-fetch)
4331 (uri (string-append "mirror://gnome/sources/simple-scan/"
4332 (version-major+minor version) "/"
4333 "simple-scan-" version ".tar.xz"))
4334 (sha256
4335 (base32 "0glzskxdc7p9z7nwcakqc7qzij4l79adlvvb2cj5fmis731zw9yq"))))
4336 (build-system meson-build-system)
4337 ;; TODO: Fix icons in home screen, About dialogue, and scan menu.
4338 (arguments
4339 '(#:glib-or-gtk? #t))
4340 (inputs
4341 `(("gtk" ,gtk+)
4342 ("zlib" ,zlib)
4343 ("cairo" ,cairo)
4344 ("colord" ,colord)
4345 ("gdk-pixbuf" ,gdk-pixbuf)
4346 ("gusb" ,gusb)
4347 ("libsane" ,sane-backends)))
4348 (native-inputs
4349 `(("gettext" ,gettext-minimal)
4350 ("itstool" ,itstool)
4351 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
4352 ("pkg-config" ,pkg-config)
4353 ("vala" ,vala)
4354 ("xmllint" ,libxml2)))
4355 (home-page "https://gitlab.gnome.org/GNOME/simple-scan")
4356 (synopsis "Document and image scanner")
4357 (description
4358 "Document Scanner is an easy-to-use application that lets you connect your
4359 scanner and quickly capture images and documents in an appropriate format. It
4360 supports any scanner for which a suitable SANE driver is available, which is
4361 almost all of them.")
4362 (license license:gpl3+)))
4363
4364 (define-public eolie
4365 (package
4366 (name "eolie")
4367 (version "0.9.63")
4368 (source (origin
4369 (method url-fetch)
4370 (uri (string-append "https://gitlab.gnome.org/World/eolie/"
4371 "uploads/d42b466752729a0d3fa828a721e25043/"
4372 "eolie-" version ".tar.xz"))
4373 (sha256
4374 (base32
4375 "11pp8g0w22h1q0bbj9517l5838gcymvvp8fp9kh6h2dmgir2ssih"))))
4376 (build-system meson-build-system)
4377 (arguments
4378 `(#:glib-or-gtk? #t
4379 #:phases
4380 (modify-phases %standard-phases
4381 (add-after 'wrap 'wrap-more
4382 (lambda* (#:key inputs outputs #:allow-other-keys)
4383 (let* ((out (assoc-ref outputs "out"))
4384 ;; These libraries must be on LD_LIBRARY_PATH.
4385 (libs '("gtkspell3" "webkitgtk" "libsoup" "libsecret"
4386 "atk" "gtk+" "gsettings-desktop-schemas"
4387 "gobject-introspection"))
4388 (path (string-join
4389 (map (lambda (lib)
4390 (string-append (assoc-ref inputs lib) "/lib"))
4391 libs)
4392 ":")))
4393 (wrap-program (string-append out "/bin/eolie")
4394 `("LD_LIBRARY_PATH" ":" prefix (,path))
4395 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
4396 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
4397 #t)))))
4398 (native-inputs
4399 `(("intltool" ,intltool)
4400 ("itstool" ,itstool)
4401 ("pkg-config" ,pkg-config)
4402 ("python" ,python)
4403 ("glib:bin" ,glib "bin")
4404 ("gtk+" ,gtk+ "bin")))
4405 (inputs
4406 `(("gobject-introspection" ,gobject-introspection)
4407 ("glib-networking" ,glib-networking)
4408 ("cairo" ,cairo)
4409 ("gtk+" ,gtk+)
4410 ("atk" ,atk) ; propagated by gtk+, but we need it in LD_LIBRARY_PATH
4411 ("python" ,python-wrapper)
4412 ("python-dateutil" ,python-dateutil)
4413 ("python-pyfxa" ,python-pyfxa)
4414 ("python-pygobject" ,python-pygobject)
4415 ("python-pycairo" ,python-pycairo)
4416 ("python-pycrypto" ,python-pycrypto)
4417 ("libsecret" ,libsecret)
4418 ("gtkspell3" ,gtkspell3)
4419 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4420 ("webkitgtk" ,webkitgtk)))
4421 (home-page "https://wiki.gnome.org/Apps/Eolie")
4422 (synopsis "Web browser for GNOME")
4423 (description
4424 "Eolie is a new web browser for GNOME. It features Firefox sync support,
4425 a secret password store, an adblocker, and a modern UI.")
4426 (license license:gpl3+)))
4427
4428 (define-public epiphany
4429 (package
4430 (name "epiphany")
4431 (version "3.30.4")
4432 (source (origin
4433 (method url-fetch)
4434 (uri (string-append "mirror://gnome/sources/epiphany/"
4435 (version-major+minor version) "/"
4436 "epiphany-" version ".tar.xz"))
4437 (sha256
4438 (base32
4439 "0nk0krzrfck6hhfs52f4sjmj93yjyvabm72bq8i8f9l1pass5vgd"))))
4440
4441 (build-system meson-build-system)
4442 (arguments
4443 ;; FIXME: tests run under Xvfb, but fail with:
4444 ;; /src/bookmarks/ephy-bookmarks/create:
4445 ;; ** (test-ephy-bookmarks:19591): WARNING **: Unable to start Zeroconf
4446 ;; subsystem
4447 ;; FAIL
4448 '(#:tests? #f
4449 #:glib-or-gtk? #t
4450 #:configure-flags
4451 ;; Otherwise, the RUNPATH will lack the final 'epiphany' path component.
4452 (list (string-append "-Dc_link_args=-Wl,-rpath="
4453 (assoc-ref %outputs "out") "/lib/epiphany"))))
4454 (propagated-inputs
4455 `(("dconf" ,dconf)))
4456 (native-inputs
4457 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
4458 ("glib:bin" ,glib "bin") ; for glib-mkenums
4459 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
4460 ("intltool" ,intltool)
4461 ("itstool" ,itstool)
4462 ("pkg-config" ,pkg-config)
4463 ("xmllint" ,libxml2)))
4464 (inputs
4465 `(("avahi" ,avahi)
4466 ("gcr" ,gcr)
4467 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg) ; for loading SVG files
4468 ("glib-networking" ,glib-networking)
4469 ("gnome-desktop" ,gnome-desktop)
4470 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4471 ("json-glib" ,json-glib)
4472 ("iso-codes" ,iso-codes)
4473 ("libdazzle" ,libdazzle)
4474 ("libnotify" ,libnotify)
4475 ("libsecret" ,libsecret)
4476 ("libxslt" ,libxslt)
4477 ("nettle" ,nettle) ; for hogweed
4478 ("sqlite" ,sqlite)
4479 ("webkitgtk" ,webkitgtk)))
4480 (home-page "https://wiki.gnome.org/Apps/Web")
4481 (synopsis "GNOME web browser")
4482 (description
4483 "Epiphany is a GNOME web browser targeted at non-technical users. Its
4484 principles are simplicity and standards compliance.")
4485 (license license:gpl2+)))
4486
4487 (define-public d-feet
4488 (package
4489 (name "d-feet")
4490 (version "0.3.14")
4491 (source (origin
4492 (method url-fetch)
4493 (uri (string-append "mirror://gnome/sources/" name "/"
4494 (version-major+minor version) "/"
4495 name "-" version ".tar.xz"))
4496 (sha256
4497 (base32
4498 "1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f"))))
4499 (build-system glib-or-gtk-build-system)
4500 (arguments
4501 '(#:out-of-source? #f ; tests need to run in the source directory.
4502 #:phases
4503 (modify-phases %standard-phases
4504 (add-before
4505 'check 'pre-check
4506 (lambda _
4507 ;; The test suite requires a running X server.
4508 (system "Xvfb :1 &")
4509 (setenv "DISPLAY" ":1")
4510 ;; Don't fail on missing '/etc/machine-id'.
4511 (setenv "DBUS_FATAL_WARNINGS" "0")
4512 ;; tests.py and window.py don't meet E402:
4513 ;; E402 module level import not at top of file
4514 (substitute* "src/tests/Makefile"
4515 (("--ignore=E123") "--ignore=E123,E402"))
4516 #t))
4517 (add-after
4518 'install 'wrap-program
4519 (lambda* (#:key outputs #:allow-other-keys)
4520 (let ((prog (string-append (assoc-ref outputs "out")
4521 "/bin/d-feet")))
4522 (wrap-program prog
4523 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
4524 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
4525 #t))))))
4526 (native-inputs
4527 `(("intltool" ,intltool)
4528 ("itstool" ,itstool)
4529 ("pkg-config" ,pkg-config)
4530 ("python-pep8" ,python-pep8)
4531 ("xmllint" ,libxml2)
4532 ("xorg-server" ,xorg-server)))
4533 (inputs
4534 `(("gobject-introspection" ,gobject-introspection)
4535 ("gtk+" ,gtk+)
4536 ("python" ,python-wrapper)
4537 ("hicolor-icon-theme" ,hicolor-icon-theme)
4538 ("python-pygobject" ,python-pygobject)))
4539 (home-page "https://wiki.gnome.org/Apps/DFeet")
4540 (synopsis "D-Bus debugger")
4541 (description
4542 "D-Feet is a D-Bus debugger, which can be used to inspect D-Bus interfaces
4543 of running programs and invoke methods on those interfaces.")
4544 (license license:gpl2+)))
4545
4546 (define-public yelp-xsl
4547 (package
4548 (name "yelp-xsl")
4549 (version "3.32.1")
4550 (source (origin
4551 (method url-fetch)
4552 (uri (string-append "mirror://gnome/sources/" name "/"
4553 (version-major+minor version) "/"
4554 name "-" version ".tar.xz"))
4555 (sha256
4556 (base32
4557 "013z2ixx9kfrs6hq79qpil093xfbc12y1p0mvsh6lpala30iphya"))))
4558 (build-system gnu-build-system)
4559 (native-inputs
4560 `(("intltool" ,intltool)
4561 ("itstool" ,itstool)
4562 ("xmllint" ,libxml2)))
4563 (home-page "https://wiki.gnome.org/Apps/Yelp")
4564 (synopsis "XSL stylesheets for Yelp")
4565 (description
4566 "Yelp-xsl contains XSL stylesheets that are used by the yelp help browser
4567 to format Docbook and Mallard documents.")
4568 (license license:gpl2+)))
4569
4570 (define-public yelp
4571 (package
4572 (name "yelp")
4573 (version "3.30.0")
4574 (source (origin
4575 (method url-fetch)
4576 (uri (string-append "mirror://gnome/sources/" name "/"
4577 (version-major+minor version) "/"
4578 name "-" version ".tar.xz"))
4579 (sha256
4580 (base32
4581 "060a902j15k76fyhk8xfl38ipvrrcc0qd7nm2mcck4ifb45b0zv4"))))
4582 (build-system glib-or-gtk-build-system)
4583 (native-inputs
4584 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
4585 ("intltool" ,intltool)
4586 ("itstool" ,itstool)
4587 ("pkg-config" ,pkg-config)))
4588 (propagated-inputs
4589 `(("dconf" ,dconf)))
4590 (inputs
4591 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4592 ("libxslt" ,libxslt)
4593 ("sqlite" ,sqlite)
4594 ("webkitgtk" ,webkitgtk)
4595 ("yelp-xsl" ,yelp-xsl)))
4596 (home-page "https://wiki.gnome.org/Apps/Yelp")
4597 (synopsis "GNOME help browser")
4598 (description
4599 "Yelp is the help viewer in Gnome. It natively views Mallard, DocBook,
4600 man, info, and HTML documents. It can locate documents according to the
4601 freedesktop.org help system specification.")
4602 (license license:gpl2+)))
4603
4604 (define-public yelp-tools
4605 (package
4606 (name "yelp-tools")
4607 (version "3.28.0")
4608 (source (origin
4609 (method url-fetch)
4610 (uri (string-append "mirror://gnome/sources/" name "/"
4611 (version-major+minor version) "/"
4612 name "-" version ".tar.xz"))
4613 (sha256
4614 (base32
4615 "1b61dmlb1sd50fgq6zgnkcpx2s1py33q0x9cx67fzpsr4gmgxnw2"))))
4616 (build-system gnu-build-system)
4617 (native-inputs
4618 `(("pkg-config" ,pkg-config)))
4619 (propagated-inputs
4620 ;; Needed by `yelp-build', `yelp-check' or 'yelp.m4'.
4621 `(("itstool" ,itstool)
4622 ("xmllint" ,libxml2)
4623 ("xsltproc" ,libxslt)))
4624 (inputs
4625 `(("yelp-xsl" ,yelp-xsl)))
4626 (home-page "https://wiki.gnome.org/Apps/Yelp/Tools")
4627 (synopsis "Yelp documentation tools")
4628 (description
4629 "Yelp-tools is a collection of scripts and build utilities to help create,
4630 manage, and publish documentation for Yelp and the web. Most of the heavy
4631 lifting is done by packages like yelp-xsl and itstool. This package just
4632 wraps things up in a developer-friendly way.")
4633 (license license:gpl2+)))
4634
4635 (define-public yelp-tools/fixed
4636 ;; This variant fixes a python-libxml2 crash when processing UTF-8
4637 ;; sequences: <https://bugs.gnu.org/37468>. TODO: Remove this in
4638 ;; the next rebuild cycle.
4639 (hidden-package
4640 (package/inherit
4641 yelp-tools
4642 (propagated-inputs
4643 `(("itstool" ,itstool/fixed)
4644 ,@(alist-delete "itstool" (package-propagated-inputs yelp-tools)))))))
4645
4646 (define-public libgee
4647 (package
4648 (name "libgee")
4649 (version "0.20.2")
4650 (source (origin
4651 (method url-fetch)
4652 (uri (string-append "mirror://gnome/sources/libgee/"
4653 (version-major+minor version) "/"
4654 "libgee-" version ".tar.xz"))
4655 (sha256
4656 (base32
4657 "0g1mhl7nidg82v4cikkk8dakzc18hg7wv0dsf2pbyijzfm5mq0wy"))))
4658 (build-system gnu-build-system)
4659 (arguments
4660 `(#:phases
4661 (modify-phases %standard-phases
4662 (add-after 'unpack 'fix-introspection-install-dir
4663 (lambda* (#:key outputs #:allow-other-keys)
4664 (let ((out (assoc-ref outputs "out")))
4665 (substitute* "gee/Makefile.in"
4666 (("@INTROSPECTION_GIRDIR@")
4667 (string-append out "/share/gir-1.0/"))
4668 (("@INTROSPECTION_TYPELIBDIR@")
4669 (string-append out "/lib/girepository-1.0/")))))))))
4670 (native-inputs
4671 `(("glib" ,glib "bin")
4672 ("pkg-config" ,pkg-config)))
4673 (inputs
4674 `(("glib" ,glib)
4675 ("gobject-introspection" ,gobject-introspection)))
4676 (home-page "https://wiki.gnome.org/Projects/Libgee")
4677 (synopsis "GObject collection library")
4678 (description
4679 "Libgee is a utility library providing GObject-based interfaces and
4680 classes for commonly used data structures.")
4681 (license license:lgpl2.1+)))
4682
4683 (define-public gexiv2
4684 (package
4685 (name "gexiv2")
4686 (version "0.12.0")
4687 (source (origin
4688 (method url-fetch)
4689 (uri (string-append "mirror://gnome/sources/" name "/"
4690 (version-major+minor version) "/"
4691 name "-" version ".tar.xz"))
4692 (sha256
4693 (base32
4694 "0slj5yj8c90l9pp5i3z74x5r3r4da0xfmbzkfq5k0dkg72q3kxaq"))))
4695 (build-system meson-build-system)
4696 (native-inputs
4697 `(("gcr" ,gcr)
4698 ("glib" ,glib "bin")
4699 ("pkg-config" ,pkg-config)
4700 ("vala" ,vala)))
4701 (propagated-inputs
4702 ;; Listed in "Requires" section of gexiv2.pc
4703 `(("exiv2" ,exiv2)))
4704 (inputs
4705 `(("glib" ,glib)
4706 ("gobject-introspection" ,gobject-introspection)))
4707 (home-page "https://wiki.gnome.org/Projects/gexiv2")
4708 (synopsis "GObject wrapper around the Exiv2 photo metadata library")
4709 (description
4710 "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library. It
4711 allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
4712 metadata in photo and video files of various formats.")
4713 (license license:gpl2+)))
4714
4715 (define-public shotwell
4716 (package
4717 (name "shotwell")
4718 (version "0.30.7")
4719 (source (origin
4720 (method url-fetch)
4721 (uri (string-append "mirror://gnome/sources/shotwell/"
4722 (version-major+minor version) "/"
4723 "shotwell-" version ".tar.xz"))
4724 (sha256
4725 (base32
4726 "1m9i8r4gyd2hzlxjjwfyck4kz7gdg2vz2k6l6d0ga9hdfq2l4p9l"))))
4727 (build-system meson-build-system)
4728 (arguments
4729 '(#:glib-or-gtk? #t))
4730 (propagated-inputs
4731 `(("dconf" ,dconf)))
4732 (native-inputs
4733 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
4734 ("gettext" ,gettext-minimal)
4735 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
4736 ("itstool" ,itstool)
4737 ("pkg-config" ,pkg-config)
4738 ("vala" ,vala)))
4739 (inputs
4740 `(("glib:bin" ,glib "bin")
4741 ("gstreamer" ,gstreamer)
4742 ("gst-plugins-base" ,gst-plugins-base)
4743 ("libgdata" ,libgdata)
4744 ("libgee" ,libgee)
4745 ("gexiv2" ,gexiv2)
4746 ("libraw" ,libraw)
4747 ("json-glib" ,json-glib)
4748 ("webkitgtk" ,webkitgtk)
4749 ("sqlite" ,sqlite)
4750 ("libsoup" ,libsoup)
4751 ("libxml2" ,libxml2)
4752 ("libgudev" ,libgudev)
4753 ("libgphoto2" ,libgphoto2)
4754 ("gcr" ,gcr)))
4755 (home-page "https://wiki.gnome.org/Apps/Shotwell")
4756 (synopsis "Photo manager for GNOME 3")
4757 (description
4758 "Shotwell is a digital photo manager designed for the GNOME desktop
4759 environment. It allows you to import photos from disk or camera, organize
4760 them by keywords and events, view them in full-window or fullscreen mode, and
4761 share them with others via social networking and more.")
4762 (license license:lgpl2.1+)))
4763
4764 (define-public file-roller
4765 (package
4766 (name "file-roller")
4767 (version "3.30.1")
4768 (source (origin
4769 (method url-fetch)
4770 (uri (string-append "mirror://gnome/sources/" name "/"
4771 (version-major+minor version) "/"
4772 name "-" version ".tar.xz"))
4773 (sha256
4774 (base32
4775 "0kiragsqyixyx15747b71qc4nw8y4jx9d55wgg612xb0hp5l9pj1"))))
4776 (build-system meson-build-system)
4777 (native-inputs
4778 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
4779 ("intltool" ,intltool)
4780 ("pkg-config" ,pkg-config)
4781 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
4782 ("glib:bin" ,glib "bin")))
4783 ;; TODO: Add libnautilus.
4784 (inputs
4785 `(("gtk+" ,gtk+)
4786 ("gdk-pixbuf" ,gdk-pixbuf)
4787 ("json-glib" ,json-glib)
4788 ("libarchive" ,libarchive)
4789 ("libnotify" ,libnotify)
4790 ("itstool" ,itstool)
4791 ("libxml2" ,libxml2)))
4792 (synopsis "Graphical archive manager for GNOME")
4793 (description "File Roller is an archive manager for the GNOME desktop
4794 environment that allows users to view, unpack, and create compressed archives
4795 such as gzip tarballs.")
4796 (home-page "http://fileroller.sourceforge.net/")
4797 (license license:gpl2+)))
4798
4799 (define-public gnome-session
4800 (package
4801 (name "gnome-session")
4802 (version "3.30.1")
4803 (source (origin
4804 (method url-fetch)
4805 (uri (string-append "mirror://gnome/sources/" name "/"
4806 (version-major+minor version) "/"
4807 name "-" version ".tar.xz"))
4808 (sha256
4809 (base32
4810 "0fbpq103md4g9gi67rxnwvha21629nxx7qazddy6q6494sbqbzpa"))))
4811 (arguments
4812 '(#:glib-or-gtk? #t
4813 #:phases
4814 (modify-phases %standard-phases
4815 (add-before 'configure 'pre-configure
4816 (lambda* (#:key outputs #:allow-other-keys)
4817 ;; Use elogind instead of systemd.
4818 (substitute* "meson.build"
4819 (("libsystemd-login") "libelogind")
4820 (("and libsystemd_daemon_dep.found.*") ","))
4821 (substitute* "gnome-session/gsm-systemd.c"
4822 (("#include <systemd/sd-login.h>")
4823 "#include <elogind/sd-login.h>"))
4824 ;; Remove uses of the systemd daemon.
4825 (substitute* "gnome-session/gsm-autostart-app.c"
4826 (("#ifdef HAVE_SYSTEMD") "#if 0"))
4827 #t))
4828 (add-after 'install 'wrap-gnome-session
4829 (lambda* (#:key inputs outputs #:allow-other-keys)
4830 ;; Make sure 'gnome-session' finds the 'gsettings' program.
4831 (let ((glib (assoc-ref inputs "glib:bin"))
4832 (out (assoc-ref outputs "out")))
4833 (wrap-program (string-append out "/bin/gnome-session")
4834 `("PATH" ":" prefix (,(string-append glib "/bin"))))
4835 #t))))
4836
4837 #:configure-flags
4838 '("-Ddocbook=false" ; FIXME: disabled because of docbook validation error
4839 "-Dman=false" ; FIXME: disabled because of docbook validation error
4840 "-Dsystemd_journal=false")))
4841 (build-system meson-build-system)
4842 (native-inputs
4843 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
4844 ("pkg-config" ,pkg-config)
4845 ("intltool" ,intltool)
4846 ("xsltproc" ,libxslt)
4847 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
4848 ("docbook-xsl" ,docbook-xsl)
4849 ("docbook-xml" ,docbook-xml)
4850 ("xmlto" ,xmlto)))
4851 (inputs
4852 `(("elogind" ,elogind)
4853 ("gnome-desktop" ,gnome-desktop)
4854 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4855 ("gtk+" ,gtk+)
4856 ("json-glib" ,json-glib)
4857 ("libsm" ,libsm)
4858 ("libxcomposite" ,libxcomposite)
4859 ("libxtst" ,libxtst)
4860 ("mesa" ,mesa)
4861 ("upower" ,upower)
4862 ("xtrans" ,xtrans)))
4863 (synopsis "Session manager for GNOME")
4864 (description
4865 "This package contains the GNOME session manager, as well as a
4866 configuration program to choose applications starting on login.")
4867 (home-page "https://wiki.gnome.org/Projects/SessionManagement")
4868 (license license:gpl2+)))
4869
4870 (define-public gjs
4871 (package
4872 (name "gjs")
4873 (version "1.56.2")
4874 (source (origin
4875 (method url-fetch)
4876 (uri (string-append "mirror://gnome/sources/" name "/"
4877 (version-major+minor version) "/"
4878 name "-" version ".tar.xz"))
4879 (sha256
4880 (base32
4881 "1b5321krn89p3f7s2ik6gpfnc61apzljhlnbqky8c88f7n6832ac"))))
4882 (build-system gnu-build-system)
4883 (arguments
4884 '(#:phases
4885 (modify-phases %standard-phases
4886 (add-before
4887 'check 'pre-check
4888 (lambda _
4889 ;; The test suite requires a running X server.
4890 (system "Xvfb :1 &")
4891 (setenv "DISPLAY" ":1")
4892
4893 ;; For the missing /etc/machine-id.
4894 (setenv "DBUS_FATAL_WARNINGS" "0")
4895
4896 ;; Our mozjs-38 package does not compile the required Intl API
4897 ;; support for these failing tests.
4898 (substitute* "installed-tests/js/testLocale.js"
4899 ((".*toBeDefined.*") "")
4900 ((".*expect\\(datestr\\).*") ""))
4901 (substitute* "installed-tests/scripts/testCommandLine.sh"
4902 (("Valentín") "")
4903 (("☭") ""))
4904 #t)))))
4905 (native-inputs
4906 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
4907 ("pkg-config" ,pkg-config)
4908 ("xmllint" ,libxml2)
4909 ;; For testing
4910 ("dbus-launch" ,dbus)
4911 ("uuidgen" ,util-linux)
4912 ("xvfb" ,xorg-server-for-tests)))
4913 (propagated-inputs
4914 ;; These are all in the Requires.private field of gjs-1.0.pc.
4915 `(("cairo" ,cairo)
4916 ("gobject-introspection" ,gobject-introspection)
4917 ("mozjs" ,mozjs-60)))
4918 (inputs
4919 `(("gtk+" ,gtk+)
4920 ("readline" ,readline)))
4921 (synopsis "Javascript bindings for GNOME")
4922 (home-page "https://live.gnome.org/Gjs")
4923 (description
4924 "Gjs is a javascript binding for GNOME. It's mainly based on spidermonkey
4925 javascript engine and the GObject introspection framework.")
4926 (license license:gpl2+)))
4927
4928 (define-public gedit
4929 (package
4930 (name "gedit")
4931 (version "3.30.2")
4932 (source (origin
4933 (method url-fetch)
4934 (uri (string-append "mirror://gnome/sources/" name "/"
4935 (version-major+minor version) "/"
4936 name "-" version ".tar.xz"))
4937 (sha256
4938 (base32
4939 "0qwig35hzvjaqic9x92jcpmycnvcybsbnbiw6rppryx0arwb3wza"))))
4940 (build-system glib-or-gtk-build-system)
4941 (arguments
4942 `(#:phases
4943 (modify-phases %standard-phases
4944 (add-after
4945 'install 'wrap-gedit
4946 (lambda* (#:key inputs outputs #:allow-other-keys)
4947 (let ((out (assoc-ref outputs "out"))
4948 (gtksourceview (assoc-ref inputs "gtksourceview"))
4949 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
4950 (python-path (getenv "PYTHONPATH")))
4951 (wrap-program (string-append out "/bin/gedit")
4952 ;; For plugins.
4953 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
4954 `("PYTHONPATH" ":" prefix (,python-path))
4955 ;; For language-specs.
4956 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
4957 "/share")))))
4958 #t)))))
4959 (propagated-inputs
4960 `(("dconf" ,dconf)))
4961 (native-inputs
4962 `(("intltool" ,intltool)
4963 ("itstool" ,itstool)
4964 ("gobject-introspection" ,gobject-introspection)
4965 ("pkg-config" ,pkg-config)))
4966 (inputs
4967 `(("glib" ,glib)
4968 ("gspell" ,gspell)
4969 ("gtk+" ,gtk+)
4970 ("gtksourceview" ,gtksourceview-3)
4971 ("libpeas" ,libpeas)
4972 ("libxml2" ,libxml2)
4973 ("iso-codes" ,iso-codes)
4974 ("python-pygobject" ,python-pygobject)
4975 ("python" ,python)
4976 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4977 ("libx11" ,libx11)
4978 ("vala" ,vala)
4979 ("adwaita-icon-theme" ,adwaita-icon-theme)
4980 ("libsoup" ,libsoup)
4981 ("gnome-desktop" ,gnome-desktop)))
4982 (home-page "https://wiki.gnome.org/Apps/Gedit")
4983 (synopsis "GNOME text editor")
4984 (description "While aiming at simplicity and ease of use, gedit is a
4985 powerful general purpose text editor.")
4986 (license license:gpl2+)))
4987
4988 (define-public zenity
4989 (package
4990 (name "zenity")
4991 (version "3.32.0")
4992 (source (origin
4993 (method url-fetch)
4994 (uri (string-append "mirror://gnome/sources/zenity/"
4995 (version-major+minor version) "/"
4996 "zenity-" version ".tar.xz"))
4997 (sha256
4998 (base32
4999 "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7"))))
5000 (build-system gnu-build-system)
5001 (native-inputs
5002 `(("gettext" ,gettext-minimal)
5003 ("itstool" ,itstool)
5004 ("pkg-config" ,pkg-config)))
5005 (inputs
5006 `(("libnotify" ,libnotify)
5007 ("webkitgtk" ,webkitgtk)))
5008 (synopsis "Display graphical dialog boxes from shell scripts")
5009 (home-page "https://www.gnome.org")
5010 (description
5011 "Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you
5012 to display dialog boxes from the commandline and shell scripts.")
5013 (license license:lgpl2.0+)))
5014
5015 (define-public mutter
5016 (package
5017 (name "mutter")
5018 (version "3.30.2")
5019 (source (origin
5020 (method url-fetch)
5021 (uri (string-append "mirror://gnome/sources/" name "/"
5022 (version-major+minor version) "/"
5023 name "-" version ".tar.xz"))
5024 (sha256
5025 (base32
5026 "0qr3w480p31nbiad49213rj9rk6p9fl82a68pzznpz36p30dq96z"))))
5027 ;; NOTE: Since version 3.21.x, mutter now bundles and exports forked
5028 ;; versions of cogl and clutter. As a result, many of the inputs,
5029 ;; propagated-inputs, and configure flags used in cogl and clutter are
5030 ;; needed here as well.
5031 (build-system gnu-build-system)
5032 (arguments
5033 '(#:configure-flags
5034 ;; XXX: build fails with [-Werror]:
5035 ;; backends/meta-cursor-renderer.c:112:5: error:
5036 ;; implicit declaration of function ?roundf?
5037 (list "--enable-compile-warnings=minimum"
5038
5039 "--enable-native-backend"
5040
5041 ;; The following flags are needed for the bundled clutter
5042 "--enable-x11-backend=yes"
5043
5044 (string-append "--with-xwayland-path="
5045 (assoc-ref %build-inputs "xorg-server-xwayland")
5046 "/bin/Xwayland")
5047
5048 ;; the remaining flags are needed for the bundled cogl
5049 "--enable-cogl-gst"
5050 (string-append "--with-gl-libname="
5051 (assoc-ref %build-inputs "mesa")
5052 "/lib/libGL.so"))
5053 #:phases
5054 (modify-phases %standard-phases
5055 ;; Replace references to systemd libraries to elogind references.
5056 (add-before 'configure 'use-elogind
5057 (lambda _
5058 (substitute* (list "configure"
5059 "src/backends/native/meta-launcher.c"
5060 "src/core/main.c")
5061 (("systemd") "elogind"))
5062 #t)))))
5063 (native-inputs
5064 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5065 ("gobject-introspection" ,gobject-introspection)
5066 ("intltool" ,intltool)
5067 ("pkg-config" ,pkg-config)
5068 ;; For git build
5069 ("autoconf" ,autoconf)
5070 ("automake" ,automake)
5071 ("libtool" ,libtool)))
5072 (propagated-inputs
5073 `(;; libmutter.pc refers to these:
5074 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5075 ("gtk+" ,gtk+)
5076 ;; mutter-clutter-1.0.pc and mutter-cogl-1.0.pc refer to these:
5077 ("atk" ,atk)
5078 ("cairo" ,cairo)
5079 ("gdk-pixbuf" ,gdk-pixbuf)
5080 ("glib" ,glib)
5081 ("json-glib" ,json-glib)
5082 ("libinput" ,libinput)
5083 ("libx11" ,libx11)
5084 ("libxcomposite" ,libxcomposite)
5085 ("libxdamage" ,libxdamage)
5086 ("libxext" ,libxext)
5087 ("libxfixes" ,libxfixes)
5088 ("libxkbcommon" ,libxkbcommon)
5089 ("libxrandr" ,libxrandr)
5090 ("mesa" ,mesa)
5091 ("pango" ,pango)
5092 ("udev" ,eudev)
5093 ("xinput" ,xinput)))
5094 (inputs
5095 `(("elogind" ,elogind)
5096 ("gnome-desktop" ,gnome-desktop)
5097 ("libcanberra-gtk" ,libcanberra)
5098 ("libgudev" ,libgudev)
5099 ("libice" ,libice)
5100 ("libsm" ,libsm)
5101 ("libxkbfile" ,libxkbfile)
5102 ("libxrandr" ,libxrandr)
5103 ("libxtst" ,libxtst)
5104 ("startup-notification" ,startup-notification)
5105 ("upower-glib" ,upower)
5106 ("xkeyboard-config" ,xkeyboard-config)
5107 ("xorg-server-xwayland" ,xorg-server-xwayland)
5108 ("zenity" ,zenity)))
5109 (synopsis "Window and compositing manager")
5110 (home-page "https://www.gnome.org")
5111 (description
5112 "Mutter is a window and compositing manager that displays and manages your
5113 desktop via OpenGL. Mutter combines a sophisticated display engine using the
5114 Clutter toolkit with solid window-management logic inherited from the Metacity
5115 window manager.")
5116 (license license:gpl2+)))
5117
5118 (define-public gnome-online-accounts
5119 (package
5120 (name "gnome-online-accounts")
5121 (version "3.30.2")
5122 (source (origin
5123 (method url-fetch)
5124 (uri (string-append "mirror://gnome/sources/" name "/"
5125 (version-major+minor version) "/"
5126 name "-" version ".tar.xz"))
5127 (sha256
5128 (base32
5129 "1p1gdgryziklrgngn6m13xnvfx4gb01h723nndfi9944r24fbiq5"))))
5130 (outputs '("out" "lib"))
5131 (build-system glib-or-gtk-build-system)
5132 (arguments
5133 `(#:configure-flags
5134 (list (string-append "--libdir=" (assoc-ref %outputs "out") "/lib"))
5135 #:phases
5136 (modify-phases %standard-phases
5137 (add-before 'configure 'patch-libgoa-output
5138 (lambda* (#:key outputs #:allow-other-keys)
5139 (let ((lib (assoc-ref outputs "lib")))
5140 (substitute* '("src/goa/Makefile.in" "src/goa/goa-1.0.pc.in")
5141 (("@prefix@") lib)
5142 (("@exec_prefix@") lib)
5143 (("@libdir@") (string-append lib "/lib"))
5144 (("@includedir@") (string-append lib "/include"))
5145 (("@datadir@") (string-append lib "/share")))
5146 ;; Make sure gobject-introspection knows about the output
5147 ;; too (see <https://bugs.gnu.org/36535>).
5148 (setenv "outputs" "out lib")
5149 #t))))))
5150 (native-inputs
5151 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5152 ("gobject-introspection" ,gobject-introspection)
5153 ("intltool" ,intltool)
5154 ("pkg-config" ,pkg-config)
5155 ("xsltproc" ,libxslt)))
5156 (propagated-inputs
5157 `(("glib" ,glib) ; required by goa-1.0.pc
5158 ("gtk+" ,gtk+))) ; required by goa-backend-1.0.pc
5159 (inputs
5160 `(("docbook-xsl" ,docbook-xsl)
5161 ("json-glib" ,json-glib)
5162 ("libsecret" ,libsecret)
5163 ("rest" ,rest)
5164 ("webkitgtk" ,webkitgtk)))
5165 (synopsis "Single sign-on framework for GNOME")
5166 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineAccounts")
5167 (description
5168 "GNOME Online Accounts provides interfaces so that applications and
5169 libraries in GNOME can access the user's online accounts. It has providers for
5170 Google, ownCloud, Facebook, Flickr, Windows Live, Pocket, Foursquare, Microsoft
5171 Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
5172 (license license:lgpl2.0+)))
5173
5174 (define-public evolution-data-server
5175 (package
5176 (name "evolution-data-server")
5177 (version "3.30.5")
5178 (source (origin
5179 (method url-fetch)
5180 (uri (string-append "mirror://gnome/sources/" name "/"
5181 (version-major+minor version) "/"
5182 name "-" version ".tar.xz"))
5183 (patches (search-patches "evolution-data-server-locales.patch"))
5184 (sha256
5185 (base32
5186 "1s952wyhgcbmq9nfgk75v15zdy1h3wy5p5rmkqibaavmc0pk3mli"))))
5187 (build-system cmake-build-system)
5188 (arguments
5189 '(#:configure-flags
5190 (let* ((lib (string-append (assoc-ref %outputs "out") "/lib"))
5191 (runpaths (map (lambda (s)
5192 (string-append lib "/evolution-data-server/" s))
5193 '("addressbook-backends" "calendar-backends"
5194 "camel-providers" "credential-modules"
5195 "registry-modules"))))
5196 (list "-DENABLE_UOA=OFF" ;disable Ubuntu Online Accounts support
5197 "-DENABLE_GOOGLE=OFF" ;disable Google Contacts support
5198 "-DENABLE_GOOGLE_AUTH=OFF" ;disable Google authentication
5199 "-DENABLE_VALA_BINDINGS=ON"
5200 (string-append "-DCMAKE_INSTALL_RPATH=" lib ";"
5201 (string-append lib "/evolution-data-server;")
5202 (string-join runpaths ";"))
5203 "-DENABLE_INTROSPECTION=ON")) ;required for Vala bindings
5204 #:phases
5205 (modify-phases %standard-phases
5206 (add-after 'unpack 'disable-failing-tests
5207 (lambda _
5208 ;; tests/book-migration/test-migration.c:160:test_fetch_contacts:
5209 ;; assertion failed (g_slist_length (contacts) == 20): (0 == 20)
5210 (delete-file-recursively "tests/book-migration")
5211 (substitute* "tests/CMakeLists.txt"
5212 (("add_subdirectory\\(book-migration\\)") ""))
5213 ;; tests/libedata-cal/test-cal-meta-backend.c:1328:test_get_attachment_uris:
5214 ;; assertion failed (uris->data == expected_uri):
5215 ;; ("" == "file:///tests/libedata-cal/components/event-1.ics")
5216 (substitute* "tests/libedata-cal/CMakeLists.txt"
5217 (("test-cal-meta-backend") ""))
5218 #t))
5219 (add-after 'unpack 'patch-paths
5220 (lambda _
5221 (substitute* '("tests/test-server-utils/e-test-server-utils.c"
5222 "tests/libedata-book/data-test-utils.c"
5223 "tests/libedata-book/test-book-cache-utils.c"
5224 "tests/libedata-cal/test-cal-cache-utils.c")
5225 (("/bin/rm") (which "rm")))
5226 #t))
5227 (add-before 'configure 'dont-override-rpath
5228 (lambda _
5229 (substitute* "CMakeLists.txt"
5230 ;; CMakeLists.txt hard-codes runpath to just the libdir.
5231 ;; Remove it so the configure flag is respected.
5232 (("SET\\(CMAKE_INSTALL_RPATH .*") ""))
5233 #t)))))
5234 (native-inputs
5235 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
5236 ("gobject-introspection" ,gobject-introspection)
5237 ("gperf" ,gperf)
5238 ("intltool" ,intltool)
5239 ("pkg-config" ,pkg-config)
5240 ("vala" ,vala)
5241 ("python" ,python-wrapper)))
5242 (propagated-inputs
5243 ;; These are all in the Requires field of .pc files.
5244 `(("gtk+" ,gtk+)
5245 ("libical" ,libical)
5246 ("libsecret" ,libsecret)
5247 ("libsoup" ,libsoup)
5248 ("nss" ,nss)
5249 ("sqlite" ,sqlite)))
5250 (inputs
5251 `(("bdb" ,bdb)
5252 ("gcr" ,gcr)
5253 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
5254 ("json-glib" ,json-glib)
5255 ("libcanberra" ,libcanberra)
5256 ("libgweather" ,libgweather)
5257 ("mit-krb5" ,mit-krb5)
5258 ("openldap" ,openldap)
5259 ("webkitgtk" ,webkitgtk)))
5260 (synopsis "Store address books and calendars")
5261 (home-page "https://wiki.gnome.org/Apps/Evolution")
5262 (description
5263 "This package provides a unified backend for programs that work with
5264 contacts, tasks, and calendar information. It was originally developed for
5265 Evolution (hence the name), but is now used by other packages as well.")
5266 (license license:lgpl2.0)))
5267
5268 (define-public caribou
5269 (package
5270 (name "caribou")
5271 (version "0.4.21")
5272 (source (origin
5273 (method url-fetch)
5274 (uri (string-append "mirror://gnome/sources/" name "/"
5275 (version-major+minor version) "/"
5276 name "-" version ".tar.xz"))
5277 (sha256
5278 (base32
5279 "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
5280 (build-system glib-or-gtk-build-system)
5281 (arguments
5282 '(#:phases
5283 (modify-phases %standard-phases
5284 (add-before
5285 'build 'pre-build
5286 (lambda* (#:key outputs #:allow-other-keys)
5287 (let ((out (assoc-ref outputs "out")))
5288 ;; Use absolute shared library path in Caribou-1.0.typelib.
5289 (substitute* "libcaribou/Makefile"
5290 (("--shared-library=libcaribou.so")
5291 (string-append "--shared-library="
5292 out "/lib/libcaribou.so")))
5293 #t)))
5294 (add-after 'install 'wrap-programs
5295 (lambda* (#:key outputs #:allow-other-keys)
5296 (let* ((out (assoc-ref outputs "out"))
5297 (python-path (getenv "PYTHONPATH"))
5298 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
5299 (for-each
5300 (lambda (prog)
5301 (wrap-program prog
5302 `("PYTHONPATH" ":" prefix (,python-path))
5303 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
5304 (list (string-append out "/bin/caribou-preferences")
5305 (string-append out "/libexec/antler-keyboard"))))
5306 #t)))))
5307 (native-inputs
5308 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5309 ("gobject-introspection" ,gobject-introspection)
5310 ("intltool" ,intltool)
5311 ("pkg-config" ,pkg-config)
5312 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
5313 ("vala" ,vala)
5314 ("xsltproc" ,libxslt)))
5315 (propagated-inputs
5316 ;; caribou-1.0.pc refers to all these.
5317 `(("libgee" ,libgee)
5318 ("libxklavier" ,libxklavier)
5319 ("libxtst" ,libxtst)
5320 ("gtk+" ,gtk+)))
5321 (inputs
5322 `(("clutter" ,clutter)
5323 ("dconf" ,dconf)
5324 ("gtk+-2" ,gtk+-2)
5325 ("python-pygobject" ,python2-pygobject)))
5326 (synopsis "Text entry and UI navigation application")
5327 (home-page "https://wiki.gnome.org/Projects/Caribou")
5328 (description
5329 "Caribou is an input assistive technology intended for switch and pointer
5330 users.")
5331 (license license:lgpl2.1)))
5332
5333 (define-public network-manager
5334 (package
5335 (name "network-manager")
5336 (version "1.14.4")
5337 (source (origin
5338 (method url-fetch)
5339 (uri (string-append "mirror://gnome/sources/NetworkManager/"
5340 (version-major+minor version) "/"
5341 "NetworkManager-" version ".tar.xz"))
5342 (patches (search-patches "nm-plugin-path.patch"))
5343 (sha256
5344 (base32
5345 "064cgj9za0kzarks0lrv0qw2ysdphb5l97iw0c964bfiqzjfv8rm"))
5346 (modules '((guix build utils)))
5347 (snippet
5348 '(begin
5349 (substitute* "src/devices/wwan/nm-modem-manager.c"
5350 (("systemd") "elogind"))
5351 #t))))
5352 (build-system gnu-build-system)
5353 (outputs '("out"
5354 "doc")) ; 8 MiB of gtk-doc HTML
5355 (arguments
5356 '(#:configure-flags
5357 (let ((out (assoc-ref %outputs "out"))
5358 (doc (assoc-ref %outputs "doc"))
5359 (dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
5360 "/sbin/dhclient")))
5361 (list "--with-libnm-glib" ; needed by network-manager-applet
5362 "--with-systemd-journal=no"
5363 "--with-session-tracking=elogind"
5364 "--with-suspend-resume=elogind"
5365 "--with-consolekit=no"
5366 "--with-crypto=gnutls"
5367 "--disable-config-plugin-ibft"
5368 "--sysconfdir=/etc"
5369 "--localstatedir=/var"
5370 (string-append "--with-udev-dir="
5371 out "/lib/udev")
5372 (string-append "--with-dbus-sys-dir="
5373 out "/etc/dbus-1/system.d")
5374 (string-append "--with-html-dir="
5375 doc "/share/gtk-doc/html")
5376 (string-append "--with-dhclient=" dhclient)))
5377 #:phases
5378 (modify-phases %standard-phases
5379 ;; This bare "ls" invocation breaks some tests.
5380 (add-after 'unpack 'patch-ls-invocation
5381 (lambda _
5382 (substitute* "build-aux/ltmain.sh"
5383 (("`ls -")
5384 (string-append "`" (which "ls") " -")))
5385 #t))
5386 (add-before 'configure 'pre-configure
5387 (lambda _
5388 ;; These tests try to test aspects of network-manager's
5389 ;; functionality within restricted containers, but they don't
5390 ;; cope with being already in the Guix build jail as that jail
5391 ;; lacks some features that they would like to proxy over (like
5392 ;; a /sys mount).
5393 (substitute* '("Makefile.in")
5394 (("src/platform/tests/test-address-linux") " ")
5395 (("src/platform/tests/test-cleanup-linux") " ")
5396 (("src/platform/tests/test-link-linux") " ")
5397 (("src/platform/tests/test-route-linux") " ")
5398 (("src/devices/tests/test-acd") "")
5399 (("src/devices/tests/test-arping") " ")
5400 (("src/devices/tests/test-lldp") " ")
5401 (("src/tests/test-route-manager-linux") " "))
5402 #t))
5403 (add-after 'unpack 'delete-failing-tests
5404 (lambda _
5405 ;; FIXME: These three tests fail for unknown reasons.
5406 ;; ERROR:libnm-core/tests/test-general.c:5842:
5407 ;; _json_config_check_valid: assertion failed (res == expected): (1 == 0)
5408 ;; ERROR:libnm-core/tests/test-keyfile.c:647:
5409 ;; test_team_conf_read_invalid: assertion failed: (nm_setting_team_get_config (s_team) == NULL)
5410 ;; ERROR:libnm-core/tests/test-setting.c:907:
5411 ;; _test_team_config_sync: assertion failed: (nm_streq0 (nm_setting_team_get_runner (s_team), runner))
5412 (substitute* "Makefile.in"
5413 (("libnm-core/tests/test-general") " ")
5414 (("libnm-core/tests/test-keyfile") " ")
5415 (("libnm-core/tests/test-setting\\$\\(EXEEXT\\)") " "))
5416 #t))
5417 (add-before 'check 'pre-check
5418 (lambda _
5419 ;; For the missing /etc/machine-id.
5420 (setenv "DBUS_FATAL_WARNINGS" "0")
5421 #t))
5422 (replace 'install
5423 (lambda _
5424 (invoke "make"
5425 "sysconfdir=/tmp"
5426 "rundir=/tmp"
5427 "statedir=/tmp"
5428 "nmstatedir=/tmp/nm"
5429 "install")
5430 #t)))))
5431 (propagated-inputs
5432 `(("glib" ,glib)))
5433 (native-inputs
5434 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
5435 ("gobject-introspection" ,gobject-introspection)
5436 ("docbook-xsl" ,docbook-xsl)
5437 ("intltool" ,intltool)
5438 ("libxslt" ,libxslt)
5439 ("libxml2" ,libxml2)
5440 ("pkg-config" ,pkg-config)
5441 ;; For testing.
5442 ("python" ,python-wrapper)
5443 ("python-dbus" ,python-dbus)
5444 ("python-pygobject" ,python-pygobject)))
5445 (inputs
5446 `(("coreutils" ,coreutils) ; for ls
5447 ("curl" ,curl)
5448 ("cyrus-sasl" ,cyrus-sasl)
5449 ("dbus-glib" ,dbus-glib)
5450 ("dnsmasq" ,dnsmasq)
5451 ("eudev" ,eudev)
5452 ("gnutls" ,gnutls)
5453 ("iptables" ,iptables)
5454 ("isc-dhcp" ,isc-dhcp)
5455 ("jansson" ,jansson)
5456 ("libgcrypt" ,libgcrypt)
5457 ("libgudev" ,libgudev)
5458 ("libndp" ,libndp)
5459 ("libnl" ,libnl)
5460 ("libsoup" ,libsoup)
5461 ("modem-manager" ,modem-manager)
5462 ("newt" ,newt) ;for the 'nmtui' console interface
5463 ("polkit" ,polkit)
5464 ("ppp" ,ppp)
5465 ("readline" ,readline)
5466 ("util-linux" ,util-linux)
5467 ("elogind" ,elogind)))
5468 (synopsis "Network connection manager")
5469 (home-page "https://www.gnome.org/projects/NetworkManager/")
5470 (description
5471 "NetworkManager is a system network service that manages your network
5472 devices and connections, attempting to keep active network connectivity when
5473 available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE
5474 devices, and provides VPN integration with a variety of different VPN
5475 services.")
5476 (license license:gpl2+)
5477 (properties '((upstream-name . "NetworkManager")))))
5478
5479 (define-public network-manager-openvpn
5480 (package
5481 (name "network-manager-openvpn")
5482 ;; Updating? Check whether network-manager-applet still needs libnm_gtk.
5483 (version "1.8.10")
5484 (source (origin
5485 (method url-fetch)
5486 (uri (string-append
5487 "mirror://gnome/sources/NetworkManager-openvpn/"
5488 (version-major+minor version)
5489 "/NetworkManager-openvpn-" version ".tar.xz"))
5490 (sha256
5491 (base32
5492 "1vri49yff4lj13dnzkpq9nx3a4z1bmbrv807r151plj8m1mwhg5g"))))
5493 (build-system gnu-build-system)
5494 (arguments
5495 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
5496 #:phases
5497 (modify-phases %standard-phases
5498 (add-after 'configure 'patch-path
5499 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
5500 (let* ((ovpn (string-append (assoc-ref inputs "openvpn")
5501 "/sbin/openvpn"))
5502 (modprobe (string-append (assoc-ref inputs "kmod")
5503 "/bin/modprobe"))
5504 (pretty-ovpn (string-append "\"" ovpn "\"")))
5505 (for-each
5506 (lambda (file)
5507 (substitute* file
5508 (("\"/usr/local/sbin/openvpn\"") pretty-ovpn)
5509 (("\"/usr/sbin/openvpn\"") pretty-ovpn)
5510 (("\"/sbin/openvpn\"") pretty-ovpn)
5511 (("/sbin/modprobe") modprobe)))
5512 '("src/nm-openvpn-service.c" "properties/nm-openvpn-editor.c")))
5513 #t)))))
5514 (native-inputs
5515 `(("pkg-config" ,pkg-config)
5516 ("intltool" ,intltool)))
5517 (inputs
5518 `(("gtk+" ,gtk+)
5519 ("kmod" ,kmod)
5520 ("openvpn" ,openvpn)
5521 ("network-manager" ,network-manager)
5522 ("network-manager-applet" ,network-manager-applet) ;for libnma
5523 ("libsecret" ,libsecret)))
5524 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
5525 (synopsis "OpenVPN plug-in for NetworkManager")
5526 (description
5527 "This extension of NetworkManager allows it to take care of connections
5528 to virtual private networks (VPNs) via OpenVPN.")
5529 (license license:gpl2+)
5530 (properties `((upstream-name . "NetworkManager-openvpn")))))
5531
5532 (define-public network-manager-vpnc
5533 (package
5534 (name "network-manager-vpnc")
5535 (version "1.2.6")
5536 (source (origin
5537 (method url-fetch)
5538 (uri (string-append
5539 "mirror://gnome/sources/NetworkManager-vpnc/"
5540 (version-major+minor version)
5541 "/NetworkManager-vpnc-" version ".tar.xz"))
5542 (sha256
5543 (base32
5544 "1js5lwcsqws4klgypfxl4ikmakv7v7xgddij1fj6b0y0qicx0kyy"))))
5545 (build-system gnu-build-system)
5546 (arguments
5547 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
5548 #:phases
5549 (modify-phases %standard-phases
5550 (add-after 'configure 'patch-path
5551 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
5552 (let* ((vpnc (string-append (assoc-ref inputs "vpnc")
5553 "/sbin/vpnc"))
5554 (modprobe (string-append (assoc-ref inputs "kmod")
5555 "/bin/modprobe"))
5556 (pretty-ovpn (string-append "\"" vpnc "\"")))
5557 (substitute* "src/nm-vpnc-service.c"
5558 (("\"/usr/local/sbin/vpnc\"") pretty-ovpn)
5559 (("\"/usr/sbin/vpnc\"") pretty-ovpn)
5560 (("\"/sbin/vpnc\"") pretty-ovpn)
5561 (("/sbin/modprobe") modprobe)))
5562 #t)))))
5563 (native-inputs
5564 `(("pkg-config" ,pkg-config)
5565 ("intltool" ,intltool)))
5566 (inputs
5567 `(("gtk+" ,gtk+)
5568 ("kmod" ,kmod)
5569 ("vpnc" ,vpnc)
5570 ("network-manager" ,network-manager)
5571 ("network-manager-applet" ,network-manager-applet) ;for libnma
5572 ("libsecret" ,libsecret)))
5573 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
5574 (synopsis "VPNC plug-in for NetworkManager")
5575 (description
5576 "Support for configuring virtual private networks based on VPNC.
5577 Compatible with Cisco VPN concentrators configured to use IPsec.")
5578 (license license:gpl2+)
5579 (properties `((upstream-name . "NetworkManager-vpnc")))))
5580
5581 (define-public network-manager-openconnect
5582 (package
5583 (name "network-manager-openconnect")
5584 (version "1.2.6")
5585 (source (origin
5586 (method url-fetch)
5587 (uri (string-append
5588 "mirror://gnome/sources/NetworkManager-openconnect/"
5589 (version-major+minor version)
5590 "/NetworkManager-openconnect-" version ".tar.xz"))
5591 (sha256
5592 (base32
5593 "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m"))))
5594 (build-system gnu-build-system)
5595 (arguments
5596 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
5597 #:phases
5598 (modify-phases %standard-phases
5599 (add-after 'configure 'patch-path
5600 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
5601 (let* ((openconnect (string-append (assoc-ref inputs "openconnect")
5602 "/sbin/openconnect"))
5603 (modprobe (string-append (assoc-ref inputs "kmod")
5604 "/bin/modprobe"))
5605 (pretty-ovpn (string-append "\"" openconnect "\"")))
5606 (substitute* "src/nm-openconnect-service.c"
5607 (("\"/usr/local/sbin/openconnect\"") pretty-ovpn)
5608 (("\"/usr/sbin/openconnect\"") pretty-ovpn)
5609 (("/sbin/modprobe") modprobe)))
5610 #t)))))
5611 (native-inputs
5612 `(("intltool" ,intltool)
5613 ("network-manager-applet" ,network-manager-applet) ;for libnma
5614 ("pkg-config" ,pkg-config)))
5615 (inputs
5616 `(("gcr" ,gcr)
5617 ("gtk+" ,gtk+)
5618 ("kmod" ,kmod)
5619 ("libsecret" ,libsecret)
5620 ("libxml2" ,libxml2)
5621 ("network-manager" ,network-manager)
5622 ("openconnect" ,openconnect)))
5623 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
5624 (synopsis "OpenConnect plug-in for NetworkManager")
5625 (description
5626 "This extension of NetworkManager allows it to take care of connections
5627 to @acronym{VPNs, virtual private networks} via OpenConnect, an open client for
5628 Cisco's AnyConnect SSL VPN.")
5629 (license license:gpl2+)
5630 (properties `((upstream-name . "NetworkManager-openconnect")
5631
5632 ;; The 'etc/dbus-1/system.d/nm-openconnect-service.conf'
5633 ;; file refers to account "nm-openconnect". Specify it here
5634 ;; so that 'network-manager-service-type' creates it.
5635 (user-accounts . ("nm-openconnect"))))))
5636
5637 (define-public mobile-broadband-provider-info
5638 (package
5639 (name "mobile-broadband-provider-info")
5640 (version "20190116")
5641 (source (origin
5642 (method url-fetch)
5643 (uri (string-append
5644 "mirror://gnome/sources/"
5645 "mobile-broadband-provider-info/" version "/"
5646 "mobile-broadband-provider-info-" version ".tar.xz"))
5647 (sha256
5648 (base32
5649 "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"))))
5650 (build-system gnu-build-system)
5651 (arguments
5652 `(#:tests? #f)) ; no tests
5653 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
5654 (synopsis "Database of broadband connection configuration")
5655 (description "Database of broadband connection configuration.")
5656 (license license:public-domain)))
5657
5658 (define-public network-manager-applet
5659 (package
5660 (name "network-manager-applet")
5661 (version "1.8.24")
5662 (source (origin
5663 (method url-fetch)
5664 (uri (string-append "mirror://gnome/sources/network-manager-applet/"
5665 (version-major+minor version) "/"
5666 "network-manager-applet-" version ".tar.xz"))
5667 (sha256
5668 (base32
5669 "1gzvz4wfqfsfclqg56y954al8x6fmz71cnxlx1i4nqr7a25bp2qi"))))
5670 (build-system meson-build-system)
5671 (arguments
5672 '(#:configure-flags
5673 ;; ‘Nobody should be using this’ but network-manager-openvpn 1.8.10 does.
5674 (list "-Dlibnm_gtk=true")
5675 #:glib-or-gtk? #t))
5676 (native-inputs
5677 `(("intltool" ,intltool)
5678 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
5679 ("gobject-introspection" ,gobject-introspection)
5680 ("gtk-doc" ,gtk-doc)
5681 ("pkg-config" ,pkg-config)))
5682 (propagated-inputs
5683 ;; libnm-gtk.pc refers to all these.
5684 `(("dbus-glib" ,dbus-glib)
5685 ("gtk+" ,gtk+)
5686 ("network-manager" ,network-manager)))
5687 (inputs
5688 `(("gcr" ,gcr)
5689 ("iso-codes" ,iso-codes)
5690 ("libgudev" ,libgudev)
5691 ("libnotify" ,libnotify)
5692 ("libsecret" ,libsecret)
5693 ("libselinux" ,libselinux)
5694 ("jansson" ,jansson) ; for team support
5695 ("modem-manager" ,modem-manager)
5696 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)))
5697 (synopsis "Applet for managing network connections")
5698 (home-page "https://www.gnome.org/projects/NetworkManager/")
5699 (description
5700 "This package contains a systray applet for NetworkManager. It displays
5701 the available networks and allows users to easily switch between them.")
5702 (license license:gpl2+)))
5703
5704 (define-public libxml++
5705 (package
5706 (name "libxml++")
5707 (version "3.0.1")
5708 (source (origin
5709 (method url-fetch)
5710 (uri (string-append "mirror://gnome/sources/" name "/"
5711 (version-major+minor version) "/"
5712 name "-" version ".tar.xz"))
5713 (sha256
5714 (base32
5715 "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"))))
5716 (build-system gnu-build-system)
5717 ;; libxml++-3.0.pc refers to all these.
5718 (propagated-inputs
5719 `(("libxml2" ,libxml2)
5720 ("glibmm" ,glibmm)))
5721 (native-inputs
5722 `(("perl" ,perl)
5723 ("pkg-config" ,pkg-config)))
5724 (home-page "http://libxmlplusplus.sourceforge.net/")
5725 (synopsis "C++ wrapper for XML parser library libxml2")
5726 (description
5727 "This package provides a C++ wrapper for the XML parser library
5728 libxml2.")
5729 (license license:lgpl2.1+)))
5730
5731 (define-public libxml++-2
5732 (package
5733 (inherit libxml++)
5734 (name "libxml++")
5735 (version "2.40.1")
5736 (source (origin
5737 (method url-fetch)
5738 (uri (string-append "mirror://gnome/sources/" name "/"
5739 (version-major+minor version) "/"
5740 name "-" version ".tar.xz"))
5741 (sha256
5742 (base32
5743 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
5744
5745 (define-public gdm
5746 (package
5747 (name "gdm")
5748 (version "3.30.3")
5749 (source (origin
5750 (method url-fetch)
5751 (uri (string-append "mirror://gnome/sources/" name "/"
5752 (version-major+minor version) "/"
5753 name "-" version ".tar.xz"))
5754 (sha256
5755 (base32
5756 "15f7lz7z75krgbq8vb800afj96h8mw2fpy1s28za2911x5vgq0ak"))))
5757 (build-system glib-or-gtk-build-system)
5758 (arguments
5759 '(#:configure-flags
5760 `("--without-plymouth"
5761 "--disable-systemd-journal"
5762
5763 ;; Using --with-initial-vt=7 allows GDM to run alongside TTY 1,
5764 ;; instead of having to replace it (i.e., stopping the mingetty
5765 ;; service for TTY 1 before starting GDM).
5766 "--with-initial-vt=7"
5767
5768 ;; Use '/etc/environment' for locale settings instead of the
5769 ;; systemd-specific '/etc/locale.conf'.
5770 "--with-lang-file=/etc/environment"
5771
5772 ,(string-append "--with-udevdir="
5773 (assoc-ref %outputs "out") "/lib/udev")
5774
5775 "--localstatedir=/var"
5776 ,(string-append "--with-default-path="
5777 (string-join '("/run/setuid-programs"
5778 "/run/current-system/profile/bin"
5779 "/run/current-system/profile/sbin")
5780 ":"))
5781 ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
5782 ;; XDG_DATA_DIRS so that it finds its schemas.
5783 "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
5784 #:phases
5785 (modify-phases %standard-phases
5786 (add-before
5787 'configure 'pre-configure
5788 (lambda* (#:key inputs outputs #:allow-other-keys)
5789 ;; We don't have <systemd/sd-daemon.h>.
5790 (substitute* '("common/gdm-log.c"
5791 "daemon/gdm-server.c"
5792 "daemon/gdm-session-worker.c"
5793 "daemon/gdm-session-worker-job.c")
5794 (("#include <systemd/sd-daemon\\.h>") ""))
5795 ;; Use elogind for sd-login.
5796 (substitute* '("common/gdm-common.c"
5797 "daemon/gdm-manager.c"
5798 "libgdm/gdm-user-switching.c")
5799 (("#include <systemd/sd-login\\.h>")
5800 "#include <elogind/sd-login.h>"))
5801 ;; Check for elogind.
5802 (substitute* '("configure")
5803 (("libsystemd")
5804 "libelogind"))
5805 ;; Look for system-installed sessions in
5806 ;; /run/current-system/profile/share.
5807 (substitute* '("libgdm/gdm-sessions.c"
5808 "daemon/gdm-session.c"
5809 "daemon/gdm-display.c"
5810 "daemon/gdm-launch-environment.c")
5811 (("DATADIR \"/x")
5812 "\"/run/current-system/profile/share/x")
5813 (("DATADIR \"/wayland")
5814 "\"/run/current-system/profile/share/wayland")
5815 (("DATADIR \"/gnome")
5816 "\"/run/current-system/profile/share/gnome"))
5817 (let ((propagate '("GDM_CUSTOM_CONF"
5818 "GDM_DBUS_DAEMON"
5819 "GDM_X_SERVER"
5820 "GDM_X_SESSION"
5821 ;; XXX: Remove this once GNOME Shell is
5822 ;; a dependency of GDM.
5823 "XDG_DATA_DIRS")))
5824 (substitute* "daemon/gdm-session.c"
5825 (("set_up_session_environment \\(self\\);")
5826 (apply string-append
5827 "set_up_session_environment (self);\n"
5828 (map (lambda (name)
5829 (string-append
5830 "gdm_session_set_environment_variable "
5831 "(self, \"" name "\","
5832 "g_getenv (\"" name "\"));\n"))
5833 propagate)))))
5834 ;; Find the configuration file using an environment variable.
5835 (substitute* '("common/gdm-settings.c")
5836 (("GDM_CUSTOM_CONF")
5837 (string-append "(g_getenv(\"GDM_CUSTOM_CONF\") != NULL"
5838 " ? g_getenv(\"GDM_CUSTOM_CONF\")"
5839 " : GDM_CUSTOM_CONF)")))
5840 ;; Use service-supplied path to X.
5841 (substitute* '("daemon/gdm-server.c")
5842 (("\\(X_SERVER X_SERVER_ARG_FORMAT")
5843 "(\"%s\" X_SERVER_ARG_FORMAT, g_getenv (\"GDM_X_SERVER\")"))
5844 (substitute* '("daemon/gdm-x-session.c")
5845 (("\"dbus-daemon\"")
5846 "g_getenv (\"GDM_DBUS_DAEMON\")")
5847 (("X_SERVER")
5848 "g_getenv (\"GDM_X_SERVER\")")
5849 (("GDMCONFDIR \"/Xsession\"")
5850 "g_getenv (\"GDM_X_SESSION\")"))
5851 ;; Use an absolute path for GNOME Session.
5852 (substitute* "daemon/gdm-launch-environment.c"
5853 (("\"gnome-session\"")
5854 (string-append "\"" (assoc-ref inputs "gnome-session")
5855 "/bin/gnome-session\"")))
5856 ;; Do not automatically select the placeholder session.
5857 (substitute* "daemon/gdm-session.c"
5858 (("!g_str_has_suffix [(]base_name, \"\\.desktop\"[)]")
5859 (string-append "!g_str_has_suffix (base_name, \".desktop\") || "
5860 "(g_strcmp0(search_dirs[i], \""
5861 (assoc-ref outputs "out") "/share/gdm/BuiltInSessions/"
5862 "\") == 0 && "
5863 "g_strcmp0(base_name, \"fail.desktop\") == 0)"))
5864 (("g_error [(]\"GdmSession: no session desktop files installed, aborting\\.\\.\\.\"[)];")
5865 "{ self->priv->fallback_session_name = g_strdup(\"fail\"); goto out; }"))
5866 #t))
5867 ;; GDM requires that there be at least one desktop entry
5868 ;; file. This phase installs a hidden one that simply
5869 ;; fails. This enables users to use GDM with a
5870 ;; '~/.xsession' script with no other desktop entry files.
5871 ;; See <https://bugs.gnu.org/35068>.
5872 (add-after 'install 'install-placeholder-desktop-entry
5873 (lambda* (#:key inputs outputs #:allow-other-keys)
5874 (let* ((out (assoc-ref outputs "out"))
5875 (sessions (string-append out "/share/gdm/BuiltInSessions"))
5876 (fail (string-append sessions "/fail.desktop")))
5877 (mkdir-p sessions)
5878 (with-output-to-file fail
5879 (lambda ()
5880 (for-each
5881 display
5882 '("[Desktop Entry]\n"
5883 "Encoding=UTF-8\n"
5884 "Type=Application\n"
5885 "Name=Fail\n"
5886 "Comment=This session fails immediately.\n"
5887 "NoDisplay=true\n"
5888 "Exec=false\n"))))
5889 #t)))
5890 ;; GDM needs GNOME Session to run these applications. We link
5891 ;; their autostart files in `share/gdm/greeter/autostart'
5892 ;; because GDM explicitly tells GNOME Session to look there.
5893 ;;
5894 ;; XXX: GNOME Shell should be linked here too, but currently
5895 ;; GNOME Shell depends on GDM.
5896 (add-after 'install 'link-autostart-files
5897 (lambda* (#:key inputs outputs #:allow-other-keys)
5898 (let* ((out (assoc-ref outputs "out"))
5899 (autostart (string-append out "/share/gdm/"
5900 "greeter/autostart"))
5901 (settings (assoc-ref inputs "gnome-settings-daemon")))
5902 (mkdir-p autostart)
5903 (with-directory-excursion autostart
5904 (for-each (lambda (desktop)
5905 (symlink desktop (basename desktop)))
5906 (find-files (string-append settings "/etc/xdg"))))
5907 #t))))))
5908 (native-inputs
5909 `(("dconf" ,dconf)
5910 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5911 ("gobject-introspection" ,gobject-introspection)
5912 ("intltool" ,intltool)
5913 ("itstool" ,itstool)
5914 ("pkg-config" ,pkg-config)
5915 ("xmllint" ,libxml2)))
5916 (inputs
5917 `(("accountsservice" ,accountsservice)
5918 ("check" ,check) ; for testing
5919 ("elogind" ,elogind)
5920 ("gnome-session" ,gnome-session)
5921 ("gnome-settings-daemon" ,gnome-settings-daemon)
5922 ("gtk+" ,gtk+)
5923 ("iso-codes" ,iso-codes)
5924 ("libcanberra" ,libcanberra)
5925 ("linux-pam" ,linux-pam)))
5926 (synopsis "Display manager for GNOME")
5927 (home-page "https://wiki.gnome.org/Projects/GDM/")
5928 (description
5929 "GNOME Display Manager is a system service that is responsible for
5930 providing graphical log-ins and managing local and remote displays.")
5931 (license license:gpl2+)))
5932
5933 (define-public libgtop
5934 (package
5935 (name "libgtop")
5936 (version "2.40.0")
5937 (source (origin
5938 (method url-fetch)
5939 (uri (string-append "mirror://gnome/sources/libgtop/"
5940 (version-major+minor version) "/"
5941 "libgtop-" version ".tar.xz"))
5942 (sha256
5943 (base32
5944 "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq"))))
5945 (build-system gnu-build-system)
5946 (native-inputs
5947 `(("gobject-introspection" ,gobject-introspection)
5948 ("intltool" ,intltool)
5949 ("perl" ,perl)
5950 ("pkg-config" ,pkg-config)))
5951 (propagated-inputs
5952 `(("glib" ,glib))) ; required by libgtop-2.0.pc
5953 (synopsis "Portable system access library")
5954 (home-page "https://www.gnome.org/")
5955 (description
5956 "LibGTop is a library to get system specific data such as CPU and memory
5957 usage and information about running processes.")
5958 (license license:gpl2+)))
5959
5960 (define-public gnome-bluetooth
5961 (package
5962 (name "gnome-bluetooth")
5963 (version "3.28.0")
5964 (source (origin
5965 (method url-fetch)
5966 (uri (string-append "mirror://gnome/sources/" name "/"
5967 (version-major+minor version) "/"
5968 name "-" version ".tar.xz"))
5969 (sha256
5970 (base32
5971 "0q7yzklrlayj99risj096mr5x35anx94wvr6nbf6pwbvvzv7453p"))))
5972 (build-system meson-build-system)
5973 (native-inputs
5974 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
5975 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
5976 ("gobject-introspection" ,gobject-introspection)
5977 ("intltool" ,intltool)
5978 ("pkg-config" ,pkg-config)
5979 ("xmllint" ,libxml2)))
5980 (propagated-inputs
5981 ;; gnome-bluetooth-1.0.pc refers to all these.
5982 `(("gtk+" ,gtk+)
5983 ("udev" ,eudev)))
5984 (inputs
5985 `(("libcanberra" ,libcanberra)
5986 ("libnotify" ,libnotify)))
5987 (synopsis "GNOME Bluetooth subsystem")
5988 (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
5989 (description
5990 "This package contains tools for managing and manipulating Bluetooth
5991 devices using the GNOME desktop.")
5992 (license license:lgpl2.1+)))
5993
5994 (define-public gnome-control-center
5995 (package
5996 (name "gnome-control-center")
5997 (version "3.30.3")
5998 (source (origin
5999 (method url-fetch)
6000 (uri (string-append "mirror://gnome/sources/" name "/"
6001 (version-major+minor version) "/"
6002 name "-" version ".tar.xz"))
6003 (sha256
6004 (base32
6005 "0gih1cmqbv803kp30704sllghb0impa0mmv3j8pndfg4zr2mnq9r"))
6006 (patches
6007 (search-patches "gnome-control-center-udisks.patch"))))
6008 (build-system meson-build-system)
6009 (arguments
6010 '(#:glib-or-gtk? #t
6011 #:configure-flags
6012 (list "-Dcheese=false"
6013 (string-append "-Dgnome_session_libexecdir="
6014 (assoc-ref %build-inputs "gnome-session")
6015 "/libexec"))
6016 #:phases
6017 (modify-phases %standard-phases
6018 (add-before 'configure 'patch-paths
6019 (lambda* (#:key inputs #:allow-other-keys)
6020 (let ((libc (assoc-ref inputs "libc"))
6021 (tzdata (assoc-ref inputs "tzdata"))
6022 (libgnomekbd (assoc-ref inputs "libgnomekbd"))
6023 (nm-applet (assoc-ref inputs "network-manager-applet"))
6024 (gnome-desktop (assoc-ref inputs "gnome-desktop")))
6025 (substitute* "panels/datetime/tz.h"
6026 (("/usr/share/zoneinfo/zone.tab")
6027 (string-append tzdata "/share/zoneinfo/zone.tab")))
6028 (substitute* "tests/datetime/test-endianess.c"
6029 (("/usr/share/locale")
6030 (string-append libc "/share/locale")))
6031 (substitute* "panels/region/cc-region-panel.c"
6032 (("\"gkbd-keyboard-display")
6033 (string-append "\"" libgnomekbd
6034 "/bin/gkbd-keyboard-display")))
6035 (substitute* '("panels/network/net-device-wifi.c"
6036 "panels/network/net-device.c"
6037 "panels/network/connection-editor/net-connection-editor.c")
6038 (("\"nm-connection-editor")
6039 (string-append "\"" nm-applet
6040 "/bin/nm-connection-editor")))
6041 (substitute* '("panels/user-accounts/run-passwd.c")
6042 (("/usr/bin/passwd")
6043 "/run/setuid-programs/passwd"))
6044 (substitute* "panels/info/cc-info-overview-panel.c"
6045 (("DATADIR \"/gnome/gnome-version.xml\"")
6046 (string-append "\"" gnome-desktop
6047 "/share/gnome/gnome-version.xml\"")))
6048 #t))))))
6049 (native-inputs
6050 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
6051 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6052 ("intltool" ,intltool)
6053 ("pkg-config" ,pkg-config)
6054 ("xsltproc" ,libxslt)))
6055 (inputs
6056 `(("accountsservice" ,accountsservice)
6057 ("clutter-gtk" ,clutter-gtk)
6058 ("colord-gtk" ,colord-gtk)
6059 ("cups" ,cups)
6060 ("dconf" ,dconf)
6061 ("docbook-xsl" ,docbook-xsl)
6062 ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
6063 ("gnome-bluetooth" ,gnome-bluetooth)
6064 ("gnome-desktop" ,gnome-desktop)
6065 ("gnome-online-accounts" ,gnome-online-accounts)
6066 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6067 ("gnome-session" ,gnome-session)
6068 ("gnome-settings-daemon" ,gnome-settings-daemon)
6069 ("grilo" ,grilo)
6070 ("ibus" ,ibus)
6071 ("libcanberra" ,libcanberra)
6072 ("libgnomekbd" ,libgnomekbd)
6073 ("libgudev" ,libgudev)
6074 ("libgtop" ,libgtop)
6075 ("libpwquality" ,libpwquality)
6076 ("libsecret" ,libsecret)
6077 ("libsoup" ,libsoup)
6078 ("libxml2" ,libxml2)
6079 ("libwacom" ,libwacom)
6080 ("mesa" ,mesa)
6081 ("mit-krb5" ,mit-krb5)
6082 ("modem-manager" ,modem-manager)
6083 ("network-manager-applet" ,network-manager-applet)
6084 ("polkit" ,polkit)
6085 ("pulseaudio" ,pulseaudio)
6086 ("smbclient" ,samba)
6087 ("tzdata" ,tzdata)
6088 ("udisks" ,udisks)
6089 ("upower" ,upower)))
6090 (synopsis "Utilities to configure the GNOME desktop")
6091 (home-page "https://www.gnome.org/")
6092 (description
6093 "This package contains configuration applets for the GNOME desktop,
6094 allowing to set accessibility configuration, desktop fonts, keyboard and mouse
6095 properties, sound setup, desktop theme and background, user interface
6096 properties, screen resolution, and other GNOME parameters.")
6097 (license license:gpl2+)))
6098
6099 (define-public gnome-shell
6100 (package
6101 (name "gnome-shell")
6102 (version "3.30.2")
6103 (source (origin
6104 (method url-fetch)
6105 (uri (string-append "mirror://gnome/sources/" name "/"
6106 (version-major+minor version) "/"
6107 name "-" version ".tar.xz"))
6108 (sha256
6109 (base32
6110 "0kacd4w9lc5finsvs170i7827qkxwd1ddj0g2giizwffpjdjqqr2"))
6111 (patches (search-patches "gnome-shell-theme.patch"))
6112 (modules '((guix build utils)))
6113 (snippet
6114 #~(begin
6115 ;; Copy images for use on the GDM log-in screen.
6116 (copy-file #$(file-append %artwork-repository
6117 "/slim/0.x/background.png")
6118 "data/theme/guix-background.png")
6119 (copy-file #$(file-append %artwork-repository
6120 "/logo/Guix-horizontal-white.svg")
6121 "data/theme/guix-logo.svg")
6122 #t))))
6123 (build-system meson-build-system)
6124 (arguments
6125 `(#:glib-or-gtk? #t
6126 #:disallowed-references ((,glib "bin")
6127 ,inkscape ,libxslt
6128 ,ruby-sass)
6129 #:configure-flags
6130 (list "-Dsystemd=false"
6131 ;; Otherwise, the RUNPATH will lack the final path component.
6132 (string-append "-Dc_link_args=-Wl,-rpath="
6133 (assoc-ref %outputs "out")
6134 "/lib/gnome-shell"))
6135
6136 #:modules ((guix build meson-build-system)
6137 (guix build utils)
6138 (srfi srfi-1))
6139
6140 #:phases
6141 (modify-phases %standard-phases
6142 (add-after 'unpack 'fix-keysdir
6143 (lambda* (#:key outputs #:allow-other-keys)
6144 (let* ((out (assoc-ref outputs "out"))
6145 (keysdir (string-append
6146 out "/share/gnome-control-center/keybindings")))
6147 (substitute* "meson.build"
6148 (("keysdir =.*")
6149 (string-append "keysdir = '" keysdir "'\n")))
6150 #t)))
6151 (add-before 'configure 'convert-logo-to-png
6152 (lambda* (#:key inputs #:allow-other-keys)
6153 ;; Convert the logo from SVG to PNG.
6154 (invoke "inkscape" "--export-png=data/theme/guix-logo.png"
6155 "data/theme/guix-logo.svg")))
6156 (add-before 'configure 'record-absolute-file-names
6157 (lambda* (#:key inputs #:allow-other-keys)
6158 (substitute* "js/misc/ibusManager.js"
6159 (("'ibus-daemon'")
6160 (string-append "'" (assoc-ref inputs "ibus")
6161 "/bin/ibus-daemon'")))
6162 (substitute* "js/ui/status/keyboard.js"
6163 (("'gkbd-keyboard-display'")
6164 (string-append "'" (assoc-ref inputs "libgnomekbd")
6165 "/bin/gkbd-keyboard-display'")))
6166 #t))
6167 (add-before 'check 'pre-check
6168 (lambda* (#:key inputs #:allow-other-keys)
6169 ;; Tests require a running X server.
6170 (system "Xvfb :1 &")
6171 (setenv "DISPLAY" ":1")
6172 #t))
6173 (add-after 'install 'wrap-programs
6174 (lambda* (#:key inputs outputs #:allow-other-keys)
6175 (let ((out (assoc-ref outputs "out"))
6176 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6177 (python-path (getenv "PYTHONPATH")))
6178 (wrap-program (string-append out "/bin/gnome-shell")
6179 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6180 ;; FIXME: gnome-shell loads these libraries with unqualified
6181 ;; names only, so they need to be on LD_LIBRARY_PATH. The
6182 ;; alternative might be to patch gnome-shell.
6183 `("LD_LIBRARY_PATH" ":" prefix
6184 ,(map (lambda (pkg)
6185 (string-append (assoc-ref inputs pkg) "/lib"))
6186 '("gdk-pixbuf"
6187 "gnome-bluetooth" "librsvg" "libgweather"))))
6188 (for-each
6189 (lambda (prog)
6190 (wrap-program (string-append out "/bin/" prog)
6191 `("PYTHONPATH" ":" prefix (,python-path))
6192 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6193 '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
6194 #t)))
6195 (replace 'glib-or-gtk-wrap
6196 (let ((wrap (assoc-ref %standard-phases 'glib-or-gtk-wrap)))
6197 (lambda* (#:key inputs outputs #:allow-other-keys #:rest rest)
6198 ;; By default Inkscape et al. would end up in the XDG_DATA_DIRS
6199 ;; settings of the wrappers created by the 'glib-or-gtk-wrap'
6200 ;; phase. Fix that since we don't need these.
6201 (wrap #:inputs (fold alist-delete inputs
6202 '("inkscape" "intltool" "glib:bin"))
6203 #:outputs outputs)))))))
6204 (native-inputs
6205 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6206 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6207 ("gobject-introspection" ,gobject-introspection)
6208 ("inkscape" ,inkscape)
6209 ("intltool" ,intltool)
6210 ("pkg-config" ,pkg-config)
6211 ("python" ,python)
6212 ("ruby-sass" ,ruby-sass)
6213 ("sassc" ,sassc)
6214 ("xsltproc" ,libxslt)
6215 ;; For tests
6216 ("xorg-server" ,xorg-server-for-tests)))
6217 (inputs
6218 `(("accountsservice" ,accountsservice)
6219 ("caribou" ,caribou)
6220 ("docbook-xsl" ,docbook-xsl)
6221 ("evolution-data-server" ,evolution-data-server)
6222 ("gcr" ,gcr)
6223 ("gdm" ,gdm)
6224 ("gdk-pixbuf" ,gdk-pixbuf+svg)
6225 ("gjs" ,gjs)
6226 ("gnome-bluetooth" ,gnome-bluetooth)
6227 ("gnome-desktop" ,gnome-desktop)
6228 ("gnome-settings-daemon" ,gnome-settings-daemon)
6229 ("gst-plugins-base" ,gst-plugins-base)
6230 ("ibus" ,ibus)
6231 ("libcanberra" ,libcanberra)
6232 ("libcroco" ,libcroco)
6233 ("libgnomekbd" ,libgnomekbd) ;for gkbd-keyboard-display
6234 ("libgweather" ,libgweather)
6235 ("libsoup" ,libsoup)
6236 ("mesa-headers" ,mesa-headers)
6237 ("mutter" ,mutter)
6238 ("network-manager-applet" ,network-manager-applet)
6239 ("polkit" ,polkit)
6240 ("pulseaudio" ,pulseaudio)
6241 ("python-pygobject" ,python-pygobject)
6242 ("startup-notification" ,startup-notification)
6243 ("telepathy-logger" ,telepathy-logger)
6244 ("upower" ,upower)
6245 ;; XXX: These requirements were added in 3.24, but no mention in NEWS.
6246 ;; Missing propagation? See also: <https://bugs.gnu.org/27264>
6247 ("librsvg" ,librsvg)
6248 ("geoclue" ,geoclue)))
6249 (synopsis "Desktop shell for GNOME")
6250 (home-page "https://wiki.gnome.org/Projects/GnomeShell")
6251 (description
6252 "GNOME Shell provides core user interface functions for the GNOME desktop,
6253 like switching to windows and launching applications.")
6254 (license license:gpl2+)))
6255
6256 (define-public gtk-vnc
6257 (package
6258 (name "gtk-vnc")
6259 (version "0.9.0")
6260 (source
6261 (origin
6262 (method url-fetch)
6263 (uri (string-append "mirror://gnome/sources/" name "/"
6264 (version-major+minor version) "/"
6265 name "-" version ".tar.xz"))
6266 (sha256
6267 (base32
6268 "1dya1wc9vis8h0fv625pii1n70cckf1xjg1m2hndz989d118i6is"))))
6269 (build-system gnu-build-system)
6270 (arguments
6271 '(#:configure-flags '("--with-gtk=3.0")))
6272 (propagated-inputs
6273 `(("gtk+" ,gtk+))) ; required by gtk-vnc-2.0.pc.
6274 (inputs
6275 `(("cyrus-sasl" ,cyrus-sasl)
6276 ("gnutls" ,gnutls)
6277 ("libgcrypt" ,libgcrypt)
6278 ("pulseaudio" ,pulseaudio)))
6279 (native-inputs
6280 `(("glib:bin" ,glib "bin")
6281 ("gobject-introspection" ,gobject-introspection)
6282 ("intltool" ,intltool)
6283 ("pkg-config" ,pkg-config)
6284 ("python-wrapper" ,python-wrapper)
6285 ("vala" ,vala)))
6286 (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
6287 (synopsis "VNC viewer widget for GTK+")
6288 (description
6289 "GTK-VNC is a VNC viewer widget for GTK+, used by remote desktop viewing
6290 applications, for instance the Vinagre client, GNOME Boxes and virt-viewer.
6291 GTK-VNC implements client side RFB protocol and authentication extensions such
6292 as SASL, TLS and VeNCrypt. Additionally it supports encoding extensions.")
6293 (license license:lgpl2.1+)))
6294
6295 (define-public gnome-autoar
6296 (package
6297 (name "gnome-autoar")
6298 (version "0.2.3")
6299 (source (origin
6300 (method url-fetch)
6301 (uri (string-append "mirror://gnome/sources/" name "/"
6302 (version-major+minor version) "/"
6303 name "-" version ".tar.xz"))
6304 (sha256
6305 (base32
6306 "02i4zgqqqj56h7bcys6dz7n78m4nj2x4dv1ggjmnrk98n06xpsax"))))
6307 (build-system glib-or-gtk-build-system)
6308 (native-inputs
6309 `(("gnome-common" ,gnome-common)
6310 ("gobject-introspection" ,gobject-introspection)
6311 ("pkg-config" ,pkg-config)))
6312 (propagated-inputs
6313 `(("libarchive" ,libarchive))) ; XXX document why
6314 (inputs
6315 `(("gtk+" ,gtk+)))
6316 (synopsis "Archives integration support for GNOME")
6317 (home-page "https://git.gnome.org/browse/gnome-autoar/")
6318 (description
6319 "GNOME Autoar is a library which makes creating and extracting archives
6320 easy, safe, and automatic.")
6321 (license license:lgpl2.1+)))
6322
6323 (define-public tracker
6324 (package
6325 (name "tracker")
6326 (version "2.0.4")
6327 (source (origin
6328 (method url-fetch)
6329 (uri (string-append "mirror://gnome/sources/tracker/"
6330 (version-major+minor version) "/"
6331 "tracker-" version ".tar.xz"))
6332 (sha256
6333 (base32
6334 "1mfc5lv820kr7ssi7hldn25gmshh65k19kh478qjsnb64sshsbyf"))))
6335 (build-system glib-or-gtk-build-system)
6336 (arguments
6337 `(#:phases
6338 (modify-phases %standard-phases
6339 (add-after 'unpack 'disable-broken-tests
6340 (lambda _
6341 ;; FIXME: Most of these fail with GLib-GIO-FATAL-ERROR: Settings
6342 ;; schema 'org.freedesktop.Tracker.FTS' is not installed.
6343 (substitute* "tests/libtracker-miner/Makefile.in"
6344 (("tracker-file-notifier-test\\$\\(EXEEXT\\)") "")
6345 (("tracker-miner-fs-test\\$\\(EXEEXT\\)") "")
6346 (("tracker-monitor-test\\$\\(EXEEXT\\)") ""))
6347 (substitute* "tests/libtracker-fts/Makefile.in"
6348 (("tracker-fts-test\\$\\(EXEEXT\\)") ""))
6349 (substitute* "tests/libtracker-data/Makefile.in"
6350 (("tracker-ontology\\$\\(EXEEXT\\)") "")
6351 (("tracker-ontology-change\\$\\(EXEEXT\\)") "")
6352 (("tracker-backup\\$\\(EXEEXT\\)") "")
6353 (("tracker-sparql-blank\\$\\(EXEEXT\\)") "")
6354 (("tracker-sparql\\$\\(EXEEXT\\)") ""))
6355 ;; These fail because the SPARQL backend could not be loaded.
6356 ;; That's because /etc/machine-id is missing, but
6357 ;; DBUS_FATAL_WARNINGS does not help here.
6358 (substitute* "tests/libtracker-sparql/Makefile.in"
6359 (("tracker-gb-737023-test\\$\\(EXEEXT\\)") "")
6360 (("tracker-sparql-test\\$\\(EXEEXT\\)") ""))
6361 (substitute* "tests/tracker-steroids/Makefile.in"
6362 (("tracker-test\\$\\(EXEEXT\\)") ""))
6363 #t))
6364 ;; Two tests fail if LANG is not set.
6365 (add-before 'check 'pre-check
6366 (lambda _
6367 (setenv "LANG" "en_US.UTF-8")
6368 ;; For the missing /etc/machine-id.
6369 (setenv "DBUS_FATAL_WARNINGS" "0")
6370 #t)))))
6371 (native-inputs
6372 `(("gnome-common" ,gnome-common)
6373 ("gobject-introspection" ,gobject-introspection)
6374 ("intltool" ,intltool)
6375 ("pkg-config" ,pkg-config)
6376 ("vala" ,vala)))
6377 (inputs
6378 `(("gtk+" ,gtk+)
6379 ("dbus" ,dbus)
6380 ("gstreamer" ,gstreamer)
6381 ("gst-plugins-base" ,gst-plugins-base)
6382 ("sqlite" ,sqlite)
6383 ("python" ,python)
6384 ("poppler" ,poppler)
6385 ("libgsf" ,libgsf)
6386 ("libexif" ,libexif)
6387 ("libpng" ,libpng)
6388 ("libtiff" ,libtiff)
6389 ("libvorbis" ,libvorbis)
6390 ("flac" ,flac)
6391 ("totem-pl-parser" ,totem-pl-parser)
6392 ("zlib" ,zlib)
6393 ("exempi" ,exempi)
6394 ("libxml2" ,libxml2)
6395 ("upower" ,upower)
6396 ("libunistring" ,libunistring)
6397 ("giflib" ,giflib)
6398 ("json-glib" ,json-glib)
6399 ("openjpeg" ,openjpeg-1)
6400 ("libosinfo" ,libosinfo)
6401 ("libcue" ,libcue)
6402 ("libseccomp" ,libseccomp)
6403 ("libsoup" ,libsoup)
6404 ("libuuid" ,util-linux)))
6405 (synopsis "Metadata database, indexer and search tool")
6406 (home-page "https://wiki.gnome.org/Projects/Tracker")
6407 (description
6408 "Tracker is an advanced framework for first class objects with associated
6409 metadata and tags. It provides a one stop solution for all metadata, tags,
6410 shared object databases, search tools and indexing.")
6411 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
6412 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
6413 (license (list license:gpl2+
6414 license:lgpl2.1+
6415 license:lgpl2.0+))))
6416
6417 (define-public nautilus
6418 (package
6419 (name "nautilus")
6420 (version "3.30.5")
6421 (source (origin
6422 (method url-fetch)
6423 (uri (string-append "mirror://gnome/sources/" name "/"
6424 (version-major+minor version) "/"
6425 name "-" version ".tar.xz"))
6426 (sha256
6427 (base32
6428 "144r4py9b8w9ycsg6fggjg05kwvymh003qsb3h6apgpch5y3zgnv"))))
6429 (build-system meson-build-system)
6430 (arguments
6431 '(#:glib-or-gtk? #t
6432 ;; XXX: FAIL: check-nautilus
6433 ;; Settings schema 'org.gnome.nautilus.preferences' is not installed
6434 #:tests? #f))
6435 (native-inputs
6436 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6437 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
6438 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6439 ("gobject-introspection" ,gobject-introspection)
6440 ("intltool" ,intltool)
6441 ("pkg-config" ,pkg-config)))
6442 (inputs
6443 `(("dconf" ,dconf)
6444 ("gexiv2" ,gexiv2)
6445 ("gvfs" ,gvfs)
6446 ("exempi" ,exempi)
6447 ("gnome-desktop" ,gnome-desktop)
6448 ("gnome-autoar" ,gnome-autoar)
6449 ("libseccomp" ,libseccomp)
6450 ("libselinux" ,libselinux)
6451 ("tracker" ,tracker)
6452 ;; XXX: gtk+ is required by libnautilus-extension.pc
6453 ;;
6454 ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
6455 ;; package. See:
6456 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
6457 ("gtk+" ,gtk+)
6458 ("libexif" ,libexif)
6459 ("libxml2" ,libxml2)))
6460 (synopsis "File manager for GNOME")
6461 (home-page "https://wiki.gnome.org/Apps/Nautilus")
6462 (description
6463 "Nautilus (Files) is a file manager designed to fit the GNOME desktop
6464 design and behaviour, giving the user a simple way to navigate and manage its
6465 files.")
6466 (license license:gpl2+)))
6467
6468 (define-public baobab
6469 (package
6470 (name "baobab")
6471 (version "3.30.0")
6472 (source (origin
6473 (method url-fetch)
6474 (uri (string-append
6475 "mirror://gnome/sources/" name "/"
6476 (version-major+minor version) "/"
6477 name "-" version ".tar.xz"))
6478 (sha256
6479 (base32
6480 "0kx721s1hhw1g0nvbqhb93g8iq6f852imyhfhl02zcqy4ipx0kay"))))
6481 (build-system meson-build-system)
6482 (arguments
6483 '(#:glib-or-gtk? #t))
6484 (native-inputs
6485 `(("intltool" ,intltool)
6486 ("pkg-config" ,pkg-config)
6487 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6488 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6489 ("itstool" ,itstool)
6490 ("xmllint" ,libxml2)
6491 ("glib" ,glib "bin")
6492 ("vala" ,vala)))
6493 (inputs
6494 `(("gtk+" ,gtk+)))
6495 (synopsis "Disk usage analyzer for GNOME")
6496 (description
6497 "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
6498 usage in the GNOME desktop environment. It can easily scan device volumes or
6499 a specific user-requested directory branch (local or remote). Once the scan
6500 is complete it provides a graphical representation of each selected folder.")
6501 (home-page "https://wiki.gnome.org/Apps/Baobab")
6502 (license license:gpl2+)))
6503
6504 (define-public gnome-backgrounds
6505 (package
6506 (name "gnome-backgrounds")
6507 (version "3.30.0")
6508 (source
6509 (origin
6510 (method url-fetch)
6511 (uri (string-append "mirror://gnome/sources/" name "/"
6512 (version-major+minor version) "/"
6513 name "-" version ".tar.xz"))
6514 (sha256
6515 (base32
6516 "1179jrl16bp9gqabqhw7nnfp8qzf5y1vf9fi45bni6rfmwm3mrpc"))))
6517 (build-system meson-build-system)
6518 (native-inputs
6519 `(("intltool" ,intltool)))
6520 (home-page "https://git.gnome.org/browse/gnome-backgrounds")
6521 (synopsis "Background images for the GNOME desktop")
6522 (description
6523 "GNOME backgrounds package contains a collection of graphics files which
6524 can be used as backgrounds in the GNOME Desktop environment. Additionally,
6525 the package creates the proper framework and directory structure so that you
6526 can add your own files to the collection.")
6527 (license (list license:gpl2+
6528 license:cc-by2.0
6529 license:cc-by-sa2.0
6530 license:cc-by-sa3.0))))
6531
6532 (define-public gnome-screenshot
6533 (package
6534 (name "gnome-screenshot")
6535 (version "3.30.0")
6536 (source
6537 (origin
6538 (method url-fetch)
6539 (uri (string-append "mirror://gnome/sources/" name "/"
6540 (version-major+minor version) "/"
6541 name "-" version ".tar.xz"))
6542 (sha256
6543 (base32
6544 "06dx3svxq6sar4913mrz5lzb7hmc66wck138vmyxj8x8iv1iw0w8"))))
6545 (build-system meson-build-system)
6546 (native-inputs
6547 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6548 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6549 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6550 ("intltool" ,intltool)
6551 ("appstream-glib" ,appstream-glib)
6552 ("pkg-config" ,pkg-config)))
6553 (inputs
6554 `(("gtk+" ,gtk+)
6555 ("libcanberra" ,libcanberra)
6556 ("libx11" ,libx11)
6557 ("libxext" ,libxext)))
6558 (home-page "https://gitlab.gnome.org/GNOME/gnome-screenshot")
6559 (synopsis "Take pictures of your screen")
6560 (description
6561 "GNOME Screenshot is a utility used for taking screenshots of the entire
6562 screen, a window or a user defined area of the screen, with optional
6563 beautifying border effects.")
6564 (license license:gpl2+)))
6565
6566 (define-public dconf-editor
6567 (package
6568 (name "dconf-editor")
6569 (version "3.30.2")
6570 (source
6571 (origin
6572 (method url-fetch)
6573 (uri (string-append "mirror://gnome/sources/" name "/"
6574 (version-major+minor version) "/"
6575 name "-" version ".tar.xz"))
6576 (sha256
6577 (base32
6578 "06f736spn20s7qjsz00xw44v8r8bjhyrz1v3bix6v416jc5jp6ia"))))
6579 (build-system meson-build-system)
6580 (arguments
6581 '(#:phases (modify-phases %standard-phases
6582 (add-before 'configure 'set-glib-minimum-version
6583 (lambda _
6584 ;; Change the minimum required GLib version so that
6585 ;; 'valac' is passed '--target-glib 2.60.0'; failing to
6586 ;; do that, it complains that "55" is not an even
6587 ;; number. See <https://bugs.gnu.org/37503>.
6588 (substitute* "editor/meson.build"
6589 (("2\\.55\\.1") "2.60.0"))
6590 #t)))))
6591 (native-inputs
6592 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
6593 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6594 ("intltool" ,intltool)
6595 ("pkg-config" ,pkg-config)
6596 ("vala" ,vala)))
6597 (inputs
6598 `(("dconf" ,dconf)
6599 ("gtk+" ,gtk+)
6600 ("libxml2" ,libxml2)))
6601 (home-page "https://git.gnome.org/browse/dconf-editor")
6602 (synopsis "Graphical editor for GNOME's dconf configuration system")
6603 (description
6604 "Dconf-editor is a graphical tool for browsing and editing the dconf
6605 configuration system for GNOME. It allows users to configure desktop
6606 software that do not provide their own configuration interface.")
6607 (license license:lgpl2.1+)))
6608
6609 (define-public gnome-default-applications
6610 (package
6611 (name "gnome-default-applications")
6612 (version "0")
6613 (build-system trivial-build-system)
6614 (source #f)
6615 (propagated-inputs
6616 `(("nautilus" ,nautilus)
6617 ("evince" ,evince)))
6618 (arguments
6619 `(#:modules ((guix build utils))
6620 #:builder
6621 (begin
6622 (use-modules (guix build utils))
6623 (let* ((out (assoc-ref %outputs "out"))
6624 (apps (string-append out "/share/applications")))
6625 (mkdir-p apps)
6626 (call-with-output-file (string-append apps "/defaults.list")
6627 (lambda (port)
6628 (format port "[Default Applications]\n")
6629 (format port "inode/directory=org.gnome.Nautilus.desktop\n")
6630 (format port "application/pdf=evince.desktop\n")
6631 (format port "application/postscript=evince.desktop\n")))
6632 #t))))
6633 (synopsis "Default MIME type associations for the GNOME desktop")
6634 (description
6635 "Given many installed packages which might handle a given MIME type, a
6636 user running the GNOME desktop probably has some preferences: for example,
6637 that folders be opened by default by the Nautilus file manager, not the Baobab
6638 disk usage analyzer. This package establishes that set of default MIME type
6639 associations for GNOME.")
6640 (license license:gpl3+)
6641 (home-page #f)))
6642
6643 (define-public gnome
6644 (package
6645 (name "gnome")
6646 (version (package-version gnome-shell))
6647 (source #f)
6648 (build-system trivial-build-system)
6649 (arguments '(#:builder (begin (mkdir %output) #t)))
6650 (propagated-inputs
6651 ;; TODO: Add more packages according to:
6652 ;; <https://packages.debian.org/jessie/gnome-core>.
6653 `(("adwaita-icon-theme" ,adwaita-icon-theme)
6654 ("baobab" ,baobab)
6655 ("font-cantarell" ,font-cantarell)
6656 ("font-dejavu" ,font-dejavu)
6657 ("at-spi2-core" ,at-spi2-core)
6658 ("dbus" ,dbus)
6659 ("dconf" ,dconf)
6660 ("desktop-file-utils" ,desktop-file-utils)
6661 ("eog" ,eog)
6662 ("epiphany" ,epiphany)
6663 ("evince" ,evince)
6664 ("file-roller" ,file-roller)
6665 ("gedit" ,gedit)
6666 ("glib-networking" ,glib-networking)
6667 ("gnome-backgrounds" ,gnome-backgrounds)
6668 ("gnome-bluetooth" ,gnome-bluetooth)
6669 ("gnome-calculator" ,gnome-calculator)
6670 ("gnome-control-center" ,gnome-control-center)
6671 ("gnome-disk-utility" ,gnome-disk-utility)
6672 ("gnome-default-applications" ,gnome-default-applications)
6673 ("gnome-keyring" ,gnome-keyring)
6674 ("gnome-online-accounts" ,gnome-online-accounts)
6675 ("gnome-session" ,gnome-session)
6676 ("gnome-settings-daemon" ,gnome-settings-daemon)
6677 ("gnome-shell" ,gnome-shell)
6678 ("gnome-system-monitor" ,gnome-system-monitor)
6679 ("gnome-terminal" ,gnome-terminal)
6680 ("gnome-themes-standard" ,gnome-themes-standard)
6681 ("gst-plugins-base" ,gst-plugins-base)
6682 ("gst-plugins-good" ,gst-plugins-good)
6683 ("gucharmap" ,gucharmap)
6684 ("gvfs" ,gvfs)
6685 ("hicolor-icon-theme" ,hicolor-icon-theme)
6686 ("nautilus" ,nautilus)
6687 ("pinentry-gnome3" ,pinentry-gnome3)
6688 ("pulseaudio" ,pulseaudio)
6689 ("shared-mime-info" ,shared-mime-info)
6690 ("system-config-printer" ,system-config-printer)
6691 ("totem" ,totem)
6692 ("xdg-user-dirs" ,xdg-user-dirs)
6693 ("yelp" ,yelp)
6694 ("zenity" ,zenity)))
6695 (synopsis "The GNU desktop environment")
6696 (home-page "https://www.gnome.org/")
6697 (description
6698 "GNOME is the graphical desktop for GNU. It includes a wide variety of
6699 applications for browsing the web, editing text and images, creating
6700 documents and diagrams, playing media, scanning, and much more.")
6701 (license license:gpl2+)))
6702
6703 (define-public byzanz
6704 ;; The last stable release of Byzanz was in 2011, but there have been many
6705 ;; useful commits made to the Byzanz repository since then that it would be
6706 ;; silly to use such an old release.
6707 (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
6708 (package
6709 (name "byzanz")
6710 (version (string-append "0.2-1." (string-take commit 7)))
6711 (source (origin
6712 (method git-fetch)
6713 (uri (git-reference
6714 (url "https://git.gnome.org/browse/byzanz")
6715 (commit commit)))
6716 (file-name (string-append name "-" version "-checkout"))
6717 (sha256
6718 (base32
6719 "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
6720 (build-system glib-or-gtk-build-system)
6721 (arguments
6722 '(#:phases
6723 (modify-phases %standard-phases
6724 (replace 'bootstrap
6725 (lambda _
6726 ;; The build system cleverly detects that we're not building from
6727 ;; a release tarball and turns on -Werror for GCC.
6728 ;; Unsurprisingly, there is a warning during compilation that
6729 ;; causes the build to fail unnecessarily, so we remove the flag.
6730 (substitute* '("configure.ac")
6731 (("-Werror") ""))
6732 ;; The autogen.sh script in gnome-common will run ./configure
6733 ;; by default, which is problematic because source shebangs
6734 ;; have not yet been patched.
6735 (setenv "NOCONFIGURE" "t")
6736 (zero? (system* "sh" "autogen.sh")))))))
6737 (native-inputs
6738 `(("autoconf" ,autoconf)
6739 ("automake" ,automake)
6740 ("gnome-common" ,gnome-common)
6741 ("intltool" ,intltool)
6742 ("libtool" ,libtool)
6743 ("pkg-config" ,pkg-config)
6744 ("which" ,which)))
6745 (inputs
6746 `(("glib" ,glib)
6747 ("gstreamer" ,gstreamer)
6748 ("gst-plugins-base" ,gst-plugins-base)
6749 ("gtk+" ,gtk+)))
6750 (synopsis "Desktop recording program")
6751 (description "Byzanz is a simple desktop recording program with a
6752 command-line interface. It can record part or all of an X display for a
6753 specified duration and save it as a GIF encoded animated image file.")
6754 (home-page "https://git.gnome.org/browse/byzanz")
6755 (license license:gpl2+))))
6756
6757 (define-public gsound
6758 (package
6759 (name "gsound")
6760 (version "1.0.2")
6761 (source (origin
6762 (method url-fetch)
6763 (uri (string-append "mirror://gnome/sources/" name "/"
6764 (version-major+minor version) "/"
6765 name "-" version ".tar.xz"))
6766 (sha256
6767 (base32
6768 "0lwfwx2c99qrp08pfaj59pks5dphsnxjgrxyadz065d8xqqgza5v"))))
6769 (build-system glib-or-gtk-build-system)
6770 (native-inputs
6771 `(("pkg-config" ,pkg-config)
6772 ("gobject-introspection" ,gobject-introspection)
6773 ("vala" ,vala)))
6774 (inputs
6775 `(("glib" ,glib)
6776 ("libcanberra" ,libcanberra)))
6777 (home-page "https://wiki.gnome.org/Projects/GSound")
6778 (synopsis "GObject wrapper for libcanberra")
6779 (description
6780 "GSound is a small library for playing system sounds. It's designed to be
6781 used via GObject Introspection, and is a thin wrapper around the libcanberra C
6782 library.")
6783 (license license:lgpl2.1+)))
6784
6785 (define-public libzapojit
6786 (package
6787 (name "libzapojit")
6788 (version "0.0.3")
6789 (source (origin
6790 (method url-fetch)
6791 (uri (string-append "mirror://gnome/sources/" name "/"
6792 (version-major+minor version) "/"
6793 name "-" version ".tar.xz"))
6794 (sha256
6795 (base32
6796 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
6797 (build-system gnu-build-system)
6798 (native-inputs
6799 `(("gobject-introspection" ,gobject-introspection)
6800 ("intltool" ,intltool)
6801 ("pkg-config" ,pkg-config)))
6802 (inputs
6803 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6804 ("json-glib" ,json-glib)
6805 ("rest" ,rest)))
6806 (home-page "https://wiki.gnome.org/Projects/Zapojit")
6807 (synopsis "Library for accessing SkyDrive and Hotmail")
6808 (description
6809 "Libzapojit is a GLib-based library for accessing online service APIs of
6810 Microsoft SkyDrive and Hotmail, using their REST protocols.")
6811 (license license:lgpl2.1+)))
6812
6813 (define-public gnome-clocks
6814 (package
6815 (name "gnome-clocks")
6816 (version "3.30.1")
6817 (source (origin
6818 (method url-fetch)
6819 (uri (string-append "mirror://gnome/sources/" name "/"
6820 (version-major+minor version) "/"
6821 name "-" version ".tar.xz"))
6822 (sha256
6823 (base32
6824 "009fr6zwv37wryi0c0syi4i7pxpdbn3gliws68l99cjsbn2qd6pc"))))
6825 (build-system meson-build-system)
6826 (arguments
6827 '(#:glib-or-gtk? #t))
6828 (native-inputs
6829 `(("vala" ,vala)
6830 ("pkg-config" ,pkg-config)
6831 ("glib" ,glib "bin") ; for glib-compile-resources
6832 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6833 ("desktop-file-utils" ,desktop-file-utils)
6834 ("gettext" ,gettext-minimal)
6835 ("itstool" ,itstool)))
6836 (inputs
6837 `(("glib" ,glib)
6838 ("gtk+" ,gtk+)
6839 ("gsound" ,gsound)
6840 ("geoclue" ,geoclue)
6841 ("geocode-glib" ,geocode-glib)
6842 ("libgweather" ,libgweather)
6843 ("gnome-desktop" ,gnome-desktop)))
6844 (home-page "https://wiki.gnome.org/Apps/Clocks")
6845 (synopsis "GNOME's clock application")
6846 (description
6847 "GNOME Clocks is a simple clocks application designed to fit the GNOME
6848 desktop. It supports world clock, stop watch, alarms, and count down timer.")
6849 (license license:gpl3+)))
6850
6851 (define-public gnome-calendar
6852 (package
6853 (name "gnome-calendar")
6854 (version "3.30.1")
6855 (source (origin
6856 (method url-fetch)
6857 (uri (string-append "mirror://gnome/sources/" name "/"
6858 (version-major+minor version) "/"
6859 name "-" version ".tar.xz"))
6860 (sha256
6861 (base32
6862 "1avi7a29y8d8kzwslp51nwy6s692alms7917454j0xpfc6hnw62s"))))
6863 (build-system meson-build-system)
6864 (arguments
6865 '(#:glib-or-gtk? #t
6866 ;; gnome-calendar has to be installed before the tests can be run
6867 ;; https://bugzilla.gnome.org/show_bug.cgi?id=788224
6868 #:tests? #f))
6869 (native-inputs
6870 `(("gettext" ,gettext-minimal)
6871 ("glib-bin" ,glib "bin") ; For glib-compile-schemas
6872 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
6873 ("pkg-config" ,pkg-config)))
6874 (inputs
6875 `(("evolution-data-server" ,evolution-data-server)
6876 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6877 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6878 ("libdazzle" ,libdazzle)
6879 ("libedataserverui" ,evolution-data-server)
6880 ("libgweather" ,libgweather)
6881 ("geoclue" ,geoclue)))
6882 (home-page "https://wiki.gnome.org/Apps/Calendar")
6883 (synopsis "GNOME's calendar application")
6884 (description
6885 "GNOME Calendar is a simple calendar application designed to fit the GNOME
6886 desktop. It supports multiple calendars, month, week and year view.")
6887 (license license:gpl3+)))
6888
6889 (define-public gnome-todo
6890 (package
6891 (name "gnome-todo")
6892 (version "3.28.1")
6893 (source (origin
6894 (method url-fetch)
6895 (uri (string-append "mirror://gnome/sources/" name "/"
6896 (version-major+minor version) "/"
6897 name "-" version ".tar.xz"))
6898 (sha256
6899 (base32
6900 "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"))))
6901 (build-system meson-build-system)
6902 (arguments
6903 '(#:glib-or-gtk? #t
6904 #:phases (modify-phases %standard-phases
6905 (add-after
6906 'install 'wrap-gnome-todo
6907 (lambda* (#:key inputs outputs #:allow-other-keys)
6908 (let ((out (assoc-ref outputs "out"))
6909 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6910 (python-path (getenv "PYTHONPATH")))
6911 (wrap-program (string-append out "/bin/gnome-todo")
6912 ;; XXX: gi plugins are broken.
6913 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=787212
6914 ;; For plugins.
6915 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6916 `("PYTHONPATH" ":" prefix (,python-path))))
6917 #t)))))
6918 (native-inputs
6919 `(("gettext" ,gettext-minimal)
6920 ("gobject-introspection" ,gobject-introspection)
6921 ("glib:bin" ,glib "bin") ; For glib-compile-resources
6922 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
6923 ("pkg-config" ,pkg-config)))
6924 (inputs
6925 `(("rest" ,rest) ; For Todoist plugin
6926 ("json-glib" ,json-glib) ; For Todoist plugin
6927 ("libedataserverui" ,evolution-data-server)
6928 ("libical" ,libical)
6929 ("libpeas" ,libpeas)
6930 ("python-pygobject" ,python-pygobject)
6931 ("evolution-data-server" ,evolution-data-server)
6932 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6933 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
6934 (home-page "https://wiki.gnome.org/Apps/Todo")
6935 (synopsis "GNOME's ToDo Application")
6936 (description
6937 "GNOME To Do is a simplistic personal task manager designed to perfectly
6938 fit the GNOME desktop.")
6939 (license license:gpl3+)))
6940
6941 (define-public gnome-dictionary
6942 (package
6943 (name "gnome-dictionary")
6944 (version "3.26.1")
6945 (source (origin
6946 (method url-fetch)
6947 (uri (string-append "mirror://gnome/sources/" name "/"
6948 (version-major+minor version) "/"
6949 name "-" version ".tar.xz"))
6950 (sha256
6951 (base32
6952 "007k2bq8iplg4psdpz074r5d4zxvn4s95qym4rw9hs6giljbrf0n"))))
6953 (build-system meson-build-system)
6954 (arguments '(#:glib-or-gtk? #t
6955 #:phases (modify-phases %standard-phases
6956 (add-after 'unpack 'patch-install-script
6957 (lambda _
6958 ;; This script attempts to compile glib schemas
6959 ;; and create an empty MIME database. We do
6960 ;; that elsewhere, so prevent it from running.
6961 (substitute* "build-aux/post-install.sh"
6962 (("\\[ -z \"\\$DESTDIR\" \\]") "false"))
6963 #t)))))
6964 (native-inputs
6965 `(("glib:bin" ,glib "bin")
6966 ("gobject-introspection" ,gobject-introspection)
6967 ("intltool" ,intltool)
6968 ("itstool" ,itstool)
6969 ("pkg-config" ,pkg-config)
6970 ("xmllint" ,libxml2)))
6971 (inputs
6972 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6973 ("gtk+" ,gtk+)))
6974 (home-page "https://wiki.gnome.org/Apps/Dictionary")
6975 (synopsis "Look up words in dictionary sources")
6976 (description
6977 "GNOME Dictionary can look for the definition or translation of a word in
6978 existing databases over the internet.")
6979 (license license:gpl3+)))
6980
6981 (define-public gnome-tweaks
6982 (package
6983 (name "gnome-tweaks")
6984 (version "3.30.2")
6985 (source (origin
6986 (method url-fetch)
6987 (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
6988 (version-major+minor version) "/"
6989 "gnome-tweaks-" version ".tar.xz"))
6990 (patches
6991 (list (search-patch "gnome-tweaks-search-paths.patch")))
6992 (sha256
6993 (base32
6994 "0j63siy1i5pl2g6di1r9vjn54m9ahh42wj20j6689pza2lamay1z"))))
6995 (build-system meson-build-system)
6996 (arguments
6997 `(#:glib-or-gtk? #t
6998 #:configure-flags '("-Dlocalstatedir=/tmp"
6999 "-Dsysconfdir=/tmp")
7000 #:imported-modules ((guix build python-build-system)
7001 ,@%meson-build-system-modules)
7002 #:phases
7003 (modify-phases %standard-phases
7004 (add-after 'install 'wrap
7005 (@@ (guix build python-build-system) wrap))
7006 (add-after 'wrap 'wrap-gi-typelib
7007 (lambda* (#:key inputs outputs #:allow-other-keys)
7008 (let ((out (assoc-ref outputs "out"))
7009 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7010 (wrap-program (string-append out "/bin/gnome-tweaks")
7011 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7012 #t)))))
7013 (native-inputs
7014 `(("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7015 ("intltool" ,intltool)
7016 ("pkg-config" ,pkg-config)))
7017 (inputs
7018 `(("gnome-desktop" ,gnome-desktop)
7019 ("gtk+" ,gtk+)
7020 ("gobject-introspection" ,gobject-introspection)
7021 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7022 ("libnotify" ,libnotify)
7023 ("libsoup" ,libsoup)
7024 ("nautilus" ,nautilus)
7025 ("python" ,python)
7026 ("python-pygobject" ,python-pygobject)))
7027 (synopsis "Customize advanced GNOME 3 options")
7028 (home-page "https://wiki.gnome.org/Apps/Tweaks")
7029 (description
7030 "GNOME Tweaks allows adjusting advanced configuration settings in
7031 GNOME 3. This includes things like the fonts used in user interface elements,
7032 alternative user interface themes, changes in window management behavior,
7033 GNOME Shell appearance and extension, etc.")
7034 (license license:gpl3+)))
7035
7036 ;; This package has been renamed by upstream.
7037 (define-public gnome-tweak-tool
7038 (deprecated-package "gnome-tweak-tool" gnome-tweaks))
7039
7040 (define-public gnome-shell-extensions
7041 (package
7042 (name "gnome-shell-extensions")
7043 (version "3.30.1")
7044 (source (origin
7045 (method url-fetch)
7046 (uri (string-append "mirror://gnome/sources/" name "/"
7047 (version-major+minor version) "/"
7048 name "-" version ".tar.xz"))
7049 (sha256
7050 (base32
7051 "1grxn4f5x754r172wmnf0h0xpy69afmj359zsj1rwgqlzw4i4c5p"))))
7052 (build-system meson-build-system)
7053 (arguments
7054 '(#:configure-flags '("-Dextension_set=all")))
7055 (native-inputs
7056 `(("intltool" ,intltool)
7057 ("pkg-config" ,pkg-config)))
7058 (propagated-inputs
7059 `(("glib" ,glib)
7060 ("glib" ,glib "bin")))
7061 (synopsis "Extensions for GNOME Shell")
7062 (description "GNOME Shell extensions modify and extend GNOME Shell
7063 functionality and behavior.")
7064 (home-page "https://extensions.gnome.org/")
7065 (license license:gpl3+)))
7066
7067 (define-public numix-theme
7068 (package
7069 (name "numix-theme")
7070 (version "2.6.7")
7071 (source (origin
7072 (method git-fetch)
7073 (uri (git-reference
7074 (url "https://github.com/numixproject/numix-gtk-theme.git")
7075 (commit version)))
7076 (file-name (git-file-name name version))
7077 (sha256
7078 (base32
7079 "12mw0kr0kkvg395qlbsvkvaqccr90cmxw5rrsl236zh43kj8grb7"))))
7080 (build-system gnu-build-system)
7081 (arguments
7082 '(#:make-flags (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
7083 #:phases
7084 (modify-phases %standard-phases
7085 (delete 'configure)
7086 (delete 'check))))
7087 (native-inputs
7088 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas
7089 ("gnome-shell" ,gnome-shell)
7090 ("gtk+" ,gtk+)
7091 ("xmllint" ,libxml2)
7092 ("ruby-sass" ,ruby-sass)))
7093 (synopsis "Flat theme with light and dark elements")
7094 (description "Numix is a modern flat theme with a combination of light and
7095 dark elements. It supports GNOME, Unity, Xfce, and Openbox.")
7096 (home-page "https://numixproject.github.io")
7097 (license license:gpl3+)))
7098
7099 (define-public arc-theme
7100 (package
7101 (name "arc-theme")
7102 (version "20190917")
7103 (source (origin
7104 (method git-fetch)
7105 (uri (git-reference
7106 (url "https://github.com/NicoHood/arc-theme.git")
7107 (commit version)))
7108 (file-name (git-file-name name version))
7109 (sha256
7110 (base32
7111 "1qgpk4p2hi5hd4yy0hj93kq1vs0b32wb8qkaj1wi90c8gwddq5wa"))))
7112 (build-system gnu-build-system)
7113 (arguments
7114 '(#:phases
7115 (modify-phases %standard-phases
7116 ;; autogen.sh calls configure at the end of the script.
7117 (replace 'bootstrap
7118 (lambda _ (invoke "autoreconf" "-vfi"))))))
7119 (native-inputs
7120 `(("autoconf" ,autoconf)
7121 ("automake" ,automake)
7122 ("glib" ,glib "bin") ; for glib-compile-resources
7123 ("gnome-shell" ,gnome-shell)
7124 ("gtk+" ,gtk+)
7125 ("inkscape" ,inkscape)
7126 ("optipng" ,optipng)
7127 ("pkg-config" ,pkg-config)
7128 ("sassc" ,sassc)))
7129 (synopsis "A flat GTK+ theme with transparent elements")
7130 (description "Arc is a flat theme with transparent elements for GTK 3, GTK
7131 2, and GNOME Shell which supports GTK 3 and GTK 2 based desktop environments
7132 like GNOME, Unity, Budgie, Pantheon, XFCE, Mate, etc.")
7133 (home-page "https://github.com/horst3180/arc-theme")
7134 ;; No "or later" language found.
7135 (license license:gpl3+)))
7136
7137 (define-public faba-icon-theme
7138 (package
7139 (name "faba-icon-theme")
7140 (version "4.3")
7141 (source
7142 (origin
7143 (method url-fetch)
7144 (uri (string-append "https://github.com/moka-project/"
7145 name "/archive/v" version ".tar.gz"))
7146 (file-name (string-append name "-" version ".tar.gz"))
7147 (sha256
7148 (base32
7149 "18ln06xl60qzvzz61zq9q72hdbfgjsza3flph8i2asyzx3dffz68"))))
7150 (build-system meson-build-system)
7151 (arguments
7152 `(#:phases
7153 (modify-phases %standard-phases
7154 (add-before 'configure 'disable-post-install
7155 (lambda _
7156 (substitute* "meson.build"
7157 (("meson.add_install_script.*") "")))))))
7158 (native-inputs
7159 `(("autoconf" ,autoconf)
7160 ("automake" ,automake)))
7161 (synopsis "Faba icon theme")
7162 (description
7163 "Faba is a minimal icon set used as a basis for other themes such as
7164 Moka")
7165 (home-page "https://snwh.org/moka")
7166 (license (list license:lgpl3+
7167 license:cc-by-sa4.0))))
7168
7169 (define-public moka-icon-theme
7170 (package
7171 (inherit faba-icon-theme)
7172 (name "moka-icon-theme")
7173 (version "5.4.0")
7174 (source (origin
7175 (method url-fetch)
7176 (uri (string-append "https://github.com/moka-project"
7177 "/moka-icon-theme/archive/v"
7178 version ".tar.gz"))
7179 (file-name (string-append name "-" version ".tar.gz"))
7180 (sha256
7181 (base32
7182 "1nbwdjj268hxv9lfagd9aylily9f0hhallp841v0i3imljp84bmk"))))
7183 (propagated-inputs
7184 ;; Moka is based on Faba by using it as a fallback icon set instead of
7185 ;; bundling it, so we need to add it as a propagated input.
7186 `(("faba-icon-theme" ,faba-icon-theme)))
7187 (synopsis "Moka icon theme")
7188 (description "Moka is a stylized desktop icon set, designed to be clear,
7189 simple and consistent.")
7190 (license (list license:gpl3+
7191 license:cc-by-sa4.0))))
7192
7193 (define-public arc-icon-theme
7194 (package
7195 (name "arc-icon-theme")
7196 (version "20161122")
7197 (source (origin
7198 (method url-fetch)
7199 (uri (string-append "https://github.com/horst3180/arc-icon-theme"
7200 "/archive/" version ".tar.gz"))
7201 (file-name (string-append name "-" version ".tar.gz"))
7202 (sha256
7203 (base32
7204 "1ya1cqvv8q847c0rpcg6apzky87q3h04y8jz5nmi52qk6kg8si0b"))))
7205 (build-system gnu-build-system)
7206 (arguments
7207 `(#:phases
7208 (modify-phases %standard-phases
7209 (add-after 'unpack 'disable-configure-during-bootstrap
7210 (lambda _
7211 (substitute* "autogen.sh"
7212 (("^\"\\$srcdir/configure\".*") ""))
7213 #t)))))
7214 (native-inputs
7215 `(("autoconf" ,autoconf)
7216 ("automake" ,automake)))
7217 ;; When Arc is missing an icon, it looks in the Moka icon theme for it.
7218 (propagated-inputs
7219 `(("moka-icon-theme" ,moka-icon-theme)))
7220 (synopsis "Arc icon theme")
7221 (description "The Arc icon theme provides a set of icons matching the
7222 style of the Arc GTK theme. Icons missing from the Arc theme are provided by
7223 the Moka icon theme.")
7224 (home-page "https://github.com/horst3180/arc-icon-theme")
7225 (license license:gpl3+)))
7226
7227 (define-public folks
7228 (package
7229 (name "folks")
7230 (version "0.11.4")
7231 (source (origin
7232 (method url-fetch)
7233 (uri (string-append
7234 "mirror://gnome/sources/folks/"
7235 (version-major+minor version) "/"
7236 "folks-" version ".tar.xz"))
7237 (sha256
7238 (base32
7239 "16hqh2gxlbx0b0hgq216hndr1m72vj54jvryzii9zqkk0g9kxc57"))))
7240 (build-system glib-or-gtk-build-system)
7241 (inputs
7242 `(("bdb" ,bdb)
7243 ("dbus-glib" ,dbus-glib)
7244 ("evolution-data-server" ,evolution-data-server)
7245 ("glib" ,glib)
7246 ("libgee" ,libgee)
7247 ("telepathy-glib" ,telepathy-glib)))
7248 (native-inputs
7249 `(("gobject-introspection" ,gobject-introspection)
7250 ("intltool" ,intltool)
7251 ("pkg-config" ,pkg-config)
7252 ("vala" ,vala)))
7253 (synopsis "Library to aggregate data about people")
7254 (description "Libfolks is a library that aggregates information about people
7255 from multiple sources (e.g., Telepathy connection managers for IM contacts,
7256 Evolution Data Server for local contacts, libsocialweb for web service contacts,
7257 etc.) to create metacontacts. It's written in Vala, which generates C code when
7258 compiled.")
7259 (home-page "https://wiki.gnome.org/Projects/Folks")
7260 (license license:lgpl2.1+)))
7261
7262 (define-public gfbgraph
7263 (package
7264 (name "gfbgraph")
7265 (version "0.2.3")
7266 (source (origin
7267 (method url-fetch)
7268 (uri (string-append
7269 "mirror://gnome/sources/gfbgraph/"
7270 (version-major+minor version) "/"
7271 "gfbgraph-" version ".tar.xz"))
7272 (sha256
7273 (base32
7274 "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs"))))
7275 (build-system glib-or-gtk-build-system)
7276 (arguments
7277 `(#:tests? #f ; Tests appear to require the network.
7278 ;; FIXME --enable-gtk-doc fails even with gtk-doc as a native-input.
7279 #:configure-flags '("--disable-gtk-doc"
7280 "--disable-static"
7281 "--enable-introspection")))
7282 (native-inputs
7283 `(("pkg-config" ,pkg-config)
7284 ("gobject-introspection" ,gobject-introspection)))
7285 (inputs
7286 `(("json-glib" ,json-glib)
7287 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
7288 ("rest" ,rest)))
7289 (synopsis "GLib/GObject wrapper for the Facebook API")
7290 (description "This library allows you to use the Facebook API from
7291 GLib/GObject code.")
7292 (home-page "https://wiki.gnome.org/Projects/GFBGraph")
7293 (license license:lgpl2.1+)))
7294
7295 (define-public libgnomekbd
7296 (package
7297 (name "libgnomekbd")
7298 (version "3.26.1")
7299 (source (origin
7300 (method url-fetch)
7301 (uri (string-append "mirror://gnome/sources/libgnomekbd/"
7302 (version-major+minor version) "/"
7303 "libgnomekbd-" version ".tar.xz"))
7304 (sha256
7305 (base32
7306 "0y962ykn3rr9gylj0pwpww7bi20lmhvsw6qvxs5bisbn2mih5jpp"))))
7307 (build-system gnu-build-system)
7308 (native-inputs
7309 `(("pkg-config" ,pkg-config)
7310 ("glib" ,glib "bin")
7311 ("intltool" ,intltool)))
7312 (propagated-inputs
7313 ;; Referred to in .h files and .pc.
7314 `(("glib" ,glib)
7315 ("gtk+" ,gtk+)
7316 ("libxklavier" ,libxklavier)))
7317 (home-page "https://www.gnome.org")
7318 (synopsis "GNOME keyboard configuration library")
7319 (description
7320 "Libgnomekbd is a keyboard configuration library for the GNOME desktop
7321 environment, which can notably display keyboard layouts.")
7322 (license license:lgpl2.0+)))
7323
7324 ;;; This package is no longer maintained:
7325 ;;; https://wiki.gnome.org/Attic/LibUnique
7326 ;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
7327 ;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
7328 (define-public libunique
7329 (package
7330 (name "libunique")
7331 (version "3.0.2")
7332 (source (origin
7333 (method url-fetch)
7334 (uri (string-append "mirror://gnome/sources/" name "/"
7335 (version-major+minor version) "/"
7336 name "-" version ".tar.xz"))
7337 (sha256
7338 (base32
7339 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
7340 (build-system glib-or-gtk-build-system)
7341 (arguments
7342 `(#:configure-flags '("--disable-static"
7343 "--disable-dbus" ; use gdbus
7344 "--enable-introspection")))
7345 (native-inputs
7346 `(("pkg-config" ,pkg-config)
7347 ("gobject-introspection" ,gobject-introspection)
7348 ("glib:bin" ,glib "bin")
7349 ("gtk-doc" ,gtk-doc)))
7350 (propagated-inputs
7351 ;; Referred to in .h files and .pc.
7352 `(("gtk+" ,gtk+)))
7353 (home-page "https://wiki.gnome.org/Attic/LibUnique")
7354 (synopsis "Library for writing single instance applications")
7355 (description
7356 "Libunique is a library for writing single instance applications. If you
7357 launch a single instance application twice, the second instance will either just
7358 quit or will send a message to the running instance. Libunique makes it easy to
7359 write this kind of application, by providing a base class, taking care of all
7360 the IPC machinery needed to send messages to a running instance, and also
7361 handling the startup notification side.")
7362 (license license:lgpl2.1+)))
7363
7364 (define-public gnome-calculator
7365 (package
7366 (name "gnome-calculator")
7367 (version "3.32.2")
7368 (source
7369 (origin
7370 (method url-fetch)
7371 (uri (string-append "mirror://gnome/sources/" name "/"
7372 (version-major+minor version) "/"
7373 name "-" version ".tar.xz"))
7374 (sha256
7375 (base32
7376 "0fgpn3sc226s9fpzhik5rkkrf669037gc659ga2kn9jsyckj6p41"))))
7377 (build-system meson-build-system)
7378 (arguments '(#:glib-or-gtk? #t))
7379 (native-inputs
7380 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
7381 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
7382 ("intltool" ,intltool)
7383 ("itstool" ,itstool)
7384 ("vala" ,vala)
7385 ("pkg-config" ,pkg-config)))
7386 (inputs
7387 `(("glib" ,glib)
7388 ("gtksourceview" ,gtksourceview)
7389 ("libsoup" ,libsoup)
7390 ("libxml2" ,libxml2)
7391 ("mpc" ,mpc)
7392 ("mpfr" ,mpfr)))
7393 (home-page "https://wiki.gnome.org/Apps/Calculator")
7394 (synopsis "Desktop calculator")
7395 (description
7396 "Calculator is an application that solves mathematical equations and
7397 is suitable as a default application in a Desktop environment.")
7398 (license license:gpl3)))
7399
7400 (define-public xpad
7401 (package
7402 (name "xpad")
7403 (version "5.1.0")
7404 (source
7405 (origin
7406 (method url-fetch)
7407 (uri (string-append "https://launchpad.net/xpad/trunk/"
7408 version "/+download/"
7409 name "-" version ".tar.bz2"))
7410 (sha256
7411 (base32
7412 "0l0g5x8g6dwhf5ksnqqrjjsycy57kcvdslkmsr6bl3vrsjd7qml3"))))
7413 (build-system gnu-build-system)
7414 (native-inputs
7415 `(("autoconf" ,autoconf)
7416 ("automake" ,automake)
7417 ("gtk+:bin" ,gtk+ "bin")
7418 ("intltool" ,intltool)
7419 ("pkg-config" ,pkg-config)))
7420 (inputs
7421 `(("gtksourceview" ,gtksourceview-3)
7422 ("libsm" ,libsm)))
7423 (home-page "https://wiki.gnome.org/Apps/Xpad")
7424 (synopsis "Virtual sticky note")
7425 (description
7426 "Xpad is a sticky note that strives to be simple, fault tolerant,
7427 and customizable. Xpad consists of independent pad windows, each is
7428 basically a text box in which notes can be written.")
7429 (license license:gpl3+)))
7430
7431 (define-public gucharmap
7432 (let ((unicode-files
7433 '(("Blocks.txt"
7434 "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1")
7435 ("DerivedAge.txt"
7436 "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6")
7437 ("NamesList.txt"
7438 "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61")
7439 ("Scripts.txt"
7440 "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx")
7441 ("UnicodeData.txt"
7442 "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap")
7443 ("Unihan.zip"
7444 "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"))))
7445 (package
7446 (name "gucharmap")
7447 (version "12.0.1")
7448 (source
7449 (origin
7450 (method url-fetch)
7451 (uri (string-append "mirror://gnome/sources/" name "/"
7452 (version-major+minor version) "/"
7453 name "-" version ".tar.xz"))
7454 (sha256
7455 (base32
7456 "0m915hm2b2d6r3vs1l80rqpssvg78pv8j6nv54yg62kzknnqmpir"))))
7457 (build-system glib-or-gtk-build-system)
7458 (arguments
7459 `(#:modules ((ice-9 match)
7460 (guix build glib-or-gtk-build-system)
7461 (guix build utils))
7462 #:configure-flags
7463 (list "--with-unicode-data=../unicode-data")
7464 #:phases
7465 (modify-phases %standard-phases
7466 (add-after 'unpack 'prepare-unicode-data
7467 (lambda* (#:key inputs #:allow-other-keys)
7468 (mkdir-p "../unicode-data")
7469 (with-directory-excursion "../unicode-data"
7470 (for-each (match-lambda
7471 ((file _)
7472 (install-file (assoc-ref inputs file) ".")))
7473 ',unicode-files))
7474 #t)))))
7475 (native-inputs
7476 `(("desktop-file-utils" ,desktop-file-utils)
7477 ("glib:bin" ,glib "bin") ; for glib-compile-resources.
7478 ("gobject-introspection" ,gobject-introspection)
7479 ("intltool" ,intltool)
7480 ("itstool" ,itstool)
7481 ("pkg-config" ,pkg-config)
7482 ,@(map (match-lambda
7483 ((file hash)
7484 `(,file
7485 ,(origin
7486 (method url-fetch)
7487 (uri (string-append
7488 "http://www.unicode.org/Public/12.0.0/ucd/"
7489 file))
7490 (sha256 (base32 hash))))))
7491 unicode-files)
7492 ("unzip" ,unzip)))
7493 (inputs
7494 `(("gtk+" ,gtk+)
7495 ("xmllint" ,libxml2)))
7496 (home-page "https://wiki.gnome.org/Apps/Gucharmap")
7497 (synopsis "Unicode character picker and font browser")
7498 (description
7499 "This program allows you to browse through all the available Unicode
7500 characters and categories for the installed fonts, and to examine their
7501 detailed properties. It is an easy way to find the character you might
7502 only know by its Unicode name or code point.")
7503 (license license:gpl3+))))
7504
7505 (define-public bluefish
7506 (package
7507 (name "bluefish")
7508 (version "2.2.10")
7509 (source
7510 (origin
7511 (method url-fetch)
7512 (uri (string-append "http://www.bennewitz.com/bluefish/stable/source/"
7513 name "-" version ".tar.gz"))
7514 (sha256
7515 (base32
7516 "1jw4has7lbp77lqmzvnnjmqcf0lacjfnka873lkkwdyrpzc4c1q4"))))
7517 (build-system gnu-build-system)
7518 (native-inputs
7519 `(("desktop-file-utils" ,desktop-file-utils)
7520 ("intltool" ,intltool)
7521 ("pkg-config" ,pkg-config)))
7522 (inputs
7523 `(("enchant" ,enchant)
7524 ("gtk+" ,gtk+)
7525 ("python" ,python-2)
7526 ("xmllint" ,libxml2)
7527 ("gucharmap" ,gucharmap)))
7528 (home-page "http://bluefish.openoffice.nl")
7529 (synopsis "Web development studio")
7530 (description
7531 "Bluefish is an editor targeted towards programmers and web developers,
7532 with many options to write web sites, scripts and other code.
7533 Bluefish supports many programming and markup languages.")
7534 (license license:gpl3+)))
7535
7536 (define-public gnome-system-monitor
7537 (package
7538 (name "gnome-system-monitor")
7539 (version "3.30.0")
7540 (source
7541 (origin
7542 (method url-fetch)
7543 (uri (string-append "mirror://gnome/sources/" name "/"
7544 (version-major+minor version) "/"
7545 name "-" version ".tar.xz"))
7546 (sha256
7547 (base32
7548 "0g0y565bjs6bdszrnxsz1f7hcm1x59i3mfvplysirh7nz3hpz888"))))
7549 (build-system meson-build-system)
7550 (arguments
7551 '(#:glib-or-gtk? #t
7552 #:configure-flags '("-Dsystemd=false")))
7553 (native-inputs
7554 `(("glib:bin" ,glib "bin") ; for glib-mkenums.
7555 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
7556 ("intltool" ,intltool)
7557 ("itstool" ,itstool)
7558 ("libgtop" ,libgtop)
7559 ("polkit" ,polkit)
7560 ("pkg-config" ,pkg-config)))
7561 (inputs
7562 `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
7563 ("gtk+" ,gtk+)
7564 ("gtkmm" ,gtkmm)
7565 ("librsvg" ,librsvg)
7566 ("libxml2" ,libxml2)
7567 ("libwnck" ,libwnck)))
7568 (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
7569 (synopsis "Process viewer and system resource monitor for GNOME")
7570 (description
7571 "GNOME System Monitor is a GNOME process viewer and system monitor with
7572 an attractive, easy-to-use interface. It has features, such as a tree view
7573 for process dependencies, icons for processes, the ability to hide processes,
7574 graphical time histories of CPU/memory/swap usage and the ability to
7575 kill/reinice processes.")
7576 (license license:gpl2+)))
7577
7578 (define-public python-pyatspi
7579 (package
7580 (name "python-pyatspi")
7581 (version "2.26.0")
7582 (source (origin
7583 (method url-fetch)
7584 (uri (string-append
7585 "mirror://gnome/sources/pyatspi/"
7586 (version-major+minor version)
7587 "/pyatspi-" version ".tar.xz"))
7588 (sha256
7589 (base32
7590 "0xdnix7gxzgf75xy9ris4dd6b05mqwicw190b98xqmypydyf95n6"))
7591 ;; Patch from upstream, fixed in newer versions.
7592 (patches (search-patches "python-pyatspi-python-37.patch"))))
7593 (build-system gnu-build-system)
7594 (arguments
7595 `(#:phases
7596 (modify-phases %standard-phases
7597 (add-before 'build 'fix-atk-load
7598 (lambda _
7599 (substitute* "pyatspi/__init__.py"
7600 (("from gi.repository import Atspi")
7601 "gi.require_version('Gtk', '3.0')
7602 from gi.repository import Gtk
7603 from gi.repository import Atspi"))
7604 #t)))))
7605 (native-inputs
7606 `(("pkg-config" ,pkg-config)))
7607 (inputs
7608 `(("python" ,python)
7609 ("python-pygobject" ,python-pygobject)))
7610 (synopsis "Python client bindings for D-Bus AT-SPI")
7611 (home-page "https://wiki.linuxfoundation.org/accessibility\
7612 /atk/at-spi/at-spi_on_d-bus")
7613 (description
7614 "This package includes a python client library for the AT-SPI D-Bus
7615 accessibility infrastructure.")
7616 (license license:lgpl2.0)
7617 (properties '((upstream-name . "pyatspi")))))
7618
7619 (define-public orca
7620 (package
7621 (name "orca")
7622 (version "3.30.2")
7623 (source (origin
7624 (method url-fetch)
7625 (uri (string-append
7626 "mirror://gnome/sources/" name "/"
7627 (version-major+minor version) "/"
7628 name "-" version ".tar.xz"))
7629 (sha256
7630 (base32
7631 "17asibc46i5gr2fw04jvvdi85zzmxwlnhyq7r6cr3m5prrdr8a53"))))
7632 (build-system glib-or-gtk-build-system)
7633 (arguments
7634 '(#:phases
7635 (modify-phases %standard-phases
7636 (add-before 'configure 'qualify-xkbcomp
7637 (lambda* (#:key inputs #:allow-other-keys)
7638 (let ((xkbcomp (string-append
7639 (assoc-ref inputs "xkbcomp") "/bin/xkbcomp")))
7640 (substitute* "src/orca/orca.py"
7641 (("'xkbcomp'") (format #f "'~a'" xkbcomp))))
7642 #t))
7643 (add-after 'install 'wrap-orca
7644 (lambda* (#:key outputs #:allow-other-keys)
7645 (let* ((out (assoc-ref outputs "out"))
7646 (prog (string-append out "/bin/orca")))
7647 (wrap-program prog
7648 `("GI_TYPELIB_PATH" ":" prefix
7649 (,(getenv "GI_TYPELIB_PATH")))
7650 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
7651 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
7652 `("PYTHONPATH" ":" prefix
7653 (,(getenv "PYTHONPATH")))))
7654 #t)))))
7655 (native-inputs
7656 `(("intltool" ,intltool)
7657 ("itstool" ,itstool)
7658 ("pkg-config" ,pkg-config)
7659 ("xmllint" ,libxml2)))
7660 (inputs
7661 `(("at-spi2-atk" ,at-spi2-atk)
7662 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7663 ("gstreamer" ,gstreamer)
7664 ("gst-plugins-base" ,gst-plugins-base)
7665 ("gst-plugins-good" ,gst-plugins-good)
7666 ("gtk+" ,gtk+)
7667 ("python" ,python)
7668 ("python-pygobject" ,python-pygobject)
7669 ("python-pyatspi" ,python-pyatspi)
7670 ("python-speechd" ,speech-dispatcher)
7671 ("xkbcomp" ,xkbcomp)))
7672 (synopsis
7673 "Screen reader for individuals who are blind or visually impaired")
7674 (home-page "https://wiki.gnome.org/Projects/Orca")
7675 (description
7676 "Orca is a screen reader that provides access to the graphical desktop
7677 via speech and refreshable braille. Orca works with applications and toolkits
7678 that support the Assistive Technology Service Provider Interface (AT-SPI).")
7679 (license license:lgpl2.1+)))
7680
7681 (define-public gspell
7682 (package
7683 (name "gspell")
7684 (version "1.8.2")
7685 (source (origin
7686 (method url-fetch)
7687 (uri (string-append "mirror://gnome/sources/" name "/"
7688 (version-major+minor version) "/"
7689 name "-" version ".tar.xz"))
7690 (sha256
7691 (base32
7692 "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
7693 (patches (search-patches "gspell-dash-test.patch"))))
7694 (build-system glib-or-gtk-build-system)
7695 (arguments
7696 '(#:phases
7697 (modify-phases %standard-phases
7698 (add-before 'check 'pre-check
7699 (lambda* (#:key inputs #:allow-other-keys)
7700 ;; Tests require a running X server.
7701 (system "Xvfb :1 &")
7702 (setenv "DISPLAY" ":1")
7703
7704 ;; For the missing /etc/machine-id.
7705 (setenv "DBUS_FATAL_WARNINGS" "0")
7706
7707 ;; Allow Enchant and its Aspell backend to find the en_US
7708 ;; dictionary.
7709 (setenv "ASPELL_DICT_DIR"
7710 (string-append (assoc-ref inputs "aspell-dict-en")
7711 "/lib/aspell"))
7712 #t)))))
7713 (inputs
7714 `(("gtk+" ,gtk+)
7715 ("glib" ,glib)
7716 ("iso-codes" ,iso-codes)))
7717 (native-inputs
7718 `(("glib" ,glib "bin")
7719 ("pkg-config" ,pkg-config)
7720 ("xmllint" ,libxml2)
7721
7722 ;; For tests.
7723 ("aspell-dict-en" ,aspell-dict-en)
7724 ("xorg-server" ,xorg-server)))
7725 (propagated-inputs
7726 `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
7727 (home-page "https://wiki.gnome.org/Projects/gspell")
7728 (synopsis "GNOME's alternative spell checker")
7729 (description
7730 "gspell provides a flexible API to add spell-checking to a GTK+
7731 application. It provides a GObject API, spell-checking to text entries and
7732 text views, and buttons to choose the language.")
7733 (license license:gpl2+)))
7734
7735 (define-public gnome-planner
7736 (package
7737 (name "gnome-planner")
7738 (version "0.14.6")
7739 (source (origin
7740 (method url-fetch)
7741 (uri (string-append "mirror://gnome/sources/planner/"
7742 (version-major+minor version) "/planner-"
7743 version ".tar.xz"))
7744 (sha256
7745 (base32
7746 "15h6ps58giy5r1g66sg1l4xzhjssl362mfny2x09khdqsvk2j38k"))))
7747 (build-system glib-or-gtk-build-system)
7748 (arguments
7749 ;; Disable the Python bindings because the Planner program functions
7750 ;; without them, and (as of 2017-06-13) we have not packaged all of
7751 ;; packages that are necessary for building the Python bindings.
7752 `(#:configure-flags
7753 (list "--disable-python"
7754 ,@(if (string=? "aarch64-linux" (%current-system))
7755 '("--build=aarch64-unknown-linux-gnu")
7756 '()))))
7757 (inputs
7758 `(("libgnomecanvas" ,libgnomecanvas)
7759 ("libgnomeui" ,libgnomeui)
7760 ("libglade" ,libglade)
7761 ("gnome-vfs" ,gnome-vfs)
7762 ("gconf" ,gconf)
7763 ("libxml2" ,libxml2)
7764 ("libxslt" ,libxslt)
7765 ("gtk+" ,gtk+)
7766 ("glib" ,glib)))
7767 (native-inputs
7768 `(("intltool" ,intltool)
7769 ("scrollkeeper" ,scrollkeeper)
7770 ("pkg-config" ,pkg-config)))
7771 (home-page "https://wiki.gnome.org/Apps/Planner")
7772 (synopsis "Project management software for the GNOME desktop")
7773 (description
7774 "GNOME Planner is a project management tool based on the Work Breakdown
7775 Structure (WBS). Its goal is to enable you to easily plan projects. Based on
7776 the resources, tasks, and constraints that you define, Planner generates
7777 various views into a project. For example, Planner can show a Gantt chart of
7778 the project. It can show a detailed summary of tasks including their
7779 duration, cost, and current progress. It can also show a report of resource
7780 utilization that highlights under-utilized and over-utilized resources. These
7781 views can be printed as PDF or PostScript files, or exported to HTML.")
7782 (license license:gpl2+)))
7783
7784 (define-public lollypop
7785 (package
7786 (name "lollypop")
7787 (version "1.1.3.1")
7788 (source
7789 (origin
7790 (method url-fetch)
7791 (uri (string-append "https://gitlab.gnome.org/World/lollypop/uploads/"
7792 "aa4fbd92bf338296c28e54710271ccab/"
7793 "lollypop-" version ".tar.xz"))
7794 (sha256
7795 (base32
7796 "1r5wn0bja9psz6nr1rcaysdkkwz84rbyzpdfw66cxa6wiy52pkjm"))))
7797 (build-system meson-build-system)
7798 (arguments
7799 `(#:imported-modules ((guix build python-build-system)
7800 ,@%meson-build-system-modules)
7801 #:glib-or-gtk? #t
7802 #:tests? #f ; no test suite
7803 #:phases
7804 (modify-phases %standard-phases
7805 (add-after 'install 'wrap-program
7806 (lambda* (#:key outputs #:allow-other-keys)
7807 (let ((out (assoc-ref outputs "out"))
7808 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7809 (wrap-program (string-append out "/bin/lollypop")
7810 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7811 #t))
7812 (add-after 'install 'wrap-python
7813 (@@ (guix build python-build-system) wrap))
7814 (add-after 'install 'wrap-glib-or-gtk
7815 (@@ (guix build glib-or-gtk-build-system) wrap-all-programs)))))
7816 (native-inputs
7817 `(("intltool" ,intltool)
7818 ("itstool" ,itstool)
7819 ("glib:bin" ,glib "bin") ; For glib-compile-resources
7820 ("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7821 ("pkg-config" ,pkg-config)))
7822 (inputs
7823 `(("gobject-introspection" ,gobject-introspection)
7824 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
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+)))