gnu: Use PACKAGE/INHERIT in more places.
[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, 2021 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, 2021 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, 2021 Vinicius Monego <monego@posteo.net>
55 ;;; Copyright © 2020, 2021 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, 2021 Andy Tai <atai@atai.org>
60 ;;; Copyright © 2020, 2021 Sébastien Lerique <sl@eauchat.org>
61 ;;;
62 ;;; This file is part of GNU Guix.
63 ;;;
64 ;;; GNU Guix is free software; you can redistribute it and/or modify it
65 ;;; under the terms of the GNU General Public License as published by
66 ;;; the Free Software Foundation; either version 3 of the License, or (at
67 ;;; your option) any later version.
68 ;;;
69 ;;; GNU Guix is distributed in the hope that it will be useful, but
70 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
71 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
72 ;;; GNU General Public License for more details.
73 ;;;
74 ;;; You should have received a copy of the GNU General Public License
75 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
76
77 (define-module (gnu packages gnome)
78 #:use-module (gnu packages)
79 #:use-module (gnu packages admin)
80 #:use-module (gnu packages aidc)
81 #:use-module (gnu packages aspell)
82 #:use-module (gnu packages autotools)
83 #:use-module (gnu packages avahi)
84 #:use-module (gnu packages backup)
85 #:use-module (gnu packages base)
86 #:use-module (gnu packages bash)
87 #:use-module (gnu packages bison)
88 #:use-module (gnu packages boost)
89 #:use-module (gnu packages build-tools)
90 #:use-module (gnu packages calendar)
91 #:use-module (gnu packages cdrom)
92 #:use-module (gnu packages check)
93 #:use-module (gnu packages cmake)
94 #:use-module (gnu packages compression)
95 #:use-module (gnu packages crates-io)
96 #:use-module (gnu packages crates-graphics)
97 #:use-module (gnu packages crates-gtk)
98 #:use-module (gnu packages cups)
99 #:use-module (gnu packages curl)
100 #:use-module (gnu packages cyrus-sasl)
101 #:use-module (gnu packages databases)
102 #:use-module (gnu packages dbm)
103 #:use-module (gnu packages djvu)
104 #:use-module (gnu packages dns)
105 #:use-module (gnu packages docbook)
106 #:use-module (gnu packages documentation)
107 #:use-module (gnu packages enchant)
108 #:use-module (gnu packages flex)
109 #:use-module (gnu packages fonts)
110 #:use-module (gnu packages file-systems)
111 #:use-module (gnu packages fontutils)
112 #:use-module (gnu packages freedesktop)
113 #:use-module (gnu packages game-development)
114 #:use-module (gnu packages gcc)
115 #:use-module (gnu packages gettext)
116 #:use-module (gnu packages ghostscript)
117 #:use-module (gnu packages gimp)
118 #:use-module (gnu packages gl)
119 #:use-module (gnu packages glib)
120 #:use-module (gnu packages gnupg)
121 #:use-module (gnu packages gnuzilla)
122 #:use-module (gnu packages geo)
123 #:use-module (gnu packages gperf)
124 #:use-module (gnu packages graphviz)
125 #:use-module (gnu packages gstreamer)
126 #:use-module (gnu packages gtk)
127 #:use-module (gnu packages guile)
128 #:use-module (gnu packages ibus)
129 #:use-module (gnu packages icu4c)
130 #:use-module (gnu packages image)
131 #:use-module (gnu packages imagemagick)
132 #:use-module (gnu packages inkscape)
133 #:use-module (gnu packages iso-codes)
134 #:use-module (gnu packages kerberos)
135 #:use-module (gnu packages libcanberra)
136 #:use-module (gnu packages libffi)
137 #:use-module (gnu packages libunistring)
138 #:use-module (gnu packages libunwind)
139 #:use-module (gnu packages libusb)
140 #:use-module (gnu packages linux)
141 #:use-module (gnu packages lirc)
142 #:use-module (gnu packages lua)
143 #:use-module (gnu packages mail)
144 #:use-module (gnu packages mp3)
145 #:use-module (gnu packages multiprecision)
146 #:use-module (gnu packages music)
147 #:use-module (gnu packages ncurses)
148 #:use-module (gnu packages nettle)
149 #:use-module (gnu packages networking)
150 #:use-module (gnu packages ninja)
151 #:use-module (gnu packages node)
152 #:use-module (gnu packages nss)
153 #:use-module (gnu packages ocr)
154 #:use-module (gnu packages openldap)
155 #:use-module (gnu packages package-management)
156 #:use-module (gnu packages password-utils)
157 #:use-module (gnu packages pcre)
158 #:use-module (gnu packages pdf)
159 #:use-module (gnu packages perl)
160 #:use-module (gnu packages photo)
161 #:use-module (gnu packages php)
162 #:use-module (gnu packages pkg-config)
163 #:use-module (gnu packages polkit)
164 #:use-module (gnu packages popt)
165 #:use-module (gnu packages pretty-print)
166 #:use-module (gnu packages protobuf)
167 #:use-module (gnu packages pulseaudio)
168 #:use-module (gnu packages python)
169 #:use-module (gnu packages python-crypto)
170 #:use-module (gnu packages python-web)
171 #:use-module (gnu packages python-xyz)
172 #:use-module (gnu packages rdesktop)
173 #:use-module (gnu packages rdf)
174 #:use-module (gnu packages readline)
175 #:use-module (gnu packages ruby)
176 #:use-module (gnu packages rust)
177 #:use-module (gnu packages samba)
178 #:use-module (gnu packages scanner)
179 #:use-module (gnu packages sdl)
180 #:use-module (gnu packages search)
181 #:use-module (gnu packages selinux)
182 #:use-module (gnu packages slang)
183 #:use-module (gnu packages speech)
184 #:use-module (gnu packages spice)
185 #:use-module (gnu packages sqlite)
186 #:use-module (gnu packages ssh)
187 #:use-module (gnu packages swig)
188 #:use-module (gnu packages tex)
189 #:use-module (gnu packages time)
190 #:use-module (gnu packages tls)
191 #:use-module (gnu packages valgrind)
192 #:use-module (gnu packages version-control)
193 #:use-module (gnu packages video)
194 #:use-module (gnu packages virtualization)
195 #:use-module (gnu packages vpn)
196 #:use-module (gnu packages web)
197 #:use-module (gnu packages webkit)
198 #:use-module (gnu packages xdisorg)
199 #:use-module (gnu packages xiph)
200 #:use-module (gnu packages xml)
201 #:use-module (gnu packages xorg)
202 #:use-module (gnu artwork)
203 #:use-module ((guix build utils) #:select (modify-phases))
204 #:use-module (guix build-system cargo)
205 #:use-module (guix build-system cmake)
206 #:use-module (guix build-system glib-or-gtk)
207 #:use-module (guix build-system gnu)
208 #:use-module (guix build-system meson)
209 #:use-module (guix build-system python)
210 #:use-module (guix build-system trivial)
211 #:use-module (guix download)
212 #:use-module (guix git-download)
213 #:use-module ((guix licenses) #:prefix license:)
214 #:use-module (guix packages)
215 #:use-module (guix utils)
216 #:use-module (guix gexp)
217 #:use-module (guix monads)
218 #:use-module (guix store)
219 #:use-module (ice-9 match)
220 #:use-module (srfi srfi-1))
221
222 (define-public gupnp-igd
223 (package
224 (name "gupnp-igd")
225 (version "1.2.0")
226 (source
227 (origin
228 (method url-fetch)
229 (uri
230 (string-append "mirror://gnome/sources/" name "/"
231 (version-major+minor version) "/"
232 name "-" version ".tar.xz"))
233 (sha256
234 (base32 "1q9bw12ibih3yxpha3gm1dabyqg9gx6yxacbh4kxsgm1i84j0lab"))))
235 (build-system meson-build-system)
236 (outputs '("out" "doc"))
237 (arguments
238 `(#:glib-or-gtk? #t ; To wrap binaries and compile schemas
239 #:configure-flags (list "-Dgtk_doc=true")
240 #:phases
241 (modify-phases %standard-phases
242 (add-after 'unpack 'patch-docbook-xml
243 (lambda* (#:key inputs #:allow-other-keys)
244 (with-directory-excursion "doc"
245 (substitute* "gupnp-igd-docs.xml"
246 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
247 (string-append (assoc-ref inputs "docbook-xml-4.1.2")
248 "/xml/dtd/docbook/"))))
249 #t))
250 (add-after 'install 'move-doc
251 (lambda* (#:key outputs #:allow-other-keys)
252 (let* ((out (assoc-ref outputs "out"))
253 (doc (assoc-ref outputs "doc")))
254 (mkdir-p (string-append doc "/share"))
255 (rename-file
256 (string-append out "/share/gtk-doc")
257 (string-append doc "/share/gtk-doc"))
258 #t))))))
259 (native-inputs
260 `(("docbook-xml-4.1.2" ,docbook-xml-4.1.2)
261 ("docbook-xsl" ,docbook-xsl)
262 ("glib:bin" ,glib "bin")
263 ("gobject-introspection" ,gobject-introspection)
264 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
265 ("gtk-doc" ,gtk-doc)
266 ("pkg-config" ,pkg-config)))
267 (propagated-inputs
268 `(("glib" ,glib)
269 ("glib-networking" ,glib-networking)
270 ("gssdp" ,gssdp)
271 ("gupnp" ,gupnp)
272 ("libsoup" ,libsoup)))
273 (synopsis "UPnP IGD for GNOME")
274 (description "GUPnP-IGD is a library to handle UPnP IGD port mapping.")
275 (home-page "https://gitlab.gnome.org/GNOME/gupnp-igd")
276 (license license:lgpl2.1+)))
277
278 (define-public brasero
279 (package
280 (name "brasero")
281 (version "3.12.2")
282 (source (origin
283 (method url-fetch)
284 (uri (string-append "mirror://gnome/sources/brasero/"
285 (version-major+minor version) "/"
286 "brasero-" version ".tar.xz"))
287 (sha256
288 (base32
289 "0h90y674j26rvjahb8cc0w79zx477rb6zaqcj26wzvq8kmpic8k8"))))
290 (build-system glib-or-gtk-build-system)
291 (arguments
292 `(#:configure-flags (list
293 (string-append "--with-girdir="
294 (assoc-ref %outputs "out")
295 "/share/gir-1.0")
296 (string-append "--with-typelibdir="
297 (assoc-ref %outputs "out")
298 "/lib/girepository-1.0"))
299 #:phases
300 (modify-phases %standard-phases
301 (add-before 'configure 'embed-growisofs
302 (lambda* (#:key inputs #:allow-other-keys)
303 (substitute* "plugins/growisofs/burn-growisofs.c"
304 (("\"growisofs") (string-append "\"" (which "growisofs"))))
305 #t)))))
306 (propagated-inputs
307 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
308 (native-inputs
309 `(("intltool" ,intltool)
310 ("itstool" ,itstool)
311 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
312 ("gobject-introspection" ,gobject-introspection)
313 ("pkg-config" ,pkg-config)))
314 (inputs
315 `(("dvd+rw-tools" ,dvd+rw-tools)
316 ("glib" ,glib)
317 ("gnome-doc-utils" ,gnome-doc-utils)
318 ("gstreamer" ,gstreamer)
319 ("gst-plugins-base" ,gst-plugins-base)
320 ("gtk+" ,gtk+)
321 ("libcanberra" ,libcanberra)
322 ("libice" ,libice)
323 ("libnotify" ,libnotify)
324 ("libsm" ,libsm)
325 ("libxml2" ,libxml2)
326 ("totem-pl-parser" ,totem-pl-parser)))
327 (home-page "https://wiki.gnome.org/Apps/Brasero")
328 (synopsis "CD/DVD burning tool for Gnome")
329 (description "Brasero is an application to burn CD/DVD for the Gnome
330 Desktop. It is designed to be as simple as possible and has some unique
331 features to enable users to create their discs easily and quickly.")
332 (license license:gpl2+)))
333
334 (define-public libcloudproviders
335 (package
336 (name "libcloudproviders")
337 (version "0.3.1")
338 (source
339 (origin
340 (method url-fetch)
341 (uri
342 (string-append "mirror://gnome/sources/" name "/"
343 (version-major+minor version) "/"
344 name "-" version ".tar.xz"))
345 (sha256
346 (base32 "0aars24myf6n8b8hm1n12hsgcm54097kpbpm4ba31zp1l4y22qs7"))))
347 (build-system meson-build-system)
348 (outputs '("out" "doc"))
349 (arguments
350 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
351 #:configure-flags
352 (list
353 "-Denable-gtk-doc=true")
354 #:phases
355 (modify-phases %standard-phases
356 (add-after 'install 'move-doc
357 (lambda* (#:key outputs #:allow-other-keys)
358 (let* ((out (assoc-ref outputs "out"))
359 (doc (assoc-ref outputs "doc")))
360 (mkdir-p (string-append doc "/share"))
361 (rename-file
362 (string-append out "/share/gtk-doc")
363 (string-append doc "/share/gtk-doc"))
364 #t))))))
365 (native-inputs
366 `(("glib:bin" ,glib "bin")
367 ("gobject-introspection" ,gobject-introspection)
368 ("gtk-doc" ,gtk-doc)
369 ("pkg-config" ,pkg-config)
370 ("vala" ,vala)))
371 (inputs
372 `(("glib" ,glib)
373 ("glib-networking" ,glib-networking)))
374 (synopsis "Cloudproviders Integration API")
375 (description "Libcloudproviders is a DBus API that allows cloud storage sync
376 clients to expose their services. Clients such as file managers and desktop
377 environments can then provide integrated access to the cloud providers
378 services.")
379 (home-page "https://csorianognome.wordpress.com/2015/07/07/cloud-providers/")
380 (license license:lgpl3+)))
381
382 (define-public libgrss
383 (package
384 (name "libgrss")
385 (version "0.7.0")
386 (source
387 (origin
388 (method url-fetch)
389 (uri
390 (string-append "mirror://gnome/sources/" name "/"
391 (version-major+minor version) "/"
392 name "-" version ".tar.xz"))
393 (sha256
394 (base32 "1nalslgyglvhpva3px06fj6lv5zgfg0qmj0sbxyyl5d963vc02b7"))))
395 (build-system glib-or-gtk-build-system)
396 (outputs '("out" "doc"))
397 (arguments
398 `(#:configure-flags
399 (list
400 "--enable-gtk-doc"
401 (string-append "--with-html-dir="
402 (assoc-ref %outputs "doc")
403 "/share/gtk-doc/html"))
404 #:phases
405 (modify-phases %standard-phases
406 (add-after 'unpack 'patch-docbook-xml
407 (lambda* (#:key inputs #:allow-other-keys)
408 (with-directory-excursion "doc/reference"
409 (substitute* "libgrss-docs.sgml"
410 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
411 (string-append (assoc-ref inputs "docbook-xml")
412 "/xml/dtd/docbook/"))))
413 #t)))))
414 (native-inputs
415 `(("docbook-xml" ,docbook-xml-4.1.2)
416 ("gobject-introspection" ,gobject-introspection)
417 ("gtk-doc" ,gtk-doc)
418 ("pkg-config" ,pkg-config)))
419 (propagated-inputs
420 `(("glib" ,glib)
421 ("libsoup" ,libsoup)
422 ("libxml2" ,libxml2)))
423 (synopsis "Glib library for feeds")
424 (description "LibGRSS is a Glib abstraction to handle feeds in RSS, Atom,
425 and other formats.")
426 (home-page "https://wiki.gnome.org/Projects/Libgrss")
427 (license license:lgpl3+)))
428
429 (define-public gnome-js-common
430 (package
431 (name "gnome-js-common")
432 (version "0.1.2")
433 (source
434 (origin
435 (method url-fetch)
436 (uri
437 (string-append "mirror://gnome/sources/" name "/"
438 (version-major+minor version) "/"
439 name "-" version ".tar.gz"))
440 (sha256
441 (base32 "1zv5b9bcbclzj64xd9kgql4ndmbwvvi6cl937ykw8fp21xgh8z7y"))))
442 (build-system glib-or-gtk-build-system)
443 (arguments
444 `(#:configure-flags
445 (list
446 "--disable-static")))
447 (native-inputs
448 `(("gettext" ,gettext-minimal)
449 ("intltool" ,intltool)
450 ("pkg-config" ,pkg-config)))
451 (synopsis "Common JS Modules")
452 (description "GNOME-JS-Common provides common modules for GNOME JavaScript
453 bindings.")
454 (home-page "https://wiki.gnome.org/Projects/Seed")
455 (license license:gpl3+)))
456
457 (define-public seed
458 (package
459 (name "seed")
460 (version "3.8.1")
461 (source
462 (origin
463 (method url-fetch)
464 (uri
465 (string-append "mirror://gnome/sources/" name "/"
466 (version-major+minor version) "/"
467 name "-" version ".tar.xz"))
468 (sha256
469 (base32 "0cmcxaggcdcy13j27gy8id2qsf2p2sl4bz2mwb9zhv3gzavlvjw0"))
470 (patches
471 (search-patches "seed-webkit.patch"))))
472 (build-system glib-or-gtk-build-system)
473 (outputs '("out" "doc"))
474 (arguments
475 `(#:configure-flags
476 (list
477 "--disable-static"
478 "--enable-xorg-module"
479 (string-append "--with-html-dir="
480 (assoc-ref %outputs "doc")
481 "/share/gtk-doc/html")
482 "--with-webkit=4.0")
483 #:phases
484 (modify-phases %standard-phases
485 ;; The seed-webkit.patch patches configure.ac.
486 ;; So the source files need to be re-bootstrapped.
487 (add-after 'unpack 'trigger-bootstrap
488 (lambda _
489 (for-each delete-file
490 (list
491 "configure"
492 "Makefile.in"))
493 #t))
494 (add-after 'unpack 'patch-tests
495 (lambda* (#:key outputs #:allow-other-keys)
496 (substitute* (find-files "." "\\.js$")
497 (("#!/usr/bin/env seed")
498 (string-append "#!" (getcwd) "/src/seed")))
499 #t))
500 (add-before 'build 'patch-docbook-xml
501 (lambda* (#:key inputs #:allow-other-keys)
502 (with-directory-excursion "doc"
503 (substitute* '("reference/seed-docs.sgml" "modules/book.xml")
504 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
505 (string-append (assoc-ref inputs "docbook-xml")
506 "/xml/dtd/docbook/"))))
507 #t)))))
508 (native-inputs
509 `(("autoconf" ,autoconf)
510 ("automake" ,automake)
511 ("docbook-xml" ,docbook-xml-4.1.2)
512 ("gettext" ,gettext-minimal)
513 ("gobject-introspection" ,gobject-introspection)
514 ("gtk-doc" ,gtk-doc)
515 ("intltool" ,intltool)
516 ("libtool" ,libtool)
517 ("pkg-config" ,pkg-config)))
518 (inputs
519 `(("cairo" ,cairo)
520 ("dbus" ,dbus)
521 ("dbus-glib" ,dbus-glib)
522 ("gnome-js-common" ,gnome-js-common)
523 ("gtk+" ,gtk+)
524 ("gtk+-2" ,gtk+-2)
525 ("libffi" ,libffi)
526 ("libxml2" ,libxml2)
527 ("mpfr" ,mpfr)
528 ("readline" ,readline)
529 ("sqlite" ,sqlite)
530 ("xscrnsaver" ,libxscrnsaver)))
531 (propagated-inputs
532 `(("glib" ,glib)
533 ("webkit" ,webkitgtk)))
534 (synopsis "GObject JavaScriptCore bridge")
535 (description "Seed is a library and interpreter, dynamically bridging
536 (through GObjectIntrospection) the WebKit JavaScriptCore engine, with the
537 GNOME platform. It serves as something which enables you to write standalone
538 applications in JavaScript, or easily enable your application to be extensible
539 in JavaScript.")
540 (home-page "https://wiki.gnome.org/Projects/Seed")
541 (license license:lgpl2.0+)))
542
543 (define-public libdmapsharing
544 (package
545 (name "libdmapsharing")
546 (version "3.9.10")
547 (source
548 (origin
549 (method url-fetch)
550 (uri
551 (string-append "https://www.flyn.org/projects/"
552 name "/" name "-" version ".tar.gz"))
553 (sha256
554 (base32 "152hnddwxv590cn802awv3mn27ixc3s6ac691a7z02d1c5fl45p2"))))
555 (build-system glib-or-gtk-build-system)
556 (outputs '("out" "doc"))
557 (arguments
558 `(#:tests? #f ; Tests require networking.
559 #:configure-flags
560 (list
561 "--disable-static"
562 (string-append "--with-html-dir="
563 (assoc-ref %outputs "doc")
564 "/share/gtk-doc/html"))
565 #:phases
566 (modify-phases %standard-phases
567 (add-after 'unpack 'patch-docbook-xml
568 (lambda* (#:key inputs #:allow-other-keys)
569 (with-directory-excursion "doc"
570 (substitute* "libdmapsharing-4.0-docs.xml"
571 (("http://www.oasis-open.org/docbook/xml/4.3/")
572 (string-append (assoc-ref inputs "docbook-xml")
573 "/xml/dtd/docbook/"))))
574 #t)))))
575 (native-inputs
576 `(("check" ,check)
577 ("docbook-xml" ,docbook-xml-4.3)
578 ("gobject-introspection" ,gobject-introspection)
579 ("pedansee" ,pedansee)
580 ("pkg-config" ,pkg-config)
581 ("vala" ,vala)))
582 (inputs
583 `(("avahi" ,avahi)
584 ("gdk-pixbuf" ,gdk-pixbuf+svg)
585 ("gee" ,libgee)
586 ("gst-plugins-base" ,gst-plugins-base)
587 ("gtk+" ,gtk+)))
588 (propagated-inputs
589 `(("glib" ,glib)
590 ("glib-networking" ,glib-networking)
591 ("gstreamer" ,gstreamer)
592 ("libsoup" ,libsoup)))
593 (synopsis "Media management library")
594 (description "Libdmapsharing is a library which allows programs to access,
595 share and control the playback of media content using DMAP (DAAP, DPAP & DACP).
596 It is written in C using GObject and libsoup.")
597 (home-page "https://launchpad.net/gtx")
598 (license license:lgpl2.1+)))
599
600 (define-public gtx
601 (package
602 (name "gtx")
603 (version "0.2.2")
604 (source
605 (origin
606 (method url-fetch)
607 (uri
608 (string-append "https://launchpad.net/gtx/trunk/"
609 version "/+download/gtx-" version ".tar.gz"))
610 (sha256
611 (base32 "0i4zvn5v4rf0cw3fxylk6j2pyy5lkrswdiw8jdxkys0ph0nan33n"))))
612 (build-system glib-or-gtk-build-system)
613 (outputs '("out" "doc"))
614 (arguments
615 `(#:configure-flags
616 (list
617 "--disable-static"
618 "--enable-gtk-doc"
619 (string-append "--with-html-dir="
620 (assoc-ref %outputs "doc")
621 "/share/gtk-doc/html"))))
622 (native-inputs
623 `(("gobject-introspection" ,gobject-introspection)
624 ("gtk-doc" ,gtk-doc)
625 ("pkg-config" ,pkg-config)))
626 (propagated-inputs
627 `(("glib" ,glib)))
628 (synopsis "GLib Testing Framework")
629 (description "GTX is a small collection of convenience functions intended to
630 enhance the GLib testing framework. With specific emphasis on easing the pain
631 of writing test cases for asynchronous interactions.")
632 (home-page "https://launchpad.net/gtx")
633 (license license:lgpl2.1+)))
634
635 (define-public dee
636 (package
637 (name "dee")
638 (version "1.2.7")
639 (source
640 (origin
641 (method url-fetch)
642 (uri
643 (string-append "https://launchpad.net/dee/1.0/"
644 version "/+download/dee-" version ".tar.gz"))
645 (sha256
646 (base32 "12mzffk0lyd566y46x57jlvb9af152b4dqpasr40zal4wrn37w0v"))
647 (patches
648 (search-patches "dee-vapi.patch"))))
649 (build-system glib-or-gtk-build-system)
650 (outputs '("out" "doc"))
651 (arguments
652 `(#:configure-flags
653 (list
654 "--disable-maintainer-flags"
655 (string-append "--with-pygi-overrides-dir="
656 (assoc-ref %outputs "out")
657 "/lib/python"
658 ,(version-major+minor
659 (package-version python))
660 "/site-packages/gi/overrides")
661 (string-append "--with-html-dir="
662 (assoc-ref %outputs "doc")
663 "/share/gtk-doc/html"))
664 #:phases
665 (modify-phases %standard-phases
666 (add-after 'unpack 'patch-docbook-xml
667 (lambda* (#:key inputs #:allow-other-keys)
668 (with-directory-excursion "doc/reference/dee-1.0"
669 (substitute* "dee-1.0-docs.sgml"
670 (("http://www.oasis-open.org/docbook/xml/4.3/")
671 (string-append (assoc-ref inputs "docbook-xml")
672 "/xml/dtd/docbook/"))))
673 #t))
674 (add-after 'patch-docbook-xml 'disable-failing-tests
675 (lambda _
676 (substitute* "tests/test-icu.c"
677 (("g_test_add \\(DOMAIN\"/Default/AsciiFolder\", Fixture, 0,")
678 "")
679 (("setup, test_ascii_folder, teardown\\);")
680 ""))
681 #t))
682 (add-before 'check 'pre-check
683 (lambda _
684 ;; Tests require a running dbus-daemon.
685 (system "dbus-daemon &")
686 ;; For missing '/etc/machine-id'.
687 (setenv "DBUS_FATAL_WARNINGS" "0")
688 #t)))))
689 (native-inputs
690 `(("dbus" ,dbus)
691 ("dbus-test-runner" ,dbus-test-runner)
692 ("docbook-xml" ,docbook-xml-4.3)
693 ("gobject-introspection" ,gobject-introspection)
694 ("gtk-doc" ,gtk-doc)
695 ;; Would only be required by configure flag "--enable-extended-tests".
696 ;("gtx" ,gtx)
697 ("pkg-config" ,pkg-config)
698 ("pygobject" ,python-pygobject)
699 ("python" ,python-wrapper)
700 ("vala" ,vala)))
701 (inputs
702 `(("icu" ,icu4c)))
703 (propagated-inputs
704 `(("glib" ,glib)))
705 (synopsis "Model to synchronize multiple instances over DBus")
706 (description "Dee is a library that uses DBus to provide objects allowing
707 you to create Model-View-Controller type programs across DBus. It also consists
708 of utility objects which extend DBus allowing for peer-to-peer discoverability
709 of known objects without needing a central registrar.")
710 (home-page "https://launchpad.net/dee")
711 (license
712 ;; Dual-licensed
713 (list
714 license:lgpl3+
715 license:gpl3+))))
716
717 (define-public zeitgeist
718 (package
719 (name "zeitgeist")
720 (version "1.0.3")
721 (source
722 (origin
723 (method git-fetch)
724 (uri
725 (git-reference
726 (url "https://gitlab.freedesktop.org/zeitgeist/zeitgeist.git")
727 (commit
728 (string-append "v" version))))
729 (file-name
730 (git-file-name name version))
731 (sha256
732 (base32 "0y6fyzxl5np4yskcxibd0p03h619w9ir907nhf40h02y0pk1kgkp"))))
733 (build-system glib-or-gtk-build-system)
734 (arguments
735 `(#:configure-flags
736 (list
737 "--enable-explain-queries"
738 "--enable-fts"
739 "--enable-docs")
740 #:phases
741 (modify-phases %standard-phases
742 (add-after 'unpack 'patch-docbook-xml
743 (lambda* (#:key inputs #:allow-other-keys)
744 (with-directory-excursion "doc/libzeitgeist"
745 (substitute* "zeitgeist-gtkdoc-index.sgml"
746 (("http://www.oasis-open.org/docbook/xml/4.3/")
747 (string-append (assoc-ref inputs "docbook-xml")
748 "/xml/dtd/docbook/"))))
749 #t))
750 (add-after 'patch-docbook-xml 'disable-failing-tests
751 (lambda _
752 (substitute* "test/direct/Makefile.am"
753 ((" log-test ")
754 ""))
755 (substitute* "test/c/Makefile.am"
756 ((" test-log ")
757 ""))
758 #t))
759 (add-before 'bootstrap 'remove-autogen-script
760 (lambda _
761 ;; To honor `autoreconf -vif` by build-system.
762 (delete-file "autogen.sh")
763 #t)))))
764 (native-inputs
765 `(("autoconf" ,autoconf)
766 ("automake" ,automake)
767 ("docbook-xml" ,docbook-xml-4.3)
768 ("gettext" ,gettext-minimal)
769 ("gobject-introspection" ,gobject-introspection)
770 ("gtk-doc" ,gtk-doc)
771 ("libtool" ,libtool)
772 ("pkg-config" ,pkg-config)
773 ("vala" ,vala)
774 ("xorg-server-for-tests" ,xorg-server-for-tests)))
775 (inputs
776 `(("dee-icu" ,dee)
777 ("gtk+" ,gtk+)
778 ("json-glib" ,json-glib)
779 ("sqlite" ,sqlite)
780 ("telepathy-glib" ,telepathy-glib)
781 ("python" ,python-wrapper)
782 ("python-rdflib" ,python-rdflib)
783 ("xapian-config" ,xapian)))
784 (propagated-inputs
785 `(("glib" ,glib)))
786 (synopsis "Desktop Activity Logging")
787 (description "Zeitgeist is a service which logs the users’s activities and
788 events, anywhere from files opened to websites visited and conversations. It
789 makes this information readily available for other applications to use. It is
790 able to establish relationships between items based on similarity and usage
791 patterns.")
792 (home-page "https://zeitgeist.freedesktop.org/")
793 (license
794 ;; Dual-licensed
795 (list
796 license:lgpl2.1+
797 license:gpl2+))))
798
799 (define-public gnome-recipes
800 (package
801 (name "gnome-recipes")
802 (version "2.0.4")
803 (source (origin
804 (method git-fetch)
805 (uri (git-reference
806 (url "https://gitlab.gnome.org/GNOME/recipes")
807 (commit version)))
808 (file-name (git-file-name name version))
809 (sha256
810 (base32
811 "1h049mzqnlcfqwrhmzbq3pzzdglvy2bn9fj1p8wql7a60pn8sr32"))))
812 (build-system meson-build-system)
813 (arguments
814 `(#:glib-or-gtk? #t
815 #:phases
816 (modify-phases %standard-phases
817 (add-after 'unpack 'skip-gtk-update-icon-cache
818 (lambda _
819 (substitute* "meson_post_install.py"
820 (("gtk-update-icon-cache") (which "true")))
821 #t))
822 (add-after 'unpack 'unpack-libgd
823 (lambda* (#:key inputs #:allow-other-keys)
824 (let ((libgd (assoc-ref inputs "libgd")))
825 (copy-recursively libgd "subprojects/libgd")
826 #t))))))
827 (inputs
828 `(("glib" ,glib)
829 ("gnome-autoar" ,gnome-autoar)
830 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
831 ("gspell" ,gspell)
832 ("gtk+" ,gtk+)
833 ("json-glib" ,json-glib)
834 ("libcanberra" ,libcanberra)
835 ("libsoup" ,libsoup)
836 ("rest" ,rest)))
837 (native-inputs
838 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
839 ("gettext" ,gettext-minimal)
840 ("glib:bin" ,glib "bin")
841 ("itstool" ,itstool)
842 ("libgd"
843 ,(origin
844 (method git-fetch)
845 (uri (git-reference
846 (url "https://gitlab.gnome.org/GNOME/libgd")
847 (commit "c7c7ff4e05d3fe82854219091cf116cce6b19de0")))
848 (file-name (git-file-name "libgd" version))
849 (sha256
850 (base32 "16yld0ap7qj1n96h4f2sqkjmibg7xx5xwkqxdfzam2nmyfdlrrrs"))))
851 ("pkg-config" ,pkg-config)))
852 (home-page "https://wiki.gnome.org/Apps/Recipes")
853 (synopsis "Discover recipes for preparing food")
854 (description "GNOME Recipes helps you discover what to cook today,
855 tomorrow, the rest of the week and for special occasions.")
856 (license license:gpl3+)))
857
858 (define-public gnome-photos
859 (package
860 (name "gnome-photos")
861 (version "3.34.2")
862 (source
863 (origin
864 (method url-fetch)
865 (uri
866 (string-append "mirror://gnome/sources/" name "/"
867 (version-major+minor version) "/"
868 name "-" version ".tar.xz"))
869 (sha256
870 (base32
871 "06ml5sf8xhpan410msqz085hmfc7082d368pb82yq646y9pcfn9w"))))
872 (build-system meson-build-system)
873 (arguments
874 `(#:glib-or-gtk? #t
875 #:configure-flags
876 (list "-Ddogtail=false" ; Not available
877 ;; Required for RUNPATH validation.
878 (string-append "-Dc_link_args=-Wl,-rpath="
879 (assoc-ref %outputs "out") "/lib/gnome-photos"))
880 #:phases
881 (modify-phases %standard-phases
882 (add-after 'install 'wrap-gnome-photos
883 (lambda* (#:key inputs outputs #:allow-other-keys)
884 (let*
885 ((out (assoc-ref outputs "out")))
886 (wrap-program (string-append out "/bin/gnome-photos")
887 `("GRL_PLUGIN_PATH" = (,(getenv "GRL_PLUGIN_PATH")))))
888 #t)))))
889 (native-inputs
890 `(("dbus" ,dbus)
891 ("desktop-file-utils" ,desktop-file-utils)
892 ("gettext" ,gettext-minimal)
893 ("git" ,git-minimal)
894 ("glib:bin" ,glib "bin")
895 ("gobject-introspection" ,gobject-introspection)
896 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
897 ("gtk+:bin" ,gtk+ "bin")
898 ("itstool" ,itstool)
899 ("pkg-config" ,pkg-config)))
900 (inputs
901 `(("babl" ,babl)
902 ("cairo" ,cairo)
903 ("gdk-pixbuf" ,gdk-pixbuf+svg)
904 ("gegl" ,gegl)
905 ("geocode-glib" ,geocode-glib)
906 ("gexiv2" ,gexiv2)
907 ("gnome-online-accounts" ,gnome-online-accounts)
908 ("gnome-online-miners" ,gnome-online-miners)
909 ("grilo" ,grilo)
910 ("grilo-plugins" ,grilo-plugins)
911 ("gtk+" ,gtk+)
912 ("libdazzle" ,libdazzle)
913 ("libgdata" ,libgdata)
914 ("libgfbgraph" ,gfbgraph)
915 ("libjpeg" ,libjpeg-turbo)
916 ("libpng" ,libpng)
917 ("librest" ,rest)
918 ("pygobject" ,python-pygobject)
919 ("tracker" ,tracker)
920 ("tracker-miners" ,tracker-miners)))
921 (synopsis "Access, organize and share your photos on GNOME desktop")
922 (description "GNOME Photos is a simple and elegant replacement for using a
923 file manager to deal with photos. Enhance, crop and edit in a snap. Seamless
924 cloud integration is offered through GNOME Online Accounts.")
925 (home-page "https://wiki.gnome.org/Apps/Photos")
926 (license license:gpl3+)))
927
928 (define-public gnome-music
929 (package
930 (name "gnome-music")
931 (version "3.34.5")
932 (source
933 (origin
934 (method url-fetch)
935 (uri
936 (string-append "mirror://gnome/sources/" name "/"
937 (version-major+minor version) "/"
938 name "-" version ".tar.xz"))
939 (sha256
940 (base32
941 "1r5sfw5cbd6qqh27lzhblazir0bfi3k7nqppw66qw990isqm5psy"))))
942 (build-system meson-build-system)
943 (arguments
944 `(#:glib-or-gtk? #t
945 #:phases
946 (modify-phases %standard-phases
947 (add-after 'install 'wrap-gnome-music
948 (lambda* (#:key inputs outputs #:allow-other-keys)
949 (let*
950 ((out (assoc-ref outputs "out"))
951 (pylib (string-append out "/lib/python"
952 ,(version-major+minor
953 (package-version python))
954 "/site-packages")))
955 (wrap-program (string-append out "/bin/gnome-music")
956 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))
957 `("GST_PLUGIN_SYSTEM_PATH" = (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
958 `("GRL_PLUGIN_PATH" = (,(getenv "GRL_PLUGIN_PATH")))
959 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))))
960 #t)))))
961 (native-inputs
962 `(("desktop-file-utils" ,desktop-file-utils)
963 ("gettext" ,gettext-minimal)
964 ("glib:bin" ,glib "bin")
965 ("gobject-introspection" ,gobject-introspection)
966 ("gtk+:bin" ,gtk+ "bin")
967 ("itstools" ,itstool)
968 ("pkg-config" ,pkg-config)))
969 (inputs
970 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
971 ("grilo" ,grilo)
972 ("grilo-plugins" ,grilo-plugins)
973 ("gst-plugins-base" ,gst-plugins-base)
974 ("gstreamer" ,gstreamer)
975 ("gvfs" ,gvfs)
976 ("libdazzle" ,libdazzle)
977 ("libmediaart" ,libmediaart)
978 ("libsoup" ,libsoup)
979 ("pycairo" ,python-pycairo)
980 ("pygobject" ,python-pygobject)
981 ("tracker" ,tracker)
982 ("tracker-miners" ,tracker-miners)))
983 (synopsis "Simple music player for GNOME desktop")
984 (description "GNOME Music is the new GNOME music playing application that
985 aims to combine an elegant and immersive browsing experience with simple
986 and straightforward controls.")
987 (home-page "https://wiki.gnome.org/Apps/Music")
988 (license license:gpl2+)))
989
990 (define-public portablexdr
991 (package
992 (name "portablexdr")
993 (version "4.9.1")
994 (source
995 (origin
996 (method url-fetch)
997 (uri
998 (string-append "https://people.redhat.com/~rjones/" name "/files/"
999 name "-" version ".tar.gz"))
1000 (sha256
1001 (base32
1002 "0b77ipvvi520nv7rr6jb1c3xryhc3m2mywhby7m48kfgag8vvx2w"))))
1003 (build-system gnu-build-system)
1004 (synopsis "External Data Representation Library")
1005 (description "PortableXDR is an implementation of External Data
1006 Representation (XDR) Library. It is a standard data serialization format, for
1007 uses such as computer network protocols. It allows data to be transferred
1008 between different kinds of computer systems.")
1009 (home-page "https://people.redhat.com/~rjones/portablexdr/")
1010 (license
1011 (list
1012 license:gpl2+
1013 license:lgpl2.1+))))
1014
1015 (define-public tepl
1016 (package
1017 (name "tepl")
1018 (version "4.4.0")
1019 (source
1020 (origin
1021 (method url-fetch)
1022 (uri
1023 (string-append "mirror://gnome/sources/" name "/"
1024 (version-major+minor version) "/"
1025 name "-" version ".tar.xz"))
1026 (sha256
1027 (base32
1028 "0mm2z849hnni7597an05mrv0dckrxjngpf2xfa0g5s17i8x6gxp6"))))
1029 (build-system glib-or-gtk-build-system)
1030 (arguments
1031 `(#:tests? #f)) ; FIX-ME: Requires gvfs
1032 (native-inputs
1033 `(("gobject-introspection" ,gobject-introspection)
1034 ("pkg-config" ,pkg-config)))
1035 (inputs
1036 `(("amtk" ,amtk)
1037 ("glib" ,glib)
1038 ("gtk+" ,gtk+)
1039 ("gtksourceview" ,gtksourceview)
1040 ("libxml2" ,libxml2)
1041 ("uchardet" ,uchardet)))
1042 (synopsis "Text editor product line")
1043 (description "Tepl is a library that eases the development of
1044 GtkSourceView-based text editors and IDEs.")
1045 (home-page "https://wiki.gnome.org/Projects/Tepl")
1046 (license license:lgpl2.1+)))
1047
1048 (define-public krb5-auth-dialog
1049 (package
1050 (name "krb5-auth-dialog")
1051 (version "3.26.1")
1052 (source
1053 (origin
1054 (method url-fetch)
1055 (uri
1056 (string-append "mirror://gnome/sources/" name "/"
1057 (version-major+minor version) "/"
1058 name "-" version ".tar.xz"))
1059 (sha256
1060 (base32
1061 "1w91gsvmifqhiam3xqf88i5rk2w6qadjalmbvvamjdc37j0vdc6x"))))
1062 (build-system glib-or-gtk-build-system)
1063 (native-inputs
1064 `(("intltool" ,intltool)
1065 ("itstool" ,itstool)
1066 ("libxml2" ,libxml2)
1067 ("pkg-config" ,pkg-config)
1068 ("python-wrapper" ,python-wrapper)))
1069 (inputs
1070 `(("glib" ,glib)
1071 ("gtk+" ,gtk+)
1072 ("libnotify" ,libnotify)
1073 ("mit-krb5" ,mit-krb5)
1074 ("network-manager" ,network-manager)))
1075 (synopsis "Popup dialogs for Kerberos 5")
1076 (description "krb5-auth-dialog is a simple dialog that monitors Kerberos
1077 tickets, and pops up a dialog when they are about to expire.")
1078 (home-page "https://gitlab.gnome.org/GNOME/krb5-auth-dialog")
1079 (license license:gpl2+)))
1080
1081 (define-public notification-daemon
1082 (package
1083 (name "notification-daemon")
1084 (version "3.20.0")
1085 (source
1086 (origin
1087 (method url-fetch)
1088 (uri
1089 (string-append "mirror://gnome/sources/" name "/"
1090 (version-major+minor version) "/"
1091 name "-" version ".tar.xz"))
1092 (sha256
1093 (base32
1094 "1rgchqi4j2ll7d6a7lgy7id0w9rrkwkgic1096fbm2zx6n7pc4yx"))))
1095 (build-system glib-or-gtk-build-system)
1096 (native-inputs
1097 `(("intltool" ,intltool)
1098 ("pkg-config" ,pkg-config)))
1099 (inputs
1100 `(("glib" ,glib)
1101 ("gtk+" ,gtk+)
1102 ("x11" ,libx11)))
1103 (synopsis "Notification Daemon for GNOME Desktop")
1104 (description "Notification-Daemon is the server implementation of the
1105 freedesktop.org desktop notification specification.")
1106 (home-page "https://wiki.gnome.org/Projects/NotificationDaemon")
1107 (license license:gpl2+)))
1108
1109 (define-public mm-common
1110 (package
1111 (name "mm-common")
1112 (version "1.0.2")
1113 (source (origin
1114 (method url-fetch)
1115 (uri (string-append "mirror://gnome/sources/mm-common/"
1116 (version-major+minor version) "/"
1117 "mm-common-" version ".tar.xz"))
1118 (sha256
1119 (base32
1120 "07b4s5ckcz9q5gwx8vchim19mhfgl8wysqwi30pndks3m4zrzad2"))))
1121 (build-system meson-build-system)
1122 (arguments
1123 `(#:phases
1124 (modify-phases %standard-phases
1125 (add-after 'unpack 'patch
1126 (lambda* (#:key inputs #:allow-other-keys)
1127 (substitute* "util/mm-common-prepare.in"
1128 (("ln") (string-append (assoc-ref inputs "coreutils")
1129 "/bin/ln"))
1130 (("cp") (string-append (assoc-ref inputs "coreutils")
1131 "/bin/cp"))
1132 (("sed") (string-append (assoc-ref inputs "sed")
1133 "/bin/sed"))
1134 (("cat") (string-append (assoc-ref inputs "coreutils")
1135 "/bin/cat")))
1136 #t)))))
1137 (native-inputs
1138 `(("coreutils" ,coreutils)
1139 ("gettext" ,gettext-minimal)
1140 ("pkg-config" ,pkg-config)
1141 ("sed" ,sed)))
1142 (inputs
1143 `(("python" ,python)))
1144 (synopsis "Module of GNOME C++ bindings")
1145 (description "The mm-common module provides the build infrastructure
1146 and utilities shared among the GNOME C++ binding libraries. Release
1147 archives of mm-common include the Doxygen tag file for the GNU C++
1148 Library reference documentation.")
1149 (home-page "https://gitlab.gnome.org/GNOME/mm-common")
1150 (license license:gpl2+)))
1151
1152 (define-public phodav
1153 (package
1154 (name "phodav")
1155 (version "2.5")
1156 (source (origin
1157 (method url-fetch)
1158 (uri (string-append "mirror://gnome/sources/" name "/"
1159 (version-major+minor version) "/"
1160 name "-" version ".tar.xz"))
1161 (sha256
1162 (base32
1163 "045rdzf8isqmzix12lkz6z073b5qvcqq6ad028advm5gf36skw3i"))))
1164 (build-system meson-build-system)
1165 (arguments
1166 `(#:phases
1167 (modify-phases %standard-phases
1168 (add-before 'check 'start-virtual-dir-server
1169 ;; The same server when started by tests/virtual-dir returns an
1170 ;; unexpected status (4 instead of 200) and fails a test. It is
1171 ;; unclear why starting it manually here makes it pass.
1172 (lambda _
1173 (system "tests/virtual-dir-server &")
1174 #t)))))
1175 (native-inputs
1176 `(("docbook-xml" ,docbook-xml-4.3)
1177 ("gettext" ,gettext-minimal)
1178 ("glib:bin" ,glib "bin")
1179 ("gtk-doc" ,gtk-doc)
1180 ("pkg-config" ,pkg-config)))
1181 (inputs
1182 `(("avahi" ,avahi)
1183 ("libgudev" ,libgudev)
1184 ("libsoup" ,libsoup)))
1185 (synopsis "WebDav server implementation using libsoup")
1186 (description "PhoDav was initially developed as a file-sharing mechanism for Spice,
1187 but it is generic enough to be reused in other projects,
1188 in particular in the GNOME desktop.")
1189 (home-page "https://wiki.gnome.org/phodav")
1190 (license license:lgpl2.1+)))
1191
1192 (define-public gnome-color-manager
1193 (package
1194 (name "gnome-color-manager")
1195 (version "3.32.0")
1196 (source (origin
1197 (method url-fetch)
1198 (uri (string-append "mirror://gnome/sources/" name "/"
1199 (version-major+minor version) "/"
1200 name "-" version ".tar.xz"))
1201 (sha256
1202 (base32
1203 "1vpxa2zjz3lkq9ldjg0fl65db9s6b4kcs8nyaqfz3jygma7ifg3w"))))
1204 (build-system meson-build-system)
1205 (arguments
1206 `(#:glib-or-gtk? #t
1207 #:phases
1208 (modify-phases %standard-phases
1209 (add-before
1210 'check 'pre-check
1211 (lambda _
1212 ;; Tests require a running X server.
1213 (system "Xvfb :1 &")
1214 (setenv "DISPLAY" ":1")
1215 #t)))))
1216 (native-inputs
1217 `(("desktop-file-utils" ,desktop-file-utils)
1218 ("gettext" ,gettext-minimal)
1219 ("glib:bin" ,glib "bin")
1220 ("gtk+:bin" ,gtk+ "bin")
1221 ("itstool" ,itstool)
1222 ("pkg-config" ,pkg-config)
1223 ("xorg-server" ,xorg-server-for-tests)))
1224 (inputs
1225 `(("adwaita-icon-theme" ,adwaita-icon-theme)
1226 ("appstream-glib" ,appstream-glib)
1227 ("colord-gtk" ,colord-gtk)
1228 ("exiv2" ,exiv2)
1229 ("gnome-desktop" ,gnome-desktop)
1230 ("libcanberra" ,libcanberra)
1231 ("libexif" ,libexif)
1232 ("libtiff" ,libtiff)
1233 ("libxrandr" ,libxrandr)
1234 ("libxtst" ,libxtst)
1235 ("libxxf86vm" ,libxxf86vm)
1236 ("vte" ,vte)
1237 ("xorgproto" ,xorgproto)))
1238 (synopsis "Color profile manager for the GNOME desktop")
1239 (description "GNOME Color Manager is a session framework that makes
1240 it easy to manage, install and generate color profiles
1241 in the GNOME desktop.")
1242 (home-page "https://gitlab.gnome.org/GNOME/gnome-color-manager")
1243 (license license:gpl2+)))
1244
1245 (define-public gnome-online-miners
1246 (package
1247 (name "gnome-online-miners")
1248 (version "3.34.0")
1249 (source (origin
1250 (method url-fetch)
1251 (uri (string-append "mirror://gnome/sources/" name "/"
1252 (version-major+minor version) "/"
1253 name "-" version ".tar.xz"))
1254 (sha256
1255 (base32
1256 "1n2jz9i8a42zwxx5h8j2gdy6q1vyydh4vl00r0al7w8jzdh24p44"))))
1257 (build-system glib-or-gtk-build-system)
1258 (native-inputs
1259 `(("gettext" ,gettext-minimal)
1260 ("glib:bin" ,glib "bin")
1261 ("gobject-introspection" ,gobject-introspection)
1262 ("gtk+:bin" ,gtk+ "bin")
1263 ("pkg-config" ,pkg-config)))
1264 (inputs
1265 `(("gnome-online-accounts" ,gnome-online-accounts)
1266 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1267 ("grilo" ,grilo)
1268 ("libgdata" ,libgdata)
1269 ("libgfbgraph" ,gfbgraph)
1270 ("libzapojit" ,libzapojit)
1271 ("rest" ,rest)
1272 ("tracker" ,tracker)))
1273 (synopsis "Web Crawlers for GNOME")
1274 (description "GNOME Online Miners provides a set of crawlers that
1275 go through your online content and index them locally in Tracker.
1276 It has miners for Facebook, Flickr, Google, ownCloud and SkyDrive.")
1277 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineMiners")
1278 (license license:gpl2+)))
1279
1280 (define-public gssdp
1281 (package
1282 (name "gssdp")
1283 (version "1.2.3")
1284 (source (origin
1285 (method url-fetch)
1286 (uri (string-append "mirror://gnome/sources/" name "/"
1287 (version-major+minor version) "/"
1288 name "-" version ".tar.xz"))
1289 (sha256
1290 (base32
1291 "1s57i8a8wnnxnsfl27cq4503dkdlzbrhry5zpg23sfqfffvdqqx2"))))
1292 (build-system meson-build-system)
1293 (native-inputs
1294 `(("gettext" ,gettext-minimal)
1295 ("glib:bin" ,glib "bin")
1296 ("gobject-introspection" ,gobject-introspection)
1297 ("gtk-doc" ,gtk-doc)
1298 ("pkg-config" ,pkg-config)
1299 ("vala" ,vala)))
1300 (inputs
1301 `(("gtk+" ,gtk+)
1302 ("libsoup" ,libsoup)))
1303 (synopsis "GObject-based API over @acronym{SSDP, Simple Service Discovery
1304 Protocol} for GNOME")
1305 (description "This package provides a library to handle resource discovery
1306 and announcement over @acronym{SSDP, Simple Service Discovery Protocol} and
1307 a debugging tool, @command{gssdp-device-sniffer}.")
1308 (home-page "https://gitlab.gnome.org/GNOME/gssdp")
1309 (license license:lgpl2.0+)))
1310
1311 (define-public gupnp
1312 (package
1313 (name "gupnp")
1314 (version "1.2.4")
1315 (source (origin
1316 (method url-fetch)
1317 (uri (string-append "mirror://gnome/sources/" name "/"
1318 (version-major+minor version) "/"
1319 name "-" version ".tar.xz"))
1320 (sha256
1321 (base32
1322 "1ld7mrpdv9cszmfzh7i19qx4li25j3fr7x1jp38l8phzlmz3187p"))))
1323 (build-system meson-build-system)
1324 (native-inputs
1325 `(("gettext" ,gettext-minimal)
1326 ("glib:bin" ,glib "bin")
1327 ("gobject-introspection" ,gobject-introspection)
1328 ("gtk-doc" ,gtk-doc)
1329 ("pkg-config" ,pkg-config)
1330 ("vala" ,vala)))
1331 (inputs
1332 `(("gssdp" ,gssdp)
1333 ("gtk+" ,gtk+)
1334 ("libsoup" ,libsoup)))
1335 (synopsis "PnP API for GNOME")
1336 (description "This package provides GUPnP, an object-oriented framework
1337 for creating UPnP devices and control points, written in C using
1338 @code{GObject} and @code{libsoup}.")
1339 (home-page "https://gitlab.gnome.org/GNOME/gupnp")
1340 (license license:lgpl2.0+)))
1341
1342 (define-public gupnp-dlna
1343 (package
1344 (name "gupnp-dlna")
1345 (version "0.10.5")
1346 (source (origin
1347 (method url-fetch)
1348 (uri (string-append "mirror://gnome/sources/" name "/"
1349 (version-major+minor version) "/"
1350 name "-" version ".tar.xz"))
1351 (sha256
1352 (base32
1353 "0spzd2saax7w776p5laixdam6d7smyynr9qszhbmq7f14y13cghj"))))
1354 (build-system gnu-build-system)
1355 (native-inputs
1356 `(("gettext" ,gettext-minimal)
1357 ("glib:bin" ,glib "bin")
1358 ("gobject-introspection" ,gobject-introspection)
1359 ("gtk-doc" ,gtk-doc)
1360 ("libxml" ,libxml2)
1361 ("pkg-config" ,pkg-config)
1362 ("vala" ,vala)))
1363 (inputs
1364 `(("gstreamer" ,gstreamer)
1365 ("gupnp" ,gupnp)))
1366 (propagated-inputs
1367 `(("gst-plugins-base" ,gst-plugins-base)
1368 ("gst-plugins-good" ,gst-plugins-good)))
1369 (synopsis "GUPnP DLNA for GNOME")
1370 (description "This package provides a small utility library to
1371 support DLNA-related tasks such as media profile guessing, transcoding to a
1372 given profile, etc. DLNA is a subset of UPnP A/V.")
1373 (home-page "https://gitlab.gnome.org/GNOME/gupnp-dlna")
1374 (license license:lgpl2.0+)))
1375
1376 (define-public gupnp-av
1377 (package
1378 (name "gupnp-av")
1379 (version "0.12.11")
1380 (source (origin
1381 (method url-fetch)
1382 (uri (string-append "mirror://gnome/sources/" name "/"
1383 (version-major+minor version) "/"
1384 name "-" version ".tar.xz"))
1385 (sha256
1386 (base32
1387 "1p3grslwqm9bc8rmpn4l48d7v9s84nina4r9xbd932dbj8acz7b8"))))
1388 (build-system gnu-build-system)
1389 (native-inputs
1390 `(("gettext" ,gettext-minimal)
1391 ("glib:bin" ,glib "bin")
1392 ("gobject-introspection" ,gobject-introspection)
1393 ("gtk-doc" ,gtk-doc)
1394 ("libxml" ,libxml2)
1395 ("pkg-config" ,pkg-config)))
1396 (inputs
1397 `(("gtk+" ,gtk+)
1398 ("gupnp" ,gupnp)))
1399 (synopsis "GUPnP A/V for GNOME")
1400 (description "This package provides a small library for handling
1401 and implementation of UPnP A/V profiles.")
1402 (home-page "https://gitlab.gnome.org/GNOME/gupnp-av")
1403 (license license:lgpl2.0+)))
1404
1405 (define-public libmediaart
1406 (package
1407 (name "libmediaart")
1408 (version "1.9.4")
1409 (source (origin
1410 (method url-fetch)
1411 (uri (string-append "mirror://gnome/sources/" name "/"
1412 (version-major+minor version) "/"
1413 name "-" version ".tar.xz"))
1414 (sha256
1415 (base32
1416 "0gc10imyabk57ar54m0qzms0x9dnmkymhkzyk8w1aj3y4lby0yx5"))))
1417 (build-system gnu-build-system)
1418 (native-inputs
1419 `(("glib:bin" ,glib "bin")
1420 ("pkg-config" ,pkg-config)))
1421 (inputs
1422 `(("gdk-pixbuf" ,gdk-pixbuf)
1423 ("gettext" ,gettext-minimal)
1424 ("gobject-introspection" ,gobject-introspection)
1425 ("gtk+:doc" ,gtk+ "doc")
1426 ("vala" ,vala)))
1427 (synopsis "Media art library for the GNOME desktop")
1428 (description
1429 "The libmediaart library is the foundation for media art caching,
1430 extraction, and lookup for applications on the desktop.")
1431 (home-page "https://gitlab.gnome.org/GNOME/libmediaart")
1432 (license license:lgpl2.1+)))
1433
1434 (define-public gnome-initial-setup
1435 (package
1436 (name "gnome-initial-setup")
1437 (version "3.32.1")
1438 (source (origin
1439 (method url-fetch)
1440 (uri (string-append "mirror://gnome/sources/gnome-initial-setup/"
1441 (version-major+minor version)
1442 "/gnome-initial-setup-" version ".tar.xz"))
1443 (sha256
1444 (base32
1445 "1gwhp7dalyc8zsb2pa66cmpdrj2d6drbq5p331sq6zp8ds10k9ry"))))
1446 (build-system meson-build-system)
1447 (arguments
1448 '(#:configure-flags '(;; Enable camera support for user selfie.
1449 "-Dcheese=auto"
1450 "-Dsystemd=false")
1451 #:phases (modify-phases %standard-phases
1452 (add-after 'unpack 'set-gkbd-file-name
1453 (lambda* (#:key inputs #:allow-other-keys)
1454 ;; Allow the "Preview" button in the keyboard layout
1455 ;; selection dialog to display the layout.
1456 (let ((libgnomekbd (assoc-ref inputs "libgnomekbd")))
1457 (substitute* "gnome-initial-setup/pages/keyboard/cc-input-chooser.c"
1458 (("\"gkbd-keyboard-display")
1459 (string-append "\"" libgnomekbd
1460 "/bin/gkbd-keyboard-display")))
1461 #t))))))
1462 (native-inputs
1463 `(("gettext" ,gettext-minimal)
1464 ("glib:bin" ,glib "bin")
1465 ("gobject-introspection" ,gobject-introspection)
1466 ("gtk+:bin" ,gtk+ "bin")
1467 ("pkg-config" ,pkg-config)))
1468 (inputs
1469 `(("accountsservice" ,accountsservice)
1470 ;("adwaita-icon-theme" ,adwaita-icon-theme)
1471 ("gdm" ,gdm)
1472 ("geoclue" ,geoclue)
1473 ("gnome-desktop" ,gnome-desktop)
1474 ("gnome-getting-started-docs" ,gnome-getting-started-docs)
1475 ("gnome-online-accounts" ,gnome-online-accounts)
1476 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1477 ("gstreamer" ,gstreamer)
1478 ("ibus" ,ibus)
1479 ("json-glib" ,json-glib)
1480 ("krb5" ,mit-krb5)
1481 ("libgweather" ,libgweather)
1482 ("libnma" ,libnma)
1483 ("libsecret" ,libsecret)
1484 ("network-manager" ,network-manager)
1485 ("packagekit" ,packagekit)
1486 ("polkit" ,polkit)
1487 ("pwquality" ,libpwquality)
1488 ("rest" ,rest)
1489 ("upower" ,upower)
1490 ("webkitgtk" ,webkitgtk)
1491 ("libgnomekbd" ,libgnomekbd)))
1492 (synopsis "Initial setup wizard for GNOME desktop")
1493 (description "This package provides a set-up wizard when a
1494 user logs into GNOME for the first time. It typically provides a
1495 tour of all gnome components and allows the user to set them up.")
1496 (home-page "https://gitlab.gnome.org/GNOME/gnome-initial-setup")
1497 (license license:gpl2)))
1498
1499 (define-public gnome-user-share
1500 (package
1501 (name "gnome-user-share")
1502 (version "3.33.1")
1503 (source (origin
1504 (method url-fetch)
1505 (uri (string-append "mirror://gnome/sources/" name "/"
1506 (version-major+minor version) "/"
1507 name "-" version ".tar.xz"))
1508 (sha256
1509 (base32
1510 "0lf790pyamdyj7180ils8vizjl8brxcg7jsm1iavfp9ay4wa8mz7"))))
1511 (build-system meson-build-system)
1512 (arguments
1513 `(#:glib-or-gtk? #t
1514 #:configure-flags
1515 `("-Dsystemd=false"
1516 ;; Enable nautilus extension for file sharing.
1517 "-Dnautilus_extension=true")))
1518 (native-inputs
1519 `(("gettext" ,gettext-minimal)
1520 ("glib:bin" ,glib "bin")
1521 ("gobject-introspection" ,gobject-introspection)
1522 ("gtk+:bin" ,gtk+ "bin")
1523 ("pkg-config" ,pkg-config)
1524 ("yelp-tools" ,yelp-tools)))
1525 (inputs
1526 `(("glib" ,glib)
1527 ("gnome-bluetooth" ,gnome-bluetooth)
1528 ("gtk+" ,gtk+)
1529 ("libcanberra" ,libcanberra)
1530 ("libnotify" ,libnotify)
1531 ("nautilus" ,nautilus))) ; For nautilus extension.
1532 (synopsis "File sharing for GNOME desktop")
1533 (description "GNOME User Share is a small package that binds together
1534 various free software projects to bring easy to use user-level file
1535 sharing to the masses.")
1536 (home-page "https://gitlab.gnome.org/GNOME/gnome-user-share")
1537 (license license:gpl2+)))
1538
1539 (define-public sushi
1540 (package
1541 (name "sushi")
1542 (version "3.32.1")
1543 (source (origin
1544 (method url-fetch)
1545 (uri (string-append "mirror://gnome/sources/" name "/"
1546 (version-major+minor version) "/"
1547 name "-" version ".tar.xz"))
1548 (sha256
1549 (base32
1550 "02idvqjk76lii9xyg3b1yz4rw721709bdm5j8ikjym6amcghl0aj"))))
1551 (build-system meson-build-system)
1552 (arguments
1553 `(#:glib-or-gtk? #t
1554 #:phases
1555 (modify-phases %standard-phases
1556 (add-after 'glib-or-gtk-wrap 'wrap-typelib
1557 (lambda* (#:key outputs #:allow-other-keys)
1558 (let ((prog (string-append (assoc-ref outputs "out")
1559 "/bin/sushi")))
1560 ;; Put existing typelibs before sushi's deps, so as to correctly
1561 ;; infer gdk-pixbuf
1562 (wrap-program prog
1563 `("GI_TYPELIB_PATH" suffix (,(getenv "GI_TYPELIB_PATH"))))
1564 #t))))))
1565 (native-inputs
1566 `(("glib:bin" ,glib "bin")
1567 ("gettext" ,gettext-minimal)
1568 ("gobject-introspection" ,gobject-introspection)
1569 ("pkg-config" ,pkg-config)))
1570 (inputs
1571 `(("clutter" ,clutter)
1572 ("clutter-gst" ,clutter-gst)
1573 ("clutter-gtk" ,clutter-gtk)
1574 ("evince" ,evince) ; For file previewing.
1575 ("freetype" ,freetype)
1576 ("gdk-pixbuf" ,gdk-pixbuf)
1577 ("gjs" ,gjs)
1578 ("gst-plugins-base" ,gst-plugins-base)
1579 ("gstreamer" ,gstreamer)
1580 ("gtksourceview" ,gtksourceview-3)
1581 ("harfbuzz" ,harfbuzz)
1582 ("libepoxy" ,libepoxy)
1583 ("libmusicbrainz" ,libmusicbrainz)
1584 ("libxml2" ,libxml2)
1585 ("neon" ,neon)
1586 ("webkitgtk" ,webkitgtk)))
1587 (synopsis "File previewer for the GNOME desktop")
1588 (description "Sushi is a DBus-activated service that allows applications to
1589 preview files on the GNOME desktop.")
1590 (home-page "https://gitlab.gnome.org/GNOME/sushi")
1591 (license license:gpl2+)))
1592
1593 (define-public rygel
1594 (package
1595 (name "rygel")
1596 (version "0.38.3")
1597 (source (origin
1598 (method url-fetch)
1599 (uri (string-append "mirror://gnome/sources/" name "/"
1600 (version-major+minor version) "/"
1601 name "-" version ".tar.xz"))
1602 (sha256
1603 (base32
1604 "003xficqb08r1dgid20i7cn889lbfwrglpx78rjd5nkvgxbimhh8"))))
1605 (build-system gnu-build-system)
1606 (native-inputs
1607 `(("gettext" ,gettext-minimal)
1608 ("gobject-introspection" ,gobject-introspection)
1609 ("gtk-doc" ,gtk-doc)
1610 ("pkg-config" ,pkg-config)
1611 ("vala" ,vala)))
1612 (inputs
1613 `(("gdk-pixbuf" ,gdk-pixbuf)
1614 ("gssdp" ,gssdp)
1615 ("gstreamer" ,gstreamer)
1616 ("gst-plugins-base" ,gst-plugins-base)
1617 ("gtk+" ,gtk+)
1618 ("gupnp" ,gupnp)
1619 ("gupnp-av" ,gupnp-av)
1620 ("gupnp-dlna" ,gupnp-dlna)
1621 ("libgee" ,libgee)
1622 ("libmediaart" ,libmediaart)
1623 ("libsoup" ,libsoup)
1624 ("libxslt" ,libxslt)
1625 ("libunistring" ,libunistring)
1626 ("tracker" ,tracker)))
1627 (synopsis "Share audio, video, and pictures with other devices")
1628 (description
1629 "Rygel is a home media solution (@dfn{UPnP AV MediaServer and
1630 MediaRenderer}) for GNOME that allows you to easily share audio, video, and
1631 pictures, and to control a media player on your home network.
1632
1633 Rygel achieves interoperability with other devices by trying to conform to the
1634 strict requirements of DLNA and by converting media on-the-fly to formats that
1635 client devices can handle.")
1636 (home-page "https://wiki.gnome.org/Projects/Rygel")
1637 (license (list
1638 ;; For logo (data/icons/*).
1639 license:cc-by-sa3.0
1640 ;; For all others.
1641 license:lgpl2.1+))))
1642
1643 (define-public libnma
1644 (package
1645 (name "libnma")
1646 (version "1.8.28")
1647 (source (origin
1648 (method url-fetch)
1649 (uri (string-append "mirror://gnome/sources/" name "/"
1650 (version-major+minor version) "/"
1651 name "-" version ".tar.xz"))
1652 (sha256
1653 (base32
1654 "09mp6k0hfam1vyyv9kcd8j4gb2r58i05ipx2nswb58ris599bxja"))))
1655 (build-system meson-build-system)
1656 (arguments
1657 `(#:phases
1658 (modify-phases %standard-phases
1659 (add-after 'unpack 'patch-docbook-xml
1660 (lambda* (#:key inputs #:allow-other-keys)
1661 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
1662 "/xml/dtd/docbook")))
1663 (substitute* "libnma-docs.xml"
1664 (("http://.*/docbookx\\.dtd")
1665 (string-append xmldoc "/docbookx.dtd")))
1666 #t))))))
1667 (native-inputs
1668 `(("docbook-xml" ,docbook-xml-4.3)
1669 ("gettext" ,gettext-minimal)
1670 ("glib:bin" ,glib "bin")
1671 ("gtk-doc" ,gtk-doc)
1672 ("gobject-introspection" ,gobject-introspection)
1673 ("pkg-config" ,pkg-config)
1674 ("vala" ,vala)))
1675 (inputs
1676 `(("gcr" ,gcr)
1677 ("gtk+" ,gtk+)
1678 ("iso-codes" ,iso-codes)
1679 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)
1680 ("network-manager" ,network-manager)))
1681 (synopsis "Network Manager's applet library")
1682 (description "Libnma is an applet library for Network Manager. It was
1683 initially part of network-manager-applet and has now become a separate
1684 project.")
1685 (home-page "https://gitlab.gnome.org/GNOME/libnma")
1686 ;; Some files carry the "GPL-2.0+" SPDX identifier while others say
1687 ;; "LGPL-2.1+".
1688 (license license:gpl2+)))
1689
1690 (define-public gnome-menus
1691 (package
1692 (name "gnome-menus")
1693 (version "3.32.0")
1694 (source (origin
1695 (method url-fetch)
1696 (uri (string-append "mirror://gnome/sources/gnome-menus/"
1697 (version-major+minor version) "/"
1698 name "-" version ".tar.xz"))
1699 (sha256
1700 (base32
1701 "0x2blzqrapmbsbfzxjcdcpa3vkw9hq5k96h9kvjmy9kl415wcl68"))))
1702 (build-system gnu-build-system)
1703 (native-inputs
1704 `(("gettext" ,gettext-minimal)
1705 ("glib" ,glib)
1706 ("pkg-config" ,pkg-config)))
1707 (synopsis "Menu support for GNOME desktop")
1708 (description "GNOME Menus contains the libgnome-menu library, the layout
1709 configuration files for the GNOME menu, as well as a simple menu editor.")
1710 (home-page "https://gitlab.gnome.org/GNOME/gnome-menus")
1711 (license license:lgpl2.0+)))
1712
1713 (define-public deja-dup
1714 (package
1715 (name "deja-dup")
1716 (version "40.6")
1717 (source (origin
1718 (method url-fetch)
1719 (uri (string-append "https://gitlab.gnome.org/World/deja-dup/-/archive/"
1720 version "/deja-dup-" version ".tar.bz2"))
1721 (sha256
1722 (base32
1723 "0lwazh6crby5wpy9fg6zvwy4plqbhs2f98bm5lbizjdlbh88n5q0"))))
1724 (build-system meson-build-system)
1725 (arguments
1726 `(#:glib-or-gtk? #t
1727 #:configure-flags
1728 (list
1729 ;; Otherwise, the RUNPATH will lack the final path component.
1730 (string-append "-Dc_link_args=-Wl,-rpath="
1731 (assoc-ref %outputs "out") "/lib/deja-dup"))
1732 #:phases
1733 (modify-phases %standard-phases
1734 (add-after 'unpack 'patch-paths
1735 (lambda* (#:key inputs #:allow-other-keys)
1736 (let ((python (assoc-ref inputs "python")))
1737 (substitute* '("libdeja/tools/duplicity/DuplicityInstance.vala"
1738 "libdeja/tests/scripts/instance-error.test")
1739 (("/bin/rm")
1740 (which "rm")))
1741 (substitute* "libdeja/tests/runner.vala"
1742 (("/bin/sh")
1743 (which "sh")))
1744 (substitute* "libdeja/tests/scripts/instance-error.test"
1745 (("`which python3`")
1746 (string-append python "/bin/python3"))))))
1747 (add-after 'unpack 'patch-libgpg-error
1748 (lambda* (#:key inputs #:allow-other-keys)
1749 (let ((libgpg-error (assoc-ref inputs "libgpg-error")))
1750 (substitute* "meson.build"
1751 (("(gpgerror_libs = ).*" _ var)
1752 (format #f "~a '-L~a/lib -lgpg-error'\n" var libgpg-error))))
1753 #t))
1754 (add-after 'unpack 'skip-gtk-update-icon-cache
1755 ;; Don't create 'icon-theme.cache'.
1756 (lambda _
1757 (substitute* "data/post-install.sh"
1758 (("gtk-update-icon-cache") "true"))
1759 #t)))))
1760 (inputs
1761 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1762 ("duplicity" ,duplicity)
1763 ("python" ,python)
1764 ("python-pygobject" ,python-pygobject)
1765 ("gtk+" ,gtk+)
1766 ("json-glib" ,json-glib)
1767 ("libnotify" ,libnotify)
1768 ("libgpg-error" ,libgpg-error)
1769 ("libsecret" ,libsecret)
1770 ("libsoup" ,libsoup)
1771 ("packagekit" ,packagekit)))
1772 (native-inputs
1773 `(("appstream-glib" ,appstream-glib)
1774 ("desktop-file-utils" ,desktop-file-utils)
1775 ("gettext" ,gettext-minimal)
1776 ("glib" ,glib "bin") ; for glib-compile-schemas.
1777 ("gobject-introspection" ,gobject-introspection)
1778 ("itstool" ,itstool)
1779 ("pkg-config" ,pkg-config)
1780 ("vala" ,vala)))
1781 (home-page "https://wiki.gnome.org/Apps/DejaDup")
1782 (synopsis "Simple backup tool, for regular encrypted backups")
1783 (description
1784 "Déjà Dup is a simple backup tool, for regular encrypted backups. It
1785 uses duplicity as the backend, which supports incremental backups and storage
1786 either on a local, or remote machine via a number of methods.")
1787 (license license:gpl3+)))
1788
1789 (define-public gnome-commander
1790 (package
1791 (name "gnome-commander")
1792 (version "1.10.3")
1793 (source
1794 (origin
1795 (method url-fetch)
1796 (uri (string-append "mirror://gnome/sources/" name "/"
1797 (version-major+minor version) "/"
1798 "gnome-commander-" version ".tar.xz"))
1799 (sha256
1800 (base32 "0bis36awb73vhkncq8yr0qlnyaxynqkvmyqbg57ijqwd0m8hh4zg"))))
1801 (build-system glib-or-gtk-build-system)
1802 (native-inputs
1803 `(("desktop-file-utils" ,desktop-file-utils)
1804 ("gcc" ,gcc-8) ;required for -Wcast-function-type
1805 ("gettext" ,gettext-minimal)
1806 ("glib:bin" ,glib "bin")
1807 ("gobject-introspection" ,gobject-introspection)
1808 ("googletest" ,googletest)
1809 ("intltool" ,intltool)
1810 ("itstool" ,itstool)
1811 ("libtool" ,libtool)
1812 ("pkg-config" ,pkg-config)))
1813 (inputs
1814 `(("gconf" ,gconf)
1815 ("gnome-vfs" ,gnome-vfs)
1816 ("gtk+" ,gtk+-2)
1817 ("libxml2" ,libxml2)))
1818 (home-page "https://gcmd.github.io/")
1819 (synopsis "Two-pane graphical file manager for the GNOME desktop")
1820 (description
1821 "GNOME Commander is a two-pane graphical file manager using GNOME
1822 libraries. It aims to fulfill the demands of more advanced users who
1823 like to focus on file management, their work through special applications
1824 and running smart commands.")
1825 (license license:gpl2+)))
1826
1827 (define-public gnome-user-docs
1828 (package
1829 (name "gnome-user-docs")
1830 (version "3.32.3")
1831 (source
1832 (origin
1833 (method url-fetch)
1834 (uri (string-append "mirror://gnome/sources/gnome-user-docs/"
1835 (version-major+minor version)
1836 "/gnome-user-docs-" version ".tar.xz"))
1837 (sha256
1838 (base32 "0dvsl0ldg8rf7yq0r4dv1pn41s7gjgcqp7agkbflkbmhrl6vbhig"))))
1839 (build-system gnu-build-system)
1840 (native-inputs
1841 `(("gettext" ,gettext-minimal)
1842 ("itstool" ,itstool)
1843 ("pkg-config" ,pkg-config)
1844 ("xmllint" ,libxml2)))
1845 (synopsis "User documentation for the GNOME desktop")
1846 (description
1847 "The GNOME User Documentation explains how to use the GNOME desktop and its
1848 components. It covers usage and setup of the core GNOME programs by end-users
1849 and system administrators.")
1850 (home-page "https://live.gnome.org/DocumentationProject")
1851 (license license:cc-by3.0)))
1852
1853 (define-public gnome-getting-started-docs
1854 (package
1855 (name "gnome-getting-started-docs")
1856 (version "3.32.2")
1857 (source
1858 (origin
1859 (method url-fetch)
1860 (uri (string-append "mirror://gnome/sources/gnome-getting-started-docs/"
1861 (version-major+minor version)
1862 "/gnome-getting-started-docs-" version ".tar.xz"))
1863 (sha256
1864 (base32 "1v4k465mlzrhgcdddzs6bmm0yliyrfx6jg3gh0s17a08i0w5rbwq"))))
1865 (build-system gnu-build-system)
1866 (native-inputs
1867 `(("gettext" ,gettext-minimal)
1868 ("itstool" ,itstool)
1869 ("pkg-config" ,pkg-config)
1870 ("xmllint" ,libxml2)))
1871 (synopsis "Help to get new users started with the GNOME desktop")
1872 (description
1873 "The GNOME Getting Started Documentation contains GNOME's intuitive
1874 \"Getting Started\" tour, with video guides, that can be viewed with Yelp.
1875
1876 It is normally used together with @command{gnome-initial-setup}, but is also
1877 useful as a tutorial and users' guide for new or less experienced users.")
1878 (home-page "https://live.gnome.org/DocumentationProject")
1879 (license license:cc-by-sa3.0)))
1880
1881 (define-public dia
1882 ;; This version from GNOME's repository includes fixes for compiling with
1883 ;; recent versions of the build tools. The latest activity on the
1884 ;; pre-GNOME version has been in 2014, while GNOME has continued applying
1885 ;; fixes since.
1886 (let ((commit "3cf7ec4c2e5bca139a7f3e17f9fc9009c237fcc5")
1887 (revision "2"))
1888 (package
1889 (name "dia")
1890 (version (git-version "0.97.3" revision commit))
1891 (source (origin
1892 (method git-fetch)
1893 (uri (git-reference
1894 (url "https://gitlab.gnome.org/GNOME/dia.git/")
1895 (commit commit)))
1896 (file-name (git-file-name name version))
1897 (sha256
1898 (base32
1899 "04r8dspa6nmicrifhi3sh46hqvyy88hzq37xx99q3q1mwsrpmwy8"))))
1900 (build-system meson-build-system)
1901 (inputs
1902 `(("graphene" ,graphene)
1903 ("gtk+" ,gtk+-2)
1904 ("libxml2" ,libxml2)
1905 ("libxslt" ,libxslt)
1906 ("poppler" ,poppler)
1907 ;; Without Python 2, build fails: plug-ins/python/meson.build:4:0:
1908 ;; ERROR: Unknown method "dependency" in object.
1909 ("python-2" ,python-2)))
1910 (native-inputs
1911 `(("appstream-glib" ,appstream-glib)
1912 ("docbook-xsl" ,docbook-xsl)
1913 ("glib" ,glib "bin")
1914 ("intltool" ,intltool)
1915 ("pkg-config" ,pkg-config)))
1916 (home-page "https://wiki.gnome.org/Apps/Dia")
1917 (synopsis "Diagram creation for GNOME")
1918 (description "Dia can be used to draw different types of diagrams, and
1919 includes support for UML static structure diagrams (class diagrams), entity
1920 relationship modeling, and network diagrams. The program supports various file
1921 formats like PNG, SVG, PDF and EPS.")
1922 (license license:gpl2+))))
1923
1924 ;; This is the unstable release, but it is required for the current stable
1925 ;; release of gvfs (1.38.1).
1926 (define-public libgdata
1927 (package
1928 (name "libgdata")
1929 (version "0.17.9")
1930 (source (origin
1931 (method url-fetch)
1932 (uri (string-append "mirror://gnome/sources/" name "/"
1933 (version-major+minor version) "/"
1934 name "-" version ".tar.xz"))
1935 (sha256
1936 (base32
1937 "0fj54yqxdapdppisqm1xcyrpgcichdmipq0a0spzz6009ikzgi45"))))
1938 (build-system gnu-build-system)
1939 (arguments
1940 '(#:phases
1941 (modify-phases %standard-phases
1942 (add-before 'check 'disable-failing-tests
1943 (lambda _
1944 ;; The PicasaWeb API tests fail with gnome-online-accounts@3.24.2.
1945 ;; They have been removed in libgdata 0.17.6, so just do the same.
1946 (substitute* "gdata/tests/Makefile"
1947 (("picasaweb\\$\\(EXEEXT\\) ") ""))
1948 #t)))))
1949 (native-inputs
1950 `(("glib:bin" ,glib "bin")
1951 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1952 ("intltool" ,intltool)
1953 ("pkg-config" ,pkg-config)
1954 ("uhttpmock" ,uhttpmock)))
1955 (inputs
1956 `(("cyrus-sasl" ,cyrus-sasl)
1957 ("glib-networking" ,glib-networking)))
1958 (propagated-inputs
1959 `(("gcr" ,gcr)
1960 ("glib" ,glib)
1961 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1962 ("json-glib" ,json-glib)
1963 ("liboauth" ,liboauth)
1964 ("libsoup" ,libsoup)
1965 ("libxml2" ,libxml2)))
1966 (home-page "https://wiki.gnome.org/Projects/libgdata")
1967 (synopsis "Library for accessing online service APIs")
1968 (description
1969 "libgdata is a GLib-based library for accessing online service APIs using
1970 the GData protocol — most notably, Google's services. It provides APIs to
1971 access the common Google services, and has full asynchronous support.")
1972 (license license:lgpl2.1+)))
1973
1974 (define-public libgxps
1975 (package
1976 (name "libgxps")
1977 (version "0.3.2")
1978 (source (origin
1979 (method url-fetch)
1980 (uri (string-append "mirror://gnome/sources/" name "/"
1981 (version-major+minor version) "/"
1982 name "-" version ".tar.xz"))
1983 (sha256
1984 (base32
1985 "07156nj7yrp3h9zyzx6mjwxwmfijialb4gi5d6dwyp53arr8c9vd"))))
1986 (build-system meson-build-system)
1987 (native-inputs
1988 `(("gobject-introspection" ,gobject-introspection)
1989 ("pkg-config" ,pkg-config)))
1990 (inputs
1991 `(("gtk+" ,gtk+)
1992 ("libjpeg" ,libjpeg-turbo)
1993 ("lcms" ,lcms)
1994 ("libtiff" ,libtiff)))
1995 (propagated-inputs
1996 ;; In Requires of libgxps.pc.
1997 `(("cairo" ,cairo)
1998 ("glib" ,glib)
1999 ("libarchive" ,libarchive)))
2000 (home-page "https://wiki.gnome.org/Projects/libgxps")
2001 (synopsis "GObject-based library for handling and rendering XPS documents")
2002 (description
2003 "libgxps is a GObject-based library for handling and rendering XPS
2004 documents. This package also contains binaries that can convert XPS documents
2005 to other formats.")
2006 (license license:lgpl2.1+)))
2007
2008 (define-public gnome-characters
2009 (package
2010 (name "gnome-characters")
2011 (version "3.30.0")
2012 (source
2013 (origin
2014 (method url-fetch)
2015 (uri (string-append "mirror://gnome/sources/"
2016 "gnome-characters/" (version-major+minor version)
2017 "/gnome-characters-" version ".tar.xz"))
2018 (sha256
2019 (base32
2020 "08cwz39iwgsyyb2wqhb8vfbmh1cwfkgfiy7adp08w7rwqi99x3dp"))))
2021 (build-system meson-build-system)
2022 (arguments
2023 `(#:glib-or-gtk? #t
2024 #:phases (modify-phases %standard-phases
2025 (add-after 'install 'wrap
2026 (lambda* (#:key outputs #:allow-other-keys)
2027 ;; GNOME Characters needs Typelib files from GTK and
2028 ;; gnome-desktop.
2029 (wrap-program (string-append (assoc-ref outputs "out")
2030 "/bin/gnome-characters")
2031 `("GI_TYPELIB_PATH" ":" prefix
2032 (,(getenv "GI_TYPELIB_PATH"))))
2033 #t)))))
2034 (native-inputs
2035 `(("gettext" ,gettext-minimal)
2036 ("glib:bin" ,glib "bin")
2037 ("gtk+:bin" ,gtk+ "bin")
2038 ("pkg-config" ,pkg-config)
2039 ("python" ,python-minimal)))
2040 (inputs
2041 `(("gjs" ,gjs)
2042 ("gtk+" ,gtk+)
2043 ("libunistring" ,libunistring)
2044 ("gnome-desktop" ,gnome-desktop)))
2045 (home-page "https://wiki.gnome.org/Apps/CharacterMap")
2046 (synopsis "Find and insert unusual characters")
2047 (description "Characters is a simple utility application to find
2048 and insert unusual characters. It allows you to quickly find the
2049 character you are looking for by searching for keywords.")
2050 (license license:bsd-3)))
2051
2052 (define-public gnome-common
2053 (package
2054 (name "gnome-common")
2055 (version "3.18.0")
2056 (source
2057 (origin
2058 (method url-fetch)
2059 (uri (string-append "mirror://gnome/sources/" name "/"
2060 (version-major+minor version) "/"
2061 name "-" version ".tar.xz"))
2062 (sha256
2063 (base32
2064 "1kzqi8qvh5p1zncj8msazlmvcwsczjz2hqxp4x2y0mg718vrwmi2"))))
2065 (build-system gnu-build-system)
2066 (home-page "https://www.gnome.org/")
2067 (synopsis "Bootstrap GNOME modules built from Git")
2068 (description "gnome-common contains various files needed to bootstrap
2069 GNOME modules built from Git. It contains a common \"autogen.sh\" script that
2070 can be used to configure a source directory checked out from Git and some
2071 commonly used macros.")
2072 (license license:gpl2+)))
2073
2074 (define-public gnome-contacts
2075 (package
2076 (name "gnome-contacts")
2077 (version "3.34")
2078 (source (origin
2079 (method url-fetch)
2080 (uri (string-append "mirror://gnome/sources/gnome-contacts/"
2081 (version-major+minor version) "/"
2082 name "-" version ".tar.xz"))
2083 (sha256
2084 (base32
2085 "04igc9xvyc4kb5xf5g2missnvyvj9zv5cqxf5k4z7hb0sv42wq4r"))))
2086 (build-system meson-build-system)
2087 (arguments
2088 `(#:configure-flags '("-Dcheese=false")
2089 #:phases
2090 (modify-phases %standard-phases
2091 (add-after 'unpack 'generate-vapis
2092 (lambda* (#:key inputs #:allow-other-keys)
2093 ;; To generate goa's missing .vapi file
2094 (define goa
2095 (assoc-ref inputs "gnome-online-accounts:lib"))
2096
2097 (invoke "vapigen" "--directory=vapi" "--pkg=gio-2.0"
2098 "--library=goa-1.0"
2099 (string-append goa "/share/gir-1.0/Goa-1.0.gir"))
2100 #t))
2101 (add-after 'unpack 'skip-gtk-update-icon-cache
2102 ;; Don't create 'icon-theme.cache'.
2103 (lambda _
2104 (substitute* "build-aux/meson_post_install.py"
2105 (("gtk-update-icon-cache") "true"))
2106 #t)))))
2107 (native-inputs
2108 `(("glib:bin" ,glib "bin")
2109 ("pkg-config" ,pkg-config)))
2110 (inputs
2111 `(("docbook-xml" ,docbook-xml)
2112 ("dockbook-xsl" ,docbook-xsl)
2113 ("evolution-data-server" ,evolution-data-server)
2114 ("gettext" ,gettext-minimal)
2115 ("gnome-desktop" ,gnome-desktop)
2116 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
2117 ("gobject-introspection" ,gobject-introspection)
2118 ("gst-plugins-base" ,gst-plugins-base)
2119 ("gtk+" ,gtk+)
2120 ("libgee" ,libgee)
2121 ("libxslt" ,libxslt)
2122 ("telepathy-glib" ,telepathy-glib)
2123 ("vala" ,vala)))
2124 (propagated-inputs
2125 `(("folks" ,folks)
2126 ("telepathy-mission-control" ,telepathy-mission-control)))
2127 (synopsis "GNOME's integrated address book")
2128 (description
2129 "GNOME Contacts organizes your contact information from online and
2130 offline sources, providing a centralized place for managing your contacts.")
2131 (home-page "https://wiki.gnome.org/Apps/Contacts")
2132 (license license:gpl2+)))
2133
2134 (define-public gnome-desktop
2135 (package
2136 (name "gnome-desktop")
2137 (version "3.34.2")
2138 (source
2139 (origin
2140 (method url-fetch)
2141 (uri (string-append "mirror://gnome/sources/" name "/"
2142 (version-major+minor version) "/"
2143 name "-" version ".tar.xz"))
2144 (sha256
2145 (base32
2146 "1v983xirwp1y6ggz97bh742ak6gff0hxb359dgn37nikjxhvm0a0"))))
2147 (build-system meson-build-system)
2148 (arguments
2149 '(#:phases
2150 (modify-phases %standard-phases
2151 (add-before 'configure 'patch-path
2152 (lambda* (#:key inputs #:allow-other-keys)
2153 (let ((libc (assoc-ref inputs "libc")))
2154 (substitute* "libgnome-desktop/gnome-languages.c"
2155 (("\"locale\"")
2156 (string-append "\"" libc "/bin/locale\"")))
2157 #t)))
2158 (add-before 'configure 'patch-bubblewrap
2159 (lambda* (#:key inputs #:allow-other-keys)
2160 (substitute* "libgnome-desktop/gnome-desktop-thumbnail-script.c"
2161 (("\"bwrap\",")
2162 (string-append "\"" (which "bwrap") "\","))
2163 (("\"--ro-bind\", \"/usr\", \"/usr\",")
2164 (string-append "\"--ro-bind\", \""
2165 (%store-directory)
2166 "\", \""
2167 (%store-directory)
2168 "\","))
2169 (("\"--ro-bind\", \"/etc/ld.so.cache\", \"/etc/ld.so.cache\",") ""))
2170 #t))
2171 (add-before 'check 'pre-check
2172 (lambda* (#:key inputs #:allow-other-keys)
2173 ;; Tests require a running X server and locales.
2174 (system "Xvfb :1 &")
2175 (setenv "DISPLAY" ":1")
2176 (setenv "GUIX_LOCPATH"
2177 (string-append (assoc-ref inputs "glibc-locales")
2178 "/lib/locale"))
2179 #t)))))
2180 (native-inputs
2181 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
2182 ("glibc-locales" ,glibc-locales) ; for tests
2183 ("gobject-introspection" ,gobject-introspection)
2184 ("itstool" ,itstool)
2185 ("intltool" ,intltool)
2186 ("pkg-config" ,pkg-config)
2187 ("xmllint" ,libxml2)
2188 ("xorg-server" ,xorg-server-for-tests)))
2189 (propagated-inputs
2190 ;; Required by gnome-desktop-3.0.pc.
2191 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2192 ("gtk+" ,gtk+)
2193 ("iso-codes" ,iso-codes)
2194 ("libseccomp" ,libseccomp)
2195 ("libx11" ,libx11)
2196 ("xkeyboard-config" ,xkeyboard-config)))
2197 (inputs
2198 `(("gdk-pixbuf" ,gdk-pixbuf)
2199 ("glib" ,glib)
2200 ("bubblewrap" ,bubblewrap)
2201 ("libxext" ,libxext)
2202 ("libxkbfile" ,libxkbfile)
2203 ("libxrandr" ,libxrandr)))
2204 (home-page "https://www.gnome.org/")
2205 (synopsis
2206 "Libgnome-desktop, gnome-about, and desktop-wide documents")
2207 (description
2208 "The libgnome-desktop library provides API shared by several applications
2209 on the desktop, but that cannot live in the platform for various reasons.
2210 There is no API or ABI guarantee, although we are doing our best to provide
2211 stability. Documentation for the API is available with gtk-doc.
2212
2213 The gnome-about program helps find which version of GNOME is installed.")
2214 ; Some bits under the LGPL.
2215 (license license:gpl2+)))
2216
2217 (define-public gnome-doc-utils
2218 (package
2219 (name "gnome-doc-utils")
2220 (version "0.20.10")
2221 (source
2222 (origin
2223 (method url-fetch)
2224 (uri (string-append "mirror://gnome/sources/" name "/"
2225 (version-major+minor version) "/"
2226 name "-" version ".tar.xz"))
2227 (sha256
2228 (base32
2229 "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb"))))
2230 (build-system gnu-build-system)
2231 (native-inputs
2232 `(("intltool" ,intltool)
2233 ("docbook-xml" ,docbook-xml-4.4)
2234 ("python2-libxml2" ,python2-libxml2)
2235 ("libxml2" ,libxml2)
2236 ("libxslt" ,libxslt)
2237 ("pkg-config" ,pkg-config)
2238 ("python-2" ,python-2)))
2239 (home-page "https://wiki.gnome.org/GnomeDocUtils")
2240 (synopsis
2241 "Documentation utilities for the Gnome project")
2242 (description
2243 "Gnome-doc-utils is a collection of documentation utilities for the
2244 Gnome project. It includes xml2po tool which makes it easier to translate
2245 and keep up to date translations of documentation.")
2246 (license license:gpl2+))) ; xslt under lgpl
2247
2248 (define-public gnome-disk-utility
2249 (package
2250 (name "gnome-disk-utility")
2251 (version "3.34.0")
2252 (source (origin
2253 (method url-fetch)
2254 (uri (string-append "mirror://gnome/sources/" name "/"
2255 (version-major+minor version) "/"
2256 name "-" version ".tar.xz"))
2257 (sha256
2258 (base32
2259 "1mb7q90lnlp97dhxhnadhjagcfd12dfqzp0vj9h6b1r61pzhy97y"))))
2260 (build-system meson-build-system)
2261 (arguments
2262 '(#:configure-flags '("-Dlogind=libelogind")
2263 #:phases
2264 (modify-phases %standard-phases
2265 (add-after 'unpack 'skip-gtk-update-icon-cache
2266 ;; Don't create 'icon-theme.cache'.
2267 (lambda _
2268 (substitute* "meson_post_install.py"
2269 (("gtk-update-icon-cache") "true"))
2270 #t)))))
2271 (native-inputs
2272 `(("glib:bin" ,glib "bin")
2273 ("intltool" ,intltool)
2274 ("pkg-config" ,pkg-config)
2275 ("docbook-xml" ,docbook-xml)
2276 ("docbook-xsl" ,docbook-xsl)
2277 ("libxml2" ,libxml2)
2278 ("libxslt" ,libxslt)))
2279 (inputs
2280 `(("elogind" ,elogind)
2281 ("glib" ,glib)
2282 ("appstream-glib" ,appstream-glib)
2283 ("gnome-settings-daemon" ,gnome-settings-daemon)
2284 ("gtk+" ,gtk+)
2285 ("libcanberra" ,libcanberra)
2286 ("libdvdread" ,libdvdread)
2287 ("libnotify" ,libnotify)
2288 ("libpwquality" ,libpwquality)
2289 ("libsecret" ,libsecret)
2290 ("udisks" ,udisks)))
2291 (home-page "https://git.gnome.org/browse/gnome-disk-utility")
2292 (synopsis "Disk management utility for GNOME")
2293 (description "Disk management utility for GNOME.")
2294 (license license:gpl2+)))
2295
2296 (define-public gnome-font-viewer
2297 (package
2298 (name "gnome-font-viewer")
2299 (version "3.30.0")
2300 (source (origin
2301 (method url-fetch)
2302 (uri (string-append "mirror://gnome/sources/gnome-font-viewer/"
2303 (version-major+minor version)
2304 "/gnome-font-viewer-" version ".tar.xz"))
2305 (sha256
2306 (base32
2307 "1wwnx2zrlbd2d6np7m9s78alx6j6ranrnh1g2z6zrv9qcj8rpzz5"))))
2308 (build-system meson-build-system)
2309 (arguments
2310 '(#:phases
2311 (modify-phases %standard-phases
2312 (add-after 'unpack 'patch-post-install-script
2313 (lambda _
2314 (substitute* "meson-postinstall.sh"
2315 (("update-desktop-database") (which "true")))
2316 #t))
2317 (add-after 'install 'patch-thumbnailer
2318 (lambda* (#:key outputs #:allow-other-keys)
2319 (let ((out (assoc-ref outputs "out")))
2320 (substitute*
2321 (string-append
2322 out
2323 "/share/thumbnailers/gnome-font-viewer.thumbnailer")
2324 (("gnome-thumbnail-font")
2325 (string-append out "/bin/gnome-thumbnail-font"))))
2326 #t)))))
2327 (native-inputs
2328 `(("gettext" ,gettext-minimal)
2329 ("glib:bin" ,glib "bin")
2330 ("pkg-config" ,pkg-config)))
2331 (inputs
2332 `(("glib" ,glib)
2333 ("gnome-desktop" ,gnome-desktop)
2334 ("gtk+" ,gtk+)))
2335 (home-page "https://gitlab.gnome.org/GNOME/gnome-font-viewer")
2336 (synopsis "GNOME Fonts")
2337 (description "Application to show you the fonts installed on your computer
2338 for your use as thumbnails. Selecting any thumbnails shows the full view of how
2339 the font would look under various sizes.")
2340 (license license:gpl2+)))
2341
2342 (define-public gcr
2343 (package
2344 (name "gcr")
2345 (version "3.34.0")
2346 (source (origin
2347 (method url-fetch)
2348 (uri (string-append "mirror://gnome/sources/" name "/"
2349 (version-major+minor version) "/"
2350 name "-" version ".tar.xz"))
2351 (sha256
2352 (base32
2353 "0925snsixzkwh49xiayqmj6fcrmklqk8kyy0jkv7m64h9abm1pr9"))))
2354 (build-system gnu-build-system)
2355 (arguments
2356 '(#:phases
2357 (modify-phases %standard-phases
2358 ;; These fail because /var/lib/dbus/machine-id is not present in the
2359 ;; build environment.
2360 (add-after 'unpack 'disable-failing-tests
2361 (lambda _
2362 (substitute* "Makefile.in"
2363 (("[[:blank:]]+test-system-prompt\\$\\(EXEEXT\\)")
2364 ""))
2365 #t))
2366 (add-before 'check 'pre-check
2367 (lambda _
2368 ;; Some tests expect to write to $HOME.
2369 (setenv "HOME" "/tmp")
2370 #t)))))
2371 (inputs
2372 `(("dbus" ,dbus)
2373 ("gnupg" ,gnupg) ;called as a child process during tests
2374 ("libgcrypt" ,libgcrypt)))
2375 (native-inputs
2376 `(("python" ,python-wrapper) ;for tests
2377 ("pkg-config" ,pkg-config)
2378 ("gettext" ,gettext-minimal)
2379 ("glib" ,glib "bin")
2380 ("gobject-introspection" ,gobject-introspection)
2381 ("libxml2" ,libxml2)
2382 ("vala" ,vala)
2383 ("xsltproc" ,libxslt)))
2384 ;; mentioned in gck.pc, gcr.pc and gcr-ui.pc
2385 (propagated-inputs
2386 `(("p11-kit" ,p11-kit)
2387 ("glib" ,glib)
2388 ("gtk+" ,gtk+)))
2389 (home-page "https://www.gnome.org")
2390 (synopsis "Libraries for displaying certificates and accessing key stores")
2391 (description
2392 "The GCR package contains libraries used for displaying certificates and
2393 accessing key stores. It also provides the viewer for crypto files on the
2394 GNOME Desktop.")
2395 (license license:lgpl2.1+)))
2396
2397 (define-public gdl
2398 (package
2399 (name "gdl")
2400 (version "3.34.0")
2401 (source (origin
2402 (method git-fetch)
2403 (uri (git-reference
2404 (url "https://gitlab.gnome.org/GNOME/gdl.git")
2405 (commit (string-append "GDL_" (string-map (match-lambda
2406 (#\. #\_)
2407 (c c))
2408 version)))))
2409 (file-name (git-file-name name version))
2410 (sha256
2411 (base32
2412 "154qcr0x6f68f4q526y87imv0rscmp34n47nk1pp82rsq52h2zna"))))
2413 (build-system gnu-build-system)
2414 (native-inputs
2415 `(("autoconf" ,autoconf)
2416 ("automake" ,automake)
2417 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2418 ("gnome-common" ,gnome-common)
2419 ("gtk-doc" ,gtk-doc)
2420 ("intltool" ,intltool)
2421 ("pkg-config" ,pkg-config)
2422 ("libtool" ,libtool)
2423 ("which" ,which)))
2424 (inputs
2425 `(("libxml2" ,libxml2)))
2426 (propagated-inputs
2427 ;; The gdl-3.0.pc file 'Requires' GTK+.
2428 `(("gtk+" ,gtk+)))
2429 (home-page "https://gitlab.gnome.org/GNOME/gdl/")
2430 (synopsis "GNOME docking library")
2431 (description "This library provides docking features for gtk+.")
2432 (license license:lgpl2.1+)))
2433
2434 ;;; A minimal variant used to break a cycle with Inkscape.
2435 (define-public gdl-minimal
2436 (package/inherit gdl
2437 (name "gdl-minimal")
2438 (arguments
2439 '(#:phases
2440 (modify-phases %standard-phases
2441 (add-after 'unpack 'disable-doc-generation
2442 ;; XXX: There is no easy way to disable generating the
2443 ;; documentation.
2444 (lambda _
2445 (substitute* "configure.in"
2446 (("GTK_DOC_CHECK.*") "")
2447 (("docs/.*") ""))
2448 (substitute* "Makefile.am"
2449 (("gdl docs po") "gdl po"))
2450 #t)))))
2451 (native-inputs (alist-delete "gtk-doc" (package-native-inputs gdl)))))
2452
2453 (define-public libgnome-keyring
2454 (package
2455 (name "libgnome-keyring")
2456 (version "3.12.0")
2457 (source (origin
2458 (method url-fetch)
2459 (uri (string-append "mirror://gnome/sources/" name "/"
2460 (version-major+minor version) "/"
2461 name "-" version ".tar.xz"))
2462 (sha256
2463 (base32
2464 "10vpjhgbjm7z2djy04qakd02qlzpd02xnbfjhk2aqwjzn3xpihf4"))))
2465 (build-system gnu-build-system)
2466 (inputs
2467 `(("libgcrypt" ,libgcrypt)
2468 ("dbus" ,dbus)))
2469 (native-inputs
2470 `(("pkg-config" ,pkg-config)
2471 ("glib" ,glib "bin")
2472 ("intltool" ,intltool)))
2473 (propagated-inputs
2474 ;; Referred to in .h files and .pc.
2475 `(("glib" ,glib)))
2476 (home-page "https://www.gnome.org")
2477 (synopsis "Accessing passwords from the GNOME keyring")
2478 (description
2479 "Client library to access passwords from the GNOME keyring.")
2480
2481 ;; Though a couple of files are LGPLv2.1+.
2482 (license license:lgpl2.0+)))
2483
2484 (define-public gnome-keyring
2485 (package
2486 (name "gnome-keyring")
2487 (version "3.34.0")
2488 (source (origin
2489 (method url-fetch)
2490 (uri (string-append "mirror://gnome/sources/" name "/"
2491 (version-major+minor version) "/"
2492 name "-" version ".tar.xz"))
2493 (sha256
2494 (base32
2495 "0hqrsh5g9q9lm190f0m85q4nki8k4ng7wphl6qbccdry59aakkg9"))))
2496 (build-system gnu-build-system)
2497 (arguments
2498 `(#:tests? #f ;48 of 603 tests fail because /var/lib/dbus/machine-id does
2499 ;not exist
2500 #:configure-flags
2501 (list
2502 (string-append "--with-pkcs11-config="
2503 (assoc-ref %outputs "out") "/share/p11-kit/modules/")
2504 (string-append "--with-pkcs11-modules="
2505 (assoc-ref %outputs "out") "/share/p11-kit/modules/"))
2506 #:phases
2507 (modify-phases %standard-phases
2508 (add-after 'unpack 'fix-/bin/sh-reference
2509 (lambda _
2510 (substitute* "po/Makefile.in.in"
2511 (("/bin/sh") (which "sh")))
2512 #t))
2513 (add-after 'unpack 'fix-docbook
2514 (lambda* (#:key inputs #:allow-other-keys)
2515 (substitute* "docs/Makefile.am"
2516 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
2517 (string-append (assoc-ref inputs "docbook-xsl")
2518 "/xml/xsl/docbook-xsl-"
2519 ,(package-version docbook-xsl)
2520 "/manpages/docbook.xsl")))
2521 (setenv "XML_CATALOG_FILES"
2522 (string-append (assoc-ref inputs "docbook-xml")
2523 "/xml/dtd/docbook/catalog.xml"))
2524 ;; Rerun the whole thing to avoid version mismatch ("This is
2525 ;; Automake 1.15.1, but the definition used by this
2526 ;; AM_INIT_AUTOMAKE comes from Automake 1.15."). Note: we don't
2527 ;; use 'autoreconf' because it insists on running 'libtoolize'.
2528 (invoke "autoconf")
2529 (invoke "aclocal")
2530 (invoke "automake" "-ac"))))))
2531 (inputs
2532 `(("libgcrypt" ,libgcrypt)
2533 ("linux-pam" ,linux-pam)
2534 ("openssh" ,openssh)
2535 ("dbus" ,dbus)
2536 ("gcr" ,gcr)))
2537 (native-inputs
2538 `(("pkg-config" ,pkg-config)
2539 ("glib" ,glib "bin")
2540 ("glib" ,glib) ; for m4 macros
2541 ("python" ,python-2) ;for tests
2542 ("intltool" ,intltool)
2543 ("autoconf" ,autoconf)
2544 ("automake" ,automake)
2545 ("libxslt" ,libxslt) ;for documentation
2546 ("docbook-xml" ,docbook-xml-4.2)
2547 ("docbook-xsl" ,docbook-xsl)))
2548 (propagated-inputs
2549 `(("gcr" ,gcr)))
2550 (home-page "https://www.gnome.org")
2551 (synopsis "Daemon to store passwords and encryption keys")
2552 (description
2553 "gnome-keyring is a program that keeps passwords and other secrets for
2554 users. It is run as a daemon in the session, similar to ssh-agent, and other
2555 applications locate it via an environment variable or D-Bus.
2556
2557 The program can manage several keyrings, each with its own master password,
2558 and there is also a session keyring which is never stored to disk, but
2559 forgotten when the session ends.")
2560 (license license:lgpl2.1+)))
2561
2562 (define-public evince
2563 (package
2564 (name "evince")
2565 (version "3.36.5")
2566 (source (origin
2567 (method url-fetch)
2568 (uri (string-append "mirror://gnome/sources/evince/"
2569 (version-major+minor version) "/"
2570 "evince-" version ".tar.xz"))
2571 (sha256
2572 (base32
2573 "0z79jl0j9xq9wgwkfr0d1w1qrdy4447y8shs407n5srr0vixc3bg"))))
2574 (build-system glib-or-gtk-build-system)
2575 (arguments
2576 `(#:configure-flags '("--disable-nautilus" "--enable-introspection")
2577 #:phases
2578 (modify-phases %standard-phases
2579 (add-before 'install 'skip-gtk-update-icon-cache
2580 ;; Don't create 'icon-theme.cache'.
2581 (lambda _
2582 (substitute* "data/Makefile"
2583 (("gtk-update-icon-cache") "true"))
2584 #t)))))
2585 (inputs
2586 `(("libarchive" ,libarchive)
2587 ("libgxps" ,libgxps)
2588 ("libspectre" ,libspectre)
2589 ("djvulibre" ,djvulibre)
2590 ("ghostscript" ,ghostscript)
2591 ("poppler" ,poppler)
2592 ("libtiff" ,libtiff)
2593 ;; TODO:
2594 ;; Build libkpathsea as a shared library for DVI support.
2595 ;; ("libkpathsea" ,texlive-bin)
2596 ("gnome-desktop" ,gnome-desktop)
2597 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2598 ("gspell" ,gspell)
2599 ("libgnome-keyring" ,libgnome-keyring)
2600 ("adwaita-icon-theme" ,adwaita-icon-theme)
2601 ("gdk-pixbuf" ,gdk-pixbuf)
2602 ("atk" ,atk)
2603 ("pango" ,pango)
2604 ("gtk+" ,gtk+)
2605 ("glib" ,glib)
2606 ("libxml2" ,libxml2)
2607 ("libsm" ,libsm)
2608 ("libice" ,libice)
2609 ("shared-mime-info" ,shared-mime-info)
2610 ("dconf" ,dconf)
2611 ("libcanberra" ,libcanberra)
2612 ("libsecret" ,libsecret)
2613
2614 ;; For tests.
2615 ("dogtail" ,python2-dogtail)))
2616 (native-inputs
2617 `(("itstool" ,itstool)
2618 ("intltool" ,intltool)
2619 ("glib" ,glib "bin")
2620 ("gobject-introspection" ,gobject-introspection)
2621 ("pkg-config" ,pkg-config)
2622 ("xmllint" ,libxml2)))
2623 (home-page "https://www.gnome.org/projects/evince/")
2624 (synopsis "GNOME's document viewer")
2625 (description
2626 "Evince is a document viewer for multiple document formats. It
2627 currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
2628 of Evince is to replace the multiple document viewers that exist
2629 on the GNOME Desktop with a single simple application.")
2630 (license license:gpl2+)))
2631
2632 (define-public gsettings-desktop-schemas
2633 (package
2634 (name "gsettings-desktop-schemas")
2635 (version "3.34.0")
2636 (source
2637 (origin
2638 (method url-fetch)
2639 (uri (string-append "mirror://gnome/sources/" name "/"
2640 (version-major+minor version) "/"
2641 name "-" version ".tar.xz"))
2642 (sha256
2643 (base32
2644 "1bayr76aylawf2fhyjhv9zgk4kpv7ivrrmd80khb0h3h1wk092r8"))))
2645 (build-system meson-build-system)
2646 (arguments
2647 '(#:phases (modify-phases %standard-phases
2648 (add-after 'unpack 'patch-schemas
2649 (lambda* (#:key inputs #:allow-other-keys)
2650 (let ((theme (assoc-ref inputs "gnome-backgrounds")))
2651 (substitute* (find-files "schemas"
2652 "\\.gschema\\.xml\\.in$")
2653 ;; Provide the correct file name of the default GNOME
2654 ;; background, 'adwaita-timed.xml'.
2655 (("@datadir@/backgrounds/gnome")
2656 (string-append theme "/share/backgrounds/gnome"))
2657 ;; Do not reference fonts, that may not exist.
2658 (("'Source Code Pro 10'") "'Monospace 11'"))
2659 #t))))))
2660 (inputs
2661 `(("glib" ,glib)
2662 ("gnome-backgrounds" ,gnome-backgrounds)))
2663 (native-inputs
2664 `(("intltool" ,intltool)
2665 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
2666 ("gobject-introspection" ,gobject-introspection)
2667 ("pkg-config" ,pkg-config)))
2668 (home-page "https://launchpad.net/gsettings-desktop-schemas")
2669 (synopsis
2670 "GNOME settings for various desktop components")
2671 (description
2672 "Gsettings-desktop-schemas contains a collection of GSettings schemas
2673 for settings shared by various components of the GNOME desktop.")
2674 (license license:lgpl2.1+)))
2675
2676 (define-public python-liblarch
2677 (package
2678 (name "python-liblarch")
2679 (version "3.0.1")
2680 (source
2681 (origin
2682 (method git-fetch)
2683 (uri (git-reference
2684 (url "https://github.com/getting-things-gnome/liblarch")
2685 (commit (string-append "v" version))))
2686 (file-name (git-file-name name version))
2687 (sha256
2688 (base32 "0xv2mfvyzipbny3iz8vll77wsqxfwh28xj6bj1ff0l452waph45m"))))
2689 (build-system python-build-system)
2690 (arguments
2691 `(#:phases
2692 (modify-phases %standard-phases
2693 (add-before 'check 'start-xserver
2694 (lambda* (#:key inputs #:allow-other-keys)
2695 (system (format #f "~a/bin/Xvfb :1 &"
2696 (assoc-ref inputs "xorg-server")))
2697 (setenv "DISPLAY" ":1")
2698 #t)))))
2699 (native-inputs
2700 `(("xorg-server" ,xorg-server-for-tests)))
2701 (inputs
2702 `(("gtk+" ,gtk+)))
2703 (propagated-inputs
2704 `(("python-pygobject" ,python-pygobject)))
2705 (home-page "https://wiki.gnome.org/Projects/liblarch")
2706 (synopsis "Library to easily handle complex data structures")
2707 (description
2708 "Liblarch is a Python library built to easily handle data structures such
2709 as lists, trees and acyclic graphs. There's also a GTK binding that will
2710 allow you to use your data structure in a @code{Gtk.Treeview}.
2711
2712 Liblarch support multiple views of one data structure and complex filtering.
2713 That way, you have a clear separation between your data themselves (Model)
2714 and how they are displayed (View).")
2715 (license license:lgpl3+)))
2716
2717 (define-public gtg
2718 (package
2719 (name "gtg")
2720 (version "0.4")
2721 (source
2722 (origin
2723 (method git-fetch)
2724 (uri (git-reference
2725 (url "https://github.com/getting-things-gnome/gtg")
2726 (commit (string-append "v" version))))
2727 (file-name (git-file-name name version))
2728 (sha256
2729 (base32 "0r28vyr88rj3kd3cg4gj7sd29wadjchi92wzmbx67d4hlg25h8kk"))))
2730 (build-system meson-build-system)
2731 (arguments
2732 `(#:glib-or-gtk? #t
2733 #:phases
2734 (modify-phases %standard-phases
2735 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
2736 (lambda* (#:key outputs #:allow-other-keys)
2737 (let ((prog (string-append (assoc-ref outputs "out")
2738 "/bin/gtg"))
2739 (pylib (string-append (assoc-ref outputs "out")
2740 "/lib/python"
2741 ,(version-major+minor
2742 (package-version python))
2743 "/site-packages")))
2744 (wrap-program prog
2745 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
2746 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
2747 #t))))))
2748 (native-inputs
2749 `(("desktop-file-utils" ,desktop-file-utils)
2750 ("gettext" ,gettext-minimal)
2751 ("glib:bin" ,glib "bin")
2752 ("gobject-introspection" ,gobject-introspection)
2753 ("gtk+:bin" ,gtk+ "bin")
2754 ("pkg-config" ,pkg-config)))
2755 (inputs
2756 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2757 ("gtk+" ,gtk+)
2758 ("python-dbus" ,python-dbus)
2759 ("python-liblarch" ,python-liblarch)
2760 ("python-pycairo" ,python-pycairo)
2761 ("python-pygobject" ,python-pygobject)
2762 ("python-pyxdg" ,python-pyxdg)))
2763 (home-page "https://wiki.gnome.org/Apps/GTG")
2764 (synopsis "Personal organizer for the GNOME desktop")
2765 (description
2766 "Getting Things GNOME! (GTG) is a personal tasks and TODO list items
2767 organizer for the GNOME desktop environment inspired by the Getting Things
2768 Done (GTD) methodology. GTG is designed with flexibility, adaptability,
2769 and ease of use in mind so it can be used as more than just GTD software.
2770 GTG is intended to help you track everything you need to do and need to
2771 know, from small tasks to large projects.")
2772 (license license:gpl3+)))
2773
2774 (define-public icon-naming-utils
2775 (package
2776 (name "icon-naming-utils")
2777 (version "0.8.90")
2778 (source
2779 (origin
2780 (method url-fetch)
2781 (uri (string-append "https://tango.freedesktop.org/releases/icon-naming-utils-"
2782 version ".tar.bz2"))
2783 (sha256
2784 (base32
2785 "1mc3v28fdfqanx3lqx233vcr4glb4c2376k0kx2v91a4vxwqcdxi"))))
2786 (build-system gnu-build-system)
2787 (inputs
2788 `(("perl" ,perl)
2789 ("perl-xml-simple" ,perl-xml-simple)))
2790 (arguments
2791 '(#:phases
2792 (modify-phases %standard-phases
2793 (add-after 'install 'set-load-paths
2794 ;; Tell 'icon-name-mapping' where XML::Simple is.
2795 (lambda* (#:key outputs #:allow-other-keys)
2796 (let* ((out (assoc-ref outputs "out"))
2797 (prog (string-append out "/libexec/icon-name-mapping")))
2798 (wrap-program
2799 prog
2800 `("PERL5LIB" = ,(list (getenv "PERL5LIB")))))
2801 #t)))))
2802 (home-page "http://tango.freedesktop.org/Standard_Icon_Naming_Specification")
2803 (synopsis
2804 "Utility to implement the Freedesktop Icon Naming Specification")
2805 (description
2806 "To help with the transition to the Freedesktop Icon Naming
2807 Specification, the icon naming utility maps the icon names used by the
2808 GNOME and KDE desktops to the icon names proposed in the specification.")
2809 (license license:lgpl2.1+)))
2810
2811 (define-public gnome-icon-theme
2812 (package
2813 (name "gnome-icon-theme")
2814 (version "3.12.0")
2815 (source
2816 (origin
2817 (method url-fetch)
2818 (uri (string-append "mirror://gnome/sources/" name "/"
2819 (version-major+minor version) "/"
2820 name "-" version ".tar.xz"))
2821 (sha256
2822 (base32
2823 "0fjh9qmmgj34zlgxb09231ld7khys562qxbpsjlaplq2j85p57im"))))
2824 (build-system gnu-build-system)
2825 (arguments
2826 '(#:configure-flags
2827 ;; Don't create 'icon-theme.cache'.
2828 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
2829 (true (string-append coreutils "/bin/true")))
2830 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
2831 (native-inputs
2832 `(("icon-naming-utils" ,icon-naming-utils)
2833 ("intltool" ,intltool)
2834 ("pkg-config" ,pkg-config)))
2835 (home-page "https://wiki.gnome.org/Personalization")
2836 (synopsis "GNOME icon theme")
2837 (description "Icons for the GNOME desktop.")
2838 (license license:lgpl3))) ; or Creative Commons BY-SA 3.0
2839
2840 ;; gnome-icon-theme was renamed to adwaita-icon-theme after version 3.12.0.
2841 (define-public adwaita-icon-theme
2842 (package (inherit gnome-icon-theme)
2843 (name "adwaita-icon-theme")
2844 (version "3.34.3")
2845 (source (origin
2846 (method url-fetch)
2847 (uri (string-append "mirror://gnome/sources/" name "/"
2848 (version-major+minor version) "/"
2849 name "-" version ".tar.xz"))
2850 (sha256
2851 (base32
2852 "025rj1fskw1y448hiar4a9icyzpyr242nlh9xhsmyp8jb71dihp7"))))
2853 (native-inputs
2854 `(("gtk-encode-symbolic-svg" ,gtk+ "bin")))))
2855
2856 (define-public tango-icon-theme
2857 (package
2858 (name "tango-icon-theme")
2859 (version "0.8.90")
2860 (source (origin
2861 (method url-fetch)
2862 (uri (string-append "http://tango.freedesktop.org/releases/"
2863 "tango-icon-theme-" version ".tar.bz2"))
2864 (sha256
2865 (base32
2866 "034r9s944b4yikyfgn602yv7s54wdzlq0qfvqh52b9x6kbx08h79"))))
2867 (build-system gnu-build-system)
2868 (native-inputs
2869 `(("icon-naming-utils" ,icon-naming-utils)
2870 ("intltool" ,intltool)
2871 ("imagemagick" ,imagemagick)
2872 ("pkg-config" ,pkg-config)))
2873 (home-page "http://tango-project.org/")
2874 (synopsis "Tango icon theme")
2875 (description "This is an icon theme that follows the Tango visual
2876 guidelines.")
2877 (license license:public-domain)))
2878
2879 (define-public shared-mime-info
2880 (package
2881 (name "shared-mime-info")
2882 (version "1.15")
2883 (source (origin
2884 (method url-fetch)
2885 (uri (string-append
2886 "https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/"
2887 "b27eb88e4155d8fccb8bb3cd12025d5b/shared-mime-info-" version
2888 ".tar.xz"))
2889 (sha256
2890 (base32
2891 "146vynj78wcwdq0ms52jzm1r4m6dzi1rhyh3h4xyb6bw8ckv10pl"))))
2892 (build-system gnu-build-system)
2893 (arguments
2894 ;; The build system appears not to be parallel-safe.
2895 '(#:parallel-build? #f))
2896 (inputs
2897 `(("glib" ,glib)
2898 ("libxml2" ,libxml2)))
2899 (native-inputs
2900 `(("gettext" ,gettext-minimal)
2901 ("itstool" ,itstool)
2902 ("pkg-config" ,pkg-config)))
2903 (home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info")
2904 (synopsis "Database of common MIME types")
2905 (description
2906 "The shared-mime-info package contains the core database of common types
2907 and the update-mime-database command used to extend it. It requires glib2 to
2908 be installed for building the update command. Additionally, it uses intltool
2909 for translations, though this is only a dependency for the maintainers. This
2910 database is translated at Transifex.")
2911 (license license:gpl2+)))
2912
2913 (define-public system-config-printer
2914 (package
2915 (name "system-config-printer")
2916 (version "1.5.15")
2917 (source
2918 (origin
2919 (method url-fetch)
2920 (uri (string-append
2921 "https://github.com/OpenPrinting/system-config-printer/releases/"
2922 "download/v" version
2923 "/system-config-printer-" version ".tar.xz"))
2924 (sha256
2925 (base32 "12d6xx51vizc476zfnsga9q09nflp51ipn6y7lhi9w2v4772dlpv"))))
2926 (build-system glib-or-gtk-build-system)
2927 (arguments
2928 `(#:imported-modules ((guix build python-build-system)
2929 ,@%glib-or-gtk-build-system-modules)
2930 #:phases
2931 (modify-phases %standard-phases
2932 (add-after 'unpack 'patch-Makefile.am
2933 (lambda _
2934 ;; The Makefile generates some scripts, so set a valid shebang
2935 (substitute* "Makefile.am"
2936 (("/bin/bash") (which "bash")))
2937 (delete-file "configure")
2938 #t))
2939 (add-after 'unpack 'patch-docbook-xml
2940 (lambda* (#:key inputs #:allow-other-keys)
2941 ;; Modify the man XML otherwise xmlto tries to access the network
2942 (substitute* "man/system-config-printer.xml"
2943 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
2944 (string-append (assoc-ref inputs "docbook-xml")
2945 "/xml/dtd/docbook/")))
2946 #t))
2947 (add-after 'install 'wrap-for-python
2948 (@@ (guix build python-build-system) wrap))
2949 (add-after 'install 'wrap
2950 (lambda* (#:key outputs #:allow-other-keys)
2951 (let ((out (assoc-ref outputs "out"))
2952 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
2953 (for-each
2954 (lambda (program)
2955 (wrap-program program
2956 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
2957 (map (lambda (name)
2958 (string-append out "/bin/" name))
2959 '("system-config-printer"
2960 "system-config-printer-applet"
2961 "install-printerdriver"
2962 "scp-dbus-service"))))
2963 #t)))))
2964 (inputs
2965 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2966 ("gobject-introspection" ,gobject-introspection)
2967 ("python" ,python)
2968 ("cups" ,cups)
2969 ("gtk+" ,gtk+)
2970 ("python-dbus" ,python-dbus)
2971 ("python-pygobject" ,python-pygobject)
2972 ("python-pycups" ,python-pycups)
2973 ("python-requests" ,python-requests)
2974 ("python-pycairo" ,python-pycairo)
2975 ("libnotify" ,libnotify)
2976 ("packagekit" ,packagekit)))
2977 (native-inputs
2978 `(("pkg-config" ,pkg-config)
2979 ("desktop-file-utils" ,desktop-file-utils)
2980 ("glib" ,glib)
2981 ("autoconf" ,autoconf)
2982 ("automake" ,automake)
2983 ("intltool" ,intltool)
2984 ("xmlto" ,xmlto)
2985 ("docbook-xml" ,docbook-xml-4.1.2)
2986 ("docbook-xsl" ,docbook-xsl)
2987 ("libxml2" ,libxml2)))
2988 (home-page "https://github.com/zdohnal/system-config-printer")
2989 (synopsis "CUPS administration tool")
2990 (description
2991 "system-config-printer is a CUPS administration tool. It's written in
2992 Python using GTK+, and uses the @acronym{IPP, Internet Printing Protocol} when
2993 configuring CUPS.")
2994 (license license:gpl2+)))
2995
2996 (define-public hicolor-icon-theme
2997 (package
2998 (name "hicolor-icon-theme")
2999 (version "0.17")
3000 (source
3001 (origin
3002 (method url-fetch)
3003 (uri (string-append "https://icon-theme.freedesktop.org/releases/"
3004 "hicolor-icon-theme-" version ".tar.xz"))
3005 (sha256
3006 (base32
3007 "1n59i3al3zx6p90ff0l43gzpzmlqnzm6hf5cryxqrlbi48sq8x1i"))))
3008 (build-system gnu-build-system)
3009 (arguments
3010 `(#:tests? #f)) ; no check target
3011 (home-page "https://icon-theme.freedesktop.org/releases/")
3012 (synopsis
3013 "Freedesktop icon theme")
3014 (description
3015 "Freedesktop icon theme.")
3016 (license license:gpl2)))
3017
3018 (define-public libnotify
3019 (package
3020 (name "libnotify")
3021 (version "0.7.9")
3022 (source
3023 (origin
3024 (method url-fetch)
3025 (uri (string-append "mirror://gnome/sources/" name "/"
3026 (version-major+minor version) "/"
3027 name "-" version ".tar.xz"))
3028 (sha256
3029 (base32
3030 "0qa7cx6ra5hwqnxw95b9svgjg5q6ynm8y843iqjszxvds5z53h36"))))
3031 (build-system meson-build-system)
3032 (arguments
3033 `(#:phases
3034 (modify-phases %standard-phases
3035 (add-after 'unpack 'fix-docbook
3036 (lambda* (#:key inputs #:allow-other-keys)
3037 ;; Don't attempt to download XSL schema.
3038 (substitute* "meson.build"
3039 (("http://docbook.sourceforge.net/release/xsl-ns/current\
3040 /manpages/docbook.xsl")
3041 (string-append (assoc-ref inputs "docbook-xsl")
3042 "/xml/xsl/docbook-xsl-"
3043 ,(package-version docbook-xsl)
3044 "/manpages/docbook.xsl")))
3045 #t)))))
3046 (propagated-inputs
3047 `(;; In Requires of libnotify.pc.
3048 ("gdk-pixbuf" ,gdk-pixbuf)
3049 ("glib" ,glib)))
3050 (inputs
3051 `(("gtk+" ,gtk+)
3052 ("libpng" ,libpng)))
3053 (native-inputs
3054 `(("pkg-config" ,pkg-config)
3055 ("glib" ,glib "bin")
3056 ("gobject-introspection" ,gobject-introspection)
3057
3058 ;; For the documentation.
3059 ("gtk-doc" ,gtk-doc)
3060 ("xsltproc" ,libxslt)
3061 ("docbook-xsl" ,docbook-xsl)))
3062 (home-page "https://developer-next.gnome.org/libnotify/")
3063 (synopsis
3064 "GNOME desktop notification library")
3065 (description
3066 "Libnotify is a library that sends desktop notifications to a
3067 notification daemon, as defined in the Desktop Notifications spec. These
3068 notifications can be used to inform the user about an event or display
3069 some form of information without getting in the user's way.")
3070 (license license:lgpl2.1+)))
3071
3072 (define-public libpeas
3073 (package
3074 (name "libpeas")
3075 (version "1.28.0")
3076 (source
3077 (origin
3078 (method url-fetch)
3079 (uri (string-append "mirror://gnome/sources/" name "/"
3080 (version-major+minor version) "/"
3081 name "-" version ".tar.xz"))
3082 (sha256
3083 (base32
3084 "05cb7drn6arc4gi02wgsvzibigi2riz5gnfnmlb0zmbfnj9ikna2"))))
3085 (build-system meson-build-system)
3086 (arguments
3087 '(#:phases
3088 (modify-phases %standard-phases
3089 (add-before 'check 'start-xserver
3090 (lambda* (#:key inputs #:allow-other-keys)
3091 (let ((xorg-server (assoc-ref inputs "xorg-server"))
3092 (disp ":1"))
3093 (setenv "DISPLAY" disp)
3094 ;; Tests require a running X server.
3095 (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp))
3096 #t))))))
3097 (inputs
3098 `(("gtk+" ,gtk+)
3099 ("glade" ,glade3)
3100 ("python" ,python)
3101 ("python-pygobject" ,python-pygobject)))
3102 (native-inputs
3103 `(("pkg-config" ,pkg-config)
3104 ("gettext" ,gettext-minimal)
3105 ("glib:bin" ,glib "bin")
3106 ("gobject-introspection" ,gobject-introspection)
3107 ("xorg-server" ,xorg-server-for-tests)))
3108 (propagated-inputs
3109 ;; The .pc file "Requires" gobject-introspection.
3110 `(("gobject-introspection" ,gobject-introspection)))
3111 (home-page "https://wiki.gnome.org/Libpeas")
3112 (synopsis "GObject plugin system")
3113 (description
3114 "Libpeas is a gobject-based plugin engine, targeted at giving every
3115 application the chance to assume its own extensibility. It also has a set of
3116 features including, but not limited to: multiple extension points; on-demand
3117 (lazy) programming language support for C, Python and JS; simplicity of the
3118 API.")
3119 (license license:lgpl2.0+)))
3120
3121 (define-public gtkglext
3122 (package
3123 (name "gtkglext")
3124 (version "1.2.0")
3125 (source (origin
3126 (method url-fetch)
3127 (uri (string-append "mirror://sourceforge/gtkglext/gtkglext/"
3128 version "/gtkglext-" version ".tar.gz"))
3129 (sha256
3130 (base32 "1ya4d2j2aacr9ii5zj4ac95fjpdvlm2rg79mgnk7yvl1dcy3y1z5"))
3131 (patches (search-patches
3132 "gtkglext-disable-disable-deprecated.patch"))))
3133 (build-system gnu-build-system)
3134 (arguments
3135 `(#:phases
3136 (modify-phases %standard-phases
3137 ;; Fix a collision between a local variable and a definition from
3138 ;; glibc's string.h.
3139 (add-after 'unpack 'fix-collision
3140 (lambda _
3141 (substitute* "gdk/gdkglshapes.c"
3142 ((" index") " triangle_index"))
3143 #t)))))
3144 (inputs `(("gtk+" ,gtk+-2)
3145 ("mesa" ,mesa)
3146 ("glu" ,glu)
3147 ("libx11" ,libx11)
3148 ("libxt" ,libxt)))
3149 (native-inputs `(("pkg-config" ,pkg-config)
3150 ("glib" ,glib "bin")))
3151 (propagated-inputs `(("pangox-compat" ,pangox-compat)))
3152 (home-page "https://projects.gnome.org/gtkglext")
3153 (synopsis "OpenGL extension to GTK+")
3154 (description "GtkGLExt is an OpenGL extension to GTK+. It provides
3155 additional GDK objects which support OpenGL rendering in GTK+ and GtkWidget
3156 API add-ons to make GTK+ widgets OpenGL-capable.")
3157 (license license:lgpl2.1+)))
3158
3159 (define-public glade3
3160 (package
3161 (name "glade")
3162 (version "3.36.0")
3163 (source (origin
3164 (method url-fetch)
3165 (uri (string-append "mirror://gnome/sources/" name "/"
3166 (version-major+minor version) "/"
3167 name "-" version ".tar.xz"))
3168 (sha256
3169 (base32
3170 "023gx8rj51njn8fsb6ma5kz1irjpxi4js0n8rwy22inc4ysldd8r"))))
3171 (build-system glib-or-gtk-build-system)
3172 (arguments
3173 `(#:phases
3174 (modify-phases %standard-phases
3175 (add-before 'configure 'fix-docbook
3176 (lambda* (#:key inputs #:allow-other-keys)
3177 (substitute* "man/Makefile.in"
3178 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
3179 (string-append (assoc-ref inputs "docbook-xsl")
3180 "/xml/xsl/docbook-xsl-"
3181 ,(package-version docbook-xsl)
3182 "/manpages/docbook.xsl")))
3183 #t))
3184 (add-before 'check 'pre-check
3185 (lambda _
3186 (setenv "HOME" "/tmp")
3187 ;; Tests require a running X server.
3188 (system "Xvfb :1 &")
3189 (setenv "DISPLAY" ":1")
3190 #t)))))
3191 (inputs
3192 `(("gtk+" ,gtk+)
3193 ("libxml2" ,libxml2)))
3194 (native-inputs
3195 `(("hicolor-icon-theme" ,hicolor-icon-theme)
3196 ("intltool" ,intltool)
3197 ("itstool" ,itstool)
3198 ("libxslt" ,libxslt) ;for xsltproc
3199 ("docbook-xml" ,docbook-xml-4.2)
3200 ("docbook-xsl" ,docbook-xsl)
3201 ("python" ,python-2)
3202 ("pkg-config" ,pkg-config)
3203 ("xorg-server" ,xorg-server-for-tests)))
3204 (home-page "https://glade.gnome.org")
3205 (synopsis "GTK+ rapid application development tool")
3206 (description "Glade is a rapid application development (RAD) tool to
3207 enable quick & easy development of user interfaces for the GTK+ toolkit and
3208 the GNOME desktop environment.")
3209 (license license:lgpl2.0+)
3210 (native-search-paths (list (search-path-specification
3211 (variable "GLADE_CATALOG_SEARCH_PATH")
3212 (files '("share/glade/catalogs")))
3213 (search-path-specification
3214 (variable "GLADE_MODULE_SEARCH_PATH")
3215 (files '("lib/glade/modules")))))))
3216
3217 (define-public libcroco
3218 (package
3219 (name "libcroco")
3220 (version "0.6.13")
3221 (source (origin
3222 (method url-fetch)
3223 (uri (string-append "mirror://gnome/sources/" name "/"
3224 (version-major+minor version) "/"
3225 name "-" version ".tar.xz"))
3226 (sha256
3227 (base32
3228 "1m110rbj5d2raxcdp4iz0qp172284945awrsbdlq99ksmqsc4zkn"))))
3229 (replacement libcroco/fixed)
3230 (build-system gnu-build-system)
3231 (native-inputs
3232 `(("pkg-config" ,pkg-config)))
3233 (inputs
3234 `(("glib" ,glib)
3235 ("libxml2" ,libxml2)
3236 ("zlib" ,zlib)))
3237 (home-page "https://github.com/GNOME/libcroco")
3238 (synopsis "CSS2 parsing and manipulation library")
3239 (description
3240 "Libcroco is a standalone CSS2 parsing and manipulation library.
3241 The parser provides a low level event driven SAC-like API and a CSS object
3242 model like API. Libcroco provides a CSS2 selection engine and an experimental
3243 XML/CSS rendering engine.")
3244
3245 ;; LGPLv2.1-only.
3246 (license license:lgpl2.1)))
3247
3248 (define libcroco/fixed
3249 (package
3250 (inherit libcroco)
3251 (name "libcroco")
3252 (version "0.6.13")
3253 (source (origin
3254 (method url-fetch)
3255 (uri (string-append "mirror://gnome/sources/" name "/"
3256 (version-major+minor version) "/"
3257 name "-" version ".tar.xz"))
3258 (sha256
3259 (base32
3260 "1m110rbj5d2raxcdp4iz0qp172284945awrsbdlq99ksmqsc4zkn"))
3261 (patches (search-patches "libcroco-CVE-2020-12825.patch"))))))
3262
3263 (define-public libgsf
3264 (package
3265 (name "libgsf")
3266 (version "1.14.47")
3267 (source (origin
3268 (method url-fetch)
3269 (uri (string-append "mirror://gnome/sources/" name "/"
3270 (version-major+minor version) "/"
3271 name "-" version ".tar.xz"))
3272 (sha256
3273 (base32
3274 "0kbpp9ksl7977xiga37sk1gdw1r039v6zviqznl7alvvg39yp26i"))))
3275 (build-system gnu-build-system)
3276 (arguments
3277 '(#:configure-flags '("--disable-static")))
3278 (native-inputs
3279 `(("pkg-config" ,pkg-config)
3280 ("gettext" ,gettext-minimal)
3281
3282 ;; For tests.
3283 ("perl" ,perl)
3284 ("perl-xml-parser" ,perl-xml-parser)))
3285 (inputs
3286 `(("zlib" ,zlib)
3287 ("bzip2" ,bzip2)))
3288 (propagated-inputs
3289 `(("gdk-pixbuf" ,gdk-pixbuf)
3290 ("glib" ,glib)
3291 ("libxml2" ,libxml2)))
3292 (home-page "https://www.gnome.org/projects/libgsf")
3293 (synopsis "GNOME's Structured File Library")
3294 (description
3295 "Libgsf aims to provide an efficient extensible I/O abstraction for
3296 dealing with different structured file formats.")
3297
3298 ;; LGPLv2.1-only.
3299 (license license:lgpl2.1)))
3300
3301 (define-public librsvg
3302 (package
3303 (name "librsvg")
3304 (version "2.40.21")
3305 (source (origin
3306 (method url-fetch)
3307 (uri (string-append "mirror://gnome/sources/" name "/"
3308 (version-major+minor version) "/"
3309 name "-" version ".tar.xz"))
3310 (sha256
3311 (base32
3312 "1fljkag2gr7c4k5mn798lgf9903xslz8h51bgvl89nnay42qjqpp"))))
3313 (build-system gnu-build-system)
3314 (arguments
3315 `(#:configure-flags
3316 (list "--disable-static"
3317 "--enable-vala") ; needed for e.g. gnome-mines
3318 #:phases
3319 (modify-phases %standard-phases
3320 (add-before 'configure 'pre-configure
3321 (lambda* (#:key inputs #:allow-other-keys)
3322 (substitute* "gdk-pixbuf-loader/Makefile.in"
3323 ;; By default the gdk-pixbuf loader is installed under
3324 ;; gdk-pixbuf's prefix. Work around that.
3325 (("gdk_pixbuf_moduledir = .*$")
3326 (string-append "gdk_pixbuf_moduledir = "
3327 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
3328 "loaders\n"))
3329 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
3330 (("gdk_pixbuf_cache_file = .*$")
3331 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
3332 #t))
3333 (add-before 'check 'remove-failing-tests
3334 (lambda _
3335 (with-directory-excursion "tests/fixtures/reftests"
3336 (for-each delete-file
3337 '(;; This test fails on i686:
3338 "svg1.1/masking-path-04-b.svg"
3339 ;; This test fails on armhf:
3340 "svg1.1/masking-mask-01-b.svg"
3341 ;; This test fails on aarch64:
3342 "bugs/777834-empty-text-children.svg")))
3343 #t)))))
3344 (native-inputs
3345 `(("pkg-config" ,pkg-config)
3346 ("vala" ,vala)
3347 ("glib" ,glib "bin") ; glib-mkenums, etc.
3348 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
3349 (inputs
3350 `(;; XXX: 1.44 causes some test failures, so we stick with 1.42 for
3351 ;; this ancient version of librsvg.
3352 ("pango" ,pango-1.42)
3353 ("libcroco" ,libcroco)
3354 ("bzip2" ,bzip2)
3355 ("libgsf" ,libgsf)
3356 ("libxml2" ,libxml2)))
3357 (propagated-inputs
3358 ;; librsvg-2.0.pc refers to all of that.
3359 `(("cairo" ,cairo)
3360 ("gdk-pixbuf" ,gdk-pixbuf)
3361 ("glib" ,glib)))
3362 (home-page "https://wiki.gnome.org/LibRsvg")
3363 (synopsis "Render SVG files using Cairo")
3364 (description
3365 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
3366 library.")
3367 (license license:lgpl2.0+)))
3368
3369 (define-public librsvg-next
3370 (package
3371 (name "librsvg")
3372 (version "2.50.2")
3373 (source (origin
3374 (method url-fetch)
3375 (uri (string-append "mirror://gnome/sources/librsvg/"
3376 (version-major+minor version) "/"
3377 "librsvg-" version ".tar.xz"))
3378 (sha256
3379 (base32
3380 "1lsnl08b5pjf01q3agixjd53islw5rqkc38r31rlmm2crrqz44b2"))
3381 (modules '((guix build utils)))
3382 (snippet
3383 '(begin (delete-file-recursively "vendor")
3384 #t))))
3385 (build-system cargo-build-system)
3386 (outputs '("out" "doc"))
3387 (arguments
3388 `(#:install-source? #f
3389 #:modules
3390 ((guix build cargo-build-system)
3391 (guix build utils)
3392 ((guix build gnu-build-system) #:prefix gnu:))
3393 #:cargo-inputs
3394 (("rust-bitflags" ,rust-bitflags-1)
3395 ("rust-cairo-rs" ,rust-cairo-rs-0.8)
3396 ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
3397 ("rust-cast" ,rust-cast-0.2)
3398 ("rust-cssparser" ,rust-cssparser-0.27)
3399 ("rust-data-url" ,rust-data-url-0.1)
3400 ("rust-encoding" ,rust-encoding-0.2)
3401 ("rust-float-cmp" ,rust-float-cmp-0.8)
3402 ("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.8)
3403 ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.9)
3404 ("rust-gio" ,rust-gio-0.8)
3405 ("rust-gio-sys" ,rust-gio-sys-0.9)
3406 ("rust-glib" ,rust-glib-0.9)
3407 ("rust-glib-sys" ,rust-glib-sys-0.9)
3408 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
3409 ("rust-itertools" ,rust-itertools-0.9)
3410 ("rust-language-tags" ,rust-language-tags-0.2)
3411 ("rust-libc" ,rust-libc-0.2)
3412 ("rust-locale-config" ,rust-locale-config-0.3)
3413 ("rust-markup5ever" ,rust-markup5ever-0.10)
3414 ("rust-nalgebra" ,rust-nalgebra-0.21)
3415 ("rust-num-traits" ,rust-num-traits-0.2)
3416 ("rust-once-cell" ,rust-once-cell-1)
3417 ("rust-pkg-config" ,rust-pkg-config-0.3)
3418 ("rust-pango" ,rust-pango-0.8)
3419 ("rust-pango-sys" ,rust-pango-sys-0.9)
3420 ("rust-pangocairo" ,rust-pangocairo-0.9)
3421 ("rust-rayon" ,rust-rayon-1)
3422 ("rust-rctree" ,rust-rctree-0.3)
3423 ("rust-rgb" ,rust-rgb-0.8)
3424 ("rust-regex" ,rust-regex-1)
3425 ("rust-selectors" ,rust-selectors-0.22)
3426 ("rust-string-cache" ,rust-string-cache-0.8)
3427 ("rust-tinyvec" ,rust-tinyvec-0.3)
3428 ("rust-url" ,rust-url-2)
3429 ("rust-xml5ever" ,rust-xml5ever-0.16))
3430 #:cargo-development-inputs
3431 (("rust-assert-cmd" ,rust-assert-cmd-1)
3432 ("rust-cairo-rs" ,rust-cairo-rs-0.8)
3433 ("rust-chrono" ,rust-chrono-0.4)
3434 ("rust-criterion" ,rust-criterion-0.3)
3435 ("rust-float-cmp" ,rust-float-cmp-0.8)
3436 ("rust-lopdf" ,rust-lopdf-0.25)
3437 ("rust-png" ,rust-png-0.16)
3438 ("rust-predicates" ,rust-predicates-1)
3439 ("rust-tempfile" ,rust-tempfile-3))
3440 #:phases
3441 (modify-phases %standard-phases
3442 (add-after 'unpack 'patch-docbook-xml
3443 (lambda* (#:key inputs #:allow-other-keys)
3444 (with-directory-excursion "doc"
3445 (substitute* "rsvg-docs.xml"
3446 (("http://www.oasis-open.org/docbook/xml/4.3/")
3447 (string-append (assoc-ref inputs "docbook-xml")
3448 "/xml/dtd/docbook/"))))
3449 #t))
3450 (add-after 'unpack 'prepare-for-build
3451 (lambda _
3452 ;; In lieu of #:make-flags
3453 (setenv "CC" ,(cc-for-target))
3454 ;; Something about the build environment resists building
3455 ;; successfully with the '--locked' flag.
3456 (substitute* '("Makefile.am" "Makefile.in")
3457 (("--locked") ""))
3458 #t))
3459 (add-before 'configure 'pre-configure
3460 (lambda _
3461 (substitute* "gdk-pixbuf-loader/Makefile.in"
3462 ;; By default the gdk-pixbuf loader is installed under
3463 ;; gdk-pixbuf's prefix. Work around that.
3464 (("gdk_pixbuf_moduledir = .*$")
3465 (string-append "gdk_pixbuf_moduledir = "
3466 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
3467 "loaders\n"))
3468 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
3469 (("gdk_pixbuf_cache_file = .*$")
3470 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
3471 #t))
3472 (add-after 'configure 'gnu-configure
3473 (lambda* (#:key inputs native-inputs outputs #:allow-other-keys)
3474 ((assoc-ref gnu:%standard-phases 'configure)
3475 #:native-inputs native-inputs
3476 #:inputs inputs
3477 #:outputs outputs
3478 #:configure-flags
3479 (list "--disable-static"
3480 "--enable-vala"
3481 (string-append "--with-html-dir="
3482 (assoc-ref %outputs "doc")
3483 "/share/gtk-doc/html")))))
3484 (add-after 'configure 'dont-vendor-self
3485 (lambda* (#:key vendor-dir #:allow-other-keys)
3486 ;; Don't keep the whole tarball in the vendor directory
3487 (delete-file-recursively
3488 (string-append vendor-dir "/" ,name "-" ,version ".tar.xz"))
3489 #t))
3490 (replace 'build
3491 (assoc-ref gnu:%standard-phases 'build))
3492 (add-before 'check 'ignore-failing-tests
3493 ;; stderr=```/tmp/guix-build-.../librsvg-2.50.1/rsvg-convert: line 150: ls: command not found
3494 (lambda _
3495 (substitute* "tests/src/cmdline/rsvg_convert.rs"
3496 (("fn background_color_option_invalid_color_yields_error" all)
3497 (string-append "#[ignore] " all))
3498 (("fn empty_input_yields_error" all)
3499 (string-append "#[ignore] " all))
3500 (("fn empty_svg_yields_error" all)
3501 (string-append "#[ignore] " all))
3502 (("fn env_source_data_epoch_empty" all)
3503 (string-append "#[ignore] " all))
3504 (("fn env_source_data_epoch_no_digits" all)
3505 (string-append "#[ignore] " all))
3506 (("fn env_source_data_epoch_trailing_garbage" all)
3507 (string-append "#[ignore] " all))
3508 (("fn export_id_option_error" all)
3509 (string-append "#[ignore] " all))
3510 (("fn huge_zoom_factor_yields_error" all)
3511 (string-append "#[ignore] " all))
3512 (("fn multiple_input_files_not_allowed_for_png_output" all)
3513 (string-append "#[ignore] " all))
3514 (("fn stylesheet_option_error" all)
3515 (string-append "#[ignore] " all)))
3516 #t))
3517 (replace 'check
3518 (lambda* args
3519 ((assoc-ref gnu:%standard-phases 'check)
3520 #:test-target "check")))
3521 (replace 'install
3522 (assoc-ref gnu:%standard-phases 'install)))))
3523 (native-inputs
3524 `(("docbook-xml" ,docbook-xml-4.3)
3525 ("glib" ,glib "bin")
3526 ("gobject-introspection" ,gobject-introspection)
3527 ("pkg-config" ,pkg-config)
3528 ("python" ,python-wrapper)
3529 ("ruby" ,ruby)
3530 ("vala" ,vala)))
3531 (inputs
3532 `(("bzip2" ,bzip2)
3533 ("fontconfig" ,fontconfig)
3534 ("freetype" ,freetype)
3535 ("harfbuzz" ,harfbuzz)
3536 ("libcroco" ,libcroco)
3537 ("libgsf" ,libgsf)
3538 ("libxml2" ,libxml2)
3539 ("pango" ,pango)))
3540 (propagated-inputs
3541 `(("cairo" ,cairo)
3542 ("gdk-pixbuf" ,gdk-pixbuf)
3543 ("glib" ,glib)))
3544 (synopsis "SVG rendering library")
3545 (description "Librsvg is a library to render SVG images to Cairo surfaces.
3546 GNOME uses this to render SVG icons. Outside of GNOME, other desktop
3547 environments use it for similar purposes. Wikimedia uses it for Wikipedia's SVG
3548 diagrams.")
3549 (home-page "https://wiki.gnome.org/LibRsvg")
3550 (license license:lgpl2.1+)))
3551
3552 (define-public libidl
3553 (package
3554 (name "libidl")
3555 (version "0.8.14")
3556 (source (origin
3557 (method url-fetch)
3558 (uri (string-append "mirror://gnome/sources/libIDL/"
3559 (version-major+minor version) "/"
3560 "libIDL-" version ".tar.bz2"))
3561 (sha256
3562 (base32
3563 "08129my8s9fbrk0vqvnmx6ph4nid744g5vbwphzkaik51664vln5"))))
3564 (build-system gnu-build-system)
3565 (inputs `(("glib" ,glib)))
3566 (native-inputs
3567 `(("pkg-config" ,pkg-config)
3568 ("flex" ,flex)
3569 ("bison" ,bison)))
3570 (home-page "http://freecode.com/projects/libidl")
3571 (synopsis "Create trees of CORBA Interface Definition Language files")
3572 (description "Libidl is a library for creating trees of CORBA Interface
3573 Definition Language (idl) files, which is a specification for defining
3574 portable interfaces. libidl was initially written for orbit (the orb from the
3575 GNOME project, and the primary means of libidl distribution). However, the
3576 functionality was designed to be as reusable and portable as possible.")
3577 (properties `((upstream-name . "libIDL")))
3578 (license license:lgpl2.0+)))
3579
3580
3581 (define-public orbit2
3582 (package
3583 (name "orbit2")
3584 (version "2.14.19")
3585 (source (origin
3586 (method url-fetch)
3587 (uri (let ((upstream-name "ORBit2"))
3588 (string-append "mirror://gnome/sources/" upstream-name "/"
3589 (version-major+minor version) "/"
3590 upstream-name "-" version ".tar.bz2")))
3591 (sha256
3592 (base32
3593 "0l3mhpyym9m5iz09fz0rgiqxl2ym6kpkwpsp1xrr4aa80nlh1jam"))))
3594 (build-system gnu-build-system)
3595 (arguments
3596 `(;; The "timeout-server" test hangs when run in parallel.
3597 #:parallel-tests? #f
3598 #:configure-flags
3599 '(;; We don't need static libraries, plus they don't build reproducibly
3600 ;; (non-deterministic ordering of .o files in the archive.)
3601 "--disable-static"
3602
3603 ;; The programmer kindly gives us a hook to turn off deprecation
3604 ;; warnings ...
3605 "DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
3606 ;; ... which they then completly ignore !!
3607 #:phases
3608 (modify-phases %standard-phases
3609 (add-before 'configure 'ignore-deprecations
3610 (lambda _
3611 (substitute* "linc2/src/Makefile.in"
3612 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3613 #t)))))
3614 (inputs `(("glib" ,glib)
3615 ("libidl" ,libidl)))
3616 (native-inputs
3617 `(("pkg-config" ,pkg-config)))
3618 (home-page "https://projects.gnome.org/orbit2/")
3619 (synopsis "CORBA 2.4-compliant Object Request Broker")
3620 (description "ORBit2 is a CORBA 2.4-compliant Object Request Broker (orb)
3621 featuring mature C, C++ and Python bindings.")
3622 ;; Licence notice is unclear. The Web page simply say "GPL" without giving
3623 ;; a version. SOME of the code files have licence notices for GPLv2+.
3624 ;; The tarball contains files of the text of GPLv2 and LGPLv2.
3625 (license license:gpl2+)
3626 (properties `((upstream-name . "ORBit2")))))
3627
3628
3629 (define-public libbonobo
3630 (package
3631 (name "libbonobo")
3632 (version "2.32.1")
3633 (source (origin
3634 (method url-fetch)
3635 (uri (string-append "mirror://gnome/sources/" name "/"
3636 (version-major+minor version)
3637 "/" name "-" version ".tar.bz2"))
3638 (sha256
3639 (base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))
3640 (patches (search-patches
3641 "libbonobo-activation-test-race.patch"))))
3642 (build-system gnu-build-system)
3643 (arguments
3644 ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
3645 `(#:configure-flags
3646 '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
3647 ;; ... which they then completly ignore !!
3648 #:phases
3649 (modify-phases %standard-phases
3650 (add-before 'configure 'ignore-deprecations
3651 (lambda _
3652 (substitute* "activation-server/Makefile.in"
3653 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3654 #t)))
3655
3656 ;; There's apparently a race condition between the server stub
3657 ;; generation and linking of the example under 'samples/echo' that can
3658 ;; lead do undefined references when building in parallel, as reported
3659 ;; at <https://forums.gentoo.org/viewtopic-t-223376-start-550.html>.
3660 ;; Thus, disable parallel builds.
3661 #:parallel-build? #f))
3662 (inputs `(("popt" ,popt)
3663 ("libxml2" ,libxml2)))
3664 ;; The following are Required by the .pc file
3665 (propagated-inputs
3666 `(("glib" ,glib)
3667 ("orbit2" ,orbit2)))
3668 (native-inputs
3669 `(("intltool" ,intltool)
3670 ("pkg-config" ,pkg-config)
3671 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3672 ("flex" ,flex)
3673 ("bison" ,bison)))
3674 (home-page "https://developer.gnome.org/libbonobo/")
3675 (synopsis "Framework for creating reusable components for use in GNOME applications")
3676 (description "Bonobo is a framework for creating reusable components for
3677 use in GNOME applications, built on top of CORBA.")
3678 ;; Licence not explicitly stated. Source files contain no licence notices.
3679 ;; Tarball contains text of both GPLv2 and LGPLv2
3680 ;; GPLv2 covers both conditions
3681 (license license:gpl2+)))
3682
3683
3684 (define-public gconf
3685 (package
3686 (name "gconf")
3687 (version "3.2.6")
3688 (source (origin
3689 (method url-fetch)
3690 (uri
3691 (let ((upstream-name "GConf"))
3692 (string-append "mirror://gnome/sources/" upstream-name "/"
3693 (version-major+minor version) "/"
3694 upstream-name "-" version ".tar.xz")))
3695 (sha256
3696 (base32 "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr"))))
3697 (build-system gnu-build-system)
3698 (inputs `(("dbus-glib" ,dbus-glib)
3699 ("libxml2" ,libxml2)))
3700 (propagated-inputs `(("glib" ,glib) ; referred to in the .pc file
3701 ("orbit2" ,orbit2)))
3702 (native-inputs
3703 `(("intltool" ,intltool)
3704 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3705 ("pkg-config" ,pkg-config)))
3706 (home-page "https://projects.gnome.org/gconf/")
3707 (synopsis "Store application preferences")
3708 (description "Gconf is a system for storing application preferences. It
3709 is intended for user preferences; not arbitrary data storage.")
3710 (license license:lgpl2.0+)
3711 (properties '((upstream-name . "GConf")))))
3712
3713
3714 (define-public gnome-mime-data
3715 (package
3716 (name "gnome-mime-data")
3717 (version "2.18.0")
3718 (source (origin
3719 (method url-fetch)
3720 (uri (string-append "mirror://gnome/sources/" name "/"
3721 (version-major+minor version) "/"
3722 name "-" version ".tar.bz2"))
3723 (sha256
3724 (base32
3725 "1mvg8glb2a40yilmyabmb7fkbzlqd3i3d31kbkabqnq86xdnn69p"))))
3726 (build-system gnu-build-system)
3727 (native-inputs
3728 `(("perl" ,perl)
3729 ("intltool" ,intltool)))
3730 (arguments
3731 '(#:phases (modify-phases %standard-phases
3732 (add-after 'configure 'use-our-intltool
3733 (lambda _
3734 ;; Do not use the bundled intltool commands, which lack
3735 ;; the "dotless @INC" fixes of our 'intltool' package.
3736 (substitute* (find-files "." "^Makefile$")
3737 (("^INTLTOOL_(EXTRACT|UPDATE|MERGE) = .*$" _ tool)
3738 (string-append "INTLTOOL_" tool " = intltool-"
3739 (string-downcase tool) "\n")))
3740 #t)))))
3741 (home-page "https://www.gnome.org")
3742 (synopsis "Base MIME and Application database for GNOME")
3743 (description "GNOME Mime Data is a module which contains the base MIME
3744 and Application database for GNOME. The data stored by this module is
3745 designed to be accessed through the MIME functions in GnomeVFS.")
3746 (license license:gpl2+)))
3747
3748
3749 (define-public gnome-vfs
3750 (package
3751 (name "gnome-vfs")
3752 (version "2.24.4")
3753 (source (origin
3754 (method url-fetch)
3755 (uri (string-append "mirror://gnome/sources/" name "/"
3756 (version-major+minor version) "/"
3757 name "-" version ".tar.bz2"))
3758 (sha256
3759 (base32
3760 "1ajg8jb8k3snxc7rrgczlh8daxkjidmcv3zr9w809sq4p2sn9pk2"))))
3761 (build-system gnu-build-system)
3762 (arguments
3763 `(#:phases
3764 (modify-phases %standard-phases
3765 (add-before 'configure 'ignore-deprecations
3766 (lambda _
3767 (substitute* '("libgnomevfs/Makefile.in"
3768 "daemon/Makefile.in")
3769 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3770 #t))
3771 (add-before 'configure 'patch-test-async-cancel-to-never-fail
3772 (lambda _
3773 (substitute* "test/test-async-cancel.c"
3774 (("EXIT_FAILURE") "77"))
3775 #t)))))
3776 (inputs `(("libxml2" ,libxml2)
3777 ("dbus-glib" ,dbus-glib)
3778 ("gconf" ,gconf)
3779 ("gnome-mime-data" ,gnome-mime-data)
3780 ("zlib" ,zlib)))
3781 (native-inputs
3782 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3783 ("intltool" ,intltool)
3784 ("pkg-config" ,pkg-config)))
3785 (home-page "https://developer.gnome.org/gnome-vfs/")
3786 (synopsis "Access files and folders in GNOME applications")
3787 (description
3788 "GnomeVFS is the core library used to access files and folders in GNOME
3789 applications. It provides a file system abstraction which allows applications
3790 to access local and remote files with a single consistent API.")
3791 (license license:lgpl2.0+)))
3792
3793
3794
3795 (define-public libgnome
3796 (package
3797 (name "libgnome")
3798 (version "2.32.1")
3799 (source (origin
3800 (method url-fetch)
3801 (uri (string-append "mirror://gnome/sources/" name "/"
3802 (version-major+minor version) "/"
3803 name "-" version ".tar.bz2"))
3804 (sha256
3805 (base32
3806 "197pnq8y0knqjhm2fg4j6hbqqm3qfzfnd0irhwxpk1b4hqb3kimj"))
3807 (patches (search-patches "libgnome-encoding.patch"))))
3808 (build-system gnu-build-system)
3809 (arguments
3810 `(#:phases
3811 (modify-phases %standard-phases
3812 (add-before 'configure 'enable-deprecated
3813 (lambda _
3814 (substitute* "libgnome/Makefile.in"
3815 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3816 #t)))))
3817 (inputs `(("libxml2" ,libxml2)))
3818 (native-inputs
3819 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3820 ("intltool" ,intltool)
3821 ("pkg-config" ,pkg-config)))
3822 ;; The following are listed as Required in the .pc file
3823 ;; (except for libcanberra -- which seems to be oversight on the part
3824 ;; of the upstream developers -- anything that links against libgnome,
3825 ;; must also link against libcanberra
3826 (propagated-inputs
3827 `(("libcanberra" ,libcanberra)
3828 ("libbonobo" ,libbonobo)
3829 ("gconf" ,gconf)
3830 ("gnome-vfs" ,gnome-vfs)
3831 ("popt" ,popt))) ;gnome-program.h includes popt.h
3832 (home-page "https://developer.gnome.org/libgnome/")
3833 (synopsis "Useful routines for building applications")
3834 (description "The libgnome library provides a number of useful routines
3835 for building modern applications, including session management, activation of
3836 files and URIs, and displaying help.")
3837 (license license:lgpl2.0+)))
3838
3839
3840 (define-public libart-lgpl
3841 (package
3842 (name "libart-lgpl")
3843 (version "2.3.21")
3844 (source (origin
3845 (method url-fetch)
3846 (uri (let ((upstream-name "libart_lgpl"))
3847 (string-append "mirror://gnome/sources/" upstream-name "/"
3848 (version-major+minor version) "/"
3849 upstream-name "-" version ".tar.bz2")))
3850 (sha256
3851 (base32
3852 "1yknfkyzgz9s616is0l9gp5aray0f2ry4dw533jgzj8gq5s1xhgx"))))
3853 (build-system gnu-build-system)
3854 (native-inputs
3855 `(("pkg-config" ,pkg-config)))
3856 (home-page "https://people.gnome.org/~mathieu/libart")
3857 (synopsis "2D drawing library")
3858 (description "Libart is a 2D drawing library intended as a
3859 high-quality vector-based 2D library with antialiasing and alpha composition.")
3860 (license license:lgpl2.0+)))
3861
3862
3863
3864 (define-public libgnomecanvas
3865 (package
3866 (name "libgnomecanvas")
3867 (version "2.30.3")
3868 (source (origin
3869 (method url-fetch)
3870 (uri (string-append "mirror://gnome/sources/" name "/"
3871 (version-major+minor version) "/"
3872 name "-" version ".tar.gz"))
3873 (sha256
3874 (base32
3875 "1nhnq4lfkk8ljkdafscwaggx0h95mq0rxnd7zgqyq0xb6kkqbjm8"))))
3876 (build-system gnu-build-system)
3877 ;; Mentioned as Required in the .pc file
3878 (propagated-inputs `(("libart-lgpl" ,libart-lgpl)
3879 ("gtk+" ,gtk+-2)))
3880 (native-inputs
3881 `(("intltool" ,intltool)
3882 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3883 ("pkg-config" ,pkg-config)))
3884 (home-page "https://developer.gnome.org/libgnomecanvas/")
3885 (synopsis "Flexible widget for creating interactive structured graphics")
3886 (description "The GnomeCanvas widget provides a flexible widget for
3887 creating interactive structured graphics.")
3888 (license license:lgpl2.0+)))
3889
3890 (define-public libgnomecanvasmm
3891 (package
3892 (name "libgnomecanvasmm")
3893 (version "2.26.0")
3894 (source (origin
3895 (method url-fetch)
3896 (uri (string-append "mirror://gnome/sources/" name "/"
3897 (version-major+minor version) "/"
3898 name "-" version ".tar.bz2"))
3899 (sha256
3900 (base32
3901 "0679hcnpam2gkag2i63sm0wdm35gwvzafnz1354mg6j5gzwpfrcr"))))
3902 (build-system gnu-build-system)
3903 (propagated-inputs `(("libgnomecanvas" ,libgnomecanvas)))
3904 (native-inputs
3905 `(("gtkmm-2" ,gtkmm-2)
3906 ("pkg-config" ,pkg-config)))
3907 (home-page "https://gtkmm.org")
3908 (synopsis "C++ bindings to the GNOME Canvas library")
3909 (description "C++ bindings to the GNOME Canvas library.")
3910 (license license:lgpl2.0+)))
3911
3912 (define-public libgnomeui
3913 (package
3914 (name "libgnomeui")
3915 (version "2.24.5")
3916 (source (origin
3917 (method url-fetch)
3918 (uri (string-append "mirror://gnome/sources/" name "/"
3919 (version-major+minor version) "/"
3920 name "-" version ".tar.bz2"))
3921 (patches (search-patches "libgnomeui-utf8.patch"))
3922 (sha256
3923 (base32
3924 "03rwbli76crkjl6gp422wrc9lqpl174k56cp9i96b7l8jlj2yddf"))))
3925 (build-system gnu-build-system)
3926 ;; Mentioned as Required in the .pc file
3927 (propagated-inputs `(("libbonoboui" ,libbonoboui)
3928 ("libgnome" ,libgnome)
3929 ("libgnomecanvas" ,libgnomecanvas)
3930 ("libgnome-keyring" ,libgnome-keyring)))
3931 (inputs `(("libjpeg" ,libjpeg-turbo)
3932 ("popt" ,popt)
3933 ("libbonobo" ,libbonobo)
3934 ("libxml2" ,libxml2)
3935 ("libglade" ,libglade)))
3936 (native-inputs
3937 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3938 ("intltool" ,intltool)
3939 ("pkg-config" ,pkg-config)))
3940 (home-page "https://developer.gnome.org/libgnomeui/")
3941 (synopsis "Additional widgets for applications")
3942 (description "The libgnomeui library provides additional widgets for
3943 applications. Many of the widgets from libgnomeui have already been
3944 ported to GTK+.")
3945 (license license:lgpl2.0+)))
3946
3947 (define-public libglade
3948 (package
3949 (name "libglade")
3950 (version "2.6.4")
3951 (source (origin
3952 (method url-fetch)
3953 (uri (string-append "mirror://gnome/sources/" name "/"
3954 (version-major+minor version) "/"
3955 name "-" version ".tar.bz2"))
3956 (sha256
3957 (base32
3958 "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4"))))
3959 (build-system gnu-build-system)
3960 (inputs
3961 `(("python" ,python))) ;; needed for the optional libglade-convert program
3962 (propagated-inputs
3963 `(("gtk+-2" ,gtk+-2)
3964 ("libxml2" ,libxml2))) ; required by libglade-2.0.pc
3965 (native-inputs
3966 `(("pkg-config" ,pkg-config)))
3967 (home-page "https://developer.gnome.org/libglade")
3968 (synopsis "Load glade interfaces and access the glade built widgets")
3969 (description "Libglade is a library that provides interfaces for loading
3970 graphical interfaces described in glade files and for accessing the
3971 widgets built in the loading process.")
3972 (license license:gpl2+))) ; This is correct. GPL not LGPL
3973
3974 (define-public libgnomeprint
3975 ;; This library has been deprecated since 2006; see
3976 ;; <https://mail.gnome.org/archives/devel-announce-list/2006-August/msg00005.html>.
3977 (package
3978 (name "libgnomeprint")
3979 (version "2.18.8")
3980 (source (origin
3981 (method url-fetch)
3982 (uri (string-append "mirror://gnome/sources/" name "/"
3983 (version-major+minor version) "/"
3984 name "-" version ".tar.bz2"))
3985 (sha256
3986 (base32
3987 "14cnimvlc7ky22g2snyf4362412k3jk1syjf8b9887q5a63fqd0h"))))
3988 (build-system gnu-build-system)
3989 (inputs
3990 `(("popt" ,popt)
3991 ("libart-lgpl" ,libart-lgpl)
3992 ("gtk+" ,gtk+-2)
3993 ("libxml2" ,libxml2)))
3994 (native-inputs
3995 `(("intltool" ,intltool)
3996 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3997 ("pkg-config" ,pkg-config)))
3998 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
3999 (synopsis "Printing framework for GNOME")
4000 (description
4001 "GNOME-print was a printing framework for GNOME. It has been deprecated
4002 since ca. 2006, when GTK+ itself incorporated printing support.")
4003 (license license:lgpl2.0+)))
4004
4005
4006 (define-public libgnomeprintui
4007 ;; Deprecated; see libgnomeprint.
4008 (package
4009 (name "libgnomeprintui")
4010 (version "2.18.6")
4011 (source (origin
4012 (method url-fetch)
4013 (uri (string-append "mirror://gnome/sources/" name "/"
4014 (version-major+minor version) "/"
4015 name "-" version ".tar.bz2"))
4016 (sha256
4017 (base32
4018 "0spl8vinb5n6n1krnfnr61dwaxidg67h8j94z9p59k2xdsvfashm"))))
4019 (build-system gnu-build-system)
4020 ;; Mentioned as Required in the .pc file
4021 (propagated-inputs `(("libgnomeprint" ,libgnomeprint)))
4022 (inputs `(("gtk+" ,gtk+-2)
4023 ("glib" ,glib)
4024 ("gnome-icon-theme" ,gnome-icon-theme)
4025 ("libgnomecanvas" ,libgnomecanvas)
4026 ("libxml2" ,libxml2)))
4027 (native-inputs
4028 `(("intltool" ,intltool)
4029 ("pkg-config" ,pkg-config)))
4030 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
4031 (synopsis "Printing framework for GNOME")
4032 (description (package-description libgnomeprint))
4033 (license license:lgpl2.0+)))
4034
4035 (define-public libbonoboui
4036 (package
4037 (name "libbonoboui")
4038 (version "2.24.5")
4039 (source (origin
4040 (method url-fetch)
4041 (uri (string-append "mirror://gnome/sources/" name "/"
4042 (version-major+minor version) "/"
4043 name "-" version ".tar.bz2"))
4044 (sha256
4045 (base32
4046 "1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
4047 (build-system gnu-build-system)
4048 (arguments
4049 `(#:phases
4050 (modify-phases %standard-phases
4051 (add-before 'check 'start-xserver
4052 (lambda* (#:key inputs #:allow-other-keys)
4053 (let ((xorg-server (assoc-ref inputs "xorg-server"))
4054 (disp ":1"))
4055
4056 (setenv "HOME" (getcwd))
4057 (setenv "DISPLAY" disp)
4058 ;; There must be a running X server and make check doesn't start one.
4059 ;; Therefore we must do it.
4060 (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))))))
4061 ;; Mentioned as Required by the .pc file
4062 (propagated-inputs `(("libxml2" ,libxml2)))
4063 (inputs
4064 `(("popt" ,popt)
4065 ("pangox-compat" ,pangox-compat)
4066 ("libgnome" ,libgnome)
4067 ("libgnomecanvas" ,libgnomecanvas)
4068 ("libglade" ,libglade)))
4069 (native-inputs
4070 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
4071 ("intltool" ,intltool)
4072 ("xorg-server" ,xorg-server-for-tests) ; For running the tests
4073 ("pkg-config" ,pkg-config)))
4074 (home-page "https://developer.gnome.org/libbonoboui/")
4075 (synopsis "Some user interface controls using Bonobo")
4076 (description "The Bonobo UI library provides a number of user interface
4077 controls using the Bonobo component framework.")
4078 (license license:lgpl2.0+)))
4079
4080 (define-public libwnck
4081 (package
4082 (name "libwnck")
4083 (version "3.32.0")
4084 (source (origin
4085 (method url-fetch)
4086 (uri (string-append "mirror://gnome/sources/" name "/"
4087 (version-major+minor version) "/"
4088 name "-" version ".tar.xz"))
4089 (sha256
4090 (base32
4091 "1jp3p1lnwnwi6fxl2rz3166cmwzwy9vqz896anpwc3wdy9f875cm"))))
4092 (build-system meson-build-system)
4093 (native-inputs
4094 `(("pkg-config" ,pkg-config)
4095 ("glib" ,glib "bin") ; for glib-mkenums
4096 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
4097 ("intltool" ,intltool)))
4098 (propagated-inputs
4099 `(("gtk+" ,gtk+)
4100 ("libxres" ,libxres)
4101 ("startup-notification" ,startup-notification)))
4102 (home-page "https://developer.gnome.org/libwnck/")
4103 (synopsis "Window Navigator Construction Kit")
4104 (description
4105 "Libwnck is the Window Navigator Construction Kit, a library for use in
4106 writing pagers, tasklists, and more generally applications that are dealing
4107 with window management. It tries hard to respect the Extended Window Manager
4108 Hints specification (EWMH).")
4109 (license license:lgpl2.0+)))
4110
4111 ;; stable version for gtk2, required by xfwm4.
4112 (define-public libwnck-2
4113 (package (inherit libwnck)
4114 (name "libwnck")
4115 (version "2.30.7")
4116 (source (origin
4117 (method url-fetch)
4118 (uri (string-append "mirror://gnome/sources/" name "/"
4119 (version-major+minor version) "/"
4120 name "-" version ".tar.xz"))
4121 (sha256
4122 (base32
4123 "15713yl0f8f3p99jzqqfmbicrdswd3vwpx7r3bkf1bgh6d9lvs4b"))))
4124 (build-system gnu-build-system)
4125 (native-inputs
4126 `(("pkg-config" ,pkg-config)
4127 ("intltool" ,intltool)))
4128 (propagated-inputs
4129 `(("gtk+" ,gtk+-2)
4130 ("libxres" ,libxres)
4131 ("startup-notification" ,startup-notification)))))
4132
4133 (define-public goffice
4134 (package
4135 (name "goffice")
4136 (version "0.10.48")
4137 (source (origin
4138 (method url-fetch)
4139 (uri (string-append "mirror://gnome/sources/goffice/"
4140 (version-major+minor version) "/"
4141 "goffice-" version ".tar.xz"))
4142 (sha256
4143 (base32 "1z6f3q8fxkd1ysqrwdxdi0844zqa00vjpf07gq8mh3kal8picfd4"))))
4144 (build-system gnu-build-system)
4145 (outputs '("out"
4146 "doc")) ; 4.0 MiB of gtk-doc
4147 (arguments
4148 '(#:configure-flags (list (string-append "--with-html-dir="
4149 (assoc-ref %outputs "doc")
4150 "/share/gtk-doc/html"))))
4151 (inputs
4152 `(("gtk+" ,gtk+)
4153 ("libgsf" ,libgsf)
4154 ("librsvg" ,librsvg)
4155 ("libxslt" ,libxslt)
4156 ("libxml2" ,libxml2)))
4157 (native-inputs
4158 `(("intltool" ,intltool)
4159 ("glib" ,glib "bin")
4160 ("pkg-config" ,pkg-config)))
4161 (home-page "https://developer.gnome.org/goffice/")
4162 (synopsis "Document-centric objects and utilities")
4163 (description "A GLib/GTK+ set of document-centric objects and utilities.")
4164 (license
4165 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
4166 ;; Note: NOT LGPL
4167 (list license:gpl2 license:gpl3))))
4168
4169 (define-public goffice-0.8
4170 (package (inherit goffice)
4171 (version "0.8.17")
4172 (source (origin
4173 (method url-fetch)
4174 (uri (string-append "mirror://gnome/sources/" (package-name goffice) "/"
4175 (version-major+minor version) "/"
4176 (package-name goffice) "-" version ".tar.xz"))
4177 (sha256
4178 (base32 "05fvzbs5bin05bbsr4dp79aiva3lnq0a3a40zq55i13vnsz70l0n"))))
4179 (arguments
4180 `(#:phases
4181 (modify-phases %standard-phases
4182 (add-after 'unpack 'fix-pcre-check
4183 (lambda _
4184 ;; Only glib.h can be included directly. See
4185 ;; https://bugzilla.gnome.org/show_bug.cgi?id=670316
4186 (substitute* "configure"
4187 (("glib/gregex\\.h") "glib.h")) #t)))
4188
4189 ,@(package-arguments goffice)))
4190 (propagated-inputs
4191 ;; libgoffice-0.8.pc mentions libgsf-1
4192 `(("libgsf" ,libgsf)))
4193 (inputs
4194 `(("gtk" ,gtk+-2)
4195 ,@(alist-delete "gtk" (package-inputs goffice))))))
4196
4197 (define-public gnumeric
4198 (package
4199 (name "gnumeric")
4200 (version "1.12.48")
4201 (source (origin
4202 (method url-fetch)
4203 (uri (string-append "mirror://gnome/sources/gnumeric/"
4204 (version-major+minor version) "/"
4205 "gnumeric-" version ".tar.xz"))
4206 (sha256
4207 (base32
4208 "14556b0vyxdvdwjlin0rv7jk0vq4nplbmvp9j89bhkfk84xf7k2p"))))
4209 (build-system glib-or-gtk-build-system)
4210 (arguments
4211 `(;; The gnumeric developers don't worry much about failing tests.
4212 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
4213 #:tests? #f
4214 #:phases
4215 (modify-phases %standard-phases
4216 (add-before
4217 'configure 'pre-conf
4218 (lambda* (#:key outputs #:allow-other-keys)
4219 ;; Make install tries to write into the directory of goffice
4220 ;; I am informed that this only affects the possibility to embed a
4221 ;; spreadsheet inside an Abiword document. So presumably when we
4222 ;; package Abiword we'll have to refer it to this directory.
4223 (substitute* "configure"
4224 (("^GOFFICE_PLUGINS_DIR=.*")
4225 (string-append "GOFFICE_PLUGINS_DIR="
4226 (assoc-ref outputs "out")
4227 "/goffice/plugins"))))))))
4228 (inputs
4229 `(("glib" ,glib)
4230 ("gtk+" ,gtk+)
4231 ("goffice" ,goffice)
4232 ("libgsf" ,libgsf)
4233 ("librsvg" ,librsvg)
4234 ("libxml2" ,libxml2)
4235 ("libxslt" ,libxslt)
4236 ("python" ,python)
4237 ("python-pygobject" ,python-pygobject)
4238 ("zlib" ,zlib)))
4239 (native-inputs
4240 `(("bison" ,bison)
4241 ("docbook-xml" ,docbook-xml)
4242 ("intltool" ,intltool)
4243 ("itstool" ,itstool)
4244 ("glib:bin" ,glib "bin")
4245 ("pkg-config" ,pkg-config)))
4246 (home-page "http://www.gnumeric.org")
4247 (synopsis "Spreadsheet application")
4248 (description
4249 "GNUmeric is a GNU spreadsheet application, running under GNOME. It is
4250 interoperable with other spreadsheet applications. It has a vast array of
4251 features beyond typical spreadsheet functionality, such as support for linear
4252 and non-linear solvers, statistical analysis, and telecommunication
4253 engineering.")
4254 (license
4255 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
4256 (list license:gpl2 license:gpl3))))
4257
4258 (define-public gnome-themes-standard
4259 (package
4260 (name "gnome-themes-standard")
4261 (version "3.22.3")
4262 (source
4263 (origin
4264 (method url-fetch)
4265 (uri (string-append "mirror://gnome/sources/" name "/"
4266 (version-major+minor version) "/" name "-"
4267 version ".tar.xz"))
4268 (sha256
4269 (base32
4270 "0smmiamrgcgf5sa88bsn8hwmvsyx4gczzs359nwxbkv14b2qgp31"))))
4271 (build-system gnu-build-system)
4272 (arguments
4273 '(#:configure-flags
4274 ;; Don't create 'icon-theme.cache'.
4275 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
4276 (true (string-append coreutils "/bin/true")))
4277 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
4278 (inputs
4279 `(("gtk+" ,gtk+)
4280 ("gtk+-2" ,gtk+-2)
4281 ("librsvg" ,librsvg)
4282 ("libxml2" ,libxml2)
4283 ("glib" ,glib)))
4284 (native-inputs
4285 `(("intltool" ,intltool)
4286 ("glib:bin" ,glib "bin")
4287 ("pkg-config" ,pkg-config)))
4288 (home-page "https://launchpad.net/gnome-themes-standard")
4289 (synopsis "Default GNOME 3 themes")
4290 (description
4291 "The default GNOME 3 themes (Adwaita and some accessibility themes).")
4292 (license license:lgpl2.1+)))
4293
4294 (define-public seahorse
4295 (package
4296 (name "seahorse")
4297 (version "3.36.2")
4298 (source
4299 (origin
4300 (method url-fetch)
4301 (uri (string-append "mirror://gnome/sources/" name "/"
4302 (version-major+minor version) "/" name "-"
4303 version ".tar.xz"))
4304 (sha256
4305 (base32 "16wmxxppgcgfj8zkagcny5af1c81x32ysm9d6j9f2k7bmik21ss5"))))
4306 (build-system meson-build-system)
4307 (arguments
4308 '(#:glib-or-gtk? #t
4309 #:phases
4310 (modify-phases %standard-phases
4311 (add-after 'unpack 'skip-gtk-update-icon-cache
4312 ;; Don't create 'icon-theme.cache'.
4313 (lambda _
4314 (substitute* "build-aux/meson_post_install.py"
4315 (("gtk-update-icon-cache") "true"))
4316 #t)))))
4317 (inputs
4318 `(("gtk+" ,gtk+)
4319 ("gcr" ,gcr)
4320 ("gnupg" ,gnupg)
4321 ("gpgme" ,gpgme)
4322 ("openldap" ,openldap)
4323 ("openssh" ,openssh)
4324 ("avahi" ,avahi)
4325 ("libhandy" ,libhandy-0.0)
4326 ("libpwquality" ,libpwquality)
4327 ("libsecret" ,libsecret)
4328 ("libsoup" ,libsoup)))
4329 (native-inputs
4330 `(("gettext" ,gettext-minimal)
4331 ("glib:bin" ,glib "bin")
4332 ("itstool" ,itstool)
4333 ("pkg-config" ,pkg-config)
4334 ("vala" ,vala)
4335 ("xmllint" ,libxml2)))
4336 (home-page "https://wiki.gnome.org/Apps/Seahorse")
4337 (synopsis "Manage encryption keys and passwords in the GNOME keyring")
4338 (description
4339 "Seahorse is a GNOME application for managing encryption keys and
4340 passwords in the GNOME keyring.")
4341 (license license:gpl2+)))
4342
4343 (define-public vala
4344 (package
4345 (name "vala")
4346 (version "0.46.5")
4347 (source (origin
4348 (method url-fetch)
4349 (uri (string-append "mirror://gnome/sources/" name "/"
4350 (version-major+minor version) "/"
4351 name "-" version ".tar.xz"))
4352 (sha256
4353 (base32
4354 "07fv895sp9wq74b20qig7hic0r4ynrr5pfaqba02r44xb794fy0s"))))
4355 (build-system gnu-build-system)
4356 (arguments
4357 '(#:phases
4358 (modify-phases %standard-phases
4359 (add-before 'check 'pre-check
4360 (lambda _
4361 (setenv "CC" "gcc")
4362 (substitute* "valadoc/tests/testrunner.sh"
4363 (("export PKG_CONFIG_PATH=" m)
4364 (string-append m "$PKG_CONFIG_PATH:")))
4365 ;; For missing '/etc/machine-id'.
4366 (setenv "DBUS_FATAL_WARNINGS" "0")
4367 #t)))))
4368 (native-inputs
4369 `(("pkg-config" ,pkg-config)
4370 ("flex" ,flex)
4371 ("bison" ,bison)
4372 ("xsltproc" ,libxslt)
4373 ("dbus" ,dbus) ; for dbus tests
4374 ("gobject-introspection" ,gobject-introspection))) ; for gir tests
4375 (inputs
4376 `(("graphviz" ,graphviz)))
4377 (propagated-inputs
4378 `(("glib" ,glib))) ; required by libvala-0.40.pc
4379 (home-page "https://wiki.gnome.org/Projects/Vala/")
4380 (synopsis "Compiler for the GObject type system")
4381 (description
4382 "Vala is a programming language that aims to bring modern programming
4383 language features to GNOME developers without imposing any additional runtime
4384 requirements and without using a different ABI compared to applications and
4385 libraries written in C.")
4386 (license license:lgpl2.1+)))
4387
4388 (define-public vala-0.50
4389 (package
4390 (inherit vala)
4391 (version "0.50.2")
4392 (source (origin
4393 (method url-fetch)
4394 (uri (string-append "mirror://gnome/sources/vala/"
4395 (version-major+minor version) "/"
4396 "vala-" version ".tar.xz"))
4397 (sha256
4398 (base32
4399 "1nnf0x6vk0a9p2y6z7jwjfvmlxh3qhj581v381r0y1sxsv35s39c"))))))
4400
4401 (define-public vte
4402 (package
4403 (name "vte")
4404 (version "0.60.3")
4405 (source (origin
4406 (method url-fetch)
4407 (uri (string-append "mirror://gnome/sources/vte/"
4408 (version-major+minor version) "/"
4409 "vte-" version ".tar.xz"))
4410 (sha256
4411 (base32
4412 "0al2v6fn061v4j1wwvppim1q283y2a6s0iyl29hxhmx3h48nxdzy"))))
4413 (build-system meson-build-system)
4414 (arguments
4415 `(#:configure-flags
4416 '("-Dvapi=true"
4417 "-D_systemd=false")))
4418 (native-inputs
4419 `(("pkg-config" ,pkg-config)
4420 ("gettext" ,gettext-minimal)
4421 ("vala" ,vala)
4422 ("gobject-introspection" ,gobject-introspection)
4423 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
4424 ("gperf" ,gperf)
4425 ("xmllint" ,libxml2)))
4426 (propagated-inputs
4427 `(("gtk+" ,gtk+) ; required by vte-2.91.pc
4428 ("gnutls" ,gnutls) ; ditto
4429 ("pcre2" ,pcre2))) ; ditto
4430 (home-page "https://www.gnome.org/")
4431 (synopsis "Virtual Terminal Emulator")
4432 (description
4433 "VTE is a library (libvte) implementing a terminal emulator widget for
4434 GTK+, and a minimal sample application (vte) using that. Vte is mainly used in
4435 gnome-terminal, but can also be used to embed a console/terminal in games,
4436 editors, IDEs, etc.")
4437 (license license:lgpl2.1+)))
4438
4439 (define-public vte-ng
4440 (package
4441 (inherit vte)
4442 (name "vte-ng")
4443 (version "0.58.2.a")
4444 (home-page "https://github.com/thestinger/vte-ng")
4445 (source (origin
4446 (method git-fetch)
4447 (uri (git-reference (url home-page) (commit version)))
4448 (file-name (git-file-name name version))
4449 (sha256
4450 (base32
4451 "0rnm5c6m3abbm81jsfdas0y80z299ny54gr4syn4bfrms3s4g19l"))))
4452 (build-system meson-build-system)
4453 (native-inputs
4454 `(("gtk-doc" ,gtk-doc)
4455 ,@(package-native-inputs vte)))
4456 (arguments
4457 `(#:configure-flags '("-Ddocs=true")))
4458 (synopsis "Enhanced VTE terminal widget")
4459 (description
4460 "VTE is a library (libvte) implementing a terminal emulator widget for
4461 GTK+, this fork provides additional functions exposed for keyboard text
4462 selection and URL hints.")))
4463
4464 ;; Stable version for gtk2, required by gnurobots and lxterminal as of 2020-07.
4465 (define-public vte/gtk+-2
4466 (package (inherit vte)
4467 (name "vte")
4468 (version "0.28.2")
4469 (source (origin
4470 (method url-fetch)
4471 (uri (string-append "mirror://gnome/sources/" name "/"
4472 (version-major+minor version) "/"
4473 name "-" version ".tar.xz"))
4474 (sha256
4475 (base32
4476 "1bmhahkf8wdsra9whd3k5l5z4rv7r58ksr8mshzajgq2ma0hpkw6"))
4477 (patches (search-patches
4478 "vte-CVE-2012-2738-pt1.patch"
4479 "vte-CVE-2012-2738-pt2.patch"))))
4480 (build-system gnu-build-system)
4481 (arguments
4482 '(#:configure-flags '("--disable-python")))
4483 (native-inputs
4484 `(("pkg-config" ,pkg-config)
4485 ("intltool" ,intltool)
4486 ("glib" ,glib "bin"))) ; for glib-genmarshal, etc.
4487 (propagated-inputs
4488 `(("gtk+" ,gtk+-2) ; required by libvte.pc
4489 ("ncurses" ,ncurses))))) ; required by libvte.la
4490
4491 (define-public vinagre
4492 (package
4493 (name "vinagre")
4494 (version "3.22.0")
4495 (source (origin
4496 (method url-fetch)
4497 (uri (string-append "mirror://gnome/sources/" name "/"
4498 (version-major+minor version) "/"
4499 name "-" version ".tar.xz"))
4500 (patches (search-patches "vinagre-newer-freerdp.patch"
4501 "vinagre-newer-rdp-parameters.patch"))
4502 (sha256
4503 (base32
4504 "10jya3jyrm18nbw3v410gbkc7677bqamax44pzgd3j15randn76d"))))
4505 (build-system glib-or-gtk-build-system)
4506 (arguments
4507 ;; Disable -Werror and such, to avoid build failures on compilation
4508 ;; warnings.
4509 '(#:configure-flags '("--enable-compile-warnings=minimum")
4510 #:phases
4511 (modify-phases %standard-phases
4512 (add-before 'install 'skip-gtk-update-icon-cache
4513 (lambda _
4514 ;; Don't create 'icon-theme.cache'
4515 (substitute* (find-files "." "^Makefile$")
4516 (("gtk-update-icon-cache") (which "true")))
4517 #t))
4518 (add-after 'unpack 'patch-configure
4519 (lambda _
4520 (substitute* "configure"
4521 (("freerdp") "freerdp2"))
4522 #t)))))
4523 (native-inputs
4524 `(("pkg-config" ,pkg-config)
4525 ("intltool" ,intltool)
4526 ("itstool" ,itstool)
4527 ("glib-bin" ,glib "bin"))) ;for glib-compile-schemas
4528 (inputs
4529 `(("libxml2" ,libxml2)
4530 ("gtk-vnc" ,gtk-vnc)
4531 ("gnome-keyring" ,gnome-keyring)
4532 ("libsecret" ,libsecret)
4533 ("freerdp" ,freerdp)
4534 ("spice" ,spice)
4535 ("spice-gtk" ,spice-gtk)
4536 ("telepathy-glib" ,telepathy-glib)
4537 ("vte" ,vte)))
4538 (home-page "https://wiki.gnome.org/Apps/Vinagre")
4539 (synopsis "Remote desktop viewer for GNOME")
4540 (description "Vinagre is a remote display client supporting the VNC, SPICE
4541 and RDP protocols.")
4542 (license license:gpl3+)))
4543
4544 (define-public dconf
4545 (package
4546 (name "dconf")
4547 (version "0.36.0")
4548 (source (origin
4549 (method url-fetch)
4550 (uri (string-append
4551 "mirror://gnome/sources/" name "/"
4552 (version-major+minor version) "/"
4553 name "-" version ".tar.xz"))
4554 (sha256
4555 (base32
4556 "0bfs069pjv6lhp7xrzmrhz3876ay2ryqxzc6mlva1hhz34ibprlz"))))
4557 (build-system meson-build-system)
4558 (propagated-inputs
4559 ;; In Requires of dconf.pc.
4560 `(("glib" ,glib)))
4561 (inputs
4562 `(("gtk+" ,gtk+)
4563 ("dbus" ,dbus)))
4564 (native-inputs
4565 `(("bash-completion" ,bash-completion)
4566 ("libxslt" ,libxslt) ;for xsltproc
4567 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
4568 ("docbook-xml" ,docbook-xml-4.2)
4569 ("docbook-xsl" ,docbook-xsl)
4570 ("glib:bin" ,glib "bin")
4571 ("gtk-doc" ,gtk-doc)
4572 ("pkg-config" ,pkg-config)
4573 ("vala" ,vala)))
4574 (arguments
4575 `(#:glib-or-gtk? #t
4576 #:configure-flags '("-Denable-gtk-doc=true")
4577 #:phases (modify-phases %standard-phases
4578 (add-after 'unpack 'increase-test-timeout
4579 (lambda _
4580 ;; On big-memory systems, the engine test may take
4581 ;; much longer than the default of 30 seconds.
4582 (substitute* "tests/meson.build"
4583 (("test\\(unit_test\\[0\\], exe" all)
4584 (string-append all ", timeout : 90")))
4585 #t)))))
4586 (home-page "https://developer.gnome.org/dconf/")
4587 (synopsis "Low-level GNOME configuration system")
4588 (description "Dconf is a low-level configuration system. Its main purpose
4589 is to provide a backend to GSettings on platforms that don't already have
4590 configuration storage systems.")
4591 (license license:lgpl2.1+)))
4592
4593 (define-public json-glib
4594 (package
4595 (name "json-glib")
4596 (version "1.4.4")
4597 (source (origin
4598 (method url-fetch)
4599 (uri (string-append "mirror://gnome/sources/" name "/"
4600 (version-major+minor version) "/"
4601 name "-" version ".tar.xz"))
4602 (sha256
4603 (base32
4604 "0ixwyis47v5bkx6h8a1iqlw3638cxcv57ivxv4gw2gaig51my33j"))))
4605 (build-system meson-build-system)
4606 (native-inputs
4607 `(("gettext" ,gettext-minimal)
4608 ("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
4609 ("gobject-introspection" ,gobject-introspection)
4610 ("pkg-config" ,pkg-config)))
4611 (propagated-inputs
4612 `(("glib" ,glib))) ;according to json-glib-1.0.pc
4613 (home-page "https://wiki.gnome.org/Projects/JsonGlib")
4614 (synopsis "Compiler for the GObject type system")
4615 (description
4616 "JSON-GLib is a C library based on GLib providing serialization and
4617 deserialization support for the JavaScript Object Notation (JSON) format
4618 described by RFC 4627. It provides parser and generator GObject classes and
4619 various wrappers for the complex data types employed by JSON, such as arrays
4620 and objects.")
4621 (license license:lgpl2.1+)))
4622
4623 (define-public libxklavier
4624 (package
4625 (name "libxklavier")
4626 (version "5.4")
4627 (source (origin
4628 ;; Note: There's no tarball at ftp.gnome.org for this version.
4629 (method git-fetch)
4630 (uri (git-reference
4631 (url "https://anongit.freedesktop.org/git/libxklavier")
4632 (commit (string-append "libxklavier-" version))))
4633 (sha256
4634 (base32
4635 "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a"))
4636 (file-name (git-file-name name version))))
4637 (build-system gnu-build-system)
4638 (arguments
4639 '(#:configure-flags
4640 (list (string-append "--with-xkb-base="
4641 (assoc-ref %build-inputs "xkeyboard-config")
4642 "/share/X11/xkb")
4643 "--disable-xmodmap-support")))
4644 (native-inputs
4645 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
4646 ("gobject-introspection" ,gobject-introspection)
4647 ("pkg-config" ,pkg-config)
4648 ("gtk-doc" ,gtk-doc)
4649 ("intltool" ,intltool)
4650 ("which" ,which)
4651 ("autoconf" ,autoconf)
4652 ("automake" ,automake)
4653 ("libtool" ,libtool)))
4654 (propagated-inputs
4655 ;; Required by libxklavier.pc.
4656 `(("glib" ,glib)
4657 ("libxml2" ,libxml2)))
4658 (inputs
4659 `(("iso-codes" ,iso-codes)
4660 ("libxi" ,libxi)
4661 ("libxkbfile" ,libxkbfile)
4662 ("xkbcomp" ,xkbcomp)
4663 ("xkeyboard-config" ,xkeyboard-config)))
4664 (home-page "https://www.freedesktop.org/wiki/Software/LibXklavier/")
4665 (synopsis "High-level API for X Keyboard Extension")
4666 (description
4667 "LibXklavier is a library providing high-level API for X Keyboard
4668 Extension known as XKB. This library is intended to support XFree86 and other
4669 commercial X servers. It is useful for creating XKB-related software (layout
4670 indicators etc).")
4671 (license license:lgpl2.0+)))
4672
4673 (define-public python2-rsvg
4674 ;; XXX: This is actually a subset of gnome-python-desktop.
4675 (package
4676 (name "python2-rsvg")
4677 (version "2.32.0")
4678 (source
4679 (origin
4680 (method url-fetch)
4681 (uri (string-append
4682 "mirror://gnome/sources/gnome-python-desktop/2.32/gnome-python-desktop-"
4683 version ".tar.bz2"))
4684 (sha256
4685 (base32
4686 "1s8f9rns9v7qlwjv9qh9lr8crp88dpzfm45hj47zc3ivpy0dbnq9"))))
4687 (build-system gnu-build-system)
4688 (native-inputs
4689 `(("pkg-config" ,pkg-config)))
4690 (inputs
4691 `(("python" ,python-2)
4692 ("python2-pygtk" ,python2-pygtk)
4693 ("librsvg" ,librsvg)))
4694 (home-page "https://www.gnome.org")
4695 (synopsis "Python bindings to librsvg")
4696 (description
4697 "This package provides Python bindings to librsvg, the SVG rendering
4698 library.")
4699
4700 ;; This is the license of the rsvg bindings. The license of each module
4701 ;; of gnome-python-desktop is given in 'COPYING'.
4702 (license license:lgpl2.1+)))
4703
4704 (define-public glib-networking
4705 (package
4706 (name "glib-networking")
4707 (version "2.62.2")
4708 (source (origin
4709 (method url-fetch)
4710 (uri (string-append "mirror://gnome/sources/glib-networking/"
4711 (version-major+minor version) "/"
4712 "glib-networking-" version ".tar.xz"))
4713 (sha256
4714 (base32
4715 "0i2mw75297ql72h47vyvff3hqa0kcmqybblj52fqrarb0kfbhi06"))))
4716 (build-system meson-build-system)
4717 (arguments
4718 `(#:configure-flags '("-Dlibproxy_support=false")))
4719 (native-inputs
4720 `(("pkg-config" ,pkg-config)
4721 ("intltool" ,intltool)))
4722 (inputs
4723 `(("glib" ,glib)
4724 ("gnutls" ,gnutls)
4725 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
4726 (home-page "https://www.gnome.org")
4727 (synopsis "Network-related GIO modules")
4728 (description
4729 "This package contains various network related extensions for the GIO
4730 library.")
4731 (license license:lgpl2.0+)))
4732
4733 (define-public rest
4734 (package
4735 (name "rest")
4736 (version "0.8.1")
4737 (source (origin
4738 (method url-fetch)
4739 (uri (string-append "mirror://gnome/sources/rest/"
4740 (version-major+minor version) "/"
4741 name "-" version ".tar.xz"))
4742 (sha256
4743 (base32
4744 "1j81bgqmd55s5lxyaxcplym9n6xywcs1cm9wmvafsg2xiv9sl4q5"))))
4745 (build-system gnu-build-system)
4746 (arguments
4747 '(#:tests? #f ; tests require internet connection
4748 #:configure-flags
4749 '("--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt")))
4750 (native-inputs
4751 `(("glib-mkenums" ,glib "bin")
4752 ("gobject-introspection" ,gobject-introspection)
4753 ("pkg-config" ,pkg-config)))
4754 (propagated-inputs
4755 ;; rest-0.7.pc refers to all these.
4756 `(("glib" ,glib)
4757 ("libsoup" ,libsoup)
4758 ("libxml2" ,libxml2)))
4759 (home-page "https://www.gtk.org/")
4760 (synopsis "RESTful web api query library")
4761 (description
4762 "This library was designed to make it easier to access web services that
4763 claim to be \"RESTful\". It includes convenience wrappers for libsoup and
4764 libxml to ease remote use of the RESTful API.")
4765 (license license:lgpl2.1+)))
4766
4767 (define-public libsoup
4768 (package
4769 (name "libsoup")
4770 (version "2.72.0")
4771 (source (origin
4772 (method url-fetch)
4773 (uri (string-append "mirror://gnome/sources/libsoup/"
4774 (version-major+minor version) "/"
4775 "libsoup-" version ".tar.xz"))
4776 (sha256
4777 (base32
4778 "11skbyw2pw32178q3h8pi7xqa41b2x4k6q4k9f75zxmh8s23y30p"))))
4779 (build-system meson-build-system)
4780 (outputs '("out" "doc"))
4781 (arguments
4782 `(#:modules ((guix build utils)
4783 (guix build meson-build-system)
4784 (ice-9 popen))
4785
4786 #:configure-flags '("-Dgtk_doc=true")
4787 #:phases
4788 (modify-phases %standard-phases
4789 (add-after 'unpack 'patch-docbook-xml
4790 (lambda* (#:key inputs #:allow-other-keys)
4791 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
4792 "/xml/dtd/docbook")))
4793 (substitute* (find-files "docs/reference")
4794 (("http://.*/docbookx\\.dtd")
4795 (string-append xmldoc "/docbookx.dtd")))
4796 #t)))
4797 (add-after 'unpack 'adjust-tests
4798 (lambda _
4799 ;; This test fails due to missing /etc/nsswitch.conf
4800 ;; in the build environment.
4801 (substitute* "tests/socket-test.c"
4802 ((".*/sockets/unconnected.*") ""))
4803
4804 ;; These fail because "subdomain.localhost" does not resolve in
4805 ;; the build environment.
4806 (substitute* "tests/hsts-test.c"
4807 ((".*/hsts/basic.*") "")
4808 ((".*/hsts/subdomains.*") "")
4809 ((".*/hsts/superdomain.*") "")
4810 ((".*/hsts/utf8-address.*") ""))
4811 (substitute* "tests/hsts-db-test.c"
4812 ((".*/hsts-db/subdomains.*") ""))
4813
4814 ;; Generate a self-signed certificate that has "localhost" as its
4815 ;; 'dnsName'. Failing to do that, and starting with GnuTLS
4816 ;; 3.5.12, tests such as "ssl-tests" fail:
4817 ;;
4818 ;; ERROR:ssl-test.c:406:do_tls_interaction_test: Unexpected status 6 Unacceptable TLS certificate (expected 200 OK)
4819 ;;
4820 ;; 'certtool' is interactive so we have to pipe it the answers.
4821 ;; Reported at <https://bugzilla.gnome.org/show_bug.cgi?id=784696>.
4822 (let ((pipe (open-output-pipe "certtool --generate-self-signed \
4823 --load-privkey tests/test-key.pem --outfile tests/test-cert.pem")))
4824 (for-each (lambda (line)
4825 (display line pipe)
4826 (newline pipe))
4827 '("" ;Common name
4828 "" ;UID
4829 "Guix" ;Organizational unit name
4830 "GNU" ;Organization name
4831 "" ;Locality name
4832 "" ;State or province
4833 "" ;Country
4834 "" ;subject's domain component (DC)
4835 "" ;E-mail
4836 "" ;serial number
4837 "-1" ;expiration time
4838 "N" ;belong to authority?
4839 "N" ;web client certificate?
4840 "N" ;IPsec IKE?
4841 "Y" ;web server certificate?
4842 "localhost" ;dnsName of subject
4843 "" ;dnsName of subject (end)
4844 "" ;URI of subject
4845 "127.0.0.1" ;IP address of subject
4846 "" ;signing?
4847 "" ;encryption (RSA)?
4848 "" ;data encryption?
4849 "" ;sign OCSP requests?
4850 "" ;sign code?
4851 "" ;time stamping?
4852 "" ;email protection?
4853 "" ;URI of the CRL distribution point
4854 "y" ;above info OK?
4855 ))
4856 (close-pipe pipe))
4857 #t))
4858 (add-after 'install 'move-doc
4859 (lambda* (#:key outputs #:allow-other-keys)
4860 (let ((out (assoc-ref outputs "out"))
4861 (doc (assoc-ref outputs "doc")))
4862 (mkdir-p (string-append doc "/share"))
4863 (copy-recursively (string-append out "/share/gtk-doc")
4864 (string-append doc "/share/gtk-doc"))
4865 (delete-file-recursively (string-append out "/share/gtk-doc"))
4866 #t))))))
4867 (native-inputs
4868 `(("docbook-xml" ,docbook-xml-4.1.2)
4869 ("glib:bin" ,glib "bin") ; for glib-mkenums
4870 ("gobject-introspection" ,gobject-introspection)
4871 ("gtk-doc" ,gtk-doc)
4872 ("intltool" ,intltool)
4873 ("pkg-config" ,pkg-config)
4874 ("python" ,python-wrapper)
4875 ("vala" ,vala)
4876 ("php" ,php)
4877 ("curl" ,curl)
4878 ("gnutls" ,gnutls) ;for 'certtool'
4879 ("httpd" ,httpd)))
4880 (propagated-inputs
4881 ;; libsoup-2.4.pc refers to all these.
4882 `(("brotli" ,google-brotli)
4883 ("glib" ,glib)
4884 ("libpsl" ,libpsl)
4885 ("libxml2" ,libxml2)
4886 ("sqlite" ,sqlite)
4887 ("zlib" ,zlib)))
4888 (inputs
4889 `(("glib-networking" ,glib-networking)
4890 ("mit-krb5" ,mit-krb5)))
4891 (home-page "https://live.gnome.org/LibSoup/")
4892 (synopsis "GLib-based HTTP Library")
4893 (description
4894 "LibSoup is an HTTP client/server library for GNOME. It uses GObjects
4895 and the GLib main loop, to integrate well with GNOME applications.")
4896 (license license:lgpl2.0+)))
4897
4898
4899 ;;; A minimal version of libsoup used to prevent a cycle with Inkscape.
4900 (define-public libsoup-minimal
4901 (package/inherit libsoup
4902 (name "libsoup-minimal")
4903 (outputs (delete "doc" (package-outputs libsoup)))
4904 (arguments
4905 (substitute-keyword-arguments (package-arguments libsoup)
4906 ((#:configure-flags configure-flags)
4907 `(delete "-Dgtk_doc=true" ,configure-flags))
4908 ((#:phases phases)
4909 `(modify-phases ,phases
4910 (delete 'move-doc)))))
4911 (native-inputs (alist-delete "gtk-doc" (package-native-inputs libsoup)))))
4912
4913 (define-public libsecret
4914 (package
4915 (name "libsecret")
4916 (version "0.20.4")
4917 (source (origin
4918 (method url-fetch)
4919 (uri (string-append
4920 "mirror://gnome/sources/libsecret/"
4921 (version-major+minor version) "/"
4922 "libsecret-" version ".tar.xz"))
4923 (sha256
4924 (base32
4925 "0a4xnfmraxchd9cq5ai66j12jv2vrgjmaaxz25kl031jvda4qnij"))))
4926 (build-system gnu-build-system)
4927 (outputs '("out" "doc"))
4928 (arguments
4929 `(#:tests? #f ; FIXME: Testing hangs.
4930 #:configure-flags
4931 (list (string-append "--with-html-dir="
4932 (assoc-ref %outputs "doc")
4933 "/share/gtk-doc/html"))))
4934 (native-inputs
4935 `(("gettext" ,gettext-minimal)
4936 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
4937 ("gobject-introspection" ,gobject-introspection)
4938 ("pkg-config" ,pkg-config)
4939 ("vala" ,vala)
4940 ("xsltproc" ,libxslt)))
4941 ;; These are needed for the tests.
4942 ;; FIXME: Add gjs once available.
4943 ;("dbus" ,dbus)
4944 ;("python2" ,python-2)
4945 ;("python2-dbus" ,python2-dbus)
4946 ;("python2-pygobject" ,python2-pygobject)
4947 ;("python2-pygobject-2" ,python2-pygobject-2)))
4948 (propagated-inputs
4949 `(("glib" ,glib))) ; required by libsecret-1.pc
4950 (inputs
4951 ;; The ‘build’ phase complains about missing docbook-xml-4.2 but adding it
4952 ;; doesn't seem to affect the build result.
4953 `(("docbook-xsl" ,docbook-xsl)
4954 ("libgcrypt" ,libgcrypt)
4955 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
4956 (home-page "https://wiki.gnome.org/Projects/Libsecret/")
4957 (synopsis "GObject bindings for \"Secret Service\" API")
4958 (description
4959 "Libsecret is a GObject based library for storing and retrieving passwords
4960 and other secrets. It communicates with the \"Secret Service\" using DBus.")
4961 (license license:lgpl2.1+)))
4962
4963 (define-public five-or-more
4964 (package
4965 (name "five-or-more")
4966 (version "3.32.2")
4967 (source
4968 (origin
4969 (method url-fetch)
4970 (uri (string-append "mirror://gnome/sources/five-or-more/"
4971 (version-major+minor version) "/"
4972 "five-or-more-" version ".tar.xz"))
4973 (sha256
4974 (base32 "19pf8wzbf3ciqf2k4bj9sddvyhckfd62x86pnqr6s8h4vn9jc6ii"))))
4975 (build-system meson-build-system)
4976 (arguments
4977 '(#:glib-or-gtk? #t
4978 #:phases
4979 (modify-phases %standard-phases
4980 (add-after 'unpack 'skip-gtk-update-icon-cache
4981 (lambda _
4982 (substitute* "meson_post_install.py"
4983 (("gtk-update-icon-cache") (which "true")))
4984 #t)))))
4985 (native-inputs
4986 `(("pkg-config" ,pkg-config)
4987 ("appstream-glib" ,appstream-glib)
4988 ("desktop-file-utils" ,desktop-file-utils)
4989 ("glib:bin" ,glib "bin") ; for glib-compile-resources
4990 ("intltool" ,intltool)
4991 ("itstool" ,itstool)
4992 ("vala" ,vala)
4993 ("xmllint" ,libxml2)))
4994 (inputs
4995 `(("gtk+" ,gtk+)
4996 ("libgnome-games-support" ,libgnome-games-support)
4997 ("librsvg" ,librsvg)))
4998 (home-page "https://wiki.gnome.org/Apps/Five%20or%20more")
4999 (synopsis "Logic puzzle game")
5000 (description "Five or More is a game where you try to align
5001 five or more objects of the same color and shape causing them to disappear.
5002 On every turn more objects will appear, until the board is full.
5003 Try to last as long as possible.")
5004 (license license:gpl2+)))
5005
5006 (define-public gnome-mines
5007 (package
5008 (name "gnome-mines")
5009 (version "3.36.1")
5010 (source
5011 (origin
5012 (method url-fetch)
5013 (uri (string-append "mirror://gnome/sources/" name "/"
5014 (version-major+minor version) "/"
5015 name "-" version ".tar.xz"))
5016 (sha256
5017 (base32 "0m2680r94nk61imym4x73j03jwfjd8cxm592m5ybiqdfdw6i723i"))))
5018 (build-system meson-build-system)
5019 (arguments
5020 '(#:glib-or-gtk? #t
5021 #:phases
5022 (modify-phases %standard-phases
5023 (add-after 'unpack 'skip-gtk-update-icon-cache
5024 (lambda _
5025 (substitute* "build-aux/meson_post_install.py"
5026 (("gtk-update-icon-cache") (which "true")))
5027 #t)))))
5028 (native-inputs
5029 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
5030 ("pkg-config" ,pkg-config)
5031 ("desktop-file-utils" ,desktop-file-utils)
5032 ("intltool" ,intltool)
5033 ("itstool" ,itstool)
5034 ("vala" ,vala)
5035 ("yelp" ,yelp)
5036 ("appstream-glib" ,appstream-glib)))
5037 (inputs
5038 `(("gtk+" ,gtk+)
5039 ("libgnome-games-support" ,libgnome-games-support)
5040 ("librsvg" ,librsvg)))
5041 (home-page "https://wiki.gnome.org/Apps/Mines")
5042 (synopsis "Minesweeper game")
5043 (description
5044 "Mines (previously gnomine) is a puzzle game where you locate mines
5045 floating in an ocean using only your brain and a little bit of luck.")
5046 (license license:gpl2+)))
5047
5048 (define-public gnome-multi-writer
5049 (package
5050 (name "gnome-multi-writer")
5051 (version "3.35.90")
5052 (source
5053 (origin
5054 (method url-fetch)
5055 (uri (string-append "mirror://gnome/sources/gnome-multi-writer/"
5056 (version-major+minor version) "/"
5057 "gnome-multi-writer-" version ".tar.xz"))
5058 (sha256
5059 (base32
5060 "07vgzjjdrxcp7h73z13h9agafxb4vmqx5i81bcfyw0ilw9kkdzmp"))))
5061 (build-system meson-build-system)
5062 (arguments
5063 '(#:glib-or-gtk? #t
5064 #:phases
5065 (modify-phases %standard-phases
5066 (add-after 'unpack 'skip-post-install
5067 (lambda _
5068 (substitute* "meson.build"
5069 (("meson.add_install_script" &) (string-append "# " &)))
5070 #t)))))
5071 (native-inputs
5072 `(("glib:bin" ,glib "bin")
5073 ("pkg-config" ,pkg-config)))
5074 (inputs
5075 `(("gtk+" ,gtk+)
5076 ("glib" ,glib) ; for gio
5077 ("gusb" ,gusb)
5078 ("udisks" ,udisks)
5079 ("libgudev" ,libgudev)
5080 ("libcanberra" ,libcanberra)
5081 ("polkit" ,polkit)))
5082 (home-page "https://wiki.gnome.org/Apps/MultiWriter")
5083 (synopsis "Write to multiple USB devices at once")
5084 (description
5085 "MultiWriter can be used to write an ISO file to multiple USB devices at
5086 once.")
5087 (license license:gpl2+)))
5088
5089 (define-public gnome-sudoku
5090 (package
5091 (name "gnome-sudoku")
5092 (version "3.34.1")
5093 (source
5094 (origin
5095 (method url-fetch)
5096 (uri (string-append "mirror://gnome/sources/" name "/"
5097 (version-major+minor version) "/"
5098 name "-" version ".tar.xz"))
5099 (sha256
5100 (base32
5101 "025y85r4qqardivvwiwhbmgarziykdy224m8zlrq8b79zv82793b"))))
5102 (build-system meson-build-system)
5103 (arguments
5104 '(#:glib-or-gtk? #t
5105 #:phases
5106 (modify-phases %standard-phases
5107 (add-after 'unpack 'skip-gtk-update-icon-cache
5108 (lambda _
5109 (substitute* "build-aux/post_install.py"
5110 (("gtk-update-icon-cache") (which "true")))
5111 #t)))))
5112 (native-inputs
5113 `(("pkg-config" ,pkg-config)
5114 ("desktop-file-utils" ,desktop-file-utils)
5115 ("glib:bin" ,glib "bin") ; for glib-compile-resources
5116 ("intltool" ,intltool)
5117 ("itstool" ,itstool)
5118 ("vala" ,vala)
5119 ("xmllint" ,libxml2)))
5120 (inputs
5121 `(("gtk+" ,gtk+)
5122 ("json-glib" ,json-glib)
5123 ("libgee" ,libgee)
5124 ("librsvg" ,librsvg)
5125 ("qqwing" ,qqwing)))
5126 (home-page "https://wiki.gnome.org/Apps/Sudoku")
5127 (synopsis "Japanese logic game")
5128 (description
5129 "Sudoku is a Japanese logic game that exploded in popularity in 2005.
5130 GNOME Sudoku is meant to have an interface as simple and unobstrusive as
5131 possible while still providing features that make playing difficult Sudoku
5132 more fun.")
5133 (license license:gpl2+)))
5134
5135 (define-public gnome-terminal
5136 (package
5137 (name "gnome-terminal")
5138 (version "3.34.2")
5139 (source
5140 (origin
5141 (method url-fetch)
5142 (uri (string-append "mirror://gnome/sources/" name "/"
5143 (version-major+minor version) "/"
5144 name "-" version ".tar.xz"))
5145 (sha256
5146 (base32
5147 "0gc004f9b5k94gkdanmqjz3wqgnpny0l3nqm8zd19h4f0ps27mrv"))))
5148 (build-system glib-or-gtk-build-system)
5149 (arguments
5150 '(#:configure-flags
5151 (list "--disable-migration" "--disable-search-provider"
5152 "--without-nautilus-extension")
5153 #:phases
5154 (modify-phases %standard-phases
5155 (add-before 'configure 'patch-/bin/true
5156 (lambda _
5157 (substitute* "configure"
5158 (("/bin/true") (which "true"))))))))
5159 (native-inputs
5160 `(("pkg-config" ,pkg-config)
5161 ("desktop-file-utils" ,desktop-file-utils)
5162 ("intltool" ,intltool)
5163 ("itstool" ,itstool)
5164 ("xmllint" ,libxml2)))
5165 (propagated-inputs
5166 `(("dconf" ,dconf)))
5167 (inputs
5168 `(("gtk+" ,gtk+)
5169 ("vte" ,vte)
5170 ("gnutls" ,gnutls)
5171 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5172 ("util-linux" ,util-linux "lib")
5173 ("vala" ,vala)))
5174 (home-page "https://wiki.gnome.org/Apps/Terminal")
5175 (synopsis "Terminal emulator")
5176 (description
5177 "GNOME Terminal is a terminal emulator application for accessing a
5178 UNIX shell environment which can be used to run programs available on
5179 your system.
5180
5181 It supports several profiles, multiple tabs and implements several
5182 keyboard shortcuts.")
5183 (license license:gpl3+)))
5184
5185 (define-public colord
5186 (package
5187 (name "colord")
5188 (version "1.4.5")
5189 (source
5190 (origin
5191 (method url-fetch)
5192 (uri (string-append "https://www.freedesktop.org/software/colord/releases/"
5193 "colord-" version ".tar.xz"))
5194 (sha256
5195 (base32 "05sydi6qqqx1rrqwnga1vbg9srkf89wdcfw5w4p4m7r37m2flx5p"))))
5196 (build-system meson-build-system)
5197 (arguments
5198 '(;; FIXME: One test fails:
5199 ;; /colord/icc-store (in lib/colord/colord-self-test-private):
5200 ;; Incorrect content type for /tmp/colord-vkve/already-exists.icc, got
5201 ;; application/x-zerosize
5202 #:tests? #f
5203 #:glib-or-gtk? #t
5204 #:configure-flags (list "-Dlocalstatedir=/var"
5205 ;; No dep on systemd.
5206 "-Dsystemd=false"
5207 ;; Wants to install to global completion dir;
5208 ;; punt.
5209 "-Dbash_completion=false"
5210 "-Ddaemon_user=colord"
5211 "-Dsane=true"
5212 "-Dvapi=true"
5213 ;; Requires spotread.
5214 "-Dargyllcms_sensor=false"
5215 ;; TODO: Requires docbook2x.
5216 "-Dman=false")
5217 #:phases
5218 (modify-phases %standard-phases
5219 (add-before 'configure 'patch-build-system
5220 (lambda* (#:key outputs #:allow-other-keys)
5221 (substitute* "rules/meson.build"
5222 (("udev.get_pkgconfig_variable\\('udevdir'\\)")
5223 (string-append "'" (assoc-ref outputs "out") "/lib/udev'")))
5224 #t))
5225 (add-before 'configure 'set-sqlite3-file-name
5226 (lambda* (#:key inputs #:allow-other-keys)
5227 ;; "colormgr dump" works by invoking the "sqlite3" command.
5228 ;; Record its absolute file name.
5229 (let ((sqlite (assoc-ref inputs "sqlite")))
5230 (substitute* "client/cd-util.c"
5231 (("\"sqlite3\"")
5232 (string-append "\"" sqlite "/bin/sqlite3\"")))
5233 #t))))))
5234 (native-inputs
5235 `(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
5236 ("gettext" ,gettext-minimal)
5237 ("gobject-introspection" ,gobject-introspection)
5238 ("gtk-doc" ,gtk-doc)
5239 ("pkg-config" ,pkg-config)
5240 ("vala" ,vala)))
5241 (propagated-inputs
5242 ;; colord.pc refers to all these.
5243 `(("glib" ,glib)
5244 ("lcms" ,lcms)
5245 ("udev" ,eudev)))
5246 (inputs
5247 `(("dbus-glib" ,dbus-glib)
5248 ("gusb" ,gusb)
5249 ("libgudev" ,libgudev)
5250 ("libusb" ,libusb)
5251 ("polkit" ,polkit)
5252 ("python" ,python-wrapper)
5253 ("sqlite" ,sqlite)
5254 ("sane-backends" ,sane-backends)))
5255 (home-page "https://www.freedesktop.org/software/colord/")
5256 (synopsis "Color management service")
5257 (description "Colord is a system service that makes it easy to manage,
5258 install and generate color profiles to accurately color manage input and
5259 output devices.")
5260 (license license:gpl2+)))
5261
5262 (define-public geoclue
5263 (package
5264 (name "geoclue")
5265 (version "2.5.7")
5266 (source
5267 (origin
5268 (method url-fetch)
5269 (uri
5270 (string-append "https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/"
5271 version "/geoclue-" version ".tar.bz2"))
5272 (sha256
5273 (base32 "09ww26a76kanldhgwnn5sqy9ly2940k45zpp68spykkv2zjdpivc"))
5274 (patches (search-patches "geoclue-config.patch"))))
5275 (build-system meson-build-system)
5276 (arguments
5277 '(#:configure-flags (list "-Dbus-srv-user=geoclue")))
5278 (native-inputs
5279 `(("pkg-config" ,pkg-config)
5280 ("gobject-introspection" ,gobject-introspection)
5281 ("modem-manager" ,modem-manager)
5282 ("libnotify" ,libnotify)
5283 ("gtk-doc" ,gtk-doc)
5284 ("intltool" ,intltool)))
5285 (inputs
5286 `(("avahi" ,avahi)
5287 ("glib:bin" ,glib "bin")
5288 ("glib-networking" ,glib-networking)
5289 ("json-glib" ,json-glib)
5290 ("libsoup" ,libsoup)))
5291 (home-page "https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home")
5292 (synopsis "Geolocation service")
5293 (description "Geoclue is a D-Bus service that provides location
5294 information. The primary goal of the Geoclue project is to make creating
5295 location-aware applications as simple as possible, while the secondary goal is
5296 to ensure that no application can access location information without explicit
5297 permission from user.")
5298 (license license:gpl2+)))
5299
5300 (define-public geocode-glib
5301 (package
5302 (name "geocode-glib")
5303 (version "3.26.2")
5304 (source (origin
5305 (method url-fetch)
5306 (uri (string-append "mirror://gnome/sources/geocode-glib/"
5307 (version-major+minor version) "/"
5308 "geocode-glib-" version ".tar.xz"))
5309 (sha256
5310 (base32
5311 "1l8g0f13xgkrk335afr9w8k46mziwb2jnyhl07jccl5yl37q9zh1"))))
5312 (build-system meson-build-system)
5313 (arguments
5314 `(#:phases
5315 (modify-phases %standard-phases
5316 ;; The tests require a bunch of locales.
5317 (add-before 'check 'set-locales
5318 (lambda* (#:key inputs #:allow-other-keys)
5319 (setenv "GUIX_LOCPATH"
5320 (string-append (assoc-ref inputs "glibc-locales")
5321 "/lib/locale"))
5322 #t)))))
5323 (native-inputs
5324 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5325 ("glibc-locales" ,glibc-locales) ; for tests
5326 ("gettext" ,gettext-minimal)
5327 ("gobject-introspection" ,gobject-introspection)
5328 ("gtk-doc" ,gtk-doc)
5329 ("pkg-config" ,pkg-config)
5330 ("json-glib" ,json-glib)))
5331 (propagated-inputs
5332 ;; geocode-glib-1.0.pc refers to GIO.
5333 `(("glib" ,glib)))
5334 (inputs
5335 `(("libsoup" ,libsoup)))
5336 (home-page "https://github.com/GNOME/geocode-glib/")
5337 (synopsis "Geocoding and reverse-geocoding library")
5338 (description
5339 "geocode-glib is a convenience library for geocoding (finding longitude,
5340 and latitude from an address) and reverse geocoding (finding an address from
5341 coordinates) using the Nominatim service. geocode-glib caches requests for
5342 faster results and to avoid unnecessary server load.")
5343 (license license:lgpl2.0+)))
5344
5345 (define-public upower
5346 (package
5347 (name "upower")
5348 (version "0.99.11")
5349 (source (origin
5350 (method url-fetch)
5351 (uri (string-append "https://upower.freedesktop.org/releases/"
5352 "upower-" version ".tar.xz"))
5353 (sha256
5354 (base32
5355 "1vxxvmz2cxb1qy6ibszaz5bskqdy9nd9fxspj9fv3gfmrjzzzdb4"))
5356 (patches (search-patches "upower-builddir.patch"))
5357 (modules '((guix build utils)))
5358 (snippet
5359 '(begin
5360 ;; Upstream commit
5361 ;; <https://cgit.freedesktop.org/upower/commit/?id=18457c99b68786cd729b315723d680e6860d9cfa>
5362 ;; moved 'dbus-1/system.d' from etc/ to share/. However,
5363 ;; 'dbus-configuration-directory' in (gnu services dbus)
5364 ;; expects it in etc/. Thus, move it back to its previous
5365 ;; location.
5366 (substitute* "src/Makefile.in"
5367 (("^dbusconfdir =.*$")
5368 "dbusconfdir = $(sysconfdir)/dbus-1/system.d\n"))
5369 #t))))
5370 (build-system glib-or-gtk-build-system)
5371 (arguments
5372 '(#:phases
5373 (modify-phases %standard-phases
5374 (add-before 'check 'pre-check
5375 (lambda* (#:key inputs #:allow-other-keys)
5376 (let ((umockdev (string-append (assoc-ref inputs "umockdev")
5377 "/lib")))
5378 (setenv "LD_LIBRARY_PATH" umockdev))
5379 #t)))
5380 #:configure-flags (list "--localstatedir=/var"
5381 (string-append "--with-udevrulesdir="
5382 (assoc-ref %outputs "out")
5383 "/lib/udev/rules.d"))))
5384 (native-inputs
5385 `(("gobject-introspection" ,gobject-introspection)
5386 ("pkg-config" ,pkg-config)
5387 ("intltool" ,intltool)
5388 ("python" ,python)
5389
5390 ;; For tests.
5391 ("python-dbus" ,python-dbus)
5392 ("python-dbusmock" ,python-dbusmock)
5393 ("python-pygobject" ,python-pygobject)
5394 ("umockdev" ,umockdev)
5395
5396 ;; For man pages.
5397 ("libxslt" ,libxslt) ;for 'xsltproc'
5398 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
5399 ("docbook-xsl" ,docbook-xsl)))
5400 (inputs
5401 `(("dbus-glib" ,dbus-glib)
5402 ("libgudev" ,libgudev)
5403 ("libusb" ,libusb)))
5404 (propagated-inputs
5405 ;; In Requires of upower-glib.pc.
5406 `(("glib" ,glib)))
5407 (home-page "https://upower.freedesktop.org/")
5408 (synopsis "System daemon for managing power devices")
5409 (description
5410 "UPower is an abstraction for enumerating power devices,
5411 listening to device events and querying history and statistics. Any
5412 application or service on the system can access the org.freedesktop.UPower
5413 service via the system message bus.")
5414 (license license:gpl2+)))
5415
5416 (define-public libgweather
5417 (package
5418 (name "libgweather")
5419 (version "3.34.0")
5420 (source (origin
5421 (method url-fetch)
5422 (uri (string-append "mirror://gnome/sources/" name "/"
5423 (version-major+minor version) "/"
5424 name "-" version ".tar.xz"))
5425 (sha256
5426 (base32
5427 "1fgiqswkhiaijanml3mb16ajn5aanrk7x6yiwagp9n9rssam6902"))))
5428 (build-system meson-build-system)
5429 (arguments
5430 `(#:tests? #f ; one of two tests requires network access
5431 #:configure-flags
5432 `(,(string-append "-Dzoneinfo_dir="
5433 (assoc-ref %build-inputs "tzdata")
5434 "/share/zoneinfo"))))
5435 (native-inputs
5436 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5437 ("gobject-introspection" ,gobject-introspection)
5438 ("pkg-config" ,pkg-config)
5439 ("vala" ,vala)
5440 ("intltool" ,intltool)))
5441 (propagated-inputs
5442 ;; gweather-3.0.pc refers to GTK+, GDK-Pixbuf, GLib/GObject, libxml, and
5443 ;; libsoup.
5444 `(("gtk+" ,gtk+)
5445 ("gdk-pixbuf" ,gdk-pixbuf)
5446 ("libxml2" ,libxml2)
5447 ("libsoup" ,libsoup)
5448 ("geocode-glib" ,geocode-glib)))
5449 (inputs
5450 `(("tzdata" ,tzdata)))
5451 (home-page "https://wiki.gnome.org/action/show/Projects/LibGWeather")
5452 (synopsis "Location, time zone, and weather library for GNOME")
5453 (description
5454 "libgweather is a library to access weather information from online
5455 services for numerous locations.")
5456 (license license:gpl2+)))
5457
5458 (define-public gnome-settings-daemon
5459 (package
5460 (name "gnome-settings-daemon")
5461 (version "3.34.1")
5462 (source
5463 (origin
5464 (method url-fetch)
5465 (uri (string-append "mirror://gnome/sources/" name "/"
5466 (version-major+minor version) "/"
5467 name "-" version ".tar.xz"))
5468 (sha256
5469 (base32
5470 "07y1gbicz0pbxmdgwrdzyc4byy30wfwpbqgvnx27gnpqmc5s50cr"))
5471 (patches (search-patches "gnome-settings-daemon-gc.patch"))))
5472 (build-system meson-build-system)
5473 (arguments
5474 `(#:glib-or-gtk? #t
5475 #:configure-flags
5476 (list (string-append "-Dudev_dir="
5477 (assoc-ref %outputs "out")
5478 "/lib/udev/rules.d/")
5479 "-Dsystemd=false"
5480 ;; Otherwise, the RUNPATH will lack the final path component.
5481 (string-append "-Dc_link_args=-Wl,-rpath="
5482 (assoc-ref %outputs "out")
5483 "/lib/gnome-settings-daemon-3.0"))
5484
5485 #:phases (modify-phases %standard-phases
5486 (add-before 'configure 'set-baobab-file-name
5487 (lambda* (#:key inputs #:allow-other-keys)
5488 ;; Hard-code the file name of Baobab instead of looking
5489 ;; it up in $PATH. This ensures users get the "Examine"
5490 ;; button in the low disk space notification of GDM even
5491 ;; if they don't have GNOME in their main profile.
5492 (let ((baobab (assoc-ref inputs "baobab")))
5493 (substitute* "plugins/housekeeping/gsd-disk-space.c"
5494 (("g_find_program_in_path \\(DISK_SPACE_ANALYZER\\)")
5495 (string-append "g_strdup (\"" baobab
5496 "/bin/baobab\")")))
5497 #t))))
5498
5499 ;; Color management test can't reach the colord system service.
5500 #:tests? #f))
5501 (native-inputs
5502 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5503 ("pkg-config" ,pkg-config)
5504 ("intltool" ,intltool)
5505 ("xsltproc" ,libxslt)
5506 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
5507 ("docbook-xml" ,docbook-xml-4.2)
5508 ("docbook-xsl" ,docbook-xsl)))
5509 (inputs
5510 `(("alsa-lib" ,alsa-lib)
5511 ("baobab" ,baobab)
5512 ("colord" ,colord)
5513 ("libgudev" ,libgudev)
5514 ("upower" ,upower)
5515 ("polkit" ,polkit)
5516 ("pulseaudio" ,pulseaudio)
5517 ("libcanberra" ,libcanberra)
5518 ("libx11" ,libx11)
5519 ("libxtst" ,libxtst)
5520 ("lcms" ,lcms)
5521 ("libnotify" ,libnotify)
5522 ("geoclue" ,geoclue)
5523 ("geocode-glib" ,geocode-glib)
5524 ("libgweather" ,libgweather)
5525 ("gnome-desktop" ,gnome-desktop)
5526 ("nss" ,nss)
5527 ("cups" ,cups)
5528 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5529 ("libwacom" ,libwacom)
5530 ("librsvg" ,librsvg)
5531 ("xf86-input-wacom" ,xf86-input-wacom)
5532 ("wayland" ,wayland)
5533 ("network-manager" ,network-manager)
5534 ("gcr" ,gcr)
5535 ("modem-manager" ,modem-manager)))
5536 (home-page "https://www.gnome.org")
5537 (synopsis "GNOME settings daemon")
5538 (description
5539 "This package contains the daemon responsible for setting the various
5540 parameters of a GNOME session and the applications that run under it. It
5541 handles settings such keyboard layout, shortcuts, and accessibility, clipboard
5542 settings, themes, mouse settings, and startup of other daemons.")
5543 (license license:gpl2+)))
5544
5545 (define-public totem-pl-parser
5546 (package
5547 (name "totem-pl-parser")
5548 (version "3.26.5")
5549 (source (origin
5550 (method url-fetch)
5551 (uri (string-append "mirror://gnome/sources/totem-pl-parser/"
5552 (version-major+minor version) "/"
5553 "totem-pl-parser-" version ".tar.xz"))
5554 (sha256
5555 (base32
5556 "132jihnf51zs98yjkc6jxyqib4f3dawpjm17g4bj4j78y93dww2k"))))
5557 (build-system meson-build-system)
5558 (arguments
5559 ;; FIXME: Tests require gvfs.
5560 `(#:tests? #f))
5561 (native-inputs
5562 `(("intltool" ,intltool)
5563 ("glib" ,glib "bin")
5564 ("gobject-introspection" ,gobject-introspection)
5565 ("pkg-config" ,pkg-config)))
5566 (propagated-inputs
5567 `(("glib" ,glib)
5568 ("gmime" ,gmime)
5569 ("libarchive" ,libarchive)
5570 ("libgcrypt" ,libgcrypt)
5571 ("libxml2" ,libxml2)))
5572 (inputs
5573 `(("libsoup" ,libsoup)))
5574 (home-page "https://projects.gnome.org/totem")
5575 (synopsis "Library to parse and save media playlists for GNOME")
5576 (description "Totem-pl-parser is a GObjects-based library to parse and save
5577 playlists in a variety of formats.")
5578 (license license:lgpl2.0+)))
5579
5580 (define-public aisleriot
5581 (package
5582 (name "aisleriot")
5583 (version "3.22.9")
5584 (source (origin
5585 (method url-fetch)
5586 (uri (string-append "mirror://gnome/sources/aisleriot/"
5587 (version-major+minor version) "/"
5588 "aisleriot-" version ".tar.xz"))
5589 (sha256
5590 (base32
5591 "0yzdh9cw5cjjgvfh75bihl968czlgfmpmn1z0fdk88sgvpjgzwji"))))
5592 (build-system glib-or-gtk-build-system)
5593 (arguments
5594 '(#:configure-flags
5595 '("--with-platform=gtk-only"
5596 "--with-card-theme-formats=svg")))
5597 (native-inputs
5598 `(("desktop-file-utils" ,desktop-file-utils)
5599 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5600 ("intltool" ,intltool)
5601 ("itstool" ,itstool)
5602 ("pkg-config" ,pkg-config)
5603 ("xmllint" ,libxml2)))
5604 (inputs
5605 `(("gtk+" ,gtk+)
5606 ("guile" ,guile-2.2)
5607 ("libcanberra" ,libcanberra)
5608 ("librsvg" ,librsvg)))
5609 (home-page "https://wiki.gnome.org/Apps/Aisleriot")
5610 (synopsis "Solitaire card games")
5611 (description
5612 "Aisleriot (also known as Solitaire or sol) is a collection of card games
5613 which are easy to play with the aid of a mouse.")
5614 (license license:gpl3+)))
5615
5616 (define-public amtk
5617 (package
5618 (name "amtk")
5619 (version "5.0.2")
5620 (source (origin
5621 (method url-fetch)
5622 (uri (string-append "mirror://gnome/sources/amtk/"
5623 (version-major+minor version) "/"
5624 "amtk-" version ".tar.xz"))
5625 (sha256
5626 (base32
5627 "11jgz2i9wjzv4alrxl1qyxiapb52w7vs5ygfgsw0qgdap8gqkk3i"))))
5628 (build-system gnu-build-system)
5629 (arguments
5630 '(#:configure-flags '("--enable-gtk-doc")))
5631 (native-inputs
5632 `(("gobject-introspection" ,gobject-introspection)
5633 ("glib:bin" ,glib "bin") ; for glib-mkenums
5634 ("gtk-doc" ,gtk-doc)
5635 ("pkg-config" ,pkg-config)))
5636 (inputs
5637 `(("glib" ,glib)
5638 ("gtk+" ,gtk+)))
5639 (home-page "https://wiki.gnome.org/Projects/Amtk")
5640 (synopsis "Actions, Menus and Toolbars Kit for GTK+ applications")
5641 (description
5642 "Amtk is the acronym for @acronym{Amtk, Actions Menus and Toolbars Kit}.
5643 It is a basic GtkUIManager replacement based on GAction. It is suitable for
5644 both a traditional UI or a modern UI with a GtkHeaderBar.")
5645 (license license:lgpl2.1+)))
5646
5647 (define-public devhelp
5648 (package
5649 (name "devhelp")
5650 (version "3.34.0")
5651 (source (origin
5652 (method url-fetch)
5653 (uri (string-append "mirror://gnome/sources/" name "/"
5654 (version-major+minor version) "/"
5655 name "-" version ".tar.xz"))
5656 (sha256
5657 (base32
5658 "0zpmn6fgkgiayvn4diia5df0s6s7dqrdnp3nrvpavsmgn0vhb4pg"))))
5659 (build-system meson-build-system)
5660 (arguments
5661 '(#:glib-or-gtk? #t
5662 #:phases
5663 (modify-phases %standard-phases
5664 (add-after 'unpack 'skip-gtk-update-icon-cache
5665 ;; Don't create 'icon-theme.cache'.
5666 (lambda _
5667 (substitute* "meson_post_install.py"
5668 (("gtk-update-icon-cache") "true"))
5669 #t)))))
5670 (native-inputs
5671 `(("intltool" ,intltool)
5672 ("itstool" ,itstool)
5673 ("gobject-introspection" ,gobject-introspection)
5674 ("glib:bin" ,glib "bin") ; for glib-mkmenus
5675 ("pkg-config" ,pkg-config)))
5676 (inputs
5677 `(("amtk" ,amtk)
5678 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5679 ("webkitgtk" ,webkitgtk)))
5680 (home-page "https://wiki.gnome.org/Apps/Devhelp")
5681 (synopsis "API documentation browser for GNOME")
5682 (description
5683 "Devhelp is an API documentation browser for GTK+ and GNOME. It works
5684 natively with GTK-Doc (the API reference system developed for GTK+ and used
5685 throughout GNOME for API documentation).")
5686 (license license:gpl2+)))
5687
5688 (define-public cogl
5689 (package
5690 (name "cogl")
5691 (version "1.22.8")
5692 (source
5693 (origin
5694 (method url-fetch)
5695 (uri (string-append "mirror://gnome/sources/cogl/"
5696 (version-major+minor version) "/"
5697 "cogl-" version ".tar.xz"))
5698 (sha256
5699 (base32 "0nfph4ai60ncdx7hy6hl1i1cmp761jgnyjfhagzi0iqq36qb41d8"))))
5700 ;; NOTE: mutter exports a bundled fork of cogl, so when making changes to
5701 ;; cogl, corresponding changes may be appropriate in mutter as well.
5702 (build-system gnu-build-system)
5703 (native-inputs
5704 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5705 ("gobject-introspection" ,gobject-introspection)
5706 ("xorg-server" ,xorg-server-for-tests)
5707 ("pkg-config" ,pkg-config)))
5708 (propagated-inputs
5709 `(("glib" ,glib)
5710 ("gdk-pixbuf" ,gdk-pixbuf)
5711 ("libx11" ,libx11)
5712 ("libxext" ,libxext)
5713 ("libxfixes" ,libxfixes)
5714 ("libxdamage" ,libxdamage)
5715 ("libxcomposite" ,libxcomposite)
5716 ("libxrandr" ,libxrandr)))
5717 (inputs
5718 `(("mesa" ,mesa)
5719 ("cairo" ,cairo)
5720 ("pango" ,pango)
5721 ("gstreamer" ,gstreamer)
5722 ("gst-plugins-base" ,gst-plugins-base)
5723 ("wayland" ,wayland)))
5724 (arguments
5725 `(#:disallowed-references (,xorg-server-for-tests)
5726 #:configure-flags (list "--enable-cogl-gst"
5727 "--enable-wayland-egl-platform"
5728 "--enable-wayland-egl-server"
5729
5730 ;; Arrange to pass an absolute file name to
5731 ;; dlopen for libGL.so.
5732 (string-append "--with-gl-libname="
5733 (assoc-ref %build-inputs "mesa")
5734 "/lib/libGL.so"))
5735 #:phases
5736 (modify-phases %standard-phases
5737 (add-after 'unpack 'fix-build-with-mesa-20
5738 (lambda _
5739 ;; Work around a problem with Mesa 20 where some macros used by
5740 ;; Cogl went missing from eglext.h. This can likely be removed
5741 ;; for newer versions of Cogl or Mesa.
5742 ;; https://gitlab.gnome.org/GNOME/cogl/-/merge_requests/19
5743 (substitute* '("configure"
5744 "cogl/winsys/cogl-winsys-egl-kms.c")
5745 (("#include <EGL/eglext.h>" all)
5746 (string-append all "\n#include <EGL/eglmesaext.h>\n")))
5747 #t))
5748 (add-before 'check 'start-xorg-server
5749 (lambda* (#:key tests? inputs #:allow-other-keys)
5750 (if tests?
5751 (begin
5752 ;; The test suite requires a running X server.
5753 (system (format #f "~a/bin/Xvfb :1 +extension GLX &"
5754 (assoc-ref inputs "xorg-server")))
5755 (setenv "DISPLAY" ":1")
5756 #t)
5757 (format #t "test suite not run~%"))
5758 #t)))))
5759 (home-page "https://www.cogl3d.org")
5760 (synopsis "Object oriented GL/GLES Abstraction/Utility Layer")
5761 (description
5762 "Cogl is a small library for using 3D graphics hardware to draw pretty
5763 pictures. The API departs from the flat state machine style of OpenGL and is
5764 designed to make it easy to write orthogonal components that can render
5765 without stepping on each others toes.")
5766 (license (list license:expat ; most of the code
5767 license:bsd-3 ; cogl/cogl-point-in-poly.c
5768 license:sgifreeb2.0 ; cogl-path/tesselator/
5769 license:asl2.0)))) ; examples/android/
5770
5771 (define-public clutter
5772 (package
5773 (name "clutter")
5774 (version "1.26.2")
5775 (source
5776 (origin
5777 (method url-fetch)
5778 (uri (string-append "mirror://gnome/sources/" name "/"
5779 (version-major+minor version) "/"
5780 name "-" version ".tar.xz"))
5781 (sha256
5782 (base32
5783 "0mif1qnrpkgxi43h7pimim6w6zwywa16ixcliw0yjm9hk0a368z7"))))
5784 ;; NOTE: mutter exports a bundled fork of clutter, so when making changes
5785 ;; to clutter, corresponding changes may be appropriate in mutter as well.
5786 (build-system gnu-build-system)
5787 (outputs '("out"
5788 "doc")) ;9 MiB of gtk-doc HTML pages
5789 (native-inputs
5790 `(("glib:bin" ,glib "bin") ; for glib-genmarshal
5791 ("gobject-introspection" ,gobject-introspection)
5792 ("pkg-config" ,pkg-config)
5793 ("xsltproc" ,libxslt)))
5794 (propagated-inputs
5795 `(("cogl" ,cogl)
5796 ("cairo" ,cairo)
5797 ("atk" ,atk)
5798 ("gtk+" ,gtk+)
5799 ("json-glib" ,json-glib)
5800 ("glib" ,glib)
5801 ("libxcomposite" ,libxcomposite)
5802 ("libxdamage" ,libxdamage)
5803 ("libxext" ,libxext)
5804 ("xinput" ,xinput)))
5805 (inputs
5806 `(("libxkbcommon" ,libxkbcommon)
5807 ("udev" ,eudev)))
5808 (arguments
5809 `(#:configure-flags (list "--enable-x11-backend=yes"
5810
5811 ;; This produces share/doc/{clutter,cally}.
5812 (string-append "--with-html-dir="
5813 (assoc-ref %outputs "doc")
5814 "/share/doc"))
5815 ;; XXX FIXME: Get test suite working. It would probably fail in the
5816 ;; same way the cogl tests fail, since clutter is based on cogl.
5817 #:tests? #f))
5818 (home-page "http://www.clutter-project.org")
5819 (synopsis "OpenGL-based interactive canvas library")
5820 (description
5821 "Clutter is an OpenGL-based interactive canvas library, designed for
5822 creating fast, mainly 2D single window applications such as media box UIs,
5823 presentations, kiosk style applications and so on.")
5824 (license license:lgpl2.0+)))
5825
5826 (define-public clutter-gtk
5827 (package
5828 (name "clutter-gtk")
5829 (version "1.8.4")
5830 (source
5831 (origin
5832 (method url-fetch)
5833 (uri (string-append "mirror://gnome/sources/" name "/"
5834 (version-major+minor version) "/"
5835 name "-" version ".tar.xz"))
5836 (sha256
5837 (base32
5838 "01ibniy4ich0fgpam53q252idm7f4fn5xg5qvizcfww90gn9652j"))))
5839 (build-system gnu-build-system)
5840 (native-inputs
5841 `(("pkg-config" ,pkg-config)
5842 ("gobject-introspection" ,gobject-introspection)))
5843 (propagated-inputs
5844 ;; clutter-gtk.pc refers to all these.
5845 `(("clutter" ,clutter)
5846 ("gtk+" ,gtk+)))
5847 (home-page "http://www.clutter-project.org")
5848 (synopsis "OpenGL-based interactive canvas library GTK+ widget")
5849 (description
5850 "Clutter is an OpenGL-based interactive canvas library, designed for
5851 creating fast, mainly 2D single window applications such as media box UIs,
5852 presentations, kiosk style applications and so on.")
5853 (license license:lgpl2.0+)))
5854
5855 (define-public clutter-gst
5856 (package
5857 (name "clutter-gst")
5858 (version "3.0.27")
5859 (source
5860 (origin
5861 (method url-fetch)
5862 (uri (string-append "mirror://gnome/sources/clutter-gst/"
5863 (version-major+minor version) "/"
5864 "clutter-gst-" version ".tar.xz"))
5865 (sha256
5866 (base32 "17czmpl92dzi4h3rn5rishk015yi3jwiw29zv8qan94xcmnbssgy"))))
5867 (build-system gnu-build-system)
5868 (native-inputs
5869 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5870 ("pkg-config" ,pkg-config)
5871 ("gobject-introspection" ,gobject-introspection)))
5872 (inputs
5873 `(("clutter" ,clutter)
5874 ("gstreamer" ,gstreamer)
5875 ("gst-plugins-base" ,gst-plugins-base)))
5876 (home-page "http://www.clutter-project.org")
5877 (synopsis "Integration library for using GStreamer with Clutter")
5878 (description
5879 "Clutter-Gst is an integration library for using GStreamer with Clutter.
5880 It provides a GStreamer sink to upload frames to GL and an actor that
5881 implements the ClutterGstPlayer interface using playbin. Clutter is an
5882 OpenGL-based interactive canvas library.")
5883 (license license:lgpl2.0+)))
5884
5885 (define-public libchamplain
5886 (package
5887 (name "libchamplain")
5888 (version "0.12.16")
5889 (source (origin
5890 (method url-fetch)
5891 (uri (string-append
5892 "mirror://gnome/sources/libchamplain/0.12/libchamplain-"
5893 version ".tar.xz"))
5894 (sha256
5895 (base32
5896 "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja"))))
5897 (build-system gnu-build-system)
5898 (arguments '(#:configure-flags '("--enable-vala")))
5899 (native-inputs
5900 `(("gobject-introspection" ,gobject-introspection)
5901 ("pkg-config" ,pkg-config)
5902 ("vala" ,vala)))
5903 (propagated-inputs
5904 `(("libsoup" ,libsoup)
5905 ("sqlite" ,sqlite)
5906 ("clutter" ,clutter)
5907 ("clutter-gtk" ,clutter-gtk)
5908 ("glib:bin" ,glib "bin") ;glib-mkenums, etc.
5909 ("cairo" ,cairo)
5910 ("gtk+3" ,gtk+)
5911 ("glib" ,glib)))
5912 (home-page "https://projects.gnome.org/libchamplain/")
5913 (synopsis "C library providing a ClutterActor to display maps")
5914 (description
5915 "libchamplain is a C library providing a ClutterActor to display maps.
5916 It also provides a Gtk+ widget to display maps in Gtk+ applications. Python
5917 and Perl bindings are also available. It supports numerous free map sources
5918 such as OpenStreetMap, OpenCycleMap, OpenAerialMap, and Maps for free.")
5919 (license license:lgpl2.1+)))
5920
5921 (define-public gom
5922 (package
5923 (name "gom")
5924 (version "0.3.2")
5925 (source
5926 (origin
5927 (method url-fetch)
5928 (uri (string-append "mirror://gnome/sources/gom/"
5929 (version-major+minor version) "/"
5930 "gom-" version ".tar.xz"))
5931 (sha256
5932 (base32
5933 "1zaqqwwkyiswib3v1v8wafpbifpbpak0nn2kp13pizzn9bwz1s5w"))))
5934 (build-system gnu-build-system)
5935 (native-inputs
5936 `(("intltool" ,intltool)
5937 ("pkg-config" ,pkg-config)
5938 ("gobject-introspection" ,gobject-introspection)))
5939 (inputs
5940 `(("glib" ,glib)
5941 ("gdk-pixbuf" ,gdk-pixbuf)
5942 ("sqlite" ,sqlite)))
5943 ;; XXX TODO: Figure out how to run the test suite.
5944 (arguments `(#:tests? #f))
5945 (home-page "https://wiki.gnome.org/Projects/Gom")
5946 (synopsis "Object mapper from GObjects to SQLite")
5947 (description
5948 "Gom provides an object mapper from GObjects to SQLite. It helps you
5949 write applications that need to store structured data as well as make complex
5950 queries upon that data.")
5951 (license license:lgpl2.1+)))
5952
5953 (define-public libgnome-games-support
5954 (package
5955 (name "libgnome-games-support")
5956 (version "1.4.4")
5957 (source (origin
5958 (method url-fetch)
5959 (uri (string-append "mirror://gnome/sources/libgnome-games-support/"
5960 (version-major+minor version) "/"
5961 "libgnome-games-support-" version ".tar.xz"))
5962 (sha256
5963 (base32
5964 "1zkbmnrn161p74qg6jhsn9f66yjjzxfm13pl1klv9av8k1bax9pq"))))
5965 (build-system gnu-build-system)
5966 (arguments
5967 '(#:phases
5968 (modify-phases %standard-phases
5969 (add-before 'check 'pre-check
5970 (lambda _
5971 ;; Tests require a writable HOME.
5972 (setenv "HOME" (getcwd))
5973 #t)))))
5974 (native-inputs
5975 `(("intltool" ,intltool)
5976 ("pkg-config" ,pkg-config)
5977 ("vala" ,vala)))
5978 (propagated-inputs
5979 ;; Required by libgnome-games-support-1.0.pc
5980 `(("gtk+" ,gtk+)
5981 ("libgee" ,libgee)))
5982 (home-page "https://www.gnome.org/")
5983 (synopsis "Useful functionality shared among GNOME games")
5984 (description
5985 "libgnome-games-support is a small library intended for internal use by
5986 GNOME Games, but it may be used by others.")
5987 (license license:lgpl3+)))
5988
5989 (define-public gnome-klotski
5990 (package
5991 (name "gnome-klotski")
5992 (version "3.34.0")
5993 (source (origin
5994 (method url-fetch)
5995 (uri (string-append "mirror://gnome/sources/" name "/"
5996 (version-major+minor version) "/"
5997 name "-" version ".tar.xz"))
5998 (sha256
5999 (base32
6000 "0sbx0bzy32lh2c9jp8v7gz788wn9y1la8mr5a7gf7370szsl4d4f"))))
6001 (build-system meson-build-system)
6002 (arguments
6003 '(#:glib-or-gtk? #t
6004 #:phases
6005 (modify-phases %standard-phases
6006 (add-after 'unpack 'skip-gtk-update-icon-cache
6007 ;; Don't create 'icon-theme.cache'.
6008 (lambda _
6009 (substitute* "build-aux/meson_post_install.py"
6010 (("gtk-update-icon-cache") (which "true")))
6011 #t)))))
6012 (native-inputs
6013 `(("desktop-file-utils" ,desktop-file-utils)
6014 ("glib:bin" ,glib "bin") ; for glib-compile-resources
6015 ("intltool" ,intltool)
6016 ("itstool" ,itstool)
6017 ("pkg-config" ,pkg-config)
6018 ("vala" ,vala)
6019 ("xmllint" ,libxml2)))
6020 (inputs
6021 `(("gtk+" ,gtk+)
6022 ("libgnome-games-support" ,libgnome-games-support)
6023 ("librsvg" ,librsvg)))
6024 (home-page "https://wiki.gnome.org/Apps/Klotski")
6025 (synopsis "Sliding block puzzles")
6026 (description
6027 "GNOME Klotski is a set of block sliding puzzles. The objective is to move
6028 the patterned block to the area bordered by green markers. To do so, you will
6029 need to slide other blocks out of the way. Complete each puzzle in as few moves
6030 as possible!")
6031 (license license:gpl2+)))
6032
6033 (define-public grilo
6034 (package
6035 (name "grilo")
6036 (version "0.3.12")
6037 (source
6038 (origin
6039 (method url-fetch)
6040 (uri (string-append "mirror://gnome/sources/grilo/"
6041 (version-major+minor version) "/"
6042 "grilo-" version ".tar.xz"))
6043 (sha256
6044 (base32 "0w8sq5g6g1rg85h53vbll8va70fcp6082mlpmy98aa03444ddyyv"))))
6045 (build-system meson-build-system)
6046 (native-inputs
6047 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
6048 ("intltool" ,intltool)
6049 ("pkg-config" ,pkg-config)
6050 ("gobject-introspection" ,gobject-introspection)
6051 ("gtk-doc" ,gtk-doc)
6052 ("vala" ,vala)))
6053 (inputs
6054 `(("cyrus-sasl" ,cyrus-sasl)
6055 ("glib" ,glib)
6056 ("gtk+" ,gtk+)
6057 ("libxml2" ,libxml2)
6058 ("liboauth" ,liboauth)
6059 ("libsoup" ,libsoup)
6060 ("totem-pl-parser" ,totem-pl-parser)))
6061 (native-search-paths
6062 (list (search-path-specification
6063 (variable "GRL_PLUGIN_PATH")
6064 (files (list (string-append "lib/grilo-"
6065 (version-major+minor version)))))))
6066 (home-page "https://wiki.gnome.org/action/show/Projects/Grilo")
6067 (synopsis "Framework for discovering and browsing media")
6068 (description
6069 "Grilo is a framework focused on making media discovery and browsing easy
6070 for application developers.")
6071 (license license:lgpl2.1+)))
6072
6073 (define-public grilo-plugins
6074 (package
6075 (name "grilo-plugins")
6076 (version "0.3.11")
6077 (source
6078 (origin
6079 (method url-fetch)
6080 (uri (string-append "mirror://gnome/sources/" name "/"
6081 (version-major+minor version) "/"
6082 name "-" version ".tar.xz"))
6083 (sha256
6084 (base32 "0wyd3n5mn7b77hxylkc3f62v01mlavh96901pz342hwrn42ydqnx"))))
6085 (build-system meson-build-system)
6086 (native-inputs
6087 `(("gettext" ,gettext-minimal)
6088 ("glib:bin" ,glib "bin")
6089 ("gtk+:bin" ,gtk+ "bin")
6090 ("itstool" ,itstool)
6091 ("pkg-config" ,pkg-config)))
6092 ;; TODO: ahavi, gstreamer
6093 (inputs
6094 `(("grilo" ,grilo)
6095 ;("gmime" ,gmime) ; unused
6096 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6097 ("gom" ,gom)
6098 ;("gssdp" ,gssdp) ; unused
6099 ;("gupnp" ,gupnp) ; unused
6100 ;("gupnp-av" ,gupnp-av) ; unused
6101 ("json-glib" ,json-glib)
6102 ("avahi" ,avahi)
6103 ("libgdata" ,libgdata)
6104 ("libmediaart" ,libmediaart)
6105 ;("librest" ,rest) ; unused
6106 ("libsoup" ,libsoup)
6107 ("totam-pl-parser" ,totem-pl-parser)
6108 ("tracker" ,tracker))) ; unused because it's too old
6109 (arguments
6110 `(#:glib-or-gtk? #t
6111 ;;Disable lua-factory as it needs missing dependencies
6112 #:configure-flags '("-Denable-lua-factory=no")))
6113 (home-page "https://live.gnome.org/Grilo")
6114 (synopsis "Plugins for the Grilo media discovery library")
6115 (description
6116 "Grilo is a framework focused on making media discovery and browsing easy
6117 for application developers. This package provides plugins for common media
6118 discovery protocols.")
6119 (license license:lgpl2.1+)))
6120
6121 (define-public totem
6122 (package
6123 (name "totem")
6124 (version "3.38.0")
6125 (source
6126 (origin
6127 (method url-fetch)
6128 (uri (string-append "mirror://gnome/sources/totem/"
6129 (version-major+minor version) "/"
6130 "totem-" version ".tar.xz"))
6131 (sha256
6132 (base32
6133 "0bs33ijvxbr2prb9yj4dxglsszslsn9k258n311sld84masz4ad8"))))
6134 (build-system meson-build-system)
6135 (native-inputs
6136 `(("pkg-config" ,pkg-config)
6137 ("desktop-file-utils" ,desktop-file-utils)
6138 ("gettext" ,gettext-minimal)
6139 ("gobject-introspection" ,gobject-introspection)
6140 ("glib:bin" ,glib "bin") ;for 'glib-mkenums'
6141 ("itstool" ,itstool)
6142 ("xmllint" ,libxml2)
6143 ("xorg-server" ,xorg-server-for-tests)))
6144 (propagated-inputs
6145 `(("dconf" ,dconf)))
6146 (inputs
6147 `(("gtk+" ,gtk+)
6148 ("gdk-pixbuf" ,gdk-pixbuf)
6149 ("atk" ,atk)
6150 ("cairo" ,cairo)
6151 ("dbus-glib" ,dbus-glib)
6152 ("clutter" ,clutter)
6153 ("clutter-gtk" ,clutter-gtk)
6154 ("clutter-gst" ,clutter-gst)
6155 ("xorgproto" ,xorgproto)
6156 ("libxxf86vm" ,libxxf86vm)
6157 ("libxtst" ,libxtst)
6158 ("libxrandr" ,libxrandr)
6159 ("libxml2" ,libxml2)
6160 ("libsoup" ,libsoup)
6161 ("libpeas" ,libpeas)
6162 ("librsvg" ,librsvg)
6163 ("lirc" ,lirc)
6164 ("gnome-desktop" ,gnome-desktop)
6165 ("gstreamer" ,gstreamer)
6166 ("gst-plugins-base" ,gst-plugins-base)
6167 ("gst-plugins-good" ,gst-plugins-good)
6168 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6169 ("adwaita-icon-theme" ,adwaita-icon-theme)
6170 ("python" ,python)
6171 ("python-pygobject" ,python-pygobject)
6172 ("totem-pl-parser" ,totem-pl-parser)
6173 ("grilo" ,grilo)
6174 ("grilo-plugins" ,grilo-plugins)
6175 ("vala" ,vala)))
6176 (arguments
6177 `(#:glib-or-gtk? #t
6178
6179 ;; Disable automatic GStreamer plugin installation via PackageKit and
6180 ;; all that.
6181 #:configure-flags '("-D" "enable-easy-codec-installation=no"
6182
6183 ;; Do not build .a files for the plugins, it's
6184 ;; completely useless. This saves 2 MiB.
6185 "--default-library" "shared")
6186 #:phases
6187 (modify-phases %standard-phases
6188 (add-after 'unpack 'skip-gtk-update-icon-cache
6189 ;; Don't create 'icon-theme.cache'.
6190 (lambda _
6191 (substitute* "meson_post_install.py"
6192 (("gtk-update-icon-cache") "true"))
6193 #t))
6194 (add-after 'unpack 'patch-failing-test
6195 (lambda _
6196 ;; Work around test failure with GStreamer 1.18, because the test
6197 ;; relies on "und" not being mapped to a particular language:
6198 ;; https://gitlab.gnome.org/GNOME/totem/-/issues/450
6199 (substitute* "src/test-totem.c"
6200 (("und") "nosuchlang"))
6201 #t))
6202 (add-before
6203 'install 'disable-cache-generation
6204 (lambda _
6205 (setenv "DESTDIR" "/")
6206 #t))
6207 (add-before
6208 'check 'pre-check
6209 (lambda _
6210 ;; Tests require a running X server.
6211 (system "Xvfb :1 &")
6212 (setenv "DISPLAY" ":1")
6213 #t))
6214 (add-after
6215 'install 'wrap-totem
6216 (lambda* (#:key inputs outputs #:allow-other-keys)
6217 (let ((out (assoc-ref outputs "out"))
6218 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
6219 (grl-plugin-path (getenv "GRL_PLUGIN_PATH")))
6220 (wrap-program (string-append out "/bin/totem")
6221 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
6222 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path)))
6223 (wrap-program (string-append out "/bin/totem-video-thumbnailer")
6224 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
6225 #t)))))
6226 (home-page "https://wiki.gnome.org/Apps/Videos")
6227 (synopsis "Simple media player for GNOME based on GStreamer")
6228 (description "Totem is a simple yet featureful media player for GNOME
6229 which can read a large number of file formats.")
6230 ;; GPL2+ with an exception clause for non-GPL compatible GStreamer plugins
6231 ;; to be used and distributed together with GStreamer and Totem. See
6232 ;; file://COPYING in the source distribution for details.
6233 (license license:gpl2+)))
6234
6235 (define-public rhythmbox
6236 (package
6237 (name "rhythmbox")
6238 (version "3.4.4")
6239 (source (origin
6240 (method url-fetch)
6241 (uri (string-append "mirror://gnome/sources/rhythmbox/"
6242 (version-major+minor version) "/"
6243 "rhythmbox-" version ".tar.xz"))
6244 (sha256
6245 (base32
6246 "142xcvw4l19jyr5i72nbnrihs953pvrrzcbijjn9dxmxszbv03pf"))))
6247 (build-system glib-or-gtk-build-system)
6248 (arguments
6249 `(#:configure-flags
6250 (list "--enable-lirc"
6251 "--enable-python"
6252 "--enable-vala"
6253 "--with-brasero"
6254 "--with-gudev"
6255 "--with-libsecret")
6256 #:phases
6257 (modify-phases %standard-phases
6258 (add-after
6259 'install 'wrap-rhythmbox
6260 (lambda* (#:key inputs outputs #:allow-other-keys)
6261 (let ((out (assoc-ref outputs "out"))
6262 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6263 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
6264 (grl-plugin-path (getenv "GRL_PLUGIN_PATH"))
6265 (python-path (getenv "PYTHONPATH")))
6266 (wrap-program (string-append out "/bin/rhythmbox")
6267 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6268 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
6269 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path))
6270 `("PYTHONPATH" ":" prefix (,python-path))))
6271 #t)))))
6272 (propagated-inputs
6273 `(("dconf" ,dconf)))
6274 (native-inputs
6275 `(("itstool" ,itstool)
6276 ("intltool" ,intltool)
6277 ("glib" ,glib "bin")
6278 ("gobject-introspection" ,gobject-introspection)
6279 ("desktop-file-utils" ,desktop-file-utils)
6280 ("pkg-config" ,pkg-config)
6281 ("xmllint" ,libxml2)))
6282 (inputs
6283 `(("json-glib" ,json-glib)
6284 ("tdb" ,tdb)
6285 ("gnome-desktop" ,gnome-desktop)
6286 ("python" ,python)
6287 ("python-pygobject" ,python2-pygobject)
6288 ("vala" ,vala)
6289 ("gmime" ,gmime)
6290 ("adwaita-icon-theme" ,adwaita-icon-theme)
6291 ("grilo" ,grilo)
6292 ("grilo-plugins" ,grilo-plugins)
6293 ("gstreamer" ,gstreamer)
6294 ("gst-plugins-base" ,gst-plugins-base)
6295 ("gst-plugins-good" ,gst-plugins-good)
6296 ("totem-pl-parser" ,totem-pl-parser)
6297 ("libgudev" ,libgudev)
6298 ;;("libmtp" ,libmtp) FIXME: Not detected
6299 ("libsecret" ,libsecret)
6300 ("libsoup" ,libsoup)
6301 ("libnotify" ,libnotify)
6302 ("libpeas" ,libpeas)
6303 ("lirc" ,lirc)
6304 ;; TODO: clutter* only used by visualizer plugin, which also requires mx
6305 ;;("clutter" ,clutter)
6306 ;;("clutter-gtk" ,clutter-gtk)
6307 ;;("clutter-gst" ,clutter-gst)
6308 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6309 ("atk" ,atk)
6310 ("pango" ,pango)
6311 ("gtk+" ,gtk+)
6312 ;; TODO:
6313 ;; * libgpod
6314 ;; * mx
6315 ("brasero" ,brasero)))
6316 (home-page "https://wiki.gnome.org/Apps/Rhythmbox")
6317 (synopsis "Music player for GNOME")
6318 (description "Rhythmbox is a music playing application for GNOME. It
6319 supports playlists, song ratings, and any codecs installed through gstreamer.")
6320 (license license:gpl2+)))
6321
6322 (define-public eog
6323 (package
6324 (name "eog")
6325 (version "3.34.1")
6326 (source (origin
6327 (method url-fetch)
6328 (uri (string-append "mirror://gnome/sources/" name "/"
6329 (version-major+minor version) "/"
6330 name "-" version ".tar.xz"))
6331 (sha256
6332 (base32
6333 "0b7ld4azs9xbdjsk9b91ywhdzvxgajhndiwiivxjzbr0hjgp7c7x"))))
6334 (build-system meson-build-system)
6335 (arguments
6336 `(#:configure-flags
6337 ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
6338 (list (string-append "-Dc_link_args=-Wl,-rpath="
6339 (assoc-ref %outputs "out") "/lib/eog"))
6340 #:phases
6341 (modify-phases %standard-phases
6342 (add-after 'unpack 'skip-gtk-update-icon-cache
6343 ;; Don't create 'icon-theme.cache'.
6344 (lambda _
6345 (substitute* "meson_post_install.py"
6346 (("gtk-update-icon-cache") "true"))
6347 #t))
6348 (add-after 'install 'wrap-eog
6349 (lambda* (#:key outputs #:allow-other-keys)
6350 (let ((out (assoc-ref outputs "out"))
6351 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
6352 (wrap-program (string-append out "/bin/eog")
6353 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6354 #t)))))
6355 (propagated-inputs
6356 `(("dconf" ,dconf)))
6357 (native-inputs
6358 `(("intltool" ,intltool)
6359 ("itstool" ,itstool)
6360 ("glib" ,glib "bin")
6361 ("gobject-introspection" ,gobject-introspection)
6362 ("pkg-config" ,pkg-config)
6363 ("xmllint" ,libxml2)))
6364 (inputs
6365 `(("gnome-desktop" ,gnome-desktop)
6366 ("shared-mime-info" ,shared-mime-info)
6367 ("adwaita-icon-theme" ,adwaita-icon-theme)
6368 ("exempi" ,exempi)
6369 ("lcms" ,lcms)
6370 ("libexif" ,libexif)
6371 ("libpeas" ,libpeas)
6372 ("libjpeg" ,libjpeg-turbo)
6373 ("librsvg" ,librsvg-next)
6374 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6375 ("gtk+" ,gtk+)))
6376 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
6377 (synopsis "GNOME image viewer")
6378 (description "Eye of GNOME is the GNOME image viewer. It
6379 supports image conversion, rotation, and slideshows.")
6380 (license license:gpl2+)))
6381
6382 (define-public eog-plugins
6383 ;; Note: EOG looks for its plugins (via libpeas) in ~/.local as well as
6384 ;; $DATA/lib/eog/plugins, where DATA is one of the entries in
6385 ;; $XDG_DATA_DIRS. Thus, for EOG to find these, you have to have
6386 ;; 'XDG_DATA_DIRS' appropriately set.
6387 (package
6388 (name "eog-plugins")
6389 (version "3.26.4")
6390 (source (origin
6391 (method url-fetch)
6392 (uri (string-append "mirror://gnome/sources/eog-plugins/"
6393 (version-major+minor version) "/"
6394 "eog-plugins-" version ".tar.xz"))
6395 (sha256
6396 (base32
6397 "0pd7fqa4ciy5844k5s1c6rlsqkk8pxd8cchxjcjhxlsngm9lynnx"))))
6398 (build-system gnu-build-system)
6399 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome/Plugins")
6400 (synopsis "Extensions for the Eye of GNOME image viewer")
6401 (native-inputs
6402 `(("pkg-config" ,pkg-config)
6403 ("gettext" ,gettext-minimal)))
6404 (inputs
6405 `(("eog" ,eog)
6406 ("glib" ,glib)
6407 ("gtk+" ,gtk+)
6408 ("libpeas" ,libpeas)
6409 ("libexif" ,libexif)
6410 ("libchamplain" ,libchamplain)))
6411 (description
6412 "This package provides plugins for the Eye of GNOME (EOG) image viewer,
6413 notably:
6414
6415 @itemize
6416 @item @dfn{EXIF Display}, which displays camera (EXIF) information;
6417 @item @dfn{Map}, which displays a map of where the picture was taken on the
6418 side panel;
6419 @item @dfn{Slideshow Shuffle}, to shuffle images in slideshow mode.
6420 @end itemize\n")
6421
6422 ;; XXX: eog-postasa-plugin-resources.c (which we don't build) contains a
6423 ;; long suspicious byte stream that goes to a
6424 ;; ".gresource.eog_postasa_plugin" ELF section.
6425 (license license:gpl2+)))
6426
6427 (define-public libgudev
6428 (package
6429 (name "libgudev")
6430 (version "232")
6431 (source (origin
6432 (method url-fetch)
6433 (uri (string-append "mirror://gnome/sources/" name "/"
6434 version "/" name "-" version ".tar.xz"))
6435 (sha256
6436 (base32
6437 "0q3qki451zzgdjazlgshsfzbbm0in40lyx7dyrag7kbkqnwv4k7f"))))
6438 (build-system gnu-build-system)
6439 (arguments
6440 '(#:configure-flags
6441 ;; umockdev depends on libgudev.
6442 (list "--disable-umockdev")))
6443 (native-inputs
6444 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6445 ("gobject-introspection" ,gobject-introspection)
6446 ("pkg-config" ,pkg-config)))
6447 (propagated-inputs
6448 `(("glib" ,glib))) ; required by gudev-1.0.pc
6449 (inputs
6450 `(("udev" ,eudev)))
6451 (home-page "https://wiki.gnome.org/Projects/libgudev")
6452 (synopsis "GObject bindings for libudev")
6453 (description
6454 "This library provides GObject bindings for libudev. It was originally
6455 part of udev-extras, then udev, then systemd. It's now a project on its own.")
6456 (license license:lgpl2.1+)))
6457
6458 (define-public gvfs
6459 (package
6460 (name "gvfs")
6461 (version "1.40.2")
6462 (source (origin
6463 (method url-fetch)
6464 (uri (string-append "mirror://gnome/sources/gvfs/"
6465 (version-major+minor version) "/"
6466 "gvfs-" version ".tar.xz"))
6467 (sha256
6468 (base32
6469 "07lpcfric3h0302n9b1pwa38mjb76r9s98kg2867y2d1qvzfivxx"))
6470 ;; This patch may be removed when upgrading to version 1.46.x.
6471 (patches
6472 (search-patches "gvfs-add-support-for-libplist-2.2.patch"))))
6473 (build-system meson-build-system)
6474 (arguments
6475 '(#:glib-or-gtk? #t
6476 #:configure-flags
6477 (list "-Dsystemduserunitdir=no"
6478 "-Dtmpfilesdir=no"
6479 ;; Otherwise, the RUNPATH will lack the final path component.
6480 (string-append "-Dc_link_args=-Wl,-rpath="
6481 (assoc-ref %outputs "out") "/lib/gvfs"))))
6482 (native-inputs
6483 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6484 ("gettext" ,gettext-minimal)
6485 ("gtk-doc" ,gtk-doc)
6486 ("pkg-config" ,pkg-config)
6487 ("xsltproc" ,libxslt)))
6488 (inputs
6489 `(("avahi" ,avahi)
6490 ("docbook-xml" ,docbook-xml-4.2)
6491 ("docbook-xsl" ,docbook-xsl)
6492 ("dbus" ,dbus)
6493 ("elogind" ,elogind)
6494 ("fuse" ,fuse)
6495 ("gcr" ,gcr)
6496 ("glib" ,glib)
6497 ("gnome-online-accounts" ,gnome-online-accounts)
6498 ("libarchive" ,libarchive)
6499 ("libbluray" ,libbluray)
6500 ("libcap" ,libcap)
6501 ("libcdio-paranoia" ,libcdio-paranoia)
6502 ("libgcrypt" ,libgcrypt)
6503 ("libgdata" ,libgdata)
6504 ("libgphoto2" ,libgphoto2)
6505 ("libgudev" ,libgudev)
6506 ("libimobiledevice" ,libimobiledevice)
6507 ("libmtp" ,libmtp)
6508 ("libnfs" ,libnfs)
6509 ("libsecret" ,libsecret)
6510 ("libsmbclient" ,samba)
6511 ("libsoup" ,libsoup)
6512 ("libxml2" ,libxml2)
6513 ("openssh" ,openssh)
6514 ("polkit" ,polkit)
6515 ("udisks" ,udisks)))
6516 ;; CVE-2019-{12447,12448,12449} are fixed in the 1.40.2 release.
6517 (properties '((lint-hidden-cve . ("CVE-2019-12447"
6518 "CVE-2019-12448"
6519 "CVE-2019-12449"))))
6520 (home-page "https://wiki.gnome.org/gvfs/")
6521 (synopsis "Userspace virtual file system for GIO")
6522 (description
6523 "GVFS is a userspace virtual file system designed to work with the I/O
6524 abstraction of GIO. It contains a GIO module that seamlessly adds GVFS support
6525 to all applications using the GIO API. It also supports exposing the GVFS
6526 mounts to non-GIO applications using FUSE.
6527
6528 GVFS comes with a set of backends, including trash support, SFTP, SMB, HTTP,
6529 DAV, and others.")
6530 (license license:lgpl2.0+)))
6531
6532 (define-public gusb
6533 (package
6534 (name "gusb")
6535 (version "0.3.5")
6536 (source (origin
6537 (method git-fetch)
6538 (uri (git-reference
6539 (url "https://github.com/hughsie/libgusb")
6540 (commit version)))
6541 (file-name (git-file-name name version))
6542 (sha256
6543 (base32
6544 "0ifhdqhpyxwsg0z9s1anj7cf5pya5qsqyp5ksh9n7mqwa4lrjkl8"))))
6545 (build-system meson-build-system)
6546 (native-inputs
6547 `(("gobject-introspection" ,gobject-introspection)
6548 ("pkg-config" ,pkg-config)
6549 ("vala" ,vala)
6550 ("gtk-doc" ,gtk-doc)))
6551 (propagated-inputs
6552 ;; Both of these are required by gusb.pc.
6553 `(("glib" ,glib)
6554 ("libusb" ,libusb)))
6555 (arguments
6556 `(#:tests? #f)) ;libusb fails to initialize. Wonder what that is.
6557 (home-page "https://github.com/hughsie/libgusb")
6558 (synopsis "GLib binding for libusb1")
6559 (description
6560 "GUsb is a GObject wrapper for libusb1 that makes it easy to do
6561 asynchronous control, bulk and interrupt transfers with proper cancellation
6562 and integration into a mainloop. This makes it easy to integrate low level
6563 USB transfers with your high-level application or system daemon.")
6564 (license license:lgpl2.1+)))
6565
6566 (define-public simple-scan
6567 (package
6568 (name "simple-scan")
6569 (version "3.38.2")
6570 (source
6571 (origin
6572 (method url-fetch)
6573 (uri (string-append "mirror://gnome/sources/simple-scan/"
6574 (version-major+minor version) "/"
6575 "simple-scan-" version ".tar.xz"))
6576 (sha256
6577 (base32 "02sdkhxgr6i7iy481h4xavgaqd0a5dlsipzwrm4qd242jrr813d8"))))
6578 (build-system meson-build-system)
6579 ;; TODO: Fix icons in home screen, About dialogue, and scan menu.
6580 (arguments
6581 '(#:glib-or-gtk? #t))
6582 (inputs
6583 `(("gtk" ,gtk+)
6584 ("zlib" ,zlib)
6585 ("cairo" ,cairo)
6586 ("colord" ,colord)
6587 ("gdk-pixbuf" ,gdk-pixbuf)
6588 ("gusb" ,gusb)
6589 ("libsane" ,sane-backends)))
6590 (native-inputs
6591 `(("gettext" ,gettext-minimal)
6592 ("itstool" ,itstool)
6593 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
6594 ("pkg-config" ,pkg-config)
6595 ("vala" ,vala)
6596 ("xmllint" ,libxml2)))
6597 (home-page "https://gitlab.gnome.org/GNOME/simple-scan")
6598 (synopsis "Document and image scanner")
6599 (description
6600 "Document Scanner is an easy-to-use application that lets you connect your
6601 scanner and quickly capture images and documents in an appropriate format. It
6602 supports any scanner for which a suitable SANE driver is available, which is
6603 almost all of them.")
6604 (license license:gpl3+)))
6605
6606 (define-public eolie
6607 (package
6608 (name "eolie")
6609 (version "0.9.101")
6610 (source (origin
6611 (method url-fetch)
6612 (uri (string-append "https://adishatz.org/eolie/eolie-"
6613 version ".tar.xz"))
6614 (sha256
6615 (base32
6616 "1v8n21y75abdzsnx5idyd0q6yfb6cd0sqbknlbkwh5fdgvjzyvwn"))))
6617 (build-system meson-build-system)
6618 (arguments
6619 `(#:glib-or-gtk? #t
6620 #:phases
6621 (modify-phases %standard-phases
6622 (add-after 'unpack 'skip-gtk-update-icon-cache
6623 ;; Don't create 'icon-theme.cache'.
6624 (lambda _
6625 (substitute* "meson_post_install.py"
6626 (("gtk-update-icon-cache") "true"))
6627 #t))
6628 (add-after 'wrap 'wrap-more
6629 (lambda* (#:key inputs outputs #:allow-other-keys)
6630 (let* ((out (assoc-ref outputs "out"))
6631 ;; These libraries must be on LD_LIBRARY_PATH.
6632 (libs '("gtkspell3" "webkitgtk" "libsoup" "libsecret"
6633 "atk" "gtk+" "gsettings-desktop-schemas"
6634 "gobject-introspection"))
6635 (path (string-join
6636 (map (lambda (lib)
6637 (string-append (assoc-ref inputs lib) "/lib"))
6638 libs)
6639 ":")))
6640 (wrap-program (string-append out "/bin/eolie")
6641 `("LD_LIBRARY_PATH" ":" prefix (,path))
6642 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
6643 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
6644 #t)))))
6645 (native-inputs
6646 `(("intltool" ,intltool)
6647 ("itstool" ,itstool)
6648 ("pkg-config" ,pkg-config)
6649 ("python" ,python)
6650 ("glib:bin" ,glib "bin")))
6651 (inputs
6652 `(("gobject-introspection" ,gobject-introspection)
6653 ("glib-networking" ,glib-networking)
6654 ("cairo" ,cairo)
6655 ("gtk+" ,gtk+)
6656 ("atk" ,atk) ; propagated by gtk+, but we need it in LD_LIBRARY_PATH
6657 ("python" ,python-wrapper)
6658 ("python-dateutil" ,python-dateutil)
6659 ("python-pyfxa" ,python-pyfxa)
6660 ("python-pygobject" ,python-pygobject)
6661 ("python-pycairo" ,python-pycairo)
6662 ("python-pycrypto" ,python-pycrypto)
6663 ("libsecret" ,libsecret)
6664 ("gtkspell3" ,gtkspell3)
6665 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6666 ("webkitgtk" ,webkitgtk)))
6667 (home-page "https://wiki.gnome.org/Apps/Eolie")
6668 (synopsis "Web browser for GNOME")
6669 (description
6670 "Eolie is a new web browser for GNOME. It features Firefox sync support,
6671 a secret password store, an adblocker, and a modern UI.")
6672 (license license:gpl3+)))
6673
6674 (define-public epiphany
6675 (package
6676 (name "epiphany")
6677 (version "3.34.4")
6678 (source (origin
6679 (method url-fetch)
6680 (uri (string-append "mirror://gnome/sources/epiphany/"
6681 (version-major+minor version) "/"
6682 "epiphany-" version ".tar.xz"))
6683 (sha256
6684 (base32
6685 "13ar3s40cds1rplwbzx0fzigf120w0rydiv05r3k6zpc0zy91qb0"))))
6686
6687 (build-system meson-build-system)
6688 (arguments
6689 '(#:glib-or-gtk? #t
6690 #:phases
6691 (modify-phases %standard-phases
6692 (add-after 'unpack 'skip-gtk-update-icon-cache
6693 ;; Don't create 'icon-theme.cache'.
6694 (lambda _
6695 (substitute* "post_install.py"
6696 (("gtk-update-icon-cache") "true"))
6697 #t))
6698 (add-after 'unpack 'disable-failing-tests
6699 (lambda _
6700 (substitute* "tests/meson.build"
6701 ;; embed_shell fails, because webkitgtk apparently no longer supports
6702 ;; overriding the ftp schema
6703 ;; web_app_utils fails due to missing network access
6704 (("(embed_shell|web_app_utils)_test,")
6705 "find_program('sh'), args: ['-c', 'exit 77'],"))
6706 #t))
6707 (add-before 'check 'pre-check
6708 (lambda _
6709 ;; Tests require a running X server.
6710 (system "Xvfb :1 &")
6711 (setenv "DISPLAY" ":1")
6712 #t)))
6713 #:configure-flags
6714 ;; Otherwise, the RUNPATH will lack the final 'epiphany' path component.
6715 (list (string-append "-Dc_link_args=-Wl,-rpath="
6716 (assoc-ref %outputs "out") "/lib/epiphany"))))
6717 (propagated-inputs
6718 `(("dconf" ,dconf)))
6719 (native-inputs
6720 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6721 ("glib:bin" ,glib "bin") ; for glib-mkenums
6722 ("intltool" ,intltool)
6723 ("itstool" ,itstool)
6724 ("pkg-config" ,pkg-config)
6725 ("xmllint" ,libxml2)
6726 ("xorg-server" ,xorg-server-for-tests)))
6727 (inputs
6728 `(("avahi" ,avahi)
6729 ("gcr" ,gcr)
6730 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg) ; for loading SVG files
6731 ("glib-networking" ,glib-networking)
6732 ("gnome-desktop" ,gnome-desktop)
6733 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6734 ("json-glib" ,json-glib)
6735 ("iso-codes" ,iso-codes)
6736 ("libdazzle" ,libdazzle)
6737 ("libnotify" ,libnotify)
6738 ("libsecret" ,libsecret)
6739 ("libxslt" ,libxslt)
6740 ("nettle" ,nettle) ; for hogweed
6741 ("sqlite" ,sqlite)
6742 ("webkitgtk" ,webkitgtk)))
6743 (home-page "https://wiki.gnome.org/Apps/Web")
6744 (synopsis "GNOME web browser")
6745 (description
6746 "Epiphany is a GNOME web browser targeted at non-technical users. Its
6747 principles are simplicity and standards compliance.")
6748 (license license:gpl2+)))
6749
6750 (define-public d-feet
6751 (package
6752 (name "d-feet")
6753 (version "0.3.14")
6754 (source (origin
6755 (method url-fetch)
6756 (uri (string-append "mirror://gnome/sources/" name "/"
6757 (version-major+minor version) "/"
6758 name "-" version ".tar.xz"))
6759 (sha256
6760 (base32
6761 "1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f"))))
6762 (build-system glib-or-gtk-build-system)
6763 (arguments
6764 '(#:out-of-source? #f ; tests need to run in the source directory.
6765 #:phases
6766 (modify-phases %standard-phases
6767 (add-before
6768 'check 'pre-check
6769 (lambda _
6770 ;; The test suite requires a running X server.
6771 (system "Xvfb :1 &")
6772 (setenv "DISPLAY" ":1")
6773 ;; Don't fail on missing '/etc/machine-id'.
6774 (setenv "DBUS_FATAL_WARNINGS" "0")
6775 ;; tests.py and window.py don't meet E402:
6776 ;; E402 module level import not at top of file
6777 (substitute* "src/tests/Makefile"
6778 (("--ignore=E123") "--ignore=E123,E402"))
6779 #t))
6780 (add-after
6781 'install 'wrap-program
6782 (lambda* (#:key outputs #:allow-other-keys)
6783 (let ((prog (string-append (assoc-ref outputs "out")
6784 "/bin/d-feet")))
6785 (wrap-program prog
6786 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
6787 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
6788 #t))))))
6789 (native-inputs
6790 `(("intltool" ,intltool)
6791 ("itstool" ,itstool)
6792 ("pkg-config" ,pkg-config)
6793 ("python-pep8" ,python-pep8)
6794 ("xmllint" ,libxml2)
6795 ("xorg-server" ,xorg-server-for-tests)))
6796 (inputs
6797 `(("gobject-introspection" ,gobject-introspection)
6798 ("gtk+" ,gtk+)
6799 ("python" ,python-wrapper)
6800 ("hicolor-icon-theme" ,hicolor-icon-theme)
6801 ("python-pygobject" ,python-pygobject)))
6802 (home-page "https://wiki.gnome.org/Apps/DFeet")
6803 (synopsis "D-Bus debugger")
6804 (description
6805 "D-Feet is a D-Bus debugger, which can be used to inspect D-Bus interfaces
6806 of running programs and invoke methods on those interfaces.")
6807 (license license:gpl2+)))
6808
6809 (define-public yelp-xsl
6810 (package
6811 (name "yelp-xsl")
6812 (version "3.34.2")
6813 (source
6814 (origin
6815 (method url-fetch)
6816 (uri
6817 (string-append "mirror://gnome/sources/" name "/"
6818 (version-major+minor version) "/"
6819 name "-" version ".tar.xz"))
6820 (sha256
6821 (base32 "1bdpgkzawhqmw52l6zx8czzg1ndfgcf1p44m2bxjdpqkc4afcgqc"))))
6822 (build-system gnu-build-system)
6823 (native-inputs
6824 `(("gettext-minimal" ,gettext-minimal)
6825 ("itstool" ,itstool)
6826 ("xmllint" ,libxml2)))
6827 (synopsis "XSL stylesheets for Yelp")
6828 (description "Yelp-XSL is a collection of programs and data files to help
6829 you build, maintain, and distribute documentation. It provides XSLT stylesheets
6830 that can be built upon for help viewers and publishing systems. These
6831 stylesheets output JavaScript and CSS content, and reference images
6832 provided by yelp-xsl. It also redistributes copies of the jQuery and
6833 jQuery.Syntax JavaScript libraries.")
6834 (home-page "https://wiki.gnome.org/Apps/Yelp")
6835 (license
6836 (list
6837 ;; XSLT
6838 license:gpl2+
6839 ;; Images
6840 license:lgpl2.1+
6841 ;; JavaScript
6842 license:expat))))
6843
6844 (define-public yelp
6845 (package
6846 (name "yelp")
6847 (version "3.32.2")
6848 (source (origin
6849 (method url-fetch)
6850 (uri (string-append "mirror://gnome/sources/" name "/"
6851 (version-major+minor version) "/"
6852 name "-" version ".tar.xz"))
6853 (sha256
6854 (base32
6855 "0yrl96icmmrxvg7sxl519gzg9qb368cmzgrr9ddh181ignkxzx7f"))))
6856 (build-system glib-or-gtk-build-system)
6857 (native-inputs
6858 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6859 ("intltool" ,intltool)
6860 ("itstool" ,itstool)
6861 ("pkg-config" ,pkg-config)))
6862 (propagated-inputs
6863 `(("dconf" ,dconf)))
6864 (inputs
6865 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6866 ("libxslt" ,libxslt)
6867 ("sqlite" ,sqlite)
6868 ("webkitgtk" ,webkitgtk)
6869 ("yelp-xsl" ,yelp-xsl)))
6870 (home-page "https://wiki.gnome.org/Apps/Yelp")
6871 (synopsis "GNOME help browser")
6872 (description
6873 "Yelp is the help viewer in Gnome. It natively views Mallard, DocBook,
6874 man, info, and HTML documents. It can locate documents according to the
6875 freedesktop.org help system specification.")
6876 (license license:gpl2+)))
6877
6878 (define-public yelp-tools
6879 (package
6880 (name "yelp-tools")
6881 (version "3.32.2")
6882 (source
6883 (origin
6884 (method url-fetch)
6885 (uri
6886 (string-append "mirror://gnome/sources/" name "/"
6887 (version-major+minor version) "/"
6888 name "-" version ".tar.xz"))
6889 (sha256
6890 (base32 "1yg8f5g5wadhmy4yfd9yjhvd8vll4gq4l86ibp0b42qbxnsmcf0q"))))
6891 (build-system gnu-build-system)
6892 (native-inputs
6893 `(("pkg-config" ,pkg-config)))
6894 (inputs
6895 `(("yelp-xsl" ,yelp-xsl)))
6896 (propagated-inputs
6897 ;; Needed by `yelp-build', `yelp-check' or 'yelp.m4'.
6898 `(("itstool" ,itstool)
6899 ("xmllint" ,libxml2)
6900 ("xsltproc" ,libxslt)))
6901 (synopsis "Yelp documentation tools")
6902 (description
6903 "Yelp-tools is a collection of scripts and build utilities to help create,
6904 manage, and publish documentation for Yelp and the web. Most of the heavy
6905 lifting is done by packages like yelp-xsl and itstool. This package just
6906 wraps things up in a developer-friendly way.")
6907 (home-page "https://wiki.gnome.org/Apps/Yelp/Tools")
6908 (license license:gpl2+)))
6909
6910 (define-public libgee
6911 (package
6912 (name "libgee")
6913 (version "0.20.3")
6914 (source (origin
6915 (method url-fetch)
6916 (uri (string-append "mirror://gnome/sources/libgee/"
6917 (version-major+minor version) "/"
6918 "libgee-" version ".tar.xz"))
6919 (sha256
6920 (base32
6921 "1pm525wm11dhwz24m8bpcln9547lmrigl6cxf3qsbg4cr3pyvdfh"))))
6922 (build-system gnu-build-system)
6923 (arguments
6924 `(#:phases
6925 (modify-phases %standard-phases
6926 (add-after 'unpack 'fix-introspection-install-dir
6927 (lambda* (#:key outputs #:allow-other-keys)
6928 (let ((out (assoc-ref outputs "out")))
6929 (substitute* "gee/Makefile.in"
6930 (("@INTROSPECTION_GIRDIR@")
6931 (string-append out "/share/gir-1.0/"))
6932 (("@INTROSPECTION_TYPELIBDIR@")
6933 (string-append out "/lib/girepository-1.0/")))))))))
6934 (native-inputs
6935 `(("glib" ,glib "bin")
6936 ("pkg-config" ,pkg-config)))
6937 (inputs
6938 `(("glib" ,glib)
6939 ("gobject-introspection" ,gobject-introspection)))
6940 (home-page "https://wiki.gnome.org/Projects/Libgee")
6941 (synopsis "GObject collection library")
6942 (description
6943 "Libgee is a utility library providing GObject-based interfaces and
6944 classes for commonly used data structures.")
6945 (license license:lgpl2.1+)))
6946
6947 (define-public gexiv2
6948 (package
6949 (name "gexiv2")
6950 (version "0.12.2")
6951 (source (origin
6952 (method url-fetch)
6953 (uri (string-append "mirror://gnome/sources/" name "/"
6954 (version-major+minor version) "/"
6955 name "-" version ".tar.xz"))
6956 (sha256
6957 (base32
6958 "0k4ljzzz5dwqndw8awvlw3ala8rh3b2rk9i4jzvywc53mi9ba8i3"))))
6959 (build-system meson-build-system)
6960 (native-inputs
6961 `(("gcr" ,gcr)
6962 ("glib" ,glib "bin")
6963 ("pkg-config" ,pkg-config)
6964 ("vala" ,vala)))
6965 (propagated-inputs
6966 ;; Listed in "Requires" section of gexiv2.pc
6967 `(("exiv2" ,exiv2)))
6968 (inputs
6969 `(("glib" ,glib)
6970 ("gobject-introspection" ,gobject-introspection)))
6971 (home-page "https://wiki.gnome.org/Projects/gexiv2")
6972 (synopsis "GObject wrapper around the Exiv2 photo metadata library")
6973 (description
6974 "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library. It
6975 allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
6976 metadata in photo and video files of various formats.")
6977 (license license:gpl2+)))
6978
6979 (define-public shotwell
6980 (package
6981 (name "shotwell")
6982 (version "0.30.11")
6983 (source (origin
6984 (method url-fetch)
6985 (uri (string-append "mirror://gnome/sources/shotwell/"
6986 (version-major+minor version) "/"
6987 "shotwell-" version ".tar.xz"))
6988 (sha256
6989 (base32
6990 "12d26y40kjlv5x8f5g04wff33vh7mdjb8c41ydqbrwdip0jwy2n2"))))
6991 (build-system meson-build-system)
6992 (arguments
6993 '(#:glib-or-gtk? #t
6994 #:phases
6995 (modify-phases %standard-phases
6996 (add-after 'unpack 'skip-gtk-update-icon-cache
6997 (lambda _
6998 (substitute* "build-aux/meson/postinstall.py"
6999 (("gtk-update-icon-cache") (which "true"))
7000 (("update-desktop-database") (which "true")))
7001 #t)))))
7002 (propagated-inputs
7003 `(("dconf" ,dconf)))
7004 (native-inputs
7005 `(("gettext" ,gettext-minimal)
7006 ("glib:bin" ,glib "bin")
7007 ("itstool" ,itstool)
7008 ("pkg-config" ,pkg-config)
7009 ("vala" ,vala)))
7010 (inputs
7011 `(("gcr" ,gcr)
7012 ("gexiv2" ,gexiv2)
7013 ("gst-plugins-base" ,gst-plugins-base)
7014 ("gstreamer" ,gstreamer)
7015 ("json-glib" ,json-glib)
7016 ("libgdata" ,libgdata)
7017 ("libgee" ,libgee)
7018 ("libgphoto2" ,libgphoto2)
7019 ("libgudev" ,libgudev)
7020 ("libraw" ,libraw)
7021 ("libsoup" ,libsoup)
7022 ("libxml2" ,libxml2)
7023 ("sqlite" ,sqlite)
7024 ("webkitgtk" ,webkitgtk)))
7025 (home-page "https://wiki.gnome.org/Apps/Shotwell")
7026 (synopsis "Photo manager for GNOME 3")
7027 (description
7028 "Shotwell is a digital photo manager designed for the GNOME desktop
7029 environment. It allows you to import photos from disk or camera, organize
7030 them by keywords and events, view them in full-window or fullscreen mode, and
7031 share them with others via social networking and more.")
7032 (license license:lgpl2.1+)))
7033
7034 (define-public file-roller
7035 (package
7036 (name "file-roller")
7037 (version "3.38.0")
7038 (source (origin
7039 (method url-fetch)
7040 (uri (string-append "mirror://gnome/sources/file-roller/"
7041 (version-major+minor version) "/"
7042 "file-roller-" version ".tar.xz"))
7043 (sha256
7044 (base32
7045 "06ikvjjcgb8nxabkn2rywy76a1c7s6w8dszaxvaxldbxarp1qgbj"))))
7046 (build-system meson-build-system)
7047 (native-inputs
7048 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7049 ("intltool" ,intltool)
7050 ("itstool" ,itstool)
7051 ("pkg-config" ,pkg-config)
7052 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
7053 ("glib:bin" ,glib "bin")))
7054 ;; TODO: Add libnautilus.
7055 (inputs
7056 `(("gtk+" ,gtk+)
7057 ("gdk-pixbuf" ,gdk-pixbuf)
7058 ("json-glib" ,json-glib)
7059 ("libarchive" ,libarchive)
7060 ("libnotify" ,libnotify)
7061 ("nettle" ,nettle)
7062 ("libxml2" ,libxml2)))
7063 (synopsis "Graphical archive manager for GNOME")
7064 (description "File Roller is an archive manager for the GNOME desktop
7065 environment that allows users to view, unpack, and create compressed archives
7066 such as gzip tarballs.")
7067 (home-page "http://fileroller.sourceforge.net/")
7068 (license license:gpl2+)))
7069
7070 (define-public gnome-session
7071 (package
7072 (name "gnome-session")
7073 (version "3.34.2")
7074 (source (origin
7075 (method url-fetch)
7076 (uri (string-append "mirror://gnome/sources/" name "/"
7077 (version-major+minor version) "/"
7078 name "-" version ".tar.xz"))
7079 (sha256
7080 (base32
7081 "1qgqp97f8k2zi2ydvhds14zsjzfj7cv521r6wx5sw0qacn0p7dwb"))))
7082 (arguments
7083 '(#:glib-or-gtk? #t
7084 #:phases
7085 (modify-phases %standard-phases
7086 (add-before 'configure 'pre-configure
7087 (lambda* (#:key outputs #:allow-other-keys)
7088 ;; Use elogind instead of systemd.
7089 (substitute* "meson.build"
7090 (("libsystemd-login") "libelogind")
7091 (("and libsystemd_daemon_dep.found.*") ","))
7092 (substitute* "gnome-session/gsm-systemd.c"
7093 (("#include <systemd/sd-login.h>")
7094 "#include <elogind/sd-login.h>"))
7095 ;; Remove uses of the systemd daemon.
7096 (substitute* "gnome-session/gsm-autostart-app.c"
7097 (("#ifdef HAVE_SYSTEMD") "#if 0"))
7098 #t))
7099 (add-after 'install 'wrap-gnome-session
7100 (lambda* (#:key inputs outputs #:allow-other-keys)
7101 ;; Make sure 'gnome-session' finds the 'gsettings' program.
7102 (let ((glib (assoc-ref inputs "glib:bin"))
7103 (out (assoc-ref outputs "out")))
7104 (wrap-program (string-append out "/bin/gnome-session")
7105 `("PATH" ":" prefix (,(string-append glib "/bin"))))
7106 #t))))
7107
7108 #:configure-flags
7109 '("-Ddocbook=false" ; FIXME: disabled because of docbook validation error
7110 "-Dman=false" ; FIXME: disabled because of docbook validation error
7111 "-Dsystemd_journal=false")))
7112 (build-system meson-build-system)
7113 (native-inputs
7114 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7115 ("pkg-config" ,pkg-config)
7116 ("intltool" ,intltool)
7117 ("xsltproc" ,libxslt)
7118 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
7119 ("docbook-xsl" ,docbook-xsl)
7120 ("docbook-xml" ,docbook-xml)
7121 ("xmlto" ,xmlto)))
7122 (inputs
7123 `(("elogind" ,elogind)
7124 ("gnome-desktop" ,gnome-desktop)
7125 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7126 ("gtk+" ,gtk+)
7127 ("json-glib" ,json-glib)
7128 ("libsm" ,libsm)
7129 ("libxcomposite" ,libxcomposite)
7130 ("libxtst" ,libxtst)
7131 ("mesa" ,mesa)
7132 ("upower" ,upower)
7133 ("xtrans" ,xtrans)))
7134 (synopsis "Session manager for GNOME")
7135 (description
7136 "This package contains the GNOME session manager, as well as a
7137 configuration program to choose applications starting on login.")
7138 (home-page "https://wiki.gnome.org/Projects/SessionManagement")
7139 (license license:gpl2+)))
7140
7141 (define-public gjs
7142 (package
7143 (name "gjs")
7144 (version "1.58.3")
7145 (source (origin
7146 (method url-fetch)
7147 (uri (string-append "mirror://gnome/sources/" name "/"
7148 (version-major+minor version) "/"
7149 name "-" version ".tar.xz"))
7150 (sha256
7151 (base32
7152 "1bkksx362007zs8c31ydygb29spwa5g5kch1ad2grc2sp53wv7ya"))))
7153 (build-system gnu-build-system)
7154 (arguments
7155 '(#:phases
7156 (modify-phases %standard-phases
7157 (add-before
7158 'check 'pre-check
7159 (lambda _
7160 ;; The test suite requires a running X server.
7161 (system "Xvfb :1 &")
7162 (setenv "DISPLAY" ":1")
7163
7164 ;; For the missing /etc/machine-id.
7165 (setenv "DBUS_FATAL_WARNINGS" "0")
7166
7167 ;; Our mozjs-38 package does not compile the required Intl API
7168 ;; support for these failing tests.
7169 (substitute* "installed-tests/js/testLocale.js"
7170 ((".*toBeDefined.*") "")
7171 ((".*expect\\(datestr\\).*") ""))
7172 (substitute* "installed-tests/scripts/testCommandLine.sh"
7173 (("Valentín") "")
7174 (("☭") ""))
7175 #t)))))
7176 (native-inputs
7177 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
7178 ("pkg-config" ,pkg-config)
7179 ("xmllint" ,libxml2)
7180 ;; For testing
7181 ("dbus-launch" ,dbus)
7182 ("dconf" ,dconf) ; required to properly store settings
7183 ("uuidgen" ,util-linux)
7184 ("xvfb" ,xorg-server-for-tests)))
7185 (propagated-inputs
7186 ;; These are all in the Requires.private field of gjs-1.0.pc.
7187 `(("cairo" ,cairo)
7188 ("gobject-introspection" ,gobject-introspection)
7189 ("mozjs" ,mozjs-60)))
7190 (inputs
7191 `(("gtk+" ,gtk+)
7192 ("readline" ,readline)))
7193 (synopsis "Javascript bindings for GNOME")
7194 (home-page "https://live.gnome.org/Gjs")
7195 (description
7196 "Gjs is a javascript binding for GNOME. It's mainly based on spidermonkey
7197 javascript engine and the GObject introspection framework.")
7198 (license license:gpl2+)))
7199
7200 (define-public gedit
7201 (package
7202 (name "gedit")
7203 (version "3.34.1")
7204 (source (origin
7205 (method url-fetch)
7206 (uri (string-append "mirror://gnome/sources/" name "/"
7207 (version-major+minor version) "/"
7208 name "-" version ".tar.xz"))
7209 (sha256
7210 (base32
7211 "1inm50sdfw63by1lf4f1swb59mpyxlly0g5rdg99j5l3357fzygb"))))
7212 (build-system meson-build-system)
7213 (arguments
7214 `(#:glib-or-gtk? #t
7215 #:configure-flags
7216 ;; Otherwise, the RUNPATH will lack the final path component.
7217 (list (string-append "-Dc_link_args=-Wl,-rpath="
7218 (assoc-ref %outputs "out") "/lib/gedit"))
7219
7220 ;; XXX: Generated .h files are sometimes used before being built.
7221 #:parallel-build? #f
7222
7223 #:phases
7224 (modify-phases %standard-phases
7225 (add-after 'unpack 'skip-gtk-update-icon-cache
7226 ;; Don't create 'icon-theme.cache'.
7227 (lambda _
7228 (substitute* "build-aux/meson/post_install.py"
7229 (("gtk-update-icon-cache") (which "true")))
7230 #t))
7231 (add-after 'unpack 'patch-libgd-fetch
7232 (lambda* (#:key inputs #:allow-other-keys)
7233 (let ((libgd (assoc-ref inputs "libgd")))
7234 ;; Calling git is unnecessary because libgd is fetched as a
7235 ;; native input to this package.
7236 (substitute* "meson.build"
7237 ((".*git.*") ""))
7238 (copy-recursively libgd "subprojects/libgd")
7239 #t)))
7240 (add-after 'install 'wrap-gedit
7241 (lambda* (#:key inputs outputs #:allow-other-keys)
7242 (let ((out (assoc-ref outputs "out"))
7243 (gtksourceview (assoc-ref inputs "gtksourceview"))
7244 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
7245 (python-path (getenv "PYTHONPATH")))
7246 (wrap-program (string-append out "/bin/gedit")
7247 ;; For plugins.
7248 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
7249 `("PYTHONPATH" ":" prefix (,python-path))
7250 ;; For language-specs.
7251 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
7252 "/share")))))
7253 #t)))))
7254 (propagated-inputs
7255 `(("dconf" ,dconf)))
7256 (native-inputs
7257 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7258 ("intltool" ,intltool)
7259 ("itstool" ,itstool)
7260 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
7261 ("gobject-introspection" ,gobject-introspection)
7262 ("libgd"
7263 ,(origin
7264 (method git-fetch)
7265 (uri (git-reference
7266 (url "https://gitlab.gnome.org/GNOME/libgd")
7267 (commit "c7c7ff4e05d3fe82854219091cf116cce6b19de0")))
7268 (file-name (git-file-name "libgd" version))
7269 (sha256
7270 (base32 "16yld0ap7qj1n96h4f2sqkjmibg7xx5xwkqxdfzam2nmyfdlrrrs"))))
7271 ("pkg-config" ,pkg-config)))
7272 (inputs
7273 `(("glib" ,glib)
7274 ("gspell" ,gspell)
7275 ("gtk+" ,gtk+)
7276 ("gtksourceview" ,gtksourceview)
7277 ("libpeas" ,libpeas)
7278 ("libxml2" ,libxml2)
7279 ("iso-codes" ,iso-codes)
7280 ("python-pygobject" ,python-pygobject)
7281 ("python" ,python)
7282 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7283 ("libx11" ,libx11)
7284 ("vala" ,vala)
7285 ("adwaita-icon-theme" ,adwaita-icon-theme)
7286 ("libsoup" ,libsoup)
7287 ("gnome-desktop" ,gnome-desktop)))
7288 (home-page "https://wiki.gnome.org/Apps/Gedit")
7289 (synopsis "GNOME text editor")
7290 (description "While aiming at simplicity and ease of use, gedit is a
7291 powerful general purpose text editor.")
7292 (license license:gpl2+)))
7293
7294 (define-public zenity
7295 (package
7296 (name "zenity")
7297 (version "3.32.0")
7298 (source (origin
7299 (method url-fetch)
7300 (uri (string-append "mirror://gnome/sources/zenity/"
7301 (version-major+minor version) "/"
7302 "zenity-" version ".tar.xz"))
7303 (sha256
7304 (base32
7305 "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7"))))
7306 (build-system gnu-build-system)
7307 (native-inputs
7308 `(("gettext" ,gettext-minimal)
7309 ("itstool" ,itstool)
7310 ("pkg-config" ,pkg-config)))
7311 (inputs
7312 `(("libnotify" ,libnotify)
7313 ("webkitgtk" ,webkitgtk)))
7314 (synopsis "Display graphical dialog boxes from shell scripts")
7315 (home-page "https://www.gnome.org")
7316 (description
7317 "Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you
7318 to display dialog boxes from the commandline and shell scripts.")
7319 (license license:lgpl2.0+)))
7320
7321 (define-public mutter
7322 (package
7323 (name "mutter")
7324 (version "3.34.2")
7325 (source (origin
7326 (method url-fetch)
7327 (uri (string-append "mirror://gnome/sources/" name "/"
7328 (version-major+minor version) "/"
7329 name "-" version ".tar.xz"))
7330 (sha256
7331 (base32
7332 "0b8bz5kvs7rlwvqsg87cf6jhrrj95vgd1l235mjx8rip35ipfvrd"))))
7333 ;; NOTE: Since version 3.21.x, mutter now bundles and exports forked
7334 ;; versions of cogl and clutter. As a result, many of the inputs,
7335 ;; propagated-inputs, and configure flags used in cogl and clutter are
7336 ;; needed here as well.
7337 (build-system meson-build-system)
7338 (arguments
7339 '(;; XXX: All mutter tests fail with the following error:
7340 ;; Settings schema 'org.gnome.mutter' is not installed
7341 #:tests? #f
7342 #:glib-or-gtk? #t
7343 #:configure-flags
7344 ;; TODO: Enable profiler when Sysprof is packaged.
7345 (list "-Dprofiler=false"
7346 ;; Otherwise, the RUNPATH will lack the final path component.
7347 (string-append "-Dc_link_args=-Wl,-rpath="
7348 (assoc-ref %outputs "out") "/lib:"
7349 (assoc-ref %outputs "out") "/lib/mutter-5")
7350
7351 ;; The following flags are needed for the bundled clutter
7352 (string-append "-Dxwayland_path="
7353 (assoc-ref %build-inputs "xorg-server-xwayland")
7354 "/bin/Xwayland")
7355
7356 ;; the remaining flags are needed for the bundled cogl
7357 (string-append "-Dopengl_libname="
7358 (assoc-ref %build-inputs "mesa")
7359 "/lib/libGL.so"))
7360 #:phases (modify-phases %standard-phases
7361 (add-after 'unpack 'fix-build-with-mesa-20
7362 (lambda _
7363 ;; Mimic upstream commit a444a4c5f58ea516ad for
7364 ;; compatibility with Mesa 20. Remove for 3.36.
7365 (substitute* '("src/backends/meta-egl-ext.h"
7366 "src/backends/meta-egl.c"
7367 "src/backends/meta-egl.h")
7368 (("#include <EGL/eglext\\.h>" all)
7369 (string-append all "\n#include <EGL/eglmesaext.h>")))
7370 (substitute* "cogl/cogl/meson.build"
7371 (("#include <EGL/eglext\\.h>" all)
7372 (string-append all "\\n#include <EGL/eglmesaext.h>")))
7373 #t)))))
7374 (native-inputs
7375 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7376 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7377 ("gobject-introspection" ,gobject-introspection)
7378 ("intltool" ,intltool)
7379 ("pkg-config" ,pkg-config)
7380 ("xorg-server" ,xorg-server-for-tests)
7381 ;; For git build
7382 ("autoconf" ,autoconf)
7383 ("automake" ,automake)
7384 ("libtool" ,libtool)))
7385 (propagated-inputs
7386 `(;; libmutter.pc refers to these:
7387 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7388 ("gtk+" ,gtk+)
7389 ;; mutter-clutter-1.0.pc and mutter-cogl-1.0.pc refer to these:
7390 ("atk" ,atk)
7391 ("cairo" ,cairo)
7392 ("gdk-pixbuf" ,gdk-pixbuf)
7393 ("glib" ,glib)
7394 ("json-glib" ,json-glib)
7395 ("libinput" ,libinput)
7396 ("libx11" ,libx11)
7397 ("libxcomposite" ,libxcomposite)
7398 ("libxdamage" ,libxdamage)
7399 ("libxext" ,libxext)
7400 ("libxfixes" ,libxfixes)
7401 ("libxkbcommon" ,libxkbcommon)
7402 ("libxrandr" ,libxrandr)
7403 ("mesa" ,mesa)
7404 ("pango" ,pango)
7405 ("udev" ,eudev)
7406 ("xinput" ,xinput)))
7407 (inputs
7408 `(("elogind" ,elogind)
7409 ("gnome-desktop" ,gnome-desktop)
7410 ("gnome-settings-daemon" ,gnome-settings-daemon)
7411 ("libcanberra-gtk" ,libcanberra)
7412 ("libgudev" ,libgudev)
7413 ("libice" ,libice)
7414 ("libsm" ,libsm)
7415 ("libwacom" ,libwacom)
7416 ("libxkbfile" ,libxkbfile)
7417 ("libxrandr" ,libxrandr)
7418 ("libxtst" ,libxtst)
7419 ("pipewire" ,pipewire)
7420 ("startup-notification" ,startup-notification)
7421 ("upower-glib" ,upower)
7422 ("xkeyboard-config" ,xkeyboard-config)
7423 ("xorg-server-xwayland" ,xorg-server-xwayland)
7424 ("zenity" ,zenity)))
7425 (synopsis "Window and compositing manager")
7426 (home-page "https://www.gnome.org")
7427 (description
7428 "Mutter is a window and compositing manager that displays and manages your
7429 desktop via OpenGL. Mutter combines a sophisticated display engine using the
7430 Clutter toolkit with solid window-management logic inherited from the Metacity
7431 window manager.")
7432 (license license:gpl2+)))
7433
7434 (define-public gnome-online-accounts
7435 (package
7436 (name "gnome-online-accounts")
7437 (version "3.36.0")
7438 (source (origin
7439 (method url-fetch)
7440 (uri (string-append "mirror://gnome/sources/" name "/"
7441 (version-major+minor version) "/"
7442 name "-" version ".tar.xz"))
7443 (sha256
7444 (base32
7445 "0bigfi225g1prnxpb9lcc1i7mdcrkplwb05vilc43jik12cn53qw"))))
7446 (outputs '("out" "lib"))
7447 (build-system glib-or-gtk-build-system)
7448 (arguments
7449 `(#:configure-flags
7450 (list (string-append "--libdir=" (assoc-ref %outputs "out") "/lib"))
7451 #:phases
7452 (modify-phases %standard-phases
7453 (add-before 'configure 'patch-libgoa-output
7454 (lambda* (#:key outputs #:allow-other-keys)
7455 (let ((lib (assoc-ref outputs "lib")))
7456 (substitute* '("src/goa/Makefile.in" "src/goa/goa-1.0.pc.in")
7457 (("@prefix@") lib)
7458 (("@exec_prefix@") lib)
7459 (("@libdir@") (string-append lib "/lib"))
7460 (("@includedir@") (string-append lib "/include"))
7461 (("@datadir@") (string-append lib "/share")))
7462 ;; Make sure gobject-introspection knows about the output
7463 ;; too (see <https://bugs.gnu.org/36535>).
7464 (setenv "outputs" "out lib")
7465 #t))))))
7466 (native-inputs
7467 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7468 ("gobject-introspection" ,gobject-introspection)
7469 ("intltool" ,intltool)
7470 ("pkg-config" ,pkg-config)
7471 ("vala" ,vala)
7472 ("xsltproc" ,libxslt)))
7473 (propagated-inputs
7474 `(("glib" ,glib) ; required by goa-1.0.pc
7475 ("gtk+" ,gtk+))) ; required by goa-backend-1.0.pc
7476 (inputs
7477 `(("docbook-xsl" ,docbook-xsl)
7478 ("json-glib" ,json-glib)
7479 ("libsecret" ,libsecret)
7480 ("rest" ,rest)
7481 ("webkitgtk" ,webkitgtk)))
7482 (synopsis "Single sign-on framework for GNOME")
7483 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineAccounts")
7484 (description
7485 "GNOME Online Accounts provides interfaces so that applications and
7486 libraries in GNOME can access the user's online accounts. It has providers for
7487 Google, ownCloud, Facebook, Flickr, Windows Live, Pocket, Foursquare, Microsoft
7488 Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
7489 (license license:lgpl2.0+)))
7490
7491 (define-public evolution-data-server
7492 (package
7493 (name "evolution-data-server")
7494 (version "3.34.2")
7495 (source (origin
7496 (method url-fetch)
7497 (uri (string-append "mirror://gnome/sources/" name "/"
7498 (version-major+minor version) "/"
7499 name "-" version ".tar.xz"))
7500 (patches (search-patches "evolution-data-server-locales.patch"
7501 "evolution-data-server-libical-compat.patch"
7502 "evolution-data-server-CVE-2020-14928.patch"
7503 "evolution-data-server-CVE-2020-16117.patch"))
7504 (sha256
7505 (base32
7506 "16z85y6hhazcrp5ngw47w4x9r0j8zrj7awv5im58hhp0xs19zf1y"))))
7507 (build-system cmake-build-system)
7508 (arguments
7509 '(#:configure-flags
7510 (let* ((lib (string-append (assoc-ref %outputs "out") "/lib"))
7511 (runpaths (map (lambda (s)
7512 (string-append lib "/evolution-data-server/" s))
7513 '("addressbook-backends" "calendar-backends"
7514 "camel-providers" "credential-modules"
7515 "registry-modules"))))
7516 (list "-DENABLE_UOA=OFF" ;disable Ubuntu Online Accounts support
7517 "-DENABLE_GOOGLE=OFF" ;disable Google Contacts support
7518 "-DENABLE_GOOGLE_AUTH=OFF" ;disable Google authentication
7519 "-DENABLE_VALA_BINDINGS=ON"
7520 (string-append "-DCMAKE_INSTALL_RPATH=" lib ";"
7521 (string-append lib "/evolution-data-server;")
7522 (string-join runpaths ";"))
7523 "-DENABLE_INTROSPECTION=ON")) ;required for Vala bindings
7524 #:phases
7525 (modify-phases %standard-phases
7526 (add-after 'unpack 'disable-failing-tests
7527 (lambda _
7528 ;; tests/book-migration/test-migration.c:160:test_fetch_contacts:
7529 ;; assertion failed (g_slist_length (contacts) == 20): (0 == 20)
7530 (delete-file-recursively "tests/book-migration")
7531 (substitute* "tests/CMakeLists.txt"
7532 (("add_subdirectory\\(book-migration\\)") ""))
7533 #t))
7534 (add-after 'unpack 'patch-paths
7535 (lambda _
7536 (substitute* '("tests/test-server-utils/e-test-server-utils.c"
7537 "tests/libedata-book/data-test-utils.c"
7538 "tests/libedata-book/test-book-cache-utils.c"
7539 "tests/libedata-cal/test-cal-cache-utils.c")
7540 (("/bin/rm") (which "rm")))
7541 #t))
7542 (add-before 'configure 'dont-override-rpath
7543 (lambda _
7544 (substitute* "CMakeLists.txt"
7545 ;; CMakeLists.txt hard-codes runpath to just the libdir.
7546 ;; Remove it so the configure flag is respected.
7547 (("SET\\(CMAKE_INSTALL_RPATH .*") ""))
7548 #t)))))
7549 (native-inputs
7550 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
7551 ("gobject-introspection" ,gobject-introspection)
7552 ("gperf" ,gperf)
7553 ("intltool" ,intltool)
7554 ("pkg-config" ,pkg-config)
7555 ("vala" ,vala)
7556 ("python" ,python-wrapper)))
7557 (propagated-inputs
7558 ;; These are all in the Requires field of .pc files.
7559 `(("gtk+" ,gtk+)
7560 ("libical" ,libical)
7561 ("libsecret" ,libsecret)
7562 ("libsoup" ,libsoup)
7563 ("nss" ,nss)
7564 ("sqlite" ,sqlite)))
7565 (inputs
7566 `(("bdb" ,bdb)
7567 ("gcr" ,gcr)
7568 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
7569 ("json-glib" ,json-glib)
7570 ("libcanberra" ,libcanberra)
7571 ("libgweather" ,libgweather)
7572 ("mit-krb5" ,mit-krb5)
7573 ("openldap" ,openldap)
7574 ("webkitgtk" ,webkitgtk)))
7575 (synopsis "Store address books and calendars")
7576 (home-page "https://wiki.gnome.org/Apps/Evolution")
7577 (description
7578 "This package provides a unified backend for programs that work with
7579 contacts, tasks, and calendar information. It was originally developed for
7580 Evolution (hence the name), but is now used by other packages as well.")
7581 (license license:lgpl2.0)))
7582
7583 (define-public caribou
7584 (package
7585 (name "caribou")
7586 (version "0.4.21")
7587 (source (origin
7588 (method url-fetch)
7589 (uri (string-append "mirror://gnome/sources/" name "/"
7590 (version-major+minor version) "/"
7591 name "-" version ".tar.xz"))
7592 (sha256
7593 (base32
7594 "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
7595 (build-system glib-or-gtk-build-system)
7596 (arguments
7597 '(#:phases
7598 (modify-phases %standard-phases
7599 (add-before
7600 'build 'pre-build
7601 (lambda* (#:key outputs #:allow-other-keys)
7602 (let ((out (assoc-ref outputs "out")))
7603 ;; Use absolute shared library path in Caribou-1.0.typelib.
7604 (substitute* "libcaribou/Makefile"
7605 (("--shared-library=libcaribou.so")
7606 (string-append "--shared-library="
7607 out "/lib/libcaribou.so")))
7608 #t)))
7609 (add-after 'install 'wrap-programs
7610 (lambda* (#:key outputs #:allow-other-keys)
7611 (let* ((out (assoc-ref outputs "out"))
7612 (python-path (getenv "PYTHONPATH"))
7613 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7614 (for-each
7615 (lambda (prog)
7616 (wrap-program prog
7617 `("PYTHONPATH" ":" prefix (,python-path))
7618 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7619 (list (string-append out "/bin/caribou-preferences")
7620 (string-append out "/libexec/antler-keyboard"))))
7621 #t)))))
7622 (native-inputs
7623 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7624 ("gobject-introspection" ,gobject-introspection)
7625 ("intltool" ,intltool)
7626 ("pkg-config" ,pkg-config)
7627 ("python" ,python)
7628 ("vala" ,vala)
7629 ("xsltproc" ,libxslt)))
7630 (propagated-inputs
7631 ;; caribou-1.0.pc refers to all these.
7632 `(("libgee" ,libgee)
7633 ("libxklavier" ,libxklavier)
7634 ("libxtst" ,libxtst)
7635 ("gtk+" ,gtk+)))
7636 (inputs
7637 `(("clutter" ,clutter)
7638 ("dconf" ,dconf)
7639 ("gtk+-2" ,gtk+-2)
7640 ("python-pygobject" ,python-pygobject)))
7641 (synopsis "Text entry and UI navigation application")
7642 (home-page "https://wiki.gnome.org/Projects/Caribou")
7643 (description
7644 "Caribou is an input assistive technology intended for switch and pointer
7645 users.")
7646 (license license:lgpl2.1)))
7647
7648 (define-public network-manager
7649 (package
7650 (name "network-manager")
7651 (version "1.24.0")
7652 (source (origin
7653 (method url-fetch)
7654 (uri (string-append "mirror://gnome/sources/NetworkManager/"
7655 (version-major+minor version) "/"
7656 "NetworkManager-" version ".tar.xz"))
7657 (patches (search-patches "network-manager-plugin-path.patch"))
7658 (sha256
7659 (base32
7660 "06044fl60bjlj7c6rqqfbm5795h61h6yzp7ch392hzcnm46wwhn3"))
7661 (modules '((guix build utils)))
7662 (snippet
7663 '(begin
7664 (substitute* "src/devices/wwan/nm-modem-manager.c"
7665 (("systemd") "elogind"))
7666 #t))))
7667 (build-system meson-build-system)
7668 (outputs '("out"
7669 "doc")) ; 8 MiB of gtk-doc HTML
7670 (arguments
7671 `(#:configure-flags
7672 (let ((out (assoc-ref %outputs "out"))
7673 (dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
7674 "/sbin/dhclient")))
7675 (list
7676 ;; Otherwise, the RUNPATH will lack the final 'NetworkManager' path
7677 ;; component.
7678 (string-append "-Dc_link_args=-Wl,-rpath="
7679 out "/lib:"
7680 out "/lib/NetworkManager/" ,version)
7681 "-Dsystemd_journal=false"
7682 "-Dsession_tracking=elogind"
7683 "-Dsuspend_resume=elogind"
7684 "-Dsystemdsystemunitdir=no"
7685 "-Dsession_tracking_consolekit=false"
7686 "-Ddhcpcd=no"
7687 "-Ddhcpcanon=no"
7688 "-Dcrypto=gnutls"
7689 "-Diwd=true"
7690 "-Dlibaudit=yes"
7691 "-Dqt=false"
7692 "-Ddocs=true"
7693 "--sysconfdir=/etc"
7694 "--localstatedir=/var"
7695 (string-append "-Dudev_dir="
7696 out "/lib/udev")
7697 (string-append "-Ddbus_conf_dir="
7698 out "/etc/dbus-1/system.d")
7699
7700 (string-append "-Ddhclient=" dhclient)))
7701 #:phases
7702 (modify-phases %standard-phases
7703 (add-before 'configure 'pre-configure
7704 (lambda _
7705 ;; These tests try to test aspects of network-manager's
7706 ;; functionality within restricted containers, but they don't
7707 ;; cope with being already in the Guix build jail as that jail
7708 ;; lacks some features that they would like to proxy over (like
7709 ;; a /sys mount).
7710 (substitute* "src/platform/tests/meson.build"
7711 ((".*test-address-linux.*") "")
7712 ((".*test-cleanup-linux.*") "")
7713 ((".*test-link-linux.*") "")
7714 ((".*test-route-linux.*") ""))
7715 (substitute* "src/devices/tests/meson.build"
7716 ((".*test-acd.*") "")
7717 ((".*test-lldp.*") ""))
7718 #t))
7719 (add-after 'unpack 'patch-docbook-xml
7720 (lambda* (#:key inputs #:allow-other-keys)
7721 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
7722 "/xml/dtd/docbook")))
7723 (substitute* (find-files "." ".*\\.(xsl|xml)")
7724 (("http://.*/docbookx\\.dtd")
7725 (string-append xmldoc "/docbookx.dtd")))
7726 #t)))
7727 (add-before 'check 'pre-check
7728 (lambda _
7729 ;; For the missing /etc/machine-id.
7730 (setenv "DBUS_FATAL_WARNINGS" "0")
7731 #t))
7732 (add-before 'install 'no-polkit-magic
7733 ;; Meson ‘magically’ invokes pkexec, which fails (not setuid).
7734 (lambda _
7735 (setenv "PKEXEC_UID" "something")
7736 #t))
7737 (add-after 'install 'move-doc
7738 (lambda* (#:key outputs #:allow-other-keys)
7739 (let ((out (assoc-ref outputs "out"))
7740 (doc (assoc-ref outputs "doc")))
7741 (mkdir-p (string-append doc "/share"))
7742 (for-each (lambda (directory)
7743 (copy-recursively (string-append out directory)
7744 (string-append doc directory))
7745 (delete-file-recursively
7746 (string-append out directory)))
7747 '("/share/doc" "/share/gtk-doc"))
7748 #t))))))
7749 (propagated-inputs
7750 `(("glib" ,glib)))
7751 (native-inputs
7752 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
7753 ("gtk-doc" ,gtk-doc)
7754 ("gobject-introspection" ,gobject-introspection)
7755 ("docbook-xml" ,docbook-xml)
7756 ("docbook-xsl" ,docbook-xsl)
7757 ("intltool" ,intltool)
7758 ("libxslt" ,libxslt)
7759 ("libxml2" ,libxml2)
7760 ("pkg-config" ,pkg-config)
7761 ("vala" ,vala)
7762 ;; For testing.
7763 ("python" ,python-wrapper)
7764 ("python-dbus" ,python-dbus)
7765 ("python-pygobject" ,python-pygobject)))
7766 (inputs
7767 `(("curl" ,curl)
7768 ("cyrus-sasl" ,cyrus-sasl)
7769 ("dbus-glib" ,dbus-glib)
7770 ("dnsmasq" ,dnsmasq)
7771 ("eudev" ,eudev)
7772 ("gnutls" ,gnutls)
7773 ("iptables" ,iptables)
7774 ("isc-dhcp" ,isc-dhcp)
7775 ("iwd" ,iwd) ; wpa_supplicant alternative
7776 ("jansson" ,jansson)
7777 ("libaudit" ,audit)
7778 ("libgcrypt" ,libgcrypt)
7779 ("libgudev" ,libgudev)
7780 ("libndp" ,libndp)
7781 ("libnl" ,libnl)
7782 ("libsoup" ,libsoup)
7783 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)
7784 ("modem-manager" ,modem-manager)
7785 ("newt" ,newt) ;for the 'nmtui' console interface
7786 ("openresolv" ,openresolv) ; alternative resolv.conf manager
7787 ("polkit" ,polkit)
7788 ("ppp" ,ppp)
7789 ("readline" ,readline)
7790 ("util-linux" ,util-linux)
7791 ("elogind" ,elogind)))
7792 (synopsis "Network connection manager")
7793 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
7794 (description
7795 "NetworkManager is a system network service that manages your network
7796 devices and connections, attempting to keep active network connectivity when
7797 available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE
7798 devices, and provides VPN integration with a variety of different VPN
7799 services.")
7800 ;; “This NetworkManager project consists of the daemon, client tools, and
7801 ;; libnm. libnm is licensed LGPL-2.1+, while the rest is licensed under
7802 ;; GPL-2.0+.”
7803 (license (list license:gpl2+
7804 license:lgpl2.1+))
7805 (properties '((upstream-name . "NetworkManager")))))
7806
7807 (define-public network-manager-openvpn
7808 (package
7809 (name "network-manager-openvpn")
7810 (version "1.8.12")
7811 (source (origin
7812 (method url-fetch)
7813 (uri (string-append
7814 "mirror://gnome/sources/NetworkManager-openvpn/"
7815 (version-major+minor version)
7816 "/NetworkManager-openvpn-" version ".tar.xz"))
7817 (sha256
7818 (base32
7819 "062kh4zj7jfbwy4zzcwpq2m457bzbpm3l18s0ysnw3mgia3siz8f"))))
7820 (build-system gnu-build-system)
7821 (arguments
7822 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
7823 #:phases
7824 (modify-phases %standard-phases
7825 (add-after 'configure 'patch-path
7826 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7827 (let* ((ovpn (string-append (assoc-ref inputs "openvpn")
7828 "/sbin/openvpn"))
7829 (modprobe (string-append (assoc-ref inputs "kmod")
7830 "/bin/modprobe"))
7831 (pretty-ovpn (string-append "\"" ovpn "\"")))
7832 (for-each
7833 (lambda (file)
7834 (substitute* file
7835 (("\"/usr/local/sbin/openvpn\"") pretty-ovpn)
7836 (("\"/usr/sbin/openvpn\"") pretty-ovpn)
7837 (("\"/sbin/openvpn\"") pretty-ovpn)
7838 (("/sbin/modprobe") modprobe)))
7839 '("src/nm-openvpn-service.c" "properties/nm-openvpn-editor.c")))
7840 #t)))))
7841 (native-inputs
7842 `(("pkg-config" ,pkg-config)
7843 ("intltool" ,intltool)))
7844 (inputs
7845 `(("gtk+" ,gtk+)
7846 ("kmod" ,kmod)
7847 ("openvpn" ,openvpn)
7848 ("network-manager" ,network-manager)
7849 ("libnma" ,libnma)
7850 ("libsecret" ,libsecret)))
7851 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7852 (synopsis "OpenVPN plug-in for NetworkManager")
7853 (description
7854 "This extension of NetworkManager allows it to take care of connections
7855 to virtual private networks (VPNs) via OpenVPN.")
7856 (license license:gpl2+)
7857 (properties `((upstream-name . "NetworkManager-openvpn")))))
7858
7859 (define-public network-manager-vpnc
7860 (package
7861 (name "network-manager-vpnc")
7862 (version "1.2.6")
7863 (source (origin
7864 (method url-fetch)
7865 (uri (string-append
7866 "mirror://gnome/sources/NetworkManager-vpnc/"
7867 (version-major+minor version)
7868 "/NetworkManager-vpnc-" version ".tar.xz"))
7869 (sha256
7870 (base32
7871 "1js5lwcsqws4klgypfxl4ikmakv7v7xgddij1fj6b0y0qicx0kyy"))))
7872 (build-system gnu-build-system)
7873 (arguments
7874 `(#:configure-flags '("--enable-absolute-paths"
7875 "--localstatedir=/var"
7876 ;; libnm-glib has been removed from network-manager
7877 ;; 1de8383ad9fdfc8f552117e5d109bdfa7005634b
7878 "--with-libnm-glib=no")
7879 #:phases
7880 (modify-phases %standard-phases
7881 (add-after 'configure 'patch-path
7882 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7883 (let* ((vpnc (string-append (assoc-ref inputs "vpnc")
7884 "/sbin/vpnc"))
7885 (modprobe (string-append (assoc-ref inputs "kmod")
7886 "/bin/modprobe"))
7887 (pretty-ovpn (string-append "\"" vpnc "\"")))
7888 (substitute* "src/nm-vpnc-service.c"
7889 (("\"/usr/local/sbin/vpnc\"") pretty-ovpn)
7890 (("\"/usr/sbin/vpnc\"") pretty-ovpn)
7891 (("\"/sbin/vpnc\"") pretty-ovpn)
7892 (("/sbin/modprobe") modprobe)))
7893 #t)))))
7894 (native-inputs
7895 `(("pkg-config" ,pkg-config)
7896 ("intltool" ,intltool)))
7897 (inputs
7898 `(("gtk+" ,gtk+)
7899 ("kmod" ,kmod)
7900 ("vpnc" ,vpnc)
7901 ("network-manager" ,network-manager)
7902 ("libnma" ,libnma)
7903 ("libsecret" ,libsecret)))
7904 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7905 (synopsis "VPNC plug-in for NetworkManager")
7906 (description
7907 "Support for configuring virtual private networks based on VPNC.
7908 Compatible with Cisco VPN concentrators configured to use IPsec.")
7909 (license license:gpl2+)
7910 (properties `((upstream-name . "NetworkManager-vpnc")))))
7911
7912 (define-public network-manager-openconnect
7913 (package
7914 (name "network-manager-openconnect")
7915 (version "1.2.6")
7916 (source (origin
7917 (method url-fetch)
7918 (uri (string-append
7919 "mirror://gnome/sources/NetworkManager-openconnect/"
7920 (version-major+minor version)
7921 "/NetworkManager-openconnect-" version ".tar.xz"))
7922 (sha256
7923 (base32
7924 "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m"))))
7925 (build-system gnu-build-system)
7926 (arguments
7927 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
7928 #:phases
7929 (modify-phases %standard-phases
7930 (add-after 'configure 'patch-path
7931 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7932 (let* ((openconnect (string-append (assoc-ref inputs "openconnect")
7933 "/sbin/openconnect"))
7934 (modprobe (string-append (assoc-ref inputs "kmod")
7935 "/bin/modprobe"))
7936 (pretty-ovpn (string-append "\"" openconnect "\"")))
7937 (substitute* "src/nm-openconnect-service.c"
7938 (("\"/usr(/local)?/s?bin/openconnect\"") pretty-ovpn)
7939 (("/sbin/modprobe") modprobe)))
7940 #t)))))
7941 (native-inputs
7942 `(("intltool" ,intltool)
7943 ("libnma" ,libnma)
7944 ("pkg-config" ,pkg-config)))
7945 (inputs
7946 `(("gcr" ,gcr)
7947 ("gtk+" ,gtk+)
7948 ("kmod" ,kmod)
7949 ("libsecret" ,libsecret)
7950 ("libxml2" ,libxml2)
7951 ("lz4" ,lz4)
7952 ("network-manager" ,network-manager)
7953 ("openconnect" ,openconnect)))
7954 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7955 (synopsis "OpenConnect plug-in for NetworkManager")
7956 (description
7957 "This extension of NetworkManager allows it to take care of connections
7958 to @acronym{VPNs, virtual private networks} via OpenConnect, an open client for
7959 Cisco's AnyConnect SSL VPN.")
7960 (license license:gpl2+)
7961 (properties `((upstream-name . "NetworkManager-openconnect")
7962
7963 ;; The 'etc/dbus-1/system.d/nm-openconnect-service.conf'
7964 ;; file refers to account "nm-openconnect". Specify it here
7965 ;; so that 'network-manager-service-type' creates it.
7966 (user-accounts . ("nm-openconnect"))))))
7967
7968 (define-public mobile-broadband-provider-info
7969 (package
7970 (name "mobile-broadband-provider-info")
7971 (version "20190116")
7972 (source (origin
7973 (method url-fetch)
7974 (uri (string-append
7975 "mirror://gnome/sources/"
7976 "mobile-broadband-provider-info/" version "/"
7977 "mobile-broadband-provider-info-" version ".tar.xz"))
7978 (sha256
7979 (base32
7980 "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"))))
7981 (build-system gnu-build-system)
7982 (arguments
7983 `(#:tests? #f)) ; no tests
7984 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
7985 (synopsis "Database of broadband connection configuration")
7986 (description "Database of broadband connection configuration.")
7987 (license license:public-domain)))
7988
7989 (define-public network-manager-applet
7990 (package
7991 (name "network-manager-applet")
7992 (version "1.20.0")
7993 (source (origin
7994 (method url-fetch)
7995 (uri (string-append "mirror://gnome/sources/network-manager-applet/"
7996 (version-major+minor version) "/"
7997 "network-manager-applet-" version ".tar.xz"))
7998 (sha256
7999 (base32
8000 "0lsjkbv66hn7acl2pg9h6hz4b700zzv4cjwrwjvy7043blw0bcla"))))
8001 (build-system meson-build-system)
8002 (arguments
8003 '(#:glib-or-gtk? #t
8004 #:configure-flags
8005 '("-Dappindicator=yes")))
8006 (native-inputs
8007 `(("intltool" ,intltool)
8008 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
8009 ("gobject-introspection" ,gobject-introspection)
8010 ("gtk-doc" ,gtk-doc)
8011 ("pkg-config" ,pkg-config)))
8012 (propagated-inputs
8013 ;; libnm-gtk.pc refers to all these.
8014 `(("dbus-glib" ,dbus-glib)
8015 ("gtk+" ,gtk+)
8016 ("network-manager" ,network-manager)
8017 ;; nm-applet need by org.gnome.nm-applet.gschema.xml
8018 ("libnma" ,libnma)))
8019 (inputs
8020 `(("gcr" ,gcr)
8021 ("libappindicator" ,libappindicator)
8022 ("libgudev" ,libgudev)
8023 ("libnotify" ,libnotify)
8024 ("libsecret" ,libsecret)
8025 ("libselinux" ,libselinux)
8026 ("jansson" ,jansson) ; for team support
8027 ("modem-manager" ,modem-manager)))
8028 (synopsis "Applet for managing network connections")
8029 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
8030 (description
8031 "This package contains a systray applet for NetworkManager. It displays
8032 the available networks and allows users to easily switch between them.")
8033 (license license:gpl2+)))
8034
8035 (define-public libxml++
8036 (package
8037 (name "libxml++")
8038 (version "3.0.1")
8039 (source (origin
8040 (method url-fetch)
8041 (uri (string-append "mirror://gnome/sources/" name "/"
8042 (version-major+minor version) "/"
8043 name "-" version ".tar.xz"))
8044 (sha256
8045 (base32
8046 "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"))))
8047 (build-system gnu-build-system)
8048 ;; libxml++-3.0.pc refers to all these.
8049 (propagated-inputs
8050 `(("libxml2" ,libxml2)
8051 ("glibmm" ,glibmm)))
8052 (native-inputs
8053 `(("perl" ,perl)
8054 ("pkg-config" ,pkg-config)))
8055 (home-page "http://libxmlplusplus.sourceforge.net/")
8056 (synopsis "C++ wrapper for XML parser library libxml2")
8057 (description
8058 "This package provides a C++ wrapper for the XML parser library
8059 libxml2.")
8060 (license license:lgpl2.1+)))
8061
8062 (define-public libxml++-2
8063 (package
8064 (inherit libxml++)
8065 (name "libxml++")
8066 (version "2.40.1")
8067 (source (origin
8068 (method url-fetch)
8069 (uri (string-append "mirror://gnome/sources/" name "/"
8070 (version-major+minor version) "/"
8071 name "-" version ".tar.xz"))
8072 (sha256
8073 (base32
8074 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
8075
8076 (define-public gdm
8077 (package
8078 (name "gdm")
8079 (version "3.34.1")
8080 (source (origin
8081 (method url-fetch)
8082 (uri (string-append "mirror://gnome/sources/" name "/"
8083 (version-major+minor version) "/"
8084 name "-" version ".tar.xz"))
8085 (sha256
8086 (base32
8087 "1lyqvcwxhwxklbxn4xjswjzr6fhjix6h28mi9ypn34wdm9bzcpg8"))
8088 (patches (search-patches "gdm-default-session.patch"))))
8089 (build-system glib-or-gtk-build-system)
8090 (arguments
8091 '(#:configure-flags
8092 `("--without-plymouth"
8093 "--disable-systemd-journal"
8094
8095 ;; Using --with-initial-vt=7 allows GDM to run alongside TTY 1,
8096 ;; instead of having to replace it (i.e., stopping the mingetty
8097 ;; service for TTY 1 before starting GDM).
8098 "--with-initial-vt=7"
8099
8100 ;; Use '/etc/environment' for locale settings instead of the
8101 ;; systemd-specific '/etc/locale.conf'.
8102 "--with-lang-file=/etc/environment"
8103
8104 ,(string-append "--with-udevdir="
8105 (assoc-ref %outputs "out") "/lib/udev")
8106
8107 "--localstatedir=/var"
8108 ,(string-append "--with-default-path="
8109 (string-join '("/run/setuid-programs"
8110 "/run/current-system/profile/bin"
8111 "/run/current-system/profile/sbin")
8112 ":"))
8113 ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
8114 ;; XDG_DATA_DIRS so that it finds its schemas.
8115 "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
8116 #:phases
8117 (modify-phases %standard-phases
8118 (add-before
8119 'configure 'pre-configure
8120 (lambda* (#:key inputs outputs #:allow-other-keys)
8121 ;; We don't have <systemd/sd-daemon.h>.
8122 (substitute* '("common/gdm-log.c"
8123 "daemon/gdm-server.c"
8124 "daemon/gdm-session-worker.c"
8125 "daemon/gdm-session-worker-job.c")
8126 (("#include <systemd/sd-daemon\\.h>") ""))
8127 ;; Use elogind for sd-login.
8128 (substitute* '("common/gdm-common.c"
8129 "daemon/gdm-local-display-factory.c"
8130 "daemon/gdm-manager.c"
8131 "libgdm/gdm-user-switching.c")
8132 (("#include <systemd/sd-login\\.h>")
8133 "#include <elogind/sd-login.h>"))
8134 ;; Check for elogind.
8135 (substitute* '("configure")
8136 (("libsystemd")
8137 "libelogind"))
8138 ;; Look for system-installed sessions in
8139 ;; /run/current-system/profile/share.
8140 (substitute* '("libgdm/gdm-sessions.c"
8141 "daemon/gdm-session.c"
8142 "daemon/gdm-display.c"
8143 "daemon/gdm-launch-environment.c")
8144 (("DATADIR \"/x")
8145 "\"/run/current-system/profile/share/x")
8146 (("DATADIR \"/wayland")
8147 "\"/run/current-system/profile/share/wayland")
8148 (("DATADIR \"/gnome")
8149 "\"/run/current-system/profile/share/gnome"))
8150 (let ((propagate '("GDM_CUSTOM_CONF"
8151 "GDM_DBUS_DAEMON"
8152 "GDM_X_SERVER"
8153 "GDM_X_SESSION"
8154 ;; XXX: Remove this once GNOME Shell is
8155 ;; a dependency of GDM.
8156 "XDG_DATA_DIRS")))
8157 (substitute* "daemon/gdm-session.c"
8158 (("set_up_session_environment \\(self\\);")
8159 (apply string-append
8160 "set_up_session_environment (self);\n"
8161 (map (lambda (name)
8162 (string-append
8163 "gdm_session_set_environment_variable "
8164 "(self, \"" name "\","
8165 "g_getenv (\"" name "\"));\n"))
8166 propagate)))))
8167 ;; Find the configuration file using an environment variable.
8168 (substitute* '("common/gdm-settings.c")
8169 (("GDM_CUSTOM_CONF")
8170 (string-append "(g_getenv(\"GDM_CUSTOM_CONF\") != NULL"
8171 " ? g_getenv(\"GDM_CUSTOM_CONF\")"
8172 " : GDM_CUSTOM_CONF)")))
8173 ;; Use service-supplied path to X.
8174 (substitute* '("daemon/gdm-server.c")
8175 (("\\(X_SERVER X_SERVER_ARG_FORMAT")
8176 "(\"%s\" X_SERVER_ARG_FORMAT, g_getenv (\"GDM_X_SERVER\")"))
8177 (substitute* '("daemon/gdm-wayland-session.c"
8178 "daemon/gdm-x-session.c")
8179 (("\"dbus-daemon\"")
8180 "g_getenv (\"GDM_DBUS_DAEMON\")")
8181 (("X_SERVER")
8182 "g_getenv (\"GDM_X_SERVER\")")
8183 (("GDMCONFDIR \"/Xsession\"")
8184 "g_getenv (\"GDM_X_SESSION\")"))
8185 ;; Use an absolute path for GNOME Session.
8186 (substitute* "daemon/gdm-launch-environment.c"
8187 (("\"gnome-session\"")
8188 (string-append "\"" (assoc-ref inputs "gnome-session")
8189 "/bin/gnome-session\"")))
8190 ;; Do not automatically select the placeholder session.
8191 (substitute* "daemon/gdm-session.c"
8192 (("!g_str_has_suffix [(]base_name, \"\\.desktop\"[)]")
8193 (string-append "!g_str_has_suffix (base_name, \".desktop\") || "
8194 "(g_strcmp0(search_dirs[i], \""
8195 (assoc-ref outputs "out") "/share/gdm/BuiltInSessions/"
8196 "\") == 0 && "
8197 "g_strcmp0(base_name, \"fail.desktop\") == 0)"))
8198 (("g_error [(]\"GdmSession: no session desktop files installed, aborting\\.\\.\\.\"[)];")
8199 "{ self->fallback_session_name = g_strdup(\"fail\"); goto out; }"))
8200 #t))
8201 ;; GDM requires that there be at least one desktop entry
8202 ;; file. This phase installs a hidden one that simply
8203 ;; fails. This enables users to use GDM with a
8204 ;; '~/.xsession' script with no other desktop entry files.
8205 ;; See <https://bugs.gnu.org/35068>.
8206 (add-after 'install 'install-placeholder-desktop-entry
8207 (lambda* (#:key inputs outputs #:allow-other-keys)
8208 (let* ((out (assoc-ref outputs "out"))
8209 (sessions (string-append out "/share/gdm/BuiltInSessions"))
8210 (fail (string-append sessions "/fail.desktop")))
8211 (mkdir-p sessions)
8212 (with-output-to-file fail
8213 (lambda ()
8214 (for-each
8215 display
8216 '("[Desktop Entry]\n"
8217 "Encoding=UTF-8\n"
8218 "Type=Application\n"
8219 "Name=Fail\n"
8220 "Comment=This session fails immediately.\n"
8221 "NoDisplay=true\n"
8222 "Exec=false\n"))))
8223 #t)))
8224 ;; GDM needs GNOME Session to run these applications. We link
8225 ;; their autostart files in `share/gdm/greeter/autostart'
8226 ;; because GDM explicitly tells GNOME Session to look there.
8227 ;;
8228 ;; XXX: GNOME Shell should be linked here too, but currently
8229 ;; GNOME Shell depends on GDM.
8230 (add-after 'install 'link-autostart-files
8231 (lambda* (#:key inputs outputs #:allow-other-keys)
8232 (let* ((out (assoc-ref outputs "out"))
8233 (autostart (string-append out "/share/gdm/"
8234 "greeter/autostart"))
8235 (settings (assoc-ref inputs "gnome-settings-daemon")))
8236 (mkdir-p autostart)
8237 (with-directory-excursion autostart
8238 (for-each (lambda (desktop)
8239 (symlink desktop (basename desktop)))
8240 (find-files (string-append settings "/etc/xdg"))))
8241 #t))))))
8242 (native-inputs
8243 `(("dconf" ,dconf)
8244 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8245 ("gobject-introspection" ,gobject-introspection)
8246 ("intltool" ,intltool)
8247 ("itstool" ,itstool)
8248 ("pkg-config" ,pkg-config)
8249 ("xmllint" ,libxml2)))
8250 (inputs
8251 `(("accountsservice" ,accountsservice)
8252 ("check" ,check-0.14) ;for testing
8253 ("elogind" ,elogind)
8254 ("gnome-session" ,gnome-session)
8255 ("gnome-settings-daemon" ,gnome-settings-daemon)
8256 ("gtk+" ,gtk+)
8257 ("iso-codes" ,iso-codes)
8258 ("libcanberra" ,libcanberra)
8259 ("linux-pam" ,linux-pam)))
8260 (synopsis "Display manager for GNOME")
8261 (home-page "https://wiki.gnome.org/Projects/GDM/")
8262 (description
8263 "GNOME Display Manager is a system service that is responsible for
8264 providing graphical log-ins and managing local and remote displays.")
8265 (license license:gpl2+)))
8266
8267 (define-public libgtop
8268 (package
8269 (name "libgtop")
8270 (version "2.40.0")
8271 (source (origin
8272 (method url-fetch)
8273 (uri (string-append "mirror://gnome/sources/libgtop/"
8274 (version-major+minor version) "/"
8275 "libgtop-" version ".tar.xz"))
8276 (sha256
8277 (base32
8278 "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq"))))
8279 (build-system gnu-build-system)
8280 (native-inputs
8281 `(("gobject-introspection" ,gobject-introspection)
8282 ("intltool" ,intltool)
8283 ("perl" ,perl)
8284 ("pkg-config" ,pkg-config)))
8285 (propagated-inputs
8286 `(("glib" ,glib))) ; required by libgtop-2.0.pc
8287 (synopsis "Portable system access library")
8288 (home-page "https://www.gnome.org/")
8289 (description
8290 "LibGTop is a library to get system specific data such as CPU and memory
8291 usage and information about running processes.")
8292 (license license:gpl2+)))
8293
8294 (define-public gnome-bluetooth
8295 (package
8296 (name "gnome-bluetooth")
8297 (version "3.34.2")
8298 (source (origin
8299 (method url-fetch)
8300 (uri (string-append "mirror://gnome/sources/" name "/"
8301 (version-major+minor version) "/"
8302 name "-" version ".tar.xz"))
8303 (sha256
8304 (base32
8305 "0lmjvb49vgr4jjplrisv6pi29jsn1q42715i6c5a0p9ad3gawyyv"))))
8306 (build-system meson-build-system)
8307 (native-inputs
8308 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
8309 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
8310 ("gobject-introspection" ,gobject-introspection)
8311 ("intltool" ,intltool)
8312 ("pkg-config" ,pkg-config)
8313 ("xmllint" ,libxml2)))
8314 (propagated-inputs
8315 ;; gnome-bluetooth-1.0.pc refers to all these.
8316 `(("glib" ,glib)
8317 ("gtk+" ,gtk+)))
8318 (inputs
8319 `(("eudev" ,eudev)
8320 ("libcanberra" ,libcanberra)
8321 ("libnotify" ,libnotify)))
8322 (synopsis "GNOME Bluetooth subsystem")
8323 (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
8324 (description
8325 "This package contains tools for managing and manipulating Bluetooth
8326 devices using the GNOME desktop.")
8327 (license license:lgpl2.1+)))
8328
8329 (define-public gnome-control-center
8330 (package
8331 (name "gnome-control-center")
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 "054igagvmyzpaa5nwzz98gv7bk7l5dwp6g813707132si3szlpx8"))))
8341 (build-system meson-build-system)
8342 (arguments
8343 '(#:glib-or-gtk? #t
8344 #:configure-flags
8345 (list "-Dcheese=false"
8346 (string-append "-Dgnome_session_libexecdir="
8347 (assoc-ref %build-inputs "gnome-session")
8348 "/libexec"))
8349 #:phases
8350 (modify-phases %standard-phases
8351 (add-before 'configure 'patch-paths
8352 (lambda* (#:key inputs #:allow-other-keys)
8353 (let ((libc (assoc-ref inputs "libc"))
8354 (tzdata (assoc-ref inputs "tzdata"))
8355 (libgnomekbd (assoc-ref inputs "libgnomekbd"))
8356 (nm-applet (assoc-ref inputs "network-manager-applet"))
8357 (gnome-desktop (assoc-ref inputs "gnome-desktop")))
8358 (substitute* "panels/datetime/tz.h"
8359 (("/usr/share/zoneinfo/zone.tab")
8360 (string-append tzdata "/share/zoneinfo/zone.tab")))
8361 (substitute* "tests/datetime/test-endianess.c"
8362 (("/usr/share/locale")
8363 (string-append libc "/share/locale")))
8364 (substitute* "panels/region/cc-region-panel.c"
8365 (("\"gkbd-keyboard-display")
8366 (string-append "\"" libgnomekbd
8367 "/bin/gkbd-keyboard-display")))
8368 (substitute* '("panels/network/net-device-wifi.c"
8369 "panels/network/net-device.c"
8370 "panels/network/connection-editor/net-connection-editor.c")
8371 (("\"nm-connection-editor")
8372 (string-append "\"" nm-applet
8373 "/bin/nm-connection-editor")))
8374 (substitute* '("panels/user-accounts/run-passwd.c")
8375 (("/usr/bin/passwd")
8376 "/run/setuid-programs/passwd"))
8377 (substitute* "panels/info/cc-info-overview-panel.c"
8378 (("DATADIR \"/gnome/gnome-version.xml\"")
8379 (string-append "\"" gnome-desktop
8380 "/share/gnome/gnome-version.xml\"")))
8381 #t)))
8382 (add-after 'unpack 'skip-gtk-update-icon-cache
8383 ;; Don't create 'icon-theme.cache'.
8384 (lambda _
8385 (substitute* "build-aux/meson/meson_post_install.py"
8386 (("gtk-update-icon-cache") (which "true")))
8387 #t)))))
8388 (native-inputs
8389 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
8390 ("intltool" ,intltool)
8391 ("pkg-config" ,pkg-config)
8392 ("xsltproc" ,libxslt)
8393 ;; For tests
8394 ("hicolor-icon-theme" ,hicolor-icon-theme)
8395 ("python-dbusmock" ,python-dbusmock)
8396 ("xorg-server" ,xorg-server-for-tests)))
8397 (inputs
8398 `(("accountsservice" ,accountsservice)
8399 ("clutter-gtk" ,clutter-gtk)
8400 ("colord-gtk" ,colord-gtk)
8401 ("cups" ,cups)
8402 ("dconf" ,dconf)
8403 ("docbook-xsl" ,docbook-xsl)
8404 ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
8405 ("gnome-bluetooth" ,gnome-bluetooth)
8406 ("gnome-desktop" ,gnome-desktop)
8407 ("gnome-online-accounts" ,gnome-online-accounts)
8408 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
8409 ("gnome-session" ,gnome-session)
8410 ("gnome-settings-daemon" ,gnome-settings-daemon)
8411 ("grilo" ,grilo)
8412 ("gsound" ,gsound)
8413 ("ibus" ,ibus)
8414 ("libcanberra" ,libcanberra)
8415 ("libgnomekbd" ,libgnomekbd)
8416 ("libgudev" ,libgudev)
8417 ("libgtop" ,libgtop)
8418 ("libnma" ,libnma)
8419 ("libpwquality" ,libpwquality)
8420 ("libsecret" ,libsecret)
8421 ("libsoup" ,libsoup)
8422 ("libxml2" ,libxml2)
8423 ("libwacom" ,libwacom)
8424 ("mesa" ,mesa)
8425 ("mit-krb5" ,mit-krb5)
8426 ("modem-manager" ,modem-manager)
8427 ("network-manager-applet" ,network-manager-applet)
8428 ("polkit" ,polkit)
8429 ("pulseaudio" ,pulseaudio)
8430 ("smbclient" ,samba)
8431 ("tzdata" ,tzdata)
8432 ("udisks" ,udisks)
8433 ("upower" ,upower)))
8434 (synopsis "Utilities to configure the GNOME desktop")
8435 (home-page "https://www.gnome.org/")
8436 (description
8437 "This package contains configuration applets for the GNOME desktop,
8438 allowing to set accessibility configuration, desktop fonts, keyboard and mouse
8439 properties, sound setup, desktop theme and background, user interface
8440 properties, screen resolution, and other GNOME parameters.")
8441 (license license:gpl2+)))
8442
8443 (define-public gnome-shell
8444 (package
8445 (name "gnome-shell")
8446 (version "3.34.5")
8447 (source (origin
8448 (method url-fetch)
8449 (uri (string-append "mirror://gnome/sources/" name "/"
8450 (version-major+minor version) "/"
8451 name "-" version ".tar.xz"))
8452 (sha256
8453 (base32
8454 "0l3mdn7g2c22mdhrqkxvvc1pk2w0v32f2v4a6n1phvaalwcg75nj"))
8455 (patches (search-patches "gnome-shell-CVE-2020-17489.patch"
8456 "gnome-shell-theme.patch"
8457 "gnome-shell-disable-test.patch"))
8458 (modules '((guix build utils)))
8459 (snippet
8460 #~(begin
8461 ;; Copy images for use on the GDM log-in screen.
8462 (copy-file #$(file-append %artwork-repository
8463 "/slim/0.x/background.png")
8464 "data/theme/guix-background.png")
8465 (copy-file #$(file-append %artwork-repository
8466 "/logo/Guix-horizontal-white.svg")
8467 "data/theme/guix-logo.svg")
8468 #t))))
8469 (build-system meson-build-system)
8470 (arguments
8471 `(#:glib-or-gtk? #t
8472 #:disallowed-references ((,glib "bin")
8473 ,inkscape ,libxslt
8474 ,ruby-sass)
8475 #:configure-flags
8476 (list "-Dsystemd=false"
8477 ;; Otherwise, the RUNPATH will lack the final path component.
8478 (string-append "-Dc_link_args=-Wl,-rpath="
8479 (assoc-ref %outputs "out")
8480 "/lib/gnome-shell"))
8481
8482 #:modules ((guix build meson-build-system)
8483 (guix build utils)
8484 (srfi srfi-1))
8485
8486 #:phases
8487 (modify-phases %standard-phases
8488 (add-after 'unpack 'fix-keysdir
8489 (lambda* (#:key outputs #:allow-other-keys)
8490 (let* ((out (assoc-ref outputs "out"))
8491 (keysdir (string-append
8492 out "/share/gnome-control-center/keybindings")))
8493 (substitute* "meson.build"
8494 (("keysdir =.*")
8495 (string-append "keysdir = '" keysdir "'\n")))
8496 #t)))
8497 (add-before 'configure 'convert-logo-to-png
8498 (lambda* (#:key inputs #:allow-other-keys)
8499 ;; Convert the logo from SVG to PNG.
8500 (invoke "inkscape" "--export-png=data/theme/guix-logo.png"
8501 "data/theme/guix-logo.svg")))
8502 (add-before 'configure 'record-absolute-file-names
8503 (lambda* (#:key inputs #:allow-other-keys)
8504 (substitute* "js/misc/ibusManager.js"
8505 (("'ibus-daemon'")
8506 (string-append "'" (assoc-ref inputs "ibus")
8507 "/bin/ibus-daemon'")))
8508 (substitute* "js/ui/status/keyboard.js"
8509 (("'gkbd-keyboard-display'")
8510 (string-append "'" (assoc-ref inputs "libgnomekbd")
8511 "/bin/gkbd-keyboard-display'")))
8512 #t))
8513 (add-before 'check 'pre-check
8514 (lambda* (#:key inputs #:allow-other-keys)
8515 ;; Tests require a running X server.
8516 (system "Xvfb :1 &")
8517 (setenv "DISPLAY" ":1")
8518 #t))
8519 (add-after 'install 'wrap-programs
8520 (lambda* (#:key inputs outputs #:allow-other-keys)
8521 (let ((out (assoc-ref outputs "out"))
8522 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
8523 (python-path (getenv "PYTHONPATH")))
8524 (wrap-program (string-append out "/bin/gnome-shell")
8525 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
8526 ;; FIXME: gnome-shell loads these libraries with unqualified
8527 ;; names only, so they need to be on LD_LIBRARY_PATH. The
8528 ;; alternative might be to patch gnome-shell.
8529 `("LD_LIBRARY_PATH" ":" prefix
8530 ,(map (lambda (pkg)
8531 (string-append (assoc-ref inputs pkg) "/lib"))
8532 '("gdk-pixbuf"
8533 "gnome-bluetooth" "librsvg" "libgweather"))))
8534 (for-each
8535 (lambda (prog)
8536 (wrap-program (string-append out "/bin/" prog)
8537 `("PYTHONPATH" ":" prefix (,python-path))
8538 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
8539 '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
8540 #t)))
8541 (replace 'glib-or-gtk-wrap
8542 (let ((wrap (assoc-ref %standard-phases 'glib-or-gtk-wrap)))
8543 (lambda* (#:key inputs outputs #:allow-other-keys #:rest rest)
8544 ;; By default Inkscape et al. would end up in the XDG_DATA_DIRS
8545 ;; settings of the wrappers created by the 'glib-or-gtk-wrap'
8546 ;; phase. Fix that since we don't need these.
8547 (wrap #:inputs (fold alist-delete inputs
8548 '("inkscape" "intltool" "glib:bin"))
8549 #:outputs outputs)))))))
8550 (native-inputs
8551 `(("asciidoc" ,asciidoc)
8552 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8553 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8554 ("gobject-introspection" ,gobject-introspection)
8555 ("inkscape" ,inkscape)
8556 ("intltool" ,intltool)
8557 ("pkg-config" ,pkg-config)
8558 ("python" ,python)
8559 ("ruby-sass" ,ruby-sass)
8560 ("sassc" ,sassc)
8561 ("xsltproc" ,libxslt)
8562 ;; For tests
8563 ("xorg-server" ,xorg-server-for-tests)))
8564 (inputs
8565 `(("accountsservice" ,accountsservice)
8566 ("caribou" ,caribou)
8567 ("docbook-xsl" ,docbook-xsl)
8568 ("evolution-data-server" ,evolution-data-server)
8569 ("gcr" ,gcr)
8570 ("gdm" ,gdm)
8571 ("gdk-pixbuf" ,gdk-pixbuf+svg)
8572 ("gjs" ,gjs)
8573 ("gnome-autoar" ,gnome-autoar)
8574 ("gnome-bluetooth" ,gnome-bluetooth)
8575 ("gnome-desktop" ,gnome-desktop)
8576 ("gnome-settings-daemon" ,gnome-settings-daemon)
8577 ("gst-plugins-base" ,gst-plugins-base)
8578 ("ibus" ,ibus)
8579 ("libcanberra" ,libcanberra)
8580 ("libcroco" ,libcroco)
8581 ("libgnomekbd" ,libgnomekbd) ;for gkbd-keyboard-display
8582 ("libgweather" ,libgweather)
8583 ("libnma" ,libnma)
8584 ("libsoup" ,libsoup)
8585 ("mesa-headers" ,mesa-headers)
8586 ("mutter" ,mutter)
8587 ("network-manager-applet" ,network-manager-applet)
8588 ("polkit" ,polkit)
8589 ("pulseaudio" ,pulseaudio)
8590 ("python-pygobject" ,python-pygobject)
8591 ("startup-notification" ,startup-notification)
8592 ("telepathy-logger" ,telepathy-logger)
8593 ("upower" ,upower)
8594 ;; XXX: These requirements were added in 3.24, but no mention in NEWS.
8595 ;; Missing propagation? See also: <https://bugs.gnu.org/27264>
8596 ("librsvg" ,librsvg)
8597 ("geoclue" ,geoclue)))
8598 ;; CVE-2019-3820 was fixed before GNOME 3.34 was released, in upstream
8599 ;; commit f0a7395b3006360905ccdc642982f9fc67378927.
8600 (properties '((lint-hidden-cve . ("CVE-2019-3820"))))
8601 (synopsis "Desktop shell for GNOME")
8602 (home-page "https://wiki.gnome.org/Projects/GnomeShell")
8603 (description
8604 "GNOME Shell provides core user interface functions for the GNOME desktop,
8605 like switching to windows and launching applications.")
8606 (license license:gpl2+)))
8607
8608 (define-public gtk-vnc
8609 (package
8610 (name "gtk-vnc")
8611 (version "1.0.0")
8612 (source
8613 (origin
8614 (method url-fetch)
8615 (uri
8616 (string-append "mirror://gnome/sources/" name "/"
8617 (version-major+minor version) "/"
8618 name "-" version ".tar.xz"))
8619 (sha256
8620 (base32 "1060ws037v556rx1qhfrcg02859rscksrzr8fq11himdg4d1y6m8"))))
8621 (build-system meson-build-system)
8622 (arguments
8623 `(#:glib-or-gtk? #t)) ; To wrap binaries and/or compile schemas
8624 (native-inputs
8625 `(("gjs" ,gjs)
8626 ("glib:bin" ,glib "bin")
8627 ("gobject-introspection" ,gobject-introspection)
8628 ("intltool" ,intltool)
8629 ("node" ,node)
8630 ("perl" ,perl)
8631 ("pkg-config" ,pkg-config)
8632 ("python" ,python-wrapper)
8633 ("vala" ,vala)))
8634 (inputs
8635 `(("cairo" ,cairo)
8636 ("gdk-pixbuf" ,gdk-pixbuf+svg)
8637 ("glib" ,glib)
8638 ("gnutls" ,gnutls)
8639 ("libgcrypt" ,libgcrypt)
8640 ("libsasl" ,cyrus-sasl)
8641 ("pulseaudio" ,pulseaudio)
8642 ("x11" ,libx11)
8643 ("zlib" ,zlib)))
8644 (propagated-inputs
8645 `(("gtk+" ,gtk+)))
8646 (synopsis "VNC client viewer widget for GTK+")
8647 (description "GTK-VNC is a project providing client side APIs for the RFB
8648 protocol / VNC remote desktop technology. It is built using coroutines allowing
8649 it to be completely asynchronous while remaining single threaded. It provides a
8650 core C library, and bindings for Python (PyGTK).")
8651 (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
8652 (license license:lgpl2.1+)))
8653
8654 (define-public gnome-autoar
8655 (package
8656 (name "gnome-autoar")
8657 (version "0.3.0")
8658 (source (origin
8659 (method url-fetch)
8660 (uri (string-append "mirror://gnome/sources/" name "/"
8661 (version-major+minor version) "/"
8662 name "-" version ".tar.xz"))
8663 (sha256
8664 (base32
8665 "0ssqckfkyldwld88zizy446y2359rg40lnrcm3sjpjhc2b015hgj"))))
8666 (build-system glib-or-gtk-build-system)
8667 (native-inputs
8668 `(("gobject-introspection" ,gobject-introspection)
8669 ("pkg-config" ,pkg-config)))
8670 (propagated-inputs
8671 `(("libarchive" ,libarchive))) ; Required by gnome-autoar-0.pc
8672 (inputs
8673 `(("gtk+" ,gtk+)))
8674 (synopsis "Archives integration support for GNOME")
8675 (home-page "https://git.gnome.org/browse/gnome-autoar/")
8676 (description
8677 "GNOME Autoar is a library which makes creating and extracting archives
8678 easy, safe, and automatic.")
8679 (license license:lgpl2.1+)))
8680
8681 (define-public tracker
8682 (package
8683 (name "tracker")
8684 (version "2.3.5")
8685 (source (origin
8686 (method url-fetch)
8687 (uri (string-append "mirror://gnome/sources/tracker/"
8688 (version-major+minor version) "/"
8689 "tracker-" version ".tar.xz"))
8690 (sha256
8691 (base32
8692 "1ixxyqjlv7pnl4j8g6b72fkbjvzfspza8y71ppkncry8i6xkr223"))))
8693 (build-system meson-build-system)
8694 (arguments
8695 `(#:glib-or-gtk? #t
8696 #:configure-flags
8697 ;; Otherwise, the RUNPATH will lack the final path component.
8698 (list (string-append "-Dc_link_args=-Wl,-rpath="
8699 (assoc-ref %outputs "out") "/lib:"
8700 (assoc-ref %outputs "out") "/lib/tracker-2.0"))
8701 #:phases
8702 (modify-phases %standard-phases
8703 (add-before 'check 'pre-check
8704 (lambda _
8705 ;; Some tests expect to write to $HOME.
8706 (setenv "HOME" "/tmp")
8707 #t)))))
8708 (native-inputs
8709 `(("glib:bin" ,glib "bin")
8710 ("gobject-introspection" ,gobject-introspection)
8711 ("python-pygobject" ,python-pygobject)
8712 ("intltool" ,intltool)
8713 ("pkg-config" ,pkg-config)
8714 ("vala" ,vala)))
8715 (inputs
8716 `(("dbus" ,dbus)
8717 ("sqlite" ,sqlite)
8718 ("libxml2" ,libxml2)
8719 ("icu4c" ,icu4c) ; libunistring gets miner-miner-fs test to fail.
8720 ("json-glib" ,json-glib)
8721 ("libsoup" ,libsoup)))
8722 (synopsis "Metadata database, indexer and search tool")
8723 (home-page "https://wiki.gnome.org/Projects/Tracker")
8724 (description
8725 "Tracker is a search engine and triplestore for desktop, embedded and mobile.
8726
8727 It is a middleware component aimed at desktop application developers who want
8728 their apps to browse and search user content. It's not designed to be used
8729 directly by desktop users, but it provides a commandline tool named
8730 @command{tracker} for the adventurous.
8731
8732 Tracker allows your application to instantly perform full-text searches across
8733 all documents. This feature is used by the @{emph{search} bar in GNOME Files, for
8734 example. This is achieved by indexing the user's home directory in the
8735 background.
8736
8737 Tracker also allows your application to query and list content that the user
8738 has stored. For example, GNOME Music displays all the music files that are
8739 found by Tracker. This means that GNOME Music doesn't need to maintain a
8740 database of its own.
8741
8742 If you need to go beyond simple searches, Tracker is also a linked data
8743 endpoint and it understands SPARQL. ")
8744 ;; https://gitlab.gnome.org/GNOME/tracker/-/blob/master/COPYING:
8745 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
8746 ;; libstemmer is bsd-3 and the rest is gpl2+.
8747 (license (list license:gpl2+
8748 license:bsd-3
8749 license:lgpl2.1+))))
8750
8751 (define-public tracker-miners
8752 (package
8753 (name "tracker-miners")
8754 (version "2.3.4")
8755 (source (origin
8756 (method url-fetch)
8757 (uri (string-append "mirror://gnome/sources/tracker-miners/"
8758 (version-major+minor version)
8759 "/tracker-miners-" version ".tar.xz"))
8760 (sha256
8761 (base32
8762 "10wy8d8ski52k809p7s6lbw72qmg05bbmhnl00vx4qrbzqyxvc0b"))))
8763 (build-system meson-build-system)
8764 (arguments
8765 `(#:glib-or-gtk? #t
8766 #:configure-flags
8767 (list "-Dminer_rss=false" ; libgrss is required.
8768 ;; Ensure the RUNPATH contains all installed library locations.
8769 (string-append "-Dc_link_args=-Wl,-rpath="
8770 (assoc-ref %outputs "out")
8771 "/lib/tracker-miners-2.0")
8772 ;; TODO: Enable functional tests. Currently, the following error
8773 ;; appears:
8774 ;; Exception: The functional tests require DConf to be the default
8775 ;; GSettings backend. Got GKeyfileSettingsBackend instead.
8776 "-Dfunctional_tests=false")))
8777 (native-inputs
8778 `(("dbus" ,dbus)
8779 ("intltool" ,intltool)
8780 ("glib:bin" ,glib "bin")
8781 ("gobject-introspection" ,gobject-introspection)
8782 ("pkg-config" ,pkg-config)
8783 ("python-pygobject" ,python-pygobject)))
8784 (inputs
8785 `(("exempi" ,exempi)
8786 ("ffmpeg" ,ffmpeg)
8787 ("flac" ,flac)
8788 ("giflib" ,giflib)
8789 ("glib" ,glib)
8790 ("gstreamer" ,gstreamer)
8791 ("icu4c" ,icu4c)
8792 ("libcue" ,libcue)
8793 ("libexif" ,libexif)
8794 ("libgsf" ,libgsf)
8795 ("libgxps" ,libgxps)
8796 ("libiptcdata" ,libiptcdata)
8797 ("libjpeg" ,libjpeg-turbo)
8798 ("libosinfo" ,libosinfo)
8799 ("libpng" ,libpng)
8800 ("libseccomp" ,libseccomp)
8801 ("libtiff" ,libtiff)
8802 ("libvorbis" ,libvorbis)
8803 ("libxml2" ,libxml2)
8804 ("poppler" ,poppler)
8805 ("taglib" ,taglib)
8806 ("totem-pl-parser" ,totem-pl-parser)
8807 ("tracker" ,tracker)
8808 ("upower" ,upower)
8809 ("zlib" ,zlib)))
8810 (synopsis "Metadata database, indexer and search tool")
8811 (home-page "https://wiki.gnome.org/Projects/Tracker")
8812 (description
8813 "Tracker is an advanced framework for first class objects with associated
8814 metadata and tags. It provides a one stop solution for all metadata, tags,
8815 shared object databases, search tools and indexing.")
8816 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
8817 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
8818 (license (list license:gpl2+
8819 license:lgpl2.1+
8820 license:lgpl2.0+))))
8821
8822 (define-public nautilus
8823 (package
8824 (name "nautilus")
8825 (version "3.34.2")
8826 (source (origin
8827 (method url-fetch)
8828 (uri (string-append "mirror://gnome/sources/" name "/"
8829 (version-major+minor version) "/"
8830 name "-" version ".tar.xz"))
8831 (sha256
8832 (base32
8833 "19zqwq4qyyncc5wq3xls0f7rsavnw741k336p2h7kx35p4kf41mv"))))
8834 (build-system meson-build-system)
8835 (arguments
8836 '(#:glib-or-gtk? #t
8837 #:phases
8838 (modify-phases %standard-phases
8839 (add-after 'unpack 'skip-gtk-update-icon-cache
8840 ;; Don't create 'icon-theme.cache'.
8841 (lambda _
8842 (substitute* "build-aux/meson/postinstall.py"
8843 (("gtk-update-icon-cache") "true"))
8844 #t)))
8845 ;; XXX: FAIL: check-nautilus
8846 ;; Settings schema 'org.gnome.nautilus.preferences' is not installed
8847 #:tests? #f))
8848 (native-inputs
8849 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8850 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
8851 ("gobject-introspection" ,gobject-introspection)
8852 ("intltool" ,intltool)
8853 ("pkg-config" ,pkg-config)))
8854 (inputs
8855 `(("dconf" ,dconf)
8856 ("gexiv2" ,gexiv2)
8857 ("gvfs" ,gvfs)
8858 ("exempi" ,exempi)
8859 ("gnome-desktop" ,gnome-desktop)
8860 ("gnome-autoar" ,gnome-autoar)
8861 ("gst-plugins-base" ,gst-plugins-base)
8862 ("libseccomp" ,libseccomp)
8863 ("libselinux" ,libselinux)
8864 ("tracker" ,tracker)
8865 ("tracker-miners" ,tracker-miners)
8866 ;; XXX: gtk+ is required by libnautilus-extension.pc
8867 ;;
8868 ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
8869 ;; package. See:
8870 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
8871 ("gtk+" ,gtk+)
8872 ("libexif" ,libexif)
8873 ("libxml2" ,libxml2)))
8874 (synopsis "File manager for GNOME")
8875 (home-page "https://wiki.gnome.org/Apps/Nautilus")
8876 (description
8877 "Nautilus (Files) is a file manager designed to fit the GNOME desktop
8878 design and behaviour, giving the user a simple way to navigate and manage its
8879 files.")
8880 (license license:gpl2+)))
8881
8882 (define-public baobab
8883 (package
8884 (name "baobab")
8885 (version "3.38.0")
8886 (source (origin
8887 (method url-fetch)
8888 (uri (string-append
8889 "mirror://gnome/sources/" name "/"
8890 (version-major+minor version) "/"
8891 name "-" version ".tar.xz"))
8892 (sha256
8893 (base32
8894 "0ac3fbl15l836yvgw724q4whbkws9v4b6l2xy6bnp0b0g0a6i104"))))
8895 (build-system meson-build-system)
8896 (arguments
8897 '(#:glib-or-gtk? #t))
8898 (native-inputs
8899 `(("intltool" ,intltool)
8900 ("pkg-config" ,pkg-config)
8901 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8902 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8903 ("itstool" ,itstool)
8904 ("xmllint" ,libxml2)
8905 ("glib" ,glib "bin")
8906 ("vala" ,vala)))
8907 (inputs
8908 `(("gtk+" ,gtk+)))
8909 (synopsis "Disk usage analyzer for GNOME")
8910 (description
8911 "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
8912 usage in the GNOME desktop environment. It can easily scan device volumes or
8913 a specific user-requested directory branch (local or remote). Once the scan
8914 is complete it provides a graphical representation of each selected folder.")
8915 (home-page "https://wiki.gnome.org/Apps/Baobab")
8916 (license license:gpl2+)))
8917
8918 (define-public gnome-backgrounds
8919 (package
8920 (name "gnome-backgrounds")
8921 (version "3.34.0")
8922 (source
8923 (origin
8924 (method url-fetch)
8925 (uri (string-append "mirror://gnome/sources/" name "/"
8926 (version-major+minor version) "/"
8927 name "-" version ".tar.xz"))
8928 (sha256
8929 (base32
8930 "0zxlwy55fz7i582hch2wnj8zy1kzikssgaix0l2y41ccp5nzpdy2"))))
8931 (build-system meson-build-system)
8932 (native-inputs
8933 `(("intltool" ,intltool)))
8934 (home-page "https://gitlab.gnome.org/GNOME/gnome-backgrounds")
8935 (synopsis "Background images for the GNOME desktop")
8936 (description
8937 "GNOME backgrounds package contains a collection of graphics files which
8938 can be used as backgrounds in the GNOME Desktop environment. Additionally,
8939 the package creates the proper framework and directory structure so that you
8940 can add your own files to the collection.")
8941 (license (list license:gpl2+
8942 license:cc-by2.0
8943 license:cc-by-sa2.0
8944 license:cc-by-sa3.0))))
8945
8946 (define-public gnome-screenshot
8947 (package
8948 (name "gnome-screenshot")
8949 (version "3.34.0")
8950 (source
8951 (origin
8952 (method url-fetch)
8953 (uri (string-append "mirror://gnome/sources/" name "/"
8954 (version-major+minor version) "/"
8955 name "-" version ".tar.xz"))
8956 (sha256
8957 (base32
8958 "1rmiq890j7gfn5mcz31xy6jfnnxgc17dq67bhn2k9m5ylbvza2n8"))))
8959 (build-system meson-build-system)
8960 (arguments
8961 '(#:phases
8962 (modify-phases %standard-phases
8963 (add-after 'unpack 'skip-gtk-update-icon-cache
8964 ;; Don't create 'icon-theme.cache'.
8965 (lambda _
8966 (substitute* "build-aux/postinstall.py"
8967 (("gtk-update-icon-cache") "true"))
8968 #t)))))
8969 (native-inputs
8970 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8971 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8972 ("intltool" ,intltool)
8973 ("appstream-glib" ,appstream-glib)
8974 ("pkg-config" ,pkg-config)))
8975 (inputs
8976 `(("gtk+" ,gtk+)
8977 ("libcanberra" ,libcanberra)
8978 ("libx11" ,libx11)
8979 ("libxext" ,libxext)))
8980 (home-page "https://gitlab.gnome.org/GNOME/gnome-screenshot")
8981 (synopsis "Take pictures of your screen")
8982 (description
8983 "GNOME Screenshot is a utility used for taking screenshots of the entire
8984 screen, a window or a user defined area of the screen, with optional
8985 beautifying border effects.")
8986 (license license:gpl2+)))
8987
8988 (define-public dconf-editor
8989 (package
8990 (name "dconf-editor")
8991 (version "3.34.2")
8992 (source
8993 (origin
8994 (method url-fetch)
8995 (uri (string-append "mirror://gnome/sources/" name "/"
8996 (version-major+minor version) "/"
8997 name "-" version ".tar.xz"))
8998 (sha256
8999 (base32
9000 "0pwxjada2vaf69ihpjgp9nky54iykvxq63lp1vl8pxjanif2mk6f"))))
9001 (build-system meson-build-system)
9002 (native-inputs
9003 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
9004 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
9005 ("intltool" ,intltool)
9006 ("pkg-config" ,pkg-config)
9007 ("vala" ,vala)))
9008 (inputs
9009 `(("dconf" ,dconf)
9010 ("gtk+" ,gtk+)
9011 ("libxml2" ,libxml2)))
9012 (home-page "https://gitlab.gnome.org/GNOME/dconf-editor")
9013 (synopsis "Graphical editor for GNOME's dconf configuration system")
9014 (description
9015 "Dconf-editor is a graphical tool for browsing and editing the dconf
9016 configuration system for GNOME. It allows users to configure desktop
9017 software that do not provide their own configuration interface.")
9018 (license license:lgpl2.1+)))
9019
9020 (define-public gnome-default-applications
9021 (package
9022 (name "gnome-default-applications")
9023 (version "0")
9024 (build-system trivial-build-system)
9025 (source #f)
9026 (propagated-inputs
9027 `(("nautilus" ,nautilus)
9028 ("evince" ,evince)))
9029 (arguments
9030 `(#:modules ((guix build utils))
9031 #:builder
9032 (begin
9033 (use-modules (guix build utils))
9034 (let* ((out (assoc-ref %outputs "out"))
9035 (apps (string-append out "/share/applications")))
9036 (mkdir-p apps)
9037 (call-with-output-file (string-append apps "/gnome-mimeapps.list")
9038 (lambda (port)
9039 (format port "[Default Applications]\n")
9040 (format port "inode/directory=org.gnome.Nautilus.desktop\n")
9041 (format port "application/pdf=evince.desktop\n")
9042 (format port "application/postscript=evince.desktop\n")))
9043 #t))))
9044 (synopsis "Default MIME type associations for the GNOME desktop")
9045 (description
9046 "Given many installed packages which might handle a given MIME type, a
9047 user running the GNOME desktop probably has some preferences: for example,
9048 that folders be opened by default by the Nautilus file manager, not the Baobab
9049 disk usage analyzer. This package establishes that set of default MIME type
9050 associations for GNOME.")
9051 (license license:gpl3+)
9052 (home-page #f)))
9053
9054 (define-public libgovirt
9055 (package
9056 (name "libgovirt")
9057 (version "0.3.8")
9058 (source (origin
9059 (method url-fetch)
9060 (uri (string-append "mirror://gnome/sources/" name "/"
9061 (version-major+minor version) "/"
9062 name "-" version ".tar.xz"))
9063 (sha256
9064 (base32
9065 "1y0x1wyakj3ya33hgj0w1jkbcn50q21gmn2zyalxysqp55i1ij8x"))))
9066 (build-system glib-or-gtk-build-system)
9067 (native-inputs
9068 `(("gettext" ,gettext-minimal)
9069 ("glib:bin" ,glib "bin")
9070 ("gobject-introspection" ,gobject-introspection)
9071 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9072 ("gtk+:bin" ,gtk+ "bin")
9073 ("pkg-config" ,pkg-config)))
9074 (inputs
9075 `(("glib-networking" ,glib-networking) ; GIO plugin--for the tests
9076 ("librest" ,rest)))
9077 (synopsis "GoVirt Library")
9078 (description "GoVirt is a GObject wrapper for the oVirt REST API.")
9079 (home-page "https://gitlab.gnome.org/GNOME/libgovirt")
9080 (license license:gpl2+)))
9081
9082 (define-public gnome-weather
9083 (package
9084 (name "gnome-weather")
9085 (version "3.34.0")
9086 (source (origin
9087 (method url-fetch)
9088 (uri (string-append "mirror://gnome/sources/" name "/"
9089 (version-major+minor version) "/"
9090 name "-" version ".tar.xz"))
9091 (sha256
9092 (base32
9093 "1g63xzs17i36if923b36k9fwbk0nqa5vz6zh1k6q2axrzhhpx1i4"))))
9094 (build-system meson-build-system)
9095 (native-inputs
9096 `(("gettext" ,gettext-minimal)
9097 ("glib:bin" ,glib "bin")
9098 ("gobject-introspection" ,gobject-introspection)
9099 ("gtk+:bin" ,gtk+ "bin")
9100 ("pkg-config" ,pkg-config)))
9101 (inputs
9102 `( ;("adwaita-icon-theme" ,adwaita-icon-theme)
9103 ("appstream-glib" ,appstream-glib)
9104 ("geoclue" ,geoclue)
9105 ("gdk-pixbuf" ,gdk-pixbuf)
9106 ("gjs" ,gjs)
9107 ("gnome-desktop" ,gnome-desktop)
9108 ("libgweather" ,libgweather)))
9109 (arguments
9110 `(#:glib-or-gtk? #t
9111 #:phases
9112 (modify-phases %standard-phases
9113 (add-after 'install 'fix-desktop-file
9114 ;; FIXME: "gapplication launch org.gnome.Weather" fails for some reason.
9115 ;; See https://issues.guix.gnu.org/issue/39324.
9116 (lambda* (#:key outputs #:allow-other-keys)
9117 (let* ((out (assoc-ref outputs "out"))
9118 (applications (string-append out "/share/applications")))
9119 (substitute* (string-append applications "/org.gnome.Weather.desktop")
9120 (("Exec=.*") "Exec=gnome-weather\n"))
9121 #t)))
9122 (add-after 'install 'wrap
9123 (lambda* (#:key inputs outputs #:allow-other-keys)
9124 (let ((out (assoc-ref outputs "out"))
9125 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
9126 ;; GNOME Weather needs the typelib files of GTK+, Pango etc at runtime.
9127 (wrap-program (string-append out "/bin/gnome-weather")
9128 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
9129 #t))))))
9130 (synopsis "Weather monitoring for GNOME desktop")
9131 (description "GNOME Weather is a small application that allows you to
9132 monitor the current weather conditions for your city, or anywhere in the
9133 world.")
9134 (home-page "https://wiki.gnome.org/Apps/Weather")
9135 (license license:gpl2+)))
9136
9137 (define-public gnome
9138 (package
9139 (name "gnome")
9140 (version (package-version gnome-shell))
9141 (source #f)
9142 (build-system trivial-build-system)
9143 (arguments '(#:builder (begin (mkdir %output) #t)))
9144 (propagated-inputs
9145 ;; TODO: Add or remove packages according to:
9146 ;; <https://calc.disroot.org/2nu6mpf88ynq.html>.
9147 `(
9148 ;; GNOME-Core-OS-Services
9149 ("accountsservice" ,accountsservice)
9150 ("network-manager" ,network-manager)
9151 ("packagekit" ,packagekit)
9152 ("upower" ,upower)
9153 ;; GNOME-Core-Shell
9154 ("adwaita-icon-theme" ,adwaita-icon-theme)
9155 ("gdm" ,gdm)
9156 ("glib-networking" ,glib-networking)
9157 ("gnome-backgrounds" ,gnome-backgrounds)
9158 ("gnome-bluetooth" ,gnome-bluetooth)
9159 ("gnome-color-manager" ,gnome-color-manager)
9160 ("gnome-control-center" ,gnome-control-center)
9161 ("gnome-desktop" ,gnome-desktop)
9162 ("gnome-getting-started-docs" ,gnome-getting-started-docs)
9163 ("gnome-initial-setup" ,gnome-initial-setup)
9164 ("gnome-keyring" ,gnome-keyring)
9165 ("gnome-menus" ,gnome-menus)
9166 ("gnome-session" ,gnome-session)
9167 ("gnome-settings-daemon" ,gnome-settings-daemon)
9168 ("gnome-shell-extensions" ,gnome-shell-extensions)
9169 ("gnome-shell" ,gnome-shell)
9170 ("gnome-themes-extra" ,gnome-themes-extra)
9171 ("gnome-user-docs" ,gnome-user-docs)
9172 ("gnome-user-share" ,gnome-user-share)
9173 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9174 ("gvfs" ,gvfs)
9175 ("mutter" ,mutter)
9176 ("orca" ,orca)
9177 ("rygel" ,rygel)
9178 ("sushi" ,sushi)
9179 ;; GNOME-Core-Utilities
9180 ("baobab" ,baobab)
9181 ("cheese" ,cheese)
9182 ;; XXX: EoG requires librsvg-next, which depends on Rust, which currently
9183 ;; only works on x86_64, so exclude it on other architectures.
9184 ,@(if (string-prefix? "x86_64" (%current-system))
9185 `(("eog" ,eog))
9186 '())
9187 ("epiphany" ,epiphany)
9188 ("evince" ,evince)
9189 ("file-roller" ,file-roller)
9190 ("gedit" ,gedit)
9191 ("gnome-boxes" ,gnome-boxes)
9192 ("gnome-calculator" ,gnome-calculator)
9193 ("gnome-calendar" ,gnome-calendar)
9194 ("gnome-characters" ,gnome-characters)
9195 ("gnome-clocks" ,gnome-clocks)
9196 ("gnome-contacts" ,gnome-contacts)
9197 ("gnome-disk-utility" ,gnome-disk-utility)
9198 ("gnome-font-viewer" ,gnome-font-viewer)
9199 ("gnome-maps" ,gnome-maps)
9200 ; TODO: ("gnome-music" ,gnome-music)
9201 ; TODO: ("gnome-photos" ,gnome-photos)
9202 ("gnome-screenshot" ,gnome-screenshot)
9203 ("gnome-system-monitor" ,gnome-system-monitor)
9204 ("gnome-terminal" ,gnome-terminal)
9205 ("gnome-weather" ,gnome-weather)
9206 ("nautilus" ,nautilus)
9207 ("simple-scan" ,simple-scan)
9208 ("totem" ,totem)
9209 ("yelp" ,yelp)
9210 ;; Others
9211 ("hicolor-icon-theme" ,hicolor-icon-theme)
9212 ("gnome-online-accounts" ,gnome-online-accounts)
9213
9214 ;; Packages not part of GNOME proper but that are needed for a good
9215 ;; experience. See <https://bugs.gnu.org/39646>.
9216 ;; XXX: Find out exactly which ones are needed and why.
9217 ("font-cantarell" ,font-cantarell)
9218 ("font-dejavu" ,font-dejavu)
9219 ("at-spi2-core" ,at-spi2-core)
9220 ("dbus" ,dbus)
9221 ("dconf" ,dconf)
9222 ("desktop-file-utils" ,desktop-file-utils)
9223 ("gnome-default-applications" ,gnome-default-applications)
9224 ("gnome-themes-standard" ,gnome-themes-standard)
9225 ("gst-plugins-base" ,gst-plugins-base)
9226 ("gst-plugins-good" ,gst-plugins-good)
9227 ("gucharmap" ,gucharmap)
9228 ("pinentry-gnome3" ,pinentry-gnome3)
9229 ("pulseaudio" ,pulseaudio)
9230 ("shared-mime-info" ,shared-mime-info)
9231 ("system-config-printer" ,system-config-printer)
9232 ("xdg-user-dirs" ,xdg-user-dirs)
9233 ("yelp" ,yelp)
9234 ("zenity" ,zenity)))
9235 (synopsis "The GNU desktop environment")
9236 (home-page "https://www.gnome.org/")
9237 (description
9238 "GNOME is the graphical desktop for GNU. It includes a wide variety of
9239 applications for browsing the web, editing text and images, creating
9240 documents and diagrams, playing media, scanning, and much more.")
9241 (license license:gpl2+)))
9242
9243 (define-public byzanz
9244 ;; The last stable release of Byzanz was in 2011, but there have been many
9245 ;; useful commits made to the Byzanz repository since then that it would be
9246 ;; silly to use such an old release.
9247 (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
9248 (package
9249 (name "byzanz")
9250 (version (string-append "0.2-1." (string-take commit 7)))
9251 (source (origin
9252 (method git-fetch)
9253 (uri (git-reference
9254 (url "https://git.gnome.org/browse/byzanz")
9255 (commit commit)))
9256 (file-name (string-append name "-" version "-checkout"))
9257 (sha256
9258 (base32
9259 "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
9260 (build-system glib-or-gtk-build-system)
9261 (arguments
9262 '(#:phases
9263 (modify-phases %standard-phases
9264 (add-before 'bootstrap 'build-without-Werror
9265 (lambda _
9266 ;; The build system cleverly detects that we're not building from
9267 ;; a release tarball and turns on -Werror for GCC.
9268 ;; Unsurprisingly, there is a warning during compilation that
9269 ;; causes the build to fail unnecessarily, so we remove the flag.
9270 (substitute* '("configure.ac")
9271 (("-Werror") ""))
9272 #t)))))
9273 (native-inputs
9274 `(("autoconf" ,autoconf)
9275 ("automake" ,automake)
9276 ("gnome-common" ,gnome-common)
9277 ("intltool" ,intltool)
9278 ("libtool" ,libtool)
9279 ("pkg-config" ,pkg-config)
9280 ("which" ,which)))
9281 (inputs
9282 `(("glib" ,glib)
9283 ("gstreamer" ,gstreamer)
9284 ("gst-plugins-base" ,gst-plugins-base)
9285 ("gtk+" ,gtk+)))
9286 (synopsis "Desktop recording program")
9287 (description "Byzanz is a simple desktop recording program with a
9288 command-line interface. It can record part or all of an X display for a
9289 specified duration and save it as a GIF encoded animated image file.")
9290 (home-page "https://git.gnome.org/browse/byzanz")
9291 (license license:gpl2+))))
9292
9293 (define-public authenticator
9294 (package
9295 (name "authenticator")
9296 (version "3.32.2")
9297 (source
9298 (origin
9299 (method git-fetch)
9300 (uri (git-reference
9301 (url "https://gitlab.gnome.org/World/Authenticator")
9302 (commit version)))
9303 (file-name (git-file-name name version))
9304 (sha256
9305 (base32 "1c4r9rnrz5gazrfg0z2rcwax4nscs7z391bcjcl74k6ln3blwzpr"))))
9306 (build-system meson-build-system)
9307 (arguments
9308 `(#:glib-or-gtk? #t
9309 #:phases
9310 (modify-phases %standard-phases
9311 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
9312 (lambda* (#:key inputs outputs #:allow-other-keys)
9313 (let ((prog (string-append (assoc-ref outputs "out")
9314 "/bin/authenticator"))
9315 (pylib (string-append (assoc-ref outputs "out")
9316 "/lib/python"
9317 ,(version-major+minor
9318 (package-version python))
9319 "/site-packages")))
9320 (wrap-program prog
9321 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
9322 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
9323 #t))))))
9324 (native-inputs
9325 `(("desktop-file-utils" ,desktop-file-utils)
9326 ("gettext" ,gettext-minimal)
9327 ("glib:bin" ,glib "bin")
9328 ("gobject-introspection" ,gobject-introspection)
9329 ("gtk+:bin" ,gtk+ "bin")
9330 ("pkg-config" ,pkg-config)))
9331 (inputs
9332 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9333 ("gtk+" ,gtk+)
9334 ("libhandy" ,libhandy-0.0)
9335 ("libsecret" ,libsecret)
9336 ("python-beautifulsoup4" ,python-beautifulsoup4)
9337 ("python-pillow" ,python-pillow)
9338 ("python-pyfavicon" ,python-pyfavicon)
9339 ("python-pygobject" ,python-pygobject)
9340 ("python-pyotp" ,python-pyotp)
9341 ("python-pyzbar" ,python-pyzbar)
9342 ("yoyo-migrations" ,yoyo-migrations)
9343 ("zbar" ,zbar)))
9344 (home-page "https://gitlab.gnome.org/World/Authenticator/")
9345 (synopsis "Two-factor authentication application built for GNOME")
9346 (description
9347 "Authenticator is a two-factor authentication (2FA) application built for
9348 the GNOME desktop environment.
9349
9350 Features:
9351
9352 @itemize
9353 @item QR code scanner
9354 @item Beautiful UI
9355 @item Huge database of more than 560 supported services
9356 @item Keep your PIN tokens secure by locking the application with a password
9357 @item Automatically fetch an image for services using their favicon
9358 @item The possibility to add new services
9359 @end itemize")
9360 (license license:gpl3+)))
9361
9362 (define-public gsound
9363 (package
9364 (name "gsound")
9365 (version "1.0.2")
9366 (source (origin
9367 (method url-fetch)
9368 (uri (string-append "mirror://gnome/sources/" name "/"
9369 (version-major+minor version) "/"
9370 name "-" version ".tar.xz"))
9371 (sha256
9372 (base32
9373 "0lwfwx2c99qrp08pfaj59pks5dphsnxjgrxyadz065d8xqqgza5v"))))
9374 (build-system glib-or-gtk-build-system)
9375 (native-inputs
9376 `(("pkg-config" ,pkg-config)
9377 ("gobject-introspection" ,gobject-introspection)
9378 ("vala" ,vala)))
9379 (inputs
9380 `(("glib" ,glib)
9381 ("libcanberra" ,libcanberra)))
9382 (home-page "https://wiki.gnome.org/Projects/GSound")
9383 (synopsis "GObject wrapper for libcanberra")
9384 (description
9385 "GSound is a small library for playing system sounds. It's designed to be
9386 used via GObject Introspection, and is a thin wrapper around the libcanberra C
9387 library.")
9388 (license license:lgpl2.1+)))
9389
9390 (define-public libzapojit
9391 (package
9392 (name "libzapojit")
9393 (version "0.0.3")
9394 (source (origin
9395 (method url-fetch)
9396 (uri (string-append "mirror://gnome/sources/" name "/"
9397 (version-major+minor version) "/"
9398 name "-" version ".tar.xz"))
9399 (sha256
9400 (base32
9401 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
9402 (build-system gnu-build-system)
9403 (native-inputs
9404 `(("gobject-introspection" ,gobject-introspection)
9405 ("intltool" ,intltool)
9406 ("pkg-config" ,pkg-config)))
9407 (inputs
9408 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9409 ("json-glib" ,json-glib)
9410 ("rest" ,rest)))
9411 (home-page "https://wiki.gnome.org/Projects/Zapojit")
9412 (synopsis "Library for accessing SkyDrive and Hotmail")
9413 (description
9414 "Libzapojit is a GLib-based library for accessing online service APIs of
9415 Microsoft SkyDrive and Hotmail, using their REST protocols.")
9416 (license license:lgpl2.1+)))
9417
9418 (define-public gnome-clocks
9419 (package
9420 (name "gnome-clocks")
9421 (version "3.34.0")
9422 (source (origin
9423 (method url-fetch)
9424 (uri (string-append "mirror://gnome/sources/" name "/"
9425 (version-major+minor version) "/"
9426 name "-" version ".tar.xz"))
9427 (sha256
9428 (base32
9429 "0g7hjk55smhkd09hwa9kag3h5a12l494wj89w9smpdk3ghsmy6b1"))))
9430 (build-system meson-build-system)
9431 (arguments
9432 '(#:glib-or-gtk? #t
9433 #:phases
9434 (modify-phases %standard-phases
9435 (add-after 'unpack 'skip-gtk-update-icon-cache
9436 ;; Don't create 'icon-theme.cache'.
9437 (lambda _
9438 (substitute* "build-aux/post-install.py"
9439 (("gtk-update-icon-cache") "true"))
9440 #t)))))
9441 (native-inputs
9442 `(("vala" ,vala)
9443 ("pkg-config" ,pkg-config)
9444 ("glib" ,glib "bin") ; for glib-compile-resources
9445 ("desktop-file-utils" ,desktop-file-utils)
9446 ("gettext" ,gettext-minimal)
9447 ("itstool" ,itstool)))
9448 (inputs
9449 `(("glib" ,glib)
9450 ("gtk+" ,gtk+)
9451 ("gsound" ,gsound)
9452 ("geoclue" ,geoclue)
9453 ("geocode-glib" ,geocode-glib)
9454 ("libgweather" ,libgweather)
9455 ("gnome-desktop" ,gnome-desktop)))
9456 (home-page "https://wiki.gnome.org/Apps/Clocks")
9457 (synopsis "GNOME's clock application")
9458 (description
9459 "GNOME Clocks is a simple clocks application designed to fit the GNOME
9460 desktop. It supports world clock, stop watch, alarms, and count down timer.")
9461 (license license:gpl3+)))
9462
9463 (define-public gnome-calendar
9464 (package
9465 (name "gnome-calendar")
9466 (version "3.34.2")
9467 (source (origin
9468 (method url-fetch)
9469 (uri (string-append "mirror://gnome/sources/" name "/"
9470 (version-major+minor version) "/"
9471 name "-" version ".tar.xz"))
9472 (sha256
9473 (base32
9474 "1bnmd191044zn2kr6f5vg7sm5q59qf7z652awll1f7s6ahijr8rw"))))
9475 (build-system meson-build-system)
9476 (arguments
9477 '(#:glib-or-gtk? #t
9478 ;; gnome-calendar has to be installed before the tests can be run
9479 ;; https://bugzilla.gnome.org/show_bug.cgi?id=788224
9480 #:tests? #f
9481 #:phases
9482 (modify-phases %standard-phases
9483 (add-after 'unpack 'skip-gtk-update-icon-cache
9484 ;; Don't create 'icon-theme.cache'.
9485 (lambda _
9486 (substitute* "build-aux/meson/meson_post_install.py"
9487 (("gtk-update-icon-cache") "true"))
9488 #t)))))
9489 (native-inputs
9490 `(("gettext" ,gettext-minimal)
9491 ("glib-bin" ,glib "bin") ; For glib-compile-schemas
9492 ("pkg-config" ,pkg-config)))
9493 (inputs
9494 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9495 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9496 ("libdazzle" ,libdazzle)
9497 ("libedataserverui" ,evolution-data-server)
9498 ("libgweather" ,libgweather)
9499 ("geoclue" ,geoclue)))
9500 (propagated-inputs
9501 `(("evolution-data-server" ,evolution-data-server)))
9502 (home-page "https://wiki.gnome.org/Apps/Calendar")
9503 (synopsis "GNOME's calendar application")
9504 (description
9505 "GNOME Calendar is a simple calendar application designed to fit the GNOME
9506 desktop. It supports multiple calendars, month, week and year view.")
9507 (license license:gpl3+)))
9508
9509 (define-public gnome-todo
9510 (package
9511 (name "gnome-todo")
9512 (version "3.28.1")
9513 (source (origin
9514 (method url-fetch)
9515 (uri (string-append "mirror://gnome/sources/" name "/"
9516 (version-major+minor version) "/"
9517 name "-" version ".tar.xz"))
9518 (sha256
9519 (base32
9520 "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"))
9521 (patches
9522 (search-patches "gnome-todo-delete-esource-duplicate.patch"))))
9523 (build-system meson-build-system)
9524 (arguments
9525 '(#:glib-or-gtk? #t
9526 #:phases (modify-phases %standard-phases
9527 (add-after
9528 'install 'wrap-gnome-todo
9529 (lambda* (#:key inputs outputs #:allow-other-keys)
9530 (let ((out (assoc-ref outputs "out"))
9531 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
9532 (python-path (getenv "PYTHONPATH")))
9533 (wrap-program (string-append out "/bin/gnome-todo")
9534 ;; XXX: gi plugins are broken.
9535 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=787212
9536 ;; For plugins.
9537 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
9538 `("PYTHONPATH" ":" prefix (,python-path))))
9539 #t)))))
9540 (native-inputs
9541 `(("gettext" ,gettext-minimal)
9542 ("gobject-introspection" ,gobject-introspection)
9543 ("glib:bin" ,glib "bin") ; For glib-compile-resources
9544 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
9545 ("pkg-config" ,pkg-config)))
9546 (inputs
9547 `(("rest" ,rest) ; For Todoist plugin
9548 ("json-glib" ,json-glib) ; For Todoist plugin
9549 ("libedataserverui" ,evolution-data-server)
9550 ("libical" ,libical)
9551 ("libpeas" ,libpeas)
9552 ("python-pygobject" ,python-pygobject)
9553 ("evolution-data-server" ,evolution-data-server)
9554 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9555 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
9556 (home-page "https://wiki.gnome.org/Apps/Todo")
9557 (synopsis "GNOME's ToDo Application")
9558 (description
9559 "GNOME To Do is a simplistic personal task manager designed to perfectly
9560 fit the GNOME desktop.")
9561 (license license:gpl3+)))
9562
9563 (define-public gnome-dictionary
9564 (package
9565 (name "gnome-dictionary")
9566 (version "3.26.1")
9567 (source (origin
9568 (method url-fetch)
9569 (uri (string-append "mirror://gnome/sources/" name "/"
9570 (version-major+minor version) "/"
9571 name "-" version ".tar.xz"))
9572 (sha256
9573 (base32
9574 "007k2bq8iplg4psdpz074r5d4zxvn4s95qym4rw9hs6giljbrf0n"))))
9575 (build-system meson-build-system)
9576 (arguments '(#:glib-or-gtk? #t
9577 #:phases (modify-phases %standard-phases
9578 (add-after 'unpack 'patch-install-script
9579 (lambda _
9580 ;; This script attempts to compile glib schemas
9581 ;; and create an empty MIME database. We do
9582 ;; that elsewhere, so prevent it from running.
9583 (substitute* "build-aux/post-install.sh"
9584 (("\\[ -z \"\\$DESTDIR\" \\]") "false"))
9585 #t)))))
9586 (native-inputs
9587 `(("glib:bin" ,glib "bin")
9588 ("gobject-introspection" ,gobject-introspection)
9589 ("intltool" ,intltool)
9590 ("itstool" ,itstool)
9591 ("pkg-config" ,pkg-config)
9592 ("xmllint" ,libxml2)))
9593 (inputs
9594 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9595 ("gtk+" ,gtk+)))
9596 (home-page "https://wiki.gnome.org/Apps/Dictionary")
9597 (synopsis "Look up words in dictionary sources")
9598 (description
9599 "GNOME Dictionary can look for the definition or translation of a word in
9600 existing databases over the internet.")
9601 (license license:gpl3+)))
9602
9603 (define-public gnome-tweaks
9604 (package
9605 (name "gnome-tweaks")
9606 (version "3.34.1")
9607 (source (origin
9608 (method url-fetch)
9609 (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
9610 (version-major+minor version) "/"
9611 "gnome-tweaks-" version ".tar.xz"))
9612 (patches
9613 (list (search-patch "gnome-tweaks-search-paths.patch")))
9614 (sha256
9615 (base32
9616 "19y62dj4n5i6v4zpjllxl51dch6ndy8xs45v5aqmmq9xyfrqk5yq"))))
9617 (build-system meson-build-system)
9618 (arguments
9619 `(#:glib-or-gtk? #t
9620 #:configure-flags '("-Dlocalstatedir=/tmp"
9621 "-Dsysconfdir=/tmp")
9622 #:imported-modules ((guix build python-build-system)
9623 ,@%meson-build-system-modules)
9624 #:phases
9625 (modify-phases %standard-phases
9626 (add-after 'unpack 'skip-gtk-update-icon-cache
9627 ;; Don't create 'icon-theme.cache'.
9628 (lambda _
9629 (substitute* "meson-postinstall.py"
9630 (("gtk-update-icon-cache") "true"))
9631 #t))
9632 (add-after 'install 'wrap
9633 (@@ (guix build python-build-system) wrap))
9634 (add-after 'wrap 'wrap-gi-typelib
9635 (lambda* (#:key inputs outputs #:allow-other-keys)
9636 (let ((out (assoc-ref outputs "out"))
9637 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
9638 (wrap-program (string-append out "/bin/gnome-tweaks")
9639 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
9640 #t)))))
9641 (native-inputs
9642 `(("intltool" ,intltool)
9643 ("pkg-config" ,pkg-config)))
9644 (inputs
9645 `(("gnome-desktop" ,gnome-desktop)
9646 ("gtk+" ,gtk+)
9647 ("gobject-introspection" ,gobject-introspection)
9648 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9649 ("libhandy" ,libhandy-0.0)
9650 ("libnotify" ,libnotify)
9651 ("libsoup" ,libsoup)
9652 ("nautilus" ,nautilus)
9653 ("python" ,python)
9654 ("python-pygobject" ,python-pygobject)))
9655 (synopsis "Customize advanced GNOME 3 options")
9656 (home-page "https://wiki.gnome.org/Apps/Tweaks")
9657 (description
9658 "GNOME Tweaks allows adjusting advanced configuration settings in
9659 GNOME 3. This includes things like the fonts used in user interface elements,
9660 alternative user interface themes, changes in window management behavior,
9661 GNOME Shell appearance and extension, etc.")
9662 (license license:gpl3+)))
9663
9664 (define-public gnome-shell-extensions
9665 (package
9666 (name "gnome-shell-extensions")
9667 (version "3.34.2")
9668 (source (origin
9669 (method url-fetch)
9670 (uri (string-append "mirror://gnome/sources/" name "/"
9671 (version-major+minor version) "/"
9672 name "-" version ".tar.xz"))
9673 (sha256
9674 (base32
9675 "1f5l35l3kdkzrv49xmg1sh11vwmgjbg7hx3gb91i39bfl1snxqd1"))))
9676 (build-system meson-build-system)
9677 (arguments
9678 '(#:configure-flags '("-Dextension_set=all")))
9679 (native-inputs
9680 `(("glib:bin" ,glib "bin")
9681 ("intltool" ,intltool)
9682 ("pkg-config" ,pkg-config)))
9683 (propagated-inputs
9684 `(("glib" ,glib)))
9685 (synopsis "Extensions for GNOME Shell")
9686 (description "GNOME Shell extensions modify and extend GNOME Shell
9687 functionality and behavior.")
9688 (home-page "https://extensions.gnome.org/")
9689 (license license:gpl3+)))
9690
9691 (define-public folks
9692 (package
9693 (name "folks")
9694 (version "0.13.1")
9695 (source (origin
9696 (method url-fetch)
9697 (uri (string-append
9698 "mirror://gnome/sources/folks/"
9699 (version-major+minor version) "/"
9700 "folks-" version ".tar.xz"))
9701 (sha256
9702 (base32
9703 "0pda8sx4ap3lyri5fdrnakl29la1zkhwlc9bmnp13qigp1iwdw9x"))))
9704 (build-system meson-build-system)
9705 (arguments
9706 '(#:phases
9707 (modify-phases %standard-phases
9708 (add-after 'unpack 'skip-gtk-update-icon-cache
9709 ;; Don't create 'icon-theme.cache'.
9710 (lambda _
9711 (substitute* "meson_post_install.py"
9712 (("gtk-update-icon-cache") "true"))
9713 #t)))))
9714 (inputs
9715 `(("bdb" ,bdb)
9716 ("dbus-glib" ,dbus-glib)
9717 ("evolution-data-server" ,evolution-data-server)
9718 ("glib" ,glib)
9719 ("libgee" ,libgee)
9720 ("readline" ,readline)
9721 ("telepathy-glib" ,telepathy-glib)))
9722 (native-inputs
9723 `(("glib:bin" ,glib "bin")
9724 ("gobject-introspection" ,gobject-introspection)
9725 ("intltool" ,intltool)
9726 ("pkg-config" ,pkg-config)
9727 ("vala" ,vala)))
9728 (synopsis "Library to aggregate data about people")
9729 (description "Libfolks is a library that aggregates information about people
9730 from multiple sources (e.g., Telepathy connection managers for IM contacts,
9731 Evolution Data Server for local contacts, libsocialweb for web service contacts,
9732 etc.) to create metacontacts. It's written in Vala, which generates C code when
9733 compiled.")
9734 (home-page "https://wiki.gnome.org/Projects/Folks")
9735 (license license:lgpl2.1+)))
9736
9737 (define-public gfbgraph
9738 (package
9739 (name "gfbgraph")
9740 (version "0.2.4")
9741 (source (origin
9742 (method url-fetch)
9743 (uri (string-append
9744 "mirror://gnome/sources/gfbgraph/"
9745 (version-major+minor version) "/"
9746 "gfbgraph-" version ".tar.xz"))
9747 (sha256
9748 (base32
9749 "0yck7dwvjk16a52nafjpi0a39rxwmg0w833brj45acz76lgkjrb0"))))
9750 (build-system glib-or-gtk-build-system)
9751 (arguments
9752 `(#:tests? #f ; tests appear to require the network
9753 #:configure-flags '("--disable-static"
9754 "--enable-gtk-doc"
9755 "--enable-introspection")))
9756 (native-inputs
9757 `(("gobject-introspection" ,gobject-introspection)
9758 ("gtk-doc" ,gtk-doc)
9759 ("pkg-config" ,pkg-config)
9760
9761 ;; The 0.2.4 ‘release’ tarball isn't bootstrapped.
9762 ("autoconf" ,autoconf)
9763 ("automake" ,automake)
9764 ("libtool" ,libtool)
9765 ("which" ,which)))
9766 (inputs
9767 `(("json-glib" ,json-glib)
9768 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9769 ("rest" ,rest)))
9770 (synopsis "GLib/GObject wrapper for the Facebook API")
9771 (description "This library allows you to use the Facebook API from
9772 GLib/GObject code.")
9773 (home-page "https://wiki.gnome.org/Projects/GFBGraph")
9774 (license license:lgpl2.1+)))
9775
9776 (define-public libgnomekbd
9777 (package
9778 (name "libgnomekbd")
9779 (version "3.26.1")
9780 (source (origin
9781 (method url-fetch)
9782 (uri (string-append "mirror://gnome/sources/libgnomekbd/"
9783 (version-major+minor version) "/"
9784 "libgnomekbd-" version ".tar.xz"))
9785 (sha256
9786 (base32
9787 "0y962ykn3rr9gylj0pwpww7bi20lmhvsw6qvxs5bisbn2mih5jpp"))))
9788 (build-system gnu-build-system)
9789 (native-inputs
9790 `(("pkg-config" ,pkg-config)
9791 ("glib" ,glib "bin")
9792 ("intltool" ,intltool)))
9793 (propagated-inputs
9794 ;; Referred to in .h files and .pc.
9795 `(("glib" ,glib)
9796 ("gtk+" ,gtk+)
9797 ("libxklavier" ,libxklavier)))
9798 (home-page "https://www.gnome.org")
9799 (synopsis "GNOME keyboard configuration library")
9800 (description
9801 "Libgnomekbd is a keyboard configuration library for the GNOME desktop
9802 environment, which can notably display keyboard layouts.")
9803 (license license:lgpl2.0+)))
9804
9805 ;;; This package is no longer maintained:
9806 ;;; https://wiki.gnome.org/Attic/LibUnique
9807 ;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
9808 ;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
9809 (define-public libunique
9810 (package
9811 (name "libunique")
9812 (version "3.0.2")
9813 (source (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 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
9821 (build-system glib-or-gtk-build-system)
9822 (arguments
9823 `(#:configure-flags '("--disable-static"
9824 "--disable-dbus" ; use gdbus
9825 "--enable-introspection")))
9826 (native-inputs
9827 `(("pkg-config" ,pkg-config)
9828 ("gobject-introspection" ,gobject-introspection)
9829 ("glib:bin" ,glib "bin")
9830 ("gtk-doc" ,gtk-doc)))
9831 (propagated-inputs
9832 ;; Referred to in .h files and .pc.
9833 `(("gtk+" ,gtk+)))
9834 (home-page "https://wiki.gnome.org/Attic/LibUnique")
9835 (synopsis "Library for writing single instance applications")
9836 (description
9837 "Libunique is a library for writing single instance applications. If you
9838 launch a single instance application twice, the second instance will either just
9839 quit or will send a message to the running instance. Libunique makes it easy to
9840 write this kind of application, by providing a base class, taking care of all
9841 the IPC machinery needed to send messages to a running instance, and also
9842 handling the startup notification side.")
9843 (license license:lgpl2.1+)))
9844
9845 (define-public gnome-calculator
9846 (package
9847 (name "gnome-calculator")
9848 (version "3.34.1")
9849 (source
9850 (origin
9851 (method url-fetch)
9852 (uri (string-append "mirror://gnome/sources/" name "/"
9853 (version-major+minor version) "/"
9854 name "-" version ".tar.xz"))
9855 (sha256
9856 (base32
9857 "0lbh87255zzggqzai6543qg920y52bl4vs5m5h5087ghzg14hlsd"))))
9858 (build-system meson-build-system)
9859 (arguments '(#:glib-or-gtk? #t))
9860 (native-inputs
9861 `(("gettext" ,gettext-minimal)
9862 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
9863 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
9864 ("itstool" ,itstool)
9865 ("vala" ,vala)
9866 ("pkg-config" ,pkg-config)))
9867 (inputs
9868 `(("glib" ,glib)
9869 ("gtksourceview" ,gtksourceview)
9870 ("libgee" ,libgee)
9871 ("libsoup" ,libsoup)
9872 ("libxml2" ,libxml2)
9873 ("mpc" ,mpc)
9874 ("mpfr" ,mpfr)))
9875 (home-page "https://wiki.gnome.org/Apps/Calculator")
9876 (synopsis "Desktop calculator")
9877 (description
9878 "Calculator is an application that solves mathematical equations and
9879 is suitable as a default application in a Desktop environment.")
9880 (license license:gpl3)))
9881
9882 (define-public xpad
9883 (package
9884 (name "xpad")
9885 (version "5.1.0")
9886 (source
9887 (origin
9888 (method url-fetch)
9889 (uri (string-append "https://launchpad.net/xpad/trunk/"
9890 version "/+download/"
9891 name "-" version ".tar.bz2"))
9892 (sha256
9893 (base32
9894 "0l0g5x8g6dwhf5ksnqqrjjsycy57kcvdslkmsr6bl3vrsjd7qml3"))))
9895 (build-system gnu-build-system)
9896 (native-inputs
9897 `(("autoconf" ,autoconf)
9898 ("automake" ,automake)
9899 ("gtk+:bin" ,gtk+ "bin")
9900 ("intltool" ,intltool)
9901 ("pkg-config" ,pkg-config)))
9902 (inputs
9903 `(("gtksourceview" ,gtksourceview-3)
9904 ("libsm" ,libsm)))
9905 (home-page "https://wiki.gnome.org/Apps/Xpad")
9906 (synopsis "Virtual sticky note")
9907 (description
9908 "Xpad is a sticky note that strives to be simple, fault tolerant,
9909 and customizable. Xpad consists of independent pad windows, each is
9910 basically a text box in which notes can be written.")
9911 (license license:gpl3+)))
9912
9913 (define-public gucharmap
9914 (let ((unicode-files
9915 '(("Blocks.txt"
9916 "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1")
9917 ("DerivedAge.txt"
9918 "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6")
9919 ("NamesList.txt"
9920 "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61")
9921 ("Scripts.txt"
9922 "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx")
9923 ("UnicodeData.txt"
9924 "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap")
9925 ("Unihan.zip"
9926 "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"))))
9927 (package
9928 (name "gucharmap")
9929 (version "12.0.1")
9930 (source
9931 (origin
9932 (method url-fetch)
9933 (uri (string-append "mirror://gnome/sources/" name "/"
9934 (version-major+minor version) "/"
9935 name "-" version ".tar.xz"))
9936 (sha256
9937 (base32
9938 "0m915hm2b2d6r3vs1l80rqpssvg78pv8j6nv54yg62kzknnqmpir"))))
9939 (build-system glib-or-gtk-build-system)
9940 (arguments
9941 `(#:modules ((ice-9 match)
9942 (guix build glib-or-gtk-build-system)
9943 (guix build utils))
9944 #:configure-flags
9945 (list "--with-unicode-data=../unicode-data")
9946 #:phases
9947 (modify-phases %standard-phases
9948 (add-after 'unpack 'prepare-unicode-data
9949 (lambda* (#:key inputs #:allow-other-keys)
9950 (mkdir-p "../unicode-data")
9951 (with-directory-excursion "../unicode-data"
9952 (for-each (match-lambda
9953 ((file _)
9954 (install-file (assoc-ref inputs file) ".")))
9955 ',unicode-files))
9956 #t)))))
9957 (native-inputs
9958 `(("desktop-file-utils" ,desktop-file-utils)
9959 ("glib:bin" ,glib "bin") ; for glib-compile-resources.
9960 ("gobject-introspection" ,gobject-introspection)
9961 ("intltool" ,intltool)
9962 ("itstool" ,itstool)
9963 ("pkg-config" ,pkg-config)
9964 ,@(map (match-lambda
9965 ((file hash)
9966 `(,file
9967 ,(origin
9968 (method url-fetch)
9969 (uri (string-append
9970 "http://www.unicode.org/Public/12.0.0/ucd/"
9971 file))
9972 (sha256 (base32 hash))))))
9973 unicode-files)
9974 ("unzip" ,unzip)))
9975 (inputs
9976 `(("gtk+" ,gtk+)
9977 ("xmllint" ,libxml2)))
9978 (home-page "https://wiki.gnome.org/Apps/Gucharmap")
9979 (synopsis "Unicode character picker and font browser")
9980 (description
9981 "This program allows you to browse through all the available Unicode
9982 characters and categories for the installed fonts, and to examine their
9983 detailed properties. It is an easy way to find the character you might
9984 only know by its Unicode name or code point.")
9985 (license license:gpl3+))))
9986
9987 (define-public bluefish
9988 (package
9989 (name "bluefish")
9990 (version "2.2.12")
9991 (source
9992 (origin
9993 (method url-fetch)
9994 (uri (string-append "https://www.bennewitz.com/bluefish/stable/source/"
9995 "bluefish-" version ".tar.gz"))
9996 (sha256
9997 (base32 "09hgxq139kbkjda5y073lqhq1z1x7cx0j80jh77afrqa3y9c53wl"))))
9998 (build-system gnu-build-system)
9999 (native-inputs
10000 `(("desktop-file-utils" ,desktop-file-utils)
10001 ("intltool" ,intltool)
10002 ("pkg-config" ,pkg-config)))
10003 (inputs
10004 `(("enchant" ,enchant)
10005 ("gtk+" ,gtk+)
10006 ("python" ,python-wrapper)
10007 ("xmllint" ,libxml2)
10008 ("gucharmap" ,gucharmap)))
10009 (home-page "http://bluefish.openoffice.nl")
10010 (synopsis "Web development studio")
10011 (description
10012 "Bluefish is an editor aimed at programmers and web developers,
10013 with many options to write web sites, scripts and other code.
10014 Bluefish supports many programming and markup languages.")
10015 (license license:gpl3+)))
10016
10017 (define-public gnome-system-monitor
10018 (package
10019 (name "gnome-system-monitor")
10020 (version "3.32.1")
10021 (source
10022 (origin
10023 (method url-fetch)
10024 (uri (string-append "mirror://gnome/sources/" name "/"
10025 (version-major+minor version) "/"
10026 name "-" version ".tar.xz"))
10027 (sha256
10028 (base32
10029 "1wd43qdgjav6xamq5z5cy8fri5zr01jga3plc9w95gcia0rk3ha8"))))
10030 (build-system meson-build-system)
10031 (arguments
10032 '(#:glib-or-gtk? #t
10033 #:configure-flags '("-Dsystemd=false")))
10034 (native-inputs
10035 `(("glib:bin" ,glib "bin") ; for glib-mkenums.
10036 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
10037 ("intltool" ,intltool)
10038 ("itstool" ,itstool)
10039 ("libgtop" ,libgtop)
10040 ("polkit" ,polkit)
10041 ("pkg-config" ,pkg-config)))
10042 (inputs
10043 `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
10044 ("gtk+" ,gtk+)
10045 ("gtkmm" ,gtkmm)
10046 ("librsvg" ,librsvg)
10047 ("libxml2" ,libxml2)
10048 ("libwnck" ,libwnck)))
10049 (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
10050 (synopsis "Process viewer and system resource monitor for GNOME")
10051 (description
10052 "GNOME System Monitor is a GNOME process viewer and system monitor with
10053 an attractive, easy-to-use interface. It has features, such as a tree view
10054 for process dependencies, icons for processes, the ability to hide processes,
10055 graphical time histories of CPU/memory/swap usage and the ability to
10056 kill/reinice processes.")
10057 (license license:gpl2+)))
10058
10059 (define-public python-pyatspi
10060 (package
10061 (name "python-pyatspi")
10062 (version "2.34.0")
10063 (source (origin
10064 (method url-fetch)
10065 (uri (string-append
10066 "mirror://gnome/sources/pyatspi/"
10067 (version-major+minor version)
10068 "/pyatspi-" version ".tar.xz"))
10069 (sha256
10070 (base32
10071 "0j3f75j0zd6ca8msg7yr19qsfirqkn9fk8pqbjnlhqrpri455g4p"))))
10072 (build-system gnu-build-system)
10073 (arguments
10074 `(#:phases
10075 (modify-phases %standard-phases
10076 (add-before 'build 'fix-atk-load
10077 (lambda _
10078 (substitute* "pyatspi/__init__.py"
10079 (("from gi.repository import Atspi")
10080 "gi.require_version('Gtk', '3.0')
10081 from gi.repository import Gtk
10082 from gi.repository import Atspi"))
10083 #t)))))
10084 (native-inputs
10085 `(("pkg-config" ,pkg-config)))
10086 (inputs
10087 `(("python" ,python)))
10088 (propagated-inputs
10089 `(("python-pygobject" ,python-pygobject)))
10090 (synopsis "Python client bindings for D-Bus AT-SPI")
10091 (home-page "https://wiki.linuxfoundation.org/accessibility\
10092 /atk/at-spi/at-spi_on_d-bus")
10093 (description
10094 "This package includes a python client library for the AT-SPI D-Bus
10095 accessibility infrastructure.")
10096 (license license:lgpl2.0)
10097 (properties '((upstream-name . "pyatspi")))))
10098
10099 (define-public python2-pyatspi
10100 (package/inherit python-pyatspi
10101 (name "python2-pyatspi")
10102 (inputs
10103 `(("python" ,python-2)))
10104 (propagated-inputs
10105 `(("python-pygobject" ,python2-pygobject)))))
10106
10107 (define-public orca
10108 (package
10109 (name "orca")
10110 (version "3.34.1")
10111 (source (origin
10112 (method url-fetch)
10113 (uri (string-append
10114 "mirror://gnome/sources/" name "/"
10115 (version-major+minor version) "/"
10116 name "-" version ".tar.xz"))
10117 (sha256
10118 (base32
10119 "1q38n7hyshkiszmn361skxjynxr31lcms7a1iny6d0zlpmh1vnk4"))))
10120 (build-system glib-or-gtk-build-system)
10121 (arguments
10122 '(#:phases
10123 (modify-phases %standard-phases
10124 (add-before 'configure 'qualify-xkbcomp
10125 (lambda* (#:key inputs #:allow-other-keys)
10126 (let ((xkbcomp (string-append
10127 (assoc-ref inputs "xkbcomp") "/bin/xkbcomp")))
10128 (substitute* "src/orca/orca.py"
10129 (("'xkbcomp'") (format #f "'~a'" xkbcomp))))
10130 #t))
10131 (add-after 'install 'wrap-orca
10132 (lambda* (#:key outputs #:allow-other-keys)
10133 (let* ((out (assoc-ref outputs "out"))
10134 (prog (string-append out "/bin/orca")))
10135 (wrap-program prog
10136 `("GI_TYPELIB_PATH" ":" prefix
10137 (,(getenv "GI_TYPELIB_PATH")))
10138 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
10139 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
10140 `("PYTHONPATH" ":" prefix
10141 (,(getenv "PYTHONPATH")))))
10142 #t)))))
10143 (native-inputs
10144 `(("intltool" ,intltool)
10145 ("itstool" ,itstool)
10146 ("pkg-config" ,pkg-config)
10147 ("xmllint" ,libxml2)))
10148 (inputs
10149 `(("at-spi2-atk" ,at-spi2-atk)
10150 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10151 ("gstreamer" ,gstreamer)
10152 ("gst-plugins-base" ,gst-plugins-base)
10153 ("gst-plugins-good" ,gst-plugins-good)
10154 ("gtk+" ,gtk+)
10155 ("python" ,python)
10156 ("python-pygobject" ,python-pygobject)
10157 ("python-pyatspi" ,python-pyatspi)
10158 ("python-speechd" ,speech-dispatcher)
10159 ("xkbcomp" ,xkbcomp)))
10160 (synopsis
10161 "Screen reader for individuals who are blind or visually impaired")
10162 (home-page "https://wiki.gnome.org/Projects/Orca")
10163 (description
10164 "Orca is a screen reader that provides access to the graphical desktop
10165 via speech and refreshable braille. Orca works with applications and toolkits
10166 that support the Assistive Technology Service Provider Interface (AT-SPI).")
10167 (license license:lgpl2.1+)))
10168
10169 (define-public gspell
10170 (package
10171 (name "gspell")
10172 (version "1.8.2")
10173 (source (origin
10174 (method url-fetch)
10175 (uri (string-append "mirror://gnome/sources/" name "/"
10176 (version-major+minor version) "/"
10177 name "-" version ".tar.xz"))
10178 (sha256
10179 (base32
10180 "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
10181 (patches (search-patches "gspell-dash-test.patch"))))
10182 (build-system glib-or-gtk-build-system)
10183 (arguments
10184 '(#:configure-flags (list "--enable-vala")
10185 #:phases
10186 (modify-phases %standard-phases
10187 (add-before 'check 'pre-check
10188 (lambda* (#:key inputs #:allow-other-keys)
10189 ;; Tests require a running X server.
10190 (system "Xvfb :1 &")
10191 (setenv "DISPLAY" ":1")
10192
10193 ;; For the missing /etc/machine-id.
10194 (setenv "DBUS_FATAL_WARNINGS" "0")
10195
10196 ;; Allow Enchant and its Aspell backend to find the en_US
10197 ;; dictionary.
10198 (setenv "ASPELL_DICT_DIR"
10199 (string-append (assoc-ref inputs "aspell-dict-en")
10200 "/lib/aspell"))
10201 #t)))))
10202 (inputs
10203 `(("gtk+" ,gtk+)
10204 ("glib" ,glib)
10205 ("iso-codes" ,iso-codes)))
10206 (native-inputs
10207 `(("glib" ,glib "bin")
10208 ("gobject-introspection" ,gobject-introspection)
10209 ("pkg-config" ,pkg-config)
10210 ("vala" ,vala) ;for VAPI, needed by Geary
10211 ("xmllint" ,libxml2)
10212
10213 ;; For tests.
10214 ("aspell-dict-en" ,aspell-dict-en)
10215 ("xorg-server" ,xorg-server-for-tests)))
10216 (propagated-inputs
10217 `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
10218 (home-page "https://wiki.gnome.org/Projects/gspell")
10219 (synopsis "GNOME's alternative spell checker")
10220 (description
10221 "gspell provides a flexible API to add spell-checking to a GTK+
10222 application. It provides a GObject API, spell-checking to text entries and
10223 text views, and buttons to choose the language.")
10224 (license license:gpl2+)))
10225
10226 (define-public gnome-planner
10227 (package
10228 (name "gnome-planner")
10229 (version "0.14.6")
10230 (source (origin
10231 (method url-fetch)
10232 (uri (string-append "mirror://gnome/sources/planner/"
10233 (version-major+minor version) "/planner-"
10234 version ".tar.xz"))
10235 (sha256
10236 (base32
10237 "15h6ps58giy5r1g66sg1l4xzhjssl362mfny2x09khdqsvk2j38k"))))
10238 (build-system glib-or-gtk-build-system)
10239 (arguments
10240 ;; Disable the Python bindings because the Planner program functions
10241 ;; without them, and (as of 2017-06-13) we have not packaged all of
10242 ;; packages that are necessary for building the Python bindings.
10243 `(#:configure-flags
10244 (list "--disable-python"
10245 ,@(if (string=? "aarch64-linux" (%current-system))
10246 '("--build=aarch64-unknown-linux-gnu")
10247 '()))))
10248 (inputs
10249 `(("libgnomecanvas" ,libgnomecanvas)
10250 ("libgnomeui" ,libgnomeui)
10251 ("libglade" ,libglade)
10252 ("gnome-vfs" ,gnome-vfs)
10253 ("gconf" ,gconf)
10254 ("libxml2" ,libxml2)
10255 ("libxslt" ,libxslt)
10256 ("gtk+" ,gtk+)
10257 ("glib" ,glib)))
10258 (native-inputs
10259 `(("intltool" ,intltool)
10260 ("scrollkeeper" ,scrollkeeper)
10261 ("pkg-config" ,pkg-config)))
10262 (home-page "https://wiki.gnome.org/Apps/Planner")
10263 (synopsis "Project management software for the GNOME desktop")
10264 (description
10265 "GNOME Planner is a project management tool based on the Work Breakdown
10266 Structure (WBS). Its goal is to enable you to easily plan projects. Based on
10267 the resources, tasks, and constraints that you define, Planner generates
10268 various views into a project. For example, Planner can show a Gantt chart of
10269 the project. It can show a detailed summary of tasks including their
10270 duration, cost, and current progress. It can also show a report of resource
10271 utilization that highlights under-utilized and over-utilized resources. These
10272 views can be printed as PDF or PostScript files, or exported to HTML.")
10273 (license license:gpl2+)))
10274
10275 (define-public lollypop
10276 (package
10277 (name "lollypop")
10278 (version "1.4.6")
10279 (source
10280 (origin
10281 (method url-fetch)
10282 (uri (string-append "https://adishatz.org/lollypop/"
10283 "lollypop-" version ".tar.xz"))
10284 (sha256
10285 (base32 "1hlahr50gsagx1ifcdk4yn43xps6w0vqn0gnd6xckfc7qmg1pgq7"))))
10286 (build-system meson-build-system)
10287 (arguments
10288 `(#:imported-modules
10289 (,@%meson-build-system-modules
10290 (guix build python-build-system))
10291 #:modules
10292 ((guix build meson-build-system)
10293 ((guix build python-build-system) #:prefix python:)
10294 (guix build utils))
10295 #:glib-or-gtk? #t
10296 #:tests? #f ; no test suite
10297 #:phases
10298 (modify-phases %standard-phases
10299 (add-after 'install 'wrap-program
10300 (lambda* (#:key outputs #:allow-other-keys)
10301 (let ((out (assoc-ref outputs "out"))
10302 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
10303 (wrap-program (string-append out "/bin/lollypop")
10304 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
10305 #t))
10306 (add-after 'install 'wrap-python
10307 (assoc-ref python:%standard-phases 'wrap)))))
10308 (native-inputs
10309 `(("intltool" ,intltool)
10310 ("itstool" ,itstool)
10311 ("glib:bin" ,glib "bin") ; For glib-compile-resources
10312 ("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
10313 ("pkg-config" ,pkg-config)))
10314 (inputs
10315 `(("glib-networking" ,glib-networking)
10316 ("gobject-introspection" ,gobject-introspection)
10317 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10318 ("gst-plugins-base" ,gst-plugins-base)
10319 ("libnotify" ,libnotify)
10320 ("libsecret" ,libsecret)
10321 ("libhandy" ,libhandy)
10322 ("libsoup" ,libsoup)
10323 ("python" ,python)
10324 ("python-beautifulsoup4" ,python-beautifulsoup4)
10325 ("python-gst" ,python-gst)
10326 ("python-pil" ,python-pillow)
10327 ("python-pycairo" ,python-pycairo)
10328 ("python-pygobject" ,python-pygobject)
10329 ("python-pylast" ,python-pylast)
10330 ("totem-pl-parser" ,totem-pl-parser)
10331 ("webkitgtk" ,webkitgtk)))
10332 (propagated-inputs
10333 `(;; gst-plugins-base is required to start Lollypop,
10334 ;; the others are required to play streaming.
10335 ("gst-plugins-good" ,gst-plugins-good)
10336 ("gst-plugins-ugly" ,gst-plugins-ugly)))
10337 (home-page "https://wiki.gnome.org/Apps/Lollypop")
10338 (synopsis "GNOME music playing application")
10339 (description
10340 "Lollypop is a music player designed to play well with GNOME desktop.
10341 Lollypop plays audio formats such as mp3, mp4, ogg and flac and gets information
10342 from artists and tracks from the web. It also fetches cover artworks
10343 automatically and it can stream songs from online music services and charts.")
10344 (license license:gpl3+)))
10345
10346 (define-public gnome-video-effects
10347 (package
10348 (name "gnome-video-effects")
10349 (version "0.5.0")
10350 (source (origin
10351 (method url-fetch)
10352 (uri (string-append "mirror://gnome/sources/" name "/"
10353 (version-major+minor version) "/" name "-"
10354 version ".tar.xz"))
10355 (sha256
10356 (base32
10357 "1j6h98whgkcxrh30bwvnxvyqxrxchgpdgqhl0j71xz7x72dqxijd"))))
10358 (build-system meson-build-system)
10359 (native-inputs
10360 `(("gettext" ,gettext-minimal)
10361 ("pkg-config" ,pkg-config)))
10362 (home-page "https://wiki.gnome.org/Projects/GnomeVideoEffects")
10363 (synopsis "Video effects for Cheese and other GNOME applications")
10364 (description
10365 "A collection of GStreamer video filters and effects to be used in
10366 photo-booth-like software, such as Cheese.")
10367 (license license:gpl2+)))
10368
10369 (define-public cheese
10370 (package
10371 (name "cheese")
10372 (version "3.38.0")
10373 (source (origin
10374 (method url-fetch)
10375 (uri (string-append "mirror://gnome/sources/" name "/"
10376 (version-major+minor version) "/" name "-"
10377 version ".tar.xz"))
10378 (sha256
10379 (base32
10380 "0vyim2avlgq3a48rgdfz5g21kqk11mfb53b2l883340v88mp7ll8"))))
10381 (arguments
10382 `(#:glib-or-gtk? #t
10383 ;; Tests require GDK.
10384 #:tests? #f
10385 #:phases
10386 (modify-phases %standard-phases
10387 (add-after 'unpack 'skip-gtk-update-icon-cache
10388 (lambda _
10389 ;; Don't create 'icon-theme.cache'
10390 (substitute* "meson_post_install.py"
10391 (("gtk-update-icon-cache") (which "true")))
10392 #t))
10393 (add-after 'unpack 'patch-docbook-xml
10394 (lambda* (#:key inputs #:allow-other-keys)
10395 ;; Avoid a network connection attempt during the build.
10396 (substitute* '("docs/reference/cheese.xml"
10397 "docs/reference/cheese-docs.xml")
10398 (("http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd")
10399 (string-append (assoc-ref inputs "docbook-xml")
10400 "/xml/dtd/docbook/docbookx.dtd")))
10401 #t))
10402 (add-after 'install 'wrap-cheese
10403 (lambda* (#:key inputs outputs #:allow-other-keys)
10404 (let ((out (assoc-ref outputs "out"))
10405 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
10406 (wrap-program (string-append out "/bin/cheese")
10407 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
10408 #t)))))
10409 (build-system meson-build-system)
10410 (native-inputs
10411 `(("docbook-xsl" ,docbook-xsl)
10412 ("docbook-xml" ,docbook-xml-4.3)
10413 ("gettext" ,gettext-minimal)
10414 ("glib:bin" ,glib "bin")
10415 ("gtk-doc" ,gtk-doc)
10416 ("itstool" ,itstool)
10417 ("libxml2" ,libxml2)
10418 ("libxslt" ,libxslt)
10419 ("pkg-config" ,pkg-config)
10420 ("vala" ,vala)))
10421 (propagated-inputs
10422 `(("gnome-video-effects" ,gnome-video-effects)
10423 ("clutter" ,clutter)
10424 ("clutter-gst" ,clutter-gst)
10425 ("clutter-gtk" ,clutter-gtk)
10426 ("libcanberra" ,libcanberra)
10427 ("gdk-pixbuf" ,gdk-pixbuf)
10428 ("glib" ,glib)
10429 ("gstreamer" ,gstreamer)))
10430 (inputs
10431 `(("gnome-desktop" ,gnome-desktop)
10432 ("gobject-introspection" ,gobject-introspection)
10433 ("gst-plugins-base" ,gst-plugins-base)
10434 ("gst-plugins-good" ,gst-plugins-good)
10435 ("gst-plugins-bad" ,gst-plugins-bad)
10436 ("gtk+" ,gtk+)
10437 ("libx11" ,libx11)
10438 ("libxtst" ,libxtst)))
10439 (home-page "https://wiki.gnome.org/Apps/Cheese")
10440 (synopsis "Webcam photo booth software for GNOME")
10441 (description
10442 "Cheese uses your webcam to take photos and videos. Cheese can also
10443 apply fancy special effects and lets you share the fun with others.")
10444 (license license:gpl2+)))
10445
10446 (define-public passwordsafe
10447 (package
10448 (name "passwordsafe")
10449 (version "3.99.2")
10450 (source
10451 (origin
10452 (method git-fetch)
10453 (uri (git-reference
10454 (url "https://gitlab.gnome.org/World/PasswordSafe")
10455 (commit version)))
10456 (file-name (git-file-name name version))
10457 (sha256
10458 (base32 "0pi2l4gwf8paxm858mxrcsk5nr0c0zw5ycax40mghndb6b1qmmhf"))))
10459 (build-system meson-build-system)
10460 (arguments
10461 `(#:glib-or-gtk? #t
10462 #:phases
10463 (modify-phases %standard-phases
10464 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
10465 (lambda* (#:key outputs #:allow-other-keys)
10466 (let ((prog (string-append (assoc-ref outputs "out")
10467 "/bin/gnome-passwordsafe"))
10468 (pylib (string-append (assoc-ref outputs "out")
10469 "/lib/python"
10470 ,(version-major+minor
10471 (package-version python))
10472 "/site-packages")))
10473 (wrap-program prog
10474 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
10475 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
10476 #t))))))
10477 (native-inputs
10478 `(("desktop-file-utils" ,desktop-file-utils)
10479 ("gettext" ,gettext-minimal)
10480 ("glib:bin" ,glib "bin")
10481 ("gobject-introspection" ,gobject-introspection)
10482 ("gtk+:bin" ,gtk+ "bin")
10483 ("pkg-config" ,pkg-config)))
10484 (inputs
10485 `(("glib" ,glib)
10486 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10487 ("gtk+" ,gtk+)
10488 ("libhandy" ,libhandy-0.0)
10489 ("libpwquality" ,libpwquality)
10490 ("python-pygobject" ,python-pygobject)
10491 ("python-pykeepass" ,python-pykeepass)))
10492 (home-page "https://gitlab.gnome.org/World/PasswordSafe")
10493 (synopsis "Password manager for the GNOME desktop")
10494 (description
10495 "Password Safe is a password manager which makes use of the KeePass v4
10496 format. It integrates perfectly with the GNOME desktop and provides an easy
10497 and uncluttered interface for the management of password databases.")
10498 (license license:gpl3+)))
10499
10500 (define-public sound-juicer
10501 (package
10502 (name "sound-juicer")
10503 (version "3.24.0")
10504 (source
10505 (origin
10506 (method url-fetch)
10507 (uri (string-append "mirror://gnome/sources/" name "/"
10508 (version-major+minor version) "/"
10509 name "-" version ".tar.xz"))
10510 (sha256
10511 (base32
10512 "19qg4xv0f9rkq34lragkmhii1llxsa87llbl28i759b0ks4f6sny"))))
10513 (build-system glib-or-gtk-build-system)
10514 (native-inputs
10515 `(("desktop-file-utils" ,desktop-file-utils)
10516 ("intltool" ,intltool)
10517 ("itstool" ,itstool)
10518 ("pkg-config" ,pkg-config)
10519 ("xmllint" ,libxml2)))
10520 (inputs
10521 `(("gtk+" ,gtk+)
10522 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10523 ("gstreamer" ,gstreamer)
10524 ("gst-plugins-base" ,gst-plugins-base)
10525 ("gst-plugins-good" ,gst-plugins-good)
10526 ("iso-codes" ,iso-codes)
10527 ("libbrasero-media3" ,brasero)
10528 ("libcanberra" ,libcanberra)
10529 ("libdiscid" ,libdiscid)
10530 ("libmusicbrainz" ,libmusicbrainz)
10531 ("neon" ,neon)))
10532 (home-page "https://wiki.gnome.org/Apps/SoundJuicer")
10533 (synopsis "Audio music cd ripper")
10534 (description "Sound Juicer extracts audio from compact discs and convert it
10535 into audio files that a personal computer or digital audio player can play.
10536 It supports ripping to any audio codec supported by a GStreamer plugin, such as
10537 mp3, Ogg Vorbis and FLAC")
10538 (license license:gpl2+)))
10539
10540 (define-public soundconverter
10541 (package
10542 (name "soundconverter")
10543 (version "3.0.2")
10544 (source
10545 (origin
10546 (method url-fetch)
10547 (uri (string-append "https://launchpad.net/soundconverter/trunk/"
10548 version "/+download/"
10549 "soundconverter-" version ".tar.xz"))
10550
10551 (sha256
10552 (base32 "1jv8m82hi23ilrgdznlc1jhp2jm8bw1yrw0chh3qw2l0sixvkl11"))))
10553 (build-system glib-or-gtk-build-system)
10554 (arguments
10555 `(#:imported-modules ((guix build python-build-system)
10556 (guix build glib-or-gtk-build-system)
10557 ,@%gnu-build-system-modules)
10558
10559 #:modules ((guix build glib-or-gtk-build-system)
10560 (guix build utils)
10561 ((guix build gnu-build-system) #:prefix gnu:)
10562 ((guix build python-build-system) #:prefix python:))
10563
10564 #:phases
10565 (modify-phases %standard-phases
10566 (add-after 'install 'wrap-soundconverter-for-python
10567 (assoc-ref python:%standard-phases 'wrap))
10568 (add-after 'install 'wrap-soundconverter
10569 (lambda* (#:key inputs outputs #:allow-other-keys)
10570 (let ((out (assoc-ref outputs "out"))
10571 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
10572 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
10573 (wrap-program (string-append out "/bin/soundconverter")
10574 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
10575 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
10576 #t)))))
10577 (native-inputs
10578 `(("intltool" ,intltool)
10579 ("pkg-config" ,pkg-config)
10580 ("glib:bin" ,glib "bin")))
10581 (inputs
10582 `(("gtk+" ,gtk+)
10583 ("python" ,python)
10584 ("python-pygobject" ,python-pygobject)
10585 ("gstreamer" ,gstreamer)
10586 ("gst-plugins-base" ,gst-plugins-base)))
10587 (home-page "https://soundconverter.org/")
10588 (synopsis "Convert between audio formats with a graphical interface")
10589 (description
10590 "SoundConverter supports converting between many audio formats including
10591 Opus, Ogg Vorbis, FLAC and more. It supports parallel conversion, and
10592 configurable file renaming. ")
10593 (license license:gpl3)))
10594
10595 (define-public workrave
10596 (package
10597 (name "workrave")
10598 (version "1.10.42")
10599 (source
10600 (origin
10601 (method git-fetch)
10602 (uri (git-reference
10603 (url "https://github.com/rcaelers/workrave")
10604 (commit (string-append "v" (string-map
10605 (match-lambda (#\. #\_) (chr chr))
10606 version)))))
10607 (file-name (git-file-name name version))
10608 (sha256
10609 (base32 "03i9kk8r1wgrfkkbwikx8wxaw4r4kn62vismr2zdq5g34fkkjh95"))))
10610 (build-system glib-or-gtk-build-system)
10611 (arguments
10612 ;; The only tests are maintainer tests (in po/), which fail.
10613 `(#:tests? #f))
10614 (inputs `(("glib" ,glib)
10615 ("gtk+" ,gtk+)
10616 ("gdk-pixbuf" ,gdk-pixbuf)
10617 ("gtkmm" ,gtkmm)
10618 ("glibmm" ,glibmm)
10619 ("libx11" ,libx11)
10620 ("libxtst" ,libxtst)
10621 ("dconf" ,dconf)
10622 ("libice" ,libice)
10623 ("libsm" ,libsm)
10624 ("libxscrnsaver" ,libxscrnsaver)))
10625 (native-inputs `(("boost" ,boost)
10626 ("pkg-config" ,pkg-config)
10627 ("gettext" ,gettext-minimal)
10628 ("autoconf" ,autoconf)
10629 ("autoconf-archive" , autoconf-archive)
10630 ("automake" ,automake)
10631 ("libtool" ,libtool)
10632 ("intltool" ,intltool)
10633 ("gobject-introspection" ,gobject-introspection)
10634 ("python3" ,python-3)
10635 ("python-jinja2" ,python-jinja2)))
10636 (synopsis "Tool to help prevent repetitive strain injury (RSI)")
10637 (description
10638 "Workrave is a program that assists in the recovery and prevention of
10639 repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
10640 micro-pauses and rest breaks, and restricts you to your daily limit.")
10641 (home-page "http://www.workrave.org")
10642 (license license:gpl3+)))
10643
10644 (define-public ghex
10645 (package
10646 (name "ghex")
10647 (version "3.18.4")
10648 (source (origin
10649 (method url-fetch)
10650 (uri (string-append "mirror://gnome/sources/ghex/"
10651 (version-major+minor version) "/"
10652 "ghex-" version ".tar.xz"))
10653 (sha256
10654 (base32
10655 "1h1pjrr9wynclfykizqd78dbi785wjz6b63p31k87kjvzy8w3nf2"))))
10656 (build-system meson-build-system)
10657 (arguments
10658 '(#:glib-or-gtk? #t
10659 #:phases
10660 (modify-phases %standard-phases
10661 (add-after 'unpack 'skip-gtk-update-icon-cache
10662 ;; Don't create 'icon-theme.cache'.
10663 (lambda _
10664 (substitute* "meson_post_install.py"
10665 (("gtk-update-icon-cache") (which "true")))
10666 #t)))))
10667 (native-inputs
10668 `(("pkg-config" ,pkg-config)
10669 ("glib:bin" ,glib "bin") ; for glib-compile-schemas
10670 ("gnome-common" ,gnome-common)
10671 ("which" ,which)
10672 ("intltool" ,intltool)
10673 ("yelp-tools" ,yelp-tools)
10674 ("desktop-file-utils" ,desktop-file-utils))) ; for 'desktop-file-validate'
10675 (inputs
10676 `(("atk" ,atk)
10677 ("gtk" ,gtk+)))
10678 (synopsis "GNOME hexadecimal editor")
10679 (description "The GHex program can view and edit files in two ways:
10680 hexadecimal or ASCII. It is useful for editing binary files in general.")
10681 (home-page "https://wiki.gnome.org/Apps/Ghex")
10682 (license license:gpl2)))
10683
10684 (define-public libdazzle
10685 (package
10686 (name "libdazzle")
10687 (version "3.37.1")
10688 (source (origin
10689 (method url-fetch)
10690 (uri (string-append "mirror://gnome/sources/libdazzle/"
10691 (version-major+minor version) "/"
10692 "libdazzle-" version ".tar.xz"))
10693 (sha256
10694 (base32
10695 "03r5cr11dc031qa3694bpgm3lajrhiiln67kvl7vjj4q0scf7w7x"))))
10696 (build-system meson-build-system)
10697 (arguments
10698 `(#:phases
10699 (modify-phases %standard-phases
10700 (add-before 'check 'pre-check
10701 (lambda _
10702 ;; Tests require a running X server.
10703 (system "Xvfb :1 &")
10704 (setenv "DISPLAY" ":1")
10705 #t)))))
10706 (native-inputs
10707 `(("glib" ,glib "bin") ; glib-compile-resources
10708 ("pkg-config" ,pkg-config)
10709 ;; For tests.
10710 ("xorg-server" ,xorg-server-for-tests)))
10711 (inputs
10712 `(("glib" ,glib)
10713 ("gobject-introspection" ,gobject-introspection)
10714 ("gtk+" ,gtk+)
10715 ("vala" ,vala)))
10716 (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
10717 (synopsis "Companion library to GObject and Gtk+")
10718 (description "The libdazzle library is a companion library to GObject and
10719 Gtk+. It provides various features that the authors wish were in the
10720 underlying library but cannot for various reasons. In most cases, they are
10721 wildly out of scope for those libraries. In other cases, they are not quite
10722 generic enough to work for everyone.")
10723 (license license:gpl3+)))
10724
10725 (define-public evolution
10726 (package
10727 (name "evolution")
10728 (version "3.34.2")
10729 (source (origin
10730 (method url-fetch)
10731 (uri (string-append "mirror://gnome/sources/evolution/"
10732 (version-major+minor version) "/"
10733 "evolution-" version ".tar.xz"))
10734 (sha256
10735 (base32
10736 "164vy8h432pjglafn8y2ms4gsvk3kbgc63h5qp0mk5dv4smsp29c"))
10737 (patches (search-patches "evolution-CVE-2020-11879.patch"))))
10738 (build-system cmake-build-system)
10739 (arguments
10740 `(#:imported-modules (,@%cmake-build-system-modules
10741 (guix build glib-or-gtk-build-system))
10742 #:modules ((guix build cmake-build-system)
10743 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
10744 (guix build utils))
10745 #:configure-flags
10746 (list "-DENABLE_PST_IMPORT=OFF" ; libpst is not packaged
10747 "-DENABLE_LIBCRYPTUI=OFF") ; libcryptui hasn't seen a release
10748 ; in four years and cannot be built.
10749 #:phases
10750 (modify-phases %standard-phases
10751 ;; The build system attempts to install user interface modules to the
10752 ;; output directory of the "evolution-data-server" package. This
10753 ;; change redirects that change.
10754 (add-after 'unpack 'patch-ui-module-dir
10755 (lambda* (#:key outputs #:allow-other-keys)
10756 (substitute* "src/modules/alarm-notify/CMakeLists.txt"
10757 (("\\$\\{edsuimoduledir\\}")
10758 (string-append (assoc-ref outputs "out")
10759 "/lib/evolution-data-server/ui-modules")))
10760 #t))
10761 (add-after 'install 'glib-or-gtk-compile-schemas
10762 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
10763 (add-after 'install 'glib-or-gtk-wrap
10764 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
10765 (native-inputs
10766 `(("glib" ,glib "bin") ; glib-mkenums
10767 ("pkg-config" ,pkg-config)
10768 ("intltool" ,intltool)
10769 ("itstool" ,itstool)))
10770 (inputs
10771 `(("enchant" ,enchant)
10772 ("evolution-data-server" ,evolution-data-server) ; must be the same version
10773 ("gcr" ,gcr)
10774 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10775 ("gnome-autoar" ,gnome-autoar)
10776 ("gnome-desktop" ,gnome-desktop)
10777 ("gspell" ,gspell)
10778 ("highlight" ,highlight)
10779 ("libcanberra" ,libcanberra)
10780 ("libgweather" ,libgweather)
10781 ("libnotify" ,libnotify)
10782 ("libsoup" ,libsoup)
10783 ("nss" ,nss)
10784 ("openldap" ,openldap)
10785 ("webkitgtk" ,webkitgtk)
10786 ("ytnef" ,ytnef)))
10787 (home-page "https://gitlab.gnome.org/GNOME/evolution")
10788 (synopsis "Manage your email, contacts and schedule")
10789 (description "Evolution is a personal information management application
10790 that provides integrated mail, calendaring and address book
10791 functionality.")
10792 ;; See COPYING for details.
10793 (license (list license:lgpl2.1 license:lgpl3 ; either one of these
10794 license:openldap2.8 ; addressbook/gui/component/openldap-extract.h
10795 license:lgpl2.1+)))) ; smime/lib/*
10796
10797 (define-public gthumb
10798 (package
10799 (name "gthumb")
10800 (version "3.10.2")
10801 (source (origin
10802 (method url-fetch)
10803 (uri (string-append "mirror://gnome/sources/gthumb/"
10804 (version-major+minor version) "/"
10805 "gthumb-" version ".tar.xz"))
10806 (sha256
10807 (base32
10808 "14sw8d37g1lkp44dwsgyxjjsgh5pnpp4wq00mcy9p3rp30lf9spx"))))
10809 (build-system meson-build-system)
10810 (arguments
10811 `(#:glib-or-gtk? #t
10812 #:configure-flags
10813 ;; Ensure the RUNPATH contains all installed library locations.
10814 (list (string-append "-Dc_link_args=-Wl,-rpath="
10815 (assoc-ref %outputs "out")
10816 "/lib/gthumb/extensions")
10817 (string-append "-Dcpp_link_args=-Wl,-rpath="
10818 (assoc-ref %outputs "out")
10819 "/lib/gthumb/extensions"))))
10820 (native-inputs
10821 `(("pkg-config" ,pkg-config)
10822 ("glib:bin" ,glib "bin") ; for glib-compile-resources
10823 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
10824 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
10825 ("intltool" ,intltool)
10826 ("itstool" ,itstool)))
10827 (inputs
10828 `(("exiv2" ,exiv2)
10829 ("gtk" ,gtk+)
10830 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10831 ("gstreamer" ,gstreamer)
10832 ("clutter" ,clutter)
10833 ("clutter-gst" ,clutter-gst)
10834 ("clutter-gtk" ,clutter-gtk)
10835 ("libjpeg" ,libjpeg-turbo)
10836 ("libtiff" ,libtiff)
10837 ("libraw" ,libraw)))
10838 (home-page "https://wiki.gnome.org/Apps/Gthumb")
10839 (synopsis "GNOME image viewer and browser")
10840 (description "GThumb is an image viewer, browser, organizer, editor and
10841 advanced image management tool")
10842 (license license:gpl2+)))
10843
10844 (define-public terminator
10845 (package
10846 (name "terminator")
10847 (version "2.1.0")
10848 (source
10849 (origin
10850 (method url-fetch)
10851 (uri (string-append "https://github.com/gnome-terminator/terminator/"
10852 "releases/download/v" version "/"
10853 name "-" version ".tar.gz"))
10854 (sha256
10855 (base32
10856 "1vap4li2i24l1iz2q4b8wvhj8flamarf18xcmzq5ik2vzcrisbjy"))))
10857 (build-system python-build-system)
10858 (native-inputs
10859 `(("gettext" ,gettext-minimal)
10860 ("glib:bin" ,glib "bin") ; for glib-compile-resources
10861 ("gobject-introspection" ,gobject-introspection)
10862 ("intltool" ,intltool)
10863 ("pkg-config" ,pkg-config)
10864 ("python-psutil" ,python-psutil)
10865 ("python-pytest-runner" ,python-pytest-runner)
10866 ("python-pytest" ,python-pytest)))
10867 (inputs
10868 `(("cairo" ,cairo)
10869 ("dbus-glib" ,dbus-glib)
10870 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10871 ("gtk+" ,gtk+)
10872 ("python" ,python-wrapper)
10873 ("python-dbus" ,python-dbus)
10874 ("python-notify2" ,python-notify2)
10875 ("python-pycairo" ,python-pycairo)
10876 ("python-pygobject" ,python-pygobject)
10877 ("vte" ,vte)))
10878 (propagated-inputs
10879 `(("python-configobj" ,python-configobj)))
10880 (arguments
10881 ;; One test out of 28 fails due to dbus-python and python-notify; skip
10882 ;; tests.
10883 `(#:tests? #f
10884 #:imported-modules ((guix build glib-or-gtk-build-system)
10885 ,@%python-build-system-modules)
10886 #:modules ((guix build python-build-system)
10887 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
10888 (guix build utils))
10889 #:phases
10890 (modify-phases %standard-phases
10891 (add-after 'unpack 'handle-dbus-python
10892 (lambda _
10893 ;; python-dbus cannot be found but it's really there. See
10894 ;; https://github.com/SpotlightKid/jack-select/issues/2
10895 (substitute* "setup.py"
10896 (("'dbus-python',") ""))
10897 #t))
10898 (add-after 'install 'wrap-program
10899 (lambda* (#:key outputs #:allow-other-keys)
10900 (let ((prog (string-append (assoc-ref outputs "out")
10901 "/bin/terminator"))
10902 (pylib (string-append (assoc-ref outputs "out")
10903 "/lib/python"
10904 ,(version-major+minor
10905 (package-version python))
10906 "/site-packages")))
10907 (wrap-program prog
10908 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
10909 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
10910 #t)))
10911 (add-after 'wrap-program 'glib-or-gtk-wrap
10912 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
10913 (home-page "https://gnome-terminator.org/")
10914 (synopsis "Store and run multiple GNOME terminals in one window")
10915 (description
10916 "Terminator allows you to run multiple GNOME terminals in a grid and
10917 tabs, and it supports drag and drop re-ordering of terminals.")
10918 (license license:gpl2)))
10919
10920 (define-public libhandy
10921 (package
10922 (name "libhandy")
10923 (version "1.2.0")
10924 (source
10925 (origin
10926 (method git-fetch)
10927 (uri (git-reference
10928 (url "https://gitlab.gnome.org/GNOME/libhandy")
10929 (commit version)))
10930 (file-name (git-file-name name version))
10931 (sha256
10932 (base32 "1a8wfgm2jd3gcbk1nzhq6f2xq7vkxdc9qky8p9k0za9gqi7xfg4v"))))
10933 (build-system meson-build-system)
10934 (arguments
10935 `(#:configure-flags
10936 '("-Dglade_catalog=enabled"
10937 "-Dgtk_doc=true")
10938 #:phases
10939 (modify-phases %standard-phases
10940 (add-before 'check 'pre-check
10941 (lambda _
10942 ;; Tests require a running X server.
10943 (system "Xvfb :1 &")
10944 (setenv "DISPLAY" ":1")
10945 #t)))))
10946 (inputs
10947 `(("gtk+" ,gtk+)
10948 ("glade" ,glade3)
10949 ("libxml2" ,libxml2)))
10950 (native-inputs
10951 `(("glib:bin" ,glib "bin")
10952 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
10953 ("vala" ,vala)
10954 ("gtk-doc" ,gtk-doc)
10955 ("pkg-config" ,pkg-config)
10956 ("gettext" ,gettext-minimal)
10957
10958 ;; Test suite dependencies.
10959 ("xorg-server" ,xorg-server-for-tests)
10960 ("hicolor-icon-theme" ,hicolor-icon-theme)))
10961 (home-page "https://gitlab.gnome.org/GNOME/libhandy/")
10962 (synopsis "Library full of GTK+ widgets for mobile phones")
10963 (description "The aim of the handy library is to help with developing user
10964 interfaces for mobile devices using GTK+. It provides responsive GTK+ widgets
10965 for usage on small and big screens.")
10966 (license license:lgpl2.1+)))
10967
10968 (define-public libhandy-0.0
10969 (package
10970 (inherit libhandy)
10971 (version "0.0.13")
10972 (source
10973 (origin
10974 (method git-fetch)
10975 (uri (git-reference
10976 (url "https://gitlab.gnome.org/GNOME/libhandy")
10977 (commit (string-append "v" version))))
10978 (file-name (git-file-name "libhandy" version))
10979 (sha256
10980 (base32 "1y23k623sjkldfrdiwfarpchg5mg58smcy1pkgnwfwca15wm1ra5"))))
10981 (arguments
10982 (substitute-keyword-arguments (package-arguments libhandy)
10983 ((#:configure-flags flags)
10984 '(list "-Dglade_catalog=disabled" "-Dgtk_doc=true"))))))
10985
10986 (define-public libgit2-glib
10987 (package
10988 (name "libgit2-glib")
10989 (version "0.99.0.1")
10990 (source (origin
10991 (method url-fetch)
10992 (uri (string-append "mirror://gnome/sources/" name "/"
10993 (version-major+minor version) "/"
10994 name "-" version ".tar.xz"))
10995 (sha256
10996 (base32
10997 "1pmrcnsa7qdda73c3dxf47733mwprmj5ljpw3acxbj6r8k27anp0"))))
10998 (build-system meson-build-system)
10999 (native-inputs
11000 `(("glib:bin" ,glib "bin") ;; For glib-mkenums
11001 ("gobject-introspection" ,gobject-introspection)
11002 ("pkg-config" ,pkg-config)
11003 ("python-pygobject" ,python-pygobject)
11004 ("python-wrapper" ,python-wrapper)
11005 ("vala" ,vala)))
11006 (inputs
11007 `(("glib" ,glib)
11008 ("libssh2" ,libssh2)))
11009 (propagated-inputs
11010 `(;; In Requires of libgit2-glib.pc.
11011 ("libgit2" ,libgit2)))
11012 (synopsis "GLib wrapper around the libgit2 Git access library")
11013 (description "libgit2-glib is a GLib wrapper library around the libgit2 Git
11014 access library. It only implements the core plumbing functions, not really the
11015 higher level porcelain stuff.")
11016 (home-page "https://wiki.gnome.org/Projects/Libgit2-glib")
11017 (license license:gpl2+)))
11018
11019 (define-public gitg
11020 (package
11021 (name "gitg")
11022 (version "3.32.1")
11023 (source (origin
11024 (method url-fetch)
11025 (uri (string-append "mirror://gnome/sources/" name "/"
11026 (version-major+minor version) "/"
11027 name "-" version ".tar.xz"))
11028 (sha256
11029 (base32
11030 "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914"))))
11031 (build-system meson-build-system)
11032 (arguments
11033 `(#:glib-or-gtk? #t
11034 #:phases
11035 (modify-phases %standard-phases
11036 (add-after 'unpack 'disable-post-install-partially
11037 (lambda _
11038 (substitute* "meson_post_install.py"
11039 (("'python'") ; there are no python sources to compile
11040 (string-append "'" (which "true") "'"))
11041 (("gtk-update-icon-cache") (which "true")))
11042 #t))
11043 (add-after 'unpack 'fix-test-sources
11044 (lambda _
11045 (substitute* "tests/libgitg/test-commit.vala"
11046 (("/bin/bash") (which "bash")))
11047 #t))
11048 (add-after 'glib-or-gtk-wrap 'wrap-typelib
11049 (lambda* (#:key outputs #:allow-other-keys)
11050 (let ((prog (string-append (assoc-ref outputs "out")
11051 "/bin/gitg")))
11052 (wrap-program prog
11053 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11054 #t))))))
11055 (inputs
11056 `(("glib" ,glib)
11057 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11058 ("gtk+" ,gtk+)
11059 ("gtkspell3" ,gtkspell3)
11060 ("gtksourceview" ,gtksourceview-3)
11061 ("json-glib" ,json-glib)
11062 ("libdazzle" ,libdazzle)
11063 ("libgee" ,libgee)
11064 ("libgit2-glib" ,libgit2-glib)
11065 ("libpeas" ,libpeas)
11066 ("libsecret" ,libsecret)
11067 ("libsoup" ,libsoup)
11068 ("libxml2" ,libxml2)))
11069 (native-inputs
11070 `(("glib:bin" ,glib "bin")
11071 ("gtk+:bin" ,gtk+ "bin")
11072 ("gobject-introspection" ,gobject-introspection)
11073 ("intltool" ,intltool)
11074 ("pkg-config" ,pkg-config)
11075 ("vala" ,vala)))
11076 (synopsis "Graphical user interface for git")
11077 (description
11078 "gitg is a graphical user interface for git. It aims at being a small,
11079 fast and convenient tool to visualize the history of git repositories.
11080 Besides visualization, gitg also provides several utilities to manage your
11081 repository and commit your work.")
11082 (home-page "https://wiki.gnome.org/Apps/Gitg")
11083 (license license:gpl2+)))
11084
11085 (define-public gamin
11086 (package
11087 (name "gamin")
11088 (version "0.1.10")
11089 (source (origin
11090 (method url-fetch)
11091 (uri (string-append "mirror://gnome/sources/" name "/"
11092 (version-major+minor version) "/"
11093 name "-" version ".tar.bz2"))
11094 (sha256
11095 (base32
11096 "02n1zr9y8q9lyczhcz0nxar1vmf8p2mmbw8kq0v43wg21jr4i6d5"))))
11097 (build-system gnu-build-system)
11098 (arguments
11099 `(#:phases
11100 (modify-phases %standard-phases
11101 (add-after 'unpack 'remove-deprecated-macro
11102 (lambda _
11103 (substitute* '("server/gam_node.c"
11104 "server/gam_subscription.h"
11105 "server/gam_node.h"
11106 "server/gam_subscription.c")
11107 (("G_CONST_RETURN") "const"))
11108 #t)))))
11109 (inputs
11110 `(("glib" ,glib)))
11111 (native-inputs
11112 `(("intltool" ,intltool)
11113 ("pkg-config" ,pkg-config)))
11114 (home-page "https://people.gnome.org/~veillard/gamin/")
11115 (synopsis "File alteration monitor")
11116 (description
11117 "Gamin is a file and directory monitoring system defined to be a subset
11118 of the FAM (File Alteration Monitor) system. This is a service provided by a
11119 library which detects when a file or a directory has been modified.")
11120 (license license:gpl2+)))
11121
11122 (define-public gnome-mahjongg
11123 (package
11124 (name "gnome-mahjongg")
11125 (version "3.35.1")
11126 (source (origin
11127 (method git-fetch)
11128 (uri (git-reference
11129 (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
11130 (commit version)))
11131 (file-name (git-file-name name version))
11132 (sha256
11133 (base32
11134 "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
11135 (build-system meson-build-system)
11136 (arguments
11137 `(#:glib-or-gtk? #t))
11138 (native-inputs
11139 `(("appstream-glib" ,appstream-glib)
11140 ("gettext" ,gettext-minimal)
11141 ("glib:bin" ,glib "bin") ;; For glib-compile-resources
11142 ("gtk+" ,gtk+ "bin") ;; For gtk-update-icon-cache
11143 ("itstool" ,itstool)
11144 ("pkg-config" ,pkg-config)
11145 ("vala" ,vala)))
11146 (propagated-inputs
11147 `(("dconf" ,dconf)))
11148 (inputs
11149 `(("glib" ,glib)
11150 ("gtk+" ,gtk+)
11151 ("librsvg" ,librsvg)))
11152 (synopsis "Mahjongg tile-matching game")
11153 (description "GNOME Mahjongg is a game based on the classic Chinese
11154 tile-matching game Mahjong. It features multiple board layouts, tile themes,
11155 and a high score table.")
11156 (home-page "https://wiki.gnome.org/Apps/Mahjongg")
11157 (license license:gpl2+)))
11158
11159 (define-public gnome-themes-extra
11160 (package
11161 (name "gnome-themes-extra")
11162 (version "3.28")
11163 (source
11164 (origin
11165 (method url-fetch)
11166 (uri (string-append "mirror://gnome/sources/" name "/"
11167 (version-major+minor version) "/" name "-"
11168 version ".tar.xz"))
11169 (sha256
11170 (base32
11171 "06aqg9asq2vqi9wr29bs4v8z2bf4manhbhfghf4nvw01y2zs0jvw"))))
11172 (build-system gnu-build-system)
11173 (arguments
11174 '(#:configure-flags
11175 ;; Don't create 'icon-theme.cache'.
11176 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
11177 (true (string-append coreutils "/bin/true")))
11178 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
11179 (native-inputs
11180 `(("glib:bin" ,glib "bin")
11181 ("intltool" ,intltool)
11182 ("pkg-config" ,pkg-config)))
11183 (inputs
11184 `(("glib" ,glib)
11185 ("gtk+" ,gtk+)
11186 ("gtk+-2" ,gtk+-2)
11187 ("librsvg" ,librsvg)
11188 ("libxml2" ,libxml2)))
11189 (home-page "https://gitlab.gnome.org/GNOME/gnome-themes-extra")
11190 (synopsis "GNOME Extra Themes")
11191 (description "This package provides themes and related elements that don't
11192 really fit in other upstream packages. It offers legacy support for GTK+ 2
11193 versions of Adwaita, Adwaita-dark and HighContrast themes. It also provides
11194 index files needed for Adwaita to be used outside of GNOME.")
11195 (license license:lgpl2.1+)))
11196
11197 (define-public gnote
11198 (package
11199 (name "gnote")
11200 (version "3.38.1")
11201 (source
11202 (origin
11203 (method url-fetch)
11204 (uri (string-append "mirror://gnome/sources/" name "/"
11205 (version-major+minor version) "/"
11206 "gnote-" version ".tar.xz"))
11207 (sha256
11208 (base32 "1adjfjhmsm2d33999khjyzvli6kiz1jlzavn77jhd49kfzhxa9y4"))))
11209 (build-system glib-or-gtk-build-system)
11210 (native-inputs
11211 `(("desktop-file-utils" ,desktop-file-utils)
11212 ("glib:bin" ,glib "bin")
11213 ("gobject-introspection" ,gobject-introspection)
11214 ("intltool" ,intltool)
11215 ("itstool" ,itstool)
11216 ("pkg-config" ,pkg-config)
11217 ("unittest-cpp" ,unittest-cpp))) ;FIXME: not found by pkg-config
11218 (inputs
11219 `(("glibmm" ,glibmm)
11220 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11221 ("gspell" ,gspell)
11222 ("gtk+" ,gtk+)
11223 ("gtkmm" ,gtkmm)
11224 ("libsecret" ,libsecret)
11225 ("libuuid" ,util-linux "lib")
11226 ("libxml2" ,libxml2)
11227 ("libxslt" ,libxslt)))
11228 (synopsis "Note-taking application for the GNOME desktop")
11229 (description
11230 "Gnote is a note-taking application written for the GNOME desktop
11231 environment.")
11232 (home-page "https://wiki.gnome.org/Apps/Gnote")
11233 (license license:gpl3+)))
11234
11235 (define-public polari
11236 (package
11237 (name "polari")
11238 (version "3.36.3")
11239 (source (origin
11240 (method url-fetch)
11241 (uri (string-append "mirror://gnome/sources/polari/"
11242 (version-major+minor version)
11243 "/polari-" version ".tar.xz"))
11244 (sha256
11245 (base32
11246 "0fpmrvhd40yay051bzn4x3gsrzdv42nav0pm5ps0np8wk1z689jg"))))
11247 (build-system meson-build-system)
11248 (arguments
11249 `(#:glib-or-gtk? #t
11250 #:phases
11251 (modify-phases %standard-phases
11252 (add-after 'unpack 'skip-gtk-update-icon-cache
11253 (lambda _
11254 (substitute* "meson/meson-postinstall.sh"
11255 (("gtk-update-icon-cache") (which "true")))
11256 #t))
11257 (add-after 'glib-or-gtk-wrap 'wrap-typelib
11258 (lambda* (#:key outputs #:allow-other-keys)
11259 (let ((prog (string-append (assoc-ref outputs "out")
11260 "/bin/polari")))
11261 (wrap-program prog
11262 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11263 #t))))))
11264 (inputs
11265 `(("glib" ,glib)
11266 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11267 ("gspell" ,gspell)
11268 ("gtk+" ,gtk+)
11269 ("gjs" ,gjs)
11270 ("libsecret" ,libsecret)
11271 ("libsoup" ,libsoup)
11272 ("telepathy-glib" ,telepathy-glib)
11273 ("telepathy-logger" ,telepathy-logger)))
11274 (native-inputs
11275 `(("glib:bin" ,glib "bin")
11276 ("gobject-introspection" ,gobject-introspection)
11277 ("intltool" ,intltool)
11278 ("pkg-config" ,pkg-config)
11279 ("yelp-tools" ,yelp-tools)))
11280 (propagated-inputs
11281 `(("telepathy-idle" ,telepathy-idle)
11282 ("telepathy-mission-control" ,telepathy-mission-control)))
11283 (synopsis "Simple IRC Client")
11284 (description
11285 "Polari is a simple Internet Relay Chat (IRC) client that is designed to
11286 integrate seamlessly with the GNOME desktop.")
11287 (home-page "https://wiki.gnome.org/Apps/Polari")
11288 (license license:gpl2+)))
11289
11290 (define-public gnome-boxes
11291 (package
11292 (name "gnome-boxes")
11293 (version "3.36.6")
11294 (source
11295 (origin
11296 (method url-fetch)
11297 (uri (string-append "mirror://gnome/sources/gnome-boxes/"
11298 (version-major+minor version) "/"
11299 "gnome-boxes-" version ".tar.xz"))
11300 (sha256
11301 (base32 "0c3cw90xqqcpacc2z06ljs0gg8saxizfgjzg9alhpwgz3gl4c5pg"))))
11302 (build-system meson-build-system)
11303 (arguments
11304 '(#:glib-or-gtk? #t
11305 #:configure-flags (list "-Drdp=false"
11306 (string-append "-Dc_link_args=-Wl,-rpath="
11307 (assoc-ref %outputs "out")
11308 "/lib/gnome-boxes"))))
11309 (native-inputs
11310 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
11311 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
11312 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
11313 ("itstool" ,itstool)
11314 ("intltool" ,intltool)
11315 ("vala" ,vala)
11316 ("pkg-config" ,pkg-config)))
11317 (inputs
11318 `(("libarchive" ,libarchive)
11319 ("glib-networking" ,glib-networking) ;for TLS support
11320 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11321 ("gtk" ,gtk+)
11322 ("gtk-vnc" ,gtk-vnc)
11323 ("libosinfo" ,libosinfo)
11324 ("libsecret" ,libsecret)
11325 ("libsoup" ,libsoup)
11326 ("libusb" ,libusb)
11327 ("libvirt" ,libvirt)
11328 ("libvirt-glib" ,libvirt-glib)
11329 ("libxml" ,libxml2)
11330 ("spice-gtk" ,spice-gtk)
11331 ("sparql-query" ,sparql-query)
11332 ("vte" ,vte)
11333 ("webkitgtk" ,webkitgtk)
11334 ("tracker" ,tracker)
11335 ("libgudev" ,libgudev)))
11336 (home-page "https://wiki.gnome.org/Apps/Boxes")
11337 (synopsis "View, access, and manage remote and virtual systems")
11338 (description "GNOME Boxes is a simple application to view, access, and
11339 manage remote and virtual systems. Note that this application requires the
11340 @code{libvirt} and @code{virtlog} daemons to run. Use the command
11341 @command{info '(guix) Virtualization Services'} to learn how to configure
11342 these services on the Guix System.")
11343 (license (list
11344 ;; For data/icons/empty-boxes.png.
11345 license:cc-by2.0
11346 ;; For all others.
11347 license:lgpl2.0+))))
11348
11349 (define-public geary
11350 (package
11351 (name "geary")
11352 (version "3.34.1")
11353 (source (origin
11354 (method git-fetch)
11355 (uri (git-reference
11356 (url "https://gitlab.gnome.org/GNOME/geary")
11357 (commit version)))
11358 (file-name (git-file-name name version))
11359 (sha256
11360 (base32
11361 "01cc921kyh3zxz07biqbdzkjgmdcc36kwjyajm4y382a75cl5zg7"))
11362 (patches (search-patches "geary-CVE-2020-24661.patch"))))
11363 (build-system meson-build-system)
11364 (arguments
11365 `(#:glib-or-gtk? #t
11366 #:phases (modify-phases %standard-phases
11367 (add-after 'unpack 'disable-failing-tests
11368 (lambda _
11369 (substitute* "test/meson.build"
11370 (("test\\('client-tests', geary_test_client_bin\\)")
11371 ""))
11372 #t))
11373 (add-after 'unpack 'disable-postinstall-script
11374 (lambda _
11375 (substitute* "meson.build"
11376 (("meson.add_install_script\\(\
11377 join_paths\\('build-aux', 'post_install.py'\\)\\)")
11378 ""))
11379 #t))
11380 (add-before 'check 'setup-xvfb
11381 (lambda _
11382 (system "Xvfb :1 &")
11383 (setenv "DISPLAY" ":1")
11384 #t)))))
11385 (inputs
11386 `(("enchant" ,enchant)
11387 ("folks" ,folks)
11388 ("gcr" ,gcr)
11389 ("glib" ,glib)
11390 ("gmime" ,gmime-2.6)
11391 ("gnome-online-accounts:lib"
11392 ,gnome-online-accounts "lib")
11393 ("gspell" ,gspell)
11394 ("gtk+" ,gtk+)
11395 ("iso-codes" ,iso-codes)
11396 ("json-glib" ,json-glib)
11397 ("libcanberra" ,libcanberra)
11398 ("libgee" ,libgee)
11399 ("libhandy" ,libhandy-0.0)
11400 ("libpeas" ,libpeas)
11401 ("libsecret" ,libsecret)
11402 ("libunwind" ,libunwind)
11403 ("sqlite" ,sqlite)
11404 ("webkitgtk" ,webkitgtk)
11405 ("ytnef" ,ytnef)))
11406 (native-inputs
11407 `(("appstream-glib" ,appstream-glib)
11408 ("cmake-minimal" ,cmake-minimal)
11409 ("desktop-file-utils" ,desktop-file-utils)
11410 ("gettext" ,gettext-minimal)
11411 ("glib:bin" ,glib "bin")
11412 ("gobject-introspection" ,gobject-introspection)
11413 ("itstool" ,itstool)
11414 ("libarchive" ,libarchive)
11415 ("libxml2" ,libxml2)
11416 ("pkg-config" ,pkg-config)
11417 ("vala" ,vala)
11418 ("xvfb" ,xorg-server-for-tests)))
11419 (synopsis "GNOME email application built around conversations")
11420 (description
11421 "Geary collects related messages together into conversations,
11422 making it easy to find and follow your discussions. Full-text and keyword
11423 search makes it easy to find the email you are looking for. Geary's
11424 full-featured composer lets you send rich, styled text with images, links, and
11425 lists, but also send lightweight, easy to read text messages. Geary
11426 automatically picks up your existing GNOME Online Accounts, and adding more is
11427 easy. Geary has a clean, fast, modern interface that works like you want it
11428 to.")
11429 (home-page "https://wiki.gnome.org/Apps/Geary")
11430 (license (list
11431 ;; geary
11432 license:lgpl2.1+
11433 ;; icons
11434 license:cc-by3.0
11435 license:cc-by-sa3.0
11436 license:public-domain
11437 ;; snowball
11438 license:bsd-2))))
11439
11440 (define-public glabels
11441 (package
11442 (name "glabels")
11443 (version "3.4.1")
11444 (source
11445 (origin
11446 (method url-fetch)
11447 (uri (string-append "mirror://gnome/sources/" name "/"
11448 (version-major+minor version) "/"
11449 "glabels-" version ".tar.xz"))
11450 (sha256
11451 (base32 "0f2rki8i27pkd9r0gz03cdl1g4vnmvp0j49nhxqn275vi8lmgr0q"))))
11452 (build-system glib-or-gtk-build-system)
11453 (native-inputs
11454 `(("gettext" ,gettext-minimal)
11455 ("glib:bin" ,glib "bin")
11456 ("intltool" ,intltool)
11457 ("itstool" ,itstool)
11458 ("pkg-config" ,pkg-config)))
11459 (inputs
11460 `(("gtk+" ,gtk+)
11461 ("librsvg" ,librsvg)
11462 ("libxml2" ,libxml2)))
11463 (home-page "https://glabels.org/")
11464 (synopsis "Program for creating labels and business cards")
11465 (description
11466 "gLabels is a program for creating labels and business cards. It is
11467 designed to work with various laser/ink-jet peel-off label and business
11468 card sheets that you’ll find at most office supply stores.")
11469 (license license:gpl3+)))
11470
11471 ;; Version 3.38.0 is out but requires tepl>=5 which requires glib>=2.64.
11472 (define-public gnome-latex
11473 (package
11474 (name "gnome-latex")
11475 (version "3.36.0")
11476 (source
11477 (origin
11478 (method url-fetch)
11479 (uri (string-append "mirror://gnome/sources/" name "/"
11480 (version-major+minor version) "/"
11481 "gnome-latex-" version ".tar.xz"))
11482 (sha256
11483 (base32 "1869kr1zhcp04mzbi67lwgk497w840dbbc7427i9yh9b9s7j6mqn"))))
11484 (build-system glib-or-gtk-build-system)
11485 (native-inputs
11486 `(("gettext" ,gettext-minimal)
11487 ("glib:bin" ,glib "bin")
11488 ("gobject-introspection" ,gobject-introspection)
11489 ("gtk-doc" ,gtk-doc)
11490 ("intltool" ,intltool)
11491 ("itstool" ,itstool)
11492 ("pkg-config" ,pkg-config)
11493 ("vala" ,vala)))
11494 (inputs
11495 `(("amtk" ,amtk)
11496 ("dconf" ,dconf)
11497 ("glib" ,glib)
11498 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11499 ("gspell" ,gspell)
11500 ("gtk+" ,gtk+)
11501 ("gtksourceview" ,gtksourceview)
11502 ("libgee" ,libgee)
11503 ("tepl" ,tepl)
11504 ("uchardet" ,uchardet)))
11505 (home-page "https://wiki.gnome.org/Apps/GNOME-LaTeX")
11506 (synopsis "LaTeX editor for the GNOME desktop")
11507 (description
11508 "GNOME LaTeX is a LaTeX editor for the GNOME desktop. It has features
11509 such as build tools, completion of LaTeX commands, structure navigation,
11510 symbol tables, document templates, project management, spell-checking, menus
11511 and toolbars.")
11512 (license license:gpl3+)))
11513
11514 (define-public setzer
11515 (package
11516 (name "setzer")
11517 (version "0.4.1")
11518 (source
11519 (origin
11520 (method git-fetch)
11521 (uri (git-reference
11522 (url "https://github.com/cvfosammmm/Setzer")
11523 (commit (string-append "v" version))))
11524 (file-name (git-file-name name version))
11525 (sha256
11526 (base32 "1rcx2c07jg1ij81pnvg3px49hfbjmkagn68d3gp79z3gcajbp2av"))))
11527 (build-system meson-build-system)
11528 (arguments
11529 `(#:glib-or-gtk? #t
11530 #:phases
11531 (modify-phases %standard-phases
11532 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
11533 (lambda* (#:key outputs #:allow-other-keys)
11534 (let ((prog (string-append (assoc-ref outputs "out")
11535 "/bin/setzer"))
11536 (pylib (string-append (assoc-ref outputs "out")
11537 "/lib/python"
11538 ,(version-major+minor
11539 (package-version python))
11540 "/site-packages")))
11541 (wrap-program prog
11542 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
11543 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11544 #t))))))
11545 (native-inputs
11546 `(("desktop-file-utils" ,desktop-file-utils)
11547 ("gettext" ,gettext-minimal)
11548 ("glib:bin" ,glib "bin")
11549 ("gobject-introspection" ,gobject-introspection)
11550 ("gtk+:bin" ,gtk+ "bin")))
11551 (inputs
11552 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11553 ("gspell" ,gspell)
11554 ("gtk+" ,gtk+)
11555 ("gtksourceview" ,gtksourceview)
11556 ("pango" ,pango)
11557 ("poppler" ,poppler)
11558 ("python-pdfminer" ,python-pdfminer-six)
11559 ("python-pycairo" ,python-pycairo)
11560 ("python-pygobject" ,python-pygobject)
11561 ("python-pyxdg" ,python-pyxdg)
11562 ("webkitgtk" ,webkitgtk)
11563 ("xdg-utils" ,xdg-utils)))
11564 (home-page "https://www.cvfosammmm.org/setzer/")
11565 (synopsis "LaTeX editor written in Python with GTK+")
11566 (description
11567 "Setzer is a simple yet full-featured LaTeX editor written in Python with
11568 GTK+. It integrates well with the GNOME desktop environment.")
11569 (license license:gpl3+)))
11570
11571 (define-public libratbag
11572 (package
11573 (name "libratbag")
11574 (version "0.14")
11575 (source
11576 (origin
11577 (method git-fetch)
11578 (uri (git-reference
11579 (url "https://github.com/libratbag/libratbag")
11580 (commit (string-append "v" version))))
11581 (file-name (git-file-name name version))
11582 (sha256
11583 (base32 "1fpwp2sj8mf98bqasq2h8qwgprxi7k3iw33gcfid3d1lbyiacw0x"))))
11584 (build-system meson-build-system)
11585 (arguments
11586 `(#:configure-flags
11587 (list "-Dsystemd=false"
11588 "-Dlogind-provider=elogind")
11589 #:phases
11590 (modify-phases %standard-phases
11591 (add-after 'install 'wrap
11592 (lambda* (#:key inputs outputs #:allow-other-keys)
11593 (let* ((out (assoc-ref outputs "out"))
11594 (site (string-append
11595 "/lib/python"
11596 ,(version-major+minor (package-version python))
11597 "/site-packages"))
11598 (evdev (string-append
11599 (assoc-ref inputs "python-evdev") site))
11600 (pygo (string-append
11601 (assoc-ref inputs "python-pygobject") site))
11602 (python-wrap
11603 `("PYTHONPATH" = (,evdev ,pygo))))
11604 (wrap-program (string-append out "/bin/" "ratbagctl")
11605 python-wrap)
11606 #t))))))
11607 (native-inputs
11608 `(("check" ,check)
11609 ("pkg-config" ,pkg-config)
11610 ("swig" ,swig)
11611 ("valgrind" ,valgrind)))
11612 (inputs
11613 `(("glib" ,glib)
11614 ("json-glib" ,json-glib)
11615 ("libevdev" ,libevdev)
11616 ("libsystemd" ,elogind)
11617 ("libunistring" ,libunistring)
11618 ("python-evdev" ,python-evdev)
11619 ("python-pygobject" ,python-pygobject)
11620 ("udev" ,eudev)))
11621 (home-page "https://github.com/libratbag/libratbag")
11622 (synopsis "DBus daemon and utility for configuring gaming mice")
11623 (description "libratbag provides @command{ratbagd}, a DBus daemon to
11624 configure input devices, mainly gaming mice. The daemon provides a generic
11625 way to access the various features exposed by these mice and abstracts away
11626 hardware-specific and kernel-specific quirks. There is also the
11627 @command{ratbagctl} command line interface for configuring devices.
11628
11629 libratbag currently supports devices from Logitech, Etekcity, GSkill, Roccat,
11630 Steelseries.
11631
11632 The ratbagd DBus service can be enabled by adding the following service to
11633 your operating-system definition:
11634
11635 (simple-service 'ratbagd dbus-root-service-type (list libratbag))")
11636 (license license:expat)))
11637
11638 (define-public piper
11639 (package
11640 (name "piper")
11641 (version "0.5.1")
11642 (source
11643 (origin
11644 (method git-fetch)
11645 (uri (git-reference
11646 (url "https://github.com/libratbag/piper")
11647 (commit version)))
11648 (sha256
11649 (base32 "1nfjnsiwg2rs6gkjsxzhr2708i6di149dgwq3cf6l12rxqpb8arj"))
11650 (file-name (git-file-name name version))))
11651 (build-system meson-build-system)
11652 (native-inputs
11653 `(("gettext" ,gettext-minimal)
11654 ("glib:bin" ,glib "bin")
11655 ("gobject-introspection" ,gobject-introspection)
11656 ("pkg-config" ,pkg-config)
11657 ("python-flake8" ,python-flake8)))
11658 (inputs
11659 `(("adwaita-icon-theme" ,adwaita-icon-theme)
11660 ("gtk" ,gtk+)
11661 ("gtk:bin" ,gtk+ "bin")
11662 ("librsvg" ,librsvg)
11663 ("python-evdev" ,python-evdev)
11664 ("python-lxml" ,python-lxml)
11665 ("python-pycairo" ,python-pycairo)
11666 ("python-pygobject" ,python-pygobject)))
11667 (arguments
11668 `(#:imported-modules ((guix build python-build-system)
11669 ,@%meson-build-system-modules)
11670 #:modules (((guix build python-build-system) #:prefix python:)
11671 (guix build meson-build-system)
11672 (guix build utils))
11673 #:tests? #f ;; The flake8 test fails trying to validate piper.in as code.
11674 #:phases
11675 (modify-phases %standard-phases
11676 (add-after 'unpack 'dont-update-gtk-icon-cache
11677 (lambda _
11678 (substitute* "meson.build"
11679 (("meson.add_install_script('meson_install.sh')") ""))
11680 #t))
11681 ;; TODO: Switch to wrap-script when it is fixed.
11682 (add-after 'install 'wrap-python
11683 (assoc-ref python:%standard-phases 'wrap))
11684 (add-after 'wrap-python 'wrap
11685 (lambda* (#:key outputs #:allow-other-keys)
11686 (wrap-program
11687 (string-append (assoc-ref outputs "out" )"/bin/piper")
11688 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11689 #t)))))
11690 (home-page "https://github.com/libratbag/piper/")
11691 (synopsis "Configure bindings and LEDs on gaming mice")
11692 (description "Piper is a GTK+ application for configuring gaming mice with
11693 onboard configuration for key bindings via libratbag. Piper requires
11694 a @command{ratbagd} daemon running with root privileges. It can be run
11695 manually as root, but is preferably configured as a DBus service that can
11696 launch on demand. This can be configured by enabling the following service,
11697 provided there is a DBus service present:
11698
11699 (simple-service 'ratbagd dbus-root-service-type (list libratbag))")
11700 (license license:gpl2)))
11701
11702 (define-public parlatype
11703 (package
11704 (name "parlatype")
11705 (version "2.1")
11706 (source
11707 (origin
11708 (method git-fetch)
11709 (uri (git-reference
11710 (url "https://github.com/gkarsay/parlatype")
11711 (commit (string-append "v" version))))
11712 (file-name (git-file-name name version))
11713 (sha256
11714 (base32 "1c15ja0rwz3jj8bnqdq0nmqka39iwrhy8krdv2a2x8nl4shfpmv0"))))
11715 (build-system meson-build-system)
11716 (arguments
11717 `(#:glib-or-gtk? #t
11718 #:tests? #f ;require internet access
11719 #:phases
11720 (modify-phases %standard-phases
11721 (add-after 'install 'wrap-parlatype
11722 ;; Add gstreamer plugin provided in this package to system's
11723 ;; plugins.
11724 (lambda* (#:key outputs #:allow-other-keys)
11725 (let* ((out (assoc-ref outputs "out"))
11726 (gst-plugin-path (string-append
11727 out "/lib/gstreamer-1.0/"
11728 ":"
11729 (getenv "GST_PLUGIN_SYSTEM_PATH"))))
11730 (wrap-program (string-append out "/bin/parlatype")
11731 `("GST_PLUGIN_SYSTEM_PATH" ":" = (,gst-plugin-path))))
11732 #t)))))
11733 (native-inputs
11734 `(("appstream-glib" ,appstream-glib)
11735 ("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
11736 ("gettext" ,gettext-minimal)
11737 ("glib" ,glib "bin") ;for glib-compile-resources
11738 ("pkg-config" ,pkg-config)
11739 ("yelp-tools" ,yelp-tools)))
11740 (inputs
11741 `(("gst-plugins-base" ,gst-plugins-base)
11742 ("gst-plugins-good" ,gst-plugins-good)
11743 ("gstreamer" ,gstreamer)
11744 ("gtk+" ,gtk+)
11745 ("pocketsphinx" ,pocketsphinx)
11746 ("pulseaudio" ,pulseaudio)
11747 ("sphinxbase" ,sphinxbase)))
11748 (home-page "http://gkarsay.github.io/parlatype/")
11749 (synopsis "GNOME audio player for transcription")
11750 (description "Parlatype is an audio player for the GNOME desktop
11751 environment. Its main purpose is the manual transcription of spoken
11752 audio files.")
11753 (license license:gpl3+)))
11754
11755 (define-public jsonrpc-glib
11756 (package
11757 (name "jsonrpc-glib")
11758 (version "3.34.0")
11759 (source (origin
11760 (method url-fetch)
11761 (uri (string-append "mirror://gnome/sources/" name "/"
11762 (version-major+minor version) "/"
11763 name "-" version ".tar.xz"))
11764 (sha256
11765 (base32
11766 "0j05x4xv2cp3cbmp30m68z8g4rdw7b030ip4wszyfj9ya15v5kni"))))
11767 (build-system meson-build-system)
11768 (inputs
11769 `(("json-glib" ,json-glib)
11770 ("glib" ,glib)))
11771 (native-inputs
11772 `(("pkg-config" ,pkg-config)
11773 ("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
11774 ("gobject-introspection" ,gobject-introspection)
11775 ("vala" ,vala)))
11776 (home-page "https://gitlab.gnome.org/GNOME/jsonrpc-glib")
11777 (synopsis "JSON-RPC library for GLib")
11778 (description "Jsonrpc-GLib is a library to communicate with JSON-RPC based
11779 peers in either a synchronous or asynchronous fashion. It also allows
11780 communicating using the GVariant serialization format instead of JSON when
11781 both peers support it. You might want that when communicating on a single
11782 host to avoid parser overhead and memory-allocator fragmentation.")
11783 (license license:lgpl2.1+)))
11784
11785 (define-public feedbackd
11786 (package
11787 (name "feedbackd")
11788 (version "0.0.0+git20200527")
11789 (source (origin
11790 (method git-fetch)
11791 (uri (git-reference
11792 (url "https://source.puri.sm/Librem5/feedbackd.git")
11793 (commit (string-append "v" version))))
11794 (file-name (git-file-name name version))
11795 (sha256
11796 (base32
11797 "1wbkzxnqjydfgjvp7vz4ghczcz740zcb1yn90cb6gb5md4n6qx2y"))))
11798 (build-system meson-build-system)
11799 (native-inputs
11800 `(("glib:bin" ,glib "bin")
11801 ("gobject-introspection" ,gobject-introspection)
11802 ("pkg-config" ,pkg-config)
11803 ("vala" ,vala)))
11804 (inputs
11805 `(("dbus" ,dbus)
11806 ("gsound" ,gsound)
11807 ("json-glib" ,json-glib)
11808 ("libgudev" ,libgudev)))
11809 (propagated-inputs
11810 `(("glib" ,glib))) ; in Requires of libfeedback-0.0.pc
11811 (synopsis "Haptic/visual/audio feedback via DBus")
11812 (description "Feedbackd provides a DBus daemon to act on events to provide
11813 haptic, visual and audio feedback. It offers the libfeedbackd library and
11814 GObject introspection bindings.")
11815 (home-page "https://source.puri.sm/Librem5/feedbackd")
11816 (license (list license:lgpl2.1+ ; libfeedbackd
11817 license:lgpl3+)))) ; the rest
11818
11819 (define-public sysprof
11820 (package
11821 (name "sysprof")
11822 (version "3.36.0")
11823 (source
11824 (origin
11825 (method url-fetch)
11826 (uri (string-append "mirror://gnome/sources/sysprof/"
11827 (version-major+minor version) "/"
11828 "sysprof-" version ".tar.xz"))
11829 (sha256
11830 (base32 "024i0gzqnm79rpr4gqxdvcj6gvf82xdlcp2p1k9ikcppmi6xnw46"))))
11831 (build-system meson-build-system)
11832 (arguments
11833 `(#:configure-flags
11834 (list (string-append "-Dsystemdunitdir="
11835 %output
11836 "/share/systemd"))
11837 #:tests? #f ; 3/4 test-model-filter barfs some dbus nonsense
11838 #:phases
11839 (modify-phases %standard-phases
11840 (add-after 'unpack 'patch-install-script
11841 (lambda _
11842 (substitute* "build-aux/meson/post_install.sh"
11843 (("gtk-update-icon-cache") "true")
11844 (("update-desktop-database") "true"))
11845 #t)))))
11846 (inputs
11847 `(("glib" ,glib)
11848 ("gtk+" ,gtk+)
11849 ("libdazzle" ,libdazzle)
11850 ("polkit" ,polkit)))
11851 (native-inputs
11852 `(("gettext" ,gettext-minimal)
11853 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
11854 ("itstool" ,itstool)
11855 ("pkg-config" ,pkg-config)
11856 ("xmllint" ,libxml2)))
11857 ;; This home page is so woefully out of date as to be essentially useless.
11858 ;; (home-page "http://www.sysprof.com")
11859 (home-page "https://wiki.gnome.org/Apps/Sysprof")
11860 (synopsis "System-wide performance profiler for GNU/Linux")
11861 (description
11862 "Sysprof performs detailed, accurate, and fast CPU profiling of an entire
11863 GNU/Linux system including the kernel and all user-space applications. This
11864 helps find the function(s) in which a program spends most of its time.
11865
11866 It uses the kernel's built-in @code{ptrace} feature and handles shared
11867 libraries. Applications do not need to be recompiled--or even restarted.")
11868 (license license:gpl3+)))
11869
11870 (define-public gnome-builder
11871 (package
11872 (name "gnome-builder")
11873 (version "3.36.1")
11874 (source (origin
11875 (method url-fetch)
11876 (uri (string-append "mirror://gnome/sources/" name "/"
11877 (version-major+minor version) "/"
11878 name "-" version ".tar.xz"))
11879 (sha256
11880 (base32
11881 "17pvmd5jypar8dkr6w56hvf7jnq4l1wih2wwgkrv7sblr7rkkar2"))))
11882 (build-system meson-build-system)
11883 (arguments
11884 `(#:configure-flags (list "-Dnetwork_tests=false"
11885 ;; TODO: Enable all plugins...
11886 "-Dplugin_clang=false"
11887 "-Dplugin_flatpak=false"
11888 "-Dplugin_glade=false"
11889 ;; XXX: This one has been shown not to work in
11890 ;; <https://issues.guix.gnu.org/45272>
11891 "-Dplugin_jedi=false"
11892 ;; ... except this one.
11893 "-Dplugin_update_manager=false")
11894 #:phases
11895 (modify-phases %standard-phases
11896 (add-after 'unpack 'patch-meson
11897 (lambda* (#:key inputs #:allow-other-keys)
11898 (substitute* "build-aux/meson/post_install.py"
11899 (("gtk-update-icon-cache") "true")
11900 (("update-desktop-database") "true"))
11901 (substitute* "src/libide/meson.build"
11902 (("/usr/lib")
11903 (string-append (assoc-ref inputs "python-pygobject")
11904 "/lib")))
11905 #t))
11906 (add-after 'configure 'fix-ninja
11907 (lambda _
11908 ;; #43296: meson(?) incorrectly assumes we want to link
11909 ;; this PIE against a static libselinux.
11910 (substitute* "build.ninja"
11911 (("libselinux\\.a") "libselinux.so"))
11912 #t))
11913 (add-before 'check 'pre-check
11914 (lambda _
11915 (system "Xvfb :1 &")
11916 (setenv "DISPLAY" ":1")
11917 #t)))))
11918 (inputs
11919 `(("devhelp" ,devhelp)
11920 ("gspell" ,gspell)
11921 ("gtk+" ,gtk+)
11922 ("json-glib" ,json-glib)
11923 ("jsonrpc-glib" ,jsonrpc-glib)
11924 ("libdazzle" ,libdazzle)
11925 ("libgit2-glib" ,libgit2-glib)
11926 ("libpeas" ,libpeas)
11927 ("python-pygobject" ,python-pygobject)
11928 ("sysprof" ,sysprof)
11929 ("template-glib" ,template-glib)
11930 ("vte" ,vte)
11931 ("webkitgtk" ,webkitgtk)))
11932 (propagated-inputs
11933 `(("gtksourceview" ,gtksourceview))) ;needed for settings
11934 (native-inputs
11935 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
11936 ("glib:bin" ,glib "bin")
11937 ("gettext" ,gettext-minimal)
11938 ("pkg-config" ,pkg-config)
11939 ("vala" ,vala)
11940 ("xorg-server" ,xorg-server-for-tests)))
11941 (home-page "https://wiki.gnome.org/Apps/Builder")
11942 (synopsis "Toolsmith for GNOME-based applications")
11943 (description "Builder aims to be an integrated development
11944 environment (IDE) for writing GNOME-based software. It features fuzzy search,
11945 auto-completion, a mini code map, documentation browsing, Git integration, an
11946 integrated profiler via Sysprof, debugging support, and more.")
11947 (license license:gpl3+)))
11948
11949 (define-public komikku
11950 (package
11951 (name "komikku")
11952 (version "0.26.1")
11953 (source
11954 (origin
11955 (method git-fetch)
11956 (uri (git-reference
11957 (url "https://gitlab.com/valos/Komikku/")
11958 (commit (string-append "v" version))))
11959 (file-name (git-file-name name version))
11960 (sha256
11961 (base32
11962 "1mas409c14p6g0v10w4cf5hsjbs0922h6h9k9pyj9s8y7yi2ikz2"))))
11963 (build-system meson-build-system)
11964 (arguments
11965 `(#:glib-or-gtk? #t
11966 #:phases
11967 (modify-phases %standard-phases
11968 (add-after 'unpack 'patch-sources
11969 (lambda _
11970 (substitute* "komikku/utils.py"
11971 (("from komikku\\.servers import get_servers_list")
11972 ;; code following that line should migrate old databases
11973 ;; but the line itself results in an import error
11974 "return data_dir_path"))))
11975 (add-after 'unpack 'skip-gtk-update-icon-cache
11976 (lambda _
11977 (substitute* "meson_post_install.py"
11978 (("gtk-update-icon-cache") (which "true")))
11979 #t))
11980 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
11981 (lambda* (#:key outputs #:allow-other-keys)
11982 (let ((prog (string-append (assoc-ref outputs "out")
11983 "/bin/komikku")))
11984 (wrap-program prog
11985 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
11986 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11987 #t))))))
11988 (inputs
11989 `(("gtk+" ,gtk+)
11990 ("libhandy" ,libhandy)
11991 ("libnotify" ,libnotify)
11992 ("libsecret" ,libsecret)
11993 ("python-beautifulsoup4" ,python-beautifulsoup4)
11994 ("python-dateparser" ,python-dateparser)
11995 ("python-keyring" ,python-keyring)
11996 ("python-lxml" ,python-lxml)
11997 ("python-magic" ,python-magic)
11998 ("python-pillow" ,python-pillow)
11999 ("python-pure-protobuf" ,python-pure-protobuf)
12000 ("python-pycairo" ,python-pycairo)
12001 ("python-pygobject" ,python-pygobject)
12002 ("python-requests" ,python-requests)
12003 ("python-unidecode" ,python-unidecode)))
12004 (native-inputs
12005 `(("desktop-file-utils" ,desktop-file-utils)
12006 ("gettext" ,gettext-minimal)
12007 ("glib:bin" ,glib "bin")
12008 ("gobject-introspection" ,gobject-introspection)
12009 ("pkg-config" ,pkg-config)))
12010 (home-page "https://gitlab.com/valos/Komikku")
12011 (synopsis "Manga reader for GNOME")
12012 (description "Komikku is an online/offline manga reader for GNOME,
12013 developed with the aim of being used with the Librem 5 phone.")
12014 (license license:gpl3+)))
12015
12016 (define-public libgda
12017 (package
12018 (name "libgda")
12019 (version "5.2.10")
12020 (source
12021 (origin
12022 (method git-fetch)
12023 (uri (git-reference
12024 (url "https://gitlab.gnome.org/GNOME/libgda.git/")
12025 (commit (string-append "LIBGDA_" (string-replace-substring
12026 version "." "_")))))
12027 (file-name (git-file-name name version))
12028 (sha256
12029 (base32 "18rg773gq9v3cdywpmrp12c5xyp97ir9yqjinccpi22sksb1kl8a"))))
12030 (build-system gnu-build-system)
12031 (arguments
12032 `(#:configure-flags '("--enable-vala")
12033 ;; There's a race between check_cnc_lock and check_threaded_cnc
12034 ;; in tests/multi-threading.
12035 #:parallel-tests? #f
12036 #:phases
12037 (modify-phases %standard-phases
12038 (add-after 'unpack 'fix-glade-install
12039 (lambda _
12040 (substitute* "configure.ac"
12041 (("`\\$PKG_CONFIG --variable=catalogdir gladeui-2\\.0`")
12042 "${datadir}/glade/catalogs")
12043 (("`\\$PKG_CONFIG --variable=pixmapdir gladeui-2\\.0`")
12044 "${datadir}/glade/pixmaps"))
12045 #t))
12046 (add-before 'check 'pre-check
12047 (lambda* (#:key inputs #:allow-other-keys)
12048 ;; Tests require a running X server.
12049 (system "Xvfb :1 &")
12050 (setenv "DISPLAY" ":1")
12051 #t))
12052 (add-after 'install 'symlink-glade-module
12053 (lambda* (#:key outputs #:allow-other-keys)
12054 (let* ((shlib "libgda-ui-5.0.so")
12055 (out (assoc-ref outputs "out"))
12056 (out/lib (string-append out "/lib"))
12057 (moduledir (string-append out/lib "/glade/modules")))
12058 (mkdir-p moduledir)
12059 (symlink (string-append out/lib "/" shlib)
12060 (string-append moduledir "/" shlib))
12061 #t))))))
12062 (propagated-inputs
12063 `(("libxml2" ,libxml2))) ; required by libgda-5.0.pc
12064 (inputs
12065 `(("glib" ,glib)
12066 ("glade" ,glade3)
12067 ("gtk+" ,gtk+)
12068 ("libsecret" ,libsecret)
12069 ("libxslt" ,libxslt)
12070 ("openssl" ,openssl)
12071 ("vala" ,vala)))
12072 (native-inputs
12073 `(("autoconf" ,autoconf)
12074 ("autoconf-archive" ,autoconf-archive)
12075 ("automake" ,automake)
12076 ("glib:bin" ,glib "bin")
12077 ("gnome-common" ,gnome-common)
12078 ("gobject-introspection" ,gobject-introspection)
12079 ("gtk-doc" ,gtk-doc)
12080 ("intltool" ,intltool)
12081 ("libtool" ,libtool)
12082 ("pkg-config" ,pkg-config)
12083 ("vala" ,vala)
12084 ("which" ,which)
12085 ("xorg-server" ,xorg-server-for-tests)
12086 ("yelp-tools" ,yelp-tools)))
12087 (home-page "https://gitlab.gnome.org/GNOME/libgda")
12088 (synopsis "Uniform data access")
12089 (description
12090 "GNU Data Access (GDA) is an attempt to provide uniform access to
12091 different kinds of data sources (databases, information servers, mail spools,
12092 etc). It is a complete architecture that provides all you need to access
12093 your data.")
12094 (license license:lgpl2.1+)))
12095
12096 (define-public gtranslator
12097 (package
12098 (name "gtranslator")
12099 (version "3.36.0")
12100 (source (origin
12101 (method url-fetch)
12102 (uri (string-append "mirror://gnome/sources/" name "/"
12103 (version-major+minor version) "/"
12104 name "-" version ".tar.xz"))
12105 (sha256
12106 (base32
12107 "1lxd2nkji4jk8g2xmyc1a1r3ww710ddk91zh9psmx8xlb4xivaid"))))
12108 (build-system meson-build-system)
12109 (inputs
12110 `(("json-glib" ,json-glib)
12111 ("jsonrpc-glib" ,jsonrpc-glib)
12112 ("gettext" ,gettext-minimal)
12113 ("glib" ,glib)
12114 ("gtk+" ,gtk+)
12115 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
12116 ("gspell" ,gspell)
12117 ("libdazzle" ,libdazzle)
12118 ("libgda" ,libgda)
12119 ("libsoup" ,libsoup)))
12120 (native-inputs
12121 `(("glib:bin" ,glib "bin")
12122 ("itstool" ,itstool)
12123 ("pkg-config" ,pkg-config)))
12124 (propagated-inputs
12125 `(("gtksourceview" ,gtksourceview))) ; required for source view
12126 (arguments
12127 `(#:build-type "release"
12128 #:glib-or-gtk? #t
12129 #:phases
12130 (modify-phases %standard-phases
12131 (add-after 'unpack 'skip-gtk-update-icon-cache
12132 (lambda _
12133 (substitute* "build-aux/meson/meson_post_install.py"
12134 (("gtk-update-icon-cache") (which "true")))
12135 #t)))))
12136 (home-page "https://wiki.gnome.org/Apps/Gtranslator")
12137 (synopsis "Translation making program")
12138 (description
12139 "gtranslator is a quite comfortable gettext po/po.gz/(g)mo files editor
12140 for the GNOME 3.x platform with many features. It aims to be a very complete
12141 editing environment for translation issues within the GNU gettext/GNOME desktop
12142 world.")
12143 (license license:gpl3+)))
12144
12145
12146 (define-public ocrfeeder
12147 (package
12148 (name "ocrfeeder")
12149 (version "0.8.3")
12150 (source (origin
12151 (method url-fetch)
12152 (uri (string-append "mirror://gnome/sources/ocrfeeder/"
12153 (version-major+minor version) "/"
12154 "ocrfeeder-" version ".tar.xz"))
12155 (sha256
12156 (base32
12157 "12f5gnq92ffnd5zaj04df7jrnsdz1zn4zcgpbf5p9qnd21i2y529"))))
12158 (build-system gnu-build-system)
12159 (arguments
12160 `(#:phases
12161 (modify-phases %standard-phases
12162 (add-after
12163 'install 'wrap-program
12164 (lambda* (#:key outputs #:allow-other-keys)
12165 (let ((prog (string-append (assoc-ref outputs "out")
12166 "/bin/" "ocrfeeder"))
12167 (pylib (string-append (assoc-ref outputs "out")
12168 "/lib/python"
12169 ,(version-major+minor
12170 (package-version python))
12171 "/site-packages")))
12172 (wrap-program prog
12173 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
12174 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
12175 #t))))))
12176 (native-inputs
12177 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
12178 ("gobject-introspection" ,gobject-introspection)
12179 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
12180 ("intltool" ,intltool)
12181 ("itstool" ,itstool)
12182 ("pkg-config" ,pkg-config)
12183 ("xmllint" ,libxml2)))
12184 (inputs
12185 `(("enchant" ,enchant)
12186 ("glib" ,glib)
12187 ("goocanvas" ,goocanvas)
12188 ("gtk" ,gtk+)
12189 ("gtkspell3" ,gtkspell3)
12190 ("libjpeg" ,libjpeg-turbo)
12191 ("libtiff" ,libtiff)
12192 ("libraw" ,libraw)
12193 ("ocrad" ,ocrad)
12194 ("python" ,python-wrapper)
12195 ("python-pygobject" ,python-pygobject)
12196 ("python-odfpy" ,python-odfpy)
12197 ("python-pillow" ,python-pillow)
12198 ("python-pyenchant" ,python-pyenchant)
12199 ("python-reportlab" ,python-reportlab)
12200 ("python-sane" ,python-sane)
12201 ("sane-backends" ,sane-backends)
12202 ("tesseract-ocr" ,tesseract-ocr)))
12203 (home-page "https://wiki.gnome.org/Apps/OCRFeeder")
12204 (synopsis "Complete OCR Suite")
12205 (description "OCRFeeder is a complete Optical Character Recognition and
12206 Document Analysis and Recognition program.")
12207 (license license:gpl3+)))