gnu: system-config-printer: Update to 1.5.14.
[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, 2020 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
5 ;;; Copyright © 2014, 2016, 2020 Eric Bavier <bavier@posteo.net>
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, 2020 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, 2020, 2021 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, 2019 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 Nikita <nikita@n0.is>
23 ;;; Copyright © 2016 David Craven <david@craven.ch>
24 ;;; Copyright © 2016–2021 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, 2020 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, 2020 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, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
43 ;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
44 ;;; Copyright © 2019 David Wilson <david@daviwil.com>
45 ;;; Copyright © 2019, 2020 Raghav Gururajan <raghavgururajan@disroot.org>
46 ;;; Copyright © 2019, 2020 Jonathan Brielmaier <jonathan.brielmaier@web.de>
47 ;;; Copyright © 2019, 2020 Leo Prikler <leo.prikler@student.tugraz.at>
48 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
49 ;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
50 ;;; Copyright © 2020 raingloom <raingloom@riseup.net>
51 ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
52 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
53 ;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
54 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
55 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
56 ;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
57 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
58 ;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
59 ;;; Copyright © 2020 Andy Tai <atai@atai.org>
60 ;;;
61 ;;; This file is part of GNU Guix.
62 ;;;
63 ;;; GNU Guix is free software; you can redistribute it and/or modify it
64 ;;; under the terms of the GNU General Public License as published by
65 ;;; the Free Software Foundation; either version 3 of the License, or (at
66 ;;; your option) any later version.
67 ;;;
68 ;;; GNU Guix is distributed in the hope that it will be useful, but
69 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
70 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
71 ;;; GNU General Public License for more details.
72 ;;;
73 ;;; You should have received a copy of the GNU General Public License
74 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
75
76 (define-module (gnu packages gnome)
77 #:use-module (gnu packages)
78 #:use-module (gnu packages admin)
79 #:use-module (gnu packages aidc)
80 #:use-module (gnu packages aspell)
81 #:use-module (gnu packages autotools)
82 #:use-module (gnu packages avahi)
83 #:use-module (gnu packages backup)
84 #:use-module (gnu packages base)
85 #:use-module (gnu packages bash)
86 #:use-module (gnu packages bison)
87 #:use-module (gnu packages boost)
88 #:use-module (gnu packages build-tools)
89 #:use-module (gnu packages calendar)
90 #:use-module (gnu packages cdrom)
91 #:use-module (gnu packages check)
92 #:use-module (gnu packages cmake)
93 #:use-module (gnu packages compression)
94 #:use-module (gnu packages crates-io)
95 #:use-module (gnu packages crates-graphics)
96 #:use-module (gnu packages crates-gtk)
97 #:use-module (gnu packages cups)
98 #:use-module (gnu packages curl)
99 #:use-module (gnu packages cyrus-sasl)
100 #:use-module (gnu packages databases)
101 #:use-module (gnu packages dbm)
102 #:use-module (gnu packages djvu)
103 #:use-module (gnu packages dns)
104 #:use-module (gnu packages docbook)
105 #:use-module (gnu packages documentation)
106 #:use-module (gnu packages enchant)
107 #:use-module (gnu packages flex)
108 #:use-module (gnu packages fonts)
109 #:use-module (gnu packages file-systems)
110 #:use-module (gnu packages fontutils)
111 #:use-module (gnu packages freedesktop)
112 #:use-module (gnu packages game-development)
113 #:use-module (gnu packages gcc)
114 #:use-module (gnu packages gettext)
115 #:use-module (gnu packages ghostscript)
116 #:use-module (gnu packages gimp)
117 #:use-module (gnu packages gl)
118 #:use-module (gnu packages glib)
119 #:use-module (gnu packages gnupg)
120 #:use-module (gnu packages gnuzilla)
121 #:use-module (gnu packages geo)
122 #:use-module (gnu packages gperf)
123 #:use-module (gnu packages graphviz)
124 #:use-module (gnu packages gstreamer)
125 #:use-module (gnu packages gtk)
126 #:use-module (gnu packages guile)
127 #:use-module (gnu packages ibus)
128 #:use-module (gnu packages icu4c)
129 #:use-module (gnu packages image)
130 #:use-module (gnu packages imagemagick)
131 #:use-module (gnu packages inkscape)
132 #:use-module (gnu packages iso-codes)
133 #:use-module (gnu packages kerberos)
134 #:use-module (gnu packages libcanberra)
135 #:use-module (gnu packages libffi)
136 #:use-module (gnu packages libunistring)
137 #:use-module (gnu packages libunwind)
138 #:use-module (gnu packages libusb)
139 #:use-module (gnu packages linux)
140 #:use-module (gnu packages lirc)
141 #:use-module (gnu packages lua)
142 #:use-module (gnu packages mail)
143 #:use-module (gnu packages mp3)
144 #:use-module (gnu packages multiprecision)
145 #:use-module (gnu packages music)
146 #:use-module (gnu packages ncurses)
147 #:use-module (gnu packages nettle)
148 #:use-module (gnu packages networking)
149 #:use-module (gnu packages ninja)
150 #:use-module (gnu packages node)
151 #:use-module (gnu packages nss)
152 #:use-module (gnu packages openldap)
153 #:use-module (gnu packages package-management)
154 #:use-module (gnu packages password-utils)
155 #:use-module (gnu packages pcre)
156 #:use-module (gnu packages pdf)
157 #:use-module (gnu packages perl)
158 #:use-module (gnu packages photo)
159 #:use-module (gnu packages php)
160 #:use-module (gnu packages pkg-config)
161 #:use-module (gnu packages polkit)
162 #:use-module (gnu packages popt)
163 #:use-module (gnu packages pretty-print)
164 #:use-module (gnu packages protobuf)
165 #:use-module (gnu packages pulseaudio)
166 #:use-module (gnu packages python)
167 #:use-module (gnu packages python-crypto)
168 #:use-module (gnu packages python-web)
169 #:use-module (gnu packages python-xyz)
170 #:use-module (gnu packages rdesktop)
171 #:use-module (gnu packages rdf)
172 #:use-module (gnu packages readline)
173 #:use-module (gnu packages ruby)
174 #:use-module (gnu packages rust)
175 #:use-module (gnu packages samba)
176 #:use-module (gnu packages scanner)
177 #:use-module (gnu packages sdl)
178 #:use-module (gnu packages search)
179 #:use-module (gnu packages selinux)
180 #:use-module (gnu packages slang)
181 #:use-module (gnu packages speech)
182 #:use-module (gnu packages spice)
183 #:use-module (gnu packages sqlite)
184 #:use-module (gnu packages ssh)
185 #:use-module (gnu packages swig)
186 #:use-module (gnu packages tex)
187 #:use-module (gnu packages time)
188 #:use-module (gnu packages tls)
189 #:use-module (gnu packages valgrind)
190 #:use-module (gnu packages version-control)
191 #:use-module (gnu packages video)
192 #:use-module (gnu packages virtualization)
193 #:use-module (gnu packages vpn)
194 #:use-module (gnu packages web)
195 #:use-module (gnu packages webkit)
196 #:use-module (gnu packages xdisorg)
197 #:use-module (gnu packages xiph)
198 #:use-module (gnu packages xml)
199 #:use-module (gnu packages xorg)
200 #:use-module (gnu artwork)
201 #:use-module ((guix build utils) #:select (modify-phases))
202 #:use-module (guix build-system cargo)
203 #:use-module (guix build-system cmake)
204 #:use-module (guix build-system glib-or-gtk)
205 #:use-module (guix build-system gnu)
206 #:use-module (guix build-system meson)
207 #:use-module (guix build-system python)
208 #:use-module (guix build-system trivial)
209 #:use-module (guix download)
210 #:use-module (guix git-download)
211 #:use-module ((guix licenses) #:prefix license:)
212 #:use-module (guix packages)
213 #:use-module (guix utils)
214 #:use-module (guix gexp)
215 #:use-module (guix monads)
216 #:use-module (guix store)
217 #:use-module (ice-9 match)
218 #:use-module (srfi srfi-1))
219
220 (define-public gupnp-igd
221 (package
222 (name "gupnp-igd")
223 (version "1.2.0")
224 (source
225 (origin
226 (method url-fetch)
227 (uri
228 (string-append "mirror://gnome/sources/" name "/"
229 (version-major+minor version) "/"
230 name "-" version ".tar.xz"))
231 (sha256
232 (base32 "1q9bw12ibih3yxpha3gm1dabyqg9gx6yxacbh4kxsgm1i84j0lab"))))
233 (build-system meson-build-system)
234 (outputs '("out" "doc"))
235 (arguments
236 `(#:glib-or-gtk? #t ; To wrap binaries and compile schemas
237 #:configure-flags (list "-Dgtk_doc=true")
238 #:phases
239 (modify-phases %standard-phases
240 (add-after 'unpack 'patch-docbook-xml
241 (lambda* (#:key inputs #:allow-other-keys)
242 (with-directory-excursion "doc"
243 (substitute* "gupnp-igd-docs.xml"
244 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
245 (string-append (assoc-ref inputs "docbook-xml-4.1.2")
246 "/xml/dtd/docbook/"))))
247 #t))
248 (add-after 'install 'move-doc
249 (lambda* (#:key outputs #:allow-other-keys)
250 (let* ((out (assoc-ref outputs "out"))
251 (doc (assoc-ref outputs "doc")))
252 (mkdir-p (string-append doc "/share"))
253 (rename-file
254 (string-append out "/share/gtk-doc")
255 (string-append doc "/share/gtk-doc"))
256 #t))))))
257 (native-inputs
258 `(("docbook-xml-4.1.2" ,docbook-xml-4.1.2)
259 ("docbook-xsl" ,docbook-xsl)
260 ("glib:bin" ,glib "bin")
261 ("gobject-introspection" ,gobject-introspection)
262 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
263 ("gtk-doc" ,gtk-doc)
264 ("pkg-config" ,pkg-config)))
265 (propagated-inputs
266 `(("glib" ,glib)
267 ("glib-networking" ,glib-networking)
268 ("gssdp" ,gssdp)
269 ("gupnp" ,gupnp)
270 ("libsoup" ,libsoup)))
271 (synopsis "UPnP IGD for GNOME")
272 (description "GUPnP-IGD is a library to handle UPnP IGD port mapping.")
273 (home-page "https://gitlab.gnome.org/GNOME/gupnp-igd")
274 (license license:lgpl2.1+)))
275
276 (define-public brasero
277 (package
278 (name "brasero")
279 (version "3.12.2")
280 (source (origin
281 (method url-fetch)
282 (uri (string-append "mirror://gnome/sources/brasero/"
283 (version-major+minor version) "/"
284 "brasero-" version ".tar.xz"))
285 (sha256
286 (base32
287 "0h90y674j26rvjahb8cc0w79zx477rb6zaqcj26wzvq8kmpic8k8"))))
288 (build-system glib-or-gtk-build-system)
289 (arguments
290 `(#:configure-flags (list
291 (string-append "--with-girdir="
292 (assoc-ref %outputs "out")
293 "/share/gir-1.0")
294 (string-append "--with-typelibdir="
295 (assoc-ref %outputs "out")
296 "/lib/girepository-1.0"))
297 #:phases
298 (modify-phases %standard-phases
299 (add-before 'configure 'embed-growisofs
300 (lambda* (#:key inputs #:allow-other-keys)
301 (substitute* "plugins/growisofs/burn-growisofs.c"
302 (("\"growisofs") (string-append "\"" (which "growisofs"))))
303 #t)))))
304 (propagated-inputs
305 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
306 (native-inputs
307 `(("intltool" ,intltool)
308 ("itstool" ,itstool)
309 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
310 ("gobject-introspection" ,gobject-introspection)
311 ("pkg-config" ,pkg-config)))
312 (inputs
313 `(("dvd+rw-tools" ,dvd+rw-tools)
314 ("glib" ,glib)
315 ("gnome-doc-utils" ,gnome-doc-utils)
316 ("gstreamer" ,gstreamer)
317 ("gst-plugins-base" ,gst-plugins-base)
318 ("gtk+" ,gtk+)
319 ("libcanberra" ,libcanberra)
320 ("libice" ,libice)
321 ("libnotify" ,libnotify)
322 ("libsm" ,libsm)
323 ("libxml2" ,libxml2)
324 ("totem-pl-parser" ,totem-pl-parser)))
325 (home-page "https://wiki.gnome.org/Apps/Brasero")
326 (synopsis "CD/DVD burning tool for Gnome")
327 (description "Brasero is an application to burn CD/DVD for the Gnome
328 Desktop. It is designed to be as simple as possible and has some unique
329 features to enable users to create their discs easily and quickly.")
330 (license license:gpl2+)))
331
332 (define-public libcloudproviders
333 (package
334 (name "libcloudproviders")
335 (version "0.3.1")
336 (source
337 (origin
338 (method url-fetch)
339 (uri
340 (string-append "mirror://gnome/sources/" name "/"
341 (version-major+minor version) "/"
342 name "-" version ".tar.xz"))
343 (sha256
344 (base32 "0aars24myf6n8b8hm1n12hsgcm54097kpbpm4ba31zp1l4y22qs7"))))
345 (build-system meson-build-system)
346 (outputs '("out" "doc"))
347 (arguments
348 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
349 #:configure-flags
350 (list
351 "-Denable-gtk-doc=true")
352 #:phases
353 (modify-phases %standard-phases
354 (add-after 'install 'move-doc
355 (lambda* (#:key outputs #:allow-other-keys)
356 (let* ((out (assoc-ref outputs "out"))
357 (doc (assoc-ref outputs "doc")))
358 (mkdir-p (string-append doc "/share"))
359 (rename-file
360 (string-append out "/share/gtk-doc")
361 (string-append doc "/share/gtk-doc"))
362 #t))))))
363 (native-inputs
364 `(("glib:bin" ,glib "bin")
365 ("gobject-introspection" ,gobject-introspection)
366 ("gtk-doc" ,gtk-doc)
367 ("pkg-config" ,pkg-config)
368 ("vala" ,vala)))
369 (inputs
370 `(("glib" ,glib)
371 ("glib-networking" ,glib-networking)))
372 (synopsis "Cloudproviders Integration API")
373 (description "Libcloudproviders is a DBus API that allows cloud storage sync
374 clients to expose their services. Clients such as file managers and desktop
375 environments can then provide integrated access to the cloud providers
376 services.")
377 (home-page "https://csorianognome.wordpress.com/2015/07/07/cloud-providers/")
378 (license license:lgpl3+)))
379
380 (define-public libgrss
381 (package
382 (name "libgrss")
383 (version "0.7.0")
384 (source
385 (origin
386 (method url-fetch)
387 (uri
388 (string-append "mirror://gnome/sources/" name "/"
389 (version-major+minor version) "/"
390 name "-" version ".tar.xz"))
391 (sha256
392 (base32 "1nalslgyglvhpva3px06fj6lv5zgfg0qmj0sbxyyl5d963vc02b7"))))
393 (build-system glib-or-gtk-build-system)
394 (outputs '("out" "doc"))
395 (arguments
396 `(#:configure-flags
397 (list
398 "--enable-gtk-doc"
399 (string-append "--with-html-dir="
400 (assoc-ref %outputs "doc")
401 "/share/gtk-doc/html"))
402 #:phases
403 (modify-phases %standard-phases
404 (add-after 'unpack 'patch-docbook-xml
405 (lambda* (#:key inputs #:allow-other-keys)
406 (with-directory-excursion "doc/reference"
407 (substitute* "libgrss-docs.sgml"
408 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
409 (string-append (assoc-ref inputs "docbook-xml")
410 "/xml/dtd/docbook/"))))
411 #t)))))
412 (native-inputs
413 `(("docbook-xml" ,docbook-xml-4.1.2)
414 ("gobject-introspection" ,gobject-introspection)
415 ("gtk-doc" ,gtk-doc)
416 ("pkg-config" ,pkg-config)))
417 (propagated-inputs
418 `(("glib" ,glib)
419 ("libsoup" ,libsoup)
420 ("libxml2" ,libxml2)))
421 (synopsis "Glib library for feeds")
422 (description "LibGRSS is a Glib abstraction to handle feeds in RSS, Atom,
423 and other formats.")
424 (home-page "https://wiki.gnome.org/Projects/Libgrss")
425 (license license:lgpl3+)))
426
427 (define-public gnome-js-common
428 (package
429 (name "gnome-js-common")
430 (version "0.1.2")
431 (source
432 (origin
433 (method url-fetch)
434 (uri
435 (string-append "mirror://gnome/sources/" name "/"
436 (version-major+minor version) "/"
437 name "-" version ".tar.gz"))
438 (sha256
439 (base32 "1zv5b9bcbclzj64xd9kgql4ndmbwvvi6cl937ykw8fp21xgh8z7y"))))
440 (build-system glib-or-gtk-build-system)
441 (arguments
442 `(#:configure-flags
443 (list
444 "--disable-static")))
445 (native-inputs
446 `(("gettext" ,gettext-minimal)
447 ("intltool" ,intltool)
448 ("pkg-config" ,pkg-config)))
449 (synopsis "Common JS Modules")
450 (description "GNOME-JS-Common provides common modules for GNOME JavaScript
451 bindings.")
452 (home-page "https://wiki.gnome.org/Projects/Seed")
453 (license license:gpl3+)))
454
455 (define-public seed
456 (package
457 (name "seed")
458 (version "3.8.1")
459 (source
460 (origin
461 (method url-fetch)
462 (uri
463 (string-append "mirror://gnome/sources/" name "/"
464 (version-major+minor version) "/"
465 name "-" version ".tar.xz"))
466 (sha256
467 (base32 "0cmcxaggcdcy13j27gy8id2qsf2p2sl4bz2mwb9zhv3gzavlvjw0"))
468 (patches
469 (search-patches "seed-webkit.patch"))))
470 (build-system glib-or-gtk-build-system)
471 (outputs '("out" "doc"))
472 (arguments
473 `(#:configure-flags
474 (list
475 "--disable-static"
476 "--enable-xorg-module"
477 (string-append "--with-html-dir="
478 (assoc-ref %outputs "doc")
479 "/share/gtk-doc/html")
480 "--with-webkit=4.0")
481 #:phases
482 (modify-phases %standard-phases
483 ;; The seed-webkit.patch patches configure.ac.
484 ;; So the source files need to be re-bootstrapped.
485 (add-after 'unpack 'trigger-bootstrap
486 (lambda _
487 (for-each delete-file
488 (list
489 "configure"
490 "Makefile.in"))
491 #t))
492 (add-after 'unpack 'patch-tests
493 (lambda* (#:key outputs #:allow-other-keys)
494 (substitute* (find-files "." "\\.js$")
495 (("#!/usr/bin/env seed")
496 (string-append "#!" (getcwd) "/src/seed")))
497 #t))
498 (add-before 'build 'patch-docbook-xml
499 (lambda* (#:key inputs #:allow-other-keys)
500 (with-directory-excursion "doc"
501 (substitute* '("reference/seed-docs.sgml" "modules/book.xml")
502 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
503 (string-append (assoc-ref inputs "docbook-xml")
504 "/xml/dtd/docbook/"))))
505 #t)))))
506 (native-inputs
507 `(("autoconf" ,autoconf)
508 ("automake" ,automake)
509 ("docbook-xml" ,docbook-xml-4.1.2)
510 ("gettext" ,gettext-minimal)
511 ("gobject-introspection" ,gobject-introspection)
512 ("gtk-doc" ,gtk-doc)
513 ("intltool" ,intltool)
514 ("libtool" ,libtool)
515 ("pkg-config" ,pkg-config)))
516 (inputs
517 `(("cairo" ,cairo)
518 ("dbus" ,dbus)
519 ("dbus-glib" ,dbus-glib)
520 ("gnome-js-common" ,gnome-js-common)
521 ("gtk+" ,gtk+)
522 ("gtk+-2" ,gtk+-2)
523 ("libffi" ,libffi)
524 ("libxml2" ,libxml2)
525 ("mpfr" ,mpfr)
526 ("readline" ,readline)
527 ("sqlite" ,sqlite)
528 ("xscrnsaver" ,libxscrnsaver)))
529 (propagated-inputs
530 `(("glib" ,glib)
531 ("webkit" ,webkitgtk)))
532 (synopsis "GObject JavaScriptCore bridge")
533 (description "Seed is a library and interpreter, dynamically bridging
534 (through GObjectIntrospection) the WebKit JavaScriptCore engine, with the
535 GNOME platform. It serves as something which enables you to write standalone
536 applications in JavaScript, or easily enable your application to be extensible
537 in JavaScript.")
538 (home-page "https://wiki.gnome.org/Projects/Seed")
539 (license license:lgpl2.0+)))
540
541 (define-public libdmapsharing
542 (package
543 (name "libdmapsharing")
544 (version "3.9.10")
545 (source
546 (origin
547 (method url-fetch)
548 (uri
549 (string-append "https://www.flyn.org/projects/"
550 name "/" name "-" version ".tar.gz"))
551 (sha256
552 (base32 "152hnddwxv590cn802awv3mn27ixc3s6ac691a7z02d1c5fl45p2"))))
553 (build-system glib-or-gtk-build-system)
554 (outputs '("out" "doc"))
555 (arguments
556 `(#:tests? #f ; Tests require networking.
557 #:configure-flags
558 (list
559 "--disable-static"
560 (string-append "--with-html-dir="
561 (assoc-ref %outputs "doc")
562 "/share/gtk-doc/html"))
563 #:phases
564 (modify-phases %standard-phases
565 (add-after 'unpack 'patch-docbook-xml
566 (lambda* (#:key inputs #:allow-other-keys)
567 (with-directory-excursion "doc"
568 (substitute* "libdmapsharing-4.0-docs.xml"
569 (("http://www.oasis-open.org/docbook/xml/4.3/")
570 (string-append (assoc-ref inputs "docbook-xml")
571 "/xml/dtd/docbook/"))))
572 #t)))))
573 (native-inputs
574 `(("check" ,check)
575 ("docbook-xml" ,docbook-xml-4.3)
576 ("gobject-introspection" ,gobject-introspection)
577 ("pedansee" ,pedansee)
578 ("pkg-config" ,pkg-config)
579 ("vala" ,vala)))
580 (inputs
581 `(("avahi" ,avahi)
582 ("gdk-pixbuf" ,gdk-pixbuf+svg)
583 ("gee" ,libgee)
584 ("gst-plugins-base" ,gst-plugins-base)
585 ("gtk+" ,gtk+)))
586 (propagated-inputs
587 `(("glib" ,glib)
588 ("glib-networking" ,glib-networking)
589 ("gstreamer" ,gstreamer)
590 ("libsoup" ,libsoup)))
591 (synopsis "Media management library")
592 (description "Libdmapsharing is a library which allows programs to access,
593 share and control the playback of media content using DMAP (DAAP, DPAP & DACP).
594 It is written in C using GObject and libsoup.")
595 (home-page "https://launchpad.net/gtx")
596 (license license:lgpl2.1+)))
597
598 (define-public gtx
599 (package
600 (name "gtx")
601 (version "0.2.2")
602 (source
603 (origin
604 (method url-fetch)
605 (uri
606 (string-append "https://launchpad.net/gtx/trunk/"
607 version "/+download/gtx-" version ".tar.gz"))
608 (sha256
609 (base32 "0i4zvn5v4rf0cw3fxylk6j2pyy5lkrswdiw8jdxkys0ph0nan33n"))))
610 (build-system glib-or-gtk-build-system)
611 (outputs '("out" "doc"))
612 (arguments
613 `(#:configure-flags
614 (list
615 "--disable-static"
616 "--enable-gtk-doc"
617 (string-append "--with-html-dir="
618 (assoc-ref %outputs "doc")
619 "/share/gtk-doc/html"))))
620 (native-inputs
621 `(("gobject-introspection" ,gobject-introspection)
622 ("gtk-doc" ,gtk-doc)
623 ("pkg-config" ,pkg-config)))
624 (propagated-inputs
625 `(("glib" ,glib)))
626 (synopsis "GLib Testing Framework")
627 (description "GTX is a small collection of convenience functions intended to
628 enhance the GLib testing framework. With specific emphasis on easing the pain
629 of writing test cases for asynchronous interactions.")
630 (home-page "https://launchpad.net/gtx")
631 (license license:lgpl2.1+)))
632
633 (define-public dee
634 (package
635 (name "dee")
636 (version "1.2.7")
637 (source
638 (origin
639 (method url-fetch)
640 (uri
641 (string-append "https://launchpad.net/dee/1.0/"
642 version "/+download/dee-" version ".tar.gz"))
643 (sha256
644 (base32 "12mzffk0lyd566y46x57jlvb9af152b4dqpasr40zal4wrn37w0v"))
645 (patches
646 (search-patches "dee-vapi.patch"))))
647 (build-system glib-or-gtk-build-system)
648 (outputs '("out" "doc"))
649 (arguments
650 `(#:configure-flags
651 (list
652 "--disable-maintainer-flags"
653 (string-append "--with-pygi-overrides-dir="
654 (assoc-ref %outputs "out")
655 "/lib/python"
656 ,(version-major+minor
657 (package-version python))
658 "/site-packages/gi/overrides")
659 (string-append "--with-html-dir="
660 (assoc-ref %outputs "doc")
661 "/share/gtk-doc/html"))
662 #:phases
663 (modify-phases %standard-phases
664 (add-after 'unpack 'patch-docbook-xml
665 (lambda* (#:key inputs #:allow-other-keys)
666 (with-directory-excursion "doc/reference/dee-1.0"
667 (substitute* "dee-1.0-docs.sgml"
668 (("http://www.oasis-open.org/docbook/xml/4.3/")
669 (string-append (assoc-ref inputs "docbook-xml")
670 "/xml/dtd/docbook/"))))
671 #t))
672 (add-after 'patch-docbook-xml 'disable-failing-tests
673 (lambda _
674 (substitute* "tests/test-icu.c"
675 (("g_test_add \\(DOMAIN\"/Default/AsciiFolder\", Fixture, 0,")
676 "")
677 (("setup, test_ascii_folder, teardown\\);")
678 ""))
679 #t))
680 (add-before 'check 'pre-check
681 (lambda _
682 ;; Tests require a running dbus-daemon.
683 (system "dbus-daemon &")
684 ;; For missing '/etc/machine-id'.
685 (setenv "DBUS_FATAL_WARNINGS" "0")
686 #t)))))
687 (native-inputs
688 `(("dbus" ,dbus)
689 ("dbus-test-runner" ,dbus-test-runner)
690 ("docbook-xml" ,docbook-xml-4.3)
691 ("gobject-introspection" ,gobject-introspection)
692 ("gtk-doc" ,gtk-doc)
693 ;; Would only be required by configure flag "--enable-extended-tests".
694 ;("gtx" ,gtx)
695 ("pkg-config" ,pkg-config)
696 ("pygobject" ,python-pygobject)
697 ("python" ,python-wrapper)
698 ("vala" ,vala)))
699 (inputs
700 `(("icu" ,icu4c)))
701 (propagated-inputs
702 `(("glib" ,glib)))
703 (synopsis "Model to synchronize multiple instances over DBus")
704 (description "Dee is a library that uses DBus to provide objects allowing
705 you to create Model-View-Controller type programs across DBus. It also consists
706 of utility objects which extend DBus allowing for peer-to-peer discoverability
707 of known objects without needing a central registrar.")
708 (home-page "https://launchpad.net/dee")
709 (license
710 ;; Dual-licensed
711 (list
712 license:lgpl3+
713 license:gpl3+))))
714
715 (define-public zeitgeist
716 (package
717 (name "zeitgeist")
718 (version "1.0.3")
719 (source
720 (origin
721 (method git-fetch)
722 (uri
723 (git-reference
724 (url "https://gitlab.freedesktop.org/zeitgeist/zeitgeist.git")
725 (commit
726 (string-append "v" version))))
727 (file-name
728 (git-file-name name version))
729 (sha256
730 (base32 "0y6fyzxl5np4yskcxibd0p03h619w9ir907nhf40h02y0pk1kgkp"))))
731 (build-system glib-or-gtk-build-system)
732 (arguments
733 `(#:configure-flags
734 (list
735 "--enable-explain-queries"
736 "--enable-fts"
737 "--enable-docs")
738 #:phases
739 (modify-phases %standard-phases
740 (add-after 'unpack 'patch-docbook-xml
741 (lambda* (#:key inputs #:allow-other-keys)
742 (with-directory-excursion "doc/libzeitgeist"
743 (substitute* "zeitgeist-gtkdoc-index.sgml"
744 (("http://www.oasis-open.org/docbook/xml/4.3/")
745 (string-append (assoc-ref inputs "docbook-xml")
746 "/xml/dtd/docbook/"))))
747 #t))
748 (add-after 'patch-docbook-xml 'disable-failing-tests
749 (lambda _
750 (substitute* "test/direct/Makefile.am"
751 ((" log-test ")
752 ""))
753 (substitute* "test/c/Makefile.am"
754 ((" test-log ")
755 ""))
756 #t))
757 (add-before 'bootstrap 'remove-autogen-script
758 (lambda _
759 ;; To honor `autoreconf -vif` by build-system.
760 (delete-file "autogen.sh")
761 #t)))))
762 (native-inputs
763 `(("autoconf" ,autoconf)
764 ("automake" ,automake)
765 ("docbook-xml" ,docbook-xml-4.3)
766 ("gettext" ,gettext-minimal)
767 ("gobject-introspection" ,gobject-introspection)
768 ("gtk-doc" ,gtk-doc)
769 ("libtool" ,libtool)
770 ("pkg-config" ,pkg-config)
771 ("vala" ,vala)
772 ("xorg-server-for-tests" ,xorg-server-for-tests)))
773 (inputs
774 `(("dee-icu" ,dee)
775 ("gtk+" ,gtk+)
776 ("json-glib" ,json-glib)
777 ("sqlite" ,sqlite)
778 ("telepathy-glib" ,telepathy-glib)
779 ("python" ,python-wrapper)
780 ("python-rdflib" ,python-rdflib)
781 ("xapian-config" ,xapian)))
782 (propagated-inputs
783 `(("glib" ,glib)))
784 (synopsis "Desktop Activity Logging")
785 (description "Zeitgeist is a service which logs the users’s activities and
786 events, anywhere from files opened to websites visited and conversations. It
787 makes this information readily available for other applications to use. It is
788 able to establish relationships between items based on similarity and usage
789 patterns.")
790 (home-page "https://zeitgeist.freedesktop.org/")
791 (license
792 ;; Dual-licensed
793 (list
794 license:lgpl2.1+
795 license:gpl2+))))
796
797 (define-public gnome-photos
798 (package
799 (name "gnome-photos")
800 (version "3.34.2")
801 (source
802 (origin
803 (method url-fetch)
804 (uri
805 (string-append "mirror://gnome/sources/" name "/"
806 (version-major+minor version) "/"
807 name "-" version ".tar.xz"))
808 (sha256
809 (base32
810 "06ml5sf8xhpan410msqz085hmfc7082d368pb82yq646y9pcfn9w"))))
811 (build-system meson-build-system)
812 (arguments
813 `(#:glib-or-gtk? #t
814 #:configure-flags
815 (list "-Ddogtail=false" ; Not available
816 ;; Required for RUNPATH validation.
817 (string-append "-Dc_link_args=-Wl,-rpath="
818 (assoc-ref %outputs "out") "/lib/gnome-photos"))
819 #:phases
820 (modify-phases %standard-phases
821 (add-after 'install 'wrap-gnome-photos
822 (lambda* (#:key inputs outputs #:allow-other-keys)
823 (let*
824 ((out (assoc-ref outputs "out")))
825 (wrap-program (string-append out "/bin/gnome-photos")
826 `("GRL_PLUGIN_PATH" = (,(getenv "GRL_PLUGIN_PATH")))))
827 #t)))))
828 (native-inputs
829 `(("dbus" ,dbus)
830 ("desktop-file-utils" ,desktop-file-utils)
831 ("gettext" ,gettext-minimal)
832 ("git" ,git-minimal)
833 ("glib:bin" ,glib "bin")
834 ("gobject-introspection" ,gobject-introspection)
835 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
836 ("gtk+:bin" ,gtk+ "bin")
837 ("itstool" ,itstool)
838 ("pkg-config" ,pkg-config)))
839 (inputs
840 `(("babl" ,babl)
841 ("cairo" ,cairo)
842 ("gdk-pixbuf" ,gdk-pixbuf+svg)
843 ("gegl" ,gegl)
844 ("geocode-glib" ,geocode-glib)
845 ("gexiv2" ,gexiv2)
846 ("gnome-online-accounts" ,gnome-online-accounts)
847 ("gnome-online-miners" ,gnome-online-miners)
848 ("grilo" ,grilo)
849 ("grilo-plugins" ,grilo-plugins)
850 ("gtk+" ,gtk+)
851 ("libdazzle" ,libdazzle)
852 ("libgdata" ,libgdata)
853 ("libgfbgraph" ,gfbgraph)
854 ("libjpeg" ,libjpeg-turbo)
855 ("libpng" ,libpng)
856 ("librest" ,rest)
857 ("pygobject" ,python-pygobject)
858 ("tracker" ,tracker)
859 ("tracker-miners" ,tracker-miners)))
860 (synopsis "Access, organize and share your photos on GNOME desktop")
861 (description "GNOME Photos is a simple and elegant replacement for using a
862 file manager to deal with photos. Enhance, crop and edit in a snap. Seamless
863 cloud integration is offered through GNOME Online Accounts.")
864 (home-page "https://wiki.gnome.org/Apps/Photos")
865 (license license:gpl3+)))
866
867 (define-public gnome-music
868 (package
869 (name "gnome-music")
870 (version "3.34.5")
871 (source
872 (origin
873 (method url-fetch)
874 (uri
875 (string-append "mirror://gnome/sources/" name "/"
876 (version-major+minor version) "/"
877 name "-" version ".tar.xz"))
878 (sha256
879 (base32
880 "1r5sfw5cbd6qqh27lzhblazir0bfi3k7nqppw66qw990isqm5psy"))))
881 (build-system meson-build-system)
882 (arguments
883 `(#:glib-or-gtk? #t
884 #:phases
885 (modify-phases %standard-phases
886 (add-after 'install 'wrap-gnome-music
887 (lambda* (#:key inputs outputs #:allow-other-keys)
888 (let*
889 ((out (assoc-ref outputs "out"))
890 (pylib (string-append out "/lib/python"
891 ,(version-major+minor
892 (package-version python))
893 "/site-packages")))
894 (wrap-program (string-append out "/bin/gnome-music")
895 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))
896 `("GST_PLUGIN_SYSTEM_PATH" = (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
897 `("GRL_PLUGIN_PATH" = (,(getenv "GRL_PLUGIN_PATH")))
898 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))))
899 #t)))))
900 (native-inputs
901 `(("desktop-file-utils" ,desktop-file-utils)
902 ("gettext" ,gettext-minimal)
903 ("glib:bin" ,glib "bin")
904 ("gobject-introspection" ,gobject-introspection)
905 ("gtk+:bin" ,gtk+ "bin")
906 ("itstools" ,itstool)
907 ("pkg-config" ,pkg-config)))
908 (inputs
909 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
910 ("grilo" ,grilo)
911 ("grilo-plugins" ,grilo-plugins)
912 ("gst-plugins-base" ,gst-plugins-base)
913 ("gstreamer" ,gstreamer)
914 ("gvfs" ,gvfs)
915 ("libdazzle" ,libdazzle)
916 ("libmediaart" ,libmediaart)
917 ("libsoup" ,libsoup)
918 ("pycairo" ,python-pycairo)
919 ("pygobject" ,python-pygobject)
920 ("tracker" ,tracker)
921 ("tracker-miners" ,tracker-miners)))
922 (synopsis "Simple music player for GNOME desktop")
923 (description "GNOME Music is the new GNOME music playing application that
924 aims to combine an elegant and immersive browsing experience with simple
925 and straightforward controls.")
926 (home-page "https://wiki.gnome.org/Apps/Music")
927 (license license:gpl2+)))
928
929 (define-public portablexdr
930 (package
931 (name "portablexdr")
932 (version "4.9.1")
933 (source
934 (origin
935 (method url-fetch)
936 (uri
937 (string-append "https://people.redhat.com/~rjones/" name "/files/"
938 name "-" version ".tar.gz"))
939 (sha256
940 (base32
941 "0b77ipvvi520nv7rr6jb1c3xryhc3m2mywhby7m48kfgag8vvx2w"))))
942 (build-system gnu-build-system)
943 (synopsis "External Data Representation Library")
944 (description "PortableXDR is an implementation of External Data
945 Representation (XDR) Library. It is a standard data serialization format, for
946 uses such as computer network protocols. It allows data to be transferred
947 between different kinds of computer systems.")
948 (home-page "https://people.redhat.com/~rjones/portablexdr/")
949 (license
950 (list
951 license:gpl2+
952 license:lgpl2.1+))))
953
954 (define-public tepl
955 (package
956 (name "tepl")
957 (version "4.4.0")
958 (source
959 (origin
960 (method url-fetch)
961 (uri
962 (string-append "mirror://gnome/sources/" name "/"
963 (version-major+minor version) "/"
964 name "-" version ".tar.xz"))
965 (sha256
966 (base32
967 "0mm2z849hnni7597an05mrv0dckrxjngpf2xfa0g5s17i8x6gxp6"))))
968 (build-system glib-or-gtk-build-system)
969 (arguments
970 `(#:tests? #f)) ; FIX-ME: Requires gvfs
971 (native-inputs
972 `(("gobject-introspection" ,gobject-introspection)
973 ("pkg-config" ,pkg-config)))
974 (inputs
975 `(("amtk" ,amtk)
976 ("glib" ,glib)
977 ("gtk+" ,gtk+)
978 ("gtksourceview" ,gtksourceview)
979 ("libxml2" ,libxml2)
980 ("uchardet" ,uchardet)))
981 (synopsis "Text editor product line")
982 (description "Tepl is a library that eases the development of
983 GtkSourceView-based text editors and IDEs.")
984 (home-page "https://wiki.gnome.org/Projects/Tepl")
985 (license license:lgpl2.1+)))
986
987 (define-public krb5-auth-dialog
988 (package
989 (name "krb5-auth-dialog")
990 (version "3.26.1")
991 (source
992 (origin
993 (method url-fetch)
994 (uri
995 (string-append "mirror://gnome/sources/" name "/"
996 (version-major+minor version) "/"
997 name "-" version ".tar.xz"))
998 (sha256
999 (base32
1000 "1w91gsvmifqhiam3xqf88i5rk2w6qadjalmbvvamjdc37j0vdc6x"))))
1001 (build-system glib-or-gtk-build-system)
1002 (native-inputs
1003 `(("intltool" ,intltool)
1004 ("itstool" ,itstool)
1005 ("libxml2" ,libxml2)
1006 ("pkg-config" ,pkg-config)
1007 ("python-wrapper" ,python-wrapper)))
1008 (inputs
1009 `(("glib" ,glib)
1010 ("gtk+" ,gtk+)
1011 ("libnotify" ,libnotify)
1012 ("mit-krb5" ,mit-krb5)
1013 ("network-manager" ,network-manager)))
1014 (synopsis "Popup dialogs for Kerberos 5")
1015 (description "krb5-auth-dialog is a simple dialog that monitors Kerberos
1016 tickets, and pops up a dialog when they are about to expire.")
1017 (home-page "https://gitlab.gnome.org/GNOME/krb5-auth-dialog")
1018 (license license:gpl2+)))
1019
1020 (define-public notification-daemon
1021 (package
1022 (name "notification-daemon")
1023 (version "3.20.0")
1024 (source
1025 (origin
1026 (method url-fetch)
1027 (uri
1028 (string-append "mirror://gnome/sources/" name "/"
1029 (version-major+minor version) "/"
1030 name "-" version ".tar.xz"))
1031 (sha256
1032 (base32
1033 "1rgchqi4j2ll7d6a7lgy7id0w9rrkwkgic1096fbm2zx6n7pc4yx"))))
1034 (build-system glib-or-gtk-build-system)
1035 (native-inputs
1036 `(("intltool" ,intltool)
1037 ("pkg-config" ,pkg-config)))
1038 (inputs
1039 `(("glib" ,glib)
1040 ("gtk+" ,gtk+)
1041 ("x11" ,libx11)))
1042 (synopsis "Notification Daemon for GNOME Desktop")
1043 (description "Notification-Daemon is the server implementation of the
1044 freedesktop.org desktop notification specification.")
1045 (home-page "https://wiki.gnome.org/Projects/NotificationDaemon")
1046 (license license:gpl2+)))
1047
1048 (define-public mm-common
1049 (package
1050 (name "mm-common")
1051 (version "1.0.2")
1052 (source (origin
1053 (method url-fetch)
1054 (uri (string-append "mirror://gnome/sources/mm-common/"
1055 (version-major+minor version) "/"
1056 "mm-common-" version ".tar.xz"))
1057 (sha256
1058 (base32
1059 "07b4s5ckcz9q5gwx8vchim19mhfgl8wysqwi30pndks3m4zrzad2"))))
1060 (build-system meson-build-system)
1061 (arguments
1062 `(#:phases
1063 (modify-phases %standard-phases
1064 (add-after 'unpack 'patch
1065 (lambda* (#:key inputs #:allow-other-keys)
1066 (substitute* "util/mm-common-prepare.in"
1067 (("ln") (string-append (assoc-ref inputs "coreutils")
1068 "/bin/ln"))
1069 (("cp") (string-append (assoc-ref inputs "coreutils")
1070 "/bin/cp"))
1071 (("sed") (string-append (assoc-ref inputs "sed")
1072 "/bin/sed"))
1073 (("cat") (string-append (assoc-ref inputs "coreutils")
1074 "/bin/cat")))
1075 #t)))))
1076 (native-inputs
1077 `(("coreutils" ,coreutils)
1078 ("gettext" ,gettext-minimal)
1079 ("pkg-config" ,pkg-config)
1080 ("sed" ,sed)))
1081 (inputs
1082 `(("python" ,python)))
1083 (synopsis "Module of GNOME C++ bindings")
1084 (description "The mm-common module provides the build infrastructure
1085 and utilities shared among the GNOME C++ binding libraries. Release
1086 archives of mm-common include the Doxygen tag file for the GNU C++
1087 Library reference documentation.")
1088 (home-page "https://gitlab.gnome.org/GNOME/mm-common")
1089 (license license:gpl2+)))
1090
1091 (define-public phodav
1092 (package
1093 (name "phodav")
1094 (version "2.5")
1095 (source (origin
1096 (method url-fetch)
1097 (uri (string-append "mirror://gnome/sources/" name "/"
1098 (version-major+minor version) "/"
1099 name "-" version ".tar.xz"))
1100 (sha256
1101 (base32
1102 "045rdzf8isqmzix12lkz6z073b5qvcqq6ad028advm5gf36skw3i"))))
1103 (build-system meson-build-system)
1104 (arguments
1105 `(#:phases
1106 (modify-phases %standard-phases
1107 (add-before 'check 'start-virtual-dir-server
1108 ;; The same server when started by tests/virtual-dir returns an
1109 ;; unexpected status (4 instead of 200) and fails a test. It is
1110 ;; unclear why starting it manually here makes it pass.
1111 (lambda _
1112 (system "tests/virtual-dir-server &")
1113 #t)))))
1114 (native-inputs
1115 `(("docbook-xml" ,docbook-xml-4.3)
1116 ("gettext" ,gettext-minimal)
1117 ("glib:bin" ,glib "bin")
1118 ("gtk-doc" ,gtk-doc)
1119 ("pkg-config" ,pkg-config)))
1120 (inputs
1121 `(("avahi" ,avahi)
1122 ("libgudev" ,libgudev)
1123 ("libsoup" ,libsoup)))
1124 (synopsis "WebDav server implementation using libsoup")
1125 (description "PhoDav was initially developed as a file-sharing mechanism for Spice,
1126 but it is generic enough to be reused in other projects,
1127 in particular in the GNOME desktop.")
1128 (home-page "https://wiki.gnome.org/phodav")
1129 (license license:lgpl2.1+)))
1130
1131 (define-public gnome-color-manager
1132 (package
1133 (name "gnome-color-manager")
1134 (version "3.32.0")
1135 (source (origin
1136 (method url-fetch)
1137 (uri (string-append "mirror://gnome/sources/" name "/"
1138 (version-major+minor version) "/"
1139 name "-" version ".tar.xz"))
1140 (sha256
1141 (base32
1142 "1vpxa2zjz3lkq9ldjg0fl65db9s6b4kcs8nyaqfz3jygma7ifg3w"))))
1143 (build-system meson-build-system)
1144 (arguments
1145 `(#:glib-or-gtk? #t
1146 #:phases
1147 (modify-phases %standard-phases
1148 (add-before
1149 'check 'pre-check
1150 (lambda _
1151 ;; Tests require a running X server.
1152 (system "Xvfb :1 &")
1153 (setenv "DISPLAY" ":1")
1154 #t)))))
1155 (native-inputs
1156 `(("desktop-file-utils" ,desktop-file-utils)
1157 ("gettext" ,gettext-minimal)
1158 ("glib:bin" ,glib "bin")
1159 ("gtk+:bin" ,gtk+ "bin")
1160 ("itstool" ,itstool)
1161 ("pkg-config" ,pkg-config)
1162 ("xorg-server" ,xorg-server-for-tests)))
1163 (inputs
1164 `(("adwaita-icon-theme" ,adwaita-icon-theme)
1165 ("appstream-glib" ,appstream-glib)
1166 ("colord-gtk" ,colord-gtk)
1167 ("exiv2" ,exiv2)
1168 ("gnome-desktop" ,gnome-desktop)
1169 ("libcanberra" ,libcanberra)
1170 ("libexif" ,libexif)
1171 ("libtiff" ,libtiff)
1172 ("libxrandr" ,libxrandr)
1173 ("libxtst" ,libxtst)
1174 ("libxxf86vm" ,libxxf86vm)
1175 ("vte" ,vte)
1176 ("xorgproto" ,xorgproto)))
1177 (synopsis "Color profile manager for the GNOME desktop")
1178 (description "GNOME Color Manager is a session framework that makes
1179 it easy to manage, install and generate color profiles
1180 in the GNOME desktop.")
1181 (home-page "https://gitlab.gnome.org/GNOME/gnome-color-manager")
1182 (license license:gpl2+)))
1183
1184 (define-public gnome-online-miners
1185 (package
1186 (name "gnome-online-miners")
1187 (version "3.34.0")
1188 (source (origin
1189 (method url-fetch)
1190 (uri (string-append "mirror://gnome/sources/" name "/"
1191 (version-major+minor version) "/"
1192 name "-" version ".tar.xz"))
1193 (sha256
1194 (base32
1195 "1n2jz9i8a42zwxx5h8j2gdy6q1vyydh4vl00r0al7w8jzdh24p44"))))
1196 (build-system glib-or-gtk-build-system)
1197 (native-inputs
1198 `(("gettext" ,gettext-minimal)
1199 ("glib:bin" ,glib "bin")
1200 ("gobject-introspection" ,gobject-introspection)
1201 ("gtk+:bin" ,gtk+ "bin")
1202 ("pkg-config" ,pkg-config)))
1203 (inputs
1204 `(("gnome-online-accounts" ,gnome-online-accounts)
1205 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1206 ("grilo" ,grilo)
1207 ("libgdata" ,libgdata)
1208 ("libgfbgraph" ,gfbgraph)
1209 ("libzapojit" ,libzapojit)
1210 ("rest" ,rest)
1211 ("tracker" ,tracker)))
1212 (synopsis "Web Crawlers for GNOME")
1213 (description "GNOME Online Miners provides a set of crawlers that
1214 go through your online content and index them locally in Tracker.
1215 It has miners for Facebook, Flickr, Google, ownCloud and SkyDrive.")
1216 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineMiners")
1217 (license license:gpl2+)))
1218
1219 (define-public gssdp
1220 (package
1221 (name "gssdp")
1222 (version "1.2.3")
1223 (source (origin
1224 (method url-fetch)
1225 (uri (string-append "mirror://gnome/sources/" name "/"
1226 (version-major+minor version) "/"
1227 name "-" version ".tar.xz"))
1228 (sha256
1229 (base32
1230 "1s57i8a8wnnxnsfl27cq4503dkdlzbrhry5zpg23sfqfffvdqqx2"))))
1231 (build-system meson-build-system)
1232 (native-inputs
1233 `(("gettext" ,gettext-minimal)
1234 ("glib:bin" ,glib "bin")
1235 ("gobject-introspection" ,gobject-introspection)
1236 ("gtk-doc" ,gtk-doc)
1237 ("pkg-config" ,pkg-config)
1238 ("vala" ,vala)))
1239 (inputs
1240 `(("gtk+" ,gtk+)
1241 ("libsoup" ,libsoup)))
1242 (synopsis "GObject-based API over @acronym{SSDP, Simple Service Discovery
1243 Protocol} for GNOME")
1244 (description "This package provides a library to handle resource discovery
1245 and announcement over @acronym{SSDP, Simple Service Discovery Protocol} and
1246 a debugging tool, @command{gssdp-device-sniffer}.")
1247 (home-page "https://gitlab.gnome.org/GNOME/gssdp")
1248 (license license:lgpl2.0+)))
1249
1250 (define-public gupnp
1251 (package
1252 (name "gupnp")
1253 (version "1.2.4")
1254 (source (origin
1255 (method url-fetch)
1256 (uri (string-append "mirror://gnome/sources/" name "/"
1257 (version-major+minor version) "/"
1258 name "-" version ".tar.xz"))
1259 (sha256
1260 (base32
1261 "1ld7mrpdv9cszmfzh7i19qx4li25j3fr7x1jp38l8phzlmz3187p"))))
1262 (build-system meson-build-system)
1263 (native-inputs
1264 `(("gettext" ,gettext-minimal)
1265 ("glib:bin" ,glib "bin")
1266 ("gobject-introspection" ,gobject-introspection)
1267 ("gtk-doc" ,gtk-doc)
1268 ("pkg-config" ,pkg-config)
1269 ("vala" ,vala)))
1270 (inputs
1271 `(("gssdp" ,gssdp)
1272 ("gtk+" ,gtk+)
1273 ("libsoup" ,libsoup)))
1274 (synopsis "PnP API for GNOME")
1275 (description "This package provides GUPnP, an object-oriented framework
1276 for creating UPnP devices and control points, written in C using
1277 @code{GObject} and @code{libsoup}.")
1278 (home-page "https://gitlab.gnome.org/GNOME/gupnp")
1279 (license license:lgpl2.0+)))
1280
1281 (define-public gupnp-dlna
1282 (package
1283 (name "gupnp-dlna")
1284 (version "0.10.5")
1285 (source (origin
1286 (method url-fetch)
1287 (uri (string-append "mirror://gnome/sources/" name "/"
1288 (version-major+minor version) "/"
1289 name "-" version ".tar.xz"))
1290 (sha256
1291 (base32
1292 "0spzd2saax7w776p5laixdam6d7smyynr9qszhbmq7f14y13cghj"))))
1293 (build-system gnu-build-system)
1294 (native-inputs
1295 `(("gettext" ,gettext-minimal)
1296 ("glib:bin" ,glib "bin")
1297 ("gobject-introspection" ,gobject-introspection)
1298 ("gtk-doc" ,gtk-doc)
1299 ("libxml" ,libxml2)
1300 ("pkg-config" ,pkg-config)
1301 ("vala" ,vala)))
1302 (inputs
1303 `(("gstreamer" ,gstreamer)
1304 ("gupnp" ,gupnp)))
1305 (propagated-inputs
1306 `(("gst-plugins-base" ,gst-plugins-base)
1307 ("gst-plugins-good" ,gst-plugins-good)))
1308 (synopsis "GUPnP DLNA for GNOME")
1309 (description "This package provides a small utility library to
1310 support DLNA-related tasks such as media profile guessing, transcoding to a
1311 given profile, etc. DLNA is a subset of UPnP A/V.")
1312 (home-page "https://gitlab.gnome.org/GNOME/gupnp-dlna")
1313 (license license:lgpl2.0+)))
1314
1315 (define-public gupnp-av
1316 (package
1317 (name "gupnp-av")
1318 (version "0.12.11")
1319 (source (origin
1320 (method url-fetch)
1321 (uri (string-append "mirror://gnome/sources/" name "/"
1322 (version-major+minor version) "/"
1323 name "-" version ".tar.xz"))
1324 (sha256
1325 (base32
1326 "1p3grslwqm9bc8rmpn4l48d7v9s84nina4r9xbd932dbj8acz7b8"))))
1327 (build-system gnu-build-system)
1328 (native-inputs
1329 `(("gettext" ,gettext-minimal)
1330 ("glib:bin" ,glib "bin")
1331 ("gobject-introspection" ,gobject-introspection)
1332 ("gtk-doc" ,gtk-doc)
1333 ("libxml" ,libxml2)
1334 ("pkg-config" ,pkg-config)))
1335 (inputs
1336 `(("gtk+" ,gtk+)
1337 ("gupnp" ,gupnp)))
1338 (synopsis "GUPnP A/V for GNOME")
1339 (description "This package provides a small library for handling
1340 and implementation of UPnP A/V profiles.")
1341 (home-page "https://gitlab.gnome.org/GNOME/gupnp-av")
1342 (license license:lgpl2.0+)))
1343
1344 (define-public libmediaart
1345 (package
1346 (name "libmediaart")
1347 (version "1.9.4")
1348 (source (origin
1349 (method url-fetch)
1350 (uri (string-append "mirror://gnome/sources/" name "/"
1351 (version-major+minor version) "/"
1352 name "-" version ".tar.xz"))
1353 (sha256
1354 (base32
1355 "0gc10imyabk57ar54m0qzms0x9dnmkymhkzyk8w1aj3y4lby0yx5"))))
1356 (build-system gnu-build-system)
1357 (native-inputs
1358 `(("glib:bin" ,glib "bin")
1359 ("pkg-config" ,pkg-config)))
1360 (inputs
1361 `(("gdk-pixbuf" ,gdk-pixbuf)
1362 ("gettext" ,gettext-minimal)
1363 ("gobject-introspection" ,gobject-introspection)
1364 ("gtk+:doc" ,gtk+ "doc")
1365 ("vala" ,vala)))
1366 (synopsis "Media art library for the GNOME desktop")
1367 (description
1368 "The libmediaart library is the foundation for media art caching,
1369 extraction, and lookup for applications on the desktop.")
1370 (home-page "https://gitlab.gnome.org/GNOME/libmediaart")
1371 (license license:lgpl2.1+)))
1372
1373 (define-public gnome-initial-setup
1374 (package
1375 (name "gnome-initial-setup")
1376 (version "3.32.1")
1377 (source (origin
1378 (method url-fetch)
1379 (uri (string-append "mirror://gnome/sources/gnome-initial-setup/"
1380 (version-major+minor version)
1381 "/gnome-initial-setup-" version ".tar.xz"))
1382 (sha256
1383 (base32
1384 "1gwhp7dalyc8zsb2pa66cmpdrj2d6drbq5p331sq6zp8ds10k9ry"))))
1385 (build-system meson-build-system)
1386 (arguments
1387 '(#:configure-flags '(;; Enable camera support for user selfie.
1388 "-Dcheese=auto"
1389 "-Dsystemd=false")
1390 #:phases (modify-phases %standard-phases
1391 (add-after 'unpack 'set-gkbd-file-name
1392 (lambda* (#:key inputs #:allow-other-keys)
1393 ;; Allow the "Preview" button in the keyboard layout
1394 ;; selection dialog to display the layout.
1395 (let ((libgnomekbd (assoc-ref inputs "libgnomekbd")))
1396 (substitute* "gnome-initial-setup/pages/keyboard/cc-input-chooser.c"
1397 (("\"gkbd-keyboard-display")
1398 (string-append "\"" libgnomekbd
1399 "/bin/gkbd-keyboard-display")))
1400 #t))))))
1401 (native-inputs
1402 `(("gettext" ,gettext-minimal)
1403 ("glib:bin" ,glib "bin")
1404 ("gobject-introspection" ,gobject-introspection)
1405 ("gtk+:bin" ,gtk+ "bin")
1406 ("pkg-config" ,pkg-config)))
1407 (inputs
1408 `(("accountsservice" ,accountsservice)
1409 ;("adwaita-icon-theme" ,adwaita-icon-theme)
1410 ("gdm" ,gdm)
1411 ("geoclue" ,geoclue)
1412 ("gnome-desktop" ,gnome-desktop)
1413 ("gnome-getting-started-docs" ,gnome-getting-started-docs)
1414 ("gnome-online-accounts" ,gnome-online-accounts)
1415 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1416 ("gstreamer" ,gstreamer)
1417 ("ibus" ,ibus)
1418 ("json-glib" ,json-glib)
1419 ("krb5" ,mit-krb5)
1420 ("libgweather" ,libgweather)
1421 ("libnma" ,libnma)
1422 ("libsecret" ,libsecret)
1423 ("network-manager" ,network-manager)
1424 ("packagekit" ,packagekit)
1425 ("polkit" ,polkit)
1426 ("pwquality" ,libpwquality)
1427 ("rest" ,rest)
1428 ("upower" ,upower)
1429 ("webkitgtk" ,webkitgtk)
1430 ("libgnomekbd" ,libgnomekbd)))
1431 (synopsis "Initial setup wizard for GNOME desktop")
1432 (description "This package provides a set-up wizard when a
1433 user logs into GNOME for the first time. It typically provides a
1434 tour of all gnome components and allows the user to set them up.")
1435 (home-page "https://gitlab.gnome.org/GNOME/gnome-initial-setup")
1436 (license license:gpl2)))
1437
1438 (define-public gnome-user-share
1439 (package
1440 (name "gnome-user-share")
1441 (version "3.33.1")
1442 (source (origin
1443 (method url-fetch)
1444 (uri (string-append "mirror://gnome/sources/" name "/"
1445 (version-major+minor version) "/"
1446 name "-" version ".tar.xz"))
1447 (sha256
1448 (base32
1449 "0lf790pyamdyj7180ils8vizjl8brxcg7jsm1iavfp9ay4wa8mz7"))))
1450 (build-system meson-build-system)
1451 (arguments
1452 `(#:glib-or-gtk? #t
1453 #:configure-flags
1454 `("-Dsystemd=false"
1455 ;; Enable nautilus extension for file sharing.
1456 "-Dnautilus_extension=true")))
1457 (native-inputs
1458 `(("gettext" ,gettext-minimal)
1459 ("glib:bin" ,glib "bin")
1460 ("gobject-introspection" ,gobject-introspection)
1461 ("gtk+:bin" ,gtk+ "bin")
1462 ("pkg-config" ,pkg-config)
1463 ("yelp-tools" ,yelp-tools)))
1464 (inputs
1465 `(("glib" ,glib)
1466 ("gnome-bluetooth" ,gnome-bluetooth)
1467 ("gtk+" ,gtk+)
1468 ("libcanberra" ,libcanberra)
1469 ("libnotify" ,libnotify)
1470 ("nautilus" ,nautilus))) ; For nautilus extension.
1471 (synopsis "File sharing for GNOME desktop")
1472 (description "GNOME User Share is a small package that binds together
1473 various free software projects to bring easy to use user-level file
1474 sharing to the masses.")
1475 (home-page "https://gitlab.gnome.org/GNOME/gnome-user-share")
1476 (license license:gpl2+)))
1477
1478 (define-public sushi
1479 (package
1480 (name "sushi")
1481 (version "3.32.1")
1482 (source (origin
1483 (method url-fetch)
1484 (uri (string-append "mirror://gnome/sources/" name "/"
1485 (version-major+minor version) "/"
1486 name "-" version ".tar.xz"))
1487 (sha256
1488 (base32
1489 "02idvqjk76lii9xyg3b1yz4rw721709bdm5j8ikjym6amcghl0aj"))))
1490 (build-system meson-build-system)
1491 (arguments
1492 `(#:glib-or-gtk? #t
1493 #:phases
1494 (modify-phases %standard-phases
1495 (add-after 'glib-or-gtk-wrap 'wrap-typelib
1496 (lambda* (#:key outputs #:allow-other-keys)
1497 (let ((prog (string-append (assoc-ref outputs "out")
1498 "/bin/sushi")))
1499 ;; Put existing typelibs before sushi's deps, so as to correctly
1500 ;; infer gdk-pixbuf
1501 (wrap-program prog
1502 `("GI_TYPELIB_PATH" suffix (,(getenv "GI_TYPELIB_PATH"))))
1503 #t))))))
1504 (native-inputs
1505 `(("glib:bin" ,glib "bin")
1506 ("gettext" ,gettext-minimal)
1507 ("gobject-introspection" ,gobject-introspection)
1508 ("pkg-config" ,pkg-config)))
1509 (inputs
1510 `(("clutter" ,clutter)
1511 ("clutter-gst" ,clutter-gst)
1512 ("clutter-gtk" ,clutter-gtk)
1513 ("evince" ,evince) ; For file previewing.
1514 ("freetype" ,freetype)
1515 ("gdk-pixbuf" ,gdk-pixbuf)
1516 ("gjs" ,gjs)
1517 ("gst-plugins-base" ,gst-plugins-base)
1518 ("gstreamer" ,gstreamer)
1519 ("gtksourceview" ,gtksourceview-3)
1520 ("harfbuzz" ,harfbuzz)
1521 ("libepoxy" ,libepoxy)
1522 ("libmusicbrainz" ,libmusicbrainz)
1523 ("libxml2" ,libxml2)
1524 ("neon" ,neon)
1525 ("webkitgtk" ,webkitgtk)))
1526 (synopsis "File previewer for the GNOME desktop")
1527 (description "Sushi is a DBus-activated service that allows applications to
1528 preview files on the GNOME desktop.")
1529 (home-page "https://gitlab.gnome.org/GNOME/sushi")
1530 (license license:gpl2+)))
1531
1532 (define-public rygel
1533 (package
1534 (name "rygel")
1535 (version "0.38.3")
1536 (source (origin
1537 (method url-fetch)
1538 (uri (string-append "mirror://gnome/sources/" name "/"
1539 (version-major+minor version) "/"
1540 name "-" version ".tar.xz"))
1541 (sha256
1542 (base32
1543 "003xficqb08r1dgid20i7cn889lbfwrglpx78rjd5nkvgxbimhh8"))))
1544 (build-system gnu-build-system)
1545 (native-inputs
1546 `(("gettext" ,gettext-minimal)
1547 ("gobject-introspection" ,gobject-introspection)
1548 ("gtk-doc" ,gtk-doc)
1549 ("pkg-config" ,pkg-config)
1550 ("vala" ,vala)))
1551 (inputs
1552 `(("gdk-pixbuf" ,gdk-pixbuf)
1553 ("gssdp" ,gssdp)
1554 ("gstreamer" ,gstreamer)
1555 ("gst-plugins-base" ,gst-plugins-base)
1556 ("gtk+" ,gtk+)
1557 ("gupnp" ,gupnp)
1558 ("gupnp-av" ,gupnp-av)
1559 ("gupnp-dlna" ,gupnp-dlna)
1560 ("libgee" ,libgee)
1561 ("libmediaart" ,libmediaart)
1562 ("libsoup" ,libsoup)
1563 ("libxslt" ,libxslt)
1564 ("libunistring" ,libunistring)
1565 ("tracker" ,tracker)))
1566 (synopsis "Share audio, video, and pictures with other devices")
1567 (description
1568 "Rygel is a home media solution (@dfn{UPnP AV MediaServer and
1569 MediaRenderer}) for GNOME that allows you to easily share audio, video, and
1570 pictures, and to control a media player on your home network.
1571
1572 Rygel achieves interoperability with other devices by trying to conform to the
1573 strict requirements of DLNA and by converting media on-the-fly to formats that
1574 client devices can handle.")
1575 (home-page "https://wiki.gnome.org/Projects/Rygel")
1576 (license (list
1577 ;; For logo (data/icons/*).
1578 license:cc-by-sa3.0
1579 ;; For all others.
1580 license:lgpl2.1+))))
1581
1582 (define-public libnma
1583 (package
1584 (name "libnma")
1585 (version "1.8.28")
1586 (source (origin
1587 (method url-fetch)
1588 (uri (string-append "mirror://gnome/sources/" name "/"
1589 (version-major+minor version) "/"
1590 name "-" version ".tar.xz"))
1591 (sha256
1592 (base32
1593 "09mp6k0hfam1vyyv9kcd8j4gb2r58i05ipx2nswb58ris599bxja"))))
1594 (build-system meson-build-system)
1595 (arguments
1596 `(#:phases
1597 (modify-phases %standard-phases
1598 (add-after 'unpack 'patch-docbook-xml
1599 (lambda* (#:key inputs #:allow-other-keys)
1600 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
1601 "/xml/dtd/docbook")))
1602 (substitute* "libnma-docs.xml"
1603 (("http://.*/docbookx\\.dtd")
1604 (string-append xmldoc "/docbookx.dtd")))
1605 #t))))))
1606 (native-inputs
1607 `(("docbook-xml" ,docbook-xml-4.3)
1608 ("gettext" ,gettext-minimal)
1609 ("glib:bin" ,glib "bin")
1610 ("gtk-doc" ,gtk-doc)
1611 ("gobject-introspection" ,gobject-introspection)
1612 ("pkg-config" ,pkg-config)
1613 ("vala" ,vala)))
1614 (inputs
1615 `(("gcr" ,gcr)
1616 ("gtk+" ,gtk+)
1617 ("iso-codes" ,iso-codes)
1618 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)
1619 ("network-manager" ,network-manager)))
1620 (synopsis "Network Manager's applet library")
1621 (description "Libnma is an applet library for Network Manager. It was
1622 initially part of network-manager-applet and has now become a separate
1623 project.")
1624 (home-page "https://gitlab.gnome.org/GNOME/libnma")
1625 ;; Some files carry the "GPL-2.0+" SPDX identifier while others say
1626 ;; "LGPL-2.1+".
1627 (license license:gpl2+)))
1628
1629 (define-public gnome-menus
1630 (package
1631 (name "gnome-menus")
1632 (version "3.32.0")
1633 (source (origin
1634 (method url-fetch)
1635 (uri (string-append "mirror://gnome/sources/gnome-menus/"
1636 (version-major+minor version) "/"
1637 name "-" version ".tar.xz"))
1638 (sha256
1639 (base32
1640 "0x2blzqrapmbsbfzxjcdcpa3vkw9hq5k96h9kvjmy9kl415wcl68"))))
1641 (build-system gnu-build-system)
1642 (native-inputs
1643 `(("gettext" ,gettext-minimal)
1644 ("glib" ,glib)
1645 ("pkg-config" ,pkg-config)))
1646 (synopsis "Menu support for GNOME desktop")
1647 (description "GNOME Menus contains the libgnome-menu library, the layout
1648 configuration files for the GNOME menu, as well as a simple menu editor.")
1649 (home-page "https://gitlab.gnome.org/GNOME/gnome-menus")
1650 (license license:lgpl2.0+)))
1651
1652 (define-public deja-dup
1653 (package
1654 (name "deja-dup")
1655 (version "40.6")
1656 (source (origin
1657 (method url-fetch)
1658 (uri (string-append "https://gitlab.gnome.org/World/deja-dup/-/archive/"
1659 version "/deja-dup-" version ".tar.bz2"))
1660 (sha256
1661 (base32
1662 "0lwazh6crby5wpy9fg6zvwy4plqbhs2f98bm5lbizjdlbh88n5q0"))))
1663 (build-system meson-build-system)
1664 (arguments
1665 `(#:glib-or-gtk? #t
1666 #:configure-flags
1667 (list
1668 ;; Otherwise, the RUNPATH will lack the final path component.
1669 (string-append "-Dc_link_args=-Wl,-rpath="
1670 (assoc-ref %outputs "out") "/lib/deja-dup"))
1671 #:phases
1672 (modify-phases %standard-phases
1673 (add-after 'unpack 'patch-paths
1674 (lambda* (#:key inputs #:allow-other-keys)
1675 (let ((python (assoc-ref inputs "python")))
1676 (substitute* '("libdeja/tools/duplicity/DuplicityInstance.vala"
1677 "libdeja/tests/scripts/instance-error.test")
1678 (("/bin/rm")
1679 (which "rm")))
1680 (substitute* "libdeja/tests/runner.vala"
1681 (("/bin/sh")
1682 (which "sh")))
1683 (substitute* "libdeja/tests/scripts/instance-error.test"
1684 (("`which python3`")
1685 (string-append python "/bin/python3"))))))
1686 (add-after 'unpack 'patch-libgpg-error
1687 (lambda* (#:key inputs #:allow-other-keys)
1688 (let ((libgpg-error (assoc-ref inputs "libgpg-error")))
1689 (substitute* "meson.build"
1690 (("(gpgerror_libs = ).*" _ var)
1691 (format #f "~a '-L~a/lib -lgpg-error'\n" var libgpg-error))))
1692 #t))
1693 (add-after 'unpack 'skip-gtk-update-icon-cache
1694 ;; Don't create 'icon-theme.cache'.
1695 (lambda _
1696 (substitute* "data/post-install.sh"
1697 (("gtk-update-icon-cache") "true"))
1698 #t)))))
1699 (inputs
1700 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1701 ("duplicity" ,duplicity)
1702 ("python" ,python)
1703 ("python-pygobject" ,python-pygobject)
1704 ("gtk+" ,gtk+)
1705 ("json-glib" ,json-glib)
1706 ("libnotify" ,libnotify)
1707 ("libgpg-error" ,libgpg-error)
1708 ("libsecret" ,libsecret)
1709 ("libsoup" ,libsoup)
1710 ("packagekit" ,packagekit)))
1711 (native-inputs
1712 `(("appstream-glib" ,appstream-glib)
1713 ("desktop-file-utils" ,desktop-file-utils)
1714 ("gettext" ,gettext-minimal)
1715 ("glib" ,glib "bin") ; for glib-compile-schemas.
1716 ("gobject-introspection" ,gobject-introspection)
1717 ("itstool" ,itstool)
1718 ("pkg-config" ,pkg-config)
1719 ("vala" ,vala)))
1720 (home-page "https://wiki.gnome.org/Apps/DejaDup")
1721 (synopsis "Simple backup tool, for regular encrypted backups")
1722 (description
1723 "Déjà Dup is a simple backup tool, for regular encrypted backups. It
1724 uses duplicity as the backend, which supports incremental backups and storage
1725 either on a local, or remote machine via a number of methods.")
1726 (license license:gpl3+)))
1727
1728 (define-public gnome-commander
1729 (package
1730 (name "gnome-commander")
1731 (version "1.10.3")
1732 (source
1733 (origin
1734 (method url-fetch)
1735 (uri (string-append "mirror://gnome/sources/" name "/"
1736 (version-major+minor version) "/"
1737 "gnome-commander-" version ".tar.xz"))
1738 (sha256
1739 (base32 "0bis36awb73vhkncq8yr0qlnyaxynqkvmyqbg57ijqwd0m8hh4zg"))))
1740 (build-system glib-or-gtk-build-system)
1741 (native-inputs
1742 `(("desktop-file-utils" ,desktop-file-utils)
1743 ("gcc" ,gcc-8) ;required for -Wcast-function-type
1744 ("gettext" ,gettext-minimal)
1745 ("glib:bin" ,glib "bin")
1746 ("gobject-introspection" ,gobject-introspection)
1747 ("googletest" ,googletest)
1748 ("intltool" ,intltool)
1749 ("itstool" ,itstool)
1750 ("libtool" ,libtool)
1751 ("pkg-config" ,pkg-config)))
1752 (inputs
1753 `(("gconf" ,gconf)
1754 ("gnome-vfs" ,gnome-vfs)
1755 ("gtk+" ,gtk+-2)
1756 ("libxml2" ,libxml2)))
1757 (home-page "https://gcmd.github.io/")
1758 (synopsis "Two-pane graphical file manager for the GNOME desktop")
1759 (description
1760 "GNOME Commander is a two-pane graphical file manager using GNOME
1761 libraries. It aims to fulfill the demands of more advanced users who
1762 like to focus on file management, their work through special applications
1763 and running smart commands.")
1764 (license license:gpl2+)))
1765
1766 (define-public gnome-user-docs
1767 (package
1768 (name "gnome-user-docs")
1769 (version "3.32.3")
1770 (source
1771 (origin
1772 (method url-fetch)
1773 (uri (string-append "mirror://gnome/sources/gnome-user-docs/"
1774 (version-major+minor version)
1775 "/gnome-user-docs-" version ".tar.xz"))
1776 (sha256
1777 (base32 "0dvsl0ldg8rf7yq0r4dv1pn41s7gjgcqp7agkbflkbmhrl6vbhig"))))
1778 (build-system gnu-build-system)
1779 (native-inputs
1780 `(("gettext" ,gettext-minimal)
1781 ("itstool" ,itstool)
1782 ("pkg-config" ,pkg-config)
1783 ("xmllint" ,libxml2)))
1784 (synopsis "User documentation for the GNOME desktop")
1785 (description
1786 "The GNOME User Documentation explains how to use the GNOME desktop and its
1787 components. It covers usage and setup of the core GNOME programs by end-users
1788 and system administrators.")
1789 (home-page "https://live.gnome.org/DocumentationProject")
1790 (license license:cc-by3.0)))
1791
1792 (define-public gnome-getting-started-docs
1793 (package
1794 (name "gnome-getting-started-docs")
1795 (version "3.32.2")
1796 (source
1797 (origin
1798 (method url-fetch)
1799 (uri (string-append "mirror://gnome/sources/gnome-getting-started-docs/"
1800 (version-major+minor version)
1801 "/gnome-getting-started-docs-" version ".tar.xz"))
1802 (sha256
1803 (base32 "1v4k465mlzrhgcdddzs6bmm0yliyrfx6jg3gh0s17a08i0w5rbwq"))))
1804 (build-system gnu-build-system)
1805 (native-inputs
1806 `(("gettext" ,gettext-minimal)
1807 ("itstool" ,itstool)
1808 ("pkg-config" ,pkg-config)
1809 ("xmllint" ,libxml2)))
1810 (synopsis "Help to get new users started with the GNOME desktop")
1811 (description
1812 "The GNOME Getting Started Documentation contains GNOME's intuitive
1813 \"Getting Started\" tour, with video guides, that can be viewed with Yelp.
1814
1815 It is normally used together with @command{gnome-initial-setup}, but is also
1816 useful as a tutorial and users' guide for new or less experienced users.")
1817 (home-page "https://live.gnome.org/DocumentationProject")
1818 (license license:cc-by-sa3.0)))
1819
1820 (define-public dia
1821 ;; This version from GNOME's repository includes fixes for compiling with
1822 ;; recent versions of the build tools. The latest activity on the
1823 ;; pre-GNOME version has been in 2014, while GNOME has continued applying
1824 ;; fixes since.
1825 (let ((commit "3cf7ec4c2e5bca139a7f3e17f9fc9009c237fcc5")
1826 (revision "2"))
1827 (package
1828 (name "dia")
1829 (version (git-version "0.97.3" revision commit))
1830 (source (origin
1831 (method git-fetch)
1832 (uri (git-reference
1833 (url "https://gitlab.gnome.org/GNOME/dia.git/")
1834 (commit commit)))
1835 (file-name (git-file-name name version))
1836 (sha256
1837 (base32
1838 "04r8dspa6nmicrifhi3sh46hqvyy88hzq37xx99q3q1mwsrpmwy8"))))
1839 (build-system meson-build-system)
1840 (inputs
1841 `(("graphene" ,graphene)
1842 ("gtk+" ,gtk+-2)
1843 ("libxml2" ,libxml2)
1844 ("libxslt" ,libxslt)
1845 ("poppler" ,poppler)
1846 ;; Without Python 2, build fails: plug-ins/python/meson.build:4:0:
1847 ;; ERROR: Unknown method "dependency" in object.
1848 ("python-2" ,python-2)))
1849 (native-inputs
1850 `(("appstream-glib" ,appstream-glib)
1851 ("docbook-xsl" ,docbook-xsl)
1852 ("glib" ,glib "bin")
1853 ("intltool" ,intltool)
1854 ("pkg-config" ,pkg-config)))
1855 (home-page "https://wiki.gnome.org/Apps/Dia")
1856 (synopsis "Diagram creation for GNOME")
1857 (description "Dia can be used to draw different types of diagrams, and
1858 includes support for UML static structure diagrams (class diagrams), entity
1859 relationship modeling, and network diagrams. The program supports various file
1860 formats like PNG, SVG, PDF and EPS.")
1861 (license license:gpl2+))))
1862
1863 ;; This is the unstable release, but it is required for the current stable
1864 ;; release of gvfs (1.38.1).
1865 (define-public libgdata
1866 (package
1867 (name "libgdata")
1868 (version "0.17.9")
1869 (source (origin
1870 (method url-fetch)
1871 (uri (string-append "mirror://gnome/sources/" name "/"
1872 (version-major+minor version) "/"
1873 name "-" version ".tar.xz"))
1874 (sha256
1875 (base32
1876 "0fj54yqxdapdppisqm1xcyrpgcichdmipq0a0spzz6009ikzgi45"))))
1877 (build-system gnu-build-system)
1878 (arguments
1879 '(#:phases
1880 (modify-phases %standard-phases
1881 (add-before 'check 'disable-failing-tests
1882 (lambda _
1883 ;; The PicasaWeb API tests fail with gnome-online-accounts@3.24.2.
1884 ;; They have been removed in libgdata 0.17.6, so just do the same.
1885 (substitute* "gdata/tests/Makefile"
1886 (("picasaweb\\$\\(EXEEXT\\) ") ""))
1887 #t)))))
1888 (native-inputs
1889 `(("glib:bin" ,glib "bin")
1890 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1891 ("intltool" ,intltool)
1892 ("pkg-config" ,pkg-config)
1893 ("uhttpmock" ,uhttpmock)))
1894 (inputs
1895 `(("cyrus-sasl" ,cyrus-sasl)
1896 ("glib-networking" ,glib-networking)))
1897 (propagated-inputs
1898 `(("gcr" ,gcr)
1899 ("glib" ,glib)
1900 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1901 ("json-glib" ,json-glib)
1902 ("liboauth" ,liboauth)
1903 ("libsoup" ,libsoup)
1904 ("libxml2" ,libxml2)))
1905 (home-page "https://wiki.gnome.org/Projects/libgdata")
1906 (synopsis "Library for accessing online service APIs")
1907 (description
1908 "libgdata is a GLib-based library for accessing online service APIs using
1909 the GData protocol — most notably, Google's services. It provides APIs to
1910 access the common Google services, and has full asynchronous support.")
1911 (license license:lgpl2.1+)))
1912
1913 (define-public libgxps
1914 (package
1915 (name "libgxps")
1916 (version "0.3.1")
1917 (source (origin
1918 (method url-fetch)
1919 (uri (string-append "mirror://gnome/sources/" name "/"
1920 (version-major+minor version) "/"
1921 name "-" version ".tar.xz"))
1922 (sha256
1923 (base32
1924 "157s4c9gjjss6yd7qp7n4q6s72gz1k4ilsx4xjvp357azk49z4qs"))))
1925 (build-system meson-build-system)
1926 (native-inputs
1927 `(("gobject-introspection" ,gobject-introspection)
1928 ("pkg-config" ,pkg-config)))
1929 (inputs
1930 `(("gtk+" ,gtk+)
1931 ("libjpeg" ,libjpeg-turbo)
1932 ("lcms" ,lcms)
1933 ("libtiff" ,libtiff)))
1934 (propagated-inputs
1935 ;; In Requires of libgxps.pc.
1936 `(("cairo" ,cairo)
1937 ("glib" ,glib)
1938 ("libarchive" ,libarchive)))
1939 (home-page "https://wiki.gnome.org/Projects/libgxps")
1940 (synopsis "GObject-based library for handling and rendering XPS documents")
1941 (description
1942 "libgxps is a GObject-based library for handling and rendering XPS
1943 documents. This package also contains binaries that can convert XPS documents
1944 to other formats.")
1945 (license license:lgpl2.1+)))
1946
1947 (define-public gnome-characters
1948 (package
1949 (name "gnome-characters")
1950 (version "3.30.0")
1951 (source
1952 (origin
1953 (method url-fetch)
1954 (uri (string-append "mirror://gnome/sources/"
1955 "gnome-characters/" (version-major+minor version)
1956 "/gnome-characters-" version ".tar.xz"))
1957 (sha256
1958 (base32
1959 "08cwz39iwgsyyb2wqhb8vfbmh1cwfkgfiy7adp08w7rwqi99x3dp"))))
1960 (build-system meson-build-system)
1961 (arguments
1962 `(#:glib-or-gtk? #t
1963 #:phases (modify-phases %standard-phases
1964 (add-after 'install 'wrap
1965 (lambda* (#:key outputs #:allow-other-keys)
1966 ;; GNOME Characters needs Typelib files from GTK and
1967 ;; gnome-desktop.
1968 (wrap-program (string-append (assoc-ref outputs "out")
1969 "/bin/gnome-characters")
1970 `("GI_TYPELIB_PATH" ":" prefix
1971 (,(getenv "GI_TYPELIB_PATH"))))
1972 #t)))))
1973 (native-inputs
1974 `(("gettext" ,gettext-minimal)
1975 ("glib:bin" ,glib "bin")
1976 ("gtk+:bin" ,gtk+ "bin")
1977 ("pkg-config" ,pkg-config)
1978 ("python" ,python-minimal)))
1979 (inputs
1980 `(("gjs" ,gjs)
1981 ("gtk+" ,gtk+)
1982 ("libunistring" ,libunistring)
1983 ("gnome-desktop" ,gnome-desktop)))
1984 (home-page "https://wiki.gnome.org/Apps/CharacterMap")
1985 (synopsis "Find and insert unusual characters")
1986 (description "Characters is a simple utility application to find
1987 and insert unusual characters. It allows you to quickly find the
1988 character you are looking for by searching for keywords.")
1989 (license license:bsd-3)))
1990
1991 (define-public gnome-common
1992 (package
1993 (name "gnome-common")
1994 (version "3.18.0")
1995 (source
1996 (origin
1997 (method url-fetch)
1998 (uri (string-append "mirror://gnome/sources/" name "/"
1999 (version-major+minor version) "/"
2000 name "-" version ".tar.xz"))
2001 (sha256
2002 (base32
2003 "1kzqi8qvh5p1zncj8msazlmvcwsczjz2hqxp4x2y0mg718vrwmi2"))))
2004 (build-system gnu-build-system)
2005 (home-page "https://www.gnome.org/")
2006 (synopsis "Bootstrap GNOME modules built from Git")
2007 (description "gnome-common contains various files needed to bootstrap
2008 GNOME modules built from Git. It contains a common \"autogen.sh\" script that
2009 can be used to configure a source directory checked out from Git and some
2010 commonly used macros.")
2011 (license license:gpl2+)))
2012
2013 (define-public gnome-contacts
2014 (package
2015 (name "gnome-contacts")
2016 (version "3.34")
2017 (source (origin
2018 (method url-fetch)
2019 (uri (string-append "mirror://gnome/sources/gnome-contacts/"
2020 (version-major+minor version) "/"
2021 name "-" version ".tar.xz"))
2022 (sha256
2023 (base32
2024 "04igc9xvyc4kb5xf5g2missnvyvj9zv5cqxf5k4z7hb0sv42wq4r"))))
2025 (build-system meson-build-system)
2026 (arguments
2027 `(#:configure-flags '("-Dcheese=false")
2028 #:phases
2029 (modify-phases %standard-phases
2030 (add-after 'unpack 'generate-vapis
2031 (lambda* (#:key inputs #:allow-other-keys)
2032 ;; To generate goa's missing .vapi file
2033 (define goa
2034 (assoc-ref inputs "gnome-online-accounts:lib"))
2035
2036 (invoke "vapigen" "--directory=vapi" "--pkg=gio-2.0"
2037 "--library=goa-1.0"
2038 (string-append goa "/share/gir-1.0/Goa-1.0.gir"))
2039 #t))
2040 (add-after 'unpack 'skip-gtk-update-icon-cache
2041 ;; Don't create 'icon-theme.cache'.
2042 (lambda _
2043 (substitute* "build-aux/meson_post_install.py"
2044 (("gtk-update-icon-cache") "true"))
2045 #t)))))
2046 (native-inputs
2047 `(("glib:bin" ,glib "bin")
2048 ("pkg-config" ,pkg-config)))
2049 (inputs
2050 `(("docbook-xml" ,docbook-xml)
2051 ("dockbook-xsl" ,docbook-xsl)
2052 ("evolution-data-server" ,evolution-data-server)
2053 ("gettext" ,gettext-minimal)
2054 ("gnome-desktop" ,gnome-desktop)
2055 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
2056 ("gobject-introspection" ,gobject-introspection)
2057 ("gst-plugins-base" ,gst-plugins-base)
2058 ("gtk+" ,gtk+)
2059 ("libgee" ,libgee)
2060 ("libxslt" ,libxslt)
2061 ("telepathy-glib" ,telepathy-glib)
2062 ("vala" ,vala)))
2063 (propagated-inputs
2064 `(("folks" ,folks)
2065 ("telepathy-mission-control" ,telepathy-mission-control)))
2066 (synopsis "GNOME's integrated address book")
2067 (description
2068 "GNOME Contacts organizes your contact information from online and
2069 offline sources, providing a centralized place for managing your contacts.")
2070 (home-page "https://wiki.gnome.org/Apps/Contacts")
2071 (license license:gpl2+)))
2072
2073 (define-public gnome-desktop
2074 (package
2075 (name "gnome-desktop")
2076 (version "3.34.2")
2077 (source
2078 (origin
2079 (method url-fetch)
2080 (uri (string-append "mirror://gnome/sources/" name "/"
2081 (version-major+minor version) "/"
2082 name "-" version ".tar.xz"))
2083 (sha256
2084 (base32
2085 "1v983xirwp1y6ggz97bh742ak6gff0hxb359dgn37nikjxhvm0a0"))))
2086 (build-system meson-build-system)
2087 (arguments
2088 '(#:phases
2089 (modify-phases %standard-phases
2090 (add-before 'configure 'patch-path
2091 (lambda* (#:key inputs #:allow-other-keys)
2092 (let ((libc (assoc-ref inputs "libc")))
2093 (substitute* "libgnome-desktop/gnome-languages.c"
2094 (("\"locale\"")
2095 (string-append "\"" libc "/bin/locale\"")))
2096 #t)))
2097 (add-before 'configure 'patch-bubblewrap
2098 (lambda* (#:key inputs #:allow-other-keys)
2099 (substitute* "libgnome-desktop/gnome-desktop-thumbnail-script.c"
2100 (("\"bwrap\",")
2101 (string-append "\"" (which "bwrap") "\","))
2102 (("\"--ro-bind\", \"/usr\", \"/usr\",")
2103 (string-append "\"--ro-bind\", \""
2104 (%store-directory)
2105 "\", \""
2106 (%store-directory)
2107 "\","))
2108 (("\"--ro-bind\", \"/etc/ld.so.cache\", \"/etc/ld.so.cache\",") ""))
2109 #t))
2110 (add-before 'check 'pre-check
2111 (lambda* (#:key inputs #:allow-other-keys)
2112 ;; Tests require a running X server and locales.
2113 (system "Xvfb :1 &")
2114 (setenv "DISPLAY" ":1")
2115 (setenv "GUIX_LOCPATH"
2116 (string-append (assoc-ref inputs "glibc-locales")
2117 "/lib/locale"))
2118 #t)))))
2119 (native-inputs
2120 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
2121 ("glibc-locales" ,glibc-locales) ; for tests
2122 ("gobject-introspection" ,gobject-introspection)
2123 ("itstool" ,itstool)
2124 ("intltool" ,intltool)
2125 ("pkg-config" ,pkg-config)
2126 ("xmllint" ,libxml2)
2127 ("xorg-server" ,xorg-server-for-tests)))
2128 (propagated-inputs
2129 ;; Required by gnome-desktop-3.0.pc.
2130 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2131 ("gtk+" ,gtk+)
2132 ("iso-codes" ,iso-codes)
2133 ("libseccomp" ,libseccomp)
2134 ("libx11" ,libx11)
2135 ("xkeyboard-config" ,xkeyboard-config)))
2136 (inputs
2137 `(("gdk-pixbuf" ,gdk-pixbuf)
2138 ("glib" ,glib)
2139 ("bubblewrap" ,bubblewrap)
2140 ("libxext" ,libxext)
2141 ("libxkbfile" ,libxkbfile)
2142 ("libxrandr" ,libxrandr)))
2143 (home-page "https://www.gnome.org/")
2144 (synopsis
2145 "Libgnome-desktop, gnome-about, and desktop-wide documents")
2146 (description
2147 "The libgnome-desktop library provides API shared by several applications
2148 on the desktop, but that cannot live in the platform for various reasons.
2149 There is no API or ABI guarantee, although we are doing our best to provide
2150 stability. Documentation for the API is available with gtk-doc.
2151
2152 The gnome-about program helps find which version of GNOME is installed.")
2153 ; Some bits under the LGPL.
2154 (license license:gpl2+)))
2155
2156 (define-public gnome-doc-utils
2157 (package
2158 (name "gnome-doc-utils")
2159 (version "0.20.10")
2160 (source
2161 (origin
2162 (method url-fetch)
2163 (uri (string-append "mirror://gnome/sources/" name "/"
2164 (version-major+minor version) "/"
2165 name "-" version ".tar.xz"))
2166 (sha256
2167 (base32
2168 "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb"))))
2169 (build-system gnu-build-system)
2170 (native-inputs
2171 `(("intltool" ,intltool)
2172 ("docbook-xml" ,docbook-xml-4.4)
2173 ("python2-libxml2" ,python2-libxml2)
2174 ("libxml2" ,libxml2)
2175 ("libxslt" ,libxslt)
2176 ("pkg-config" ,pkg-config)
2177 ("python-2" ,python-2)))
2178 (home-page "https://wiki.gnome.org/GnomeDocUtils")
2179 (synopsis
2180 "Documentation utilities for the Gnome project")
2181 (description
2182 "Gnome-doc-utils is a collection of documentation utilities for the
2183 Gnome project. It includes xml2po tool which makes it easier to translate
2184 and keep up to date translations of documentation.")
2185 (license license:gpl2+))) ; xslt under lgpl
2186
2187 (define-public gnome-disk-utility
2188 (package
2189 (name "gnome-disk-utility")
2190 (version "3.34.0")
2191 (source (origin
2192 (method url-fetch)
2193 (uri (string-append "mirror://gnome/sources/" name "/"
2194 (version-major+minor version) "/"
2195 name "-" version ".tar.xz"))
2196 (sha256
2197 (base32
2198 "1mb7q90lnlp97dhxhnadhjagcfd12dfqzp0vj9h6b1r61pzhy97y"))))
2199 (build-system meson-build-system)
2200 (arguments
2201 '(#:configure-flags '("-Dlogind=libelogind")
2202 #:phases
2203 (modify-phases %standard-phases
2204 (add-after 'unpack 'skip-gtk-update-icon-cache
2205 ;; Don't create 'icon-theme.cache'.
2206 (lambda _
2207 (substitute* "meson_post_install.py"
2208 (("gtk-update-icon-cache") "true"))
2209 #t)))))
2210 (native-inputs
2211 `(("glib:bin" ,glib "bin")
2212 ("intltool" ,intltool)
2213 ("pkg-config" ,pkg-config)
2214 ("docbook-xml" ,docbook-xml)
2215 ("docbook-xsl" ,docbook-xsl)
2216 ("libxml2" ,libxml2)
2217 ("libxslt" ,libxslt)))
2218 (inputs
2219 `(("elogind" ,elogind)
2220 ("glib" ,glib)
2221 ("appstream-glib" ,appstream-glib)
2222 ("gnome-settings-daemon" ,gnome-settings-daemon)
2223 ("gtk+" ,gtk+)
2224 ("libcanberra" ,libcanberra)
2225 ("libdvdread" ,libdvdread)
2226 ("libnotify" ,libnotify)
2227 ("libpwquality" ,libpwquality)
2228 ("libsecret" ,libsecret)
2229 ("udisks" ,udisks)))
2230 (home-page "https://git.gnome.org/browse/gnome-disk-utility")
2231 (synopsis "Disk management utility for GNOME")
2232 (description "Disk management utility for GNOME.")
2233 (license license:gpl2+)))
2234
2235 (define-public gnome-font-viewer
2236 (package
2237 (name "gnome-font-viewer")
2238 (version "3.30.0")
2239 (source (origin
2240 (method url-fetch)
2241 (uri (string-append "mirror://gnome/sources/gnome-font-viewer/"
2242 (version-major+minor version)
2243 "/gnome-font-viewer-" version ".tar.xz"))
2244 (sha256
2245 (base32
2246 "1wwnx2zrlbd2d6np7m9s78alx6j6ranrnh1g2z6zrv9qcj8rpzz5"))))
2247 (build-system meson-build-system)
2248 (arguments
2249 '(#:phases
2250 (modify-phases %standard-phases
2251 (add-after 'unpack 'patch-post-install-script
2252 (lambda _
2253 (substitute* "meson-postinstall.sh"
2254 (("update-desktop-database") (which "true")))
2255 #t)))))
2256 (native-inputs
2257 `(("gettext" ,gettext-minimal)
2258 ("glib:bin" ,glib "bin")
2259 ("pkg-config" ,pkg-config)))
2260 (inputs
2261 `(("glib" ,glib)
2262 ("gnome-desktop" ,gnome-desktop)
2263 ("gtk+" ,gtk+)))
2264 (home-page "https://gitlab.gnome.org/GNOME/gnome-font-viewer")
2265 (synopsis "GNOME Fonts")
2266 (description "Application to show you the fonts installed on your computer
2267 for your use as thumbnails. Selecting any thumbnails shows the full view of how
2268 the font would look under various sizes.")
2269 (license license:gpl2+)))
2270
2271 (define-public gcr
2272 (package
2273 (name "gcr")
2274 (version "3.34.0")
2275 (source (origin
2276 (method url-fetch)
2277 (uri (string-append "mirror://gnome/sources/" name "/"
2278 (version-major+minor version) "/"
2279 name "-" version ".tar.xz"))
2280 (sha256
2281 (base32
2282 "0925snsixzkwh49xiayqmj6fcrmklqk8kyy0jkv7m64h9abm1pr9"))))
2283 (build-system gnu-build-system)
2284 (arguments
2285 '(#:phases
2286 (modify-phases %standard-phases
2287 ;; These fail because /var/lib/dbus/machine-id is not present in the
2288 ;; build environment.
2289 (add-after 'unpack 'disable-failing-tests
2290 (lambda _
2291 (substitute* "Makefile.in"
2292 (("[[:blank:]]+test-system-prompt\\$\\(EXEEXT\\)")
2293 ""))
2294 #t))
2295 (add-before 'check 'pre-check
2296 (lambda _
2297 ;; Some tests expect to write to $HOME.
2298 (setenv "HOME" "/tmp")
2299 #t)))))
2300 (inputs
2301 `(("dbus" ,dbus)
2302 ("gnupg" ,gnupg) ;called as a child process during tests
2303 ("libgcrypt" ,libgcrypt)))
2304 (native-inputs
2305 `(("python" ,python-wrapper) ;for tests
2306 ("pkg-config" ,pkg-config)
2307 ("gettext" ,gettext-minimal)
2308 ("glib" ,glib "bin")
2309 ("gobject-introspection" ,gobject-introspection)
2310 ("libxml2" ,libxml2)
2311 ("vala" ,vala)
2312 ("xsltproc" ,libxslt)))
2313 ;; mentioned in gck.pc, gcr.pc and gcr-ui.pc
2314 (propagated-inputs
2315 `(("p11-kit" ,p11-kit)
2316 ("glib" ,glib)
2317 ("gtk+" ,gtk+)))
2318 (home-page "https://www.gnome.org")
2319 (synopsis "Libraries for displaying certificates and accessing key stores")
2320 (description
2321 "The GCR package contains libraries used for displaying certificates and
2322 accessing key stores. It also provides the viewer for crypto files on the
2323 GNOME Desktop.")
2324 (license license:lgpl2.1+)))
2325
2326 (define-public gdl
2327 (package
2328 (name "gdl")
2329 (version "3.34.0")
2330 (source (origin
2331 (method git-fetch)
2332 (uri (git-reference
2333 (url "https://gitlab.gnome.org/GNOME/gdl.git")
2334 (commit (string-append "GDL_" (string-map (match-lambda
2335 (#\. #\_)
2336 (c c))
2337 version)))))
2338 (file-name (git-file-name name version))
2339 (sha256
2340 (base32
2341 "154qcr0x6f68f4q526y87imv0rscmp34n47nk1pp82rsq52h2zna"))))
2342 (build-system gnu-build-system)
2343 (native-inputs
2344 `(("autoconf" ,autoconf)
2345 ("automake" ,automake)
2346 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2347 ("gnome-common" ,gnome-common)
2348 ("gtk-doc" ,gtk-doc)
2349 ("intltool" ,intltool)
2350 ("pkg-config" ,pkg-config)
2351 ("libtool" ,libtool)
2352 ("which" ,which)))
2353 (inputs
2354 `(("libxml2" ,libxml2)))
2355 (propagated-inputs
2356 ;; The gdl-3.0.pc file 'Requires' GTK+.
2357 `(("gtk+" ,gtk+)))
2358 (home-page "https://gitlab.gnome.org/GNOME/gdl/")
2359 (synopsis "GNOME docking library")
2360 (description "This library provides docking features for gtk+.")
2361 (license license:lgpl2.1+)))
2362
2363 ;;; A minimal variant used to break a cycle with Inkscape.
2364 (define-public gdl-minimal
2365 (package
2366 (inherit gdl)
2367 (name "gdl-minimal")
2368 (arguments
2369 '(#:phases
2370 (modify-phases %standard-phases
2371 (add-after 'unpack 'disable-doc-generation
2372 ;; XXX: There is no easy way to disable generating the
2373 ;; documentation.
2374 (lambda _
2375 (substitute* "configure.in"
2376 (("GTK_DOC_CHECK.*") "")
2377 (("docs/.*") ""))
2378 (substitute* "Makefile.am"
2379 (("gdl docs po") "gdl po"))
2380 #t)))))
2381 (native-inputs (alist-delete "gtk-doc" (package-native-inputs gdl)))))
2382
2383 (define-public libgnome-keyring
2384 (package
2385 (name "libgnome-keyring")
2386 (version "3.12.0")
2387 (source (origin
2388 (method url-fetch)
2389 (uri (string-append "mirror://gnome/sources/" name "/"
2390 (version-major+minor version) "/"
2391 name "-" version ".tar.xz"))
2392 (sha256
2393 (base32
2394 "10vpjhgbjm7z2djy04qakd02qlzpd02xnbfjhk2aqwjzn3xpihf4"))))
2395 (build-system gnu-build-system)
2396 (inputs
2397 `(("libgcrypt" ,libgcrypt)
2398 ("dbus" ,dbus)))
2399 (native-inputs
2400 `(("pkg-config" ,pkg-config)
2401 ("glib" ,glib "bin")
2402 ("intltool" ,intltool)))
2403 (propagated-inputs
2404 ;; Referred to in .h files and .pc.
2405 `(("glib" ,glib)))
2406 (home-page "https://www.gnome.org")
2407 (synopsis "Accessing passwords from the GNOME keyring")
2408 (description
2409 "Client library to access passwords from the GNOME keyring.")
2410
2411 ;; Though a couple of files are LGPLv2.1+.
2412 (license license:lgpl2.0+)))
2413
2414 (define-public gnome-keyring
2415 (package
2416 (name "gnome-keyring")
2417 (version "3.34.0")
2418 (source (origin
2419 (method url-fetch)
2420 (uri (string-append "mirror://gnome/sources/" name "/"
2421 (version-major+minor version) "/"
2422 name "-" version ".tar.xz"))
2423 (sha256
2424 (base32
2425 "0hqrsh5g9q9lm190f0m85q4nki8k4ng7wphl6qbccdry59aakkg9"))))
2426 (build-system gnu-build-system)
2427 (arguments
2428 `(#:tests? #f ;48 of 603 tests fail because /var/lib/dbus/machine-id does
2429 ;not exist
2430 #:configure-flags
2431 (list
2432 (string-append "--with-pkcs11-config="
2433 (assoc-ref %outputs "out") "/share/p11-kit/modules/")
2434 (string-append "--with-pkcs11-modules="
2435 (assoc-ref %outputs "out") "/share/p11-kit/modules/"))
2436 #:phases
2437 (modify-phases %standard-phases
2438 (add-after 'unpack 'fix-/bin/sh-reference
2439 (lambda _
2440 (substitute* "po/Makefile.in.in"
2441 (("/bin/sh") (which "sh")))
2442 #t))
2443 (add-after 'unpack 'fix-docbook
2444 (lambda* (#:key inputs #:allow-other-keys)
2445 (substitute* "docs/Makefile.am"
2446 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
2447 (string-append (assoc-ref inputs "docbook-xsl")
2448 "/xml/xsl/docbook-xsl-"
2449 ,(package-version docbook-xsl)
2450 "/manpages/docbook.xsl")))
2451 (setenv "XML_CATALOG_FILES"
2452 (string-append (assoc-ref inputs "docbook-xml")
2453 "/xml/dtd/docbook/catalog.xml"))
2454 ;; Rerun the whole thing to avoid version mismatch ("This is
2455 ;; Automake 1.15.1, but the definition used by this
2456 ;; AM_INIT_AUTOMAKE comes from Automake 1.15."). Note: we don't
2457 ;; use 'autoreconf' because it insists on running 'libtoolize'.
2458 (invoke "autoconf")
2459 (invoke "aclocal")
2460 (invoke "automake" "-ac"))))))
2461 (inputs
2462 `(("libgcrypt" ,libgcrypt)
2463 ("linux-pam" ,linux-pam)
2464 ("openssh" ,openssh)
2465 ("dbus" ,dbus)
2466 ("gcr" ,gcr)))
2467 (native-inputs
2468 `(("pkg-config" ,pkg-config)
2469 ("glib" ,glib "bin")
2470 ("glib" ,glib) ; for m4 macros
2471 ("python" ,python-2) ;for tests
2472 ("intltool" ,intltool)
2473 ("autoconf" ,autoconf)
2474 ("automake" ,automake)
2475 ("libxslt" ,libxslt) ;for documentation
2476 ("docbook-xml" ,docbook-xml-4.2)
2477 ("docbook-xsl" ,docbook-xsl)))
2478 (home-page "https://www.gnome.org")
2479 (synopsis "Daemon to store passwords and encryption keys")
2480 (description
2481 "gnome-keyring is a program that keeps passwords and other secrets for
2482 users. It is run as a daemon in the session, similar to ssh-agent, and other
2483 applications locate it via an environment variable or D-Bus.
2484
2485 The program can manage several keyrings, each with its own master password,
2486 and there is also a session keyring which is never stored to disk, but
2487 forgotten when the session ends.")
2488 (license license:lgpl2.1+)))
2489
2490 (define-public evince
2491 (package
2492 (name "evince")
2493 (version "3.36.5")
2494 (source (origin
2495 (method url-fetch)
2496 (uri (string-append "mirror://gnome/sources/evince/"
2497 (version-major+minor version) "/"
2498 "evince-" version ".tar.xz"))
2499 (sha256
2500 (base32
2501 "0z79jl0j9xq9wgwkfr0d1w1qrdy4447y8shs407n5srr0vixc3bg"))))
2502 (build-system glib-or-gtk-build-system)
2503 (arguments
2504 `(#:configure-flags '("--disable-nautilus" "--enable-introspection")
2505 #:phases
2506 (modify-phases %standard-phases
2507 (add-before 'install 'skip-gtk-update-icon-cache
2508 ;; Don't create 'icon-theme.cache'.
2509 (lambda _
2510 (substitute* "data/Makefile"
2511 (("gtk-update-icon-cache") "true"))
2512 #t)))))
2513 (inputs
2514 `(("libarchive" ,libarchive)
2515 ("libgxps" ,libgxps)
2516 ("libspectre" ,libspectre)
2517 ("djvulibre" ,djvulibre)
2518 ("ghostscript" ,ghostscript)
2519 ("poppler" ,poppler)
2520 ("libtiff" ,libtiff)
2521 ;; TODO:
2522 ;; Build libkpathsea as a shared library for DVI support.
2523 ;; ("libkpathsea" ,texlive-bin)
2524 ("gnome-desktop" ,gnome-desktop)
2525 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2526 ("gspell" ,gspell)
2527 ("libgnome-keyring" ,libgnome-keyring)
2528 ("adwaita-icon-theme" ,adwaita-icon-theme)
2529 ("gdk-pixbuf" ,gdk-pixbuf)
2530 ("atk" ,atk)
2531 ("pango" ,pango)
2532 ("gtk+" ,gtk+)
2533 ("glib" ,glib)
2534 ("libxml2" ,libxml2)
2535 ("libsm" ,libsm)
2536 ("libice" ,libice)
2537 ("shared-mime-info" ,shared-mime-info)
2538 ("dconf" ,dconf)
2539 ("libcanberra" ,libcanberra)
2540 ("libsecret" ,libsecret)
2541
2542 ;; For tests.
2543 ("dogtail" ,python2-dogtail)))
2544 (native-inputs
2545 `(("itstool" ,itstool)
2546 ("intltool" ,intltool)
2547 ("glib" ,glib "bin")
2548 ("gobject-introspection" ,gobject-introspection)
2549 ("pkg-config" ,pkg-config)
2550 ("xmllint" ,libxml2)))
2551 (home-page "https://www.gnome.org/projects/evince/")
2552 (synopsis "GNOME's document viewer")
2553 (description
2554 "Evince is a document viewer for multiple document formats. It
2555 currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
2556 of Evince is to replace the multiple document viewers that exist
2557 on the GNOME Desktop with a single simple application.")
2558 (license license:gpl2+)))
2559
2560 (define-public gsettings-desktop-schemas
2561 (package
2562 (name "gsettings-desktop-schemas")
2563 (version "3.34.0")
2564 (source
2565 (origin
2566 (method url-fetch)
2567 (uri (string-append "mirror://gnome/sources/" name "/"
2568 (version-major+minor version) "/"
2569 name "-" version ".tar.xz"))
2570 (sha256
2571 (base32
2572 "1bayr76aylawf2fhyjhv9zgk4kpv7ivrrmd80khb0h3h1wk092r8"))))
2573 (build-system meson-build-system)
2574 (arguments
2575 '(#:phases (modify-phases %standard-phases
2576 (add-after 'unpack 'patch-schemas
2577 (lambda* (#:key inputs #:allow-other-keys)
2578 (let ((theme (assoc-ref inputs "gnome-backgrounds")))
2579 (substitute* (find-files "schemas"
2580 "\\.gschema\\.xml\\.in$")
2581 ;; Provide the correct file name of the default GNOME
2582 ;; background, 'adwaita-timed.xml'.
2583 (("@datadir@/backgrounds/gnome")
2584 (string-append theme "/share/backgrounds/gnome"))
2585 ;; Do not reference fonts, that may not exist.
2586 (("'Source Code Pro 10'") "'Monospace 11'"))
2587 #t))))))
2588 (inputs
2589 `(("glib" ,glib)
2590 ("gnome-backgrounds" ,gnome-backgrounds)))
2591 (native-inputs
2592 `(("intltool" ,intltool)
2593 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
2594 ("gobject-introspection" ,gobject-introspection)
2595 ("pkg-config" ,pkg-config)))
2596 (home-page "https://launchpad.net/gsettings-desktop-schemas")
2597 (synopsis
2598 "GNOME settings for various desktop components")
2599 (description
2600 "Gsettings-desktop-schemas contains a collection of GSettings schemas
2601 for settings shared by various components of the GNOME desktop.")
2602 (license license:lgpl2.1+)))
2603
2604 (define-public python-liblarch
2605 (package
2606 (name "python-liblarch")
2607 (version "3.0.1")
2608 (source
2609 (origin
2610 (method git-fetch)
2611 (uri (git-reference
2612 (url "https://github.com/getting-things-gnome/liblarch")
2613 (commit (string-append "v" version))))
2614 (file-name (git-file-name name version))
2615 (sha256
2616 (base32 "0xv2mfvyzipbny3iz8vll77wsqxfwh28xj6bj1ff0l452waph45m"))))
2617 (build-system python-build-system)
2618 (arguments
2619 `(#:phases
2620 (modify-phases %standard-phases
2621 (add-before 'check 'start-xserver
2622 (lambda* (#:key inputs #:allow-other-keys)
2623 (system (format #f "~a/bin/Xvfb :1 &"
2624 (assoc-ref inputs "xorg-server")))
2625 (setenv "DISPLAY" ":1")
2626 #t)))))
2627 (native-inputs
2628 `(("xorg-server" ,xorg-server-for-tests)))
2629 (inputs
2630 `(("gtk+" ,gtk+)))
2631 (propagated-inputs
2632 `(("python-pygobject" ,python-pygobject)))
2633 (home-page "https://wiki.gnome.org/Projects/liblarch")
2634 (synopsis "Library to easily handle complex data structures")
2635 (description
2636 "Liblarch is a Python library built to easily handle data structures such
2637 as lists, trees and acyclic graphs. There's also a GTK binding that will
2638 allow you to use your data structure in a @code{Gtk.Treeview}.
2639
2640 Liblarch support multiple views of one data structure and complex filtering.
2641 That way, you have a clear separation between your data themselves (Model)
2642 and how they are displayed (View).")
2643 (license license:lgpl3+)))
2644
2645 (define-public gtg
2646 (package
2647 (name "gtg")
2648 (version "0.4")
2649 (source
2650 (origin
2651 (method git-fetch)
2652 (uri (git-reference
2653 (url "https://github.com/getting-things-gnome/gtg")
2654 (commit (string-append "v" version))))
2655 (file-name (git-file-name name version))
2656 (sha256
2657 (base32 "0r28vyr88rj3kd3cg4gj7sd29wadjchi92wzmbx67d4hlg25h8kk"))))
2658 (build-system meson-build-system)
2659 (arguments
2660 `(#:glib-or-gtk? #t
2661 #:phases
2662 (modify-phases %standard-phases
2663 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
2664 (lambda* (#:key outputs #:allow-other-keys)
2665 (let ((prog (string-append (assoc-ref outputs "out")
2666 "/bin/gtg"))
2667 (pylib (string-append (assoc-ref outputs "out")
2668 "/lib/python"
2669 ,(version-major+minor
2670 (package-version python))
2671 "/site-packages")))
2672 (wrap-program prog
2673 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
2674 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
2675 #t))))))
2676 (native-inputs
2677 `(("desktop-file-utils" ,desktop-file-utils)
2678 ("gettext" ,gettext-minimal)
2679 ("glib:bin" ,glib "bin")
2680 ("gobject-introspection" ,gobject-introspection)
2681 ("gtk+:bin" ,gtk+ "bin")
2682 ("pkg-config" ,pkg-config)))
2683 (inputs
2684 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2685 ("gtk+" ,gtk+)
2686 ("python-dbus" ,python-dbus)
2687 ("python-liblarch" ,python-liblarch)
2688 ("python-pycairo" ,python-pycairo)
2689 ("python-pygobject" ,python-pygobject)
2690 ("python-pyxdg" ,python-pyxdg)))
2691 (home-page "https://wiki.gnome.org/Apps/GTG")
2692 (synopsis "Personal organizer for the GNOME desktop")
2693 (description
2694 "Getting Things GNOME! (GTG) is a personal tasks and TODO list items
2695 organizer for the GNOME desktop environment inspired by the Getting Things
2696 Done (GTD) methodology. GTG is designed with flexibility, adaptability,
2697 and ease of use in mind so it can be used as more than just GTD software.
2698 GTG is intended to help you track everything you need to do and need to
2699 know, from small tasks to large projects.")
2700 (license license:gpl3+)))
2701
2702 (define-public icon-naming-utils
2703 (package
2704 (name "icon-naming-utils")
2705 (version "0.8.90")
2706 (source
2707 (origin
2708 (method url-fetch)
2709 (uri (string-append "https://tango.freedesktop.org/releases/icon-naming-utils-"
2710 version ".tar.bz2"))
2711 (sha256
2712 (base32
2713 "1mc3v28fdfqanx3lqx233vcr4glb4c2376k0kx2v91a4vxwqcdxi"))))
2714 (build-system gnu-build-system)
2715 (inputs
2716 `(("perl" ,perl)
2717 ("perl-xml-simple" ,perl-xml-simple)))
2718 (arguments
2719 '(#:phases
2720 (modify-phases %standard-phases
2721 (add-after 'install 'set-load-paths
2722 ;; Tell 'icon-name-mapping' where XML::Simple is.
2723 (lambda* (#:key outputs #:allow-other-keys)
2724 (let* ((out (assoc-ref outputs "out"))
2725 (prog (string-append out "/libexec/icon-name-mapping")))
2726 (wrap-program
2727 prog
2728 `("PERL5LIB" = ,(list (getenv "PERL5LIB")))))
2729 #t)))))
2730 (home-page "http://tango.freedesktop.org/Standard_Icon_Naming_Specification")
2731 (synopsis
2732 "Utility to implement the Freedesktop Icon Naming Specification")
2733 (description
2734 "To help with the transition to the Freedesktop Icon Naming
2735 Specification, the icon naming utility maps the icon names used by the
2736 GNOME and KDE desktops to the icon names proposed in the specification.")
2737 (license license:lgpl2.1+)))
2738
2739 (define-public gnome-icon-theme
2740 (package
2741 (name "gnome-icon-theme")
2742 (version "3.12.0")
2743 (source
2744 (origin
2745 (method url-fetch)
2746 (uri (string-append "mirror://gnome/sources/" name "/"
2747 (version-major+minor version) "/"
2748 name "-" version ".tar.xz"))
2749 (sha256
2750 (base32
2751 "0fjh9qmmgj34zlgxb09231ld7khys562qxbpsjlaplq2j85p57im"))))
2752 (build-system gnu-build-system)
2753 (arguments
2754 '(#:configure-flags
2755 ;; Don't create 'icon-theme.cache'.
2756 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
2757 (true (string-append coreutils "/bin/true")))
2758 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
2759 (native-inputs
2760 `(("icon-naming-utils" ,icon-naming-utils)
2761 ("intltool" ,intltool)
2762 ("pkg-config" ,pkg-config)))
2763 (home-page "https://wiki.gnome.org/Personalization")
2764 (synopsis "GNOME icon theme")
2765 (description "Icons for the GNOME desktop.")
2766 (license license:lgpl3))) ; or Creative Commons BY-SA 3.0
2767
2768 ;; gnome-icon-theme was renamed to adwaita-icon-theme after version 3.12.0.
2769 (define-public adwaita-icon-theme
2770 (package (inherit gnome-icon-theme)
2771 (name "adwaita-icon-theme")
2772 (version "3.34.3")
2773 (source (origin
2774 (method url-fetch)
2775 (uri (string-append "mirror://gnome/sources/" name "/"
2776 (version-major+minor version) "/"
2777 name "-" version ".tar.xz"))
2778 (sha256
2779 (base32
2780 "025rj1fskw1y448hiar4a9icyzpyr242nlh9xhsmyp8jb71dihp7"))))
2781 (native-inputs
2782 `(("gtk-encode-symbolic-svg" ,gtk+ "bin")))))
2783
2784 (define-public tango-icon-theme
2785 (package
2786 (name "tango-icon-theme")
2787 (version "0.8.90")
2788 (source (origin
2789 (method url-fetch)
2790 (uri (string-append "http://tango.freedesktop.org/releases/"
2791 "tango-icon-theme-" version ".tar.bz2"))
2792 (sha256
2793 (base32
2794 "034r9s944b4yikyfgn602yv7s54wdzlq0qfvqh52b9x6kbx08h79"))))
2795 (build-system gnu-build-system)
2796 (native-inputs
2797 `(("icon-naming-utils" ,icon-naming-utils)
2798 ("intltool" ,intltool)
2799 ("imagemagick" ,imagemagick)
2800 ("pkg-config" ,pkg-config)))
2801 (home-page "http://tango-project.org/")
2802 (synopsis "Tango icon theme")
2803 (description "This is an icon theme that follows the Tango visual
2804 guidelines.")
2805 (license license:public-domain)))
2806
2807 (define-public shared-mime-info
2808 (package
2809 (name "shared-mime-info")
2810 (version "1.15")
2811 (source (origin
2812 (method url-fetch)
2813 (uri (string-append
2814 "https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/"
2815 "b27eb88e4155d8fccb8bb3cd12025d5b/shared-mime-info-" version
2816 ".tar.xz"))
2817 (sha256
2818 (base32
2819 "146vynj78wcwdq0ms52jzm1r4m6dzi1rhyh3h4xyb6bw8ckv10pl"))))
2820 (build-system gnu-build-system)
2821 (arguments
2822 ;; The build system appears not to be parallel-safe.
2823 '(#:parallel-build? #f))
2824 (inputs
2825 `(("glib" ,glib)
2826 ("libxml2" ,libxml2)))
2827 (native-inputs
2828 `(("gettext" ,gettext-minimal)
2829 ("itstool" ,itstool)
2830 ("pkg-config" ,pkg-config)))
2831 (home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info")
2832 (synopsis "Database of common MIME types")
2833 (description
2834 "The shared-mime-info package contains the core database of common types
2835 and the update-mime-database command used to extend it. It requires glib2 to
2836 be installed for building the update command. Additionally, it uses intltool
2837 for translations, though this is only a dependency for the maintainers. This
2838 database is translated at Transifex.")
2839 (license license:gpl2+)))
2840
2841 (define-public system-config-printer
2842 (package
2843 (name "system-config-printer")
2844 (version "1.5.14")
2845 (source
2846 (origin
2847 (method url-fetch)
2848 (uri (string-append
2849 "https://github.com/OpenPrinting/system-config-printer/releases/"
2850 "download/v" version
2851 "/system-config-printer-" version ".tar.xz"))
2852 (sha256
2853 (base32 "1l79lj44kl079sk308m42x3py1yvcxk5x5bs2vqfmqv26zm8qyqf"))))
2854 (build-system glib-or-gtk-build-system)
2855 (arguments
2856 `(#:imported-modules ((guix build python-build-system)
2857 ,@%glib-or-gtk-build-system-modules)
2858 #:phases
2859 (modify-phases %standard-phases
2860 (add-after 'unpack 'patch-Makefile.am
2861 (lambda _
2862 ;; The Makefile generates some scripts, so set a valid shebang
2863 (substitute* "Makefile.am"
2864 (("/bin/bash") (which "bash")))
2865 (delete-file "configure")
2866 #t))
2867 (add-after 'unpack 'patch-docbook-xml
2868 (lambda* (#:key inputs #:allow-other-keys)
2869 ;; Modify the man XML otherwise xmlto tries to access the network
2870 (substitute* "man/system-config-printer.xml"
2871 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
2872 (string-append (assoc-ref inputs "docbook-xml")
2873 "/xml/dtd/docbook/")))
2874 #t))
2875 (add-after 'install 'wrap-for-python
2876 (@@ (guix build python-build-system) wrap))
2877 (add-after 'install 'wrap
2878 (lambda* (#:key outputs #:allow-other-keys)
2879 (let ((out (assoc-ref outputs "out"))
2880 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
2881 (for-each
2882 (lambda (program)
2883 (wrap-program program
2884 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
2885 (map (lambda (name)
2886 (string-append out "/bin/" name))
2887 '("system-config-printer"
2888 "system-config-printer-applet"
2889 "install-printerdriver"
2890 "scp-dbus-service"))))
2891 #t)))))
2892 (inputs
2893 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2894 ("gobject-introspection" ,gobject-introspection)
2895 ("python" ,python)
2896 ("cups" ,cups)
2897 ("gtk+" ,gtk+)
2898 ("python-dbus" ,python-dbus)
2899 ("python-pygobject" ,python-pygobject)
2900 ("python-pycups" ,python-pycups)
2901 ("python-requests" ,python-requests)
2902 ("python-pycairo" ,python-pycairo)
2903 ("libnotify" ,libnotify)
2904 ("packagekit" ,packagekit)))
2905 (native-inputs
2906 `(("pkg-config" ,pkg-config)
2907 ("desktop-file-utils" ,desktop-file-utils)
2908 ("glib" ,glib)
2909 ("autoconf" ,autoconf)
2910 ("automake" ,automake)
2911 ("intltool" ,intltool)
2912 ("xmlto" ,xmlto)
2913 ("docbook-xml" ,docbook-xml-4.1.2)
2914 ("docbook-xsl" ,docbook-xsl)
2915 ("libxml2" ,libxml2)))
2916 (home-page "https://github.com/zdohnal/system-config-printer")
2917 (synopsis "CUPS administration tool")
2918 (description
2919 "system-config-printer is a CUPS administration tool. It's written in
2920 Python using GTK+, and uses the @acronym{IPP, Internet Printing Protocol} when
2921 configuring CUPS.")
2922 (license license:gpl2+)))
2923
2924 (define-public hicolor-icon-theme
2925 (package
2926 (name "hicolor-icon-theme")
2927 (version "0.17")
2928 (source
2929 (origin
2930 (method url-fetch)
2931 (uri (string-append "https://icon-theme.freedesktop.org/releases/"
2932 "hicolor-icon-theme-" version ".tar.xz"))
2933 (sha256
2934 (base32
2935 "1n59i3al3zx6p90ff0l43gzpzmlqnzm6hf5cryxqrlbi48sq8x1i"))))
2936 (build-system gnu-build-system)
2937 (arguments
2938 `(#:tests? #f)) ; no check target
2939 (home-page "https://icon-theme.freedesktop.org/releases/")
2940 (synopsis
2941 "Freedesktop icon theme")
2942 (description
2943 "Freedesktop icon theme.")
2944 (license license:gpl2)))
2945
2946 (define-public libnotify
2947 (package
2948 (name "libnotify")
2949 (version "0.7.7")
2950 (source
2951 (origin
2952 (method url-fetch)
2953 (uri (string-append "mirror://gnome/sources/" name "/"
2954 (version-major+minor version) "/"
2955 name "-" version ".tar.xz"))
2956 (sha256
2957 (base32
2958 "017wgq9n00hx39n0hm784zn18hl721hbaijda868cm96bcqwxd4w"))))
2959 (build-system gnu-build-system)
2960 (arguments
2961 `(#:configure-flags '("--disable-static")))
2962 (propagated-inputs
2963 `(;; In Requires of libnotify.pc.
2964 ("gdk-pixbuf" ,gdk-pixbuf)
2965 ("glib" ,glib)))
2966 (inputs
2967 `(("gtk+" ,gtk+)
2968 ("libpng" ,libpng)))
2969 (native-inputs
2970 `(("pkg-config" ,pkg-config)
2971 ("glib" ,glib "bin")
2972 ("gobject-introspection" ,gobject-introspection)))
2973 (home-page "https://developer-next.gnome.org/libnotify/")
2974 (synopsis
2975 "GNOME desktop notification library")
2976 (description
2977 "Libnotify is a library that sends desktop notifications to a
2978 notification daemon, as defined in the Desktop Notifications spec. These
2979 notifications can be used to inform the user about an event or display
2980 some form of information without getting in the user's way.")
2981 (license license:lgpl2.1+)))
2982
2983 (define-public libpeas
2984 (package
2985 (name "libpeas")
2986 (version "1.28.0")
2987 (source
2988 (origin
2989 (method url-fetch)
2990 (uri (string-append "mirror://gnome/sources/" name "/"
2991 (version-major+minor version) "/"
2992 name "-" version ".tar.xz"))
2993 (sha256
2994 (base32
2995 "05cb7drn6arc4gi02wgsvzibigi2riz5gnfnmlb0zmbfnj9ikna2"))))
2996 (build-system meson-build-system)
2997 (arguments
2998 '(#:phases
2999 (modify-phases %standard-phases
3000 (add-before 'check 'start-xserver
3001 (lambda* (#:key inputs #:allow-other-keys)
3002 (let ((xorg-server (assoc-ref inputs "xorg-server"))
3003 (disp ":1"))
3004 (setenv "DISPLAY" disp)
3005 ;; Tests require a running X server.
3006 (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp))
3007 #t))))))
3008 (inputs
3009 `(("gtk+" ,gtk+)
3010 ("glade" ,glade3)
3011 ("python" ,python)
3012 ("python-pygobject" ,python-pygobject)))
3013 (native-inputs
3014 `(("pkg-config" ,pkg-config)
3015 ("gettext" ,gettext-minimal)
3016 ("glib:bin" ,glib "bin")
3017 ("gobject-introspection" ,gobject-introspection)
3018 ("xorg-server" ,xorg-server-for-tests)))
3019 (propagated-inputs
3020 ;; The .pc file "Requires" gobject-introspection.
3021 `(("gobject-introspection" ,gobject-introspection)))
3022 (home-page "https://wiki.gnome.org/Libpeas")
3023 (synopsis "GObject plugin system")
3024 (description
3025 "Libpeas is a gobject-based plugin engine, targeted at giving every
3026 application the chance to assume its own extensibility. It also has a set of
3027 features including, but not limited to: multiple extension points; on-demand
3028 (lazy) programming language support for C, Python and JS; simplicity of the
3029 API.")
3030 (license license:lgpl2.0+)))
3031
3032 (define-public gtkglext
3033 (package
3034 (name "gtkglext")
3035 (version "1.2.0")
3036 (source (origin
3037 (method url-fetch)
3038 (uri (string-append "mirror://sourceforge/gtkglext/gtkglext/"
3039 version "/gtkglext-" version ".tar.gz"))
3040 (sha256
3041 (base32 "1ya4d2j2aacr9ii5zj4ac95fjpdvlm2rg79mgnk7yvl1dcy3y1z5"))
3042 (patches (search-patches
3043 "gtkglext-disable-disable-deprecated.patch"))))
3044 (build-system gnu-build-system)
3045 (arguments
3046 `(#:phases
3047 (modify-phases %standard-phases
3048 ;; Fix a collision between a local variable and a definition from
3049 ;; glibc's string.h.
3050 (add-after 'unpack 'fix-collision
3051 (lambda _
3052 (substitute* "gdk/gdkglshapes.c"
3053 ((" index") " triangle_index"))
3054 #t)))))
3055 (inputs `(("gtk+" ,gtk+-2)
3056 ("mesa" ,mesa)
3057 ("glu" ,glu)
3058 ("libx11" ,libx11)
3059 ("libxt" ,libxt)))
3060 (native-inputs `(("pkg-config" ,pkg-config)
3061 ("glib" ,glib "bin")))
3062 (propagated-inputs `(("pangox-compat" ,pangox-compat)))
3063 (home-page "https://projects.gnome.org/gtkglext")
3064 (synopsis "OpenGL extension to GTK+")
3065 (description "GtkGLExt is an OpenGL extension to GTK+. It provides
3066 additional GDK objects which support OpenGL rendering in GTK+ and GtkWidget
3067 API add-ons to make GTK+ widgets OpenGL-capable.")
3068 (license license:lgpl2.1+)))
3069
3070 (define-public glade3
3071 (package
3072 (name "glade")
3073 (version "3.36.0")
3074 (source (origin
3075 (method url-fetch)
3076 (uri (string-append "mirror://gnome/sources/" name "/"
3077 (version-major+minor version) "/"
3078 name "-" version ".tar.xz"))
3079 (sha256
3080 (base32
3081 "023gx8rj51njn8fsb6ma5kz1irjpxi4js0n8rwy22inc4ysldd8r"))))
3082 (build-system glib-or-gtk-build-system)
3083 (arguments
3084 `(#:phases
3085 (modify-phases %standard-phases
3086 (add-before 'configure 'fix-docbook
3087 (lambda* (#:key inputs #:allow-other-keys)
3088 (substitute* "man/Makefile.in"
3089 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
3090 (string-append (assoc-ref inputs "docbook-xsl")
3091 "/xml/xsl/docbook-xsl-"
3092 ,(package-version docbook-xsl)
3093 "/manpages/docbook.xsl")))
3094 #t))
3095 (add-before 'check 'pre-check
3096 (lambda _
3097 (setenv "HOME" "/tmp")
3098 ;; Tests require a running X server.
3099 (system "Xvfb :1 &")
3100 (setenv "DISPLAY" ":1")
3101 #t)))))
3102 (inputs
3103 `(("gtk+" ,gtk+)
3104 ("libxml2" ,libxml2)))
3105 (native-inputs
3106 `(("hicolor-icon-theme" ,hicolor-icon-theme)
3107 ("intltool" ,intltool)
3108 ("itstool" ,itstool)
3109 ("libxslt" ,libxslt) ;for xsltproc
3110 ("docbook-xml" ,docbook-xml-4.2)
3111 ("docbook-xsl" ,docbook-xsl)
3112 ("python" ,python-2)
3113 ("pkg-config" ,pkg-config)
3114 ("xorg-server" ,xorg-server-for-tests)))
3115 (home-page "https://glade.gnome.org")
3116 (synopsis "GTK+ rapid application development tool")
3117 (description "Glade is a rapid application development (RAD) tool to
3118 enable quick & easy development of user interfaces for the GTK+ toolkit and
3119 the GNOME desktop environment.")
3120 (license license:lgpl2.0+)
3121 (native-search-paths (list (search-path-specification
3122 (variable "GLADE_CATALOG_SEARCH_PATH")
3123 (files '("share/glade/catalogs")))
3124 (search-path-specification
3125 (variable "GLADE_MODULE_SEARCH_PATH")
3126 (files '("lib/glade/modules")))))))
3127
3128 (define-public libcroco
3129 (package
3130 (name "libcroco")
3131 (version "0.6.13")
3132 (source (origin
3133 (method url-fetch)
3134 (uri (string-append "mirror://gnome/sources/" name "/"
3135 (version-major+minor version) "/"
3136 name "-" version ".tar.xz"))
3137 (sha256
3138 (base32
3139 "1m110rbj5d2raxcdp4iz0qp172284945awrsbdlq99ksmqsc4zkn"))))
3140 (build-system gnu-build-system)
3141 (native-inputs
3142 `(("pkg-config" ,pkg-config)))
3143 (inputs
3144 `(("glib" ,glib)
3145 ("libxml2" ,libxml2)
3146 ("zlib" ,zlib)))
3147 (home-page "https://github.com/GNOME/libcroco")
3148 (synopsis "CSS2 parsing and manipulation library")
3149 (description
3150 "Libcroco is a standalone CSS2 parsing and manipulation library.
3151 The parser provides a low level event driven SAC-like API and a CSS object
3152 model like API. Libcroco provides a CSS2 selection engine and an experimental
3153 XML/CSS rendering engine.")
3154
3155 ;; LGPLv2.1-only.
3156 (license license:lgpl2.1)))
3157
3158 (define-public libgsf
3159 (package
3160 (name "libgsf")
3161 (version "1.14.47")
3162 (source (origin
3163 (method url-fetch)
3164 (uri (string-append "mirror://gnome/sources/" name "/"
3165 (version-major+minor version) "/"
3166 name "-" version ".tar.xz"))
3167 (sha256
3168 (base32
3169 "0kbpp9ksl7977xiga37sk1gdw1r039v6zviqznl7alvvg39yp26i"))))
3170 (build-system gnu-build-system)
3171 (arguments
3172 '(#:configure-flags '("--disable-static")))
3173 (native-inputs
3174 `(("pkg-config" ,pkg-config)
3175 ("gettext" ,gettext-minimal)
3176
3177 ;; For tests.
3178 ("perl" ,perl)
3179 ("perl-xml-parser" ,perl-xml-parser)))
3180 (inputs
3181 `(("zlib" ,zlib)
3182 ("bzip2" ,bzip2)))
3183 (propagated-inputs
3184 `(("gdk-pixbuf" ,gdk-pixbuf)
3185 ("glib" ,glib)
3186 ("libxml2" ,libxml2)))
3187 (home-page "https://www.gnome.org/projects/libgsf")
3188 (synopsis "GNOME's Structured File Library")
3189 (description
3190 "Libgsf aims to provide an efficient extensible I/O abstraction for
3191 dealing with different structured file formats.")
3192
3193 ;; LGPLv2.1-only.
3194 (license license:lgpl2.1)))
3195
3196 (define-public librsvg
3197 (package
3198 (name "librsvg")
3199 (version "2.40.21")
3200 (source (origin
3201 (method url-fetch)
3202 (uri (string-append "mirror://gnome/sources/" name "/"
3203 (version-major+minor version) "/"
3204 name "-" version ".tar.xz"))
3205 (sha256
3206 (base32
3207 "1fljkag2gr7c4k5mn798lgf9903xslz8h51bgvl89nnay42qjqpp"))))
3208 (build-system gnu-build-system)
3209 (arguments
3210 `(#:configure-flags
3211 (list "--disable-static"
3212 "--enable-vala") ; needed for e.g. gnome-mines
3213 #:phases
3214 (modify-phases %standard-phases
3215 (add-before 'configure 'pre-configure
3216 (lambda* (#:key inputs #:allow-other-keys)
3217 (substitute* "gdk-pixbuf-loader/Makefile.in"
3218 ;; By default the gdk-pixbuf loader is installed under
3219 ;; gdk-pixbuf's prefix. Work around that.
3220 (("gdk_pixbuf_moduledir = .*$")
3221 (string-append "gdk_pixbuf_moduledir = "
3222 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
3223 "loaders\n"))
3224 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
3225 (("gdk_pixbuf_cache_file = .*$")
3226 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
3227 #t))
3228 (add-before 'check 'remove-failing-tests
3229 (lambda _
3230 (with-directory-excursion "tests/fixtures/reftests"
3231 (for-each delete-file
3232 '(;; This test fails on i686:
3233 "svg1.1/masking-path-04-b.svg"
3234 ;; This test fails on armhf:
3235 "svg1.1/masking-mask-01-b.svg"
3236 ;; This test fails on aarch64:
3237 "bugs/777834-empty-text-children.svg")))
3238 #t)))))
3239 (native-inputs
3240 `(("pkg-config" ,pkg-config)
3241 ("vala" ,vala)
3242 ("glib" ,glib "bin") ; glib-mkenums, etc.
3243 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
3244 (inputs
3245 `(;; XXX: 1.44 causes some test failures, so we stick with 1.42 for
3246 ;; this ancient version of librsvg.
3247 ("pango" ,pango-1.42)
3248 ("libcroco" ,libcroco)
3249 ("bzip2" ,bzip2)
3250 ("libgsf" ,libgsf)
3251 ("libxml2" ,libxml2)))
3252 (propagated-inputs
3253 ;; librsvg-2.0.pc refers to all of that.
3254 `(("cairo" ,cairo)
3255 ("gdk-pixbuf" ,gdk-pixbuf)
3256 ("glib" ,glib)))
3257 (home-page "https://wiki.gnome.org/LibRsvg")
3258 (synopsis "Render SVG files using Cairo")
3259 (description
3260 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
3261 library.")
3262 (license license:lgpl2.0+)))
3263
3264 (define-public librsvg-next
3265 (package
3266 (name "librsvg")
3267 (version "2.50.2")
3268 (source (origin
3269 (method url-fetch)
3270 (uri (string-append "mirror://gnome/sources/librsvg/"
3271 (version-major+minor version) "/"
3272 "librsvg-" version ".tar.xz"))
3273 (sha256
3274 (base32
3275 "1lsnl08b5pjf01q3agixjd53islw5rqkc38r31rlmm2crrqz44b2"))
3276 (modules '((guix build utils)))
3277 (snippet
3278 '(begin (delete-file-recursively "vendor")
3279 #t))))
3280 (build-system cargo-build-system)
3281 (outputs '("out" "doc"))
3282 (arguments
3283 `(#:modules
3284 ((guix build cargo-build-system)
3285 (guix build utils)
3286 ((guix build gnu-build-system) #:prefix gnu:))
3287 #:cargo-inputs
3288 (("rust-bitflags" ,rust-bitflags-1)
3289 ("rust-cairo-rs" ,rust-cairo-rs-0.8)
3290 ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
3291 ("rust-cast" ,rust-cast-0.2)
3292 ("rust-cssparser" ,rust-cssparser-0.27)
3293 ("rust-data-url" ,rust-data-url-0.1)
3294 ("rust-encoding" ,rust-encoding-0.2)
3295 ("rust-float-cmp" ,rust-float-cmp-0.8)
3296 ("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.8)
3297 ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.9)
3298 ("rust-gio" ,rust-gio-0.8)
3299 ("rust-gio-sys" ,rust-gio-sys-0.9)
3300 ("rust-glib" ,rust-glib-0.9)
3301 ("rust-glib-sys" ,rust-glib-sys-0.9)
3302 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
3303 ("rust-itertools" ,rust-itertools-0.9)
3304 ("rust-language-tags" ,rust-language-tags-0.2)
3305 ("rust-libc" ,rust-libc-0.2)
3306 ("rust-locale-config" ,rust-locale-config-0.3)
3307 ("rust-markup5ever" ,rust-markup5ever-0.10)
3308 ("rust-nalgebra" ,rust-nalgebra-0.21)
3309 ("rust-num-traits" ,rust-num-traits-0.2)
3310 ("rust-once-cell" ,rust-once-cell-1)
3311 ("rust-pkg-config" ,rust-pkg-config-0.3)
3312 ("rust-pango" ,rust-pango-0.8)
3313 ("rust-pango-sys" ,rust-pango-sys-0.9)
3314 ("rust-pangocairo" ,rust-pangocairo-0.9)
3315 ("rust-rayon" ,rust-rayon-1)
3316 ("rust-rctree" ,rust-rctree-0.3)
3317 ("rust-rgb" ,rust-rgb-0.8)
3318 ("rust-regex" ,rust-regex-1)
3319 ("rust-selectors" ,rust-selectors-0.22)
3320 ("rust-string-cache" ,rust-string-cache-0.8)
3321 ("rust-tinyvec" ,rust-tinyvec-0.3)
3322 ("rust-url" ,rust-url-2)
3323 ("rust-xml5ever" ,rust-xml5ever-0.16))
3324 #:cargo-development-inputs
3325 (("rust-assert-cmd" ,rust-assert-cmd-1)
3326 ("rust-cairo-rs" ,rust-cairo-rs-0.8)
3327 ("rust-chrono" ,rust-chrono-0.4)
3328 ("rust-criterion" ,rust-criterion-0.3)
3329 ("rust-float-cmp" ,rust-float-cmp-0.8)
3330 ("rust-lopdf" ,rust-lopdf-0.25)
3331 ("rust-png" ,rust-png-0.16)
3332 ("rust-predicates" ,rust-predicates-1)
3333 ("rust-tempfile" ,rust-tempfile-3))
3334 #:phases
3335 (modify-phases %standard-phases
3336 (add-after 'unpack 'patch-docbook-xml
3337 (lambda* (#:key inputs #:allow-other-keys)
3338 (with-directory-excursion "doc"
3339 (substitute* "rsvg-docs.xml"
3340 (("http://www.oasis-open.org/docbook/xml/4.3/")
3341 (string-append (assoc-ref inputs "docbook-xml")
3342 "/xml/dtd/docbook/"))))
3343 #t))
3344 (add-after 'unpack 'prepare-for-build
3345 (lambda _
3346 ;; In lieu of #:make-flags
3347 (setenv "CC" ,(cc-for-target))
3348 ;; Something about the build environment resists building
3349 ;; successfully with the '--locked' flag.
3350 (substitute* '("Makefile.am" "Makefile.in")
3351 (("--locked") ""))
3352 #t))
3353 (add-before 'configure 'pre-configure
3354 (lambda _
3355 (substitute* "gdk-pixbuf-loader/Makefile.in"
3356 ;; By default the gdk-pixbuf loader is installed under
3357 ;; gdk-pixbuf's prefix. Work around that.
3358 (("gdk_pixbuf_moduledir = .*$")
3359 (string-append "gdk_pixbuf_moduledir = "
3360 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
3361 "loaders\n"))
3362 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
3363 (("gdk_pixbuf_cache_file = .*$")
3364 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
3365 #t))
3366 (add-after 'configure 'gnu-configure
3367 (lambda* (#:key inputs native-inputs outputs #:allow-other-keys)
3368 ((assoc-ref gnu:%standard-phases 'configure)
3369 #:native-inputs native-inputs
3370 #:inputs inputs
3371 #:outputs outputs
3372 #:configure-flags
3373 (list "--disable-static"
3374 "--enable-vala"
3375 (string-append "--with-html-dir="
3376 (assoc-ref %outputs "doc")
3377 "/share/gtk-doc/html")))))
3378 (add-after 'configure 'dont-vendor-self
3379 (lambda* (#:key vendor-dir #:allow-other-keys)
3380 ;; Don't keep the whole tarball in the vendor directory
3381 (delete-file-recursively
3382 (string-append vendor-dir "/" ,name "-" ,version ".tar.xz"))
3383 #t))
3384 (replace 'build
3385 (assoc-ref gnu:%standard-phases 'build))
3386 (add-before 'check 'ignore-failing-tests
3387 ;; stderr=```/tmp/guix-build-.../librsvg-2.50.1/rsvg-convert: line 150: ls: command not found
3388 (lambda _
3389 (substitute* "tests/src/cmdline/rsvg_convert.rs"
3390 (("fn background_color_option_invalid_color_yields_error" all)
3391 (string-append "#[ignore] " all))
3392 (("fn empty_input_yields_error" all)
3393 (string-append "#[ignore] " all))
3394 (("fn empty_svg_yields_error" all)
3395 (string-append "#[ignore] " all))
3396 (("fn env_source_data_epoch_empty" all)
3397 (string-append "#[ignore] " all))
3398 (("fn env_source_data_epoch_no_digits" all)
3399 (string-append "#[ignore] " all))
3400 (("fn env_source_data_epoch_trailing_garbage" all)
3401 (string-append "#[ignore] " all))
3402 (("fn export_id_option_error" all)
3403 (string-append "#[ignore] " all))
3404 (("fn huge_zoom_factor_yields_error" all)
3405 (string-append "#[ignore] " all))
3406 (("fn multiple_input_files_not_allowed_for_png_output" all)
3407 (string-append "#[ignore] " all))
3408 (("fn stylesheet_option_error" all)
3409 (string-append "#[ignore] " all)))
3410 #t))
3411 (replace 'check
3412 (lambda* args
3413 ((assoc-ref gnu:%standard-phases 'check)
3414 #:test-target "check")))
3415 (replace 'install
3416 (assoc-ref gnu:%standard-phases 'install)))))
3417 (native-inputs
3418 `(("docbook-xml" ,docbook-xml-4.3)
3419 ("glib" ,glib "bin")
3420 ("gobject-introspection" ,gobject-introspection)
3421 ("pkg-config" ,pkg-config)
3422 ("python" ,python-wrapper)
3423 ("ruby" ,ruby)
3424 ("vala" ,vala)))
3425 (inputs
3426 `(("bzip2" ,bzip2)
3427 ("fontconfig" ,fontconfig)
3428 ("freetype" ,freetype)
3429 ("harfbuzz" ,harfbuzz)
3430 ("libcroco" ,libcroco)
3431 ("libgsf" ,libgsf)
3432 ("libxml2" ,libxml2)
3433 ("pango" ,pango)))
3434 (propagated-inputs
3435 `(("cairo" ,cairo)
3436 ("gdk-pixbuf" ,gdk-pixbuf)
3437 ("glib" ,glib)))
3438 (synopsis "SVG rendering library")
3439 (description "Librsvg is a library to render SVG images to Cairo surfaces.
3440 GNOME uses this to render SVG icons. Outside of GNOME, other desktop
3441 environments use it for similar purposes. Wikimedia uses it for Wikipedia's SVG
3442 diagrams.")
3443 (home-page "https://wiki.gnome.org/LibRsvg")
3444 (license license:lgpl2.1+)))
3445
3446 (define-public libidl
3447 (package
3448 (name "libidl")
3449 (version "0.8.14")
3450 (source (origin
3451 (method url-fetch)
3452 (uri (string-append "mirror://gnome/sources/libIDL/"
3453 (version-major+minor version) "/"
3454 "libIDL-" version ".tar.bz2"))
3455 (sha256
3456 (base32
3457 "08129my8s9fbrk0vqvnmx6ph4nid744g5vbwphzkaik51664vln5"))))
3458 (build-system gnu-build-system)
3459 (inputs `(("glib" ,glib)))
3460 (native-inputs
3461 `(("pkg-config" ,pkg-config)
3462 ("flex" ,flex)
3463 ("bison" ,bison)))
3464 (home-page "http://freecode.com/projects/libidl")
3465 (synopsis "Create trees of CORBA Interface Definition Language files")
3466 (description "Libidl is a library for creating trees of CORBA Interface
3467 Definition Language (idl) files, which is a specification for defining
3468 portable interfaces. libidl was initially written for orbit (the orb from the
3469 GNOME project, and the primary means of libidl distribution). However, the
3470 functionality was designed to be as reusable and portable as possible.")
3471 (properties `((upstream-name . "libIDL")))
3472 (license license:lgpl2.0+)))
3473
3474
3475 (define-public orbit2
3476 (package
3477 (name "orbit2")
3478 (version "2.14.19")
3479 (source (origin
3480 (method url-fetch)
3481 (uri (let ((upstream-name "ORBit2"))
3482 (string-append "mirror://gnome/sources/" upstream-name "/"
3483 (version-major+minor version) "/"
3484 upstream-name "-" version ".tar.bz2")))
3485 (sha256
3486 (base32
3487 "0l3mhpyym9m5iz09fz0rgiqxl2ym6kpkwpsp1xrr4aa80nlh1jam"))))
3488 (build-system gnu-build-system)
3489 (arguments
3490 `(;; The "timeout-server" test hangs when run in parallel.
3491 #:parallel-tests? #f
3492 #:configure-flags
3493 '(;; We don't need static libraries, plus they don't build reproducibly
3494 ;; (non-deterministic ordering of .o files in the archive.)
3495 "--disable-static"
3496
3497 ;; The programmer kindly gives us a hook to turn off deprecation
3498 ;; warnings ...
3499 "DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
3500 ;; ... which they then completly ignore !!
3501 #:phases
3502 (modify-phases %standard-phases
3503 (add-before 'configure 'ignore-deprecations
3504 (lambda _
3505 (substitute* "linc2/src/Makefile.in"
3506 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3507 #t)))))
3508 (inputs `(("glib" ,glib)
3509 ("libidl" ,libidl)))
3510 (native-inputs
3511 `(("pkg-config" ,pkg-config)))
3512 (home-page "https://projects.gnome.org/orbit2/")
3513 (synopsis "CORBA 2.4-compliant Object Request Broker")
3514 (description "ORBit2 is a CORBA 2.4-compliant Object Request Broker (orb)
3515 featuring mature C, C++ and Python bindings.")
3516 ;; Licence notice is unclear. The Web page simply say "GPL" without giving
3517 ;; a version. SOME of the code files have licence notices for GPLv2+.
3518 ;; The tarball contains files of the text of GPLv2 and LGPLv2.
3519 (license license:gpl2+)
3520 (properties `((upstream-name . "ORBit2")))))
3521
3522
3523 (define-public libbonobo
3524 (package
3525 (name "libbonobo")
3526 (version "2.32.1")
3527 (source (origin
3528 (method url-fetch)
3529 (uri (string-append "mirror://gnome/sources/" name "/"
3530 (version-major+minor version)
3531 "/" name "-" version ".tar.bz2"))
3532 (sha256
3533 (base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))
3534 (patches (search-patches
3535 "libbonobo-activation-test-race.patch"))))
3536 (build-system gnu-build-system)
3537 (arguments
3538 ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
3539 `(#:configure-flags
3540 '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
3541 ;; ... which they then completly ignore !!
3542 #:phases
3543 (modify-phases %standard-phases
3544 (add-before 'configure 'ignore-deprecations
3545 (lambda _
3546 (substitute* "activation-server/Makefile.in"
3547 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3548 #t)))
3549
3550 ;; There's apparently a race condition between the server stub
3551 ;; generation and linking of the example under 'samples/echo' that can
3552 ;; lead do undefined references when building in parallel, as reported
3553 ;; at <https://forums.gentoo.org/viewtopic-t-223376-start-550.html>.
3554 ;; Thus, disable parallel builds.
3555 #:parallel-build? #f))
3556 (inputs `(("popt" ,popt)
3557 ("libxml2" ,libxml2)))
3558 ;; The following are Required by the .pc file
3559 (propagated-inputs
3560 `(("glib" ,glib)
3561 ("orbit2" ,orbit2)))
3562 (native-inputs
3563 `(("intltool" ,intltool)
3564 ("pkg-config" ,pkg-config)
3565 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3566 ("flex" ,flex)
3567 ("bison" ,bison)))
3568 (home-page "https://developer.gnome.org/libbonobo/")
3569 (synopsis "Framework for creating reusable components for use in GNOME applications")
3570 (description "Bonobo is a framework for creating reusable components for
3571 use in GNOME applications, built on top of CORBA.")
3572 ;; Licence not explicitly stated. Source files contain no licence notices.
3573 ;; Tarball contains text of both GPLv2 and LGPLv2
3574 ;; GPLv2 covers both conditions
3575 (license license:gpl2+)))
3576
3577
3578 (define-public gconf
3579 (package
3580 (name "gconf")
3581 (version "3.2.6")
3582 (source (origin
3583 (method url-fetch)
3584 (uri
3585 (let ((upstream-name "GConf"))
3586 (string-append "mirror://gnome/sources/" upstream-name "/"
3587 (version-major+minor version) "/"
3588 upstream-name "-" version ".tar.xz")))
3589 (sha256
3590 (base32 "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr"))))
3591 (build-system gnu-build-system)
3592 (inputs `(("dbus-glib" ,dbus-glib)
3593 ("libxml2" ,libxml2)))
3594 (propagated-inputs `(("glib" ,glib) ; referred to in the .pc file
3595 ("orbit2" ,orbit2)))
3596 (native-inputs
3597 `(("intltool" ,intltool)
3598 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3599 ("pkg-config" ,pkg-config)))
3600 (home-page "https://projects.gnome.org/gconf/")
3601 (synopsis "Store application preferences")
3602 (description "Gconf is a system for storing application preferences. It
3603 is intended for user preferences; not arbitrary data storage.")
3604 (license license:lgpl2.0+)
3605 (properties '((upstream-name . "GConf")))))
3606
3607
3608 (define-public gnome-mime-data
3609 (package
3610 (name "gnome-mime-data")
3611 (version "2.18.0")
3612 (source (origin
3613 (method url-fetch)
3614 (uri (string-append "mirror://gnome/sources/" name "/"
3615 (version-major+minor version) "/"
3616 name "-" version ".tar.bz2"))
3617 (sha256
3618 (base32
3619 "1mvg8glb2a40yilmyabmb7fkbzlqd3i3d31kbkabqnq86xdnn69p"))))
3620 (build-system gnu-build-system)
3621 (native-inputs
3622 `(("perl" ,perl)
3623 ("intltool" ,intltool)))
3624 (arguments
3625 '(#:phases (modify-phases %standard-phases
3626 (add-after 'configure 'use-our-intltool
3627 (lambda _
3628 ;; Do not use the bundled intltool commands, which lack
3629 ;; the "dotless @INC" fixes of our 'intltool' package.
3630 (substitute* (find-files "." "^Makefile$")
3631 (("^INTLTOOL_(EXTRACT|UPDATE|MERGE) = .*$" _ tool)
3632 (string-append "INTLTOOL_" tool " = intltool-"
3633 (string-downcase tool) "\n")))
3634 #t)))))
3635 (home-page "https://www.gnome.org")
3636 (synopsis "Base MIME and Application database for GNOME")
3637 (description "GNOME Mime Data is a module which contains the base MIME
3638 and Application database for GNOME. The data stored by this module is
3639 designed to be accessed through the MIME functions in GnomeVFS.")
3640 (license license:gpl2+)))
3641
3642
3643 (define-public gnome-vfs
3644 (package
3645 (name "gnome-vfs")
3646 (version "2.24.4")
3647 (source (origin
3648 (method url-fetch)
3649 (uri (string-append "mirror://gnome/sources/" name "/"
3650 (version-major+minor version) "/"
3651 name "-" version ".tar.bz2"))
3652 (sha256
3653 (base32
3654 "1ajg8jb8k3snxc7rrgczlh8daxkjidmcv3zr9w809sq4p2sn9pk2"))))
3655 (build-system gnu-build-system)
3656 (arguments
3657 `(#:phases
3658 (modify-phases %standard-phases
3659 (add-before 'configure 'ignore-deprecations
3660 (lambda _
3661 (substitute* '("libgnomevfs/Makefile.in"
3662 "daemon/Makefile.in")
3663 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3664 #t))
3665 (add-before 'configure 'patch-test-async-cancel-to-never-fail
3666 (lambda _
3667 (substitute* "test/test-async-cancel.c"
3668 (("EXIT_FAILURE") "77"))
3669 #t)))))
3670 (inputs `(("libxml2" ,libxml2)
3671 ("dbus-glib" ,dbus-glib)
3672 ("gconf" ,gconf)
3673 ("gnome-mime-data" ,gnome-mime-data)
3674 ("zlib" ,zlib)))
3675 (native-inputs
3676 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3677 ("intltool" ,intltool)
3678 ("pkg-config" ,pkg-config)))
3679 (home-page "https://developer.gnome.org/gnome-vfs/")
3680 (synopsis "Access files and folders in GNOME applications")
3681 (description
3682 "GnomeVFS is the core library used to access files and folders in GNOME
3683 applications. It provides a file system abstraction which allows applications
3684 to access local and remote files with a single consistent API.")
3685 (license license:lgpl2.0+)))
3686
3687
3688
3689 (define-public libgnome
3690 (package
3691 (name "libgnome")
3692 (version "2.32.1")
3693 (source (origin
3694 (method url-fetch)
3695 (uri (string-append "mirror://gnome/sources/" name "/"
3696 (version-major+minor version) "/"
3697 name "-" version ".tar.bz2"))
3698 (sha256
3699 (base32
3700 "197pnq8y0knqjhm2fg4j6hbqqm3qfzfnd0irhwxpk1b4hqb3kimj"))
3701 (patches (search-patches "libgnome-encoding.patch"))))
3702 (build-system gnu-build-system)
3703 (arguments
3704 `(#:phases
3705 (modify-phases %standard-phases
3706 (add-before 'configure 'enable-deprecated
3707 (lambda _
3708 (substitute* "libgnome/Makefile.in"
3709 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3710 #t)))))
3711 (inputs `(("libxml2" ,libxml2)))
3712 (native-inputs
3713 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3714 ("intltool" ,intltool)
3715 ("pkg-config" ,pkg-config)))
3716 ;; The following are listed as Required in the .pc file
3717 ;; (except for libcanberra -- which seems to be oversight on the part
3718 ;; of the upstream developers -- anything that links against libgnome,
3719 ;; must also link against libcanberra
3720 (propagated-inputs
3721 `(("libcanberra" ,libcanberra)
3722 ("libbonobo" ,libbonobo)
3723 ("gconf" ,gconf)
3724 ("gnome-vfs" ,gnome-vfs)
3725 ("popt" ,popt))) ;gnome-program.h includes popt.h
3726 (home-page "https://developer.gnome.org/libgnome/")
3727 (synopsis "Useful routines for building applications")
3728 (description "The libgnome library provides a number of useful routines
3729 for building modern applications, including session management, activation of
3730 files and URIs, and displaying help.")
3731 (license license:lgpl2.0+)))
3732
3733
3734 (define-public libart-lgpl
3735 (package
3736 (name "libart-lgpl")
3737 (version "2.3.21")
3738 (source (origin
3739 (method url-fetch)
3740 (uri (let ((upstream-name "libart_lgpl"))
3741 (string-append "mirror://gnome/sources/" upstream-name "/"
3742 (version-major+minor version) "/"
3743 upstream-name "-" version ".tar.bz2")))
3744 (sha256
3745 (base32
3746 "1yknfkyzgz9s616is0l9gp5aray0f2ry4dw533jgzj8gq5s1xhgx"))))
3747 (build-system gnu-build-system)
3748 (native-inputs
3749 `(("pkg-config" ,pkg-config)))
3750 (home-page "https://people.gnome.org/~mathieu/libart")
3751 (synopsis "2D drawing library")
3752 (description "Libart is a 2D drawing library intended as a
3753 high-quality vector-based 2D library with antialiasing and alpha composition.")
3754 (license license:lgpl2.0+)))
3755
3756
3757
3758 (define-public libgnomecanvas
3759 (package
3760 (name "libgnomecanvas")
3761 (version "2.30.3")
3762 (source (origin
3763 (method url-fetch)
3764 (uri (string-append "mirror://gnome/sources/" name "/"
3765 (version-major+minor version) "/"
3766 name "-" version ".tar.gz"))
3767 (sha256
3768 (base32
3769 "1nhnq4lfkk8ljkdafscwaggx0h95mq0rxnd7zgqyq0xb6kkqbjm8"))))
3770 (build-system gnu-build-system)
3771 ;; Mentioned as Required in the .pc file
3772 (propagated-inputs `(("libart-lgpl" ,libart-lgpl)
3773 ("gtk+" ,gtk+-2)))
3774 (native-inputs
3775 `(("intltool" ,intltool)
3776 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3777 ("pkg-config" ,pkg-config)))
3778 (home-page "https://developer.gnome.org/libgnomecanvas/")
3779 (synopsis "Flexible widget for creating interactive structured graphics")
3780 (description "The GnomeCanvas widget provides a flexible widget for
3781 creating interactive structured graphics.")
3782 (license license:lgpl2.0+)))
3783
3784 (define-public libgnomecanvasmm
3785 (package
3786 (name "libgnomecanvasmm")
3787 (version "2.26.0")
3788 (source (origin
3789 (method url-fetch)
3790 (uri (string-append "mirror://gnome/sources/" name "/"
3791 (version-major+minor version) "/"
3792 name "-" version ".tar.bz2"))
3793 (sha256
3794 (base32
3795 "0679hcnpam2gkag2i63sm0wdm35gwvzafnz1354mg6j5gzwpfrcr"))))
3796 (build-system gnu-build-system)
3797 (propagated-inputs `(("libgnomecanvas" ,libgnomecanvas)))
3798 (native-inputs
3799 `(("gtkmm-2" ,gtkmm-2)
3800 ("pkg-config" ,pkg-config)))
3801 (home-page "https://gtkmm.org")
3802 (synopsis "C++ bindings to the GNOME Canvas library")
3803 (description "C++ bindings to the GNOME Canvas library.")
3804 (license license:lgpl2.0+)))
3805
3806 (define-public libgnomeui
3807 (package
3808 (name "libgnomeui")
3809 (version "2.24.5")
3810 (source (origin
3811 (method url-fetch)
3812 (uri (string-append "mirror://gnome/sources/" name "/"
3813 (version-major+minor version) "/"
3814 name "-" version ".tar.bz2"))
3815 (patches (search-patches "libgnomeui-utf8.patch"))
3816 (sha256
3817 (base32
3818 "03rwbli76crkjl6gp422wrc9lqpl174k56cp9i96b7l8jlj2yddf"))))
3819 (build-system gnu-build-system)
3820 ;; Mentioned as Required in the .pc file
3821 (propagated-inputs `(("libbonoboui" ,libbonoboui)
3822 ("libgnome" ,libgnome)
3823 ("libgnomecanvas" ,libgnomecanvas)
3824 ("libgnome-keyring" ,libgnome-keyring)))
3825 (inputs `(("libjpeg" ,libjpeg-turbo)
3826 ("popt" ,popt)
3827 ("libbonobo" ,libbonobo)
3828 ("libxml2" ,libxml2)
3829 ("libglade" ,libglade)))
3830 (native-inputs
3831 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3832 ("intltool" ,intltool)
3833 ("pkg-config" ,pkg-config)))
3834 (home-page "https://developer.gnome.org/libgnomeui/")
3835 (synopsis "Additional widgets for applications")
3836 (description "The libgnomeui library provides additional widgets for
3837 applications. Many of the widgets from libgnomeui have already been
3838 ported to GTK+.")
3839 (license license:lgpl2.0+)))
3840
3841 (define-public libglade
3842 (package
3843 (name "libglade")
3844 (version "2.6.4")
3845 (source (origin
3846 (method url-fetch)
3847 (uri (string-append "mirror://gnome/sources/" name "/"
3848 (version-major+minor version) "/"
3849 name "-" version ".tar.bz2"))
3850 (sha256
3851 (base32
3852 "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4"))))
3853 (build-system gnu-build-system)
3854 (inputs
3855 `(("python" ,python))) ;; needed for the optional libglade-convert program
3856 (propagated-inputs
3857 `(("gtk+-2" ,gtk+-2)
3858 ("libxml2" ,libxml2))) ; required by libglade-2.0.pc
3859 (native-inputs
3860 `(("pkg-config" ,pkg-config)))
3861 (home-page "https://developer.gnome.org/libglade")
3862 (synopsis "Load glade interfaces and access the glade built widgets")
3863 (description "Libglade is a library that provides interfaces for loading
3864 graphical interfaces described in glade files and for accessing the
3865 widgets built in the loading process.")
3866 (license license:gpl2+))) ; This is correct. GPL not LGPL
3867
3868 (define-public libgnomeprint
3869 ;; This library has been deprecated since 2006; see
3870 ;; <https://mail.gnome.org/archives/devel-announce-list/2006-August/msg00005.html>.
3871 (package
3872 (name "libgnomeprint")
3873 (version "2.18.8")
3874 (source (origin
3875 (method url-fetch)
3876 (uri (string-append "mirror://gnome/sources/" name "/"
3877 (version-major+minor version) "/"
3878 name "-" version ".tar.bz2"))
3879 (sha256
3880 (base32
3881 "14cnimvlc7ky22g2snyf4362412k3jk1syjf8b9887q5a63fqd0h"))))
3882 (build-system gnu-build-system)
3883 (inputs
3884 `(("popt" ,popt)
3885 ("libart-lgpl" ,libart-lgpl)
3886 ("gtk+" ,gtk+-2)
3887 ("libxml2" ,libxml2)))
3888 (native-inputs
3889 `(("intltool" ,intltool)
3890 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3891 ("pkg-config" ,pkg-config)))
3892 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
3893 (synopsis "Printing framework for GNOME")
3894 (description
3895 "GNOME-print was a printing framework for GNOME. It has been deprecated
3896 since ca. 2006, when GTK+ itself incorporated printing support.")
3897 (license license:lgpl2.0+)))
3898
3899
3900 (define-public libgnomeprintui
3901 ;; Deprecated; see libgnomeprint.
3902 (package
3903 (name "libgnomeprintui")
3904 (version "2.18.6")
3905 (source (origin
3906 (method url-fetch)
3907 (uri (string-append "mirror://gnome/sources/" name "/"
3908 (version-major+minor version) "/"
3909 name "-" version ".tar.bz2"))
3910 (sha256
3911 (base32
3912 "0spl8vinb5n6n1krnfnr61dwaxidg67h8j94z9p59k2xdsvfashm"))))
3913 (build-system gnu-build-system)
3914 ;; Mentioned as Required in the .pc file
3915 (propagated-inputs `(("libgnomeprint" ,libgnomeprint)))
3916 (inputs `(("gtk+" ,gtk+-2)
3917 ("glib" ,glib)
3918 ("gnome-icon-theme" ,gnome-icon-theme)
3919 ("libgnomecanvas" ,libgnomecanvas)
3920 ("libxml2" ,libxml2)))
3921 (native-inputs
3922 `(("intltool" ,intltool)
3923 ("pkg-config" ,pkg-config)))
3924 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
3925 (synopsis "Printing framework for GNOME")
3926 (description (package-description libgnomeprint))
3927 (license license:lgpl2.0+)))
3928
3929 (define-public libbonoboui
3930 (package
3931 (name "libbonoboui")
3932 (version "2.24.5")
3933 (source (origin
3934 (method url-fetch)
3935 (uri (string-append "mirror://gnome/sources/" name "/"
3936 (version-major+minor version) "/"
3937 name "-" version ".tar.bz2"))
3938 (sha256
3939 (base32
3940 "1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
3941 (build-system gnu-build-system)
3942 (arguments
3943 `(#:phases
3944 (modify-phases %standard-phases
3945 (add-before 'check 'start-xserver
3946 (lambda* (#:key inputs #:allow-other-keys)
3947 (let ((xorg-server (assoc-ref inputs "xorg-server"))
3948 (disp ":1"))
3949
3950 (setenv "HOME" (getcwd))
3951 (setenv "DISPLAY" disp)
3952 ;; There must be a running X server and make check doesn't start one.
3953 ;; Therefore we must do it.
3954 (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))))))
3955 ;; Mentioned as Required by the .pc file
3956 (propagated-inputs `(("libxml2" ,libxml2)))
3957 (inputs
3958 `(("popt" ,popt)
3959 ("pangox-compat" ,pangox-compat)
3960 ("libgnome" ,libgnome)
3961 ("libgnomecanvas" ,libgnomecanvas)
3962 ("libglade" ,libglade)))
3963 (native-inputs
3964 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
3965 ("intltool" ,intltool)
3966 ("xorg-server" ,xorg-server-for-tests) ; For running the tests
3967 ("pkg-config" ,pkg-config)))
3968 (home-page "https://developer.gnome.org/libbonoboui/")
3969 (synopsis "Some user interface controls using Bonobo")
3970 (description "The Bonobo UI library provides a number of user interface
3971 controls using the Bonobo component framework.")
3972 (license license:lgpl2.0+)))
3973
3974 (define-public libwnck
3975 (package
3976 (name "libwnck")
3977 (version "3.32.0")
3978 (source (origin
3979 (method url-fetch)
3980 (uri (string-append "mirror://gnome/sources/" name "/"
3981 (version-major+minor version) "/"
3982 name "-" version ".tar.xz"))
3983 (sha256
3984 (base32
3985 "1jp3p1lnwnwi6fxl2rz3166cmwzwy9vqz896anpwc3wdy9f875cm"))))
3986 (build-system meson-build-system)
3987 (native-inputs
3988 `(("pkg-config" ,pkg-config)
3989 ("glib" ,glib "bin") ; for glib-mkenums
3990 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
3991 ("intltool" ,intltool)))
3992 (propagated-inputs
3993 `(("gtk+" ,gtk+)
3994 ("libxres" ,libxres)
3995 ("startup-notification" ,startup-notification)))
3996 (home-page "https://developer.gnome.org/libwnck/")
3997 (synopsis "Window Navigator Construction Kit")
3998 (description
3999 "Libwnck is the Window Navigator Construction Kit, a library for use in
4000 writing pagers, tasklists, and more generally applications that are dealing
4001 with window management. It tries hard to respect the Extended Window Manager
4002 Hints specification (EWMH).")
4003 (license license:lgpl2.0+)))
4004
4005 ;; stable version for gtk2, required by xfwm4.
4006 (define-public libwnck-2
4007 (package (inherit libwnck)
4008 (name "libwnck")
4009 (version "2.30.7")
4010 (source (origin
4011 (method url-fetch)
4012 (uri (string-append "mirror://gnome/sources/" name "/"
4013 (version-major+minor version) "/"
4014 name "-" version ".tar.xz"))
4015 (sha256
4016 (base32
4017 "15713yl0f8f3p99jzqqfmbicrdswd3vwpx7r3bkf1bgh6d9lvs4b"))))
4018 (build-system gnu-build-system)
4019 (native-inputs
4020 `(("pkg-config" ,pkg-config)
4021 ("intltool" ,intltool)))
4022 (propagated-inputs
4023 `(("gtk+" ,gtk+-2)
4024 ("libxres" ,libxres)
4025 ("startup-notification" ,startup-notification)))))
4026
4027 (define-public goffice
4028 (package
4029 (name "goffice")
4030 (version "0.10.48")
4031 (source (origin
4032 (method url-fetch)
4033 (uri (string-append "mirror://gnome/sources/goffice/"
4034 (version-major+minor version) "/"
4035 "goffice-" version ".tar.xz"))
4036 (sha256
4037 (base32 "1z6f3q8fxkd1ysqrwdxdi0844zqa00vjpf07gq8mh3kal8picfd4"))))
4038 (build-system gnu-build-system)
4039 (outputs '("out"
4040 "doc")) ; 4.0 MiB of gtk-doc
4041 (arguments
4042 '(#:configure-flags (list (string-append "--with-html-dir="
4043 (assoc-ref %outputs "doc")
4044 "/share/gtk-doc/html"))))
4045 (inputs
4046 `(("gtk+" ,gtk+)
4047 ("libgsf" ,libgsf)
4048 ("librsvg" ,librsvg)
4049 ("libxslt" ,libxslt)
4050 ("libxml2" ,libxml2)))
4051 (native-inputs
4052 `(("intltool" ,intltool)
4053 ("glib" ,glib "bin")
4054 ("pkg-config" ,pkg-config)))
4055 (home-page "https://developer.gnome.org/goffice/")
4056 (synopsis "Document-centric objects and utilities")
4057 (description "A GLib/GTK+ set of document-centric objects and utilities.")
4058 (license
4059 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
4060 ;; Note: NOT LGPL
4061 (list license:gpl2 license:gpl3))))
4062
4063 (define-public goffice-0.8
4064 (package (inherit goffice)
4065 (version "0.8.17")
4066 (source (origin
4067 (method url-fetch)
4068 (uri (string-append "mirror://gnome/sources/" (package-name goffice) "/"
4069 (version-major+minor version) "/"
4070 (package-name goffice) "-" version ".tar.xz"))
4071 (sha256
4072 (base32 "05fvzbs5bin05bbsr4dp79aiva3lnq0a3a40zq55i13vnsz70l0n"))))
4073 (arguments
4074 `(#:phases
4075 (modify-phases %standard-phases
4076 (add-after 'unpack 'fix-pcre-check
4077 (lambda _
4078 ;; Only glib.h can be included directly. See
4079 ;; https://bugzilla.gnome.org/show_bug.cgi?id=670316
4080 (substitute* "configure"
4081 (("glib/gregex\\.h") "glib.h")) #t)))
4082
4083 ,@(package-arguments goffice)))
4084 (propagated-inputs
4085 ;; libgoffice-0.8.pc mentions libgsf-1
4086 `(("libgsf" ,libgsf)))
4087 (inputs
4088 `(("gtk" ,gtk+-2)
4089 ,@(alist-delete "gtk" (package-inputs goffice))))))
4090
4091 (define-public gnumeric
4092 (package
4093 (name "gnumeric")
4094 (version "1.12.48")
4095 (source (origin
4096 (method url-fetch)
4097 (uri (string-append "mirror://gnome/sources/gnumeric/"
4098 (version-major+minor version) "/"
4099 "gnumeric-" version ".tar.xz"))
4100 (sha256
4101 (base32
4102 "14556b0vyxdvdwjlin0rv7jk0vq4nplbmvp9j89bhkfk84xf7k2p"))))
4103 (build-system glib-or-gtk-build-system)
4104 (arguments
4105 `(;; The gnumeric developers don't worry much about failing tests.
4106 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
4107 #:tests? #f
4108 #:phases
4109 (modify-phases %standard-phases
4110 (add-before
4111 'configure 'pre-conf
4112 (lambda* (#:key outputs #:allow-other-keys)
4113 ;; Make install tries to write into the directory of goffice
4114 ;; I am informed that this only affects the possibility to embed a
4115 ;; spreadsheet inside an Abiword document. So presumably when we
4116 ;; package Abiword we'll have to refer it to this directory.
4117 (substitute* "configure"
4118 (("^GOFFICE_PLUGINS_DIR=.*")
4119 (string-append "GOFFICE_PLUGINS_DIR="
4120 (assoc-ref outputs "out")
4121 "/goffice/plugins"))))))))
4122 (inputs
4123 `(("glib" ,glib)
4124 ("gtk+" ,gtk+)
4125 ("goffice" ,goffice)
4126 ("libgsf" ,libgsf)
4127 ("librsvg" ,librsvg)
4128 ("libxml2" ,libxml2)
4129 ("libxslt" ,libxslt)
4130 ("python" ,python)
4131 ("python-pygobject" ,python-pygobject)
4132 ("zlib" ,zlib)))
4133 (native-inputs
4134 `(("bison" ,bison)
4135 ("docbook-xml" ,docbook-xml)
4136 ("intltool" ,intltool)
4137 ("itstool" ,itstool)
4138 ("glib:bin" ,glib "bin")
4139 ("pkg-config" ,pkg-config)))
4140 (home-page "http://www.gnumeric.org")
4141 (synopsis "Spreadsheet application")
4142 (description
4143 "GNUmeric is a GNU spreadsheet application, running under GNOME. It is
4144 interoperable with other spreadsheet applications. It has a vast array of
4145 features beyond typical spreadsheet functionality, such as support for linear
4146 and non-linear solvers, statistical analysis, and telecommunication
4147 engineering.")
4148 (license
4149 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
4150 (list license:gpl2 license:gpl3))))
4151
4152 (define-public gnome-themes-standard
4153 (package
4154 (name "gnome-themes-standard")
4155 (version "3.22.3")
4156 (source
4157 (origin
4158 (method url-fetch)
4159 (uri (string-append "mirror://gnome/sources/" name "/"
4160 (version-major+minor version) "/" name "-"
4161 version ".tar.xz"))
4162 (sha256
4163 (base32
4164 "0smmiamrgcgf5sa88bsn8hwmvsyx4gczzs359nwxbkv14b2qgp31"))))
4165 (build-system gnu-build-system)
4166 (arguments
4167 '(#:configure-flags
4168 ;; Don't create 'icon-theme.cache'.
4169 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
4170 (true (string-append coreutils "/bin/true")))
4171 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
4172 (inputs
4173 `(("gtk+" ,gtk+)
4174 ("gtk+-2" ,gtk+-2)
4175 ("librsvg" ,librsvg)
4176 ("libxml2" ,libxml2)
4177 ("glib" ,glib)))
4178 (native-inputs
4179 `(("intltool" ,intltool)
4180 ("glib:bin" ,glib "bin")
4181 ("pkg-config" ,pkg-config)))
4182 (home-page "https://launchpad.net/gnome-themes-standard")
4183 (synopsis "Default GNOME 3 themes")
4184 (description
4185 "The default GNOME 3 themes (Adwaita and some accessibility themes).")
4186 (license license:lgpl2.1+)))
4187
4188 (define-public seahorse
4189 (package
4190 (name "seahorse")
4191 (version "3.36.2")
4192 (source
4193 (origin
4194 (method url-fetch)
4195 (uri (string-append "mirror://gnome/sources/" name "/"
4196 (version-major+minor version) "/" name "-"
4197 version ".tar.xz"))
4198 (sha256
4199 (base32 "16wmxxppgcgfj8zkagcny5af1c81x32ysm9d6j9f2k7bmik21ss5"))))
4200 (build-system meson-build-system)
4201 (arguments
4202 '(#:glib-or-gtk? #t
4203 #:phases
4204 (modify-phases %standard-phases
4205 (add-after 'unpack 'skip-gtk-update-icon-cache
4206 ;; Don't create 'icon-theme.cache'.
4207 (lambda _
4208 (substitute* "build-aux/meson_post_install.py"
4209 (("gtk-update-icon-cache") "true"))
4210 #t)))))
4211 (inputs
4212 `(("gtk+" ,gtk+)
4213 ("gcr" ,gcr)
4214 ("gnupg" ,gnupg)
4215 ("gpgme" ,gpgme)
4216 ("openldap" ,openldap)
4217 ("openssh" ,openssh)
4218 ("avahi" ,avahi)
4219 ("libhandy" ,libhandy-0.0)
4220 ("libpwquality" ,libpwquality)
4221 ("libsecret" ,libsecret)
4222 ("libsoup" ,libsoup)))
4223 (native-inputs
4224 `(("gettext" ,gettext-minimal)
4225 ("glib:bin" ,glib "bin")
4226 ("itstool" ,itstool)
4227 ("pkg-config" ,pkg-config)
4228 ("vala" ,vala)
4229 ("xmllint" ,libxml2)))
4230 (home-page "https://wiki.gnome.org/Apps/Seahorse")
4231 (synopsis "Manage encryption keys and passwords in the GNOME keyring")
4232 (description
4233 "Seahorse is a GNOME application for managing encryption keys and
4234 passwords in the GNOME keyring.")
4235 (license license:gpl2+)))
4236
4237 (define-public vala
4238 (package
4239 (name "vala")
4240 (version "0.46.5")
4241 (source (origin
4242 (method url-fetch)
4243 (uri (string-append "mirror://gnome/sources/" name "/"
4244 (version-major+minor version) "/"
4245 name "-" version ".tar.xz"))
4246 (sha256
4247 (base32
4248 "07fv895sp9wq74b20qig7hic0r4ynrr5pfaqba02r44xb794fy0s"))))
4249 (build-system gnu-build-system)
4250 (arguments
4251 '(#:phases
4252 (modify-phases %standard-phases
4253 (add-before 'check 'pre-check
4254 (lambda _
4255 (setenv "CC" "gcc")
4256 (substitute* "valadoc/tests/testrunner.sh"
4257 (("export PKG_CONFIG_PATH=" m)
4258 (string-append m "$PKG_CONFIG_PATH:")))
4259 ;; For missing '/etc/machine-id'.
4260 (setenv "DBUS_FATAL_WARNINGS" "0")
4261 #t)))))
4262 (native-inputs
4263 `(("pkg-config" ,pkg-config)
4264 ("flex" ,flex)
4265 ("bison" ,bison)
4266 ("xsltproc" ,libxslt)
4267 ("dbus" ,dbus) ; for dbus tests
4268 ("gobject-introspection" ,gobject-introspection))) ; for gir tests
4269 (inputs
4270 `(("graphviz" ,graphviz)))
4271 (propagated-inputs
4272 `(("glib" ,glib))) ; required by libvala-0.40.pc
4273 (home-page "https://wiki.gnome.org/Projects/Vala/")
4274 (synopsis "Compiler for the GObject type system")
4275 (description
4276 "Vala is a programming language that aims to bring modern programming
4277 language features to GNOME developers without imposing any additional runtime
4278 requirements and without using a different ABI compared to applications and
4279 libraries written in C.")
4280 (license license:lgpl2.1+)))
4281
4282 (define-public vala-0.50
4283 (package
4284 (inherit vala)
4285 (version "0.50.2")
4286 (source (origin
4287 (method url-fetch)
4288 (uri (string-append "mirror://gnome/sources/vala/"
4289 (version-major+minor version) "/"
4290 "vala-" version ".tar.xz"))
4291 (sha256
4292 (base32
4293 "1nnf0x6vk0a9p2y6z7jwjfvmlxh3qhj581v381r0y1sxsv35s39c"))))))
4294
4295 (define-public vte
4296 (package
4297 (name "vte")
4298 (version "0.60.3")
4299 (source (origin
4300 (method url-fetch)
4301 (uri (string-append "mirror://gnome/sources/vte/"
4302 (version-major+minor version) "/"
4303 "vte-" version ".tar.xz"))
4304 (sha256
4305 (base32
4306 "0al2v6fn061v4j1wwvppim1q283y2a6s0iyl29hxhmx3h48nxdzy"))))
4307 (build-system meson-build-system)
4308 (arguments
4309 `(#:configure-flags
4310 '("-Dvapi=true"
4311 "-D_systemd=false")))
4312 (native-inputs
4313 `(("pkg-config" ,pkg-config)
4314 ("gettext" ,gettext-minimal)
4315 ("vala" ,vala)
4316 ("gobject-introspection" ,gobject-introspection)
4317 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
4318 ("gperf" ,gperf)
4319 ("xmllint" ,libxml2)))
4320 (propagated-inputs
4321 `(("gtk+" ,gtk+) ; required by vte-2.91.pc
4322 ("gnutls" ,gnutls) ; ditto
4323 ("pcre2" ,pcre2))) ; ditto
4324 (home-page "https://www.gnome.org/")
4325 (synopsis "Virtual Terminal Emulator")
4326 (description
4327 "VTE is a library (libvte) implementing a terminal emulator widget for
4328 GTK+, and a minimal sample application (vte) using that. Vte is mainly used in
4329 gnome-terminal, but can also be used to embed a console/terminal in games,
4330 editors, IDEs, etc.")
4331 (license license:lgpl2.1+)))
4332
4333 (define-public vte-ng
4334 (package
4335 (inherit vte)
4336 (name "vte-ng")
4337 (version "0.58.2.a")
4338 (home-page "https://github.com/thestinger/vte-ng")
4339 (source (origin
4340 (method git-fetch)
4341 (uri (git-reference (url home-page) (commit version)))
4342 (file-name (git-file-name name version))
4343 (sha256
4344 (base32
4345 "0rnm5c6m3abbm81jsfdas0y80z299ny54gr4syn4bfrms3s4g19l"))))
4346 (build-system meson-build-system)
4347 (native-inputs
4348 `(("gtk-doc" ,gtk-doc)
4349 ,@(package-native-inputs vte)))
4350 (arguments
4351 `(#:configure-flags '("-Ddocs=true")))
4352 (synopsis "Enhanced VTE terminal widget")
4353 (description
4354 "VTE is a library (libvte) implementing a terminal emulator widget for
4355 GTK+, this fork provides additional functions exposed for keyboard text
4356 selection and URL hints.")))
4357
4358 ;; Stable version for gtk2, required by gnurobots and lxterminal as of 2020-07.
4359 (define-public vte/gtk+-2
4360 (package (inherit vte)
4361 (name "vte")
4362 (version "0.28.2")
4363 (source (origin
4364 (method url-fetch)
4365 (uri (string-append "mirror://gnome/sources/" name "/"
4366 (version-major+minor version) "/"
4367 name "-" version ".tar.xz"))
4368 (sha256
4369 (base32
4370 "1bmhahkf8wdsra9whd3k5l5z4rv7r58ksr8mshzajgq2ma0hpkw6"))
4371 (patches (search-patches
4372 "vte-CVE-2012-2738-pt1.patch"
4373 "vte-CVE-2012-2738-pt2.patch"))))
4374 (build-system gnu-build-system)
4375 (arguments
4376 '(#:configure-flags '("--disable-python")))
4377 (native-inputs
4378 `(("pkg-config" ,pkg-config)
4379 ("intltool" ,intltool)
4380 ("glib" ,glib "bin"))) ; for glib-genmarshal, etc.
4381 (propagated-inputs
4382 `(("gtk+" ,gtk+-2) ; required by libvte.pc
4383 ("ncurses" ,ncurses))))) ; required by libvte.la
4384
4385 (define-public vinagre
4386 (package
4387 (name "vinagre")
4388 (version "3.22.0")
4389 (source (origin
4390 (method url-fetch)
4391 (uri (string-append "mirror://gnome/sources/" name "/"
4392 (version-major+minor version) "/"
4393 name "-" version ".tar.xz"))
4394 (patches (search-patches "vinagre-newer-freerdp.patch"
4395 "vinagre-newer-rdp-parameters.patch"))
4396 (sha256
4397 (base32
4398 "10jya3jyrm18nbw3v410gbkc7677bqamax44pzgd3j15randn76d"))))
4399 (build-system glib-or-gtk-build-system)
4400 (arguments
4401 ;; Disable -Werror and such, to avoid build failures on compilation
4402 ;; warnings.
4403 '(#:configure-flags '("--enable-compile-warnings=minimum")
4404 #:phases
4405 (modify-phases %standard-phases
4406 (add-before 'install 'skip-gtk-update-icon-cache
4407 (lambda _
4408 ;; Don't create 'icon-theme.cache'
4409 (substitute* (find-files "." "^Makefile$")
4410 (("gtk-update-icon-cache") (which "true")))
4411 #t))
4412 (add-after 'unpack 'patch-configure
4413 (lambda _
4414 (substitute* "configure"
4415 (("freerdp") "freerdp2"))
4416 #t)))))
4417 (native-inputs
4418 `(("pkg-config" ,pkg-config)
4419 ("intltool" ,intltool)
4420 ("itstool" ,itstool)
4421 ("glib-bin" ,glib "bin"))) ;for glib-compile-schemas
4422 (inputs
4423 `(("libxml2" ,libxml2)
4424 ("gtk-vnc" ,gtk-vnc)
4425 ("gnome-keyring" ,gnome-keyring)
4426 ("libsecret" ,libsecret)
4427 ("freerdp" ,freerdp)
4428 ("spice" ,spice)
4429 ("spice-gtk" ,spice-gtk)
4430 ("telepathy-glib" ,telepathy-glib)
4431 ("vte" ,vte)))
4432 (home-page "https://wiki.gnome.org/Apps/Vinagre")
4433 (synopsis "Remote desktop viewer for GNOME")
4434 (description "Vinagre is a remote display client supporting the VNC, SPICE
4435 and RDP protocols.")
4436 (license license:gpl3+)))
4437
4438 (define-public dconf
4439 (package
4440 (name "dconf")
4441 (version "0.36.0")
4442 (source (origin
4443 (method url-fetch)
4444 (uri (string-append
4445 "mirror://gnome/sources/" name "/"
4446 (version-major+minor version) "/"
4447 name "-" version ".tar.xz"))
4448 (sha256
4449 (base32
4450 "0bfs069pjv6lhp7xrzmrhz3876ay2ryqxzc6mlva1hhz34ibprlz"))))
4451 (build-system meson-build-system)
4452 (propagated-inputs
4453 ;; In Requires of dconf.pc.
4454 `(("glib" ,glib)))
4455 (inputs
4456 `(("gtk+" ,gtk+)
4457 ("dbus" ,dbus)))
4458 (native-inputs
4459 `(("bash-completion" ,bash-completion)
4460 ("libxslt" ,libxslt) ;for xsltproc
4461 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
4462 ("docbook-xml" ,docbook-xml-4.2)
4463 ("docbook-xsl" ,docbook-xsl)
4464 ("glib:bin" ,glib "bin")
4465 ("gtk-doc" ,gtk-doc)
4466 ("pkg-config" ,pkg-config)
4467 ("vala" ,vala)))
4468 (arguments
4469 `(#:glib-or-gtk? #t
4470 #:configure-flags '("-Denable-gtk-doc=true")
4471 #:phases (modify-phases %standard-phases
4472 (add-after 'unpack 'increase-test-timeout
4473 (lambda _
4474 ;; On big-memory systems, the engine test may take
4475 ;; much longer than the default of 30 seconds.
4476 (substitute* "tests/meson.build"
4477 (("test\\(unit_test\\[0\\], exe" all)
4478 (string-append all ", timeout : 90")))
4479 #t)))))
4480 (home-page "https://developer.gnome.org/dconf/")
4481 (synopsis "Low-level GNOME configuration system")
4482 (description "Dconf is a low-level configuration system. Its main purpose
4483 is to provide a backend to GSettings on platforms that don't already have
4484 configuration storage systems.")
4485 (license license:lgpl2.1+)))
4486
4487 (define-public json-glib
4488 (package
4489 (name "json-glib")
4490 (version "1.4.4")
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 "0ixwyis47v5bkx6h8a1iqlw3638cxcv57ivxv4gw2gaig51my33j"))))
4499 (build-system meson-build-system)
4500 (native-inputs
4501 `(("gettext" ,gettext-minimal)
4502 ("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
4503 ("gobject-introspection" ,gobject-introspection)
4504 ("pkg-config" ,pkg-config)))
4505 (propagated-inputs
4506 `(("glib" ,glib))) ;according to json-glib-1.0.pc
4507 (home-page "https://wiki.gnome.org/Projects/JsonGlib")
4508 (synopsis "Compiler for the GObject type system")
4509 (description
4510 "JSON-GLib is a C library based on GLib providing serialization and
4511 deserialization support for the JavaScript Object Notation (JSON) format
4512 described by RFC 4627. It provides parser and generator GObject classes and
4513 various wrappers for the complex data types employed by JSON, such as arrays
4514 and objects.")
4515 (license license:lgpl2.1+)))
4516
4517 (define-public libxklavier
4518 (package
4519 (name "libxklavier")
4520 (version "5.4")
4521 (source (origin
4522 ;; Note: There's no tarball at ftp.gnome.org for this version.
4523 (method git-fetch)
4524 (uri (git-reference
4525 (url "https://anongit.freedesktop.org/git/libxklavier")
4526 (commit (string-append "libxklavier-" version))))
4527 (sha256
4528 (base32
4529 "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a"))
4530 (file-name (git-file-name name version))))
4531 (build-system gnu-build-system)
4532 (arguments
4533 '(#:configure-flags
4534 (list (string-append "--with-xkb-base="
4535 (assoc-ref %build-inputs "xkeyboard-config")
4536 "/share/X11/xkb")
4537 "--disable-xmodmap-support")))
4538 (native-inputs
4539 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
4540 ("gobject-introspection" ,gobject-introspection)
4541 ("pkg-config" ,pkg-config)
4542 ("gtk-doc" ,gtk-doc)
4543 ("intltool" ,intltool)
4544 ("which" ,which)
4545 ("autoconf" ,autoconf)
4546 ("automake" ,automake)
4547 ("libtool" ,libtool)))
4548 (propagated-inputs
4549 ;; Required by libxklavier.pc.
4550 `(("glib" ,glib)
4551 ("libxml2" ,libxml2)))
4552 (inputs
4553 `(("iso-codes" ,iso-codes)
4554 ("libxi" ,libxi)
4555 ("libxkbfile" ,libxkbfile)
4556 ("xkbcomp" ,xkbcomp)
4557 ("xkeyboard-config" ,xkeyboard-config)))
4558 (home-page "https://www.freedesktop.org/wiki/Software/LibXklavier/")
4559 (synopsis "High-level API for X Keyboard Extension")
4560 (description
4561 "LibXklavier is a library providing high-level API for X Keyboard
4562 Extension known as XKB. This library is intended to support XFree86 and other
4563 commercial X servers. It is useful for creating XKB-related software (layout
4564 indicators etc).")
4565 (license license:lgpl2.0+)))
4566
4567 (define-public python2-rsvg
4568 ;; XXX: This is actually a subset of gnome-python-desktop.
4569 (package
4570 (name "python2-rsvg")
4571 (version "2.32.0")
4572 (source
4573 (origin
4574 (method url-fetch)
4575 (uri (string-append
4576 "mirror://gnome/sources/gnome-python-desktop/2.32/gnome-python-desktop-"
4577 version ".tar.bz2"))
4578 (sha256
4579 (base32
4580 "1s8f9rns9v7qlwjv9qh9lr8crp88dpzfm45hj47zc3ivpy0dbnq9"))))
4581 (build-system gnu-build-system)
4582 (native-inputs
4583 `(("pkg-config" ,pkg-config)))
4584 (inputs
4585 `(("python" ,python-2)
4586 ("python2-pygtk" ,python2-pygtk)
4587 ("librsvg" ,librsvg)))
4588 (home-page "https://www.gnome.org")
4589 (synopsis "Python bindings to librsvg")
4590 (description
4591 "This package provides Python bindings to librsvg, the SVG rendering
4592 library.")
4593
4594 ;; This is the license of the rsvg bindings. The license of each module
4595 ;; of gnome-python-desktop is given in 'COPYING'.
4596 (license license:lgpl2.1+)))
4597
4598 (define-public glib-networking
4599 (package
4600 (name "glib-networking")
4601 (version "2.62.2")
4602 (source (origin
4603 (method url-fetch)
4604 (uri (string-append "mirror://gnome/sources/glib-networking/"
4605 (version-major+minor version) "/"
4606 "glib-networking-" version ".tar.xz"))
4607 (sha256
4608 (base32
4609 "0i2mw75297ql72h47vyvff3hqa0kcmqybblj52fqrarb0kfbhi06"))))
4610 (build-system meson-build-system)
4611 (arguments
4612 `(#:configure-flags '("-Dlibproxy_support=false")))
4613 (native-inputs
4614 `(("pkg-config" ,pkg-config)
4615 ("intltool" ,intltool)))
4616 (inputs
4617 `(("glib" ,glib)
4618 ("gnutls" ,gnutls)
4619 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
4620 (home-page "https://www.gnome.org")
4621 (synopsis "Network-related GIO modules")
4622 (description
4623 "This package contains various network related extensions for the GIO
4624 library.")
4625 (license license:lgpl2.0+)))
4626
4627 (define-public rest
4628 (package
4629 (name "rest")
4630 (version "0.8.1")
4631 (source (origin
4632 (method url-fetch)
4633 (uri (string-append "mirror://gnome/sources/rest/"
4634 (version-major+minor version) "/"
4635 name "-" version ".tar.xz"))
4636 (sha256
4637 (base32
4638 "1j81bgqmd55s5lxyaxcplym9n6xywcs1cm9wmvafsg2xiv9sl4q5"))))
4639 (build-system gnu-build-system)
4640 (arguments
4641 '(#:tests? #f ; tests require internet connection
4642 #:configure-flags
4643 '("--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt")))
4644 (native-inputs
4645 `(("glib-mkenums" ,glib "bin")
4646 ("gobject-introspection" ,gobject-introspection)
4647 ("pkg-config" ,pkg-config)))
4648 (propagated-inputs
4649 ;; rest-0.7.pc refers to all these.
4650 `(("glib" ,glib)
4651 ("libsoup" ,libsoup)
4652 ("libxml2" ,libxml2)))
4653 (home-page "https://www.gtk.org/")
4654 (synopsis "RESTful web api query library")
4655 (description
4656 "This library was designed to make it easier to access web services that
4657 claim to be \"RESTful\". It includes convenience wrappers for libsoup and
4658 libxml to ease remote use of the RESTful API.")
4659 (license license:lgpl2.1+)))
4660
4661 (define-public libsoup
4662 (package
4663 (name "libsoup")
4664 (version "2.72.0")
4665 (source (origin
4666 (method url-fetch)
4667 (uri (string-append "mirror://gnome/sources/libsoup/"
4668 (version-major+minor version) "/"
4669 "libsoup-" version ".tar.xz"))
4670 (sha256
4671 (base32
4672 "11skbyw2pw32178q3h8pi7xqa41b2x4k6q4k9f75zxmh8s23y30p"))))
4673 (build-system meson-build-system)
4674 (outputs '("out" "doc"))
4675 (arguments
4676 `(#:modules ((guix build utils)
4677 (guix build meson-build-system)
4678 (ice-9 popen))
4679
4680 #:configure-flags '("-Dgtk_doc=true")
4681 #:phases
4682 (modify-phases %standard-phases
4683 (add-after 'unpack 'patch-docbook-xml
4684 (lambda* (#:key inputs #:allow-other-keys)
4685 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
4686 "/xml/dtd/docbook")))
4687 (substitute* (find-files "docs/reference")
4688 (("http://.*/docbookx\\.dtd")
4689 (string-append xmldoc "/docbookx.dtd")))
4690 #t)))
4691 (add-after 'unpack 'adjust-tests
4692 (lambda _
4693 ;; This test fails due to missing /etc/nsswitch.conf
4694 ;; in the build environment.
4695 (substitute* "tests/socket-test.c"
4696 ((".*/sockets/unconnected.*") ""))
4697
4698 ;; These fail because "subdomain.localhost" does not resolve in
4699 ;; the build environment.
4700 (substitute* "tests/hsts-test.c"
4701 ((".*/hsts/basic.*") "")
4702 ((".*/hsts/subdomains.*") "")
4703 ((".*/hsts/superdomain.*") "")
4704 ((".*/hsts/utf8-address.*") ""))
4705 (substitute* "tests/hsts-db-test.c"
4706 ((".*/hsts-db/subdomains.*") ""))
4707
4708 ;; Generate a self-signed certificate that has "localhost" as its
4709 ;; 'dnsName'. Failing to do that, and starting with GnuTLS
4710 ;; 3.5.12, tests such as "ssl-tests" fail:
4711 ;;
4712 ;; ERROR:ssl-test.c:406:do_tls_interaction_test: Unexpected status 6 Unacceptable TLS certificate (expected 200 OK)
4713 ;;
4714 ;; 'certtool' is interactive so we have to pipe it the answers.
4715 ;; Reported at <https://bugzilla.gnome.org/show_bug.cgi?id=784696>.
4716 (let ((pipe (open-output-pipe "certtool --generate-self-signed \
4717 --load-privkey tests/test-key.pem --outfile tests/test-cert.pem")))
4718 (for-each (lambda (line)
4719 (display line pipe)
4720 (newline pipe))
4721 '("" ;Common name
4722 "" ;UID
4723 "Guix" ;Organizational unit name
4724 "GNU" ;Organization name
4725 "" ;Locality name
4726 "" ;State or province
4727 "" ;Country
4728 "" ;subject's domain component (DC)
4729 "" ;E-mail
4730 "" ;serial number
4731 "-1" ;expiration time
4732 "N" ;belong to authority?
4733 "N" ;web client certificate?
4734 "N" ;IPsec IKE?
4735 "Y" ;web server certificate?
4736 "localhost" ;dnsName of subject
4737 "" ;dnsName of subject (end)
4738 "" ;URI of subject
4739 "127.0.0.1" ;IP address of subject
4740 "" ;signing?
4741 "" ;encryption (RSA)?
4742 "" ;data encryption?
4743 "" ;sign OCSP requests?
4744 "" ;sign code?
4745 "" ;time stamping?
4746 "" ;email protection?
4747 "" ;URI of the CRL distribution point
4748 "y" ;above info OK?
4749 ))
4750 (close-pipe pipe))
4751 #t))
4752 (add-after 'install 'move-doc
4753 (lambda* (#:key outputs #:allow-other-keys)
4754 (let ((out (assoc-ref outputs "out"))
4755 (doc (assoc-ref outputs "doc")))
4756 (mkdir-p (string-append doc "/share"))
4757 (copy-recursively (string-append out "/share/gtk-doc")
4758 (string-append doc "/share/gtk-doc"))
4759 (delete-file-recursively (string-append out "/share/gtk-doc"))
4760 #t))))))
4761 (native-inputs
4762 `(("docbook-xml" ,docbook-xml-4.1.2)
4763 ("glib:bin" ,glib "bin") ; for glib-mkenums
4764 ("gobject-introspection" ,gobject-introspection)
4765 ("gtk-doc" ,gtk-doc)
4766 ("intltool" ,intltool)
4767 ("pkg-config" ,pkg-config)
4768 ("python" ,python-wrapper)
4769 ("vala" ,vala)
4770 ("php" ,php)
4771 ("curl" ,curl)
4772 ("gnutls" ,gnutls) ;for 'certtool'
4773 ("httpd" ,httpd)))
4774 (propagated-inputs
4775 ;; libsoup-2.4.pc refers to all these.
4776 `(("brotli" ,google-brotli)
4777 ("glib" ,glib)
4778 ("libpsl" ,libpsl)
4779 ("libxml2" ,libxml2)
4780 ("sqlite" ,sqlite)
4781 ("zlib" ,zlib)))
4782 (inputs
4783 `(("glib-networking" ,glib-networking)
4784 ("mit-krb5" ,mit-krb5)))
4785 (home-page "https://live.gnome.org/LibSoup/")
4786 (synopsis "GLib-based HTTP Library")
4787 (description
4788 "LibSoup is an HTTP client/server library for GNOME. It uses GObjects
4789 and the GLib main loop, to integrate well with GNOME applications.")
4790 (license license:lgpl2.0+)))
4791
4792
4793 ;;; A minimal version of libsoup used to prevent a cycle with Inkscape.
4794 (define-public libsoup-minimal
4795 (package
4796 (inherit libsoup)
4797 (name "libsoup-minimal")
4798 (outputs (delete "doc" (package-outputs libsoup)))
4799 (arguments
4800 (substitute-keyword-arguments (package-arguments libsoup)
4801 ((#:configure-flags configure-flags)
4802 `(delete "-Dgtk_doc=true" ,configure-flags))
4803 ((#:phases phases)
4804 `(modify-phases ,phases
4805 (delete 'move-doc)))))
4806 (native-inputs (alist-delete "gtk-doc" (package-native-inputs libsoup)))))
4807
4808 (define-public libsecret
4809 (package
4810 (name "libsecret")
4811 (version "0.20.4")
4812 (source (origin
4813 (method url-fetch)
4814 (uri (string-append
4815 "mirror://gnome/sources/libsecret/"
4816 (version-major+minor version) "/"
4817 "libsecret-" version ".tar.xz"))
4818 (sha256
4819 (base32
4820 "0a4xnfmraxchd9cq5ai66j12jv2vrgjmaaxz25kl031jvda4qnij"))))
4821 (build-system gnu-build-system)
4822 (outputs '("out" "doc"))
4823 (arguments
4824 `(#:tests? #f ; FIXME: Testing hangs.
4825 #:configure-flags
4826 (list (string-append "--with-html-dir="
4827 (assoc-ref %outputs "doc")
4828 "/share/gtk-doc/html"))))
4829 (native-inputs
4830 `(("gettext" ,gettext-minimal)
4831 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
4832 ("gobject-introspection" ,gobject-introspection)
4833 ("pkg-config" ,pkg-config)
4834 ("vala" ,vala)
4835 ("xsltproc" ,libxslt)))
4836 ;; These are needed for the tests.
4837 ;; FIXME: Add gjs once available.
4838 ;("dbus" ,dbus)
4839 ;("python2" ,python-2)
4840 ;("python2-dbus" ,python2-dbus)
4841 ;("python2-pygobject" ,python2-pygobject)
4842 ;("python2-pygobject-2" ,python2-pygobject-2)))
4843 (propagated-inputs
4844 `(("glib" ,glib))) ; required by libsecret-1.pc
4845 (inputs
4846 ;; The ‘build’ phase complains about missing docbook-xml-4.2 but adding it
4847 ;; doesn't seem to affect the build result.
4848 `(("docbook-xsl" ,docbook-xsl)
4849 ("libgcrypt" ,libgcrypt)
4850 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
4851 (home-page "https://wiki.gnome.org/Projects/Libsecret/")
4852 (synopsis "GObject bindings for \"Secret Service\" API")
4853 (description
4854 "Libsecret is a GObject based library for storing and retrieving passwords
4855 and other secrets. It communicates with the \"Secret Service\" using DBus.")
4856 (license license:lgpl2.1+)))
4857
4858 (define-public five-or-more
4859 (package
4860 (name "five-or-more")
4861 (version "3.32.2")
4862 (source
4863 (origin
4864 (method url-fetch)
4865 (uri (string-append "mirror://gnome/sources/five-or-more/"
4866 (version-major+minor version) "/"
4867 "five-or-more-" version ".tar.xz"))
4868 (sha256
4869 (base32 "19pf8wzbf3ciqf2k4bj9sddvyhckfd62x86pnqr6s8h4vn9jc6ii"))))
4870 (build-system meson-build-system)
4871 (arguments
4872 '(#:glib-or-gtk? #t
4873 #:phases
4874 (modify-phases %standard-phases
4875 (add-after 'unpack 'skip-gtk-update-icon-cache
4876 (lambda _
4877 (substitute* "meson_post_install.py"
4878 (("gtk-update-icon-cache") (which "true")))
4879 #t)))))
4880 (native-inputs
4881 `(("pkg-config" ,pkg-config)
4882 ("appstream-glib" ,appstream-glib)
4883 ("desktop-file-utils" ,desktop-file-utils)
4884 ("glib:bin" ,glib "bin") ; for glib-compile-resources
4885 ("intltool" ,intltool)
4886 ("itstool" ,itstool)
4887 ("vala" ,vala)
4888 ("xmllint" ,libxml2)))
4889 (inputs
4890 `(("gtk+" ,gtk+)
4891 ("libgnome-games-support" ,libgnome-games-support)
4892 ("librsvg" ,librsvg)))
4893 (home-page "https://wiki.gnome.org/Apps/Five%20or%20more")
4894 (synopsis "Logic puzzle game")
4895 (description "Five or More is a game where you try to align
4896 five or more objects of the same color and shape causing them to disappear.
4897 On every turn more objects will appear, until the board is full.
4898 Try to last as long as possible.")
4899 (license license:gpl2+)))
4900
4901 (define-public gnome-mines
4902 (package
4903 (name "gnome-mines")
4904 (version "3.36.1")
4905 (source
4906 (origin
4907 (method url-fetch)
4908 (uri (string-append "mirror://gnome/sources/" name "/"
4909 (version-major+minor version) "/"
4910 name "-" version ".tar.xz"))
4911 (sha256
4912 (base32 "0m2680r94nk61imym4x73j03jwfjd8cxm592m5ybiqdfdw6i723i"))))
4913 (build-system meson-build-system)
4914 (arguments
4915 '(#:glib-or-gtk? #t
4916 #:phases
4917 (modify-phases %standard-phases
4918 (add-after 'unpack 'skip-gtk-update-icon-cache
4919 (lambda _
4920 (substitute* "build-aux/meson_post_install.py"
4921 (("gtk-update-icon-cache") (which "true")))
4922 #t)))))
4923 (native-inputs
4924 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
4925 ("pkg-config" ,pkg-config)
4926 ("desktop-file-utils" ,desktop-file-utils)
4927 ("intltool" ,intltool)
4928 ("itstool" ,itstool)
4929 ("vala" ,vala)
4930 ("yelp" ,yelp)
4931 ("appstream-glib" ,appstream-glib)))
4932 (inputs
4933 `(("gtk+" ,gtk+)
4934 ("libgnome-games-support" ,libgnome-games-support)
4935 ("librsvg" ,librsvg)))
4936 (home-page "https://wiki.gnome.org/Apps/Mines")
4937 (synopsis "Minesweeper game")
4938 (description
4939 "Mines (previously gnomine) is a puzzle game where you locate mines
4940 floating in an ocean using only your brain and a little bit of luck.")
4941 (license license:gpl2+)))
4942
4943 (define-public gnome-multi-writer
4944 (package
4945 (name "gnome-multi-writer")
4946 (version "3.35.90")
4947 (source
4948 (origin
4949 (method url-fetch)
4950 (uri (string-append "mirror://gnome/sources/gnome-multi-writer/"
4951 (version-major+minor version) "/"
4952 "gnome-multi-writer-" version ".tar.xz"))
4953 (sha256
4954 (base32
4955 "07vgzjjdrxcp7h73z13h9agafxb4vmqx5i81bcfyw0ilw9kkdzmp"))))
4956 (build-system meson-build-system)
4957 (arguments
4958 '(#:glib-or-gtk? #t
4959 #:phases
4960 (modify-phases %standard-phases
4961 (add-after 'unpack 'skip-post-install
4962 (lambda _
4963 (substitute* "meson.build"
4964 (("meson.add_install_script" &) (string-append "# " &)))
4965 #t)))))
4966 (native-inputs
4967 `(("glib:bin" ,glib "bin")
4968 ("pkg-config" ,pkg-config)))
4969 (inputs
4970 `(("gtk+" ,gtk+)
4971 ("glib" ,glib) ; for gio
4972 ("gusb" ,gusb)
4973 ("udisks" ,udisks)
4974 ("libgudev" ,libgudev)
4975 ("libcanberra" ,libcanberra)
4976 ("polkit" ,polkit)))
4977 (home-page "https://wiki.gnome.org/Apps/MultiWriter")
4978 (synopsis "Write to multiple USB devices at once")
4979 (description
4980 "MultiWriter can be used to write an ISO file to multiple USB devices at
4981 once.")
4982 (license license:gpl2+)))
4983
4984 (define-public gnome-sudoku
4985 (package
4986 (name "gnome-sudoku")
4987 (version "3.34.1")
4988 (source
4989 (origin
4990 (method url-fetch)
4991 (uri (string-append "mirror://gnome/sources/" name "/"
4992 (version-major+minor version) "/"
4993 name "-" version ".tar.xz"))
4994 (sha256
4995 (base32
4996 "025y85r4qqardivvwiwhbmgarziykdy224m8zlrq8b79zv82793b"))))
4997 (build-system meson-build-system)
4998 (arguments
4999 '(#:glib-or-gtk? #t
5000 #:phases
5001 (modify-phases %standard-phases
5002 (add-after 'unpack 'skip-gtk-update-icon-cache
5003 (lambda _
5004 (substitute* "build-aux/post_install.py"
5005 (("gtk-update-icon-cache") (which "true")))
5006 #t)))))
5007 (native-inputs
5008 `(("pkg-config" ,pkg-config)
5009 ("desktop-file-utils" ,desktop-file-utils)
5010 ("glib:bin" ,glib "bin") ; for glib-compile-resources
5011 ("intltool" ,intltool)
5012 ("itstool" ,itstool)
5013 ("vala" ,vala)
5014 ("xmllint" ,libxml2)))
5015 (inputs
5016 `(("gtk+" ,gtk+)
5017 ("json-glib" ,json-glib)
5018 ("libgee" ,libgee)
5019 ("librsvg" ,librsvg)
5020 ("qqwing" ,qqwing)))
5021 (home-page "https://wiki.gnome.org/Apps/Sudoku")
5022 (synopsis "Japanese logic game")
5023 (description
5024 "Sudoku is a Japanese logic game that exploded in popularity in 2005.
5025 GNOME Sudoku is meant to have an interface as simple and unobstrusive as
5026 possible while still providing features that make playing difficult Sudoku
5027 more fun.")
5028 (license license:gpl2+)))
5029
5030 (define-public gnome-terminal
5031 (package
5032 (name "gnome-terminal")
5033 (version "3.34.2")
5034 (source
5035 (origin
5036 (method url-fetch)
5037 (uri (string-append "mirror://gnome/sources/" name "/"
5038 (version-major+minor version) "/"
5039 name "-" version ".tar.xz"))
5040 (sha256
5041 (base32
5042 "0gc004f9b5k94gkdanmqjz3wqgnpny0l3nqm8zd19h4f0ps27mrv"))))
5043 (build-system glib-or-gtk-build-system)
5044 (arguments
5045 '(#:configure-flags
5046 (list "--disable-migration" "--disable-search-provider"
5047 "--without-nautilus-extension")
5048 #:phases
5049 (modify-phases %standard-phases
5050 (add-before 'configure 'patch-/bin/true
5051 (lambda _
5052 (substitute* "configure"
5053 (("/bin/true") (which "true"))))))))
5054 (native-inputs
5055 `(("pkg-config" ,pkg-config)
5056 ("desktop-file-utils" ,desktop-file-utils)
5057 ("intltool" ,intltool)
5058 ("itstool" ,itstool)
5059 ("xmllint" ,libxml2)))
5060 (propagated-inputs
5061 `(("dconf" ,dconf)))
5062 (inputs
5063 `(("gtk+" ,gtk+)
5064 ("vte" ,vte)
5065 ("gnutls" ,gnutls)
5066 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5067 ("util-linux" ,util-linux "lib")
5068 ("vala" ,vala)))
5069 (home-page "https://wiki.gnome.org/Apps/Terminal")
5070 (synopsis "Terminal emulator")
5071 (description
5072 "GNOME Terminal is a terminal emulator application for accessing a
5073 UNIX shell environment which can be used to run programs available on
5074 your system.
5075
5076 It supports several profiles, multiple tabs and implements several
5077 keyboard shortcuts.")
5078 (license license:gpl3+)))
5079
5080 (define-public colord
5081 (package
5082 (name "colord")
5083 (version "1.4.5")
5084 (source
5085 (origin
5086 (method url-fetch)
5087 (uri (string-append "https://www.freedesktop.org/software/colord/releases/"
5088 "colord-" version ".tar.xz"))
5089 (sha256
5090 (base32 "05sydi6qqqx1rrqwnga1vbg9srkf89wdcfw5w4p4m7r37m2flx5p"))))
5091 (build-system meson-build-system)
5092 (arguments
5093 '(;; FIXME: One test fails:
5094 ;; /colord/icc-store (in lib/colord/colord-self-test-private):
5095 ;; Incorrect content type for /tmp/colord-vkve/already-exists.icc, got
5096 ;; application/x-zerosize
5097 #:tests? #f
5098 #:glib-or-gtk? #t
5099 #:configure-flags (list "-Dlocalstatedir=/var"
5100 ;; No dep on systemd.
5101 "-Dsystemd=false"
5102 ;; Wants to install to global completion dir;
5103 ;; punt.
5104 "-Dbash_completion=false"
5105 "-Ddaemon_user=colord"
5106 "-Dsane=true"
5107 "-Dvapi=true"
5108 ;; Requires spotread.
5109 "-Dargyllcms_sensor=false"
5110 ;; TODO: Requires docbook2x.
5111 "-Dman=false")
5112 #:phases
5113 (modify-phases %standard-phases
5114 (add-before 'configure 'patch-build-system
5115 (lambda* (#:key outputs #:allow-other-keys)
5116 (substitute* "rules/meson.build"
5117 (("udev.get_pkgconfig_variable\\('udevdir'\\)")
5118 (string-append "'" (assoc-ref outputs "out") "/lib/udev'")))
5119 #t))
5120 (add-before 'configure 'set-sqlite3-file-name
5121 (lambda* (#:key inputs #:allow-other-keys)
5122 ;; "colormgr dump" works by invoking the "sqlite3" command.
5123 ;; Record its absolute file name.
5124 (let ((sqlite (assoc-ref inputs "sqlite")))
5125 (substitute* "client/cd-util.c"
5126 (("\"sqlite3\"")
5127 (string-append "\"" sqlite "/bin/sqlite3\"")))
5128 #t))))))
5129 (native-inputs
5130 `(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
5131 ("gettext" ,gettext-minimal)
5132 ("gobject-introspection" ,gobject-introspection)
5133 ("gtk-doc" ,gtk-doc)
5134 ("pkg-config" ,pkg-config)
5135 ("vala" ,vala)))
5136 (propagated-inputs
5137 ;; colord.pc refers to all these.
5138 `(("glib" ,glib)
5139 ("lcms" ,lcms)
5140 ("udev" ,eudev)))
5141 (inputs
5142 `(("dbus-glib" ,dbus-glib)
5143 ("gusb" ,gusb)
5144 ("libgudev" ,libgudev)
5145 ("libusb" ,libusb)
5146 ("polkit" ,polkit)
5147 ("python" ,python-wrapper)
5148 ("sqlite" ,sqlite)
5149 ("sane-backends" ,sane-backends)))
5150 (home-page "https://www.freedesktop.org/software/colord/")
5151 (synopsis "Color management service")
5152 (description "Colord is a system service that makes it easy to manage,
5153 install and generate color profiles to accurately color manage input and
5154 output devices.")
5155 (license license:gpl2+)))
5156
5157 (define-public geoclue
5158 (package
5159 (name "geoclue")
5160 (version "2.5.7")
5161 (source
5162 (origin
5163 (method url-fetch)
5164 (uri
5165 (string-append "https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/"
5166 version "/geoclue-" version ".tar.bz2"))
5167 (sha256
5168 (base32 "09ww26a76kanldhgwnn5sqy9ly2940k45zpp68spykkv2zjdpivc"))
5169 (patches (search-patches "geoclue-config.patch"))))
5170 (build-system meson-build-system)
5171 (arguments
5172 '(#:configure-flags (list "-Dbus-srv-user=geoclue")))
5173 (native-inputs
5174 `(("pkg-config" ,pkg-config)
5175 ("gobject-introspection" ,gobject-introspection)
5176 ("modem-manager" ,modem-manager)
5177 ("libnotify" ,libnotify)
5178 ("gtk-doc" ,gtk-doc)
5179 ("intltool" ,intltool)))
5180 (inputs
5181 `(("avahi" ,avahi)
5182 ("glib:bin" ,glib "bin")
5183 ("glib-networking" ,glib-networking)
5184 ("json-glib" ,json-glib)
5185 ("libsoup" ,libsoup)))
5186 (home-page "https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home")
5187 (synopsis "Geolocation service")
5188 (description "Geoclue is a D-Bus service that provides location
5189 information. The primary goal of the Geoclue project is to make creating
5190 location-aware applications as simple as possible, while the secondary goal is
5191 to ensure that no application can access location information without explicit
5192 permission from user.")
5193 (license license:gpl2+)))
5194
5195 (define-public geocode-glib
5196 (package
5197 (name "geocode-glib")
5198 (version "3.26.2")
5199 (source (origin
5200 (method url-fetch)
5201 (uri (string-append "mirror://gnome/sources/geocode-glib/"
5202 (version-major+minor version) "/"
5203 "geocode-glib-" version ".tar.xz"))
5204 (sha256
5205 (base32
5206 "1l8g0f13xgkrk335afr9w8k46mziwb2jnyhl07jccl5yl37q9zh1"))))
5207 (build-system meson-build-system)
5208 (arguments
5209 `(#:phases
5210 (modify-phases %standard-phases
5211 ;; The tests require a bunch of locales.
5212 (add-before 'check 'set-locales
5213 (lambda* (#:key inputs #:allow-other-keys)
5214 (setenv "GUIX_LOCPATH"
5215 (string-append (assoc-ref inputs "glibc-locales")
5216 "/lib/locale"))
5217 #t)))))
5218 (native-inputs
5219 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5220 ("glibc-locales" ,glibc-locales) ; for tests
5221 ("gettext" ,gettext-minimal)
5222 ("gobject-introspection" ,gobject-introspection)
5223 ("gtk-doc" ,gtk-doc)
5224 ("pkg-config" ,pkg-config)
5225 ("json-glib" ,json-glib)))
5226 (propagated-inputs
5227 ;; geocode-glib-1.0.pc refers to GIO.
5228 `(("glib" ,glib)))
5229 (inputs
5230 `(("libsoup" ,libsoup)))
5231 (home-page "https://github.com/GNOME/geocode-glib/")
5232 (synopsis "Geocoding and reverse-geocoding library")
5233 (description
5234 "geocode-glib is a convenience library for geocoding (finding longitude,
5235 and latitude from an address) and reverse geocoding (finding an address from
5236 coordinates) using the Nominatim service. geocode-glib caches requests for
5237 faster results and to avoid unnecessary server load.")
5238 (license license:lgpl2.0+)))
5239
5240 (define-public upower
5241 (package
5242 (name "upower")
5243 (version "0.99.11")
5244 (source (origin
5245 (method url-fetch)
5246 (uri (string-append "https://upower.freedesktop.org/releases/"
5247 "upower-" version ".tar.xz"))
5248 (sha256
5249 (base32
5250 "1vxxvmz2cxb1qy6ibszaz5bskqdy9nd9fxspj9fv3gfmrjzzzdb4"))
5251 (patches (search-patches "upower-builddir.patch"))
5252 (modules '((guix build utils)))
5253 (snippet
5254 '(begin
5255 ;; Upstream commit
5256 ;; <https://cgit.freedesktop.org/upower/commit/?id=18457c99b68786cd729b315723d680e6860d9cfa>
5257 ;; moved 'dbus-1/system.d' from etc/ to share/. However,
5258 ;; 'dbus-configuration-directory' in (gnu services dbus)
5259 ;; expects it in etc/. Thus, move it back to its previous
5260 ;; location.
5261 (substitute* "src/Makefile.in"
5262 (("^dbusconfdir =.*$")
5263 "dbusconfdir = $(sysconfdir)/dbus-1/system.d\n"))
5264 #t))))
5265 (build-system glib-or-gtk-build-system)
5266 (arguments
5267 '(#:phases
5268 (modify-phases %standard-phases
5269 (add-before 'check 'pre-check
5270 (lambda* (#:key inputs #:allow-other-keys)
5271 (let ((umockdev (string-append (assoc-ref inputs "umockdev")
5272 "/lib")))
5273 (setenv "LD_LIBRARY_PATH" umockdev))
5274 #t)))
5275 #:configure-flags (list "--localstatedir=/var"
5276 (string-append "--with-udevrulesdir="
5277 (assoc-ref %outputs "out")
5278 "/lib/udev/rules.d"))))
5279 (native-inputs
5280 `(("gobject-introspection" ,gobject-introspection)
5281 ("pkg-config" ,pkg-config)
5282 ("intltool" ,intltool)
5283 ("python" ,python)
5284
5285 ;; For tests.
5286 ("python-dbus" ,python-dbus)
5287 ("python-dbusmock" ,python-dbusmock)
5288 ("python-pygobject" ,python-pygobject)
5289 ("umockdev" ,umockdev)
5290
5291 ;; For man pages.
5292 ("libxslt" ,libxslt) ;for 'xsltproc'
5293 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
5294 ("docbook-xsl" ,docbook-xsl)))
5295 (inputs
5296 `(("dbus-glib" ,dbus-glib)
5297 ("libgudev" ,libgudev)
5298 ("libusb" ,libusb)))
5299 (propagated-inputs
5300 ;; In Requires of upower-glib.pc.
5301 `(("glib" ,glib)))
5302 (home-page "https://upower.freedesktop.org/")
5303 (synopsis "System daemon for managing power devices")
5304 (description
5305 "UPower is an abstraction for enumerating power devices,
5306 listening to device events and querying history and statistics. Any
5307 application or service on the system can access the org.freedesktop.UPower
5308 service via the system message bus.")
5309 (license license:gpl2+)))
5310
5311 (define-public libgweather
5312 (package
5313 (name "libgweather")
5314 (version "3.34.0")
5315 (source (origin
5316 (method url-fetch)
5317 (uri (string-append "mirror://gnome/sources/" name "/"
5318 (version-major+minor version) "/"
5319 name "-" version ".tar.xz"))
5320 (sha256
5321 (base32
5322 "1fgiqswkhiaijanml3mb16ajn5aanrk7x6yiwagp9n9rssam6902"))))
5323 (build-system meson-build-system)
5324 (arguments
5325 `(#:tests? #f ; one of two tests requires network access
5326 #:configure-flags
5327 `(,(string-append "-Dzoneinfo_dir="
5328 (assoc-ref %build-inputs "tzdata")
5329 "/share/zoneinfo"))))
5330 (native-inputs
5331 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5332 ("gobject-introspection" ,gobject-introspection)
5333 ("pkg-config" ,pkg-config)
5334 ("vala" ,vala)
5335 ("intltool" ,intltool)))
5336 (propagated-inputs
5337 ;; gweather-3.0.pc refers to GTK+, GDK-Pixbuf, GLib/GObject, libxml, and
5338 ;; libsoup.
5339 `(("gtk+" ,gtk+)
5340 ("gdk-pixbuf" ,gdk-pixbuf)
5341 ("libxml2" ,libxml2)
5342 ("libsoup" ,libsoup)
5343 ("geocode-glib" ,geocode-glib)))
5344 (inputs
5345 `(("tzdata" ,tzdata)))
5346 (home-page "https://wiki.gnome.org/action/show/Projects/LibGWeather")
5347 (synopsis "Location, time zone, and weather library for GNOME")
5348 (description
5349 "libgweather is a library to access weather information from online
5350 services for numerous locations.")
5351 (license license:gpl2+)))
5352
5353 (define-public gnome-settings-daemon
5354 (package
5355 (name "gnome-settings-daemon")
5356 (version "3.34.1")
5357 (source
5358 (origin
5359 (method url-fetch)
5360 (uri (string-append "mirror://gnome/sources/" name "/"
5361 (version-major+minor version) "/"
5362 name "-" version ".tar.xz"))
5363 (sha256
5364 (base32
5365 "07y1gbicz0pbxmdgwrdzyc4byy30wfwpbqgvnx27gnpqmc5s50cr"))
5366 (patches (search-patches "gnome-settings-daemon-gc.patch"))))
5367 (build-system meson-build-system)
5368 (arguments
5369 `(#:glib-or-gtk? #t
5370 #:configure-flags
5371 (list (string-append "-Dudev_dir="
5372 (assoc-ref %outputs "out")
5373 "/lib/udev/rules.d/")
5374 "-Dsystemd=false"
5375 ;; Otherwise, the RUNPATH will lack the final path component.
5376 (string-append "-Dc_link_args=-Wl,-rpath="
5377 (assoc-ref %outputs "out")
5378 "/lib/gnome-settings-daemon-3.0"))
5379
5380 #:phases (modify-phases %standard-phases
5381 (add-before 'configure 'set-baobab-file-name
5382 (lambda* (#:key inputs #:allow-other-keys)
5383 ;; Hard-code the file name of Baobab instead of looking
5384 ;; it up in $PATH. This ensures users get the "Examine"
5385 ;; button in the low disk space notification of GDM even
5386 ;; if they don't have GNOME in their main profile.
5387 (let ((baobab (assoc-ref inputs "baobab")))
5388 (substitute* "plugins/housekeeping/gsd-disk-space.c"
5389 (("g_find_program_in_path \\(DISK_SPACE_ANALYZER\\)")
5390 (string-append "g_strdup (\"" baobab
5391 "/bin/baobab\")")))
5392 #t))))
5393
5394 ;; Color management test can't reach the colord system service.
5395 #:tests? #f))
5396 (native-inputs
5397 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5398 ("pkg-config" ,pkg-config)
5399 ("intltool" ,intltool)
5400 ("xsltproc" ,libxslt)
5401 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
5402 ("docbook-xml" ,docbook-xml-4.2)
5403 ("docbook-xsl" ,docbook-xsl)))
5404 (inputs
5405 `(("alsa-lib" ,alsa-lib)
5406 ("baobab" ,baobab)
5407 ("colord" ,colord)
5408 ("libgudev" ,libgudev)
5409 ("upower" ,upower)
5410 ("polkit" ,polkit)
5411 ("pulseaudio" ,pulseaudio)
5412 ("libcanberra" ,libcanberra)
5413 ("libx11" ,libx11)
5414 ("libxtst" ,libxtst)
5415 ("lcms" ,lcms)
5416 ("libnotify" ,libnotify)
5417 ("geoclue" ,geoclue)
5418 ("geocode-glib" ,geocode-glib)
5419 ("libgweather" ,libgweather)
5420 ("gnome-desktop" ,gnome-desktop)
5421 ("nss" ,nss)
5422 ("cups" ,cups)
5423 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5424 ("libwacom" ,libwacom)
5425 ("librsvg" ,librsvg)
5426 ("xf86-input-wacom" ,xf86-input-wacom)
5427 ("wayland" ,wayland)
5428 ("network-manager" ,network-manager)
5429 ("gcr" ,gcr)
5430 ("modem-manager" ,modem-manager)))
5431 (home-page "https://www.gnome.org")
5432 (synopsis "GNOME settings daemon")
5433 (description
5434 "This package contains the daemon responsible for setting the various
5435 parameters of a GNOME session and the applications that run under it. It
5436 handles settings such keyboard layout, shortcuts, and accessibility, clipboard
5437 settings, themes, mouse settings, and startup of other daemons.")
5438 (license license:gpl2+)))
5439
5440 (define-public totem-pl-parser
5441 (package
5442 (name "totem-pl-parser")
5443 (version "3.26.5")
5444 (source (origin
5445 (method url-fetch)
5446 (uri (string-append "mirror://gnome/sources/totem-pl-parser/"
5447 (version-major+minor version) "/"
5448 "totem-pl-parser-" version ".tar.xz"))
5449 (sha256
5450 (base32
5451 "132jihnf51zs98yjkc6jxyqib4f3dawpjm17g4bj4j78y93dww2k"))))
5452 (build-system meson-build-system)
5453 (arguments
5454 ;; FIXME: Tests require gvfs.
5455 `(#:tests? #f))
5456 (native-inputs
5457 `(("intltool" ,intltool)
5458 ("glib" ,glib "bin")
5459 ("gobject-introspection" ,gobject-introspection)
5460 ("pkg-config" ,pkg-config)))
5461 (propagated-inputs
5462 `(("glib" ,glib)
5463 ("gmime" ,gmime)
5464 ("libarchive" ,libarchive)
5465 ("libgcrypt" ,libgcrypt)
5466 ("libxml2" ,libxml2)))
5467 (inputs
5468 `(("libsoup" ,libsoup)))
5469 (home-page "https://projects.gnome.org/totem")
5470 (synopsis "Library to parse and save media playlists for GNOME")
5471 (description "Totem-pl-parser is a GObjects-based library to parse and save
5472 playlists in a variety of formats.")
5473 (license license:lgpl2.0+)))
5474
5475 (define-public aisleriot
5476 (package
5477 (name "aisleriot")
5478 (version "3.22.9")
5479 (source (origin
5480 (method url-fetch)
5481 (uri (string-append "mirror://gnome/sources/aisleriot/"
5482 (version-major+minor version) "/"
5483 "aisleriot-" version ".tar.xz"))
5484 (sha256
5485 (base32
5486 "0yzdh9cw5cjjgvfh75bihl968czlgfmpmn1z0fdk88sgvpjgzwji"))))
5487 (build-system glib-or-gtk-build-system)
5488 (arguments
5489 '(#:configure-flags
5490 '("--with-platform=gtk-only"
5491 "--with-card-theme-formats=svg")))
5492 (native-inputs
5493 `(("desktop-file-utils" ,desktop-file-utils)
5494 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5495 ("intltool" ,intltool)
5496 ("itstool" ,itstool)
5497 ("pkg-config" ,pkg-config)
5498 ("xmllint" ,libxml2)))
5499 (inputs
5500 `(("gtk+" ,gtk+)
5501 ("guile" ,guile-2.2)
5502 ("libcanberra" ,libcanberra)
5503 ("librsvg" ,librsvg)))
5504 (home-page "https://wiki.gnome.org/Apps/Aisleriot")
5505 (synopsis "Solitaire card games")
5506 (description
5507 "Aisleriot (also known as Solitaire or sol) is a collection of card games
5508 which are easy to play with the aid of a mouse.")
5509 (license license:gpl3+)))
5510
5511 (define-public amtk
5512 (package
5513 (name "amtk")
5514 (version "5.0.2")
5515 (source (origin
5516 (method url-fetch)
5517 (uri (string-append "mirror://gnome/sources/amtk/"
5518 (version-major+minor version) "/"
5519 "amtk-" version ".tar.xz"))
5520 (sha256
5521 (base32
5522 "11jgz2i9wjzv4alrxl1qyxiapb52w7vs5ygfgsw0qgdap8gqkk3i"))))
5523 (build-system gnu-build-system)
5524 (arguments
5525 '(#:configure-flags '("--enable-gtk-doc")))
5526 (native-inputs
5527 `(("gobject-introspection" ,gobject-introspection)
5528 ("glib:bin" ,glib "bin") ; for glib-mkenums
5529 ("gtk-doc" ,gtk-doc)
5530 ("pkg-config" ,pkg-config)))
5531 (inputs
5532 `(("glib" ,glib)
5533 ("gtk+" ,gtk+)))
5534 (home-page "https://wiki.gnome.org/Projects/Amtk")
5535 (synopsis "Actions, Menus and Toolbars Kit for GTK+ applications")
5536 (description
5537 "Amtk is the acronym for @acronym{Amtk, Actions Menus and Toolbars Kit}.
5538 It is a basic GtkUIManager replacement based on GAction. It is suitable for
5539 both a traditional UI or a modern UI with a GtkHeaderBar.")
5540 (license license:lgpl2.1+)))
5541
5542 (define-public devhelp
5543 (package
5544 (name "devhelp")
5545 (version "3.34.0")
5546 (source (origin
5547 (method url-fetch)
5548 (uri (string-append "mirror://gnome/sources/" name "/"
5549 (version-major+minor version) "/"
5550 name "-" version ".tar.xz"))
5551 (sha256
5552 (base32
5553 "0zpmn6fgkgiayvn4diia5df0s6s7dqrdnp3nrvpavsmgn0vhb4pg"))))
5554 (build-system meson-build-system)
5555 (arguments
5556 '(#:glib-or-gtk? #t
5557 #:phases
5558 (modify-phases %standard-phases
5559 (add-after 'unpack 'skip-gtk-update-icon-cache
5560 ;; Don't create 'icon-theme.cache'.
5561 (lambda _
5562 (substitute* "meson_post_install.py"
5563 (("gtk-update-icon-cache") "true"))
5564 #t)))))
5565 (native-inputs
5566 `(("intltool" ,intltool)
5567 ("itstool" ,itstool)
5568 ("gobject-introspection" ,gobject-introspection)
5569 ("glib:bin" ,glib "bin") ; for glib-mkmenus
5570 ("pkg-config" ,pkg-config)))
5571 (inputs
5572 `(("amtk" ,amtk)
5573 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5574 ("webkitgtk" ,webkitgtk)))
5575 (home-page "https://wiki.gnome.org/Apps/Devhelp")
5576 (synopsis "API documentation browser for GNOME")
5577 (description
5578 "Devhelp is an API documentation browser for GTK+ and GNOME. It works
5579 natively with GTK-Doc (the API reference system developed for GTK+ and used
5580 throughout GNOME for API documentation).")
5581 (license license:gpl2+)))
5582
5583 (define-public cogl
5584 (package
5585 (name "cogl")
5586 (version "1.22.8")
5587 (source
5588 (origin
5589 (method url-fetch)
5590 (uri (string-append "mirror://gnome/sources/cogl/"
5591 (version-major+minor version) "/"
5592 "cogl-" version ".tar.xz"))
5593 (sha256
5594 (base32 "0nfph4ai60ncdx7hy6hl1i1cmp761jgnyjfhagzi0iqq36qb41d8"))))
5595 ;; NOTE: mutter exports a bundled fork of cogl, so when making changes to
5596 ;; cogl, corresponding changes may be appropriate in mutter as well.
5597 (build-system gnu-build-system)
5598 (native-inputs
5599 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5600 ("gobject-introspection" ,gobject-introspection)
5601 ("xorg-server" ,xorg-server-for-tests)
5602 ("pkg-config" ,pkg-config)))
5603 (propagated-inputs
5604 `(("glib" ,glib)
5605 ("gdk-pixbuf" ,gdk-pixbuf)
5606 ("libx11" ,libx11)
5607 ("libxext" ,libxext)
5608 ("libxfixes" ,libxfixes)
5609 ("libxdamage" ,libxdamage)
5610 ("libxcomposite" ,libxcomposite)
5611 ("libxrandr" ,libxrandr)))
5612 (inputs
5613 `(("mesa" ,mesa)
5614 ("cairo" ,cairo)
5615 ("pango" ,pango)
5616 ("gstreamer" ,gstreamer)
5617 ("gst-plugins-base" ,gst-plugins-base)
5618 ("wayland" ,wayland)))
5619 (arguments
5620 `(#:disallowed-references (,xorg-server-for-tests)
5621 #:configure-flags (list "--enable-cogl-gst"
5622 "--enable-wayland-egl-platform"
5623 "--enable-wayland-egl-server"
5624
5625 ;; Arrange to pass an absolute file name to
5626 ;; dlopen for libGL.so.
5627 (string-append "--with-gl-libname="
5628 (assoc-ref %build-inputs "mesa")
5629 "/lib/libGL.so"))
5630 #:phases
5631 (modify-phases %standard-phases
5632 (add-after 'unpack 'fix-build-with-mesa-20
5633 (lambda _
5634 ;; Work around a problem with Mesa 20 where some macros used by
5635 ;; Cogl went missing from eglext.h. This can likely be removed
5636 ;; for newer versions of Cogl or Mesa.
5637 ;; https://gitlab.gnome.org/GNOME/cogl/-/merge_requests/19
5638 (substitute* '("configure"
5639 "cogl/winsys/cogl-winsys-egl-kms.c")
5640 (("#include <EGL/eglext.h>" all)
5641 (string-append all "\n#include <EGL/eglmesaext.h>\n")))
5642 #t))
5643 (add-before 'check 'start-xorg-server
5644 (lambda* (#:key tests? inputs #:allow-other-keys)
5645 (if tests?
5646 (begin
5647 ;; The test suite requires a running X server.
5648 (system (format #f "~a/bin/Xvfb :1 +extension GLX &"
5649 (assoc-ref inputs "xorg-server")))
5650 (setenv "DISPLAY" ":1")
5651 #t)
5652 (format #t "test suite not run~%"))
5653 #t)))))
5654 (home-page "https://www.cogl3d.org")
5655 (synopsis "Object oriented GL/GLES Abstraction/Utility Layer")
5656 (description
5657 "Cogl is a small library for using 3D graphics hardware to draw pretty
5658 pictures. The API departs from the flat state machine style of OpenGL and is
5659 designed to make it easy to write orthogonal components that can render
5660 without stepping on each others toes.")
5661 (license (list license:expat ; most of the code
5662 license:bsd-3 ; cogl/cogl-point-in-poly.c
5663 license:sgifreeb2.0 ; cogl-path/tesselator/
5664 license:asl2.0)))) ; examples/android/
5665
5666 (define-public clutter
5667 (package
5668 (name "clutter")
5669 (version "1.26.2")
5670 (source
5671 (origin
5672 (method url-fetch)
5673 (uri (string-append "mirror://gnome/sources/" name "/"
5674 (version-major+minor version) "/"
5675 name "-" version ".tar.xz"))
5676 (sha256
5677 (base32
5678 "0mif1qnrpkgxi43h7pimim6w6zwywa16ixcliw0yjm9hk0a368z7"))))
5679 ;; NOTE: mutter exports a bundled fork of clutter, so when making changes
5680 ;; to clutter, corresponding changes may be appropriate in mutter as well.
5681 (build-system gnu-build-system)
5682 (outputs '("out"
5683 "doc")) ;9 MiB of gtk-doc HTML pages
5684 (native-inputs
5685 `(("glib:bin" ,glib "bin") ; for glib-genmarshal
5686 ("gobject-introspection" ,gobject-introspection)
5687 ("pkg-config" ,pkg-config)
5688 ("xsltproc" ,libxslt)))
5689 (propagated-inputs
5690 `(("cogl" ,cogl)
5691 ("cairo" ,cairo)
5692 ("atk" ,atk)
5693 ("gtk+" ,gtk+)
5694 ("json-glib" ,json-glib)
5695 ("glib" ,glib)
5696 ("libxcomposite" ,libxcomposite)
5697 ("libxdamage" ,libxdamage)
5698 ("libxext" ,libxext)
5699 ("xinput" ,xinput)))
5700 (inputs
5701 `(("libxkbcommon" ,libxkbcommon)
5702 ("udev" ,eudev)))
5703 (arguments
5704 `(#:configure-flags (list "--enable-x11-backend=yes"
5705
5706 ;; This produces share/doc/{clutter,cally}.
5707 (string-append "--with-html-dir="
5708 (assoc-ref %outputs "doc")
5709 "/share/doc"))
5710 ;; XXX FIXME: Get test suite working. It would probably fail in the
5711 ;; same way the cogl tests fail, since clutter is based on cogl.
5712 #:tests? #f))
5713 (home-page "http://www.clutter-project.org")
5714 (synopsis "OpenGL-based interactive canvas library")
5715 (description
5716 "Clutter is an OpenGL-based interactive canvas library, designed for
5717 creating fast, mainly 2D single window applications such as media box UIs,
5718 presentations, kiosk style applications and so on.")
5719 (license license:lgpl2.0+)))
5720
5721 (define-public clutter-gtk
5722 (package
5723 (name "clutter-gtk")
5724 (version "1.8.4")
5725 (source
5726 (origin
5727 (method url-fetch)
5728 (uri (string-append "mirror://gnome/sources/" name "/"
5729 (version-major+minor version) "/"
5730 name "-" version ".tar.xz"))
5731 (sha256
5732 (base32
5733 "01ibniy4ich0fgpam53q252idm7f4fn5xg5qvizcfww90gn9652j"))))
5734 (build-system gnu-build-system)
5735 (native-inputs
5736 `(("pkg-config" ,pkg-config)
5737 ("gobject-introspection" ,gobject-introspection)))
5738 (propagated-inputs
5739 ;; clutter-gtk.pc refers to all these.
5740 `(("clutter" ,clutter)
5741 ("gtk+" ,gtk+)))
5742 (home-page "http://www.clutter-project.org")
5743 (synopsis "OpenGL-based interactive canvas library GTK+ widget")
5744 (description
5745 "Clutter is an OpenGL-based interactive canvas library, designed for
5746 creating fast, mainly 2D single window applications such as media box UIs,
5747 presentations, kiosk style applications and so on.")
5748 (license license:lgpl2.0+)))
5749
5750 (define-public clutter-gst
5751 (package
5752 (name "clutter-gst")
5753 (version "3.0.27")
5754 (source
5755 (origin
5756 (method url-fetch)
5757 (uri (string-append "mirror://gnome/sources/clutter-gst/"
5758 (version-major+minor version) "/"
5759 "clutter-gst-" version ".tar.xz"))
5760 (sha256
5761 (base32 "17czmpl92dzi4h3rn5rishk015yi3jwiw29zv8qan94xcmnbssgy"))))
5762 (build-system gnu-build-system)
5763 (native-inputs
5764 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5765 ("pkg-config" ,pkg-config)
5766 ("gobject-introspection" ,gobject-introspection)))
5767 (inputs
5768 `(("clutter" ,clutter)
5769 ("gstreamer" ,gstreamer)
5770 ("gst-plugins-base" ,gst-plugins-base)))
5771 (home-page "http://www.clutter-project.org")
5772 (synopsis "Integration library for using GStreamer with Clutter")
5773 (description
5774 "Clutter-Gst is an integration library for using GStreamer with Clutter.
5775 It provides a GStreamer sink to upload frames to GL and an actor that
5776 implements the ClutterGstPlayer interface using playbin. Clutter is an
5777 OpenGL-based interactive canvas library.")
5778 (license license:lgpl2.0+)))
5779
5780 (define-public libchamplain
5781 (package
5782 (name "libchamplain")
5783 (version "0.12.16")
5784 (source (origin
5785 (method url-fetch)
5786 (uri (string-append
5787 "mirror://gnome/sources/libchamplain/0.12/libchamplain-"
5788 version ".tar.xz"))
5789 (sha256
5790 (base32
5791 "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja"))))
5792 (build-system gnu-build-system)
5793 (arguments '(#:configure-flags '("--enable-vala")))
5794 (native-inputs
5795 `(("gobject-introspection" ,gobject-introspection)
5796 ("pkg-config" ,pkg-config)
5797 ("vala" ,vala)))
5798 (propagated-inputs
5799 `(("libsoup" ,libsoup)
5800 ("sqlite" ,sqlite)
5801 ("clutter" ,clutter)
5802 ("clutter-gtk" ,clutter-gtk)
5803 ("glib:bin" ,glib "bin") ;glib-mkenums, etc.
5804 ("cairo" ,cairo)
5805 ("gtk+3" ,gtk+)
5806 ("glib" ,glib)))
5807 (home-page "https://projects.gnome.org/libchamplain/")
5808 (synopsis "C library providing a ClutterActor to display maps")
5809 (description
5810 "libchamplain is a C library providing a ClutterActor to display maps.
5811 It also provides a Gtk+ widget to display maps in Gtk+ applications. Python
5812 and Perl bindings are also available. It supports numerous free map sources
5813 such as OpenStreetMap, OpenCycleMap, OpenAerialMap, and Maps for free.")
5814 (license license:lgpl2.1+)))
5815
5816 (define-public gom
5817 (package
5818 (name "gom")
5819 (version "0.3.2")
5820 (source
5821 (origin
5822 (method url-fetch)
5823 (uri (string-append "mirror://gnome/sources/gom/"
5824 (version-major+minor version) "/"
5825 "gom-" version ".tar.xz"))
5826 (sha256
5827 (base32
5828 "1zaqqwwkyiswib3v1v8wafpbifpbpak0nn2kp13pizzn9bwz1s5w"))))
5829 (build-system gnu-build-system)
5830 (native-inputs
5831 `(("intltool" ,intltool)
5832 ("pkg-config" ,pkg-config)
5833 ("gobject-introspection" ,gobject-introspection)))
5834 (inputs
5835 `(("glib" ,glib)
5836 ("gdk-pixbuf" ,gdk-pixbuf)
5837 ("sqlite" ,sqlite)))
5838 ;; XXX TODO: Figure out how to run the test suite.
5839 (arguments `(#:tests? #f))
5840 (home-page "https://wiki.gnome.org/Projects/Gom")
5841 (synopsis "Object mapper from GObjects to SQLite")
5842 (description
5843 "Gom provides an object mapper from GObjects to SQLite. It helps you
5844 write applications that need to store structured data as well as make complex
5845 queries upon that data.")
5846 (license license:lgpl2.1+)))
5847
5848 (define-public libgnome-games-support
5849 (package
5850 (name "libgnome-games-support")
5851 (version "1.4.4")
5852 (source (origin
5853 (method url-fetch)
5854 (uri (string-append "mirror://gnome/sources/libgnome-games-support/"
5855 (version-major+minor version) "/"
5856 "libgnome-games-support-" version ".tar.xz"))
5857 (sha256
5858 (base32
5859 "1zkbmnrn161p74qg6jhsn9f66yjjzxfm13pl1klv9av8k1bax9pq"))))
5860 (build-system gnu-build-system)
5861 (arguments
5862 '(#:phases
5863 (modify-phases %standard-phases
5864 (add-before 'check 'pre-check
5865 (lambda _
5866 ;; Tests require a writable HOME.
5867 (setenv "HOME" (getcwd))
5868 #t)))))
5869 (native-inputs
5870 `(("intltool" ,intltool)
5871 ("pkg-config" ,pkg-config)
5872 ("vala" ,vala)))
5873 (propagated-inputs
5874 ;; Required by libgnome-games-support-1.0.pc
5875 `(("gtk+" ,gtk+)
5876 ("libgee" ,libgee)))
5877 (home-page "https://www.gnome.org/")
5878 (synopsis "Useful functionality shared among GNOME games")
5879 (description
5880 "libgnome-games-support is a small library intended for internal use by
5881 GNOME Games, but it may be used by others.")
5882 (license license:lgpl3+)))
5883
5884 (define-public gnome-klotski
5885 (package
5886 (name "gnome-klotski")
5887 (version "3.34.0")
5888 (source (origin
5889 (method url-fetch)
5890 (uri (string-append "mirror://gnome/sources/" name "/"
5891 (version-major+minor version) "/"
5892 name "-" version ".tar.xz"))
5893 (sha256
5894 (base32
5895 "0sbx0bzy32lh2c9jp8v7gz788wn9y1la8mr5a7gf7370szsl4d4f"))))
5896 (build-system meson-build-system)
5897 (arguments
5898 '(#:glib-or-gtk? #t
5899 #:phases
5900 (modify-phases %standard-phases
5901 (add-after 'unpack 'skip-gtk-update-icon-cache
5902 ;; Don't create 'icon-theme.cache'.
5903 (lambda _
5904 (substitute* "build-aux/meson_post_install.py"
5905 (("gtk-update-icon-cache") (which "true")))
5906 #t)))))
5907 (native-inputs
5908 `(("desktop-file-utils" ,desktop-file-utils)
5909 ("glib:bin" ,glib "bin") ; for glib-compile-resources
5910 ("intltool" ,intltool)
5911 ("itstool" ,itstool)
5912 ("pkg-config" ,pkg-config)
5913 ("vala" ,vala)
5914 ("xmllint" ,libxml2)))
5915 (inputs
5916 `(("gtk+" ,gtk+)
5917 ("libgnome-games-support" ,libgnome-games-support)
5918 ("librsvg" ,librsvg)))
5919 (home-page "https://wiki.gnome.org/Apps/Klotski")
5920 (synopsis "Sliding block puzzles")
5921 (description
5922 "GNOME Klotski is a set of block sliding puzzles. The objective is to move
5923 the patterned block to the area bordered by green markers. To do so, you will
5924 need to slide other blocks out of the way. Complete each puzzle in as few moves
5925 as possible!")
5926 (license license:gpl2+)))
5927
5928 (define-public grilo
5929 (package
5930 (name "grilo")
5931 (version "0.3.12")
5932 (source
5933 (origin
5934 (method url-fetch)
5935 (uri (string-append "mirror://gnome/sources/grilo/"
5936 (version-major+minor version) "/"
5937 "grilo-" version ".tar.xz"))
5938 (sha256
5939 (base32 "0w8sq5g6g1rg85h53vbll8va70fcp6082mlpmy98aa03444ddyyv"))))
5940 (build-system meson-build-system)
5941 (native-inputs
5942 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
5943 ("intltool" ,intltool)
5944 ("pkg-config" ,pkg-config)
5945 ("gobject-introspection" ,gobject-introspection)
5946 ("gtk-doc" ,gtk-doc)
5947 ("vala" ,vala)))
5948 (inputs
5949 `(("cyrus-sasl" ,cyrus-sasl)
5950 ("glib" ,glib)
5951 ("gtk+" ,gtk+)
5952 ("libxml2" ,libxml2)
5953 ("liboauth" ,liboauth)
5954 ("libsoup" ,libsoup)
5955 ("totem-pl-parser" ,totem-pl-parser)))
5956 (native-search-paths
5957 (list (search-path-specification
5958 (variable "GRL_PLUGIN_PATH")
5959 (files (list (string-append "lib/grilo-"
5960 (version-major+minor version)))))))
5961 (home-page "https://wiki.gnome.org/action/show/Projects/Grilo")
5962 (synopsis "Framework for discovering and browsing media")
5963 (description
5964 "Grilo is a framework focused on making media discovery and browsing easy
5965 for application developers.")
5966 (license license:lgpl2.1+)))
5967
5968 (define-public grilo-plugins
5969 (package
5970 (name "grilo-plugins")
5971 (version "0.3.11")
5972 (source
5973 (origin
5974 (method url-fetch)
5975 (uri (string-append "mirror://gnome/sources/" name "/"
5976 (version-major+minor version) "/"
5977 name "-" version ".tar.xz"))
5978 (sha256
5979 (base32 "0wyd3n5mn7b77hxylkc3f62v01mlavh96901pz342hwrn42ydqnx"))))
5980 (build-system meson-build-system)
5981 (native-inputs
5982 `(("gettext" ,gettext-minimal)
5983 ("glib:bin" ,glib "bin")
5984 ("gtk+:bin" ,gtk+ "bin")
5985 ("itstool" ,itstool)
5986 ("pkg-config" ,pkg-config)))
5987 ;; TODO: ahavi, gstreamer
5988 (inputs
5989 `(("grilo" ,grilo)
5990 ;("gmime" ,gmime) ; unused
5991 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
5992 ("gom" ,gom)
5993 ;("gssdp" ,gssdp) ; unused
5994 ;("gupnp" ,gupnp) ; unused
5995 ;("gupnp-av" ,gupnp-av) ; unused
5996 ("json-glib" ,json-glib)
5997 ("avahi" ,avahi)
5998 ("libgdata" ,libgdata)
5999 ("libmediaart" ,libmediaart)
6000 ;("librest" ,rest) ; unused
6001 ("libsoup" ,libsoup)
6002 ("totam-pl-parser" ,totem-pl-parser)
6003 ("tracker" ,tracker))) ; unused because it's too old
6004 (arguments
6005 `(#:glib-or-gtk? #t
6006 ;;Disable lua-factory as it needs missing dependencies
6007 #:configure-flags '("-Denable-lua-factory=no")))
6008 (home-page "https://live.gnome.org/Grilo")
6009 (synopsis "Plugins for the Grilo media discovery library")
6010 (description
6011 "Grilo is a framework focused on making media discovery and browsing easy
6012 for application developers. This package provides plugins for common media
6013 discovery protocols.")
6014 (license license:lgpl2.1+)))
6015
6016 (define-public totem
6017 (package
6018 (name "totem")
6019 (version "3.38.0")
6020 (source
6021 (origin
6022 (method url-fetch)
6023 (uri (string-append "mirror://gnome/sources/totem/"
6024 (version-major+minor version) "/"
6025 "totem-" version ".tar.xz"))
6026 (sha256
6027 (base32
6028 "0bs33ijvxbr2prb9yj4dxglsszslsn9k258n311sld84masz4ad8"))))
6029 (build-system meson-build-system)
6030 (native-inputs
6031 `(("pkg-config" ,pkg-config)
6032 ("desktop-file-utils" ,desktop-file-utils)
6033 ("gettext" ,gettext-minimal)
6034 ("gobject-introspection" ,gobject-introspection)
6035 ("glib:bin" ,glib "bin") ;for 'glib-mkenums'
6036 ("itstool" ,itstool)
6037 ("xmllint" ,libxml2)
6038 ("xorg-server" ,xorg-server-for-tests)))
6039 (propagated-inputs
6040 `(("dconf" ,dconf)))
6041 (inputs
6042 `(("gtk+" ,gtk+)
6043 ("gdk-pixbuf" ,gdk-pixbuf)
6044 ("atk" ,atk)
6045 ("cairo" ,cairo)
6046 ("dbus-glib" ,dbus-glib)
6047 ("clutter" ,clutter)
6048 ("clutter-gtk" ,clutter-gtk)
6049 ("clutter-gst" ,clutter-gst)
6050 ("xorgproto" ,xorgproto)
6051 ("libxxf86vm" ,libxxf86vm)
6052 ("libxtst" ,libxtst)
6053 ("libxrandr" ,libxrandr)
6054 ("libxml2" ,libxml2)
6055 ("libsoup" ,libsoup)
6056 ("libpeas" ,libpeas)
6057 ("librsvg" ,librsvg)
6058 ("lirc" ,lirc)
6059 ("gnome-desktop" ,gnome-desktop)
6060 ("gstreamer" ,gstreamer)
6061 ("gst-plugins-base" ,gst-plugins-base)
6062 ("gst-plugins-good" ,gst-plugins-good)
6063 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6064 ("adwaita-icon-theme" ,adwaita-icon-theme)
6065 ("python" ,python)
6066 ("python-pygobject" ,python-pygobject)
6067 ("totem-pl-parser" ,totem-pl-parser)
6068 ("grilo" ,grilo)
6069 ("grilo-plugins" ,grilo-plugins)
6070 ("vala" ,vala)))
6071 (arguments
6072 `(#:glib-or-gtk? #t
6073
6074 ;; Disable automatic GStreamer plugin installation via PackageKit and
6075 ;; all that.
6076 #:configure-flags '("-D" "enable-easy-codec-installation=no"
6077
6078 ;; Do not build .a files for the plugins, it's
6079 ;; completely useless. This saves 2 MiB.
6080 "--default-library" "shared")
6081 #:phases
6082 (modify-phases %standard-phases
6083 (add-after 'unpack 'skip-gtk-update-icon-cache
6084 ;; Don't create 'icon-theme.cache'.
6085 (lambda _
6086 (substitute* "meson_post_install.py"
6087 (("gtk-update-icon-cache") "true"))
6088 #t))
6089 (add-after 'unpack 'patch-failing-test
6090 (lambda _
6091 ;; Work around test failure with GStreamer 1.18, because the test
6092 ;; relies on "und" not being mapped to a particular language:
6093 ;; https://gitlab.gnome.org/GNOME/totem/-/issues/450
6094 (substitute* "src/test-totem.c"
6095 (("und") "nosuchlang"))
6096 #t))
6097 (add-before
6098 'install 'disable-cache-generation
6099 (lambda _
6100 (setenv "DESTDIR" "/")
6101 #t))
6102 (add-before
6103 'check 'pre-check
6104 (lambda _
6105 ;; Tests require a running X server.
6106 (system "Xvfb :1 &")
6107 (setenv "DISPLAY" ":1")
6108 #t))
6109 (add-after
6110 'install 'wrap-totem
6111 (lambda* (#:key inputs outputs #:allow-other-keys)
6112 (let ((out (assoc-ref outputs "out"))
6113 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
6114 (grl-plugin-path (getenv "GRL_PLUGIN_PATH")))
6115 (wrap-program (string-append out "/bin/totem")
6116 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
6117 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path)))
6118 (wrap-program (string-append out "/bin/totem-video-thumbnailer")
6119 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
6120 #t)))))
6121 (home-page "https://wiki.gnome.org/Apps/Videos")
6122 (synopsis "Simple media player for GNOME based on GStreamer")
6123 (description "Totem is a simple yet featureful media player for GNOME
6124 which can read a large number of file formats.")
6125 ;; GPL2+ with an exception clause for non-GPL compatible GStreamer plugins
6126 ;; to be used and distributed together with GStreamer and Totem. See
6127 ;; file://COPYING in the source distribution for details.
6128 (license license:gpl2+)))
6129
6130 (define-public rhythmbox
6131 (package
6132 (name "rhythmbox")
6133 (version "3.4.4")
6134 (source (origin
6135 (method url-fetch)
6136 (uri (string-append "mirror://gnome/sources/rhythmbox/"
6137 (version-major+minor version) "/"
6138 "rhythmbox-" version ".tar.xz"))
6139 (sha256
6140 (base32
6141 "142xcvw4l19jyr5i72nbnrihs953pvrrzcbijjn9dxmxszbv03pf"))))
6142 (build-system glib-or-gtk-build-system)
6143 (arguments
6144 `(#:configure-flags
6145 (list "--enable-lirc"
6146 "--enable-python"
6147 "--enable-vala"
6148 "--with-brasero"
6149 "--with-gudev"
6150 "--with-libsecret")
6151 #:phases
6152 (modify-phases %standard-phases
6153 (add-after
6154 'install 'wrap-rhythmbox
6155 (lambda* (#:key inputs outputs #:allow-other-keys)
6156 (let ((out (assoc-ref outputs "out"))
6157 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6158 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
6159 (grl-plugin-path (getenv "GRL_PLUGIN_PATH"))
6160 (python-path (getenv "PYTHONPATH")))
6161 (wrap-program (string-append out "/bin/rhythmbox")
6162 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6163 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
6164 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path))
6165 `("PYTHONPATH" ":" prefix (,python-path))))
6166 #t)))))
6167 (propagated-inputs
6168 `(("dconf" ,dconf)))
6169 (native-inputs
6170 `(("itstool" ,itstool)
6171 ("intltool" ,intltool)
6172 ("glib" ,glib "bin")
6173 ("gobject-introspection" ,gobject-introspection)
6174 ("desktop-file-utils" ,desktop-file-utils)
6175 ("pkg-config" ,pkg-config)
6176 ("xmllint" ,libxml2)))
6177 (inputs
6178 `(("json-glib" ,json-glib)
6179 ("tdb" ,tdb)
6180 ("gnome-desktop" ,gnome-desktop)
6181 ("python" ,python)
6182 ("python-pygobject" ,python2-pygobject)
6183 ("vala" ,vala)
6184 ("gmime" ,gmime)
6185 ("adwaita-icon-theme" ,adwaita-icon-theme)
6186 ("grilo" ,grilo)
6187 ("grilo-plugins" ,grilo-plugins)
6188 ("gstreamer" ,gstreamer)
6189 ("gst-plugins-base" ,gst-plugins-base)
6190 ("gst-plugins-good" ,gst-plugins-good)
6191 ("totem-pl-parser" ,totem-pl-parser)
6192 ("libgudev" ,libgudev)
6193 ;;("libmtp" ,libmtp) FIXME: Not detected
6194 ("libsecret" ,libsecret)
6195 ("libsoup" ,libsoup)
6196 ("libnotify" ,libnotify)
6197 ("libpeas" ,libpeas)
6198 ("lirc" ,lirc)
6199 ;; TODO: clutter* only used by visualizer plugin, which also requires mx
6200 ;;("clutter" ,clutter)
6201 ;;("clutter-gtk" ,clutter-gtk)
6202 ;;("clutter-gst" ,clutter-gst)
6203 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6204 ("atk" ,atk)
6205 ("pango" ,pango)
6206 ("gtk+" ,gtk+)
6207 ;; TODO:
6208 ;; * libgpod
6209 ;; * mx
6210 ("brasero" ,brasero)))
6211 (home-page "https://wiki.gnome.org/Apps/Rhythmbox")
6212 (synopsis "Music player for GNOME")
6213 (description "Rhythmbox is a music playing application for GNOME. It
6214 supports playlists, song ratings, and any codecs installed through gstreamer.")
6215 (license license:gpl2+)))
6216
6217 (define-public eog
6218 (package
6219 (name "eog")
6220 (version "3.34.1")
6221 (source (origin
6222 (method url-fetch)
6223 (uri (string-append "mirror://gnome/sources/" name "/"
6224 (version-major+minor version) "/"
6225 name "-" version ".tar.xz"))
6226 (sha256
6227 (base32
6228 "0b7ld4azs9xbdjsk9b91ywhdzvxgajhndiwiivxjzbr0hjgp7c7x"))))
6229 (build-system meson-build-system)
6230 (arguments
6231 `(#:configure-flags
6232 ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
6233 (list (string-append "-Dc_link_args=-Wl,-rpath="
6234 (assoc-ref %outputs "out") "/lib/eog"))
6235 #:phases
6236 (modify-phases %standard-phases
6237 (add-after 'unpack 'skip-gtk-update-icon-cache
6238 ;; Don't create 'icon-theme.cache'.
6239 (lambda _
6240 (substitute* "meson_post_install.py"
6241 (("gtk-update-icon-cache") "true"))
6242 #t))
6243 (add-after 'install 'wrap-eog
6244 (lambda* (#:key outputs #:allow-other-keys)
6245 (let ((out (assoc-ref outputs "out"))
6246 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
6247 (wrap-program (string-append out "/bin/eog")
6248 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6249 #t)))))
6250 (propagated-inputs
6251 `(("dconf" ,dconf)))
6252 (native-inputs
6253 `(("intltool" ,intltool)
6254 ("itstool" ,itstool)
6255 ("glib" ,glib "bin")
6256 ("gobject-introspection" ,gobject-introspection)
6257 ("pkg-config" ,pkg-config)
6258 ("xmllint" ,libxml2)))
6259 (inputs
6260 `(("gnome-desktop" ,gnome-desktop)
6261 ("shared-mime-info" ,shared-mime-info)
6262 ("adwaita-icon-theme" ,adwaita-icon-theme)
6263 ("exempi" ,exempi)
6264 ("lcms" ,lcms)
6265 ("libexif" ,libexif)
6266 ("libpeas" ,libpeas)
6267 ("libjpeg" ,libjpeg-turbo)
6268 ("librsvg" ,librsvg-next)
6269 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6270 ("gtk+" ,gtk+)))
6271 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
6272 (synopsis "GNOME image viewer")
6273 (description "Eye of GNOME is the GNOME image viewer. It
6274 supports image conversion, rotation, and slideshows.")
6275 (license license:gpl2+)))
6276
6277 (define-public eog-plugins
6278 ;; Note: EOG looks for its plugins (via libpeas) in ~/.local as well as
6279 ;; $DATA/lib/eog/plugins, where DATA is one of the entries in
6280 ;; $XDG_DATA_DIRS. Thus, for EOG to find these, you have to have
6281 ;; 'XDG_DATA_DIRS' appropriately set.
6282 (package
6283 (name "eog-plugins")
6284 (version "3.26.4")
6285 (source (origin
6286 (method url-fetch)
6287 (uri (string-append "mirror://gnome/sources/eog-plugins/"
6288 (version-major+minor version) "/"
6289 "eog-plugins-" version ".tar.xz"))
6290 (sha256
6291 (base32
6292 "0pd7fqa4ciy5844k5s1c6rlsqkk8pxd8cchxjcjhxlsngm9lynnx"))))
6293 (build-system gnu-build-system)
6294 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome/Plugins")
6295 (synopsis "Extensions for the Eye of GNOME image viewer")
6296 (native-inputs
6297 `(("pkg-config" ,pkg-config)
6298 ("gettext" ,gettext-minimal)))
6299 (inputs
6300 `(("eog" ,eog)
6301 ("glib" ,glib)
6302 ("gtk+" ,gtk+)
6303 ("libpeas" ,libpeas)
6304 ("libexif" ,libexif)
6305 ("libchamplain" ,libchamplain)))
6306 (description
6307 "This package provides plugins for the Eye of GNOME (EOG) image viewer,
6308 notably:
6309
6310 @itemize
6311 @item @dfn{EXIF Display}, which displays camera (EXIF) information;
6312 @item @dfn{Map}, which displays a map of where the picture was taken on the
6313 side panel;
6314 @item @dfn{Slideshow Shuffle}, to shuffle images in slideshow mode.
6315 @end itemize\n")
6316
6317 ;; XXX: eog-postasa-plugin-resources.c (which we don't build) contains a
6318 ;; long suspicious byte stream that goes to a
6319 ;; ".gresource.eog_postasa_plugin" ELF section.
6320 (license license:gpl2+)))
6321
6322 (define-public libgudev
6323 (package
6324 (name "libgudev")
6325 (version "232")
6326 (source (origin
6327 (method url-fetch)
6328 (uri (string-append "mirror://gnome/sources/" name "/"
6329 version "/" name "-" version ".tar.xz"))
6330 (sha256
6331 (base32
6332 "0q3qki451zzgdjazlgshsfzbbm0in40lyx7dyrag7kbkqnwv4k7f"))))
6333 (build-system gnu-build-system)
6334 (arguments
6335 '(#:configure-flags
6336 ;; umockdev depends on libgudev.
6337 (list "--disable-umockdev")))
6338 (native-inputs
6339 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6340 ("gobject-introspection" ,gobject-introspection)
6341 ("pkg-config" ,pkg-config)))
6342 (propagated-inputs
6343 `(("glib" ,glib))) ; required by gudev-1.0.pc
6344 (inputs
6345 `(("udev" ,eudev)))
6346 (home-page "https://wiki.gnome.org/Projects/libgudev")
6347 (synopsis "GObject bindings for libudev")
6348 (description
6349 "This library provides GObject bindings for libudev. It was originally
6350 part of udev-extras, then udev, then systemd. It's now a project on its own.")
6351 (license license:lgpl2.1+)))
6352
6353 (define-public gvfs
6354 (package
6355 (name "gvfs")
6356 (version "1.40.1")
6357 (source (origin
6358 (method url-fetch)
6359 (uri (string-append "mirror://gnome/sources/gvfs/"
6360 (version-major+minor version) "/"
6361 "gvfs-" version ".tar.xz"))
6362 (sha256
6363 (base32
6364 "1cfnzamr4mvgpf6yhm28lh9cafy9z6842s8jpbqnfizfxybg8ylj"))
6365 ;; This patch may be removed when upgrading to version 1.46.x.
6366 (patches
6367 (search-patches "gvfs-add-support-for-libplist-2.2.patch"))))
6368 (build-system meson-build-system)
6369 (arguments
6370 '(#:glib-or-gtk? #t
6371 #:configure-flags
6372 (list "-Dsystemduserunitdir=no"
6373 "-Dtmpfilesdir=no"
6374 ;; Otherwise, the RUNPATH will lack the final path component.
6375 (string-append "-Dc_link_args=-Wl,-rpath="
6376 (assoc-ref %outputs "out") "/lib/gvfs"))))
6377 (native-inputs
6378 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6379 ("gettext" ,gettext-minimal)
6380 ("gtk-doc" ,gtk-doc)
6381 ("pkg-config" ,pkg-config)
6382 ("xsltproc" ,libxslt)))
6383 (inputs
6384 `(("avahi" ,avahi)
6385 ("docbook-xml" ,docbook-xml-4.2)
6386 ("docbook-xsl" ,docbook-xsl)
6387 ("dbus" ,dbus)
6388 ("elogind" ,elogind)
6389 ("fuse" ,fuse)
6390 ("gcr" ,gcr)
6391 ("glib" ,glib)
6392 ("gnome-online-accounts" ,gnome-online-accounts)
6393 ("libarchive" ,libarchive)
6394 ("libbluray" ,libbluray)
6395 ("libcap" ,libcap)
6396 ("libcdio-paranoia" ,libcdio-paranoia)
6397 ("libgcrypt" ,libgcrypt)
6398 ("libgdata" ,libgdata)
6399 ("libgphoto2" ,libgphoto2)
6400 ("libgudev" ,libgudev)
6401 ("libimobiledevice" ,libimobiledevice)
6402 ("libmtp" ,libmtp)
6403 ("libnfs" ,libnfs)
6404 ("libsecret" ,libsecret)
6405 ("libsmbclient" ,samba)
6406 ("libsoup" ,libsoup)
6407 ("libxml2" ,libxml2)
6408 ("openssh" ,openssh)
6409 ("polkit" ,polkit)
6410 ("udisks" ,udisks)))
6411 (home-page "https://wiki.gnome.org/gvfs/")
6412 (synopsis "Userspace virtual file system for GIO")
6413 (description
6414 "GVFS is a userspace virtual file system designed to work with the I/O
6415 abstraction of GIO. It contains a GIO module that seamlessly adds GVFS support
6416 to all applications using the GIO API. It also supports exposing the GVFS
6417 mounts to non-GIO applications using FUSE.
6418
6419 GVFS comes with a set of backends, including trash support, SFTP, SMB, HTTP,
6420 DAV, and others.")
6421 (license license:lgpl2.0+)))
6422
6423 (define-public gusb
6424 (package
6425 (name "gusb")
6426 (version "0.3.0")
6427 (source (origin
6428 (method git-fetch)
6429 (uri (git-reference
6430 (url "https://github.com/hughsie/libgusb")
6431 (commit version)))
6432 (file-name (git-file-name name version))
6433 (sha256
6434 (base32
6435 "002pg0p4qzzk5dkyiynm483ir26zxrn4k71c7f6j85mfsdzbgli7"))))
6436 (build-system meson-build-system)
6437 (native-inputs
6438 `(("gobject-introspection" ,gobject-introspection)
6439 ("pkg-config" ,pkg-config)
6440 ("vala" ,vala)
6441 ("gtk-doc" ,gtk-doc)))
6442 (propagated-inputs
6443 ;; Both of these are required by gusb.pc.
6444 `(("glib" ,glib)
6445 ("libusb" ,libusb)))
6446 (arguments
6447 `(#:tests? #f)) ;libusb fails to initialize. Wonder what that is.
6448 (home-page "https://github.com/hughsie/libgusb")
6449 (synopsis "GLib binding for libusb1")
6450 (description
6451 "GUsb is a GObject wrapper for libusb1 that makes it easy to do
6452 asynchronous control, bulk and interrupt transfers with proper cancellation
6453 and integration into a mainloop. This makes it easy to integrate low level
6454 USB transfers with your high-level application or system daemon.")
6455 (license license:lgpl2.1+)))
6456
6457 (define-public simple-scan
6458 (package
6459 (name "simple-scan")
6460 (version "3.38.2")
6461 (source
6462 (origin
6463 (method url-fetch)
6464 (uri (string-append "mirror://gnome/sources/simple-scan/"
6465 (version-major+minor version) "/"
6466 "simple-scan-" version ".tar.xz"))
6467 (sha256
6468 (base32 "02sdkhxgr6i7iy481h4xavgaqd0a5dlsipzwrm4qd242jrr813d8"))))
6469 (build-system meson-build-system)
6470 ;; TODO: Fix icons in home screen, About dialogue, and scan menu.
6471 (arguments
6472 '(#:glib-or-gtk? #t))
6473 (inputs
6474 `(("gtk" ,gtk+)
6475 ("zlib" ,zlib)
6476 ("cairo" ,cairo)
6477 ("colord" ,colord)
6478 ("gdk-pixbuf" ,gdk-pixbuf)
6479 ("gusb" ,gusb)
6480 ("libsane" ,sane-backends)))
6481 (native-inputs
6482 `(("gettext" ,gettext-minimal)
6483 ("itstool" ,itstool)
6484 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
6485 ("pkg-config" ,pkg-config)
6486 ("vala" ,vala)
6487 ("xmllint" ,libxml2)))
6488 (home-page "https://gitlab.gnome.org/GNOME/simple-scan")
6489 (synopsis "Document and image scanner")
6490 (description
6491 "Document Scanner is an easy-to-use application that lets you connect your
6492 scanner and quickly capture images and documents in an appropriate format. It
6493 supports any scanner for which a suitable SANE driver is available, which is
6494 almost all of them.")
6495 (license license:gpl3+)))
6496
6497 (define-public eolie
6498 (package
6499 (name "eolie")
6500 (version "0.9.100")
6501 (source (origin
6502 (method url-fetch)
6503 (uri (string-append "https://adishatz.org/eolie/eolie-"
6504 version ".tar.xz"))
6505 (sha256
6506 (base32
6507 "1vzhfp8j1z3jvd5ndqfyn7nqrx3zdvx9mv1byjl36nnd9g63ji62"))))
6508 (build-system meson-build-system)
6509 (arguments
6510 `(#:glib-or-gtk? #t
6511 #:phases
6512 (modify-phases %standard-phases
6513 (add-after 'unpack 'skip-gtk-update-icon-cache
6514 ;; Don't create 'icon-theme.cache'.
6515 (lambda _
6516 (substitute* "meson_post_install.py"
6517 (("gtk-update-icon-cache") "true"))
6518 #t))
6519 (add-after 'wrap 'wrap-more
6520 (lambda* (#:key inputs outputs #:allow-other-keys)
6521 (let* ((out (assoc-ref outputs "out"))
6522 ;; These libraries must be on LD_LIBRARY_PATH.
6523 (libs '("gtkspell3" "webkitgtk" "libsoup" "libsecret"
6524 "atk" "gtk+" "gsettings-desktop-schemas"
6525 "gobject-introspection"))
6526 (path (string-join
6527 (map (lambda (lib)
6528 (string-append (assoc-ref inputs lib) "/lib"))
6529 libs)
6530 ":")))
6531 (wrap-program (string-append out "/bin/eolie")
6532 `("LD_LIBRARY_PATH" ":" prefix (,path))
6533 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
6534 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
6535 #t)))))
6536 (native-inputs
6537 `(("intltool" ,intltool)
6538 ("itstool" ,itstool)
6539 ("pkg-config" ,pkg-config)
6540 ("python" ,python)
6541 ("glib:bin" ,glib "bin")))
6542 (inputs
6543 `(("gobject-introspection" ,gobject-introspection)
6544 ("glib-networking" ,glib-networking)
6545 ("cairo" ,cairo)
6546 ("gtk+" ,gtk+)
6547 ("atk" ,atk) ; propagated by gtk+, but we need it in LD_LIBRARY_PATH
6548 ("python" ,python-wrapper)
6549 ("python-dateutil" ,python-dateutil)
6550 ("python-pyfxa" ,python-pyfxa)
6551 ("python-pygobject" ,python-pygobject)
6552 ("python-pycairo" ,python-pycairo)
6553 ("python-pycrypto" ,python-pycrypto)
6554 ("libsecret" ,libsecret)
6555 ("gtkspell3" ,gtkspell3)
6556 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6557 ("webkitgtk" ,webkitgtk)))
6558 (home-page "https://wiki.gnome.org/Apps/Eolie")
6559 (synopsis "Web browser for GNOME")
6560 (description
6561 "Eolie is a new web browser for GNOME. It features Firefox sync support,
6562 a secret password store, an adblocker, and a modern UI.")
6563 (license license:gpl3+)))
6564
6565 (define-public epiphany
6566 (package
6567 (name "epiphany")
6568 (version "3.34.4")
6569 (source (origin
6570 (method url-fetch)
6571 (uri (string-append "mirror://gnome/sources/epiphany/"
6572 (version-major+minor version) "/"
6573 "epiphany-" version ".tar.xz"))
6574 (sha256
6575 (base32
6576 "13ar3s40cds1rplwbzx0fzigf120w0rydiv05r3k6zpc0zy91qb0"))))
6577
6578 (build-system meson-build-system)
6579 (arguments
6580 '(#:glib-or-gtk? #t
6581 #:phases
6582 (modify-phases %standard-phases
6583 (add-after 'unpack 'skip-gtk-update-icon-cache
6584 ;; Don't create 'icon-theme.cache'.
6585 (lambda _
6586 (substitute* "post_install.py"
6587 (("gtk-update-icon-cache") "true"))
6588 #t))
6589 (add-after 'unpack 'disable-failing-tests
6590 (lambda _
6591 (substitute* "tests/meson.build"
6592 ;; embed_shell fails, because webkitgtk apparently no longer supports
6593 ;; overriding the ftp schema
6594 ;; web_app_utils fails due to missing network access
6595 (("(embed_shell|web_app_utils)_test,")
6596 "find_program('sh'), args: ['-c', 'exit 77'],"))
6597 #t))
6598 (add-before 'check 'pre-check
6599 (lambda _
6600 ;; Tests require a running X server.
6601 (system "Xvfb :1 &")
6602 (setenv "DISPLAY" ":1")
6603 #t)))
6604 #:configure-flags
6605 ;; Otherwise, the RUNPATH will lack the final 'epiphany' path component.
6606 (list (string-append "-Dc_link_args=-Wl,-rpath="
6607 (assoc-ref %outputs "out") "/lib/epiphany"))))
6608 (propagated-inputs
6609 `(("dconf" ,dconf)))
6610 (native-inputs
6611 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6612 ("glib:bin" ,glib "bin") ; for glib-mkenums
6613 ("intltool" ,intltool)
6614 ("itstool" ,itstool)
6615 ("pkg-config" ,pkg-config)
6616 ("xmllint" ,libxml2)
6617 ("xorg-server" ,xorg-server-for-tests)))
6618 (inputs
6619 `(("avahi" ,avahi)
6620 ("gcr" ,gcr)
6621 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg) ; for loading SVG files
6622 ("glib-networking" ,glib-networking)
6623 ("gnome-desktop" ,gnome-desktop)
6624 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6625 ("json-glib" ,json-glib)
6626 ("iso-codes" ,iso-codes)
6627 ("libdazzle" ,libdazzle)
6628 ("libnotify" ,libnotify)
6629 ("libsecret" ,libsecret)
6630 ("libxslt" ,libxslt)
6631 ("nettle" ,nettle) ; for hogweed
6632 ("sqlite" ,sqlite)
6633 ("webkitgtk" ,webkitgtk)))
6634 (home-page "https://wiki.gnome.org/Apps/Web")
6635 (synopsis "GNOME web browser")
6636 (description
6637 "Epiphany is a GNOME web browser targeted at non-technical users. Its
6638 principles are simplicity and standards compliance.")
6639 (license license:gpl2+)))
6640
6641 (define-public d-feet
6642 (package
6643 (name "d-feet")
6644 (version "0.3.14")
6645 (source (origin
6646 (method url-fetch)
6647 (uri (string-append "mirror://gnome/sources/" name "/"
6648 (version-major+minor version) "/"
6649 name "-" version ".tar.xz"))
6650 (sha256
6651 (base32
6652 "1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f"))))
6653 (build-system glib-or-gtk-build-system)
6654 (arguments
6655 '(#:out-of-source? #f ; tests need to run in the source directory.
6656 #:phases
6657 (modify-phases %standard-phases
6658 (add-before
6659 'check 'pre-check
6660 (lambda _
6661 ;; The test suite requires a running X server.
6662 (system "Xvfb :1 &")
6663 (setenv "DISPLAY" ":1")
6664 ;; Don't fail on missing '/etc/machine-id'.
6665 (setenv "DBUS_FATAL_WARNINGS" "0")
6666 ;; tests.py and window.py don't meet E402:
6667 ;; E402 module level import not at top of file
6668 (substitute* "src/tests/Makefile"
6669 (("--ignore=E123") "--ignore=E123,E402"))
6670 #t))
6671 (add-after
6672 'install 'wrap-program
6673 (lambda* (#:key outputs #:allow-other-keys)
6674 (let ((prog (string-append (assoc-ref outputs "out")
6675 "/bin/d-feet")))
6676 (wrap-program prog
6677 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
6678 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
6679 #t))))))
6680 (native-inputs
6681 `(("intltool" ,intltool)
6682 ("itstool" ,itstool)
6683 ("pkg-config" ,pkg-config)
6684 ("python-pep8" ,python-pep8)
6685 ("xmllint" ,libxml2)
6686 ("xorg-server" ,xorg-server-for-tests)))
6687 (inputs
6688 `(("gobject-introspection" ,gobject-introspection)
6689 ("gtk+" ,gtk+)
6690 ("python" ,python-wrapper)
6691 ("hicolor-icon-theme" ,hicolor-icon-theme)
6692 ("python-pygobject" ,python-pygobject)))
6693 (home-page "https://wiki.gnome.org/Apps/DFeet")
6694 (synopsis "D-Bus debugger")
6695 (description
6696 "D-Feet is a D-Bus debugger, which can be used to inspect D-Bus interfaces
6697 of running programs and invoke methods on those interfaces.")
6698 (license license:gpl2+)))
6699
6700 (define-public yelp-xsl
6701 (package
6702 (name "yelp-xsl")
6703 (version "3.34.2")
6704 (source
6705 (origin
6706 (method url-fetch)
6707 (uri
6708 (string-append "mirror://gnome/sources/" name "/"
6709 (version-major+minor version) "/"
6710 name "-" version ".tar.xz"))
6711 (sha256
6712 (base32 "1bdpgkzawhqmw52l6zx8czzg1ndfgcf1p44m2bxjdpqkc4afcgqc"))))
6713 (build-system gnu-build-system)
6714 (native-inputs
6715 `(("gettext-minimal" ,gettext-minimal)
6716 ("itstool" ,itstool)
6717 ("xmllint" ,libxml2)))
6718 (synopsis "XSL stylesheets for Yelp")
6719 (description "Yelp-XSL is a collection of programs and data files to help
6720 you build, maintain, and distribute documentation. It provides XSLT stylesheets
6721 that can be built upon for help viewers and publishing systems. These
6722 stylesheets output JavaScript and CSS content, and reference images
6723 provided by yelp-xsl. It also redistributes copies of the jQuery and
6724 jQuery.Syntax JavaScript libraries.")
6725 (home-page "https://wiki.gnome.org/Apps/Yelp")
6726 (license
6727 (list
6728 ;; XSLT
6729 license:gpl2+
6730 ;; Images
6731 license:lgpl2.1+
6732 ;; JavaScript
6733 license:expat))))
6734
6735 (define-public yelp
6736 (package
6737 (name "yelp")
6738 (version "3.32.2")
6739 (source (origin
6740 (method url-fetch)
6741 (uri (string-append "mirror://gnome/sources/" name "/"
6742 (version-major+minor version) "/"
6743 name "-" version ".tar.xz"))
6744 (sha256
6745 (base32
6746 "0yrl96icmmrxvg7sxl519gzg9qb368cmzgrr9ddh181ignkxzx7f"))))
6747 (build-system glib-or-gtk-build-system)
6748 (native-inputs
6749 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6750 ("intltool" ,intltool)
6751 ("itstool" ,itstool)
6752 ("pkg-config" ,pkg-config)))
6753 (propagated-inputs
6754 `(("dconf" ,dconf)))
6755 (inputs
6756 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6757 ("libxslt" ,libxslt)
6758 ("sqlite" ,sqlite)
6759 ("webkitgtk" ,webkitgtk)
6760 ("yelp-xsl" ,yelp-xsl)))
6761 (home-page "https://wiki.gnome.org/Apps/Yelp")
6762 (synopsis "GNOME help browser")
6763 (description
6764 "Yelp is the help viewer in Gnome. It natively views Mallard, DocBook,
6765 man, info, and HTML documents. It can locate documents according to the
6766 freedesktop.org help system specification.")
6767 (license license:gpl2+)))
6768
6769 (define-public yelp-tools
6770 (package
6771 (name "yelp-tools")
6772 (version "3.32.2")
6773 (source
6774 (origin
6775 (method url-fetch)
6776 (uri
6777 (string-append "mirror://gnome/sources/" name "/"
6778 (version-major+minor version) "/"
6779 name "-" version ".tar.xz"))
6780 (sha256
6781 (base32 "1yg8f5g5wadhmy4yfd9yjhvd8vll4gq4l86ibp0b42qbxnsmcf0q"))))
6782 (build-system gnu-build-system)
6783 (native-inputs
6784 `(("pkg-config" ,pkg-config)))
6785 (inputs
6786 `(("yelp-xsl" ,yelp-xsl)))
6787 (propagated-inputs
6788 ;; Needed by `yelp-build', `yelp-check' or 'yelp.m4'.
6789 `(("itstool" ,itstool)
6790 ("xmllint" ,libxml2)
6791 ("xsltproc" ,libxslt)))
6792 (synopsis "Yelp documentation tools")
6793 (description
6794 "Yelp-tools is a collection of scripts and build utilities to help create,
6795 manage, and publish documentation for Yelp and the web. Most of the heavy
6796 lifting is done by packages like yelp-xsl and itstool. This package just
6797 wraps things up in a developer-friendly way.")
6798 (home-page "https://wiki.gnome.org/Apps/Yelp/Tools")
6799 (license license:gpl2+)))
6800
6801 (define-public libgee
6802 (package
6803 (name "libgee")
6804 (version "0.20.3")
6805 (source (origin
6806 (method url-fetch)
6807 (uri (string-append "mirror://gnome/sources/libgee/"
6808 (version-major+minor version) "/"
6809 "libgee-" version ".tar.xz"))
6810 (sha256
6811 (base32
6812 "1pm525wm11dhwz24m8bpcln9547lmrigl6cxf3qsbg4cr3pyvdfh"))))
6813 (build-system gnu-build-system)
6814 (arguments
6815 `(#:phases
6816 (modify-phases %standard-phases
6817 (add-after 'unpack 'fix-introspection-install-dir
6818 (lambda* (#:key outputs #:allow-other-keys)
6819 (let ((out (assoc-ref outputs "out")))
6820 (substitute* "gee/Makefile.in"
6821 (("@INTROSPECTION_GIRDIR@")
6822 (string-append out "/share/gir-1.0/"))
6823 (("@INTROSPECTION_TYPELIBDIR@")
6824 (string-append out "/lib/girepository-1.0/")))))))))
6825 (native-inputs
6826 `(("glib" ,glib "bin")
6827 ("pkg-config" ,pkg-config)))
6828 (inputs
6829 `(("glib" ,glib)
6830 ("gobject-introspection" ,gobject-introspection)))
6831 (home-page "https://wiki.gnome.org/Projects/Libgee")
6832 (synopsis "GObject collection library")
6833 (description
6834 "Libgee is a utility library providing GObject-based interfaces and
6835 classes for commonly used data structures.")
6836 (license license:lgpl2.1+)))
6837
6838 (define-public gexiv2
6839 (package
6840 (name "gexiv2")
6841 (version "0.12.1")
6842 (source (origin
6843 (method url-fetch)
6844 (uri (string-append "mirror://gnome/sources/" name "/"
6845 (version-major+minor version) "/"
6846 name "-" version ".tar.xz"))
6847 (sha256
6848 (base32
6849 "0xxxq8xdkgkn146my307jgws4qgxx477h0ybg1mqza1ycmczvsla"))))
6850 (build-system meson-build-system)
6851 (native-inputs
6852 `(("gcr" ,gcr)
6853 ("glib" ,glib "bin")
6854 ("pkg-config" ,pkg-config)
6855 ("vala" ,vala)))
6856 (propagated-inputs
6857 ;; Listed in "Requires" section of gexiv2.pc
6858 `(("exiv2" ,exiv2)))
6859 (inputs
6860 `(("glib" ,glib)
6861 ("gobject-introspection" ,gobject-introspection)))
6862 (home-page "https://wiki.gnome.org/Projects/gexiv2")
6863 (synopsis "GObject wrapper around the Exiv2 photo metadata library")
6864 (description
6865 "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library. It
6866 allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
6867 metadata in photo and video files of various formats.")
6868 (license license:gpl2+)))
6869
6870 (define-public shotwell
6871 (package
6872 (name "shotwell")
6873 (version "0.30.11")
6874 (source (origin
6875 (method url-fetch)
6876 (uri (string-append "mirror://gnome/sources/shotwell/"
6877 (version-major+minor version) "/"
6878 "shotwell-" version ".tar.xz"))
6879 (sha256
6880 (base32
6881 "12d26y40kjlv5x8f5g04wff33vh7mdjb8c41ydqbrwdip0jwy2n2"))))
6882 (build-system meson-build-system)
6883 (arguments
6884 '(#:glib-or-gtk? #t
6885 #:phases
6886 (modify-phases %standard-phases
6887 (add-after 'unpack 'skip-gtk-update-icon-cache
6888 (lambda _
6889 (substitute* "build-aux/meson/postinstall.py"
6890 (("gtk-update-icon-cache") (which "true"))
6891 (("update-desktop-database") (which "true")))
6892 #t)))))
6893 (propagated-inputs
6894 `(("dconf" ,dconf)))
6895 (native-inputs
6896 `(("gettext" ,gettext-minimal)
6897 ("glib:bin" ,glib "bin")
6898 ("itstool" ,itstool)
6899 ("pkg-config" ,pkg-config)
6900 ("vala" ,vala)))
6901 (inputs
6902 `(("gcr" ,gcr)
6903 ("gexiv2" ,gexiv2)
6904 ("gst-plugins-base" ,gst-plugins-base)
6905 ("gstreamer" ,gstreamer)
6906 ("json-glib" ,json-glib)
6907 ("libgdata" ,libgdata)
6908 ("libgee" ,libgee)
6909 ("libgphoto2" ,libgphoto2)
6910 ("libgudev" ,libgudev)
6911 ("libraw" ,libraw)
6912 ("libsoup" ,libsoup)
6913 ("libxml2" ,libxml2)
6914 ("sqlite" ,sqlite)
6915 ("webkitgtk" ,webkitgtk)))
6916 (home-page "https://wiki.gnome.org/Apps/Shotwell")
6917 (synopsis "Photo manager for GNOME 3")
6918 (description
6919 "Shotwell is a digital photo manager designed for the GNOME desktop
6920 environment. It allows you to import photos from disk or camera, organize
6921 them by keywords and events, view them in full-window or fullscreen mode, and
6922 share them with others via social networking and more.")
6923 (license license:lgpl2.1+)))
6924
6925 (define-public file-roller
6926 (package
6927 (name "file-roller")
6928 (version "3.38.0")
6929 (source (origin
6930 (method url-fetch)
6931 (uri (string-append "mirror://gnome/sources/file-roller/"
6932 (version-major+minor version) "/"
6933 "file-roller-" version ".tar.xz"))
6934 (sha256
6935 (base32
6936 "06ikvjjcgb8nxabkn2rywy76a1c7s6w8dszaxvaxldbxarp1qgbj"))))
6937 (build-system meson-build-system)
6938 (native-inputs
6939 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6940 ("intltool" ,intltool)
6941 ("itstool" ,itstool)
6942 ("pkg-config" ,pkg-config)
6943 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
6944 ("glib:bin" ,glib "bin")))
6945 ;; TODO: Add libnautilus.
6946 (inputs
6947 `(("gtk+" ,gtk+)
6948 ("gdk-pixbuf" ,gdk-pixbuf)
6949 ("json-glib" ,json-glib)
6950 ("libarchive" ,libarchive)
6951 ("libnotify" ,libnotify)
6952 ("nettle" ,nettle)
6953 ("libxml2" ,libxml2)))
6954 (synopsis "Graphical archive manager for GNOME")
6955 (description "File Roller is an archive manager for the GNOME desktop
6956 environment that allows users to view, unpack, and create compressed archives
6957 such as gzip tarballs.")
6958 (home-page "http://fileroller.sourceforge.net/")
6959 (license license:gpl2+)))
6960
6961 (define-public gnome-session
6962 (package
6963 (name "gnome-session")
6964 (version "3.34.2")
6965 (source (origin
6966 (method url-fetch)
6967 (uri (string-append "mirror://gnome/sources/" name "/"
6968 (version-major+minor version) "/"
6969 name "-" version ".tar.xz"))
6970 (sha256
6971 (base32
6972 "1qgqp97f8k2zi2ydvhds14zsjzfj7cv521r6wx5sw0qacn0p7dwb"))))
6973 (arguments
6974 '(#:glib-or-gtk? #t
6975 #:phases
6976 (modify-phases %standard-phases
6977 (add-before 'configure 'pre-configure
6978 (lambda* (#:key outputs #:allow-other-keys)
6979 ;; Use elogind instead of systemd.
6980 (substitute* "meson.build"
6981 (("libsystemd-login") "libelogind")
6982 (("and libsystemd_daemon_dep.found.*") ","))
6983 (substitute* "gnome-session/gsm-systemd.c"
6984 (("#include <systemd/sd-login.h>")
6985 "#include <elogind/sd-login.h>"))
6986 ;; Remove uses of the systemd daemon.
6987 (substitute* "gnome-session/gsm-autostart-app.c"
6988 (("#ifdef HAVE_SYSTEMD") "#if 0"))
6989 #t))
6990 (add-after 'install 'wrap-gnome-session
6991 (lambda* (#:key inputs outputs #:allow-other-keys)
6992 ;; Make sure 'gnome-session' finds the 'gsettings' program.
6993 (let ((glib (assoc-ref inputs "glib:bin"))
6994 (out (assoc-ref outputs "out")))
6995 (wrap-program (string-append out "/bin/gnome-session")
6996 `("PATH" ":" prefix (,(string-append glib "/bin"))))
6997 #t))))
6998
6999 #:configure-flags
7000 '("-Ddocbook=false" ; FIXME: disabled because of docbook validation error
7001 "-Dman=false" ; FIXME: disabled because of docbook validation error
7002 "-Dsystemd_journal=false")))
7003 (build-system meson-build-system)
7004 (native-inputs
7005 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7006 ("pkg-config" ,pkg-config)
7007 ("intltool" ,intltool)
7008 ("xsltproc" ,libxslt)
7009 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
7010 ("docbook-xsl" ,docbook-xsl)
7011 ("docbook-xml" ,docbook-xml)
7012 ("xmlto" ,xmlto)))
7013 (inputs
7014 `(("elogind" ,elogind)
7015 ("gnome-desktop" ,gnome-desktop)
7016 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7017 ("gtk+" ,gtk+)
7018 ("json-glib" ,json-glib)
7019 ("libsm" ,libsm)
7020 ("libxcomposite" ,libxcomposite)
7021 ("libxtst" ,libxtst)
7022 ("mesa" ,mesa)
7023 ("upower" ,upower)
7024 ("xtrans" ,xtrans)))
7025 (synopsis "Session manager for GNOME")
7026 (description
7027 "This package contains the GNOME session manager, as well as a
7028 configuration program to choose applications starting on login.")
7029 (home-page "https://wiki.gnome.org/Projects/SessionManagement")
7030 (license license:gpl2+)))
7031
7032 (define-public gjs
7033 (package
7034 (name "gjs")
7035 (version "1.58.3")
7036 (source (origin
7037 (method url-fetch)
7038 (uri (string-append "mirror://gnome/sources/" name "/"
7039 (version-major+minor version) "/"
7040 name "-" version ".tar.xz"))
7041 (sha256
7042 (base32
7043 "1bkksx362007zs8c31ydygb29spwa5g5kch1ad2grc2sp53wv7ya"))))
7044 (build-system gnu-build-system)
7045 (arguments
7046 '(#:phases
7047 (modify-phases %standard-phases
7048 (add-before
7049 'check 'pre-check
7050 (lambda _
7051 ;; The test suite requires a running X server.
7052 (system "Xvfb :1 &")
7053 (setenv "DISPLAY" ":1")
7054
7055 ;; For the missing /etc/machine-id.
7056 (setenv "DBUS_FATAL_WARNINGS" "0")
7057
7058 ;; Our mozjs-38 package does not compile the required Intl API
7059 ;; support for these failing tests.
7060 (substitute* "installed-tests/js/testLocale.js"
7061 ((".*toBeDefined.*") "")
7062 ((".*expect\\(datestr\\).*") ""))
7063 (substitute* "installed-tests/scripts/testCommandLine.sh"
7064 (("Valentín") "")
7065 (("☭") ""))
7066 #t)))))
7067 (native-inputs
7068 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
7069 ("pkg-config" ,pkg-config)
7070 ("xmllint" ,libxml2)
7071 ;; For testing
7072 ("dbus-launch" ,dbus)
7073 ("dconf" ,dconf) ; required to properly store settings
7074 ("uuidgen" ,util-linux)
7075 ("xvfb" ,xorg-server-for-tests)))
7076 (propagated-inputs
7077 ;; These are all in the Requires.private field of gjs-1.0.pc.
7078 `(("cairo" ,cairo)
7079 ("gobject-introspection" ,gobject-introspection)
7080 ("mozjs" ,mozjs-60)))
7081 (inputs
7082 `(("gtk+" ,gtk+)
7083 ("readline" ,readline)))
7084 (synopsis "Javascript bindings for GNOME")
7085 (home-page "https://live.gnome.org/Gjs")
7086 (description
7087 "Gjs is a javascript binding for GNOME. It's mainly based on spidermonkey
7088 javascript engine and the GObject introspection framework.")
7089 (license license:gpl2+)))
7090
7091 (define-public gedit
7092 (package
7093 (name "gedit")
7094 (version "3.34.1")
7095 (source (origin
7096 (method url-fetch)
7097 (uri (string-append "mirror://gnome/sources/" name "/"
7098 (version-major+minor version) "/"
7099 name "-" version ".tar.xz"))
7100 (sha256
7101 (base32
7102 "1inm50sdfw63by1lf4f1swb59mpyxlly0g5rdg99j5l3357fzygb"))))
7103 (build-system meson-build-system)
7104 (arguments
7105 `(#:glib-or-gtk? #t
7106 #:configure-flags
7107 ;; Otherwise, the RUNPATH will lack the final path component.
7108 (list (string-append "-Dc_link_args=-Wl,-rpath="
7109 (assoc-ref %outputs "out") "/lib/gedit"))
7110
7111 ;; XXX: Generated .h files are sometimes used before being built.
7112 #:parallel-build? #f
7113
7114 #:phases
7115 (modify-phases %standard-phases
7116 (add-after 'unpack 'skip-gtk-update-icon-cache
7117 ;; Don't create 'icon-theme.cache'.
7118 (lambda _
7119 (substitute* "build-aux/meson/post_install.py"
7120 (("gtk-update-icon-cache") (which "true")))
7121 #t))
7122 (add-after 'unpack 'patch-libgd-fetch
7123 (lambda* (#:key inputs #:allow-other-keys)
7124 (let ((libgd (assoc-ref inputs "libgd")))
7125 ;; Calling git is unnecessary because libgd is fetched as a
7126 ;; native input to this package.
7127 (substitute* "meson.build"
7128 ((".*git.*") ""))
7129 (copy-recursively libgd "subprojects/libgd")
7130 #t)))
7131 (add-after 'install 'wrap-gedit
7132 (lambda* (#:key inputs outputs #:allow-other-keys)
7133 (let ((out (assoc-ref outputs "out"))
7134 (gtksourceview (assoc-ref inputs "gtksourceview"))
7135 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
7136 (python-path (getenv "PYTHONPATH")))
7137 (wrap-program (string-append out "/bin/gedit")
7138 ;; For plugins.
7139 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
7140 `("PYTHONPATH" ":" prefix (,python-path))
7141 ;; For language-specs.
7142 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
7143 "/share")))))
7144 #t)))))
7145 (propagated-inputs
7146 `(("dconf" ,dconf)))
7147 (native-inputs
7148 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7149 ("intltool" ,intltool)
7150 ("itstool" ,itstool)
7151 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
7152 ("gobject-introspection" ,gobject-introspection)
7153 ("libgd"
7154 ,(origin
7155 (method git-fetch)
7156 (uri (git-reference
7157 (url "https://gitlab.gnome.org/GNOME/libgd")
7158 (commit "c7c7ff4e05d3fe82854219091cf116cce6b19de0")))
7159 (file-name (git-file-name "libgd" version))
7160 (sha256
7161 (base32 "16yld0ap7qj1n96h4f2sqkjmibg7xx5xwkqxdfzam2nmyfdlrrrs"))))
7162 ("pkg-config" ,pkg-config)))
7163 (inputs
7164 `(("glib" ,glib)
7165 ("gspell" ,gspell)
7166 ("gtk+" ,gtk+)
7167 ("gtksourceview" ,gtksourceview)
7168 ("libpeas" ,libpeas)
7169 ("libxml2" ,libxml2)
7170 ("iso-codes" ,iso-codes)
7171 ("python-pygobject" ,python-pygobject)
7172 ("python" ,python)
7173 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7174 ("libx11" ,libx11)
7175 ("vala" ,vala)
7176 ("adwaita-icon-theme" ,adwaita-icon-theme)
7177 ("libsoup" ,libsoup)
7178 ("gnome-desktop" ,gnome-desktop)))
7179 (home-page "https://wiki.gnome.org/Apps/Gedit")
7180 (synopsis "GNOME text editor")
7181 (description "While aiming at simplicity and ease of use, gedit is a
7182 powerful general purpose text editor.")
7183 (license license:gpl2+)))
7184
7185 (define-public zenity
7186 (package
7187 (name "zenity")
7188 (version "3.32.0")
7189 (source (origin
7190 (method url-fetch)
7191 (uri (string-append "mirror://gnome/sources/zenity/"
7192 (version-major+minor version) "/"
7193 "zenity-" version ".tar.xz"))
7194 (sha256
7195 (base32
7196 "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7"))))
7197 (build-system gnu-build-system)
7198 (native-inputs
7199 `(("gettext" ,gettext-minimal)
7200 ("itstool" ,itstool)
7201 ("pkg-config" ,pkg-config)))
7202 (inputs
7203 `(("libnotify" ,libnotify)
7204 ("webkitgtk" ,webkitgtk)))
7205 (synopsis "Display graphical dialog boxes from shell scripts")
7206 (home-page "https://www.gnome.org")
7207 (description
7208 "Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you
7209 to display dialog boxes from the commandline and shell scripts.")
7210 (license license:lgpl2.0+)))
7211
7212 (define-public mutter
7213 (package
7214 (name "mutter")
7215 (version "3.34.2")
7216 (source (origin
7217 (method url-fetch)
7218 (uri (string-append "mirror://gnome/sources/" name "/"
7219 (version-major+minor version) "/"
7220 name "-" version ".tar.xz"))
7221 (sha256
7222 (base32
7223 "0b8bz5kvs7rlwvqsg87cf6jhrrj95vgd1l235mjx8rip35ipfvrd"))))
7224 ;; NOTE: Since version 3.21.x, mutter now bundles and exports forked
7225 ;; versions of cogl and clutter. As a result, many of the inputs,
7226 ;; propagated-inputs, and configure flags used in cogl and clutter are
7227 ;; needed here as well.
7228 (build-system meson-build-system)
7229 (arguments
7230 '(;; XXX: All mutter tests fail with the following error:
7231 ;; Settings schema 'org.gnome.mutter' is not installed
7232 #:tests? #f
7233 #:glib-or-gtk? #t
7234 #:configure-flags
7235 ;; TODO: Enable profiler when Sysprof is packaged.
7236 (list "-Dprofiler=false"
7237 ;; Otherwise, the RUNPATH will lack the final path component.
7238 (string-append "-Dc_link_args=-Wl,-rpath="
7239 (assoc-ref %outputs "out") "/lib:"
7240 (assoc-ref %outputs "out") "/lib/mutter-5")
7241
7242 ;; The following flags are needed for the bundled clutter
7243 (string-append "-Dxwayland_path="
7244 (assoc-ref %build-inputs "xorg-server-xwayland")
7245 "/bin/Xwayland")
7246
7247 ;; the remaining flags are needed for the bundled cogl
7248 (string-append "-Dopengl_libname="
7249 (assoc-ref %build-inputs "mesa")
7250 "/lib/libGL.so"))
7251 #:phases (modify-phases %standard-phases
7252 (add-after 'unpack 'fix-build-with-mesa-20
7253 (lambda _
7254 ;; Mimic upstream commit a444a4c5f58ea516ad for
7255 ;; compatibility with Mesa 20. Remove for 3.36.
7256 (substitute* '("src/backends/meta-egl-ext.h"
7257 "src/backends/meta-egl.c"
7258 "src/backends/meta-egl.h")
7259 (("#include <EGL/eglext\\.h>" all)
7260 (string-append all "\n#include <EGL/eglmesaext.h>")))
7261 (substitute* "cogl/cogl/meson.build"
7262 (("#include <EGL/eglext\\.h>" all)
7263 (string-append all "\\n#include <EGL/eglmesaext.h>")))
7264 #t)))))
7265 (native-inputs
7266 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7267 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7268 ("gobject-introspection" ,gobject-introspection)
7269 ("intltool" ,intltool)
7270 ("pkg-config" ,pkg-config)
7271 ("xorg-server" ,xorg-server-for-tests)
7272 ;; For git build
7273 ("autoconf" ,autoconf)
7274 ("automake" ,automake)
7275 ("libtool" ,libtool)))
7276 (propagated-inputs
7277 `(;; libmutter.pc refers to these:
7278 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7279 ("gtk+" ,gtk+)
7280 ;; mutter-clutter-1.0.pc and mutter-cogl-1.0.pc refer to these:
7281 ("atk" ,atk)
7282 ("cairo" ,cairo)
7283 ("gdk-pixbuf" ,gdk-pixbuf)
7284 ("glib" ,glib)
7285 ("json-glib" ,json-glib)
7286 ("libinput" ,libinput)
7287 ("libx11" ,libx11)
7288 ("libxcomposite" ,libxcomposite)
7289 ("libxdamage" ,libxdamage)
7290 ("libxext" ,libxext)
7291 ("libxfixes" ,libxfixes)
7292 ("libxkbcommon" ,libxkbcommon)
7293 ("libxrandr" ,libxrandr)
7294 ("mesa" ,mesa)
7295 ("pango" ,pango)
7296 ("udev" ,eudev)
7297 ("xinput" ,xinput)))
7298 (inputs
7299 `(("elogind" ,elogind)
7300 ("gnome-desktop" ,gnome-desktop)
7301 ("gnome-settings-daemon" ,gnome-settings-daemon)
7302 ("libcanberra-gtk" ,libcanberra)
7303 ("libgudev" ,libgudev)
7304 ("libice" ,libice)
7305 ("libsm" ,libsm)
7306 ("libwacom" ,libwacom)
7307 ("libxkbfile" ,libxkbfile)
7308 ("libxrandr" ,libxrandr)
7309 ("libxtst" ,libxtst)
7310 ("pipewire" ,pipewire)
7311 ("startup-notification" ,startup-notification)
7312 ("upower-glib" ,upower)
7313 ("xkeyboard-config" ,xkeyboard-config)
7314 ("xorg-server-xwayland" ,xorg-server-xwayland)
7315 ("zenity" ,zenity)))
7316 (synopsis "Window and compositing manager")
7317 (home-page "https://www.gnome.org")
7318 (description
7319 "Mutter is a window and compositing manager that displays and manages your
7320 desktop via OpenGL. Mutter combines a sophisticated display engine using the
7321 Clutter toolkit with solid window-management logic inherited from the Metacity
7322 window manager.")
7323 (license license:gpl2+)))
7324
7325 (define-public gnome-online-accounts
7326 (package
7327 (name "gnome-online-accounts")
7328 (version "3.36.0")
7329 (source (origin
7330 (method url-fetch)
7331 (uri (string-append "mirror://gnome/sources/" name "/"
7332 (version-major+minor version) "/"
7333 name "-" version ".tar.xz"))
7334 (sha256
7335 (base32
7336 "0bigfi225g1prnxpb9lcc1i7mdcrkplwb05vilc43jik12cn53qw"))))
7337 (outputs '("out" "lib"))
7338 (build-system glib-or-gtk-build-system)
7339 (arguments
7340 `(#:configure-flags
7341 (list (string-append "--libdir=" (assoc-ref %outputs "out") "/lib"))
7342 #:phases
7343 (modify-phases %standard-phases
7344 (add-before 'configure 'patch-libgoa-output
7345 (lambda* (#:key outputs #:allow-other-keys)
7346 (let ((lib (assoc-ref outputs "lib")))
7347 (substitute* '("src/goa/Makefile.in" "src/goa/goa-1.0.pc.in")
7348 (("@prefix@") lib)
7349 (("@exec_prefix@") lib)
7350 (("@libdir@") (string-append lib "/lib"))
7351 (("@includedir@") (string-append lib "/include"))
7352 (("@datadir@") (string-append lib "/share")))
7353 ;; Make sure gobject-introspection knows about the output
7354 ;; too (see <https://bugs.gnu.org/36535>).
7355 (setenv "outputs" "out lib")
7356 #t))))))
7357 (native-inputs
7358 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7359 ("gobject-introspection" ,gobject-introspection)
7360 ("intltool" ,intltool)
7361 ("pkg-config" ,pkg-config)
7362 ("vala" ,vala)
7363 ("xsltproc" ,libxslt)))
7364 (propagated-inputs
7365 `(("glib" ,glib) ; required by goa-1.0.pc
7366 ("gtk+" ,gtk+))) ; required by goa-backend-1.0.pc
7367 (inputs
7368 `(("docbook-xsl" ,docbook-xsl)
7369 ("json-glib" ,json-glib)
7370 ("libsecret" ,libsecret)
7371 ("rest" ,rest)
7372 ("webkitgtk" ,webkitgtk)))
7373 (synopsis "Single sign-on framework for GNOME")
7374 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineAccounts")
7375 (description
7376 "GNOME Online Accounts provides interfaces so that applications and
7377 libraries in GNOME can access the user's online accounts. It has providers for
7378 Google, ownCloud, Facebook, Flickr, Windows Live, Pocket, Foursquare, Microsoft
7379 Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
7380 (license license:lgpl2.0+)))
7381
7382 (define-public evolution-data-server
7383 (package
7384 (name "evolution-data-server")
7385 (version "3.34.2")
7386 (source (origin
7387 (method url-fetch)
7388 (uri (string-append "mirror://gnome/sources/" name "/"
7389 (version-major+minor version) "/"
7390 name "-" version ".tar.xz"))
7391 (patches (search-patches "evolution-data-server-locales.patch"
7392 "evolution-data-server-libical-compat.patch"))
7393 (sha256
7394 (base32
7395 "16z85y6hhazcrp5ngw47w4x9r0j8zrj7awv5im58hhp0xs19zf1y"))))
7396 (build-system cmake-build-system)
7397 (arguments
7398 '(#:configure-flags
7399 (let* ((lib (string-append (assoc-ref %outputs "out") "/lib"))
7400 (runpaths (map (lambda (s)
7401 (string-append lib "/evolution-data-server/" s))
7402 '("addressbook-backends" "calendar-backends"
7403 "camel-providers" "credential-modules"
7404 "registry-modules"))))
7405 (list "-DENABLE_UOA=OFF" ;disable Ubuntu Online Accounts support
7406 "-DENABLE_GOOGLE=OFF" ;disable Google Contacts support
7407 "-DENABLE_GOOGLE_AUTH=OFF" ;disable Google authentication
7408 "-DENABLE_VALA_BINDINGS=ON"
7409 (string-append "-DCMAKE_INSTALL_RPATH=" lib ";"
7410 (string-append lib "/evolution-data-server;")
7411 (string-join runpaths ";"))
7412 "-DENABLE_INTROSPECTION=ON")) ;required for Vala bindings
7413 #:phases
7414 (modify-phases %standard-phases
7415 (add-after 'unpack 'disable-failing-tests
7416 (lambda _
7417 ;; tests/book-migration/test-migration.c:160:test_fetch_contacts:
7418 ;; assertion failed (g_slist_length (contacts) == 20): (0 == 20)
7419 (delete-file-recursively "tests/book-migration")
7420 (substitute* "tests/CMakeLists.txt"
7421 (("add_subdirectory\\(book-migration\\)") ""))
7422 #t))
7423 (add-after 'unpack 'patch-paths
7424 (lambda _
7425 (substitute* '("tests/test-server-utils/e-test-server-utils.c"
7426 "tests/libedata-book/data-test-utils.c"
7427 "tests/libedata-book/test-book-cache-utils.c"
7428 "tests/libedata-cal/test-cal-cache-utils.c")
7429 (("/bin/rm") (which "rm")))
7430 #t))
7431 (add-before 'configure 'dont-override-rpath
7432 (lambda _
7433 (substitute* "CMakeLists.txt"
7434 ;; CMakeLists.txt hard-codes runpath to just the libdir.
7435 ;; Remove it so the configure flag is respected.
7436 (("SET\\(CMAKE_INSTALL_RPATH .*") ""))
7437 #t)))))
7438 (native-inputs
7439 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
7440 ("gobject-introspection" ,gobject-introspection)
7441 ("gperf" ,gperf)
7442 ("intltool" ,intltool)
7443 ("pkg-config" ,pkg-config)
7444 ("vala" ,vala)
7445 ("python" ,python-wrapper)))
7446 (propagated-inputs
7447 ;; These are all in the Requires field of .pc files.
7448 `(("gtk+" ,gtk+)
7449 ("libical" ,libical)
7450 ("libsecret" ,libsecret)
7451 ("libsoup" ,libsoup)
7452 ("nss" ,nss)
7453 ("sqlite" ,sqlite)))
7454 (inputs
7455 `(("bdb" ,bdb)
7456 ("gcr" ,gcr)
7457 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
7458 ("json-glib" ,json-glib)
7459 ("libcanberra" ,libcanberra)
7460 ("libgweather" ,libgweather)
7461 ("mit-krb5" ,mit-krb5)
7462 ("openldap" ,openldap)
7463 ("webkitgtk" ,webkitgtk)))
7464 (synopsis "Store address books and calendars")
7465 (home-page "https://wiki.gnome.org/Apps/Evolution")
7466 (description
7467 "This package provides a unified backend for programs that work with
7468 contacts, tasks, and calendar information. It was originally developed for
7469 Evolution (hence the name), but is now used by other packages as well.")
7470 (license license:lgpl2.0)))
7471
7472 (define-public caribou
7473 (package
7474 (name "caribou")
7475 (version "0.4.21")
7476 (source (origin
7477 (method url-fetch)
7478 (uri (string-append "mirror://gnome/sources/" name "/"
7479 (version-major+minor version) "/"
7480 name "-" version ".tar.xz"))
7481 (sha256
7482 (base32
7483 "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
7484 (build-system glib-or-gtk-build-system)
7485 (arguments
7486 '(#:phases
7487 (modify-phases %standard-phases
7488 (add-before
7489 'build 'pre-build
7490 (lambda* (#:key outputs #:allow-other-keys)
7491 (let ((out (assoc-ref outputs "out")))
7492 ;; Use absolute shared library path in Caribou-1.0.typelib.
7493 (substitute* "libcaribou/Makefile"
7494 (("--shared-library=libcaribou.so")
7495 (string-append "--shared-library="
7496 out "/lib/libcaribou.so")))
7497 #t)))
7498 (add-after 'install 'wrap-programs
7499 (lambda* (#:key outputs #:allow-other-keys)
7500 (let* ((out (assoc-ref outputs "out"))
7501 (python-path (getenv "PYTHONPATH"))
7502 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7503 (for-each
7504 (lambda (prog)
7505 (wrap-program prog
7506 `("PYTHONPATH" ":" prefix (,python-path))
7507 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7508 (list (string-append out "/bin/caribou-preferences")
7509 (string-append out "/libexec/antler-keyboard"))))
7510 #t)))))
7511 (native-inputs
7512 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7513 ("gobject-introspection" ,gobject-introspection)
7514 ("intltool" ,intltool)
7515 ("pkg-config" ,pkg-config)
7516 ("python" ,python)
7517 ("vala" ,vala)
7518 ("xsltproc" ,libxslt)))
7519 (propagated-inputs
7520 ;; caribou-1.0.pc refers to all these.
7521 `(("libgee" ,libgee)
7522 ("libxklavier" ,libxklavier)
7523 ("libxtst" ,libxtst)
7524 ("gtk+" ,gtk+)))
7525 (inputs
7526 `(("clutter" ,clutter)
7527 ("dconf" ,dconf)
7528 ("gtk+-2" ,gtk+-2)
7529 ("python-pygobject" ,python-pygobject)))
7530 (synopsis "Text entry and UI navigation application")
7531 (home-page "https://wiki.gnome.org/Projects/Caribou")
7532 (description
7533 "Caribou is an input assistive technology intended for switch and pointer
7534 users.")
7535 (license license:lgpl2.1)))
7536
7537 (define-public network-manager
7538 (package
7539 (name "network-manager")
7540 (version "1.24.0")
7541 (source (origin
7542 (method url-fetch)
7543 (uri (string-append "mirror://gnome/sources/NetworkManager/"
7544 (version-major+minor version) "/"
7545 "NetworkManager-" version ".tar.xz"))
7546 (patches (search-patches "network-manager-plugin-path.patch"))
7547 (sha256
7548 (base32
7549 "06044fl60bjlj7c6rqqfbm5795h61h6yzp7ch392hzcnm46wwhn3"))
7550 (modules '((guix build utils)))
7551 (snippet
7552 '(begin
7553 (substitute* "src/devices/wwan/nm-modem-manager.c"
7554 (("systemd") "elogind"))
7555 #t))))
7556 (build-system meson-build-system)
7557 (outputs '("out"
7558 "doc")) ; 8 MiB of gtk-doc HTML
7559 (arguments
7560 `(#:configure-flags
7561 (let ((out (assoc-ref %outputs "out"))
7562 (dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
7563 "/sbin/dhclient")))
7564 (list
7565 ;; Otherwise, the RUNPATH will lack the final 'NetworkManager' path
7566 ;; component.
7567 (string-append "-Dc_link_args=-Wl,-rpath="
7568 out "/lib:"
7569 out "/lib/NetworkManager/" ,version)
7570 "-Dsystemd_journal=false"
7571 "-Dsession_tracking=elogind"
7572 "-Dsuspend_resume=elogind"
7573 "-Dsystemdsystemunitdir=no"
7574 "-Dsession_tracking_consolekit=false"
7575 "-Ddhcpcd=no"
7576 "-Ddhcpcanon=no"
7577 "-Dcrypto=gnutls"
7578 "-Diwd=true"
7579 "-Dlibaudit=yes"
7580 "-Dqt=false"
7581 "-Ddocs=true"
7582 "--sysconfdir=/etc"
7583 "--localstatedir=/var"
7584 (string-append "-Dudev_dir="
7585 out "/lib/udev")
7586 (string-append "-Ddbus_conf_dir="
7587 out "/etc/dbus-1/system.d")
7588
7589 (string-append "-Ddhclient=" dhclient)))
7590 #:phases
7591 (modify-phases %standard-phases
7592 (add-before 'configure 'pre-configure
7593 (lambda _
7594 ;; These tests try to test aspects of network-manager's
7595 ;; functionality within restricted containers, but they don't
7596 ;; cope with being already in the Guix build jail as that jail
7597 ;; lacks some features that they would like to proxy over (like
7598 ;; a /sys mount).
7599 (substitute* "src/platform/tests/meson.build"
7600 ((".*test-address-linux.*") "")
7601 ((".*test-cleanup-linux.*") "")
7602 ((".*test-link-linux.*") "")
7603 ((".*test-route-linux.*") ""))
7604 (substitute* "src/devices/tests/meson.build"
7605 ((".*test-acd.*") "")
7606 ((".*test-lldp.*") ""))
7607 #t))
7608 (add-after 'unpack 'patch-docbook-xml
7609 (lambda* (#:key inputs #:allow-other-keys)
7610 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
7611 "/xml/dtd/docbook")))
7612 (substitute* (find-files "." ".*\\.(xsl|xml)")
7613 (("http://.*/docbookx\\.dtd")
7614 (string-append xmldoc "/docbookx.dtd")))
7615 #t)))
7616 (add-before 'check 'pre-check
7617 (lambda _
7618 ;; For the missing /etc/machine-id.
7619 (setenv "DBUS_FATAL_WARNINGS" "0")
7620 #t))
7621 (add-before 'install 'no-polkit-magic
7622 ;; Meson ‘magically’ invokes pkexec, which fails (not setuid).
7623 (lambda _
7624 (setenv "PKEXEC_UID" "something")
7625 #t))
7626 (add-after 'install 'move-doc
7627 (lambda* (#:key outputs #:allow-other-keys)
7628 (let ((out (assoc-ref outputs "out"))
7629 (doc (assoc-ref outputs "doc")))
7630 (mkdir-p (string-append doc "/share"))
7631 (for-each (lambda (directory)
7632 (copy-recursively (string-append out directory)
7633 (string-append doc directory))
7634 (delete-file-recursively
7635 (string-append out directory)))
7636 '("/share/doc" "/share/gtk-doc"))
7637 #t))))))
7638 (propagated-inputs
7639 `(("glib" ,glib)))
7640 (native-inputs
7641 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
7642 ("gtk-doc" ,gtk-doc)
7643 ("gobject-introspection" ,gobject-introspection)
7644 ("docbook-xml" ,docbook-xml)
7645 ("docbook-xsl" ,docbook-xsl)
7646 ("intltool" ,intltool)
7647 ("libxslt" ,libxslt)
7648 ("libxml2" ,libxml2)
7649 ("pkg-config" ,pkg-config)
7650 ("vala" ,vala)
7651 ;; For testing.
7652 ("python" ,python-wrapper)
7653 ("python-dbus" ,python-dbus)
7654 ("python-pygobject" ,python-pygobject)))
7655 (inputs
7656 `(("curl" ,curl)
7657 ("cyrus-sasl" ,cyrus-sasl)
7658 ("dbus-glib" ,dbus-glib)
7659 ("dnsmasq" ,dnsmasq)
7660 ("eudev" ,eudev)
7661 ("gnutls" ,gnutls)
7662 ("iptables" ,iptables)
7663 ("isc-dhcp" ,isc-dhcp)
7664 ("iwd" ,iwd) ; wpa_supplicant alternative
7665 ("jansson" ,jansson)
7666 ("libaudit" ,audit)
7667 ("libgcrypt" ,libgcrypt)
7668 ("libgudev" ,libgudev)
7669 ("libndp" ,libndp)
7670 ("libnl" ,libnl)
7671 ("libsoup" ,libsoup)
7672 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)
7673 ("modem-manager" ,modem-manager)
7674 ("newt" ,newt) ;for the 'nmtui' console interface
7675 ("openresolv" ,openresolv) ; alternative resolv.conf manager
7676 ("polkit" ,polkit)
7677 ("ppp" ,ppp)
7678 ("readline" ,readline)
7679 ("util-linux" ,util-linux)
7680 ("elogind" ,elogind)))
7681 (synopsis "Network connection manager")
7682 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
7683 (description
7684 "NetworkManager is a system network service that manages your network
7685 devices and connections, attempting to keep active network connectivity when
7686 available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE
7687 devices, and provides VPN integration with a variety of different VPN
7688 services.")
7689 ;; “This NetworkManager project consists of the daemon, client tools, and
7690 ;; libnm. libnm is licensed LGPL-2.1+, while the rest is licensed under
7691 ;; GPL-2.0+.”
7692 (license (list license:gpl2+
7693 license:lgpl2.1+))
7694 (properties '((upstream-name . "NetworkManager")))))
7695
7696 (define-public network-manager-openvpn
7697 (package
7698 (name "network-manager-openvpn")
7699 (version "1.8.12")
7700 (source (origin
7701 (method url-fetch)
7702 (uri (string-append
7703 "mirror://gnome/sources/NetworkManager-openvpn/"
7704 (version-major+minor version)
7705 "/NetworkManager-openvpn-" version ".tar.xz"))
7706 (sha256
7707 (base32
7708 "062kh4zj7jfbwy4zzcwpq2m457bzbpm3l18s0ysnw3mgia3siz8f"))))
7709 (build-system gnu-build-system)
7710 (arguments
7711 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
7712 #:phases
7713 (modify-phases %standard-phases
7714 (add-after 'configure 'patch-path
7715 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7716 (let* ((ovpn (string-append (assoc-ref inputs "openvpn")
7717 "/sbin/openvpn"))
7718 (modprobe (string-append (assoc-ref inputs "kmod")
7719 "/bin/modprobe"))
7720 (pretty-ovpn (string-append "\"" ovpn "\"")))
7721 (for-each
7722 (lambda (file)
7723 (substitute* file
7724 (("\"/usr/local/sbin/openvpn\"") pretty-ovpn)
7725 (("\"/usr/sbin/openvpn\"") pretty-ovpn)
7726 (("\"/sbin/openvpn\"") pretty-ovpn)
7727 (("/sbin/modprobe") modprobe)))
7728 '("src/nm-openvpn-service.c" "properties/nm-openvpn-editor.c")))
7729 #t)))))
7730 (native-inputs
7731 `(("pkg-config" ,pkg-config)
7732 ("intltool" ,intltool)))
7733 (inputs
7734 `(("gtk+" ,gtk+)
7735 ("kmod" ,kmod)
7736 ("openvpn" ,openvpn)
7737 ("network-manager" ,network-manager)
7738 ("libnma" ,libnma)
7739 ("libsecret" ,libsecret)))
7740 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7741 (synopsis "OpenVPN plug-in for NetworkManager")
7742 (description
7743 "This extension of NetworkManager allows it to take care of connections
7744 to virtual private networks (VPNs) via OpenVPN.")
7745 (license license:gpl2+)
7746 (properties `((upstream-name . "NetworkManager-openvpn")))))
7747
7748 (define-public network-manager-vpnc
7749 (package
7750 (name "network-manager-vpnc")
7751 (version "1.2.6")
7752 (source (origin
7753 (method url-fetch)
7754 (uri (string-append
7755 "mirror://gnome/sources/NetworkManager-vpnc/"
7756 (version-major+minor version)
7757 "/NetworkManager-vpnc-" version ".tar.xz"))
7758 (sha256
7759 (base32
7760 "1js5lwcsqws4klgypfxl4ikmakv7v7xgddij1fj6b0y0qicx0kyy"))))
7761 (build-system gnu-build-system)
7762 (arguments
7763 `(#:configure-flags '("--enable-absolute-paths"
7764 "--localstatedir=/var"
7765 ;; libnm-glib has been removed from network-manager
7766 ;; 1de8383ad9fdfc8f552117e5d109bdfa7005634b
7767 "--with-libnm-glib=no")
7768 #:phases
7769 (modify-phases %standard-phases
7770 (add-after 'configure 'patch-path
7771 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7772 (let* ((vpnc (string-append (assoc-ref inputs "vpnc")
7773 "/sbin/vpnc"))
7774 (modprobe (string-append (assoc-ref inputs "kmod")
7775 "/bin/modprobe"))
7776 (pretty-ovpn (string-append "\"" vpnc "\"")))
7777 (substitute* "src/nm-vpnc-service.c"
7778 (("\"/usr/local/sbin/vpnc\"") pretty-ovpn)
7779 (("\"/usr/sbin/vpnc\"") pretty-ovpn)
7780 (("\"/sbin/vpnc\"") pretty-ovpn)
7781 (("/sbin/modprobe") modprobe)))
7782 #t)))))
7783 (native-inputs
7784 `(("pkg-config" ,pkg-config)
7785 ("intltool" ,intltool)))
7786 (inputs
7787 `(("gtk+" ,gtk+)
7788 ("kmod" ,kmod)
7789 ("vpnc" ,vpnc)
7790 ("network-manager" ,network-manager)
7791 ("libnma" ,libnma)
7792 ("libsecret" ,libsecret)))
7793 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7794 (synopsis "VPNC plug-in for NetworkManager")
7795 (description
7796 "Support for configuring virtual private networks based on VPNC.
7797 Compatible with Cisco VPN concentrators configured to use IPsec.")
7798 (license license:gpl2+)
7799 (properties `((upstream-name . "NetworkManager-vpnc")))))
7800
7801 (define-public network-manager-openconnect
7802 (package
7803 (name "network-manager-openconnect")
7804 (version "1.2.6")
7805 (source (origin
7806 (method url-fetch)
7807 (uri (string-append
7808 "mirror://gnome/sources/NetworkManager-openconnect/"
7809 (version-major+minor version)
7810 "/NetworkManager-openconnect-" version ".tar.xz"))
7811 (sha256
7812 (base32
7813 "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m"))))
7814 (build-system gnu-build-system)
7815 (arguments
7816 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
7817 #:phases
7818 (modify-phases %standard-phases
7819 (add-after 'configure 'patch-path
7820 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7821 (let* ((openconnect (string-append (assoc-ref inputs "openconnect")
7822 "/sbin/openconnect"))
7823 (modprobe (string-append (assoc-ref inputs "kmod")
7824 "/bin/modprobe"))
7825 (pretty-ovpn (string-append "\"" openconnect "\"")))
7826 (substitute* "src/nm-openconnect-service.c"
7827 (("\"/usr(/local)?/s?bin/openconnect\"") pretty-ovpn)
7828 (("/sbin/modprobe") modprobe)))
7829 #t)))))
7830 (native-inputs
7831 `(("intltool" ,intltool)
7832 ("libnma" ,libnma)
7833 ("pkg-config" ,pkg-config)))
7834 (inputs
7835 `(("gcr" ,gcr)
7836 ("gtk+" ,gtk+)
7837 ("kmod" ,kmod)
7838 ("libsecret" ,libsecret)
7839 ("libxml2" ,libxml2)
7840 ("lz4" ,lz4)
7841 ("network-manager" ,network-manager)
7842 ("openconnect" ,openconnect)))
7843 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7844 (synopsis "OpenConnect plug-in for NetworkManager")
7845 (description
7846 "This extension of NetworkManager allows it to take care of connections
7847 to @acronym{VPNs, virtual private networks} via OpenConnect, an open client for
7848 Cisco's AnyConnect SSL VPN.")
7849 (license license:gpl2+)
7850 (properties `((upstream-name . "NetworkManager-openconnect")
7851
7852 ;; The 'etc/dbus-1/system.d/nm-openconnect-service.conf'
7853 ;; file refers to account "nm-openconnect". Specify it here
7854 ;; so that 'network-manager-service-type' creates it.
7855 (user-accounts . ("nm-openconnect"))))))
7856
7857 (define-public mobile-broadband-provider-info
7858 (package
7859 (name "mobile-broadband-provider-info")
7860 (version "20190116")
7861 (source (origin
7862 (method url-fetch)
7863 (uri (string-append
7864 "mirror://gnome/sources/"
7865 "mobile-broadband-provider-info/" version "/"
7866 "mobile-broadband-provider-info-" version ".tar.xz"))
7867 (sha256
7868 (base32
7869 "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"))))
7870 (build-system gnu-build-system)
7871 (arguments
7872 `(#:tests? #f)) ; no tests
7873 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
7874 (synopsis "Database of broadband connection configuration")
7875 (description "Database of broadband connection configuration.")
7876 (license license:public-domain)))
7877
7878 (define-public network-manager-applet
7879 (package
7880 (name "network-manager-applet")
7881 (version "1.16.0")
7882 (source (origin
7883 (method url-fetch)
7884 (uri (string-append "mirror://gnome/sources/network-manager-applet/"
7885 (version-major+minor version) "/"
7886 "network-manager-applet-" version ".tar.xz"))
7887 (sha256
7888 (base32
7889 "1rf3nm0hjcy9f8ajb4vmvwy503w8yj8d4daxkcb7w7i7b92qmyfn"))))
7890 (build-system meson-build-system)
7891 (arguments
7892 '(#:glib-or-gtk? #t))
7893 (native-inputs
7894 `(("intltool" ,intltool)
7895 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
7896 ("gobject-introspection" ,gobject-introspection)
7897 ("gtk-doc" ,gtk-doc)
7898 ("pkg-config" ,pkg-config)))
7899 (propagated-inputs
7900 ;; libnm-gtk.pc refers to all these.
7901 `(("dbus-glib" ,dbus-glib)
7902 ("gtk+" ,gtk+)
7903 ("network-manager" ,network-manager)
7904 ;; nm-applet need by org.gnome.nm-applet.gschema.xml
7905 ("libnma" ,libnma)))
7906 (inputs
7907 `(("gcr" ,gcr)
7908 ("libgudev" ,libgudev)
7909 ("libnotify" ,libnotify)
7910 ("libsecret" ,libsecret)
7911 ("libselinux" ,libselinux)
7912 ("jansson" ,jansson) ; for team support
7913 ("modem-manager" ,modem-manager)))
7914 (synopsis "Applet for managing network connections")
7915 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
7916 (description
7917 "This package contains a systray applet for NetworkManager. It displays
7918 the available networks and allows users to easily switch between them.")
7919 (license license:gpl2+)))
7920
7921 (define-public libxml++
7922 (package
7923 (name "libxml++")
7924 (version "3.0.1")
7925 (source (origin
7926 (method url-fetch)
7927 (uri (string-append "mirror://gnome/sources/" name "/"
7928 (version-major+minor version) "/"
7929 name "-" version ".tar.xz"))
7930 (sha256
7931 (base32
7932 "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"))))
7933 (build-system gnu-build-system)
7934 ;; libxml++-3.0.pc refers to all these.
7935 (propagated-inputs
7936 `(("libxml2" ,libxml2)
7937 ("glibmm" ,glibmm)))
7938 (native-inputs
7939 `(("perl" ,perl)
7940 ("pkg-config" ,pkg-config)))
7941 (home-page "http://libxmlplusplus.sourceforge.net/")
7942 (synopsis "C++ wrapper for XML parser library libxml2")
7943 (description
7944 "This package provides a C++ wrapper for the XML parser library
7945 libxml2.")
7946 (license license:lgpl2.1+)))
7947
7948 (define-public libxml++-2
7949 (package
7950 (inherit libxml++)
7951 (name "libxml++")
7952 (version "2.40.1")
7953 (source (origin
7954 (method url-fetch)
7955 (uri (string-append "mirror://gnome/sources/" name "/"
7956 (version-major+minor version) "/"
7957 name "-" version ".tar.xz"))
7958 (sha256
7959 (base32
7960 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
7961
7962 (define-public gdm
7963 (package
7964 (name "gdm")
7965 (version "3.34.1")
7966 (source (origin
7967 (method url-fetch)
7968 (uri (string-append "mirror://gnome/sources/" name "/"
7969 (version-major+minor version) "/"
7970 name "-" version ".tar.xz"))
7971 (sha256
7972 (base32
7973 "1lyqvcwxhwxklbxn4xjswjzr6fhjix6h28mi9ypn34wdm9bzcpg8"))
7974 (patches (search-patches "gdm-default-session.patch"))))
7975 (build-system glib-or-gtk-build-system)
7976 (arguments
7977 '(#:configure-flags
7978 `("--without-plymouth"
7979 "--disable-systemd-journal"
7980
7981 ;; Using --with-initial-vt=7 allows GDM to run alongside TTY 1,
7982 ;; instead of having to replace it (i.e., stopping the mingetty
7983 ;; service for TTY 1 before starting GDM).
7984 "--with-initial-vt=7"
7985
7986 ;; Use '/etc/environment' for locale settings instead of the
7987 ;; systemd-specific '/etc/locale.conf'.
7988 "--with-lang-file=/etc/environment"
7989
7990 ,(string-append "--with-udevdir="
7991 (assoc-ref %outputs "out") "/lib/udev")
7992
7993 "--localstatedir=/var"
7994 ,(string-append "--with-default-path="
7995 (string-join '("/run/setuid-programs"
7996 "/run/current-system/profile/bin"
7997 "/run/current-system/profile/sbin")
7998 ":"))
7999 ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
8000 ;; XDG_DATA_DIRS so that it finds its schemas.
8001 "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
8002 #:phases
8003 (modify-phases %standard-phases
8004 (add-before
8005 'configure 'pre-configure
8006 (lambda* (#:key inputs outputs #:allow-other-keys)
8007 ;; We don't have <systemd/sd-daemon.h>.
8008 (substitute* '("common/gdm-log.c"
8009 "daemon/gdm-server.c"
8010 "daemon/gdm-session-worker.c"
8011 "daemon/gdm-session-worker-job.c")
8012 (("#include <systemd/sd-daemon\\.h>") ""))
8013 ;; Use elogind for sd-login.
8014 (substitute* '("common/gdm-common.c"
8015 "daemon/gdm-local-display-factory.c"
8016 "daemon/gdm-manager.c"
8017 "libgdm/gdm-user-switching.c")
8018 (("#include <systemd/sd-login\\.h>")
8019 "#include <elogind/sd-login.h>"))
8020 ;; Check for elogind.
8021 (substitute* '("configure")
8022 (("libsystemd")
8023 "libelogind"))
8024 ;; Look for system-installed sessions in
8025 ;; /run/current-system/profile/share.
8026 (substitute* '("libgdm/gdm-sessions.c"
8027 "daemon/gdm-session.c"
8028 "daemon/gdm-display.c"
8029 "daemon/gdm-launch-environment.c")
8030 (("DATADIR \"/x")
8031 "\"/run/current-system/profile/share/x")
8032 (("DATADIR \"/wayland")
8033 "\"/run/current-system/profile/share/wayland")
8034 (("DATADIR \"/gnome")
8035 "\"/run/current-system/profile/share/gnome"))
8036 (let ((propagate '("GDM_CUSTOM_CONF"
8037 "GDM_DBUS_DAEMON"
8038 "GDM_X_SERVER"
8039 "GDM_X_SESSION"
8040 ;; XXX: Remove this once GNOME Shell is
8041 ;; a dependency of GDM.
8042 "XDG_DATA_DIRS")))
8043 (substitute* "daemon/gdm-session.c"
8044 (("set_up_session_environment \\(self\\);")
8045 (apply string-append
8046 "set_up_session_environment (self);\n"
8047 (map (lambda (name)
8048 (string-append
8049 "gdm_session_set_environment_variable "
8050 "(self, \"" name "\","
8051 "g_getenv (\"" name "\"));\n"))
8052 propagate)))))
8053 ;; Find the configuration file using an environment variable.
8054 (substitute* '("common/gdm-settings.c")
8055 (("GDM_CUSTOM_CONF")
8056 (string-append "(g_getenv(\"GDM_CUSTOM_CONF\") != NULL"
8057 " ? g_getenv(\"GDM_CUSTOM_CONF\")"
8058 " : GDM_CUSTOM_CONF)")))
8059 ;; Use service-supplied path to X.
8060 (substitute* '("daemon/gdm-server.c")
8061 (("\\(X_SERVER X_SERVER_ARG_FORMAT")
8062 "(\"%s\" X_SERVER_ARG_FORMAT, g_getenv (\"GDM_X_SERVER\")"))
8063 (substitute* '("daemon/gdm-wayland-session.c"
8064 "daemon/gdm-x-session.c")
8065 (("\"dbus-daemon\"")
8066 "g_getenv (\"GDM_DBUS_DAEMON\")")
8067 (("X_SERVER")
8068 "g_getenv (\"GDM_X_SERVER\")")
8069 (("GDMCONFDIR \"/Xsession\"")
8070 "g_getenv (\"GDM_X_SESSION\")"))
8071 ;; Use an absolute path for GNOME Session.
8072 (substitute* "daemon/gdm-launch-environment.c"
8073 (("\"gnome-session\"")
8074 (string-append "\"" (assoc-ref inputs "gnome-session")
8075 "/bin/gnome-session\"")))
8076 ;; Do not automatically select the placeholder session.
8077 (substitute* "daemon/gdm-session.c"
8078 (("!g_str_has_suffix [(]base_name, \"\\.desktop\"[)]")
8079 (string-append "!g_str_has_suffix (base_name, \".desktop\") || "
8080 "(g_strcmp0(search_dirs[i], \""
8081 (assoc-ref outputs "out") "/share/gdm/BuiltInSessions/"
8082 "\") == 0 && "
8083 "g_strcmp0(base_name, \"fail.desktop\") == 0)"))
8084 (("g_error [(]\"GdmSession: no session desktop files installed, aborting\\.\\.\\.\"[)];")
8085 "{ self->fallback_session_name = g_strdup(\"fail\"); goto out; }"))
8086 #t))
8087 ;; GDM requires that there be at least one desktop entry
8088 ;; file. This phase installs a hidden one that simply
8089 ;; fails. This enables users to use GDM with a
8090 ;; '~/.xsession' script with no other desktop entry files.
8091 ;; See <https://bugs.gnu.org/35068>.
8092 (add-after 'install 'install-placeholder-desktop-entry
8093 (lambda* (#:key inputs outputs #:allow-other-keys)
8094 (let* ((out (assoc-ref outputs "out"))
8095 (sessions (string-append out "/share/gdm/BuiltInSessions"))
8096 (fail (string-append sessions "/fail.desktop")))
8097 (mkdir-p sessions)
8098 (with-output-to-file fail
8099 (lambda ()
8100 (for-each
8101 display
8102 '("[Desktop Entry]\n"
8103 "Encoding=UTF-8\n"
8104 "Type=Application\n"
8105 "Name=Fail\n"
8106 "Comment=This session fails immediately.\n"
8107 "NoDisplay=true\n"
8108 "Exec=false\n"))))
8109 #t)))
8110 ;; GDM needs GNOME Session to run these applications. We link
8111 ;; their autostart files in `share/gdm/greeter/autostart'
8112 ;; because GDM explicitly tells GNOME Session to look there.
8113 ;;
8114 ;; XXX: GNOME Shell should be linked here too, but currently
8115 ;; GNOME Shell depends on GDM.
8116 (add-after 'install 'link-autostart-files
8117 (lambda* (#:key inputs outputs #:allow-other-keys)
8118 (let* ((out (assoc-ref outputs "out"))
8119 (autostart (string-append out "/share/gdm/"
8120 "greeter/autostart"))
8121 (settings (assoc-ref inputs "gnome-settings-daemon")))
8122 (mkdir-p autostart)
8123 (with-directory-excursion autostart
8124 (for-each (lambda (desktop)
8125 (symlink desktop (basename desktop)))
8126 (find-files (string-append settings "/etc/xdg"))))
8127 #t))))))
8128 (native-inputs
8129 `(("dconf" ,dconf)
8130 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8131 ("gobject-introspection" ,gobject-introspection)
8132 ("intltool" ,intltool)
8133 ("itstool" ,itstool)
8134 ("pkg-config" ,pkg-config)
8135 ("xmllint" ,libxml2)))
8136 (inputs
8137 `(("accountsservice" ,accountsservice)
8138 ("check" ,check-0.14) ;for testing
8139 ("elogind" ,elogind)
8140 ("gnome-session" ,gnome-session)
8141 ("gnome-settings-daemon" ,gnome-settings-daemon)
8142 ("gtk+" ,gtk+)
8143 ("iso-codes" ,iso-codes)
8144 ("libcanberra" ,libcanberra)
8145 ("linux-pam" ,linux-pam)))
8146 (synopsis "Display manager for GNOME")
8147 (home-page "https://wiki.gnome.org/Projects/GDM/")
8148 (description
8149 "GNOME Display Manager is a system service that is responsible for
8150 providing graphical log-ins and managing local and remote displays.")
8151 (license license:gpl2+)))
8152
8153 (define-public libgtop
8154 (package
8155 (name "libgtop")
8156 (version "2.40.0")
8157 (source (origin
8158 (method url-fetch)
8159 (uri (string-append "mirror://gnome/sources/libgtop/"
8160 (version-major+minor version) "/"
8161 "libgtop-" version ".tar.xz"))
8162 (sha256
8163 (base32
8164 "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq"))))
8165 (build-system gnu-build-system)
8166 (native-inputs
8167 `(("gobject-introspection" ,gobject-introspection)
8168 ("intltool" ,intltool)
8169 ("perl" ,perl)
8170 ("pkg-config" ,pkg-config)))
8171 (propagated-inputs
8172 `(("glib" ,glib))) ; required by libgtop-2.0.pc
8173 (synopsis "Portable system access library")
8174 (home-page "https://www.gnome.org/")
8175 (description
8176 "LibGTop is a library to get system specific data such as CPU and memory
8177 usage and information about running processes.")
8178 (license license:gpl2+)))
8179
8180 (define-public gnome-bluetooth
8181 (package
8182 (name "gnome-bluetooth")
8183 (version "3.34.2")
8184 (source (origin
8185 (method url-fetch)
8186 (uri (string-append "mirror://gnome/sources/" name "/"
8187 (version-major+minor version) "/"
8188 name "-" version ".tar.xz"))
8189 (sha256
8190 (base32
8191 "0lmjvb49vgr4jjplrisv6pi29jsn1q42715i6c5a0p9ad3gawyyv"))))
8192 (build-system meson-build-system)
8193 (native-inputs
8194 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
8195 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
8196 ("gobject-introspection" ,gobject-introspection)
8197 ("intltool" ,intltool)
8198 ("pkg-config" ,pkg-config)
8199 ("xmllint" ,libxml2)))
8200 (propagated-inputs
8201 ;; gnome-bluetooth-1.0.pc refers to all these.
8202 `(("glib" ,glib)
8203 ("gtk+" ,gtk+)))
8204 (inputs
8205 `(("eudev" ,eudev)
8206 ("libcanberra" ,libcanberra)
8207 ("libnotify" ,libnotify)))
8208 (synopsis "GNOME Bluetooth subsystem")
8209 (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
8210 (description
8211 "This package contains tools for managing and manipulating Bluetooth
8212 devices using the GNOME desktop.")
8213 (license license:lgpl2.1+)))
8214
8215 (define-public gnome-control-center
8216 (package
8217 (name "gnome-control-center")
8218 (version "3.34.2")
8219 (source (origin
8220 (method url-fetch)
8221 (uri (string-append "mirror://gnome/sources/" name "/"
8222 (version-major+minor version) "/"
8223 name "-" version ".tar.xz"))
8224 (sha256
8225 (base32
8226 "054igagvmyzpaa5nwzz98gv7bk7l5dwp6g813707132si3szlpx8"))))
8227 (build-system meson-build-system)
8228 (arguments
8229 '(#:glib-or-gtk? #t
8230 #:configure-flags
8231 (list "-Dcheese=false"
8232 (string-append "-Dgnome_session_libexecdir="
8233 (assoc-ref %build-inputs "gnome-session")
8234 "/libexec"))
8235 #:phases
8236 (modify-phases %standard-phases
8237 (add-before 'configure 'patch-paths
8238 (lambda* (#:key inputs #:allow-other-keys)
8239 (let ((libc (assoc-ref inputs "libc"))
8240 (tzdata (assoc-ref inputs "tzdata"))
8241 (libgnomekbd (assoc-ref inputs "libgnomekbd"))
8242 (nm-applet (assoc-ref inputs "network-manager-applet"))
8243 (gnome-desktop (assoc-ref inputs "gnome-desktop")))
8244 (substitute* "panels/datetime/tz.h"
8245 (("/usr/share/zoneinfo/zone.tab")
8246 (string-append tzdata "/share/zoneinfo/zone.tab")))
8247 (substitute* "tests/datetime/test-endianess.c"
8248 (("/usr/share/locale")
8249 (string-append libc "/share/locale")))
8250 (substitute* "panels/region/cc-region-panel.c"
8251 (("\"gkbd-keyboard-display")
8252 (string-append "\"" libgnomekbd
8253 "/bin/gkbd-keyboard-display")))
8254 (substitute* '("panels/network/net-device-wifi.c"
8255 "panels/network/net-device.c"
8256 "panels/network/connection-editor/net-connection-editor.c")
8257 (("\"nm-connection-editor")
8258 (string-append "\"" nm-applet
8259 "/bin/nm-connection-editor")))
8260 (substitute* '("panels/user-accounts/run-passwd.c")
8261 (("/usr/bin/passwd")
8262 "/run/setuid-programs/passwd"))
8263 (substitute* "panels/info/cc-info-overview-panel.c"
8264 (("DATADIR \"/gnome/gnome-version.xml\"")
8265 (string-append "\"" gnome-desktop
8266 "/share/gnome/gnome-version.xml\"")))
8267 #t)))
8268 (add-after 'unpack 'skip-gtk-update-icon-cache
8269 ;; Don't create 'icon-theme.cache'.
8270 (lambda _
8271 (substitute* "build-aux/meson/meson_post_install.py"
8272 (("gtk-update-icon-cache") (which "true")))
8273 #t)))))
8274 (native-inputs
8275 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
8276 ("intltool" ,intltool)
8277 ("pkg-config" ,pkg-config)
8278 ("xsltproc" ,libxslt)
8279 ;; For tests
8280 ("hicolor-icon-theme" ,hicolor-icon-theme)
8281 ("python-dbusmock" ,python-dbusmock)
8282 ("xorg-server" ,xorg-server-for-tests)))
8283 (inputs
8284 `(("accountsservice" ,accountsservice)
8285 ("clutter-gtk" ,clutter-gtk)
8286 ("colord-gtk" ,colord-gtk)
8287 ("cups" ,cups)
8288 ("dconf" ,dconf)
8289 ("docbook-xsl" ,docbook-xsl)
8290 ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
8291 ("gnome-bluetooth" ,gnome-bluetooth)
8292 ("gnome-desktop" ,gnome-desktop)
8293 ("gnome-online-accounts" ,gnome-online-accounts)
8294 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
8295 ("gnome-session" ,gnome-session)
8296 ("gnome-settings-daemon" ,gnome-settings-daemon)
8297 ("grilo" ,grilo)
8298 ("gsound" ,gsound)
8299 ("ibus" ,ibus)
8300 ("libcanberra" ,libcanberra)
8301 ("libgnomekbd" ,libgnomekbd)
8302 ("libgudev" ,libgudev)
8303 ("libgtop" ,libgtop)
8304 ("libnma" ,libnma)
8305 ("libpwquality" ,libpwquality)
8306 ("libsecret" ,libsecret)
8307 ("libsoup" ,libsoup)
8308 ("libxml2" ,libxml2)
8309 ("libwacom" ,libwacom)
8310 ("mesa" ,mesa)
8311 ("mit-krb5" ,mit-krb5)
8312 ("modem-manager" ,modem-manager)
8313 ("network-manager-applet" ,network-manager-applet)
8314 ("polkit" ,polkit)
8315 ("pulseaudio" ,pulseaudio)
8316 ("smbclient" ,samba)
8317 ("tzdata" ,tzdata)
8318 ("udisks" ,udisks)
8319 ("upower" ,upower)))
8320 (synopsis "Utilities to configure the GNOME desktop")
8321 (home-page "https://www.gnome.org/")
8322 (description
8323 "This package contains configuration applets for the GNOME desktop,
8324 allowing to set accessibility configuration, desktop fonts, keyboard and mouse
8325 properties, sound setup, desktop theme and background, user interface
8326 properties, screen resolution, and other GNOME parameters.")
8327 (license license:gpl2+)))
8328
8329 (define-public gnome-shell
8330 (package
8331 (name "gnome-shell")
8332 (version "3.34.2")
8333 (source (origin
8334 (method url-fetch)
8335 (uri (string-append "mirror://gnome/sources/" name "/"
8336 (version-major+minor version) "/"
8337 name "-" version ".tar.xz"))
8338 (sha256
8339 (base32
8340 "0k9vq2gh1nhdd6fpp7jnwx37qxaakawiqw1xnlfjvq5g5zdn8ckh"))
8341 (patches (search-patches "gnome-shell-theme.patch"
8342 "gnome-shell-disable-test.patch"))
8343 (modules '((guix build utils)))
8344 (snippet
8345 #~(begin
8346 ;; Copy images for use on the GDM log-in screen.
8347 (copy-file #$(file-append %artwork-repository
8348 "/slim/0.x/background.png")
8349 "data/theme/guix-background.png")
8350 (copy-file #$(file-append %artwork-repository
8351 "/logo/Guix-horizontal-white.svg")
8352 "data/theme/guix-logo.svg")
8353 #t))))
8354 (build-system meson-build-system)
8355 (arguments
8356 `(#:glib-or-gtk? #t
8357 #:disallowed-references ((,glib "bin")
8358 ,inkscape ,libxslt
8359 ,ruby-sass)
8360 #:configure-flags
8361 (list "-Dsystemd=false"
8362 ;; Otherwise, the RUNPATH will lack the final path component.
8363 (string-append "-Dc_link_args=-Wl,-rpath="
8364 (assoc-ref %outputs "out")
8365 "/lib/gnome-shell"))
8366
8367 #:modules ((guix build meson-build-system)
8368 (guix build utils)
8369 (srfi srfi-1))
8370
8371 #:phases
8372 (modify-phases %standard-phases
8373 (add-after 'unpack 'fix-keysdir
8374 (lambda* (#:key outputs #:allow-other-keys)
8375 (let* ((out (assoc-ref outputs "out"))
8376 (keysdir (string-append
8377 out "/share/gnome-control-center/keybindings")))
8378 (substitute* "meson.build"
8379 (("keysdir =.*")
8380 (string-append "keysdir = '" keysdir "'\n")))
8381 #t)))
8382 (add-before 'configure 'convert-logo-to-png
8383 (lambda* (#:key inputs #:allow-other-keys)
8384 ;; Convert the logo from SVG to PNG.
8385 (invoke "inkscape" "--export-png=data/theme/guix-logo.png"
8386 "data/theme/guix-logo.svg")))
8387 (add-before 'configure 'record-absolute-file-names
8388 (lambda* (#:key inputs #:allow-other-keys)
8389 (substitute* "js/misc/ibusManager.js"
8390 (("'ibus-daemon'")
8391 (string-append "'" (assoc-ref inputs "ibus")
8392 "/bin/ibus-daemon'")))
8393 (substitute* "js/ui/status/keyboard.js"
8394 (("'gkbd-keyboard-display'")
8395 (string-append "'" (assoc-ref inputs "libgnomekbd")
8396 "/bin/gkbd-keyboard-display'")))
8397 #t))
8398 (add-before 'check 'pre-check
8399 (lambda* (#:key inputs #:allow-other-keys)
8400 ;; Tests require a running X server.
8401 (system "Xvfb :1 &")
8402 (setenv "DISPLAY" ":1")
8403 #t))
8404 (add-after 'install 'wrap-programs
8405 (lambda* (#:key inputs outputs #:allow-other-keys)
8406 (let ((out (assoc-ref outputs "out"))
8407 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
8408 (python-path (getenv "PYTHONPATH")))
8409 (wrap-program (string-append out "/bin/gnome-shell")
8410 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
8411 ;; FIXME: gnome-shell loads these libraries with unqualified
8412 ;; names only, so they need to be on LD_LIBRARY_PATH. The
8413 ;; alternative might be to patch gnome-shell.
8414 `("LD_LIBRARY_PATH" ":" prefix
8415 ,(map (lambda (pkg)
8416 (string-append (assoc-ref inputs pkg) "/lib"))
8417 '("gdk-pixbuf"
8418 "gnome-bluetooth" "librsvg" "libgweather"))))
8419 (for-each
8420 (lambda (prog)
8421 (wrap-program (string-append out "/bin/" prog)
8422 `("PYTHONPATH" ":" prefix (,python-path))
8423 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
8424 '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
8425 #t)))
8426 (replace 'glib-or-gtk-wrap
8427 (let ((wrap (assoc-ref %standard-phases 'glib-or-gtk-wrap)))
8428 (lambda* (#:key inputs outputs #:allow-other-keys #:rest rest)
8429 ;; By default Inkscape et al. would end up in the XDG_DATA_DIRS
8430 ;; settings of the wrappers created by the 'glib-or-gtk-wrap'
8431 ;; phase. Fix that since we don't need these.
8432 (wrap #:inputs (fold alist-delete inputs
8433 '("inkscape" "intltool" "glib:bin"))
8434 #:outputs outputs)))))))
8435 (native-inputs
8436 `(("asciidoc" ,asciidoc)
8437 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8438 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8439 ("gobject-introspection" ,gobject-introspection)
8440 ("inkscape" ,inkscape)
8441 ("intltool" ,intltool)
8442 ("pkg-config" ,pkg-config)
8443 ("python" ,python)
8444 ("ruby-sass" ,ruby-sass)
8445 ("sassc" ,sassc)
8446 ("xsltproc" ,libxslt)
8447 ;; For tests
8448 ("xorg-server" ,xorg-server-for-tests)))
8449 (inputs
8450 `(("accountsservice" ,accountsservice)
8451 ("caribou" ,caribou)
8452 ("docbook-xsl" ,docbook-xsl)
8453 ("evolution-data-server" ,evolution-data-server)
8454 ("gcr" ,gcr)
8455 ("gdm" ,gdm)
8456 ("gdk-pixbuf" ,gdk-pixbuf+svg)
8457 ("gjs" ,gjs)
8458 ("gnome-autoar" ,gnome-autoar)
8459 ("gnome-bluetooth" ,gnome-bluetooth)
8460 ("gnome-desktop" ,gnome-desktop)
8461 ("gnome-settings-daemon" ,gnome-settings-daemon)
8462 ("gst-plugins-base" ,gst-plugins-base)
8463 ("ibus" ,ibus)
8464 ("libcanberra" ,libcanberra)
8465 ("libcroco" ,libcroco)
8466 ("libgnomekbd" ,libgnomekbd) ;for gkbd-keyboard-display
8467 ("libgweather" ,libgweather)
8468 ("libnma" ,libnma)
8469 ("libsoup" ,libsoup)
8470 ("mesa-headers" ,mesa-headers)
8471 ("mutter" ,mutter)
8472 ("network-manager-applet" ,network-manager-applet)
8473 ("polkit" ,polkit)
8474 ("pulseaudio" ,pulseaudio)
8475 ("python-pygobject" ,python-pygobject)
8476 ("startup-notification" ,startup-notification)
8477 ("telepathy-logger" ,telepathy-logger)
8478 ("upower" ,upower)
8479 ;; XXX: These requirements were added in 3.24, but no mention in NEWS.
8480 ;; Missing propagation? See also: <https://bugs.gnu.org/27264>
8481 ("librsvg" ,librsvg)
8482 ("geoclue" ,geoclue)))
8483 (synopsis "Desktop shell for GNOME")
8484 (home-page "https://wiki.gnome.org/Projects/GnomeShell")
8485 (description
8486 "GNOME Shell provides core user interface functions for the GNOME desktop,
8487 like switching to windows and launching applications.")
8488 (license license:gpl2+)))
8489
8490 (define-public gtk-vnc
8491 (package
8492 (name "gtk-vnc")
8493 (version "1.0.0")
8494 (source
8495 (origin
8496 (method url-fetch)
8497 (uri
8498 (string-append "mirror://gnome/sources/" name "/"
8499 (version-major+minor version) "/"
8500 name "-" version ".tar.xz"))
8501 (sha256
8502 (base32 "1060ws037v556rx1qhfrcg02859rscksrzr8fq11himdg4d1y6m8"))))
8503 (build-system meson-build-system)
8504 (arguments
8505 `(#:glib-or-gtk? #t)) ; To wrap binaries and/or compile schemas
8506 (native-inputs
8507 `(("gjs" ,gjs)
8508 ("glib:bin" ,glib "bin")
8509 ("gobject-introspection" ,gobject-introspection)
8510 ("intltool" ,intltool)
8511 ("node" ,node)
8512 ("perl" ,perl)
8513 ("pkg-config" ,pkg-config)
8514 ("python" ,python-wrapper)
8515 ("vala" ,vala)))
8516 (inputs
8517 `(("cairo" ,cairo)
8518 ("gdk-pixbuf" ,gdk-pixbuf+svg)
8519 ("glib" ,glib)
8520 ("gnutls" ,gnutls)
8521 ("libgcrypt" ,libgcrypt)
8522 ("libsasl" ,cyrus-sasl)
8523 ("pulseaudio" ,pulseaudio)
8524 ("x11" ,libx11)
8525 ("zlib" ,zlib)))
8526 (propagated-inputs
8527 `(("gtk+" ,gtk+)))
8528 (synopsis "VNC client viewer widget for GTK+")
8529 (description "GTK-VNC is a project providing client side APIs for the RFB
8530 protocol / VNC remote desktop technology. It is built using coroutines allowing
8531 it to be completely asynchronous while remaining single threaded. It provides a
8532 core C library, and bindings for Python (PyGTK).")
8533 (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
8534 (license license:lgpl2.1+)))
8535
8536 (define-public gnome-autoar
8537 (package
8538 (name "gnome-autoar")
8539 (version "0.2.4")
8540 (source (origin
8541 (method url-fetch)
8542 (uri (string-append "mirror://gnome/sources/" name "/"
8543 (version-major+minor version) "/"
8544 name "-" version ".tar.xz"))
8545 (sha256
8546 (base32
8547 "0yk56ch46n3wfy633mq31kif9n7v06rlij4vqbsbn6l4z1vw6d0a"))))
8548 (build-system glib-or-gtk-build-system)
8549 (native-inputs
8550 `(("gobject-introspection" ,gobject-introspection)
8551 ("pkg-config" ,pkg-config)))
8552 (propagated-inputs
8553 `(("libarchive" ,libarchive))) ; Required by gnome-autoar-0.pc
8554 (inputs
8555 `(("gtk+" ,gtk+)))
8556 (synopsis "Archives integration support for GNOME")
8557 (home-page "https://git.gnome.org/browse/gnome-autoar/")
8558 (description
8559 "GNOME Autoar is a library which makes creating and extracting archives
8560 easy, safe, and automatic.")
8561 (license license:lgpl2.1+)))
8562
8563 (define-public tracker
8564 (package
8565 (name "tracker")
8566 (version "2.3.5")
8567 (source (origin
8568 (method url-fetch)
8569 (uri (string-append "mirror://gnome/sources/tracker/"
8570 (version-major+minor version) "/"
8571 "tracker-" version ".tar.xz"))
8572 (sha256
8573 (base32
8574 "1ixxyqjlv7pnl4j8g6b72fkbjvzfspza8y71ppkncry8i6xkr223"))))
8575 (build-system meson-build-system)
8576 (arguments
8577 `(#:glib-or-gtk? #t
8578 #:configure-flags
8579 ;; Otherwise, the RUNPATH will lack the final path component.
8580 (list (string-append "-Dc_link_args=-Wl,-rpath="
8581 (assoc-ref %outputs "out") "/lib:"
8582 (assoc-ref %outputs "out") "/lib/tracker-2.0"))
8583 #:phases
8584 (modify-phases %standard-phases
8585 (add-before 'check 'pre-check
8586 (lambda _
8587 ;; Some tests expect to write to $HOME.
8588 (setenv "HOME" "/tmp")
8589 #t)))))
8590 (native-inputs
8591 `(("glib:bin" ,glib "bin")
8592 ("gobject-introspection" ,gobject-introspection)
8593 ("python-pygobject" ,python-pygobject)
8594 ("intltool" ,intltool)
8595 ("pkg-config" ,pkg-config)
8596 ("vala" ,vala)))
8597 (inputs
8598 `(("dbus" ,dbus)
8599 ("sqlite" ,sqlite)
8600 ("libxml2" ,libxml2)
8601 ("icu4c" ,icu4c) ; libunistring gets miner-miner-fs test to fail.
8602 ("json-glib" ,json-glib)
8603 ("libsoup" ,libsoup)))
8604 (synopsis "Metadata database, indexer and search tool")
8605 (home-page "https://wiki.gnome.org/Projects/Tracker")
8606 (description
8607 "Tracker is a search engine and triplestore for desktop, embedded and mobile.
8608
8609 It is a middleware component aimed at desktop application developers who want
8610 their apps to browse and search user content. It's not designed to be used
8611 directly by desktop users, but it provides a commandline tool named
8612 @command{tracker} for the adventurous.
8613
8614 Tracker allows your application to instantly perform full-text searches across
8615 all documents. This feature is used by the @{emph{search} bar in GNOME Files, for
8616 example. This is achieved by indexing the user's home directory in the
8617 background.
8618
8619 Tracker also allows your application to query and list content that the user
8620 has stored. For example, GNOME Music displays all the music files that are
8621 found by Tracker. This means that GNOME Music doesn't need to maintain a
8622 database of its own.
8623
8624 If you need to go beyond simple searches, Tracker is also a linked data
8625 endpoint and it understands SPARQL. ")
8626 ;; https://gitlab.gnome.org/GNOME/tracker/-/blob/master/COPYING:
8627 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
8628 ;; libstemmer is bsd-3 and the rest is gpl2+.
8629 (license (list license:gpl2+
8630 license:bsd-3
8631 license:lgpl2.1+))))
8632
8633 (define-public tracker-miners
8634 (package
8635 (name "tracker-miners")
8636 (version "2.3.4")
8637 (source (origin
8638 (method url-fetch)
8639 (uri (string-append "mirror://gnome/sources/tracker-miners/"
8640 (version-major+minor version)
8641 "/tracker-miners-" version ".tar.xz"))
8642 (sha256
8643 (base32
8644 "10wy8d8ski52k809p7s6lbw72qmg05bbmhnl00vx4qrbzqyxvc0b"))))
8645 (build-system meson-build-system)
8646 (arguments
8647 `(#:glib-or-gtk? #t
8648 #:configure-flags
8649 (list "-Dminer_rss=false" ; libgrss is required.
8650 ;; Ensure the RUNPATH contains all installed library locations.
8651 (string-append "-Dc_link_args=-Wl,-rpath="
8652 (assoc-ref %outputs "out")
8653 "/lib/tracker-miners-2.0")
8654 ;; TODO: Enable functional tests. Currently, the following error
8655 ;; appears:
8656 ;; Exception: The functional tests require DConf to be the default
8657 ;; GSettings backend. Got GKeyfileSettingsBackend instead.
8658 "-Dfunctional_tests=false")))
8659 (native-inputs
8660 `(("dbus" ,dbus)
8661 ("intltool" ,intltool)
8662 ("glib:bin" ,glib "bin")
8663 ("gobject-introspection" ,gobject-introspection)
8664 ("pkg-config" ,pkg-config)
8665 ("python-pygobject" ,python-pygobject)))
8666 (inputs
8667 `(("exempi" ,exempi)
8668 ("ffmpeg" ,ffmpeg)
8669 ("flac" ,flac)
8670 ("giflib" ,giflib)
8671 ("glib" ,glib)
8672 ("gstreamer" ,gstreamer)
8673 ("icu4c" ,icu4c)
8674 ("libcue" ,libcue)
8675 ("libexif" ,libexif)
8676 ("libgsf" ,libgsf)
8677 ("libgxps" ,libgxps)
8678 ("libiptcdata" ,libiptcdata)
8679 ("libjpeg" ,libjpeg-turbo)
8680 ("libosinfo" ,libosinfo)
8681 ("libpng" ,libpng)
8682 ("libseccomp" ,libseccomp)
8683 ("libtiff" ,libtiff)
8684 ("libvorbis" ,libvorbis)
8685 ("libxml2" ,libxml2)
8686 ("poppler" ,poppler)
8687 ("taglib" ,taglib)
8688 ("totem-pl-parser" ,totem-pl-parser)
8689 ("tracker" ,tracker)
8690 ("upower" ,upower)
8691 ("zlib" ,zlib)))
8692 (synopsis "Metadata database, indexer and search tool")
8693 (home-page "https://wiki.gnome.org/Projects/Tracker")
8694 (description
8695 "Tracker is an advanced framework for first class objects with associated
8696 metadata and tags. It provides a one stop solution for all metadata, tags,
8697 shared object databases, search tools and indexing.")
8698 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
8699 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
8700 (license (list license:gpl2+
8701 license:lgpl2.1+
8702 license:lgpl2.0+))))
8703
8704 (define-public nautilus
8705 (package
8706 (name "nautilus")
8707 (version "3.34.2")
8708 (source (origin
8709 (method url-fetch)
8710 (uri (string-append "mirror://gnome/sources/" name "/"
8711 (version-major+minor version) "/"
8712 name "-" version ".tar.xz"))
8713 (sha256
8714 (base32
8715 "19zqwq4qyyncc5wq3xls0f7rsavnw741k336p2h7kx35p4kf41mv"))))
8716 (build-system meson-build-system)
8717 (arguments
8718 '(#:glib-or-gtk? #t
8719 #:phases
8720 (modify-phases %standard-phases
8721 (add-after 'unpack 'skip-gtk-update-icon-cache
8722 ;; Don't create 'icon-theme.cache'.
8723 (lambda _
8724 (substitute* "build-aux/meson/postinstall.py"
8725 (("gtk-update-icon-cache") "true"))
8726 #t)))
8727 ;; XXX: FAIL: check-nautilus
8728 ;; Settings schema 'org.gnome.nautilus.preferences' is not installed
8729 #:tests? #f))
8730 (native-inputs
8731 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8732 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
8733 ("gobject-introspection" ,gobject-introspection)
8734 ("intltool" ,intltool)
8735 ("pkg-config" ,pkg-config)))
8736 (inputs
8737 `(("dconf" ,dconf)
8738 ("gexiv2" ,gexiv2)
8739 ("gvfs" ,gvfs)
8740 ("exempi" ,exempi)
8741 ("gnome-desktop" ,gnome-desktop)
8742 ("gnome-autoar" ,gnome-autoar)
8743 ("gst-plugins-base" ,gst-plugins-base)
8744 ("libseccomp" ,libseccomp)
8745 ("libselinux" ,libselinux)
8746 ("tracker" ,tracker)
8747 ("tracker-miners" ,tracker-miners)
8748 ;; XXX: gtk+ is required by libnautilus-extension.pc
8749 ;;
8750 ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
8751 ;; package. See:
8752 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
8753 ("gtk+" ,gtk+)
8754 ("libexif" ,libexif)
8755 ("libxml2" ,libxml2)))
8756 (synopsis "File manager for GNOME")
8757 (home-page "https://wiki.gnome.org/Apps/Nautilus")
8758 (description
8759 "Nautilus (Files) is a file manager designed to fit the GNOME desktop
8760 design and behaviour, giving the user a simple way to navigate and manage its
8761 files.")
8762 (license license:gpl2+)))
8763
8764 (define-public baobab
8765 (package
8766 (name "baobab")
8767 (version "3.38.0")
8768 (source (origin
8769 (method url-fetch)
8770 (uri (string-append
8771 "mirror://gnome/sources/" name "/"
8772 (version-major+minor version) "/"
8773 name "-" version ".tar.xz"))
8774 (sha256
8775 (base32
8776 "0ac3fbl15l836yvgw724q4whbkws9v4b6l2xy6bnp0b0g0a6i104"))))
8777 (build-system meson-build-system)
8778 (arguments
8779 '(#:glib-or-gtk? #t))
8780 (native-inputs
8781 `(("intltool" ,intltool)
8782 ("pkg-config" ,pkg-config)
8783 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8784 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8785 ("itstool" ,itstool)
8786 ("xmllint" ,libxml2)
8787 ("glib" ,glib "bin")
8788 ("vala" ,vala)))
8789 (inputs
8790 `(("gtk+" ,gtk+)))
8791 (synopsis "Disk usage analyzer for GNOME")
8792 (description
8793 "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
8794 usage in the GNOME desktop environment. It can easily scan device volumes or
8795 a specific user-requested directory branch (local or remote). Once the scan
8796 is complete it provides a graphical representation of each selected folder.")
8797 (home-page "https://wiki.gnome.org/Apps/Baobab")
8798 (license license:gpl2+)))
8799
8800 (define-public gnome-backgrounds
8801 (package
8802 (name "gnome-backgrounds")
8803 (version "3.34.0")
8804 (source
8805 (origin
8806 (method url-fetch)
8807 (uri (string-append "mirror://gnome/sources/" name "/"
8808 (version-major+minor version) "/"
8809 name "-" version ".tar.xz"))
8810 (sha256
8811 (base32
8812 "0zxlwy55fz7i582hch2wnj8zy1kzikssgaix0l2y41ccp5nzpdy2"))))
8813 (build-system meson-build-system)
8814 (native-inputs
8815 `(("intltool" ,intltool)))
8816 (home-page "https://gitlab.gnome.org/GNOME/gnome-backgrounds")
8817 (synopsis "Background images for the GNOME desktop")
8818 (description
8819 "GNOME backgrounds package contains a collection of graphics files which
8820 can be used as backgrounds in the GNOME Desktop environment. Additionally,
8821 the package creates the proper framework and directory structure so that you
8822 can add your own files to the collection.")
8823 (license (list license:gpl2+
8824 license:cc-by2.0
8825 license:cc-by-sa2.0
8826 license:cc-by-sa3.0))))
8827
8828 (define-public gnome-screenshot
8829 (package
8830 (name "gnome-screenshot")
8831 (version "3.34.0")
8832 (source
8833 (origin
8834 (method url-fetch)
8835 (uri (string-append "mirror://gnome/sources/" name "/"
8836 (version-major+minor version) "/"
8837 name "-" version ".tar.xz"))
8838 (sha256
8839 (base32
8840 "1rmiq890j7gfn5mcz31xy6jfnnxgc17dq67bhn2k9m5ylbvza2n8"))))
8841 (build-system meson-build-system)
8842 (arguments
8843 '(#:phases
8844 (modify-phases %standard-phases
8845 (add-after 'unpack 'skip-gtk-update-icon-cache
8846 ;; Don't create 'icon-theme.cache'.
8847 (lambda _
8848 (substitute* "build-aux/postinstall.py"
8849 (("gtk-update-icon-cache") "true"))
8850 #t)))))
8851 (native-inputs
8852 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8853 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8854 ("intltool" ,intltool)
8855 ("appstream-glib" ,appstream-glib)
8856 ("pkg-config" ,pkg-config)))
8857 (inputs
8858 `(("gtk+" ,gtk+)
8859 ("libcanberra" ,libcanberra)
8860 ("libx11" ,libx11)
8861 ("libxext" ,libxext)))
8862 (home-page "https://gitlab.gnome.org/GNOME/gnome-screenshot")
8863 (synopsis "Take pictures of your screen")
8864 (description
8865 "GNOME Screenshot is a utility used for taking screenshots of the entire
8866 screen, a window or a user defined area of the screen, with optional
8867 beautifying border effects.")
8868 (license license:gpl2+)))
8869
8870 (define-public dconf-editor
8871 (package
8872 (name "dconf-editor")
8873 (version "3.34.2")
8874 (source
8875 (origin
8876 (method url-fetch)
8877 (uri (string-append "mirror://gnome/sources/" name "/"
8878 (version-major+minor version) "/"
8879 name "-" version ".tar.xz"))
8880 (sha256
8881 (base32
8882 "0pwxjada2vaf69ihpjgp9nky54iykvxq63lp1vl8pxjanif2mk6f"))))
8883 (build-system meson-build-system)
8884 (native-inputs
8885 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
8886 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8887 ("intltool" ,intltool)
8888 ("pkg-config" ,pkg-config)
8889 ("vala" ,vala)))
8890 (inputs
8891 `(("dconf" ,dconf)
8892 ("gtk+" ,gtk+)
8893 ("libxml2" ,libxml2)))
8894 (home-page "https://gitlab.gnome.org/GNOME/dconf-editor")
8895 (synopsis "Graphical editor for GNOME's dconf configuration system")
8896 (description
8897 "Dconf-editor is a graphical tool for browsing and editing the dconf
8898 configuration system for GNOME. It allows users to configure desktop
8899 software that do not provide their own configuration interface.")
8900 (license license:lgpl2.1+)))
8901
8902 (define-public gnome-default-applications
8903 (package
8904 (name "gnome-default-applications")
8905 (version "0")
8906 (build-system trivial-build-system)
8907 (source #f)
8908 (propagated-inputs
8909 `(("nautilus" ,nautilus)
8910 ("evince" ,evince)))
8911 (arguments
8912 `(#:modules ((guix build utils))
8913 #:builder
8914 (begin
8915 (use-modules (guix build utils))
8916 (let* ((out (assoc-ref %outputs "out"))
8917 (apps (string-append out "/share/applications")))
8918 (mkdir-p apps)
8919 (call-with-output-file (string-append apps "/gnome-mimeapps.list")
8920 (lambda (port)
8921 (format port "[Default Applications]\n")
8922 (format port "inode/directory=org.gnome.Nautilus.desktop\n")
8923 (format port "application/pdf=evince.desktop\n")
8924 (format port "application/postscript=evince.desktop\n")))
8925 #t))))
8926 (synopsis "Default MIME type associations for the GNOME desktop")
8927 (description
8928 "Given many installed packages which might handle a given MIME type, a
8929 user running the GNOME desktop probably has some preferences: for example,
8930 that folders be opened by default by the Nautilus file manager, not the Baobab
8931 disk usage analyzer. This package establishes that set of default MIME type
8932 associations for GNOME.")
8933 (license license:gpl3+)
8934 (home-page #f)))
8935
8936 (define-public libgovirt
8937 (package
8938 (name "libgovirt")
8939 (version "0.3.6")
8940 (source (origin
8941 (method url-fetch)
8942 (uri (string-append "mirror://gnome/sources/" name "/"
8943 (version-major+minor version) "/"
8944 name "-" version ".tar.xz"))
8945 (sha256
8946 (base32
8947 "19pb71pag3vsi83kbv8h08kimwym4hpw36kjl6a5ik5nk50mc8sg"))))
8948 (build-system glib-or-gtk-build-system)
8949 (native-inputs
8950 `(("gettext" ,gettext-minimal)
8951 ("glib:bin" ,glib "bin")
8952 ("gobject-introspection" ,gobject-introspection)
8953 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8954 ("gtk+:bin" ,gtk+ "bin")
8955 ("pkg-config" ,pkg-config)))
8956 (inputs
8957 `(("glib-networking" ,glib-networking) ; GIO plugin--for the tests
8958 ("librest" ,rest)))
8959 (synopsis "GoVirt Library")
8960 (description "GoVirt is a GObject wrapper for the oVirt REST API.")
8961 (home-page "https://gitlab.gnome.org/GNOME/libgovirt")
8962 (license license:gpl2+)))
8963
8964 (define-public gnome-weather
8965 (package
8966 (name "gnome-weather")
8967 (version "3.34.0")
8968 (source (origin
8969 (method url-fetch)
8970 (uri (string-append "mirror://gnome/sources/" name "/"
8971 (version-major+minor version) "/"
8972 name "-" version ".tar.xz"))
8973 (sha256
8974 (base32
8975 "1g63xzs17i36if923b36k9fwbk0nqa5vz6zh1k6q2axrzhhpx1i4"))))
8976 (build-system meson-build-system)
8977 (native-inputs
8978 `(("gettext" ,gettext-minimal)
8979 ("glib:bin" ,glib "bin")
8980 ("gobject-introspection" ,gobject-introspection)
8981 ("gtk+:bin" ,gtk+ "bin")
8982 ("pkg-config" ,pkg-config)))
8983 (inputs
8984 `( ;("adwaita-icon-theme" ,adwaita-icon-theme)
8985 ("appstream-glib" ,appstream-glib)
8986 ("geoclue" ,geoclue)
8987 ("gdk-pixbuf" ,gdk-pixbuf)
8988 ("gjs" ,gjs)
8989 ("gnome-desktop" ,gnome-desktop)
8990 ("libgweather" ,libgweather)))
8991 (arguments
8992 `(#:glib-or-gtk? #t
8993 #:phases
8994 (modify-phases %standard-phases
8995 (add-after 'install 'fix-desktop-file
8996 ;; FIXME: "gapplication launch org.gnome.Weather" fails for some reason.
8997 ;; See https://issues.guix.gnu.org/issue/39324.
8998 (lambda* (#:key outputs #:allow-other-keys)
8999 (let* ((out (assoc-ref outputs "out"))
9000 (applications (string-append out "/share/applications")))
9001 (substitute* (string-append applications "/org.gnome.Weather.desktop")
9002 (("Exec=.*") "Exec=gnome-weather\n"))
9003 #t)))
9004 (add-after 'install 'wrap
9005 (lambda* (#:key inputs outputs #:allow-other-keys)
9006 (let ((out (assoc-ref outputs "out"))
9007 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
9008 ;; GNOME Weather needs the typelib files of GTK+, Pango etc at runtime.
9009 (wrap-program (string-append out "/bin/gnome-weather")
9010 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
9011 #t))))))
9012 (synopsis "Weather monitoring for GNOME desktop")
9013 (description "GNOME Weather is a small application that allows you to
9014 monitor the current weather conditions for your city, or anywhere in the
9015 world.")
9016 (home-page "https://wiki.gnome.org/Apps/Weather")
9017 (license license:gpl2+)))
9018
9019 (define-public gnome
9020 (package
9021 (name "gnome")
9022 (version (package-version gnome-shell))
9023 (source #f)
9024 (build-system trivial-build-system)
9025 (arguments '(#:builder (begin (mkdir %output) #t)))
9026 (propagated-inputs
9027 ;; TODO: Add or remove packages according to:
9028 ;; <https://calc.disroot.org/2nu6mpf88ynq.html>.
9029 `(
9030 ;; GNOME-Core-OS-Services
9031 ("accountsservice" ,accountsservice)
9032 ("network-manager" ,network-manager)
9033 ("packagekit" ,packagekit)
9034 ("upower" ,upower)
9035 ;; GNOME-Core-Shell
9036 ("adwaita-icon-theme" ,adwaita-icon-theme)
9037 ("gdm" ,gdm)
9038 ("glib-networking" ,glib-networking)
9039 ("gnome-backgrounds" ,gnome-backgrounds)
9040 ("gnome-bluetooth" ,gnome-bluetooth)
9041 ("gnome-color-manager" ,gnome-color-manager)
9042 ("gnome-control-center" ,gnome-control-center)
9043 ("gnome-desktop" ,gnome-desktop)
9044 ("gnome-getting-started-docs" ,gnome-getting-started-docs)
9045 ("gnome-initial-setup" ,gnome-initial-setup)
9046 ("gnome-keyring" ,gnome-keyring)
9047 ("gnome-menus" ,gnome-menus)
9048 ("gnome-session" ,gnome-session)
9049 ("gnome-settings-daemon" ,gnome-settings-daemon)
9050 ("gnome-shell-extensions" ,gnome-shell-extensions)
9051 ("gnome-shell" ,gnome-shell)
9052 ("gnome-themes-extra" ,gnome-themes-extra)
9053 ("gnome-user-docs" ,gnome-user-docs)
9054 ("gnome-user-share" ,gnome-user-share)
9055 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9056 ("gvfs" ,gvfs)
9057 ("mutter" ,mutter)
9058 ("orca" ,orca)
9059 ("rygel" ,rygel)
9060 ("sushi" ,sushi)
9061 ;; GNOME-Core-Utilities
9062 ("baobab" ,baobab)
9063 ("cheese" ,cheese)
9064 ;; XXX: EoG requires librsvg-next, which depends on Rust, which currently
9065 ;; only works on x86_64, so exclude it on other architectures.
9066 ,@(if (string-prefix? "x86_64" (%current-system))
9067 `(("eog" ,eog))
9068 '())
9069 ("epiphany" ,epiphany)
9070 ("evince" ,evince)
9071 ("file-roller" ,file-roller)
9072 ("gedit" ,gedit)
9073 ("gnome-boxes" ,gnome-boxes)
9074 ("gnome-calculator" ,gnome-calculator)
9075 ("gnome-calendar" ,gnome-calendar)
9076 ("gnome-characters" ,gnome-characters)
9077 ("gnome-clocks" ,gnome-clocks)
9078 ("gnome-contacts" ,gnome-contacts)
9079 ("gnome-disk-utility" ,gnome-disk-utility)
9080 ("gnome-font-viewer" ,gnome-font-viewer)
9081 ("gnome-maps" ,gnome-maps)
9082 ; TODO: ("gnome-music" ,gnome-music)
9083 ; TODO: ("gnome-photos" ,gnome-photos)
9084 ("gnome-screenshot" ,gnome-screenshot)
9085 ("gnome-system-monitor" ,gnome-system-monitor)
9086 ("gnome-terminal" ,gnome-terminal)
9087 ("gnome-weather" ,gnome-weather)
9088 ("nautilus" ,nautilus)
9089 ("simple-scan" ,simple-scan)
9090 ("totem" ,totem)
9091 ("yelp" ,yelp)
9092 ;; Others
9093 ("hicolor-icon-theme" ,hicolor-icon-theme)
9094 ("gnome-online-accounts" ,gnome-online-accounts)
9095
9096 ;; Packages not part of GNOME proper but that are needed for a good
9097 ;; experience. See <https://bugs.gnu.org/39646>.
9098 ;; XXX: Find out exactly which ones are needed and why.
9099 ("font-cantarell" ,font-cantarell)
9100 ("font-dejavu" ,font-dejavu)
9101 ("at-spi2-core" ,at-spi2-core)
9102 ("dbus" ,dbus)
9103 ("dconf" ,dconf)
9104 ("desktop-file-utils" ,desktop-file-utils)
9105 ("gnome-default-applications" ,gnome-default-applications)
9106 ("gnome-themes-standard" ,gnome-themes-standard)
9107 ("gst-plugins-base" ,gst-plugins-base)
9108 ("gst-plugins-good" ,gst-plugins-good)
9109 ("gucharmap" ,gucharmap)
9110 ("pinentry-gnome3" ,pinentry-gnome3)
9111 ("pulseaudio" ,pulseaudio)
9112 ("shared-mime-info" ,shared-mime-info)
9113 ("system-config-printer" ,system-config-printer)
9114 ("xdg-user-dirs" ,xdg-user-dirs)
9115 ("yelp" ,yelp)
9116 ("zenity" ,zenity)))
9117 (synopsis "The GNU desktop environment")
9118 (home-page "https://www.gnome.org/")
9119 (description
9120 "GNOME is the graphical desktop for GNU. It includes a wide variety of
9121 applications for browsing the web, editing text and images, creating
9122 documents and diagrams, playing media, scanning, and much more.")
9123 (license license:gpl2+)))
9124
9125 (define-public byzanz
9126 ;; The last stable release of Byzanz was in 2011, but there have been many
9127 ;; useful commits made to the Byzanz repository since then that it would be
9128 ;; silly to use such an old release.
9129 (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
9130 (package
9131 (name "byzanz")
9132 (version (string-append "0.2-1." (string-take commit 7)))
9133 (source (origin
9134 (method git-fetch)
9135 (uri (git-reference
9136 (url "https://git.gnome.org/browse/byzanz")
9137 (commit commit)))
9138 (file-name (string-append name "-" version "-checkout"))
9139 (sha256
9140 (base32
9141 "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
9142 (build-system glib-or-gtk-build-system)
9143 (arguments
9144 '(#:phases
9145 (modify-phases %standard-phases
9146 (add-before 'bootstrap 'build-without-Werror
9147 (lambda _
9148 ;; The build system cleverly detects that we're not building from
9149 ;; a release tarball and turns on -Werror for GCC.
9150 ;; Unsurprisingly, there is a warning during compilation that
9151 ;; causes the build to fail unnecessarily, so we remove the flag.
9152 (substitute* '("configure.ac")
9153 (("-Werror") ""))
9154 #t)))))
9155 (native-inputs
9156 `(("autoconf" ,autoconf)
9157 ("automake" ,automake)
9158 ("gnome-common" ,gnome-common)
9159 ("intltool" ,intltool)
9160 ("libtool" ,libtool)
9161 ("pkg-config" ,pkg-config)
9162 ("which" ,which)))
9163 (inputs
9164 `(("glib" ,glib)
9165 ("gstreamer" ,gstreamer)
9166 ("gst-plugins-base" ,gst-plugins-base)
9167 ("gtk+" ,gtk+)))
9168 (synopsis "Desktop recording program")
9169 (description "Byzanz is a simple desktop recording program with a
9170 command-line interface. It can record part or all of an X display for a
9171 specified duration and save it as a GIF encoded animated image file.")
9172 (home-page "https://git.gnome.org/browse/byzanz")
9173 (license license:gpl2+))))
9174
9175 (define-public authenticator
9176 (package
9177 (name "authenticator")
9178 (version "3.32.2")
9179 (source
9180 (origin
9181 (method git-fetch)
9182 (uri (git-reference
9183 (url "https://gitlab.gnome.org/World/Authenticator")
9184 (commit version)))
9185 (file-name (git-file-name name version))
9186 (sha256
9187 (base32 "1c4r9rnrz5gazrfg0z2rcwax4nscs7z391bcjcl74k6ln3blwzpr"))))
9188 (build-system meson-build-system)
9189 (arguments
9190 `(#:glib-or-gtk? #t
9191 #:phases
9192 (modify-phases %standard-phases
9193 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
9194 (lambda* (#:key inputs outputs #:allow-other-keys)
9195 (let ((prog (string-append (assoc-ref outputs "out")
9196 "/bin/authenticator"))
9197 (pylib (string-append (assoc-ref outputs "out")
9198 "/lib/python"
9199 ,(version-major+minor
9200 (package-version python))
9201 "/site-packages")))
9202 (wrap-program prog
9203 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
9204 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
9205 #t))))))
9206 (native-inputs
9207 `(("desktop-file-utils" ,desktop-file-utils)
9208 ("gettext" ,gettext-minimal)
9209 ("glib:bin" ,glib "bin")
9210 ("gobject-introspection" ,gobject-introspection)
9211 ("gtk+:bin" ,gtk+ "bin")
9212 ("pkg-config" ,pkg-config)))
9213 (inputs
9214 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9215 ("gtk+" ,gtk+)
9216 ("libhandy" ,libhandy-0.0)
9217 ("libsecret" ,libsecret)
9218 ("python-beautifulsoup4" ,python-beautifulsoup4)
9219 ("python-pillow" ,python-pillow)
9220 ("python-pyfavicon" ,python-pyfavicon)
9221 ("python-pygobject" ,python-pygobject)
9222 ("python-pyotp" ,python-pyotp)
9223 ("python-pyzbar" ,python-pyzbar)
9224 ("yoyo-migrations" ,yoyo-migrations)
9225 ("zbar" ,zbar)))
9226 (home-page "https://gitlab.gnome.org/World/Authenticator/")
9227 (synopsis "Two-factor authentication application built for GNOME")
9228 (description
9229 "Authenticator is a two-factor authentication (2FA) application built for
9230 the GNOME desktop environment.
9231
9232 Features:
9233
9234 @itemize
9235 @item QR code scanner
9236 @item Beautiful UI
9237 @item Huge database of more than 560 supported services
9238 @item Keep your PIN tokens secure by locking the application with a password
9239 @item Automatically fetch an image for services using their favicon
9240 @item The possibility to add new services
9241 @end itemize")
9242 (license license:gpl3+)))
9243
9244 (define-public gsound
9245 (package
9246 (name "gsound")
9247 (version "1.0.2")
9248 (source (origin
9249 (method url-fetch)
9250 (uri (string-append "mirror://gnome/sources/" name "/"
9251 (version-major+minor version) "/"
9252 name "-" version ".tar.xz"))
9253 (sha256
9254 (base32
9255 "0lwfwx2c99qrp08pfaj59pks5dphsnxjgrxyadz065d8xqqgza5v"))))
9256 (build-system glib-or-gtk-build-system)
9257 (native-inputs
9258 `(("pkg-config" ,pkg-config)
9259 ("gobject-introspection" ,gobject-introspection)
9260 ("vala" ,vala)))
9261 (inputs
9262 `(("glib" ,glib)
9263 ("libcanberra" ,libcanberra)))
9264 (home-page "https://wiki.gnome.org/Projects/GSound")
9265 (synopsis "GObject wrapper for libcanberra")
9266 (description
9267 "GSound is a small library for playing system sounds. It's designed to be
9268 used via GObject Introspection, and is a thin wrapper around the libcanberra C
9269 library.")
9270 (license license:lgpl2.1+)))
9271
9272 (define-public libzapojit
9273 (package
9274 (name "libzapojit")
9275 (version "0.0.3")
9276 (source (origin
9277 (method url-fetch)
9278 (uri (string-append "mirror://gnome/sources/" name "/"
9279 (version-major+minor version) "/"
9280 name "-" version ".tar.xz"))
9281 (sha256
9282 (base32
9283 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
9284 (build-system gnu-build-system)
9285 (native-inputs
9286 `(("gobject-introspection" ,gobject-introspection)
9287 ("intltool" ,intltool)
9288 ("pkg-config" ,pkg-config)))
9289 (inputs
9290 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9291 ("json-glib" ,json-glib)
9292 ("rest" ,rest)))
9293 (home-page "https://wiki.gnome.org/Projects/Zapojit")
9294 (synopsis "Library for accessing SkyDrive and Hotmail")
9295 (description
9296 "Libzapojit is a GLib-based library for accessing online service APIs of
9297 Microsoft SkyDrive and Hotmail, using their REST protocols.")
9298 (license license:lgpl2.1+)))
9299
9300 (define-public gnome-clocks
9301 (package
9302 (name "gnome-clocks")
9303 (version "3.34.0")
9304 (source (origin
9305 (method url-fetch)
9306 (uri (string-append "mirror://gnome/sources/" name "/"
9307 (version-major+minor version) "/"
9308 name "-" version ".tar.xz"))
9309 (sha256
9310 (base32
9311 "0g7hjk55smhkd09hwa9kag3h5a12l494wj89w9smpdk3ghsmy6b1"))))
9312 (build-system meson-build-system)
9313 (arguments
9314 '(#:glib-or-gtk? #t
9315 #:phases
9316 (modify-phases %standard-phases
9317 (add-after 'unpack 'skip-gtk-update-icon-cache
9318 ;; Don't create 'icon-theme.cache'.
9319 (lambda _
9320 (substitute* "build-aux/post-install.py"
9321 (("gtk-update-icon-cache") "true"))
9322 #t)))))
9323 (native-inputs
9324 `(("vala" ,vala)
9325 ("pkg-config" ,pkg-config)
9326 ("glib" ,glib "bin") ; for glib-compile-resources
9327 ("desktop-file-utils" ,desktop-file-utils)
9328 ("gettext" ,gettext-minimal)
9329 ("itstool" ,itstool)))
9330 (inputs
9331 `(("glib" ,glib)
9332 ("gtk+" ,gtk+)
9333 ("gsound" ,gsound)
9334 ("geoclue" ,geoclue)
9335 ("geocode-glib" ,geocode-glib)
9336 ("libgweather" ,libgweather)
9337 ("gnome-desktop" ,gnome-desktop)))
9338 (home-page "https://wiki.gnome.org/Apps/Clocks")
9339 (synopsis "GNOME's clock application")
9340 (description
9341 "GNOME Clocks is a simple clocks application designed to fit the GNOME
9342 desktop. It supports world clock, stop watch, alarms, and count down timer.")
9343 (license license:gpl3+)))
9344
9345 (define-public gnome-calendar
9346 (package
9347 (name "gnome-calendar")
9348 (version "3.34.2")
9349 (source (origin
9350 (method url-fetch)
9351 (uri (string-append "mirror://gnome/sources/" name "/"
9352 (version-major+minor version) "/"
9353 name "-" version ".tar.xz"))
9354 (sha256
9355 (base32
9356 "1bnmd191044zn2kr6f5vg7sm5q59qf7z652awll1f7s6ahijr8rw"))))
9357 (build-system meson-build-system)
9358 (arguments
9359 '(#:glib-or-gtk? #t
9360 ;; gnome-calendar has to be installed before the tests can be run
9361 ;; https://bugzilla.gnome.org/show_bug.cgi?id=788224
9362 #:tests? #f
9363 #:phases
9364 (modify-phases %standard-phases
9365 (add-after 'unpack 'skip-gtk-update-icon-cache
9366 ;; Don't create 'icon-theme.cache'.
9367 (lambda _
9368 (substitute* "build-aux/meson/meson_post_install.py"
9369 (("gtk-update-icon-cache") "true"))
9370 #t)))))
9371 (native-inputs
9372 `(("gettext" ,gettext-minimal)
9373 ("glib-bin" ,glib "bin") ; For glib-compile-schemas
9374 ("pkg-config" ,pkg-config)))
9375 (inputs
9376 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9377 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9378 ("libdazzle" ,libdazzle)
9379 ("libedataserverui" ,evolution-data-server)
9380 ("libgweather" ,libgweather)
9381 ("geoclue" ,geoclue)))
9382 (propagated-inputs
9383 `(("evolution-data-server" ,evolution-data-server)))
9384 (home-page "https://wiki.gnome.org/Apps/Calendar")
9385 (synopsis "GNOME's calendar application")
9386 (description
9387 "GNOME Calendar is a simple calendar application designed to fit the GNOME
9388 desktop. It supports multiple calendars, month, week and year view.")
9389 (license license:gpl3+)))
9390
9391 (define-public gnome-todo
9392 (package
9393 (name "gnome-todo")
9394 (version "3.28.1")
9395 (source (origin
9396 (method url-fetch)
9397 (uri (string-append "mirror://gnome/sources/" name "/"
9398 (version-major+minor version) "/"
9399 name "-" version ".tar.xz"))
9400 (sha256
9401 (base32
9402 "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"))
9403 (patches
9404 (search-patches "gnome-todo-delete-esource-duplicate.patch"))))
9405 (build-system meson-build-system)
9406 (arguments
9407 '(#:glib-or-gtk? #t
9408 #:phases (modify-phases %standard-phases
9409 (add-after
9410 'install 'wrap-gnome-todo
9411 (lambda* (#:key inputs outputs #:allow-other-keys)
9412 (let ((out (assoc-ref outputs "out"))
9413 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
9414 (python-path (getenv "PYTHONPATH")))
9415 (wrap-program (string-append out "/bin/gnome-todo")
9416 ;; XXX: gi plugins are broken.
9417 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=787212
9418 ;; For plugins.
9419 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
9420 `("PYTHONPATH" ":" prefix (,python-path))))
9421 #t)))))
9422 (native-inputs
9423 `(("gettext" ,gettext-minimal)
9424 ("gobject-introspection" ,gobject-introspection)
9425 ("glib:bin" ,glib "bin") ; For glib-compile-resources
9426 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
9427 ("pkg-config" ,pkg-config)))
9428 (inputs
9429 `(("rest" ,rest) ; For Todoist plugin
9430 ("json-glib" ,json-glib) ; For Todoist plugin
9431 ("libedataserverui" ,evolution-data-server)
9432 ("libical" ,libical)
9433 ("libpeas" ,libpeas)
9434 ("python-pygobject" ,python-pygobject)
9435 ("evolution-data-server" ,evolution-data-server)
9436 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9437 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
9438 (home-page "https://wiki.gnome.org/Apps/Todo")
9439 (synopsis "GNOME's ToDo Application")
9440 (description
9441 "GNOME To Do is a simplistic personal task manager designed to perfectly
9442 fit the GNOME desktop.")
9443 (license license:gpl3+)))
9444
9445 (define-public gnome-dictionary
9446 (package
9447 (name "gnome-dictionary")
9448 (version "3.26.1")
9449 (source (origin
9450 (method url-fetch)
9451 (uri (string-append "mirror://gnome/sources/" name "/"
9452 (version-major+minor version) "/"
9453 name "-" version ".tar.xz"))
9454 (sha256
9455 (base32
9456 "007k2bq8iplg4psdpz074r5d4zxvn4s95qym4rw9hs6giljbrf0n"))))
9457 (build-system meson-build-system)
9458 (arguments '(#:glib-or-gtk? #t
9459 #:phases (modify-phases %standard-phases
9460 (add-after 'unpack 'patch-install-script
9461 (lambda _
9462 ;; This script attempts to compile glib schemas
9463 ;; and create an empty MIME database. We do
9464 ;; that elsewhere, so prevent it from running.
9465 (substitute* "build-aux/post-install.sh"
9466 (("\\[ -z \"\\$DESTDIR\" \\]") "false"))
9467 #t)))))
9468 (native-inputs
9469 `(("glib:bin" ,glib "bin")
9470 ("gobject-introspection" ,gobject-introspection)
9471 ("intltool" ,intltool)
9472 ("itstool" ,itstool)
9473 ("pkg-config" ,pkg-config)
9474 ("xmllint" ,libxml2)))
9475 (inputs
9476 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9477 ("gtk+" ,gtk+)))
9478 (home-page "https://wiki.gnome.org/Apps/Dictionary")
9479 (synopsis "Look up words in dictionary sources")
9480 (description
9481 "GNOME Dictionary can look for the definition or translation of a word in
9482 existing databases over the internet.")
9483 (license license:gpl3+)))
9484
9485 (define-public gnome-tweaks
9486 (package
9487 (name "gnome-tweaks")
9488 (version "3.34.1")
9489 (source (origin
9490 (method url-fetch)
9491 (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
9492 (version-major+minor version) "/"
9493 "gnome-tweaks-" version ".tar.xz"))
9494 (patches
9495 (list (search-patch "gnome-tweaks-search-paths.patch")))
9496 (sha256
9497 (base32
9498 "19y62dj4n5i6v4zpjllxl51dch6ndy8xs45v5aqmmq9xyfrqk5yq"))))
9499 (build-system meson-build-system)
9500 (arguments
9501 `(#:glib-or-gtk? #t
9502 #:configure-flags '("-Dlocalstatedir=/tmp"
9503 "-Dsysconfdir=/tmp")
9504 #:imported-modules ((guix build python-build-system)
9505 ,@%meson-build-system-modules)
9506 #:phases
9507 (modify-phases %standard-phases
9508 (add-after 'unpack 'skip-gtk-update-icon-cache
9509 ;; Don't create 'icon-theme.cache'.
9510 (lambda _
9511 (substitute* "meson-postinstall.py"
9512 (("gtk-update-icon-cache") "true"))
9513 #t))
9514 (add-after 'install 'wrap
9515 (@@ (guix build python-build-system) wrap))
9516 (add-after 'wrap 'wrap-gi-typelib
9517 (lambda* (#:key inputs outputs #:allow-other-keys)
9518 (let ((out (assoc-ref outputs "out"))
9519 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
9520 (wrap-program (string-append out "/bin/gnome-tweaks")
9521 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
9522 #t)))))
9523 (native-inputs
9524 `(("intltool" ,intltool)
9525 ("pkg-config" ,pkg-config)))
9526 (inputs
9527 `(("gnome-desktop" ,gnome-desktop)
9528 ("gtk+" ,gtk+)
9529 ("gobject-introspection" ,gobject-introspection)
9530 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9531 ("libhandy" ,libhandy-0.0)
9532 ("libnotify" ,libnotify)
9533 ("libsoup" ,libsoup)
9534 ("nautilus" ,nautilus)
9535 ("python" ,python)
9536 ("python-pygobject" ,python-pygobject)))
9537 (synopsis "Customize advanced GNOME 3 options")
9538 (home-page "https://wiki.gnome.org/Apps/Tweaks")
9539 (description
9540 "GNOME Tweaks allows adjusting advanced configuration settings in
9541 GNOME 3. This includes things like the fonts used in user interface elements,
9542 alternative user interface themes, changes in window management behavior,
9543 GNOME Shell appearance and extension, etc.")
9544 (license license:gpl3+)))
9545
9546 (define-public gnome-shell-extensions
9547 (package
9548 (name "gnome-shell-extensions")
9549 (version "3.34.2")
9550 (source (origin
9551 (method url-fetch)
9552 (uri (string-append "mirror://gnome/sources/" name "/"
9553 (version-major+minor version) "/"
9554 name "-" version ".tar.xz"))
9555 (sha256
9556 (base32
9557 "1f5l35l3kdkzrv49xmg1sh11vwmgjbg7hx3gb91i39bfl1snxqd1"))))
9558 (build-system meson-build-system)
9559 (arguments
9560 '(#:configure-flags '("-Dextension_set=all")))
9561 (native-inputs
9562 `(("glib:bin" ,glib "bin")
9563 ("intltool" ,intltool)
9564 ("pkg-config" ,pkg-config)))
9565 (propagated-inputs
9566 `(("glib" ,glib)))
9567 (synopsis "Extensions for GNOME Shell")
9568 (description "GNOME Shell extensions modify and extend GNOME Shell
9569 functionality and behavior.")
9570 (home-page "https://extensions.gnome.org/")
9571 (license license:gpl3+)))
9572
9573 (define-public folks
9574 (package
9575 (name "folks")
9576 (version "0.13.1")
9577 (source (origin
9578 (method url-fetch)
9579 (uri (string-append
9580 "mirror://gnome/sources/folks/"
9581 (version-major+minor version) "/"
9582 "folks-" version ".tar.xz"))
9583 (sha256
9584 (base32
9585 "0pda8sx4ap3lyri5fdrnakl29la1zkhwlc9bmnp13qigp1iwdw9x"))))
9586 (build-system meson-build-system)
9587 (arguments
9588 '(#:phases
9589 (modify-phases %standard-phases
9590 (add-after 'unpack 'skip-gtk-update-icon-cache
9591 ;; Don't create 'icon-theme.cache'.
9592 (lambda _
9593 (substitute* "meson_post_install.py"
9594 (("gtk-update-icon-cache") "true"))
9595 #t)))))
9596 (inputs
9597 `(("bdb" ,bdb)
9598 ("dbus-glib" ,dbus-glib)
9599 ("evolution-data-server" ,evolution-data-server)
9600 ("glib" ,glib)
9601 ("libgee" ,libgee)
9602 ("readline" ,readline)
9603 ("telepathy-glib" ,telepathy-glib)))
9604 (native-inputs
9605 `(("glib:bin" ,glib "bin")
9606 ("gobject-introspection" ,gobject-introspection)
9607 ("intltool" ,intltool)
9608 ("pkg-config" ,pkg-config)
9609 ("vala" ,vala)))
9610 (synopsis "Library to aggregate data about people")
9611 (description "Libfolks is a library that aggregates information about people
9612 from multiple sources (e.g., Telepathy connection managers for IM contacts,
9613 Evolution Data Server for local contacts, libsocialweb for web service contacts,
9614 etc.) to create metacontacts. It's written in Vala, which generates C code when
9615 compiled.")
9616 (home-page "https://wiki.gnome.org/Projects/Folks")
9617 (license license:lgpl2.1+)))
9618
9619 (define-public gfbgraph
9620 (package
9621 (name "gfbgraph")
9622 (version "0.2.4")
9623 (source (origin
9624 (method url-fetch)
9625 (uri (string-append
9626 "mirror://gnome/sources/gfbgraph/"
9627 (version-major+minor version) "/"
9628 "gfbgraph-" version ".tar.xz"))
9629 (sha256
9630 (base32
9631 "0yck7dwvjk16a52nafjpi0a39rxwmg0w833brj45acz76lgkjrb0"))))
9632 (build-system glib-or-gtk-build-system)
9633 (arguments
9634 `(#:tests? #f ; tests appear to require the network
9635 #:configure-flags '("--disable-static"
9636 "--enable-gtk-doc"
9637 "--enable-introspection")))
9638 (native-inputs
9639 `(("gobject-introspection" ,gobject-introspection)
9640 ("gtk-doc" ,gtk-doc)
9641 ("pkg-config" ,pkg-config)
9642
9643 ;; The 0.2.4 ‘release’ tarball isn't bootstrapped.
9644 ("autoconf" ,autoconf)
9645 ("automake" ,automake)
9646 ("libtool" ,libtool)
9647 ("which" ,which)))
9648 (inputs
9649 `(("json-glib" ,json-glib)
9650 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9651 ("rest" ,rest)))
9652 (synopsis "GLib/GObject wrapper for the Facebook API")
9653 (description "This library allows you to use the Facebook API from
9654 GLib/GObject code.")
9655 (home-page "https://wiki.gnome.org/Projects/GFBGraph")
9656 (license license:lgpl2.1+)))
9657
9658 (define-public libgnomekbd
9659 (package
9660 (name "libgnomekbd")
9661 (version "3.26.1")
9662 (source (origin
9663 (method url-fetch)
9664 (uri (string-append "mirror://gnome/sources/libgnomekbd/"
9665 (version-major+minor version) "/"
9666 "libgnomekbd-" version ".tar.xz"))
9667 (sha256
9668 (base32
9669 "0y962ykn3rr9gylj0pwpww7bi20lmhvsw6qvxs5bisbn2mih5jpp"))))
9670 (build-system gnu-build-system)
9671 (native-inputs
9672 `(("pkg-config" ,pkg-config)
9673 ("glib" ,glib "bin")
9674 ("intltool" ,intltool)))
9675 (propagated-inputs
9676 ;; Referred to in .h files and .pc.
9677 `(("glib" ,glib)
9678 ("gtk+" ,gtk+)
9679 ("libxklavier" ,libxklavier)))
9680 (home-page "https://www.gnome.org")
9681 (synopsis "GNOME keyboard configuration library")
9682 (description
9683 "Libgnomekbd is a keyboard configuration library for the GNOME desktop
9684 environment, which can notably display keyboard layouts.")
9685 (license license:lgpl2.0+)))
9686
9687 ;;; This package is no longer maintained:
9688 ;;; https://wiki.gnome.org/Attic/LibUnique
9689 ;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
9690 ;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
9691 (define-public libunique
9692 (package
9693 (name "libunique")
9694 (version "3.0.2")
9695 (source (origin
9696 (method url-fetch)
9697 (uri (string-append "mirror://gnome/sources/" name "/"
9698 (version-major+minor version) "/"
9699 name "-" version ".tar.xz"))
9700 (sha256
9701 (base32
9702 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
9703 (build-system glib-or-gtk-build-system)
9704 (arguments
9705 `(#:configure-flags '("--disable-static"
9706 "--disable-dbus" ; use gdbus
9707 "--enable-introspection")))
9708 (native-inputs
9709 `(("pkg-config" ,pkg-config)
9710 ("gobject-introspection" ,gobject-introspection)
9711 ("glib:bin" ,glib "bin")
9712 ("gtk-doc" ,gtk-doc)))
9713 (propagated-inputs
9714 ;; Referred to in .h files and .pc.
9715 `(("gtk+" ,gtk+)))
9716 (home-page "https://wiki.gnome.org/Attic/LibUnique")
9717 (synopsis "Library for writing single instance applications")
9718 (description
9719 "Libunique is a library for writing single instance applications. If you
9720 launch a single instance application twice, the second instance will either just
9721 quit or will send a message to the running instance. Libunique makes it easy to
9722 write this kind of application, by providing a base class, taking care of all
9723 the IPC machinery needed to send messages to a running instance, and also
9724 handling the startup notification side.")
9725 (license license:lgpl2.1+)))
9726
9727 (define-public gnome-calculator
9728 (package
9729 (name "gnome-calculator")
9730 (version "3.34.1")
9731 (source
9732 (origin
9733 (method url-fetch)
9734 (uri (string-append "mirror://gnome/sources/" name "/"
9735 (version-major+minor version) "/"
9736 name "-" version ".tar.xz"))
9737 (sha256
9738 (base32
9739 "0lbh87255zzggqzai6543qg920y52bl4vs5m5h5087ghzg14hlsd"))))
9740 (build-system meson-build-system)
9741 (arguments '(#:glib-or-gtk? #t))
9742 (native-inputs
9743 `(("gettext" ,gettext-minimal)
9744 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
9745 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
9746 ("itstool" ,itstool)
9747 ("vala" ,vala)
9748 ("pkg-config" ,pkg-config)))
9749 (inputs
9750 `(("glib" ,glib)
9751 ("gtksourceview" ,gtksourceview)
9752 ("libgee" ,libgee)
9753 ("libsoup" ,libsoup)
9754 ("libxml2" ,libxml2)
9755 ("mpc" ,mpc)
9756 ("mpfr" ,mpfr)))
9757 (home-page "https://wiki.gnome.org/Apps/Calculator")
9758 (synopsis "Desktop calculator")
9759 (description
9760 "Calculator is an application that solves mathematical equations and
9761 is suitable as a default application in a Desktop environment.")
9762 (license license:gpl3)))
9763
9764 (define-public xpad
9765 (package
9766 (name "xpad")
9767 (version "5.1.0")
9768 (source
9769 (origin
9770 (method url-fetch)
9771 (uri (string-append "https://launchpad.net/xpad/trunk/"
9772 version "/+download/"
9773 name "-" version ".tar.bz2"))
9774 (sha256
9775 (base32
9776 "0l0g5x8g6dwhf5ksnqqrjjsycy57kcvdslkmsr6bl3vrsjd7qml3"))))
9777 (build-system gnu-build-system)
9778 (native-inputs
9779 `(("autoconf" ,autoconf)
9780 ("automake" ,automake)
9781 ("gtk+:bin" ,gtk+ "bin")
9782 ("intltool" ,intltool)
9783 ("pkg-config" ,pkg-config)))
9784 (inputs
9785 `(("gtksourceview" ,gtksourceview-3)
9786 ("libsm" ,libsm)))
9787 (home-page "https://wiki.gnome.org/Apps/Xpad")
9788 (synopsis "Virtual sticky note")
9789 (description
9790 "Xpad is a sticky note that strives to be simple, fault tolerant,
9791 and customizable. Xpad consists of independent pad windows, each is
9792 basically a text box in which notes can be written.")
9793 (license license:gpl3+)))
9794
9795 (define-public gucharmap
9796 (let ((unicode-files
9797 '(("Blocks.txt"
9798 "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1")
9799 ("DerivedAge.txt"
9800 "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6")
9801 ("NamesList.txt"
9802 "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61")
9803 ("Scripts.txt"
9804 "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx")
9805 ("UnicodeData.txt"
9806 "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap")
9807 ("Unihan.zip"
9808 "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"))))
9809 (package
9810 (name "gucharmap")
9811 (version "12.0.1")
9812 (source
9813 (origin
9814 (method url-fetch)
9815 (uri (string-append "mirror://gnome/sources/" name "/"
9816 (version-major+minor version) "/"
9817 name "-" version ".tar.xz"))
9818 (sha256
9819 (base32
9820 "0m915hm2b2d6r3vs1l80rqpssvg78pv8j6nv54yg62kzknnqmpir"))))
9821 (build-system glib-or-gtk-build-system)
9822 (arguments
9823 `(#:modules ((ice-9 match)
9824 (guix build glib-or-gtk-build-system)
9825 (guix build utils))
9826 #:configure-flags
9827 (list "--with-unicode-data=../unicode-data")
9828 #:phases
9829 (modify-phases %standard-phases
9830 (add-after 'unpack 'prepare-unicode-data
9831 (lambda* (#:key inputs #:allow-other-keys)
9832 (mkdir-p "../unicode-data")
9833 (with-directory-excursion "../unicode-data"
9834 (for-each (match-lambda
9835 ((file _)
9836 (install-file (assoc-ref inputs file) ".")))
9837 ',unicode-files))
9838 #t)))))
9839 (native-inputs
9840 `(("desktop-file-utils" ,desktop-file-utils)
9841 ("glib:bin" ,glib "bin") ; for glib-compile-resources.
9842 ("gobject-introspection" ,gobject-introspection)
9843 ("intltool" ,intltool)
9844 ("itstool" ,itstool)
9845 ("pkg-config" ,pkg-config)
9846 ,@(map (match-lambda
9847 ((file hash)
9848 `(,file
9849 ,(origin
9850 (method url-fetch)
9851 (uri (string-append
9852 "http://www.unicode.org/Public/12.0.0/ucd/"
9853 file))
9854 (sha256 (base32 hash))))))
9855 unicode-files)
9856 ("unzip" ,unzip)))
9857 (inputs
9858 `(("gtk+" ,gtk+)
9859 ("xmllint" ,libxml2)))
9860 (home-page "https://wiki.gnome.org/Apps/Gucharmap")
9861 (synopsis "Unicode character picker and font browser")
9862 (description
9863 "This program allows you to browse through all the available Unicode
9864 characters and categories for the installed fonts, and to examine their
9865 detailed properties. It is an easy way to find the character you might
9866 only know by its Unicode name or code point.")
9867 (license license:gpl3+))))
9868
9869 (define-public bluefish
9870 (package
9871 (name "bluefish")
9872 (version "2.2.12")
9873 (source
9874 (origin
9875 (method url-fetch)
9876 (uri (string-append "https://www.bennewitz.com/bluefish/stable/source/"
9877 "bluefish-" version ".tar.gz"))
9878 (sha256
9879 (base32 "09hgxq139kbkjda5y073lqhq1z1x7cx0j80jh77afrqa3y9c53wl"))))
9880 (build-system gnu-build-system)
9881 (native-inputs
9882 `(("desktop-file-utils" ,desktop-file-utils)
9883 ("intltool" ,intltool)
9884 ("pkg-config" ,pkg-config)))
9885 (inputs
9886 `(("enchant" ,enchant)
9887 ("gtk+" ,gtk+)
9888 ("python" ,python-wrapper)
9889 ("xmllint" ,libxml2)
9890 ("gucharmap" ,gucharmap)))
9891 (home-page "http://bluefish.openoffice.nl")
9892 (synopsis "Web development studio")
9893 (description
9894 "Bluefish is an editor aimed at programmers and web developers,
9895 with many options to write web sites, scripts and other code.
9896 Bluefish supports many programming and markup languages.")
9897 (license license:gpl3+)))
9898
9899 (define-public gnome-system-monitor
9900 (package
9901 (name "gnome-system-monitor")
9902 (version "3.32.1")
9903 (source
9904 (origin
9905 (method url-fetch)
9906 (uri (string-append "mirror://gnome/sources/" name "/"
9907 (version-major+minor version) "/"
9908 name "-" version ".tar.xz"))
9909 (sha256
9910 (base32
9911 "1wd43qdgjav6xamq5z5cy8fri5zr01jga3plc9w95gcia0rk3ha8"))))
9912 (build-system meson-build-system)
9913 (arguments
9914 '(#:glib-or-gtk? #t
9915 #:configure-flags '("-Dsystemd=false")))
9916 (native-inputs
9917 `(("glib:bin" ,glib "bin") ; for glib-mkenums.
9918 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
9919 ("intltool" ,intltool)
9920 ("itstool" ,itstool)
9921 ("libgtop" ,libgtop)
9922 ("polkit" ,polkit)
9923 ("pkg-config" ,pkg-config)))
9924 (inputs
9925 `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
9926 ("gtk+" ,gtk+)
9927 ("gtkmm" ,gtkmm)
9928 ("librsvg" ,librsvg)
9929 ("libxml2" ,libxml2)
9930 ("libwnck" ,libwnck)))
9931 (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
9932 (synopsis "Process viewer and system resource monitor for GNOME")
9933 (description
9934 "GNOME System Monitor is a GNOME process viewer and system monitor with
9935 an attractive, easy-to-use interface. It has features, such as a tree view
9936 for process dependencies, icons for processes, the ability to hide processes,
9937 graphical time histories of CPU/memory/swap usage and the ability to
9938 kill/reinice processes.")
9939 (license license:gpl2+)))
9940
9941 (define-public python-pyatspi
9942 (package
9943 (name "python-pyatspi")
9944 (version "2.34.0")
9945 (source (origin
9946 (method url-fetch)
9947 (uri (string-append
9948 "mirror://gnome/sources/pyatspi/"
9949 (version-major+minor version)
9950 "/pyatspi-" version ".tar.xz"))
9951 (sha256
9952 (base32
9953 "0j3f75j0zd6ca8msg7yr19qsfirqkn9fk8pqbjnlhqrpri455g4p"))))
9954 (build-system gnu-build-system)
9955 (arguments
9956 `(#:phases
9957 (modify-phases %standard-phases
9958 (add-before 'build 'fix-atk-load
9959 (lambda _
9960 (substitute* "pyatspi/__init__.py"
9961 (("from gi.repository import Atspi")
9962 "gi.require_version('Gtk', '3.0')
9963 from gi.repository import Gtk
9964 from gi.repository import Atspi"))
9965 #t)))))
9966 (native-inputs
9967 `(("pkg-config" ,pkg-config)))
9968 (inputs
9969 `(("python" ,python)))
9970 (propagated-inputs
9971 `(("python-pygobject" ,python-pygobject)))
9972 (synopsis "Python client bindings for D-Bus AT-SPI")
9973 (home-page "https://wiki.linuxfoundation.org/accessibility\
9974 /atk/at-spi/at-spi_on_d-bus")
9975 (description
9976 "This package includes a python client library for the AT-SPI D-Bus
9977 accessibility infrastructure.")
9978 (license license:lgpl2.0)
9979 (properties '((upstream-name . "pyatspi")))))
9980
9981 (define-public python2-pyatspi
9982 (package
9983 (inherit python-pyatspi)
9984 (name "python2-pyatspi")
9985 (inputs
9986 `(("python" ,python-2)))
9987 (propagated-inputs
9988 `(("python-pygobject" ,python2-pygobject)))))
9989
9990 (define-public orca
9991 (package
9992 (name "orca")
9993 (version "3.34.1")
9994 (source (origin
9995 (method url-fetch)
9996 (uri (string-append
9997 "mirror://gnome/sources/" name "/"
9998 (version-major+minor version) "/"
9999 name "-" version ".tar.xz"))
10000 (sha256
10001 (base32
10002 "1q38n7hyshkiszmn361skxjynxr31lcms7a1iny6d0zlpmh1vnk4"))))
10003 (build-system glib-or-gtk-build-system)
10004 (arguments
10005 '(#:phases
10006 (modify-phases %standard-phases
10007 (add-before 'configure 'qualify-xkbcomp
10008 (lambda* (#:key inputs #:allow-other-keys)
10009 (let ((xkbcomp (string-append
10010 (assoc-ref inputs "xkbcomp") "/bin/xkbcomp")))
10011 (substitute* "src/orca/orca.py"
10012 (("'xkbcomp'") (format #f "'~a'" xkbcomp))))
10013 #t))
10014 (add-after 'install 'wrap-orca
10015 (lambda* (#:key outputs #:allow-other-keys)
10016 (let* ((out (assoc-ref outputs "out"))
10017 (prog (string-append out "/bin/orca")))
10018 (wrap-program prog
10019 `("GI_TYPELIB_PATH" ":" prefix
10020 (,(getenv "GI_TYPELIB_PATH")))
10021 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
10022 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
10023 `("PYTHONPATH" ":" prefix
10024 (,(getenv "PYTHONPATH")))))
10025 #t)))))
10026 (native-inputs
10027 `(("intltool" ,intltool)
10028 ("itstool" ,itstool)
10029 ("pkg-config" ,pkg-config)
10030 ("xmllint" ,libxml2)))
10031 (inputs
10032 `(("at-spi2-atk" ,at-spi2-atk)
10033 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10034 ("gstreamer" ,gstreamer)
10035 ("gst-plugins-base" ,gst-plugins-base)
10036 ("gst-plugins-good" ,gst-plugins-good)
10037 ("gtk+" ,gtk+)
10038 ("python" ,python)
10039 ("python-pygobject" ,python-pygobject)
10040 ("python-pyatspi" ,python-pyatspi)
10041 ("python-speechd" ,speech-dispatcher)
10042 ("xkbcomp" ,xkbcomp)))
10043 (synopsis
10044 "Screen reader for individuals who are blind or visually impaired")
10045 (home-page "https://wiki.gnome.org/Projects/Orca")
10046 (description
10047 "Orca is a screen reader that provides access to the graphical desktop
10048 via speech and refreshable braille. Orca works with applications and toolkits
10049 that support the Assistive Technology Service Provider Interface (AT-SPI).")
10050 (license license:lgpl2.1+)))
10051
10052 (define-public gspell
10053 (package
10054 (name "gspell")
10055 (version "1.8.2")
10056 (source (origin
10057 (method url-fetch)
10058 (uri (string-append "mirror://gnome/sources/" name "/"
10059 (version-major+minor version) "/"
10060 name "-" version ".tar.xz"))
10061 (sha256
10062 (base32
10063 "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
10064 (patches (search-patches "gspell-dash-test.patch"))))
10065 (build-system glib-or-gtk-build-system)
10066 (arguments
10067 '(#:configure-flags (list "--enable-vala")
10068 #:phases
10069 (modify-phases %standard-phases
10070 (add-before 'check 'pre-check
10071 (lambda* (#:key inputs #:allow-other-keys)
10072 ;; Tests require a running X server.
10073 (system "Xvfb :1 &")
10074 (setenv "DISPLAY" ":1")
10075
10076 ;; For the missing /etc/machine-id.
10077 (setenv "DBUS_FATAL_WARNINGS" "0")
10078
10079 ;; Allow Enchant and its Aspell backend to find the en_US
10080 ;; dictionary.
10081 (setenv "ASPELL_DICT_DIR"
10082 (string-append (assoc-ref inputs "aspell-dict-en")
10083 "/lib/aspell"))
10084 #t)))))
10085 (inputs
10086 `(("gtk+" ,gtk+)
10087 ("glib" ,glib)
10088 ("iso-codes" ,iso-codes)))
10089 (native-inputs
10090 `(("glib" ,glib "bin")
10091 ("gobject-introspection" ,gobject-introspection)
10092 ("pkg-config" ,pkg-config)
10093 ("vala" ,vala) ;for VAPI, needed by Geary
10094 ("xmllint" ,libxml2)
10095
10096 ;; For tests.
10097 ("aspell-dict-en" ,aspell-dict-en)
10098 ("xorg-server" ,xorg-server-for-tests)))
10099 (propagated-inputs
10100 `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
10101 (home-page "https://wiki.gnome.org/Projects/gspell")
10102 (synopsis "GNOME's alternative spell checker")
10103 (description
10104 "gspell provides a flexible API to add spell-checking to a GTK+
10105 application. It provides a GObject API, spell-checking to text entries and
10106 text views, and buttons to choose the language.")
10107 (license license:gpl2+)))
10108
10109 (define-public gnome-planner
10110 (package
10111 (name "gnome-planner")
10112 (version "0.14.6")
10113 (source (origin
10114 (method url-fetch)
10115 (uri (string-append "mirror://gnome/sources/planner/"
10116 (version-major+minor version) "/planner-"
10117 version ".tar.xz"))
10118 (sha256
10119 (base32
10120 "15h6ps58giy5r1g66sg1l4xzhjssl362mfny2x09khdqsvk2j38k"))))
10121 (build-system glib-or-gtk-build-system)
10122 (arguments
10123 ;; Disable the Python bindings because the Planner program functions
10124 ;; without them, and (as of 2017-06-13) we have not packaged all of
10125 ;; packages that are necessary for building the Python bindings.
10126 `(#:configure-flags
10127 (list "--disable-python"
10128 ,@(if (string=? "aarch64-linux" (%current-system))
10129 '("--build=aarch64-unknown-linux-gnu")
10130 '()))))
10131 (inputs
10132 `(("libgnomecanvas" ,libgnomecanvas)
10133 ("libgnomeui" ,libgnomeui)
10134 ("libglade" ,libglade)
10135 ("gnome-vfs" ,gnome-vfs)
10136 ("gconf" ,gconf)
10137 ("libxml2" ,libxml2)
10138 ("libxslt" ,libxslt)
10139 ("gtk+" ,gtk+)
10140 ("glib" ,glib)))
10141 (native-inputs
10142 `(("intltool" ,intltool)
10143 ("scrollkeeper" ,scrollkeeper)
10144 ("pkg-config" ,pkg-config)))
10145 (home-page "https://wiki.gnome.org/Apps/Planner")
10146 (synopsis "Project management software for the GNOME desktop")
10147 (description
10148 "GNOME Planner is a project management tool based on the Work Breakdown
10149 Structure (WBS). Its goal is to enable you to easily plan projects. Based on
10150 the resources, tasks, and constraints that you define, Planner generates
10151 various views into a project. For example, Planner can show a Gantt chart of
10152 the project. It can show a detailed summary of tasks including their
10153 duration, cost, and current progress. It can also show a report of resource
10154 utilization that highlights under-utilized and over-utilized resources. These
10155 views can be printed as PDF or PostScript files, or exported to HTML.")
10156 (license license:gpl2+)))
10157
10158 (define-public lollypop
10159 (package
10160 (name "lollypop")
10161 (version "1.4.6")
10162 (source
10163 (origin
10164 (method url-fetch)
10165 (uri (string-append "https://adishatz.org/lollypop/"
10166 "lollypop-" version ".tar.xz"))
10167 (sha256
10168 (base32 "1hlahr50gsagx1ifcdk4yn43xps6w0vqn0gnd6xckfc7qmg1pgq7"))))
10169 (build-system meson-build-system)
10170 (arguments
10171 `(#:imported-modules
10172 (,@%meson-build-system-modules
10173 (guix build python-build-system))
10174 #:modules
10175 ((guix build meson-build-system)
10176 ((guix build python-build-system) #:prefix python:)
10177 (guix build utils))
10178 #:glib-or-gtk? #t
10179 #:tests? #f ; no test suite
10180 #:phases
10181 (modify-phases %standard-phases
10182 (add-after 'install 'wrap-program
10183 (lambda* (#:key outputs #:allow-other-keys)
10184 (let ((out (assoc-ref outputs "out"))
10185 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
10186 (wrap-program (string-append out "/bin/lollypop")
10187 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
10188 #t))
10189 (add-after 'install 'wrap-python
10190 (assoc-ref python:%standard-phases 'wrap)))))
10191 (native-inputs
10192 `(("intltool" ,intltool)
10193 ("itstool" ,itstool)
10194 ("glib:bin" ,glib "bin") ; For glib-compile-resources
10195 ("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
10196 ("pkg-config" ,pkg-config)))
10197 (inputs
10198 `(("glib-networking" ,glib-networking)
10199 ("gobject-introspection" ,gobject-introspection)
10200 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10201 ("gst-plugins-base" ,gst-plugins-base)
10202 ("libnotify" ,libnotify)
10203 ("libsecret" ,libsecret)
10204 ("libhandy" ,libhandy)
10205 ("libsoup" ,libsoup)
10206 ("python" ,python)
10207 ("python-beautifulsoup4" ,python-beautifulsoup4)
10208 ("python-gst" ,python-gst)
10209 ("python-pil" ,python-pillow)
10210 ("python-pycairo" ,python-pycairo)
10211 ("python-pygobject" ,python-pygobject)
10212 ("python-pylast" ,python-pylast)
10213 ("totem-pl-parser" ,totem-pl-parser)
10214 ("webkitgtk" ,webkitgtk)))
10215 (propagated-inputs
10216 `(;; gst-plugins-base is required to start Lollypop,
10217 ;; the others are required to play streaming.
10218 ("gst-plugins-good" ,gst-plugins-good)
10219 ("gst-plugins-ugly" ,gst-plugins-ugly)))
10220 (home-page "https://wiki.gnome.org/Apps/Lollypop")
10221 (synopsis "GNOME music playing application")
10222 (description
10223 "Lollypop is a music player designed to play well with GNOME desktop.
10224 Lollypop plays audio formats such as mp3, mp4, ogg and flac and gets information
10225 from artists and tracks from the web. It also fetches cover artworks
10226 automatically and it can stream songs from online music services and charts.")
10227 (license license:gpl3+)))
10228
10229 (define-public gnome-video-effects
10230 (package
10231 (name "gnome-video-effects")
10232 (version "0.5.0")
10233 (source (origin
10234 (method url-fetch)
10235 (uri (string-append "mirror://gnome/sources/" name "/"
10236 (version-major+minor version) "/" name "-"
10237 version ".tar.xz"))
10238 (sha256
10239 (base32
10240 "1j6h98whgkcxrh30bwvnxvyqxrxchgpdgqhl0j71xz7x72dqxijd"))))
10241 (build-system meson-build-system)
10242 (native-inputs
10243 `(("gettext" ,gettext-minimal)
10244 ("pkg-config" ,pkg-config)))
10245 (home-page "https://wiki.gnome.org/Projects/GnomeVideoEffects")
10246 (synopsis "Video effects for Cheese and other GNOME applications")
10247 (description
10248 "A collection of GStreamer video filters and effects to be used in
10249 photo-booth-like software, such as Cheese.")
10250 (license license:gpl2+)))
10251
10252 (define-public cheese
10253 (package
10254 (name "cheese")
10255 (version "3.38.0")
10256 (source (origin
10257 (method url-fetch)
10258 (uri (string-append "mirror://gnome/sources/" name "/"
10259 (version-major+minor version) "/" name "-"
10260 version ".tar.xz"))
10261 (sha256
10262 (base32
10263 "0vyim2avlgq3a48rgdfz5g21kqk11mfb53b2l883340v88mp7ll8"))))
10264 (arguments
10265 `(#:glib-or-gtk? #t
10266 ;; Tests require GDK.
10267 #:tests? #f
10268 #:phases
10269 (modify-phases %standard-phases
10270 (add-after 'unpack 'skip-gtk-update-icon-cache
10271 (lambda _
10272 ;; Don't create 'icon-theme.cache'
10273 (substitute* "meson_post_install.py"
10274 (("gtk-update-icon-cache") (which "true")))
10275 #t))
10276 (add-after 'unpack 'patch-docbook-xml
10277 (lambda* (#:key inputs #:allow-other-keys)
10278 ;; Avoid a network connection attempt during the build.
10279 (substitute* '("docs/reference/cheese.xml"
10280 "docs/reference/cheese-docs.xml")
10281 (("http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd")
10282 (string-append (assoc-ref inputs "docbook-xml")
10283 "/xml/dtd/docbook/docbookx.dtd")))
10284 #t))
10285 (add-after 'install 'wrap-cheese
10286 (lambda* (#:key inputs outputs #:allow-other-keys)
10287 (let ((out (assoc-ref outputs "out"))
10288 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
10289 (wrap-program (string-append out "/bin/cheese")
10290 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
10291 #t)))))
10292 (build-system meson-build-system)
10293 (native-inputs
10294 `(("docbook-xsl" ,docbook-xsl)
10295 ("docbook-xml" ,docbook-xml-4.3)
10296 ("gettext" ,gettext-minimal)
10297 ("glib:bin" ,glib "bin")
10298 ("gtk-doc" ,gtk-doc)
10299 ("itstool" ,itstool)
10300 ("libxml2" ,libxml2)
10301 ("libxslt" ,libxslt)
10302 ("pkg-config" ,pkg-config)
10303 ("vala" ,vala)))
10304 (propagated-inputs
10305 `(("gnome-video-effects" ,gnome-video-effects)
10306 ("clutter" ,clutter)
10307 ("clutter-gst" ,clutter-gst)
10308 ("clutter-gtk" ,clutter-gtk)
10309 ("libcanberra" ,libcanberra)
10310 ("gdk-pixbuf" ,gdk-pixbuf)
10311 ("glib" ,glib)
10312 ("gstreamer" ,gstreamer)))
10313 (inputs
10314 `(("gnome-desktop" ,gnome-desktop)
10315 ("gobject-introspection" ,gobject-introspection)
10316 ("gst-plugins-base" ,gst-plugins-base)
10317 ("gst-plugins-bad" ,gst-plugins-bad)
10318 ("gtk+" ,gtk+)
10319 ("libx11" ,libx11)
10320 ("libxtst" ,libxtst)))
10321 (home-page "https://wiki.gnome.org/Apps/Cheese")
10322 (synopsis "Webcam photo booth software for GNOME")
10323 (description
10324 "Cheese uses your webcam to take photos and videos. Cheese can also
10325 apply fancy special effects and lets you share the fun with others.")
10326 (license license:gpl2+)))
10327
10328 (define-public passwordsafe
10329 (package
10330 (name "passwordsafe")
10331 (version "3.99.2")
10332 (source
10333 (origin
10334 (method git-fetch)
10335 (uri (git-reference
10336 (url "https://gitlab.gnome.org/World/PasswordSafe")
10337 (commit version)))
10338 (file-name (git-file-name name version))
10339 (sha256
10340 (base32 "0pi2l4gwf8paxm858mxrcsk5nr0c0zw5ycax40mghndb6b1qmmhf"))))
10341 (build-system meson-build-system)
10342 (arguments
10343 `(#:glib-or-gtk? #t
10344 #:phases
10345 (modify-phases %standard-phases
10346 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
10347 (lambda* (#:key outputs #:allow-other-keys)
10348 (let ((prog (string-append (assoc-ref outputs "out")
10349 "/bin/gnome-passwordsafe"))
10350 (pylib (string-append (assoc-ref outputs "out")
10351 "/lib/python"
10352 ,(version-major+minor
10353 (package-version python))
10354 "/site-packages")))
10355 (wrap-program prog
10356 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
10357 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
10358 #t))))))
10359 (native-inputs
10360 `(("desktop-file-utils" ,desktop-file-utils)
10361 ("gettext" ,gettext-minimal)
10362 ("glib:bin" ,glib "bin")
10363 ("gobject-introspection" ,gobject-introspection)
10364 ("gtk+:bin" ,gtk+ "bin")
10365 ("pkg-config" ,pkg-config)))
10366 (inputs
10367 `(("glib" ,glib)
10368 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10369 ("gtk+" ,gtk+)
10370 ("libhandy" ,libhandy-0.0)
10371 ("libpwquality" ,libpwquality)
10372 ("python-pygobject" ,python-pygobject)
10373 ("python-pykeepass" ,python-pykeepass)))
10374 (home-page "https://gitlab.gnome.org/World/PasswordSafe")
10375 (synopsis "Password manager for the GNOME desktop")
10376 (description
10377 "Password Safe is a password manager which makes use of the KeePass v4
10378 format. It integrates perfectly with the GNOME desktop and provides an easy
10379 and uncluttered interface for the management of password databases.")
10380 (license license:gpl3+)))
10381
10382 (define-public sound-juicer
10383 (package
10384 (name "sound-juicer")
10385 (version "3.24.0")
10386 (source
10387 (origin
10388 (method url-fetch)
10389 (uri (string-append "mirror://gnome/sources/" name "/"
10390 (version-major+minor version) "/"
10391 name "-" version ".tar.xz"))
10392 (sha256
10393 (base32
10394 "19qg4xv0f9rkq34lragkmhii1llxsa87llbl28i759b0ks4f6sny"))))
10395 (build-system glib-or-gtk-build-system)
10396 (native-inputs
10397 `(("desktop-file-utils" ,desktop-file-utils)
10398 ("intltool" ,intltool)
10399 ("itstool" ,itstool)
10400 ("pkg-config" ,pkg-config)
10401 ("xmllint" ,libxml2)))
10402 (inputs
10403 `(("gtk+" ,gtk+)
10404 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10405 ("gstreamer" ,gstreamer)
10406 ("gst-plugins-base" ,gst-plugins-base)
10407 ("gst-plugins-good" ,gst-plugins-good)
10408 ("iso-codes" ,iso-codes)
10409 ("libbrasero-media3" ,brasero)
10410 ("libcanberra" ,libcanberra)
10411 ("libdiscid" ,libdiscid)
10412 ("libmusicbrainz" ,libmusicbrainz)
10413 ("neon" ,neon)))
10414 (home-page "https://wiki.gnome.org/Apps/SoundJuicer")
10415 (synopsis "Audio music cd ripper")
10416 (description "Sound Juicer extracts audio from compact discs and convert it
10417 into audio files that a personal computer or digital audio player can play.
10418 It supports ripping to any audio codec supported by a GStreamer plugin, such as
10419 mp3, Ogg Vorbis and FLAC")
10420 (license license:gpl2+)))
10421
10422 (define-public soundconverter
10423 (package
10424 (name "soundconverter")
10425 (version "3.0.2")
10426 (source
10427 (origin
10428 (method url-fetch)
10429 (uri (string-append "https://launchpad.net/soundconverter/trunk/"
10430 version "/+download/"
10431 "soundconverter-" version ".tar.xz"))
10432
10433 (sha256
10434 (base32 "1jv8m82hi23ilrgdznlc1jhp2jm8bw1yrw0chh3qw2l0sixvkl11"))))
10435 (build-system glib-or-gtk-build-system)
10436 (arguments
10437 `(#:imported-modules ((guix build python-build-system)
10438 (guix build glib-or-gtk-build-system)
10439 ,@%gnu-build-system-modules)
10440
10441 #:modules ((guix build glib-or-gtk-build-system)
10442 (guix build utils)
10443 ((guix build gnu-build-system) #:prefix gnu:)
10444 ((guix build python-build-system) #:prefix python:))
10445
10446 #:phases
10447 (modify-phases %standard-phases
10448 (add-after 'install 'wrap-soundconverter-for-python
10449 (assoc-ref python:%standard-phases 'wrap))
10450 (add-after 'install 'wrap-soundconverter
10451 (lambda* (#:key inputs outputs #:allow-other-keys)
10452 (let ((out (assoc-ref outputs "out"))
10453 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
10454 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
10455 (wrap-program (string-append out "/bin/soundconverter")
10456 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
10457 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
10458 #t)))))
10459 (native-inputs
10460 `(("intltool" ,intltool)
10461 ("pkg-config" ,pkg-config)
10462 ("glib:bin" ,glib "bin")))
10463 (inputs
10464 `(("gtk+" ,gtk+)
10465 ("python" ,python)
10466 ("python-pygobject" ,python-pygobject)
10467 ("gstreamer" ,gstreamer)
10468 ("gst-plugins-base" ,gst-plugins-base)))
10469 (home-page "https://soundconverter.org/")
10470 (synopsis "Convert between audio formats with a graphical interface")
10471 (description
10472 "SoundConverter supports converting between many audio formats including
10473 Opus, Ogg Vorbis, FLAC and more. It supports parallel conversion, and
10474 configurable file renaming. ")
10475 (license license:gpl3)))
10476
10477 (define-public workrave
10478 (package
10479 (name "workrave")
10480 (version "1.10.42")
10481 (source
10482 (origin
10483 (method git-fetch)
10484 (uri (git-reference
10485 (url "https://github.com/rcaelers/workrave")
10486 (commit (string-append "v" (string-map
10487 (match-lambda (#\. #\_) (chr chr))
10488 version)))))
10489 (file-name (git-file-name name version))
10490 (sha256
10491 (base32 "03i9kk8r1wgrfkkbwikx8wxaw4r4kn62vismr2zdq5g34fkkjh95"))))
10492 (build-system glib-or-gtk-build-system)
10493 (arguments
10494 ;; The only tests are maintainer tests (in po/), which fail.
10495 `(#:tests? #f))
10496 (inputs `(("glib" ,glib)
10497 ("gtk+" ,gtk+)
10498 ("gdk-pixbuf" ,gdk-pixbuf)
10499 ("gtkmm" ,gtkmm)
10500 ("glibmm" ,glibmm)
10501 ("libx11" ,libx11)
10502 ("libxtst" ,libxtst)
10503 ("dconf" ,dconf)
10504 ("libice" ,libice)
10505 ("libsm" ,libsm)
10506 ("libxscrnsaver" ,libxscrnsaver)))
10507 (native-inputs `(("boost" ,boost)
10508 ("pkg-config" ,pkg-config)
10509 ("gettext" ,gettext-minimal)
10510 ("autoconf" ,autoconf)
10511 ("autoconf-archive" , autoconf-archive)
10512 ("automake" ,automake)
10513 ("libtool" ,libtool)
10514 ("intltool" ,intltool)
10515 ("gobject-introspection" ,gobject-introspection)
10516 ("python3" ,python-3)
10517 ("python-jinja2" ,python-jinja2)))
10518 (synopsis "Tool to help prevent repetitive strain injury (RSI)")
10519 (description
10520 "Workrave is a program that assists in the recovery and prevention of
10521 repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
10522 micro-pauses and rest breaks, and restricts you to your daily limit.")
10523 (home-page "http://www.workrave.org")
10524 (license license:gpl3+)))
10525
10526 (define-public ghex
10527 (package
10528 (name "ghex")
10529 (version "3.18.4")
10530 (source (origin
10531 (method url-fetch)
10532 (uri (string-append "mirror://gnome/sources/ghex/"
10533 (version-major+minor version) "/"
10534 "ghex-" version ".tar.xz"))
10535 (sha256
10536 (base32
10537 "1h1pjrr9wynclfykizqd78dbi785wjz6b63p31k87kjvzy8w3nf2"))))
10538 (build-system meson-build-system)
10539 (arguments
10540 '(#:glib-or-gtk? #t
10541 #:phases
10542 (modify-phases %standard-phases
10543 (add-after 'unpack 'skip-gtk-update-icon-cache
10544 ;; Don't create 'icon-theme.cache'.
10545 (lambda _
10546 (substitute* "meson_post_install.py"
10547 (("gtk-update-icon-cache") (which "true")))
10548 #t)))))
10549 (native-inputs
10550 `(("pkg-config" ,pkg-config)
10551 ("glib:bin" ,glib "bin") ; for glib-compile-schemas
10552 ("gnome-common" ,gnome-common)
10553 ("which" ,which)
10554 ("intltool" ,intltool)
10555 ("yelp-tools" ,yelp-tools)
10556 ("desktop-file-utils" ,desktop-file-utils))) ; for 'desktop-file-validate'
10557 (inputs
10558 `(("atk" ,atk)
10559 ("gtk" ,gtk+)))
10560 (synopsis "GNOME hexadecimal editor")
10561 (description "The GHex program can view and edit files in two ways:
10562 hexadecimal or ASCII. It is useful for editing binary files in general.")
10563 (home-page "https://wiki.gnome.org/Apps/Ghex")
10564 (license license:gpl2)))
10565
10566 (define-public libdazzle
10567 (package
10568 (name "libdazzle")
10569 (version "3.37.1")
10570 (source (origin
10571 (method url-fetch)
10572 (uri (string-append "mirror://gnome/sources/libdazzle/"
10573 (version-major+minor version) "/"
10574 "libdazzle-" version ".tar.xz"))
10575 (sha256
10576 (base32
10577 "03r5cr11dc031qa3694bpgm3lajrhiiln67kvl7vjj4q0scf7w7x"))))
10578 (build-system meson-build-system)
10579 (arguments
10580 `(#:phases
10581 (modify-phases %standard-phases
10582 (add-before 'check 'pre-check
10583 (lambda _
10584 ;; Tests require a running X server.
10585 (system "Xvfb :1 &")
10586 (setenv "DISPLAY" ":1")
10587 #t)))))
10588 (native-inputs
10589 `(("glib" ,glib "bin") ; glib-compile-resources
10590 ("pkg-config" ,pkg-config)
10591 ;; For tests.
10592 ("xorg-server" ,xorg-server-for-tests)))
10593 (inputs
10594 `(("glib" ,glib)
10595 ("gobject-introspection" ,gobject-introspection)
10596 ("gtk+" ,gtk+)
10597 ("vala" ,vala)))
10598 (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
10599 (synopsis "Companion library to GObject and Gtk+")
10600 (description "The libdazzle library is a companion library to GObject and
10601 Gtk+. It provides various features that the authors wish were in the
10602 underlying library but cannot for various reasons. In most cases, they are
10603 wildly out of scope for those libraries. In other cases, they are not quite
10604 generic enough to work for everyone.")
10605 (license license:gpl3+)))
10606
10607 (define-public evolution
10608 (package
10609 (name "evolution")
10610 (version "3.34.2")
10611 (source (origin
10612 (method url-fetch)
10613 (uri (string-append "mirror://gnome/sources/evolution/"
10614 (version-major+minor version) "/"
10615 "evolution-" version ".tar.xz"))
10616 (sha256
10617 (base32
10618 "164vy8h432pjglafn8y2ms4gsvk3kbgc63h5qp0mk5dv4smsp29c"))))
10619 (build-system cmake-build-system)
10620 (arguments
10621 `(#:imported-modules (,@%cmake-build-system-modules
10622 (guix build glib-or-gtk-build-system))
10623 #:modules ((guix build cmake-build-system)
10624 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
10625 (guix build utils))
10626 #:configure-flags
10627 (list "-DENABLE_PST_IMPORT=OFF" ; libpst is not packaged
10628 "-DENABLE_LIBCRYPTUI=OFF") ; libcryptui hasn't seen a release
10629 ; in four years and cannot be built.
10630 #:phases
10631 (modify-phases %standard-phases
10632 ;; The build system attempts to install user interface modules to the
10633 ;; output directory of the "evolution-data-server" package. This
10634 ;; change redirects that change.
10635 (add-after 'unpack 'patch-ui-module-dir
10636 (lambda* (#:key outputs #:allow-other-keys)
10637 (substitute* "src/modules/alarm-notify/CMakeLists.txt"
10638 (("\\$\\{edsuimoduledir\\}")
10639 (string-append (assoc-ref outputs "out")
10640 "/lib/evolution-data-server/ui-modules")))
10641 #t))
10642 (add-after 'install 'glib-or-gtk-compile-schemas
10643 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
10644 (add-after 'install 'glib-or-gtk-wrap
10645 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
10646 (native-inputs
10647 `(("glib" ,glib "bin") ; glib-mkenums
10648 ("pkg-config" ,pkg-config)
10649 ("intltool" ,intltool)
10650 ("itstool" ,itstool)))
10651 (inputs
10652 `(("enchant" ,enchant)
10653 ("evolution-data-server" ,evolution-data-server) ; must be the same version
10654 ("gcr" ,gcr)
10655 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10656 ("gnome-autoar" ,gnome-autoar)
10657 ("gnome-desktop" ,gnome-desktop)
10658 ("gspell" ,gspell)
10659 ("highlight" ,highlight)
10660 ("libcanberra" ,libcanberra)
10661 ("libgweather" ,libgweather)
10662 ("libnotify" ,libnotify)
10663 ("libsoup" ,libsoup)
10664 ("nss" ,nss)
10665 ("openldap" ,openldap)
10666 ("webkitgtk" ,webkitgtk)
10667 ("ytnef" ,ytnef)))
10668 (home-page "https://gitlab.gnome.org/GNOME/evolution")
10669 (synopsis "Manage your email, contacts and schedule")
10670 (description "Evolution is a personal information management application
10671 that provides integrated mail, calendaring and address book
10672 functionality.")
10673 ;; See COPYING for details.
10674 (license (list license:lgpl2.1 license:lgpl3 ; either one of these
10675 license:openldap2.8 ; addressbook/gui/component/openldap-extract.h
10676 license:lgpl2.1+)))) ; smime/lib/*
10677
10678 (define-public gthumb
10679 (package
10680 (name "gthumb")
10681 (version "3.8.2")
10682 (source (origin
10683 (method url-fetch)
10684 (uri (string-append "mirror://gnome/sources/gthumb/"
10685 (version-major+minor version) "/"
10686 "gthumb-" version ".tar.xz"))
10687 (sha256
10688 (base32
10689 "15wqks35ks5dm7zj046dfd45vvrilan2ayfy2sxiprv7q74cip2q"))))
10690 (build-system meson-build-system)
10691 (arguments
10692 `(#:glib-or-gtk? #t
10693 #:configure-flags
10694 ;; Ensure the RUNPATH contains all installed library locations.
10695 (list (string-append "-Dc_link_args=-Wl,-rpath="
10696 (assoc-ref %outputs "out")
10697 "/lib/gthumb/extensions")
10698 (string-append "-Dcpp_link_args=-Wl,-rpath="
10699 (assoc-ref %outputs "out")
10700 "/lib/gthumb/extensions"))))
10701 (native-inputs
10702 `(("pkg-config" ,pkg-config)
10703 ("glib:bin" ,glib "bin") ; for glib-compile-resources
10704 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
10705 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
10706 ("intltool" ,intltool)
10707 ("itstool" ,itstool)))
10708 (inputs
10709 `(("exiv2" ,exiv2)
10710 ("gtk" ,gtk+)
10711 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10712 ("gstreamer" ,gstreamer)
10713 ("clutter" ,clutter)
10714 ("clutter-gst" ,clutter-gst)
10715 ("clutter-gtk" ,clutter-gtk)
10716 ("libjpeg" ,libjpeg-turbo)
10717 ("libtiff" ,libtiff)
10718 ("libraw" ,libraw)))
10719 (home-page "https://wiki.gnome.org/Apps/Gthumb")
10720 (synopsis "GNOME image viewer and browser")
10721 (description "GThumb is an image viewer, browser, organizer, editor and
10722 advanced image management tool")
10723 (license license:gpl2+)))
10724
10725 (define-public terminator
10726 (package
10727 (name "terminator")
10728 (version "1.92")
10729 (source (origin
10730 (method url-fetch)
10731 (uri (string-append "https://github.com/gnome-" name "/" name "/"
10732 "releases/download/v" version "/"
10733 name "-" version ".tar.gz"))
10734 (sha256
10735 (base32
10736 "1wbkfp0nk6x9bcwi681zy30qmrp4h754sdz6b7hi9j22mmvdd50z"))))
10737 (build-system python-build-system)
10738 (native-inputs
10739 `(("gettext" ,gettext-minimal)
10740 ("glib:bin" ,glib "bin") ; for glib-compile-resources
10741 ("gobject-introspection" ,gobject-introspection)
10742 ("intltool" ,intltool)
10743 ("pkg-config" ,pkg-config)
10744 ("python-psutil" ,python-psutil)
10745 ("python-pytest-runner" ,python-pytest-runner)
10746 ("python-pytest" ,python-pytest)))
10747 (inputs
10748 `(("cairo" ,cairo)
10749 ("dbus-glib" ,dbus-glib)
10750 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10751 ("gtk+" ,gtk+)
10752 ("python-pycairo" ,python-pycairo)
10753 ("python-pygobject" ,python-pygobject)
10754 ("vte" ,vte)))
10755 (propagated-inputs
10756 `(("python-configobj" ,python-configobj)))
10757 (arguments
10758 `(#:imported-modules ((guix build glib-or-gtk-build-system)
10759 ,@%python-build-system-modules)
10760 #:modules ((guix build python-build-system)
10761 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
10762 (guix build utils))
10763 #:phases
10764 (modify-phases %standard-phases
10765 (add-after
10766 'install 'wrap-program
10767 (lambda* (#:key outputs #:allow-other-keys)
10768 (let ((prog (string-append (assoc-ref outputs "out")
10769 "/bin/terminator"))
10770 (pylib (string-append (assoc-ref outputs "out")
10771 "/lib/python"
10772 ,(version-major+minor
10773 (package-version python))
10774 "/site-packages")))
10775 (wrap-program prog
10776 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
10777 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
10778 #t)))
10779 (add-after 'wrap-program 'glib-or-gtk-wrap
10780 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
10781 (home-page "https://gnome-terminator.org/")
10782 (synopsis "Store and run multiple GNOME terminals in one window")
10783 (description
10784 "Terminator allows you to run multiple GNOME terminals in a grid and
10785 +tabs, and it supports drag and drop re-ordering of terminals.")
10786 (license license:gpl2)))
10787
10788 (define-public libhandy
10789 (package
10790 (name "libhandy")
10791 (version "1.0.2")
10792 (source
10793 (origin
10794 (method git-fetch)
10795 (uri (git-reference
10796 (url "https://gitlab.gnome.org/GNOME/libhandy")
10797 (commit version)))
10798 (file-name (git-file-name name version))
10799 (sha256
10800 (base32 "1bmmkahshvlvpsnb7zp8bddv7i1h5k4p967n6kxh71g1vnj8x20m"))))
10801 (build-system meson-build-system)
10802 (arguments
10803 `(#:configure-flags
10804 '("-Dglade_catalog=enabled"
10805 "-Dgtk_doc=true")
10806 #:phases
10807 (modify-phases %standard-phases
10808 (add-before 'check 'pre-check
10809 (lambda _
10810 ;; Tests require a running X server.
10811 (system "Xvfb :1 &")
10812 (setenv "DISPLAY" ":1")
10813 #t)))))
10814 (inputs
10815 `(("gtk+" ,gtk+)
10816 ("glade" ,glade3)
10817 ("libxml2" ,libxml2)))
10818 (native-inputs
10819 `(("glib:bin" ,glib "bin")
10820 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
10821 ("vala" ,vala)
10822 ("gtk-doc" ,gtk-doc)
10823 ("pkg-config" ,pkg-config)
10824 ("gettext" ,gettext-minimal)
10825
10826 ;; Test suite dependencies.
10827 ("xorg-server" ,xorg-server-for-tests)
10828 ("hicolor-icon-theme" ,hicolor-icon-theme)))
10829 (home-page "https://gitlab.gnome.org/GNOME/libhandy/")
10830 (synopsis "Library full of GTK+ widgets for mobile phones")
10831 (description "The aim of the handy library is to help with developing user
10832 interfaces for mobile devices using GTK+. It provides responsive GTK+ widgets
10833 for usage on small and big screens.")
10834 (license license:lgpl2.1+)))
10835
10836 (define-public libhandy-0.0
10837 (package
10838 (inherit libhandy)
10839 (version "0.0.13")
10840 (source
10841 (origin
10842 (method git-fetch)
10843 (uri (git-reference
10844 (url "https://gitlab.gnome.org/GNOME/libhandy")
10845 (commit (string-append "v" version))))
10846 (file-name (git-file-name "libhandy" version))
10847 (sha256
10848 (base32 "1y23k623sjkldfrdiwfarpchg5mg58smcy1pkgnwfwca15wm1ra5"))))
10849 (arguments
10850 (substitute-keyword-arguments (package-arguments libhandy)
10851 ((#:configure-flags flags)
10852 '(list "-Dglade_catalog=disabled" "-Dgtk_doc=true"))))))
10853
10854 (define-public libgit2-glib
10855 (package
10856 (name "libgit2-glib")
10857 (version "0.99.0.1")
10858 (source (origin
10859 (method url-fetch)
10860 (uri (string-append "mirror://gnome/sources/" name "/"
10861 (version-major+minor version) "/"
10862 name "-" version ".tar.xz"))
10863 (sha256
10864 (base32
10865 "1pmrcnsa7qdda73c3dxf47733mwprmj5ljpw3acxbj6r8k27anp0"))))
10866 (build-system meson-build-system)
10867 (native-inputs
10868 `(("glib:bin" ,glib "bin") ;; For glib-mkenums
10869 ("gobject-introspection" ,gobject-introspection)
10870 ("pkg-config" ,pkg-config)
10871 ("python-pygobject" ,python-pygobject)
10872 ("python-wrapper" ,python-wrapper)
10873 ("vala" ,vala)))
10874 (inputs
10875 `(("glib" ,glib)
10876 ("libssh2" ,libssh2)))
10877 (propagated-inputs
10878 `(;; In Requires of libgit2-glib.pc.
10879 ("libgit2" ,libgit2)))
10880 (synopsis "GLib wrapper around the libgit2 Git access library")
10881 (description "libgit2-glib is a GLib wrapper library around the libgit2 Git
10882 access library. It only implements the core plumbing functions, not really the
10883 higher level porcelain stuff.")
10884 (home-page "https://wiki.gnome.org/Projects/Libgit2-glib")
10885 (license license:gpl2+)))
10886
10887 (define-public gitg
10888 (package
10889 (name "gitg")
10890 (version "3.32.1")
10891 (source (origin
10892 (method url-fetch)
10893 (uri (string-append "mirror://gnome/sources/" name "/"
10894 (version-major+minor version) "/"
10895 name "-" version ".tar.xz"))
10896 (sha256
10897 (base32
10898 "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914"))))
10899 (build-system meson-build-system)
10900 (arguments
10901 `(#:glib-or-gtk? #t
10902 #:phases
10903 (modify-phases %standard-phases
10904 (add-after 'unpack 'disable-post-install-partially
10905 (lambda _
10906 (substitute* "meson_post_install.py"
10907 (("'python'") ; there are no python sources to compile
10908 (string-append "'" (which "true") "'"))
10909 (("gtk-update-icon-cache") (which "true")))
10910 #t))
10911 (add-after 'unpack 'fix-test-sources
10912 (lambda _
10913 (substitute* "tests/libgitg/test-commit.vala"
10914 (("/bin/bash") (which "bash")))
10915 #t))
10916 (add-after 'glib-or-gtk-wrap 'wrap-typelib
10917 (lambda* (#:key outputs #:allow-other-keys)
10918 (let ((prog (string-append (assoc-ref outputs "out")
10919 "/bin/gitg")))
10920 (wrap-program prog
10921 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
10922 #t))))))
10923 (inputs
10924 `(("glib" ,glib)
10925 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10926 ("gtk+" ,gtk+)
10927 ("gtkspell3" ,gtkspell3)
10928 ("gtksourceview" ,gtksourceview-3)
10929 ("json-glib" ,json-glib)
10930 ("libdazzle" ,libdazzle)
10931 ("libgee" ,libgee)
10932 ("libgit2-glib" ,libgit2-glib)
10933 ("libpeas" ,libpeas)
10934 ("libsecret" ,libsecret)
10935 ("libsoup" ,libsoup)
10936 ("libxml2" ,libxml2)))
10937 (native-inputs
10938 `(("glib:bin" ,glib "bin")
10939 ("gtk+:bin" ,gtk+ "bin")
10940 ("gobject-introspection" ,gobject-introspection)
10941 ("intltool" ,intltool)
10942 ("pkg-config" ,pkg-config)
10943 ("vala" ,vala)))
10944 (synopsis "Graphical user interface for git")
10945 (description
10946 "gitg is a graphical user interface for git. It aims at being a small,
10947 fast and convenient tool to visualize the history of git repositories.
10948 Besides visualization, gitg also provides several utilities to manage your
10949 repository and commit your work.")
10950 (home-page "https://wiki.gnome.org/Apps/Gitg")
10951 (license license:gpl2+)))
10952
10953 (define-public gamin
10954 (package
10955 (name "gamin")
10956 (version "0.1.10")
10957 (source (origin
10958 (method url-fetch)
10959 (uri (string-append "mirror://gnome/sources/" name "/"
10960 (version-major+minor version) "/"
10961 name "-" version ".tar.bz2"))
10962 (sha256
10963 (base32
10964 "02n1zr9y8q9lyczhcz0nxar1vmf8p2mmbw8kq0v43wg21jr4i6d5"))))
10965 (build-system gnu-build-system)
10966 (arguments
10967 `(#:phases
10968 (modify-phases %standard-phases
10969 (add-after 'unpack 'remove-deprecated-macro
10970 (lambda _
10971 (substitute* '("server/gam_node.c"
10972 "server/gam_subscription.h"
10973 "server/gam_node.h"
10974 "server/gam_subscription.c")
10975 (("G_CONST_RETURN") "const"))
10976 #t)))))
10977 (inputs
10978 `(("glib" ,glib)))
10979 (native-inputs
10980 `(("intltool" ,intltool)
10981 ("pkg-config" ,pkg-config)))
10982 (home-page "https://people.gnome.org/~veillard/gamin/")
10983 (synopsis "File alteration monitor")
10984 (description
10985 "Gamin is a file and directory monitoring system defined to be a subset
10986 of the FAM (File Alteration Monitor) system. This is a service provided by a
10987 library which detects when a file or a directory has been modified.")
10988 (license license:gpl2+)))
10989
10990 (define-public gnome-mahjongg
10991 (package
10992 (name "gnome-mahjongg")
10993 (version "3.35.1")
10994 (source (origin
10995 (method git-fetch)
10996 (uri (git-reference
10997 (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
10998 (commit version)))
10999 (file-name (git-file-name name version))
11000 (sha256
11001 (base32
11002 "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
11003 (build-system meson-build-system)
11004 (arguments
11005 `(#:glib-or-gtk? #t))
11006 (native-inputs
11007 `(("appstream-glib" ,appstream-glib)
11008 ("gettext" ,gettext-minimal)
11009 ("glib:bin" ,glib "bin") ;; For glib-compile-resources
11010 ("gtk+" ,gtk+ "bin") ;; For gtk-update-icon-cache
11011 ("itstool" ,itstool)
11012 ("pkg-config" ,pkg-config)
11013 ("vala" ,vala)))
11014 (propagated-inputs
11015 `(("dconf" ,dconf)))
11016 (inputs
11017 `(("glib" ,glib)
11018 ("gtk+" ,gtk+)
11019 ("librsvg" ,librsvg)))
11020 (synopsis "Mahjongg tile-matching game")
11021 (description "GNOME Mahjongg is a game based on the classic Chinese
11022 tile-matching game Mahjong. It features multiple board layouts, tile themes,
11023 and a high score table.")
11024 (home-page "https://wiki.gnome.org/Apps/Mahjongg")
11025 (license license:gpl2+)))
11026
11027 (define-public gnome-themes-extra
11028 (package
11029 (name "gnome-themes-extra")
11030 (version "3.28")
11031 (source
11032 (origin
11033 (method url-fetch)
11034 (uri (string-append "mirror://gnome/sources/" name "/"
11035 (version-major+minor version) "/" name "-"
11036 version ".tar.xz"))
11037 (sha256
11038 (base32
11039 "06aqg9asq2vqi9wr29bs4v8z2bf4manhbhfghf4nvw01y2zs0jvw"))))
11040 (build-system gnu-build-system)
11041 (arguments
11042 '(#:configure-flags
11043 ;; Don't create 'icon-theme.cache'.
11044 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
11045 (true (string-append coreutils "/bin/true")))
11046 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
11047 (native-inputs
11048 `(("glib:bin" ,glib "bin")
11049 ("intltool" ,intltool)
11050 ("pkg-config" ,pkg-config)))
11051 (inputs
11052 `(("glib" ,glib)
11053 ("gtk+" ,gtk+)
11054 ("gtk+-2" ,gtk+-2)
11055 ("librsvg" ,librsvg)
11056 ("libxml2" ,libxml2)))
11057 (home-page "https://gitlab.gnome.org/GNOME/gnome-themes-extra")
11058 (synopsis "GNOME Extra Themes")
11059 (description "This package provides themes and related elements that don't
11060 really fit in other upstream packages. It offers legacy support for GTK+ 2
11061 versions of Adwaita, Adwaita-dark and HighContrast themes. It also provides
11062 index files needed for Adwaita to be used outside of GNOME.")
11063 (license license:lgpl2.1+)))
11064
11065 (define-public gnote
11066 (package
11067 (name "gnote")
11068 (version "3.38.0")
11069 (source
11070 (origin
11071 (method url-fetch)
11072 (uri (string-append "mirror://gnome/sources/" name "/"
11073 (version-major+minor version) "/"
11074 "gnote-" version ".tar.xz"))
11075 (sha256
11076 (base32 "1ingbaw4d8vpjn083xvzqw7kz8z0k2bx7msk78pbzd68bwgkadpx"))))
11077 (build-system glib-or-gtk-build-system)
11078 (native-inputs
11079 `(("desktop-file-utils" ,desktop-file-utils)
11080 ("glib:bin" ,glib "bin")
11081 ("gobject-introspection" ,gobject-introspection)
11082 ("intltool" ,intltool)
11083 ("itstool" ,itstool)
11084 ("pkg-config" ,pkg-config)
11085 ("unittest-cpp" ,unittest-cpp))) ;FIXME: not found by pkg-config
11086 (inputs
11087 `(("glibmm" ,glibmm)
11088 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11089 ("gspell" ,gspell)
11090 ("gtk+" ,gtk+)
11091 ("gtkmm" ,gtkmm)
11092 ("libsecret" ,libsecret)
11093 ("libuuid" ,util-linux "lib")
11094 ("libxml2" ,libxml2)
11095 ("libxslt" ,libxslt)))
11096 (synopsis "Note-taking application for the GNOME desktop")
11097 (description
11098 "Gnote is a note-taking application written for the GNOME desktop
11099 environment.")
11100 (home-page "https://wiki.gnome.org/Apps/Gnote")
11101 (license license:gpl3+)))
11102
11103 (define-public polari
11104 (package
11105 (name "polari")
11106 (version "3.36.3")
11107 (source (origin
11108 (method url-fetch)
11109 (uri (string-append "mirror://gnome/sources/polari/"
11110 (version-major+minor version)
11111 "/polari-" version ".tar.xz"))
11112 (sha256
11113 (base32
11114 "0fpmrvhd40yay051bzn4x3gsrzdv42nav0pm5ps0np8wk1z689jg"))))
11115 (build-system meson-build-system)
11116 (arguments
11117 `(#:glib-or-gtk? #t
11118 #:phases
11119 (modify-phases %standard-phases
11120 (add-after 'unpack 'skip-gtk-update-icon-cache
11121 (lambda _
11122 (substitute* "meson/meson-postinstall.sh"
11123 (("gtk-update-icon-cache") (which "true")))
11124 #t))
11125 (add-after 'glib-or-gtk-wrap 'wrap-typelib
11126 (lambda* (#:key outputs #:allow-other-keys)
11127 (let ((prog (string-append (assoc-ref outputs "out")
11128 "/bin/polari")))
11129 (wrap-program prog
11130 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11131 #t))))))
11132 (inputs
11133 `(("glib" ,glib)
11134 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11135 ("gspell" ,gspell)
11136 ("gtk+" ,gtk+)
11137 ("gjs" ,gjs)
11138 ("libsecret" ,libsecret)
11139 ("libsoup" ,libsoup)
11140 ("telepathy-glib" ,telepathy-glib)
11141 ("telepathy-logger" ,telepathy-logger)))
11142 (native-inputs
11143 `(("glib:bin" ,glib "bin")
11144 ("gobject-introspection" ,gobject-introspection)
11145 ("intltool" ,intltool)
11146 ("pkg-config" ,pkg-config)
11147 ("yelp-tools" ,yelp-tools)))
11148 (propagated-inputs
11149 `(("telepathy-idle" ,telepathy-idle)
11150 ("telepathy-mission-control" ,telepathy-mission-control)))
11151 (synopsis "Simple IRC Client")
11152 (description
11153 "Polari is a simple Internet Relay Chat (IRC) client that is designed to
11154 integrate seamlessly with the GNOME desktop.")
11155 (home-page "https://wiki.gnome.org/Apps/Polari")
11156 (license license:gpl2+)))
11157
11158 (define-public gnome-boxes
11159 (package
11160 (name "gnome-boxes")
11161 (version "3.36.6")
11162 (source
11163 (origin
11164 (method url-fetch)
11165 (uri (string-append "mirror://gnome/sources/gnome-boxes/"
11166 (version-major+minor version) "/"
11167 "gnome-boxes-" version ".tar.xz"))
11168 (sha256
11169 (base32 "0c3cw90xqqcpacc2z06ljs0gg8saxizfgjzg9alhpwgz3gl4c5pg"))))
11170 (build-system meson-build-system)
11171 (arguments
11172 '(#:glib-or-gtk? #t
11173 #:configure-flags (list "-Drdp=false"
11174 (string-append "-Dc_link_args=-Wl,-rpath="
11175 (assoc-ref %outputs "out")
11176 "/lib/gnome-boxes"))))
11177 (native-inputs
11178 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
11179 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
11180 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
11181 ("itstool" ,itstool)
11182 ("intltool" ,intltool)
11183 ("vala" ,vala)
11184 ("pkg-config" ,pkg-config)))
11185 (inputs
11186 `(("libarchive" ,libarchive)
11187 ("glib-networking" ,glib-networking) ;for TLS support
11188 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11189 ("gtk" ,gtk+)
11190 ("gtk-vnc" ,gtk-vnc)
11191 ("libosinfo" ,libosinfo)
11192 ("libsecret" ,libsecret)
11193 ("libsoup" ,libsoup)
11194 ("libusb" ,libusb)
11195 ("libvirt" ,libvirt)
11196 ("libvirt-glib" ,libvirt-glib)
11197 ("libxml" ,libxml2)
11198 ("spice-gtk" ,spice-gtk)
11199 ("sparql-query" ,sparql-query)
11200 ("vte" ,vte)
11201 ("webkitgtk" ,webkitgtk)
11202 ("tracker" ,tracker)
11203 ("libgudev" ,libgudev)))
11204 (home-page "https://wiki.gnome.org/Apps/Boxes")
11205 (synopsis "View, access, and manage remote and virtual systems")
11206 (description "GNOME Boxes is a simple application to view, access, and
11207 manage remote and virtual systems. Note that this application requires the
11208 @code{libvirt} and @code{virtlog} daemons to run. Use the command
11209 @command{info '(guix) Virtualization Services'} to learn how to configure
11210 these services on the Guix System.")
11211 (license (list
11212 ;; For data/icons/empty-boxes.png.
11213 license:cc-by2.0
11214 ;; For all others.
11215 license:lgpl2.0+))))
11216
11217 (define-public geary
11218 (package
11219 (name "geary")
11220 (version "3.34.1")
11221 (source (origin
11222 (method git-fetch)
11223 (uri (git-reference
11224 (url "https://gitlab.gnome.org/GNOME/geary")
11225 (commit version)))
11226 (file-name (git-file-name name version))
11227 (sha256
11228 (base32
11229 "01cc921kyh3zxz07biqbdzkjgmdcc36kwjyajm4y382a75cl5zg7"))))
11230 (build-system meson-build-system)
11231 (arguments
11232 `(#:glib-or-gtk? #t
11233 #:phases (modify-phases %standard-phases
11234 (add-after 'unpack 'disable-failing-tests
11235 (lambda _
11236 (substitute* "test/meson.build"
11237 (("test\\('client-tests', geary_test_client_bin\\)")
11238 ""))
11239 #t))
11240 (add-after 'unpack 'disable-postinstall-script
11241 (lambda _
11242 (substitute* "meson.build"
11243 (("meson.add_install_script\\(\
11244 join_paths\\('build-aux', 'post_install.py'\\)\\)")
11245 ""))
11246 #t))
11247 (add-before 'check 'setup-xvfb
11248 (lambda _
11249 (system "Xvfb :1 &")
11250 (setenv "DISPLAY" ":1")
11251 #t)))))
11252 (inputs
11253 `(("enchant" ,enchant)
11254 ("folks" ,folks)
11255 ("gcr" ,gcr)
11256 ("glib" ,glib)
11257 ("gmime" ,gmime-2.6)
11258 ("gnome-online-accounts:lib"
11259 ,gnome-online-accounts "lib")
11260 ("gspell" ,gspell)
11261 ("gtk+" ,gtk+)
11262 ("iso-codes" ,iso-codes)
11263 ("json-glib" ,json-glib)
11264 ("libcanberra" ,libcanberra)
11265 ("libgee" ,libgee)
11266 ("libhandy" ,libhandy-0.0)
11267 ("libpeas" ,libpeas)
11268 ("libsecret" ,libsecret)
11269 ("libunwind" ,libunwind)
11270 ("sqlite" ,sqlite)
11271 ("webkitgtk" ,webkitgtk)
11272 ("ytnef" ,ytnef)))
11273 (native-inputs
11274 `(("appstream-glib" ,appstream-glib)
11275 ("cmake-minimal" ,cmake-minimal)
11276 ("desktop-file-utils" ,desktop-file-utils)
11277 ("gettext" ,gettext-minimal)
11278 ("glib:bin" ,glib "bin")
11279 ("gobject-introspection" ,gobject-introspection)
11280 ("itstool" ,itstool)
11281 ("libarchive" ,libarchive)
11282 ("libxml2" ,libxml2)
11283 ("pkg-config" ,pkg-config)
11284 ("vala" ,vala)
11285 ("xvfb" ,xorg-server-for-tests)))
11286 (synopsis "GNOME email application built around conversations")
11287 (description
11288 "Geary collects related messages together into conversations,
11289 making it easy to find and follow your discussions. Full-text and keyword
11290 search makes it easy to find the email you are looking for. Geary's
11291 full-featured composer lets you send rich, styled text with images, links, and
11292 lists, but also send lightweight, easy to read text messages. Geary
11293 automatically picks up your existing GNOME Online Accounts, and adding more is
11294 easy. Geary has a clean, fast, modern interface that works like you want it
11295 to.")
11296 (home-page "https://wiki.gnome.org/Apps/Geary")
11297 (license (list
11298 ;; geary
11299 license:lgpl2.1+
11300 ;; icons
11301 license:cc-by3.0
11302 license:cc-by-sa3.0
11303 license:public-domain
11304 ;; snowball
11305 license:bsd-2))))
11306
11307 (define-public glabels
11308 (package
11309 (name "glabels")
11310 (version "3.4.1")
11311 (source
11312 (origin
11313 (method url-fetch)
11314 (uri (string-append "mirror://gnome/sources/" name "/"
11315 (version-major+minor version) "/"
11316 "glabels-" version ".tar.xz"))
11317 (sha256
11318 (base32 "0f2rki8i27pkd9r0gz03cdl1g4vnmvp0j49nhxqn275vi8lmgr0q"))))
11319 (build-system glib-or-gtk-build-system)
11320 (native-inputs
11321 `(("gettext" ,gettext-minimal)
11322 ("glib:bin" ,glib "bin")
11323 ("intltool" ,intltool)
11324 ("itstool" ,itstool)
11325 ("pkg-config" ,pkg-config)))
11326 (inputs
11327 `(("gtk+" ,gtk+)
11328 ("librsvg" ,librsvg)
11329 ("libxml2" ,libxml2)))
11330 (home-page "https://glabels.org/")
11331 (synopsis "Program for creating labels and business cards")
11332 (description
11333 "gLabels is a program for creating labels and business cards. It is
11334 designed to work with various laser/ink-jet peel-off label and business
11335 card sheets that you’ll find at most office supply stores.")
11336 (license license:gpl3+)))
11337
11338 ;; Version 3.38.0 is out but requires tepl>=5 which requires glib>=2.64.
11339 (define-public gnome-latex
11340 (package
11341 (name "gnome-latex")
11342 (version "3.36.0")
11343 (source
11344 (origin
11345 (method url-fetch)
11346 (uri (string-append "mirror://gnome/sources/" name "/"
11347 (version-major+minor version) "/"
11348 "gnome-latex-" version ".tar.xz"))
11349 (sha256
11350 (base32 "1869kr1zhcp04mzbi67lwgk497w840dbbc7427i9yh9b9s7j6mqn"))))
11351 (build-system glib-or-gtk-build-system)
11352 (native-inputs
11353 `(("gettext" ,gettext-minimal)
11354 ("glib:bin" ,glib "bin")
11355 ("gobject-introspection" ,gobject-introspection)
11356 ("gtk-doc" ,gtk-doc)
11357 ("intltool" ,intltool)
11358 ("itstool" ,itstool)
11359 ("pkg-config" ,pkg-config)
11360 ("vala" ,vala)))
11361 (inputs
11362 `(("amtk" ,amtk)
11363 ("dconf" ,dconf)
11364 ("glib" ,glib)
11365 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11366 ("gspell" ,gspell)
11367 ("gtk+" ,gtk+)
11368 ("gtksourceview" ,gtksourceview)
11369 ("libgee" ,libgee)
11370 ("tepl" ,tepl)
11371 ("uchardet" ,uchardet)))
11372 (home-page "https://wiki.gnome.org/Apps/GNOME-LaTeX")
11373 (synopsis "LaTeX editor for the GNOME desktop")
11374 (description
11375 "GNOME LaTeX is a LaTeX editor for the GNOME desktop. It has features
11376 such as build tools, completion of LaTeX commands, structure navigation,
11377 symbol tables, document templates, project management, spell-checking, menus
11378 and toolbars.")
11379 (license license:gpl3+)))
11380
11381 (define-public setzer
11382 (package
11383 (name "setzer")
11384 (version "0.3.8")
11385 (source
11386 (origin
11387 (method git-fetch)
11388 (uri (git-reference
11389 (url "https://github.com/cvfosammmm/Setzer")
11390 (commit (string-append "v" version))))
11391 (file-name (git-file-name name version))
11392 (sha256
11393 (base32 "1f5qmkz4hzn54sh56z3hw8zrvg93xlz62ggzlzyg7vgsr83kpns9"))))
11394 (build-system meson-build-system)
11395 (arguments
11396 `(#:glib-or-gtk? #t
11397 #:phases
11398 (modify-phases %standard-phases
11399 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
11400 (lambda* (#:key outputs #:allow-other-keys)
11401 (let ((prog (string-append (assoc-ref outputs "out")
11402 "/bin/setzer"))
11403 (pylib (string-append (assoc-ref outputs "out")
11404 "/lib/python"
11405 ,(version-major+minor
11406 (package-version python))
11407 "/site-packages")))
11408 (wrap-program prog
11409 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
11410 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11411 #t))))))
11412 (native-inputs
11413 `(("desktop-file-utils" ,desktop-file-utils)
11414 ("gettext" ,gettext-minimal)
11415 ("glib:bin" ,glib "bin")
11416 ("gobject-introspection" ,gobject-introspection)
11417 ("gtk+:bin" ,gtk+ "bin")))
11418 (inputs
11419 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11420 ("gspell" ,gspell)
11421 ("gtk+" ,gtk+)
11422 ("gtksourceview" ,gtksourceview)
11423 ("pango" ,pango)
11424 ("poppler" ,poppler)
11425 ("python-pycairo" ,python-pycairo)
11426 ("python-pygobject" ,python-pygobject)
11427 ("python-pyxdg" ,python-pyxdg)
11428 ("webkitgtk" ,webkitgtk)
11429 ("xdg-utils" ,xdg-utils)))
11430 (home-page "https://www.cvfosammmm.org/setzer/")
11431 (synopsis "LaTeX editor written in Python with GTK+")
11432 (description
11433 "Setzer is a simple yet full-featured LaTeX editor written in Python with
11434 GTK+. It integrates well with the GNOME desktop environment.")
11435 (license license:gpl3+)))
11436
11437 (define-public libratbag
11438 (package
11439 (name "libratbag")
11440 (version "0.14")
11441 (source
11442 (origin
11443 (method git-fetch)
11444 (uri (git-reference
11445 (url "https://github.com/libratbag/libratbag")
11446 (commit (string-append "v" version))))
11447 (file-name (git-file-name name version))
11448 (sha256
11449 (base32 "1fpwp2sj8mf98bqasq2h8qwgprxi7k3iw33gcfid3d1lbyiacw0x"))))
11450 (build-system meson-build-system)
11451 (arguments
11452 `(#:configure-flags
11453 (list "-Dsystemd=false"
11454 "-Dlogind-provider=elogind")
11455 #:phases
11456 (modify-phases %standard-phases
11457 (add-after 'install 'wrap
11458 (lambda* (#:key inputs outputs #:allow-other-keys)
11459 (let* ((out (assoc-ref outputs "out"))
11460 (site (string-append
11461 "/lib/python"
11462 ,(version-major+minor (package-version python))
11463 "/site-packages"))
11464 (evdev (string-append
11465 (assoc-ref inputs "python-evdev") site))
11466 (pygo (string-append
11467 (assoc-ref inputs "python-pygobject") site))
11468 (python-wrap
11469 `("PYTHONPATH" = (,evdev ,pygo))))
11470 (wrap-program (string-append out "/bin/" "ratbagctl")
11471 python-wrap)
11472 #t))))))
11473 (native-inputs
11474 `(("check" ,check)
11475 ("pkg-config" ,pkg-config)
11476 ("swig" ,swig)
11477 ("valgrind" ,valgrind)))
11478 (inputs
11479 `(("glib" ,glib)
11480 ("json-glib" ,json-glib)
11481 ("libevdev" ,libevdev)
11482 ("libsystemd" ,elogind)
11483 ("libunistring" ,libunistring)
11484 ("python-evdev" ,python-evdev)
11485 ("python-pygobject" ,python-pygobject)
11486 ("udev" ,eudev)))
11487 (home-page "https://github.com/libratbag/libratbag")
11488 (synopsis "DBus daemon and utility for configuring gaming mice")
11489 (description "libratbag provides @command{ratbagd}, a DBus daemon to
11490 configure input devices, mainly gaming mice. The daemon provides a generic
11491 way to access the various features exposed by these mice and abstracts away
11492 hardware-specific and kernel-specific quirks. There is also the
11493 @command{ratbagctl} command line interface for configuring devices.
11494
11495 libratbag currently supports devices from Logitech, Etekcity, GSkill, Roccat,
11496 Steelseries.
11497
11498 The ratbagd DBus service can be enabled by adding the following service to
11499 your operating-system definition:
11500
11501 (simple-service 'ratbagd dbus-root-service-type (list libratbag))")
11502 (license license:expat)))
11503
11504 (define-public piper
11505 (package
11506 (name "piper")
11507 (version "0.5.1")
11508 (source
11509 (origin
11510 (method git-fetch)
11511 (uri (git-reference
11512 (url "https://github.com/libratbag/piper")
11513 (commit version)))
11514 (sha256
11515 (base32 "1nfjnsiwg2rs6gkjsxzhr2708i6di149dgwq3cf6l12rxqpb8arj"))
11516 (file-name (git-file-name name version))))
11517 (build-system meson-build-system)
11518 (native-inputs
11519 `(("gettext" ,gettext-minimal)
11520 ("glib:bin" ,glib "bin")
11521 ("gobject-introspection" ,gobject-introspection)
11522 ("pkg-config" ,pkg-config)
11523 ("python-flake8" ,python-flake8)))
11524 (inputs
11525 `(("adwaita-icon-theme" ,adwaita-icon-theme)
11526 ("gtk" ,gtk+)
11527 ("gtk:bin" ,gtk+ "bin")
11528 ("librsvg" ,librsvg)
11529 ("python-evdev" ,python-evdev)
11530 ("python-lxml" ,python-lxml)
11531 ("python-pycairo" ,python-pycairo)
11532 ("python-pygobject" ,python-pygobject)))
11533 (arguments
11534 `(#:imported-modules ((guix build python-build-system)
11535 ,@%meson-build-system-modules)
11536 #:modules (((guix build python-build-system) #:prefix python:)
11537 (guix build meson-build-system)
11538 (guix build utils))
11539 #:tests? #f ;; The flake8 test fails trying to validate piper.in as code.
11540 #:phases
11541 (modify-phases %standard-phases
11542 (add-after 'unpack 'dont-update-gtk-icon-cache
11543 (lambda _
11544 (substitute* "meson.build"
11545 (("meson.add_install_script('meson_install.sh')") ""))
11546 #t))
11547 ;; TODO: Switch to wrap-script when it is fixed.
11548 (add-after 'install 'wrap-python
11549 (assoc-ref python:%standard-phases 'wrap))
11550 (add-after 'wrap-python 'wrap
11551 (lambda* (#:key outputs #:allow-other-keys)
11552 (wrap-program
11553 (string-append (assoc-ref outputs "out" )"/bin/piper")
11554 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11555 #t)))))
11556 (home-page "https://github.com/libratbag/piper/")
11557 (synopsis "Configure bindings and LEDs on gaming mice")
11558 (description "Piper is a GTK+ application for configuring gaming mice with
11559 onboard configuration for key bindings via libratbag. Piper requires
11560 a @command{ratbagd} daemon running with root privileges. It can be run
11561 manually as root, but is preferably configured as a DBus service that can
11562 launch on demand. This can be configured by enabling the following service,
11563 provided there is a DBus service present:
11564
11565 (simple-service 'ratbagd dbus-root-service-type (list libratbag))")
11566 (license license:gpl2)))
11567
11568 (define-public parlatype
11569 (package
11570 (name "parlatype")
11571 (version "2.1")
11572 (source
11573 (origin
11574 (method git-fetch)
11575 (uri (git-reference
11576 (url "https://github.com/gkarsay/parlatype")
11577 (commit (string-append "v" version))))
11578 (file-name (git-file-name name version))
11579 (sha256
11580 (base32 "1c15ja0rwz3jj8bnqdq0nmqka39iwrhy8krdv2a2x8nl4shfpmv0"))))
11581 (build-system meson-build-system)
11582 (arguments
11583 `(#:glib-or-gtk? #t
11584 #:tests? #f ;require internet access
11585 #:phases
11586 (modify-phases %standard-phases
11587 (add-after 'install 'wrap-parlatype
11588 ;; Add gstreamer plugin provided in this package to system's
11589 ;; plugins.
11590 (lambda* (#:key outputs #:allow-other-keys)
11591 (let* ((out (assoc-ref outputs "out"))
11592 (gst-plugin-path (string-append
11593 out "/lib/gstreamer-1.0/"
11594 ":"
11595 (getenv "GST_PLUGIN_SYSTEM_PATH"))))
11596 (wrap-program (string-append out "/bin/parlatype")
11597 `("GST_PLUGIN_SYSTEM_PATH" ":" = (,gst-plugin-path))))
11598 #t)))))
11599 (native-inputs
11600 `(("appstream-glib" ,appstream-glib)
11601 ("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
11602 ("gettext" ,gettext-minimal)
11603 ("glib" ,glib "bin") ;for glib-compile-resources
11604 ("pkg-config" ,pkg-config)
11605 ("yelp-tools" ,yelp-tools)))
11606 (inputs
11607 `(("gst-plugins-base" ,gst-plugins-base)
11608 ("gst-plugins-good" ,gst-plugins-good)
11609 ("gstreamer" ,gstreamer)
11610 ("gtk+" ,gtk+)
11611 ("pocketsphinx" ,pocketsphinx)
11612 ("pulseaudio" ,pulseaudio)
11613 ("sphinxbase" ,sphinxbase)))
11614 (home-page "http://gkarsay.github.io/parlatype/")
11615 (synopsis "GNOME audio player for transcription")
11616 (description "Parlatype is an audio player for the GNOME desktop
11617 environment. Its main purpose is the manual transcription of spoken
11618 audio files.")
11619 (license license:gpl3+)))
11620
11621 (define-public jsonrpc-glib
11622 (package
11623 (name "jsonrpc-glib")
11624 (version "3.34.0")
11625 (source (origin
11626 (method url-fetch)
11627 (uri (string-append "mirror://gnome/sources/" name "/"
11628 (version-major+minor version) "/"
11629 name "-" version ".tar.xz"))
11630 (sha256
11631 (base32
11632 "0j05x4xv2cp3cbmp30m68z8g4rdw7b030ip4wszyfj9ya15v5kni"))))
11633 (build-system meson-build-system)
11634 (inputs
11635 `(("json-glib" ,json-glib)
11636 ("glib" ,glib)))
11637 (native-inputs
11638 `(("pkg-config" ,pkg-config)
11639 ("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
11640 ("gobject-introspection" ,gobject-introspection)
11641 ("vala" ,vala)))
11642 (home-page "https://gitlab.gnome.org/GNOME/jsonrpc-glib")
11643 (synopsis "JSON-RPC library for GLib")
11644 (description "Jsonrpc-GLib is a library to communicate with JSON-RPC based
11645 peers in either a synchronous or asynchronous fashion. It also allows
11646 communicating using the GVariant serialization format instead of JSON when
11647 both peers support it. You might want that when communicating on a single
11648 host to avoid parser overhead and memory-allocator fragmentation.")
11649 (license license:lgpl2.1+)))
11650
11651 (define-public feedbackd
11652 (package
11653 (name "feedbackd")
11654 (version "0.0.0+git20200527")
11655 (source (origin
11656 (method git-fetch)
11657 (uri (git-reference
11658 (url "https://source.puri.sm/Librem5/feedbackd.git")
11659 (commit (string-append "v" version))))
11660 (file-name (git-file-name name version))
11661 (sha256
11662 (base32
11663 "1wbkzxnqjydfgjvp7vz4ghczcz740zcb1yn90cb6gb5md4n6qx2y"))))
11664 (build-system meson-build-system)
11665 (native-inputs
11666 `(("glib:bin" ,glib "bin")
11667 ("gobject-introspection" ,gobject-introspection)
11668 ("pkg-config" ,pkg-config)
11669 ("vala" ,vala)))
11670 (inputs
11671 `(("dbus" ,dbus)
11672 ("gsound" ,gsound)
11673 ("json-glib" ,json-glib)
11674 ("libgudev" ,libgudev)))
11675 (propagated-inputs
11676 `(("glib" ,glib))) ; in Requires of libfeedback-0.0.pc
11677 (synopsis "Haptic/visual/audio feedback via DBus")
11678 (description "Feedbackd provides a DBus daemon to act on events to provide
11679 haptic, visual and audio feedback. It offers the libfeedbackd library and
11680 GObject introspection bindings.")
11681 (home-page "https://source.puri.sm/Librem5/feedbackd")
11682 (license (list license:lgpl2.1+ ; libfeedbackd
11683 license:lgpl3+)))) ; the rest
11684
11685 (define-public sysprof
11686 (package
11687 (name "sysprof")
11688 (version "3.36.0")
11689 (source
11690 (origin
11691 (method url-fetch)
11692 (uri (string-append "mirror://gnome/sources/sysprof/"
11693 (version-major+minor version) "/"
11694 "sysprof-" version ".tar.xz"))
11695 (sha256
11696 (base32 "024i0gzqnm79rpr4gqxdvcj6gvf82xdlcp2p1k9ikcppmi6xnw46"))))
11697 (build-system meson-build-system)
11698 (arguments
11699 `(#:configure-flags
11700 (list (string-append "-Dsystemdunitdir="
11701 %output
11702 "/share/systemd"))
11703 #:tests? #f ; 3/4 test-model-filter barfs some dbus nonsense
11704 #:phases
11705 (modify-phases %standard-phases
11706 (add-after 'unpack 'patch-install-script
11707 (lambda _
11708 (substitute* "build-aux/meson/post_install.sh"
11709 (("gtk-update-icon-cache") "true")
11710 (("update-desktop-database") "true"))
11711 #t)))))
11712 (inputs
11713 `(("glib" ,glib)
11714 ("gtk+" ,gtk+)
11715 ("libdazzle" ,libdazzle)
11716 ("polkit" ,polkit)))
11717 (native-inputs
11718 `(("gettext" ,gettext-minimal)
11719 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
11720 ("itstool" ,itstool)
11721 ("pkg-config" ,pkg-config)
11722 ("xmllint" ,libxml2)))
11723 ;; This home page is so woefully out of date as to be essentially useless.
11724 ;; (home-page "http://www.sysprof.com")
11725 (home-page "https://wiki.gnome.org/Apps/Sysprof")
11726 (synopsis "System-wide performance profiler for GNU/Linux")
11727 (description
11728 "Sysprof performs detailed, accurate, and fast CPU profiling of an entire
11729 GNU/Linux system including the kernel and all user-space applications. This
11730 helps find the function(s) in which a program spends most of its time.
11731
11732 It uses the kernel's built-in @code{ptrace} feature and handles shared
11733 libraries. Applications do not need to be recompiled--or even restarted.")
11734 (license license:gpl3+)))
11735
11736 (define-public gnome-builder
11737 (package
11738 (name "gnome-builder")
11739 (version "3.36.1")
11740 (source (origin
11741 (method url-fetch)
11742 (uri (string-append "mirror://gnome/sources/" name "/"
11743 (version-major+minor version) "/"
11744 name "-" version ".tar.xz"))
11745 (sha256
11746 (base32
11747 "17pvmd5jypar8dkr6w56hvf7jnq4l1wih2wwgkrv7sblr7rkkar2"))))
11748 (build-system meson-build-system)
11749 (arguments
11750 `(#:configure-flags (list "-Dnetwork_tests=false"
11751 ;; TODO: Enable all plugins...
11752 "-Dplugin_clang=false"
11753 "-Dplugin_flatpak=false"
11754 "-Dplugin_glade=false"
11755 ;; XXX: This one has been shown not to work in
11756 ;; <https://issues.guix.gnu.org/45272>
11757 "-Dplugin_jedi=false"
11758 ;; ... except this one.
11759 "-Dplugin_update_manager=false")
11760 #:phases
11761 (modify-phases %standard-phases
11762 (add-after 'unpack 'patch-meson
11763 (lambda* (#:key inputs #:allow-other-keys)
11764 (substitute* "build-aux/meson/post_install.py"
11765 (("gtk-update-icon-cache") "true")
11766 (("update-desktop-database") "true"))
11767 (substitute* "src/libide/meson.build"
11768 (("/usr/lib")
11769 (string-append (assoc-ref inputs "python-pygobject")
11770 "/lib")))
11771 #t))
11772 (add-after 'configure 'fix-ninja
11773 (lambda _
11774 ;; #43296: meson(?) incorrectly assumes we want to link
11775 ;; this PIE against a static libselinux.
11776 (substitute* "build.ninja"
11777 (("libselinux\\.a") "libselinux.so"))
11778 #t))
11779 (add-before 'check 'pre-check
11780 (lambda _
11781 (system "Xvfb :1 &")
11782 (setenv "DISPLAY" ":1")
11783 #t)))))
11784 (inputs
11785 `(("devhelp" ,devhelp)
11786 ("gspell" ,gspell)
11787 ("gtk+" ,gtk+)
11788 ("json-glib" ,json-glib)
11789 ("jsonrpc-glib" ,jsonrpc-glib)
11790 ("libdazzle" ,libdazzle)
11791 ("libgit2-glib" ,libgit2-glib)
11792 ("libpeas" ,libpeas)
11793 ("python-pygobject" ,python-pygobject)
11794 ("sysprof" ,sysprof)
11795 ("template-glib" ,template-glib)
11796 ("vte" ,vte)
11797 ("webkitgtk" ,webkitgtk)))
11798 (propagated-inputs
11799 `(("gtksourceview" ,gtksourceview))) ;needed for settings
11800 (native-inputs
11801 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
11802 ("glib:bin" ,glib "bin")
11803 ("gettext" ,gettext-minimal)
11804 ("pkg-config" ,pkg-config)
11805 ("vala" ,vala)
11806 ("xorg-server" ,xorg-server-for-tests)))
11807 (home-page "https://wiki.gnome.org/Apps/Builder")
11808 (synopsis "Toolsmith for GNOME-based applications")
11809 (description "Builder aims to be an integrated development
11810 environment (IDE) for writing GNOME-based software. It features fuzzy search,
11811 auto-completion, a mini code map, documentation browsing, Git integration, an
11812 integrated profiler via Sysprof, debugging support, and more.")
11813 (license license:gpl3+)))
11814
11815 (define-public komikku
11816 (package
11817 (name "komikku")
11818 (version "0.24.0")
11819 (source
11820 (origin
11821 (method git-fetch)
11822 (uri (git-reference
11823 (url "https://gitlab.com/valos/Komikku/")
11824 (commit (string-append "v" version))))
11825 (file-name (git-file-name name version))
11826 (sha256
11827 (base32
11828 "010p32zrim245y0l784yp0rasqcqlyr3lrxwl3r1876x83qhs6q3"))))
11829 (build-system meson-build-system)
11830 (arguments
11831 `(#:glib-or-gtk? #t
11832 #:phases
11833 (modify-phases %standard-phases
11834 (add-after 'unpack 'patch-sources
11835 (lambda _
11836 (substitute* "komikku/utils.py"
11837 (("from komikku\\.servers import get_servers_list")
11838 ;; code following that line should migrate old databases
11839 ;; but the line itself results in an import error
11840 "return data_dir_path"))))
11841 (add-after 'unpack 'skip-gtk-update-icon-cache
11842 (lambda _
11843 (substitute* "meson_post_install.py"
11844 (("gtk-update-icon-cache") (which "true")))
11845 #t))
11846 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
11847 (lambda* (#:key outputs #:allow-other-keys)
11848 (let ((prog (string-append (assoc-ref outputs "out")
11849 "/bin/komikku")))
11850 (wrap-program prog
11851 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
11852 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11853 #t))))))
11854 (inputs
11855 `(("gtk+" ,gtk+)
11856 ("libhandy" ,libhandy)
11857 ("libnotify" ,libnotify)
11858 ("libsecret" ,libsecret)
11859 ("python-beautifulsoup4" ,python-beautifulsoup4)
11860 ("python-dateparser" ,python-dateparser)
11861 ("python-keyring" ,python-keyring)
11862 ("python-lxml" ,python-lxml)
11863 ("python-magic" ,python-magic)
11864 ("python-pillow" ,python-pillow)
11865 ("python-pure-protobuf" ,python-pure-protobuf)
11866 ("python-pycairo" ,python-pycairo)
11867 ("python-pygobject" ,python-pygobject)
11868 ("python-requests" ,python-requests)
11869 ("python-unidecode" ,python-unidecode)))
11870 (native-inputs
11871 `(("desktop-file-utils" ,desktop-file-utils)
11872 ("gettext" ,gettext-minimal)
11873 ("glib:bin" ,glib "bin")
11874 ("gobject-introspection" ,gobject-introspection)
11875 ("pkg-config" ,pkg-config)))
11876 (home-page "https://gitlab.com/valos/Komikku")
11877 (synopsis "Manga reader for GNOME")
11878 (description "Komikku is an online/offline manga reader for GNOME,
11879 developed with the aim of being used with the Librem 5 phone.")
11880 (license license:gpl3+)))
11881
11882 (define-public libgda
11883 (package
11884 (name "libgda")
11885 (version "5.2.10")
11886 (source
11887 (origin
11888 (method git-fetch)
11889 (uri (git-reference
11890 (url "https://gitlab.gnome.org/GNOME/libgda.git/")
11891 (commit (string-append "LIBGDA_" (string-replace-substring
11892 version "." "_")))))
11893 (file-name (git-file-name name version))
11894 (sha256
11895 (base32 "18rg773gq9v3cdywpmrp12c5xyp97ir9yqjinccpi22sksb1kl8a"))))
11896 (build-system gnu-build-system)
11897 (arguments
11898 `(#:configure-flags '("--enable-vala")
11899 ;; There's a race between check_cnc_lock and check_threaded_cnc
11900 ;; in tests/multi-threading.
11901 #:parallel-tests? #f
11902 #:phases
11903 (modify-phases %standard-phases
11904 (add-after 'unpack 'fix-glade-install
11905 (lambda _
11906 (substitute* "configure.ac"
11907 (("`\\$PKG_CONFIG --variable=catalogdir gladeui-2\\.0`")
11908 "${datadir}/glade/catalogs")
11909 (("`\\$PKG_CONFIG --variable=pixmapdir gladeui-2\\.0`")
11910 "${datadir}/glade/pixmaps"))
11911 #t))
11912 (add-before 'check 'pre-check
11913 (lambda* (#:key inputs #:allow-other-keys)
11914 ;; Tests require a running X server.
11915 (system "Xvfb :1 &")
11916 (setenv "DISPLAY" ":1")
11917 #t))
11918 (add-after 'install 'symlink-glade-module
11919 (lambda* (#:key outputs #:allow-other-keys)
11920 (let* ((shlib "libgda-ui-5.0.so")
11921 (out (assoc-ref outputs "out"))
11922 (out/lib (string-append out "/lib"))
11923 (moduledir (string-append out/lib "/glade/modules")))
11924 (mkdir-p moduledir)
11925 (symlink (string-append out/lib "/" shlib)
11926 (string-append moduledir "/" shlib))
11927 #t))))))
11928 (propagated-inputs
11929 `(("libxml2" ,libxml2))) ; required by libgda-5.0.pc
11930 (inputs
11931 `(("glib" ,glib)
11932 ("glade" ,glade3)
11933 ("gtk+" ,gtk+)
11934 ("libsecret" ,libsecret)
11935 ("libxslt" ,libxslt)
11936 ("openssl" ,openssl)
11937 ("vala" ,vala)))
11938 (native-inputs
11939 `(("autoconf" ,autoconf)
11940 ("autoconf-archive" ,autoconf-archive)
11941 ("automake" ,automake)
11942 ("glib:bin" ,glib "bin")
11943 ("gnome-common" ,gnome-common)
11944 ("gobject-introspection" ,gobject-introspection)
11945 ("gtk-doc" ,gtk-doc)
11946 ("intltool" ,intltool)
11947 ("libtool" ,libtool)
11948 ("pkg-config" ,pkg-config)
11949 ("vala" ,vala)
11950 ("which" ,which)
11951 ("xorg-server" ,xorg-server-for-tests)
11952 ("yelp-tools" ,yelp-tools)))
11953 (home-page "https://gitlab.gnome.org/GNOME/libgda")
11954 (synopsis "Uniform data access")
11955 (description
11956 "GNU Data Access (GDA) is an attempt to provide uniform access to
11957 different kinds of data sources (databases, information servers, mail spools,
11958 etc). It is a complete architecture that provides all you need to access
11959 your data.")
11960 (license license:lgpl2.1+)))
11961
11962 (define-public gtranslator
11963 (package
11964 (name "gtranslator")
11965 (version "3.36.0")
11966 (source (origin
11967 (method url-fetch)
11968 (uri (string-append "mirror://gnome/sources/" name "/"
11969 (version-major+minor version) "/"
11970 name "-" version ".tar.xz"))
11971 (sha256
11972 (base32
11973 "1lxd2nkji4jk8g2xmyc1a1r3ww710ddk91zh9psmx8xlb4xivaid"))))
11974 (build-system meson-build-system)
11975 (inputs
11976 `(("json-glib" ,json-glib)
11977 ("jsonrpc-glib" ,jsonrpc-glib)
11978 ("gettext" ,gettext-minimal)
11979 ("glib" ,glib)
11980 ("gtk+" ,gtk+)
11981 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11982 ("gspell" ,gspell)
11983 ("libdazzle" ,libdazzle)
11984 ("libgda" ,libgda)
11985 ("libsoup" ,libsoup)))
11986 (native-inputs
11987 `(("glib:bin" ,glib "bin")
11988 ("itstool" ,itstool)
11989 ("pkg-config" ,pkg-config)))
11990 (propagated-inputs
11991 `(("gtksourceview" ,gtksourceview))) ; required for source view
11992 (arguments
11993 `(#:build-type "release"
11994 #:glib-or-gtk? #t
11995 #:phases
11996 (modify-phases %standard-phases
11997 (add-after 'unpack 'skip-gtk-update-icon-cache
11998 (lambda _
11999 (substitute* "build-aux/meson/meson_post_install.py"
12000 (("gtk-update-icon-cache") (which "true")))
12001 #t)))))
12002 (home-page "https://wiki.gnome.org/Apps/Gtranslator")
12003 (synopsis "Translation making program")
12004 (description
12005 "gtranslator is a quite comfortable gettext po/po.gz/(g)mo files editor
12006 for the GNOME 3.x platform with many features. It aims to be a very complete
12007 editing environment for translation issues within the GNU gettext/GNOME desktop
12008 world.")
12009 (license license:gpl3+)))