gnu: librsvg-next: Update to 2.50.2.
[jackhill/guix/guix.git] / gnu / packages / gnome.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
5 ;;; Copyright © 2014, 2016, 2020 Eric Bavier <bavier@posteo.net>
6 ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
7 ;;; Copyright © 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
8 ;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
9 ;;; Copyright © 2015, 2017 Andy Wingo <wingo@igalia.com>
10 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
11 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2015, 2016, 2017, 2018 Mark H Weaver <mhw@netris.org>
13 ;;; Copyright © 2015 David Thompson <davet@gnu.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
15 ;;; Copyright © 2016, 2017, 2018 Rene Saavedra <pacoon@protonmail.com>
16 ;;; Copyright © 2016 Jochem Raat <jchmrt@riseup.net>
17 ;;; Copyright © 2016, 2017, 2019 Kei Kebreau <kkebreau@posteo.net>
18 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
19 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
20 ;;; Copyright © 2016, 2018 Leo Famulari <leo@famulari.name>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
23 ;;; Copyright © 2016 David Craven <david@craven.ch>
24 ;;; Copyright © 2016–2021 Tobias Geerinckx-Rice <me@tobias.gr>
25 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
26 ;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com>
27 ;;; Copyright © 2017, 2018 nee <nee-git@hidamari.blue>
28 ;;; Copyright © 2017 Chris Marusich <cmmarusich@gmail.com>
29 ;;; Copyright © 2017 Mohammed Sadiq <sadiq@sadiqpk.org>
30 ;;; Copyright © 2017, 2020 Brendan Tildesley <mail@brendan.scot>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2018 Jovany Leandro G.C <bit4bit@riseup.net>
33 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
34 ;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
35 ;;; Copyright © 2018, 2019 Timothy Sample <samplet@ngyro.com>
36 ;;; Copyright © 2019 Danny Milosavljevic <dannym@scratchpost.org>
37 ;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
38 ;;; Copyright © 2019 Florian Pelz <pelzflorian@pelzflorian.de>
39 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
40 ;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
41 ;;; Copyright © 2019 Jonathan Frederickson <jonathan@terracrypt.net>
42 ;;; Copyright © 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
43 ;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
44 ;;; Copyright © 2019 David Wilson <david@daviwil.com>
45 ;;; Copyright © 2019, 2020 Raghav Gururajan <raghavgururajan@disroot.org>
46 ;;; Copyright © 2019, 2020 Jonathan Brielmaier <jonathan.brielmaier@web.de>
47 ;;; Copyright © 2019, 2020 Leo Prikler <leo.prikler@student.tugraz.at>
48 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
49 ;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
50 ;;; Copyright © 2020 raingloom <raingloom@riseup.net>
51 ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
52 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
53 ;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
54 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
55 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
56 ;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
57 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
58 ;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
59 ;;;
60 ;;; This file is part of GNU Guix.
61 ;;;
62 ;;; GNU Guix is free software; you can redistribute it and/or modify it
63 ;;; under the terms of the GNU General Public License as published by
64 ;;; the Free Software Foundation; either version 3 of the License, or (at
65 ;;; your option) any later version.
66 ;;;
67 ;;; GNU Guix is distributed in the hope that it will be useful, but
68 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
69 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
70 ;;; GNU General Public License for more details.
71 ;;;
72 ;;; You should have received a copy of the GNU General Public License
73 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
74
75 (define-module (gnu packages gnome)
76 #:use-module (gnu packages)
77 #:use-module (gnu packages admin)
78 #:use-module (gnu packages aidc)
79 #:use-module (gnu packages aspell)
80 #:use-module (gnu packages autotools)
81 #:use-module (gnu packages avahi)
82 #:use-module (gnu packages backup)
83 #:use-module (gnu packages base)
84 #:use-module (gnu packages bash)
85 #:use-module (gnu packages bison)
86 #:use-module (gnu packages boost)
87 #:use-module (gnu packages build-tools)
88 #:use-module (gnu packages calendar)
89 #:use-module (gnu packages cdrom)
90 #:use-module (gnu packages check)
91 #:use-module (gnu packages cmake)
92 #:use-module (gnu packages compression)
93 #:use-module (gnu packages crates-io)
94 #:use-module (gnu packages crates-graphics)
95 #:use-module (gnu packages crates-gtk)
96 #:use-module (gnu packages cups)
97 #:use-module (gnu packages curl)
98 #:use-module (gnu packages cyrus-sasl)
99 #:use-module (gnu packages databases)
100 #:use-module (gnu packages dbm)
101 #:use-module (gnu packages djvu)
102 #:use-module (gnu packages dns)
103 #:use-module (gnu packages docbook)
104 #:use-module (gnu packages documentation)
105 #:use-module (gnu packages enchant)
106 #:use-module (gnu packages flex)
107 #:use-module (gnu packages fonts)
108 #:use-module (gnu packages file-systems)
109 #:use-module (gnu packages fontutils)
110 #:use-module (gnu packages freedesktop)
111 #:use-module (gnu packages game-development)
112 #:use-module (gnu packages gcc)
113 #:use-module (gnu packages gettext)
114 #:use-module (gnu packages ghostscript)
115 #:use-module (gnu packages gimp)
116 #:use-module (gnu packages gl)
117 #:use-module (gnu packages glib)
118 #:use-module (gnu packages gnupg)
119 #:use-module (gnu packages gnuzilla)
120 #:use-module (gnu packages geo)
121 #:use-module (gnu packages gperf)
122 #:use-module (gnu packages graphviz)
123 #:use-module (gnu packages gstreamer)
124 #:use-module (gnu packages gtk)
125 #:use-module (gnu packages guile)
126 #:use-module (gnu packages ibus)
127 #:use-module (gnu packages icu4c)
128 #:use-module (gnu packages image)
129 #:use-module (gnu packages imagemagick)
130 #:use-module (gnu packages inkscape)
131 #:use-module (gnu packages iso-codes)
132 #:use-module (gnu packages kerberos)
133 #:use-module (gnu packages libcanberra)
134 #:use-module (gnu packages libffi)
135 #:use-module (gnu packages libunistring)
136 #:use-module (gnu packages libunwind)
137 #:use-module (gnu packages libusb)
138 #:use-module (gnu packages linux)
139 #:use-module (gnu packages lirc)
140 #:use-module (gnu packages lua)
141 #:use-module (gnu packages mail)
142 #:use-module (gnu packages mp3)
143 #:use-module (gnu packages multiprecision)
144 #:use-module (gnu packages music)
145 #:use-module (gnu packages ncurses)
146 #:use-module (gnu packages nettle)
147 #:use-module (gnu packages networking)
148 #:use-module (gnu packages ninja)
149 #:use-module (gnu packages node)
150 #:use-module (gnu packages nss)
151 #:use-module (gnu packages openldap)
152 #:use-module (gnu packages package-management)
153 #:use-module (gnu packages password-utils)
154 #:use-module (gnu packages pcre)
155 #:use-module (gnu packages pdf)
156 #:use-module (gnu packages perl)
157 #:use-module (gnu packages photo)
158 #:use-module (gnu packages php)
159 #:use-module (gnu packages pkg-config)
160 #:use-module (gnu packages polkit)
161 #:use-module (gnu packages popt)
162 #:use-module (gnu packages pretty-print)
163 #:use-module (gnu packages protobuf)
164 #:use-module (gnu packages pulseaudio)
165 #:use-module (gnu packages python)
166 #:use-module (gnu packages python-crypto)
167 #:use-module (gnu packages python-web)
168 #:use-module (gnu packages python-xyz)
169 #:use-module (gnu packages rdesktop)
170 #:use-module (gnu packages rdf)
171 #:use-module (gnu packages readline)
172 #:use-module (gnu packages ruby)
173 #:use-module (gnu packages rust)
174 #:use-module (gnu packages samba)
175 #:use-module (gnu packages scanner)
176 #:use-module (gnu packages sdl)
177 #:use-module (gnu packages search)
178 #:use-module (gnu packages selinux)
179 #:use-module (gnu packages slang)
180 #:use-module (gnu packages speech)
181 #:use-module (gnu packages spice)
182 #:use-module (gnu packages sqlite)
183 #:use-module (gnu packages ssh)
184 #:use-module (gnu packages swig)
185 #:use-module (gnu packages tex)
186 #:use-module (gnu packages time)
187 #:use-module (gnu packages tls)
188 #:use-module (gnu packages valgrind)
189 #:use-module (gnu packages version-control)
190 #:use-module (gnu packages video)
191 #:use-module (gnu packages virtualization)
192 #:use-module (gnu packages vpn)
193 #:use-module (gnu packages web)
194 #:use-module (gnu packages webkit)
195 #:use-module (gnu packages xdisorg)
196 #:use-module (gnu packages xiph)
197 #:use-module (gnu packages xml)
198 #:use-module (gnu packages xorg)
199 #:use-module (gnu artwork)
200 #:use-module ((guix build utils) #:select (modify-phases))
201 #:use-module (guix build-system cargo)
202 #:use-module (guix build-system cmake)
203 #:use-module (guix build-system glib-or-gtk)
204 #:use-module (guix build-system gnu)
205 #:use-module (guix build-system meson)
206 #:use-module (guix build-system python)
207 #:use-module (guix build-system trivial)
208 #:use-module (guix download)
209 #:use-module (guix git-download)
210 #:use-module ((guix licenses) #:prefix license:)
211 #:use-module (guix packages)
212 #:use-module (guix utils)
213 #:use-module (guix gexp)
214 #:use-module (guix monads)
215 #:use-module (guix store)
216 #:use-module (ice-9 match)
217 #:use-module (srfi srfi-1))
218
219 (define-public gupnp-igd
220 (package
221 (name "gupnp-igd")
222 (version "1.2.0")
223 (source
224 (origin
225 (method url-fetch)
226 (uri
227 (string-append "mirror://gnome/sources/" name "/"
228 (version-major+minor version) "/"
229 name "-" version ".tar.xz"))
230 (sha256
231 (base32 "1q9bw12ibih3yxpha3gm1dabyqg9gx6yxacbh4kxsgm1i84j0lab"))))
232 (build-system meson-build-system)
233 (outputs '("out" "doc"))
234 (arguments
235 `(#:glib-or-gtk? #t ; To wrap binaries and compile schemas
236 #:configure-flags (list "-Dgtk_doc=true")
237 #:phases
238 (modify-phases %standard-phases
239 (add-after 'unpack 'patch-docbook-xml
240 (lambda* (#:key inputs #:allow-other-keys)
241 (with-directory-excursion "doc"
242 (substitute* "gupnp-igd-docs.xml"
243 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
244 (string-append (assoc-ref inputs "docbook-xml-4.1.2")
245 "/xml/dtd/docbook/"))))
246 #t))
247 (add-after 'install 'move-doc
248 (lambda* (#:key outputs #:allow-other-keys)
249 (let* ((out (assoc-ref outputs "out"))
250 (doc (assoc-ref outputs "doc")))
251 (mkdir-p (string-append doc "/share"))
252 (rename-file
253 (string-append out "/share/gtk-doc")
254 (string-append doc "/share/gtk-doc"))
255 #t))))))
256 (native-inputs
257 `(("docbook-xml-4.1.2" ,docbook-xml-4.1.2)
258 ("docbook-xsl" ,docbook-xsl)
259 ("glib:bin" ,glib "bin")
260 ("gobject-introspection" ,gobject-introspection)
261 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
262 ("gtk-doc" ,gtk-doc)
263 ("pkg-config" ,pkg-config)))
264 (propagated-inputs
265 `(("glib" ,glib)
266 ("glib-networking" ,glib-networking)
267 ("gssdp" ,gssdp)
268 ("gupnp" ,gupnp)
269 ("libsoup" ,libsoup)))
270 (synopsis "UPnP IGD for GNOME")
271 (description "GUPnP-IGD is a library to handle UPnP IGD port mapping.")
272 (home-page "https://gitlab.gnome.org/GNOME/gupnp-igd")
273 (license license:lgpl2.1+)))
274
275 (define-public brasero
276 (package
277 (name "brasero")
278 (version "3.12.2")
279 (source (origin
280 (method url-fetch)
281 (uri (string-append "mirror://gnome/sources/brasero/"
282 (version-major+minor version) "/"
283 "brasero-" version ".tar.xz"))
284 (sha256
285 (base32
286 "0h90y674j26rvjahb8cc0w79zx477rb6zaqcj26wzvq8kmpic8k8"))))
287 (build-system glib-or-gtk-build-system)
288 (arguments
289 `(#:configure-flags (list
290 (string-append "--with-girdir="
291 (assoc-ref %outputs "out")
292 "/share/gir-1.0")
293 (string-append "--with-typelibdir="
294 (assoc-ref %outputs "out")
295 "/lib/girepository-1.0"))
296 #:phases
297 (modify-phases %standard-phases
298 (add-before 'configure 'embed-growisofs
299 (lambda* (#:key inputs #:allow-other-keys)
300 (substitute* "plugins/growisofs/burn-growisofs.c"
301 (("\"growisofs") (string-append "\"" (which "growisofs"))))
302 #t)))))
303 (propagated-inputs
304 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
305 (native-inputs
306 `(("intltool" ,intltool)
307 ("itstool" ,itstool)
308 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
309 ("gobject-introspection" ,gobject-introspection)
310 ("pkg-config" ,pkg-config)))
311 (inputs
312 `(("dvd+rw-tools" ,dvd+rw-tools)
313 ("glib" ,glib)
314 ("gnome-doc-utils" ,gnome-doc-utils)
315 ("gstreamer" ,gstreamer)
316 ("gst-plugins-base" ,gst-plugins-base)
317 ("gtk+" ,gtk+)
318 ("libcanberra" ,libcanberra)
319 ("libice" ,libice)
320 ("libnotify" ,libnotify)
321 ("libsm" ,libsm)
322 ("libxml2" ,libxml2)
323 ("totem-pl-parser" ,totem-pl-parser)))
324 (home-page "https://wiki.gnome.org/Apps/Brasero")
325 (synopsis "CD/DVD burning tool for Gnome")
326 (description "Brasero is an application to burn CD/DVD for the Gnome
327 Desktop. It is designed to be as simple as possible and has some unique
328 features to enable users to create their discs easily and quickly.")
329 (license license:gpl2+)))
330
331 (define-public libcloudproviders
332 (package
333 (name "libcloudproviders")
334 (version "0.3.1")
335 (source
336 (origin
337 (method url-fetch)
338 (uri
339 (string-append "mirror://gnome/sources/" name "/"
340 (version-major+minor version) "/"
341 name "-" version ".tar.xz"))
342 (sha256
343 (base32 "0aars24myf6n8b8hm1n12hsgcm54097kpbpm4ba31zp1l4y22qs7"))))
344 (build-system meson-build-system)
345 (outputs '("out" "doc"))
346 (arguments
347 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
348 #:configure-flags
349 (list
350 "-Denable-gtk-doc=true")
351 #:phases
352 (modify-phases %standard-phases
353 (add-after 'install 'move-doc
354 (lambda* (#:key outputs #:allow-other-keys)
355 (let* ((out (assoc-ref outputs "out"))
356 (doc (assoc-ref outputs "doc")))
357 (mkdir-p (string-append doc "/share"))
358 (rename-file
359 (string-append out "/share/gtk-doc")
360 (string-append doc "/share/gtk-doc"))
361 #t))))))
362 (native-inputs
363 `(("glib:bin" ,glib "bin")
364 ("gobject-introspection" ,gobject-introspection)
365 ("gtk-doc" ,gtk-doc)
366 ("pkg-config" ,pkg-config)
367 ("vala" ,vala)))
368 (inputs
369 `(("glib" ,glib)
370 ("glib-networking" ,glib-networking)))
371 (synopsis "Cloudproviders Integration API")
372 (description "Libcloudproviders is a DBus API that allows cloud storage sync
373 clients to expose their services. Clients such as file managers and desktop
374 environments can then provide integrated access to the cloud providers
375 services.")
376 (home-page "https://csorianognome.wordpress.com/2015/07/07/cloud-providers/")
377 (license license:lgpl3+)))
378
379 (define-public libgrss
380 (package
381 (name "libgrss")
382 (version "0.7.0")
383 (source
384 (origin
385 (method url-fetch)
386 (uri
387 (string-append "mirror://gnome/sources/" name "/"
388 (version-major+minor version) "/"
389 name "-" version ".tar.xz"))
390 (sha256
391 (base32 "1nalslgyglvhpva3px06fj6lv5zgfg0qmj0sbxyyl5d963vc02b7"))))
392 (build-system glib-or-gtk-build-system)
393 (outputs '("out" "doc"))
394 (arguments
395 `(#:configure-flags
396 (list
397 "--enable-gtk-doc"
398 (string-append "--with-html-dir="
399 (assoc-ref %outputs "doc")
400 "/share/gtk-doc/html"))
401 #:phases
402 (modify-phases %standard-phases
403 (add-after 'unpack 'patch-docbook-xml
404 (lambda* (#:key inputs #:allow-other-keys)
405 (with-directory-excursion "doc/reference"
406 (substitute* "libgrss-docs.sgml"
407 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
408 (string-append (assoc-ref inputs "docbook-xml")
409 "/xml/dtd/docbook/"))))
410 #t)))))
411 (native-inputs
412 `(("docbook-xml" ,docbook-xml-4.1.2)
413 ("gobject-introspection" ,gobject-introspection)
414 ("gtk-doc" ,gtk-doc)
415 ("pkg-config" ,pkg-config)))
416 (propagated-inputs
417 `(("glib" ,glib)
418 ("libsoup" ,libsoup)
419 ("libxml2" ,libxml2)))
420 (synopsis "Glib library for feeds")
421 (description "LibGRSS is a Glib abstraction to handle feeds in RSS, Atom,
422 and other formats.")
423 (home-page "https://wiki.gnome.org/Projects/Libgrss")
424 (license license:lgpl3+)))
425
426 (define-public gnome-js-common
427 (package
428 (name "gnome-js-common")
429 (version "0.1.2")
430 (source
431 (origin
432 (method url-fetch)
433 (uri
434 (string-append "mirror://gnome/sources/" name "/"
435 (version-major+minor version) "/"
436 name "-" version ".tar.gz"))
437 (sha256
438 (base32 "1zv5b9bcbclzj64xd9kgql4ndmbwvvi6cl937ykw8fp21xgh8z7y"))))
439 (build-system glib-or-gtk-build-system)
440 (arguments
441 `(#:configure-flags
442 (list
443 "--disable-static")))
444 (native-inputs
445 `(("gettext" ,gettext-minimal)
446 ("intltool" ,intltool)
447 ("pkg-config" ,pkg-config)))
448 (synopsis "Common JS Modules")
449 (description "GNOME-JS-Common provides common modules for GNOME JavaScript
450 bindings.")
451 (home-page "https://wiki.gnome.org/Projects/Seed")
452 (license license:gpl3+)))
453
454 (define-public seed
455 (package
456 (name "seed")
457 (version "3.8.1")
458 (source
459 (origin
460 (method url-fetch)
461 (uri
462 (string-append "mirror://gnome/sources/" name "/"
463 (version-major+minor version) "/"
464 name "-" version ".tar.xz"))
465 (sha256
466 (base32 "0cmcxaggcdcy13j27gy8id2qsf2p2sl4bz2mwb9zhv3gzavlvjw0"))
467 (patches
468 (search-patches "seed-webkit.patch"))))
469 (build-system glib-or-gtk-build-system)
470 (outputs '("out" "doc"))
471 (arguments
472 `(#:configure-flags
473 (list
474 "--disable-static"
475 "--enable-xorg-module"
476 (string-append "--with-html-dir="
477 (assoc-ref %outputs "doc")
478 "/share/gtk-doc/html")
479 "--with-webkit=4.0")
480 #:phases
481 (modify-phases %standard-phases
482 ;; The seed-webkit.patch patches configure.ac.
483 ;; So the source files need to be re-bootstrapped.
484 (add-after 'unpack 'trigger-bootstrap
485 (lambda _
486 (for-each delete-file
487 (list
488 "configure"
489 "Makefile.in"))
490 #t))
491 (add-after 'unpack 'patch-tests
492 (lambda* (#:key outputs #:allow-other-keys)
493 (substitute* (find-files "." "\\.js$")
494 (("#!/usr/bin/env seed")
495 (string-append "#!" (getcwd) "/src/seed")))
496 #t))
497 (add-before 'build 'patch-docbook-xml
498 (lambda* (#:key inputs #:allow-other-keys)
499 (with-directory-excursion "doc"
500 (substitute* '("reference/seed-docs.sgml" "modules/book.xml")
501 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
502 (string-append (assoc-ref inputs "docbook-xml")
503 "/xml/dtd/docbook/"))))
504 #t)))))
505 (native-inputs
506 `(("autoconf" ,autoconf)
507 ("automake" ,automake)
508 ("docbook-xml" ,docbook-xml-4.1.2)
509 ("gettext" ,gettext-minimal)
510 ("gobject-introspection" ,gobject-introspection)
511 ("gtk-doc" ,gtk-doc)
512 ("intltool" ,intltool)
513 ("libtool" ,libtool)
514 ("pkg-config" ,pkg-config)))
515 (inputs
516 `(("cairo" ,cairo)
517 ("dbus" ,dbus)
518 ("dbus-glib" ,dbus-glib)
519 ("gnome-js-common" ,gnome-js-common)
520 ("gtk+" ,gtk+)
521 ("gtk+-2" ,gtk+-2)
522 ("libffi" ,libffi)
523 ("libxml2" ,libxml2)
524 ("mpfr" ,mpfr)
525 ("readline" ,readline)
526 ("sqlite" ,sqlite)
527 ("xscrnsaver" ,libxscrnsaver)))
528 (propagated-inputs
529 `(("glib" ,glib)
530 ("webkit" ,webkitgtk)))
531 (synopsis "GObject JavaScriptCore bridge")
532 (description "Seed is a library and interpreter, dynamically bridging
533 (through GObjectIntrospection) the WebKit JavaScriptCore engine, with the
534 GNOME platform. It serves as something which enables you to write standalone
535 applications in JavaScript, or easily enable your application to be extensible
536 in JavaScript.")
537 (home-page "https://wiki.gnome.org/Projects/Seed")
538 (license license:lgpl2.0+)))
539
540 (define-public libdmapsharing
541 (package
542 (name "libdmapsharing")
543 (version "3.9.10")
544 (source
545 (origin
546 (method url-fetch)
547 (uri
548 (string-append "https://www.flyn.org/projects/"
549 name "/" name "-" version ".tar.gz"))
550 (sha256
551 (base32 "152hnddwxv590cn802awv3mn27ixc3s6ac691a7z02d1c5fl45p2"))))
552 (build-system glib-or-gtk-build-system)
553 (outputs '("out" "doc"))
554 (arguments
555 `(#:tests? #f ; Tests require networking.
556 #:configure-flags
557 (list
558 "--disable-static"
559 (string-append "--with-html-dir="
560 (assoc-ref %outputs "doc")
561 "/share/gtk-doc/html"))
562 #:phases
563 (modify-phases %standard-phases
564 (add-after 'unpack 'patch-docbook-xml
565 (lambda* (#:key inputs #:allow-other-keys)
566 (with-directory-excursion "doc"
567 (substitute* "libdmapsharing-4.0-docs.xml"
568 (("http://www.oasis-open.org/docbook/xml/4.3/")
569 (string-append (assoc-ref inputs "docbook-xml")
570 "/xml/dtd/docbook/"))))
571 #t)))))
572 (native-inputs
573 `(("check" ,check)
574 ("docbook-xml" ,docbook-xml-4.3)
575 ("gobject-introspection" ,gobject-introspection)
576 ("pedansee" ,pedansee)
577 ("pkg-config" ,pkg-config)
578 ("vala" ,vala)))
579 (inputs
580 `(("avahi" ,avahi)
581 ("gdk-pixbuf" ,gdk-pixbuf+svg)
582 ("gee" ,libgee)
583 ("gst-plugins-base" ,gst-plugins-base)
584 ("gtk+" ,gtk+)))
585 (propagated-inputs
586 `(("glib" ,glib)
587 ("glib-networking" ,glib-networking)
588 ("gstreamer" ,gstreamer)
589 ("libsoup" ,libsoup)))
590 (synopsis "Media management library")
591 (description "Libdmapsharing is a library which allows programs to access,
592 share and control the playback of media content using DMAP (DAAP, DPAP & DACP).
593 It is written in C using GObject and libsoup.")
594 (home-page "https://launchpad.net/gtx")
595 (license license:lgpl2.1+)))
596
597 (define-public gtx
598 (package
599 (name "gtx")
600 (version "0.2.2")
601 (source
602 (origin
603 (method url-fetch)
604 (uri
605 (string-append "https://launchpad.net/gtx/trunk/"
606 version "/+download/gtx-" version ".tar.gz"))
607 (sha256
608 (base32 "0i4zvn5v4rf0cw3fxylk6j2pyy5lkrswdiw8jdxkys0ph0nan33n"))))
609 (build-system glib-or-gtk-build-system)
610 (outputs '("out" "doc"))
611 (arguments
612 `(#:configure-flags
613 (list
614 "--disable-static"
615 "--enable-gtk-doc"
616 (string-append "--with-html-dir="
617 (assoc-ref %outputs "doc")
618 "/share/gtk-doc/html"))))
619 (native-inputs
620 `(("gobject-introspection" ,gobject-introspection)
621 ("gtk-doc" ,gtk-doc)
622 ("pkg-config" ,pkg-config)))
623 (propagated-inputs
624 `(("glib" ,glib)))
625 (synopsis "GLib Testing Framework")
626 (description "GTX is a small collection of convenience functions intended to
627 enhance the GLib testing framework. With specific emphasis on easing the pain
628 of writing test cases for asynchronous interactions.")
629 (home-page "https://launchpad.net/gtx")
630 (license license:lgpl2.1+)))
631
632 (define-public dee
633 (package
634 (name "dee")
635 (version "1.2.7")
636 (source
637 (origin
638 (method url-fetch)
639 (uri
640 (string-append "https://launchpad.net/dee/1.0/"
641 version "/+download/dee-" version ".tar.gz"))
642 (sha256
643 (base32 "12mzffk0lyd566y46x57jlvb9af152b4dqpasr40zal4wrn37w0v"))
644 (patches
645 (search-patches "dee-vapi.patch"))))
646 (build-system glib-or-gtk-build-system)
647 (outputs '("out" "doc"))
648 (arguments
649 `(#:configure-flags
650 (list
651 "--disable-maintainer-flags"
652 (string-append "--with-pygi-overrides-dir="
653 (assoc-ref %outputs "out")
654 "/lib/python"
655 ,(version-major+minor
656 (package-version python))
657 "/site-packages/gi/overrides")
658 (string-append "--with-html-dir="
659 (assoc-ref %outputs "doc")
660 "/share/gtk-doc/html"))
661 #:phases
662 (modify-phases %standard-phases
663 (add-after 'unpack 'patch-docbook-xml
664 (lambda* (#:key inputs #:allow-other-keys)
665 (with-directory-excursion "doc/reference/dee-1.0"
666 (substitute* "dee-1.0-docs.sgml"
667 (("http://www.oasis-open.org/docbook/xml/4.3/")
668 (string-append (assoc-ref inputs "docbook-xml")
669 "/xml/dtd/docbook/"))))
670 #t))
671 (add-after 'patch-docbook-xml 'disable-failing-tests
672 (lambda _
673 (substitute* "tests/test-icu.c"
674 (("g_test_add \\(DOMAIN\"/Default/AsciiFolder\", Fixture, 0,")
675 "")
676 (("setup, test_ascii_folder, teardown\\);")
677 ""))
678 #t))
679 (add-before 'check 'pre-check
680 (lambda _
681 ;; Tests require a running dbus-daemon.
682 (system "dbus-daemon &")
683 ;; For missing '/etc/machine-id'.
684 (setenv "DBUS_FATAL_WARNINGS" "0")
685 #t)))))
686 (native-inputs
687 `(("dbus" ,dbus)
688 ("dbus-test-runner" ,dbus-test-runner)
689 ("docbook-xml" ,docbook-xml-4.3)
690 ("gobject-introspection" ,gobject-introspection)
691 ("gtk-doc" ,gtk-doc)
692 ;; Would only be required by configure flag "--enable-extended-tests".
693 ;("gtx" ,gtx)
694 ("pkg-config" ,pkg-config)
695 ("pygobject" ,python-pygobject)
696 ("python" ,python-wrapper)
697 ("vala" ,vala)))
698 (inputs
699 `(("icu" ,icu4c)))
700 (propagated-inputs
701 `(("glib" ,glib)))
702 (synopsis "Model to synchronize multiple instances over DBus")
703 (description "Dee is a library that uses DBus to provide objects allowing
704 you to create Model-View-Controller type programs across DBus. It also consists
705 of utility objects which extend DBus allowing for peer-to-peer discoverability
706 of known objects without needing a central registrar.")
707 (home-page "https://launchpad.net/dee")
708 (license
709 ;; Dual-licensed
710 (list
711 license:lgpl3+
712 license:gpl3+))))
713
714 (define-public zeitgeist
715 (package
716 (name "zeitgeist")
717 (version "1.0.3")
718 (source
719 (origin
720 (method git-fetch)
721 (uri
722 (git-reference
723 (url "https://gitlab.freedesktop.org/zeitgeist/zeitgeist.git")
724 (commit
725 (string-append "v" version))))
726 (file-name
727 (git-file-name name version))
728 (sha256
729 (base32 "0y6fyzxl5np4yskcxibd0p03h619w9ir907nhf40h02y0pk1kgkp"))))
730 (build-system glib-or-gtk-build-system)
731 (arguments
732 `(#:configure-flags
733 (list
734 "--enable-explain-queries"
735 "--enable-fts"
736 "--enable-docs")
737 #:phases
738 (modify-phases %standard-phases
739 (add-after 'unpack 'patch-docbook-xml
740 (lambda* (#:key inputs #:allow-other-keys)
741 (with-directory-excursion "doc/libzeitgeist"
742 (substitute* "zeitgeist-gtkdoc-index.sgml"
743 (("http://www.oasis-open.org/docbook/xml/4.3/")
744 (string-append (assoc-ref inputs "docbook-xml")
745 "/xml/dtd/docbook/"))))
746 #t))
747 (add-after 'patch-docbook-xml 'disable-failing-tests
748 (lambda _
749 (substitute* "test/direct/Makefile.am"
750 ((" log-test ")
751 ""))
752 (substitute* "test/c/Makefile.am"
753 ((" test-log ")
754 ""))
755 #t))
756 (add-before 'bootstrap 'remove-autogen-script
757 (lambda _
758 ;; To honor `autoreconf -vif` by build-system.
759 (delete-file "autogen.sh")
760 #t)))))
761 (native-inputs
762 `(("autoconf" ,autoconf)
763 ("automake" ,automake)
764 ("docbook-xml" ,docbook-xml-4.3)
765 ("gettext" ,gettext-minimal)
766 ("gobject-introspection" ,gobject-introspection)
767 ("gtk-doc" ,gtk-doc)
768 ("libtool" ,libtool)
769 ("pkg-config" ,pkg-config)
770 ("vala" ,vala)
771 ("xorg-server-for-tests" ,xorg-server-for-tests)))
772 (inputs
773 `(("dee-icu" ,dee)
774 ("gtk+" ,gtk+)
775 ("json-glib" ,json-glib)
776 ("sqlite" ,sqlite)
777 ("telepathy-glib" ,telepathy-glib)
778 ("python" ,python-wrapper)
779 ("python-rdflib" ,python-rdflib)
780 ("xapian-config" ,xapian)))
781 (propagated-inputs
782 `(("glib" ,glib)))
783 (synopsis "Desktop Activity Logging")
784 (description "Zeitgeist is a service which logs the users’s activities and
785 events, anywhere from files opened to websites visited and conversations. It
786 makes this information readily available for other applications to use. It is
787 able to establish relationships between items based on similarity and usage
788 patterns.")
789 (home-page "https://zeitgeist.freedesktop.org/")
790 (license
791 ;; Dual-licensed
792 (list
793 license:lgpl2.1+
794 license:gpl2+))))
795
796 (define-public gnome-photos
797 (package
798 (name "gnome-photos")
799 (version "3.34.2")
800 (source
801 (origin
802 (method url-fetch)
803 (uri
804 (string-append "mirror://gnome/sources/" name "/"
805 (version-major+minor version) "/"
806 name "-" version ".tar.xz"))
807 (sha256
808 (base32
809 "06ml5sf8xhpan410msqz085hmfc7082d368pb82yq646y9pcfn9w"))))
810 (build-system meson-build-system)
811 (arguments
812 `(#:glib-or-gtk? #t
813 #:configure-flags
814 (list "-Ddogtail=false" ; Not available
815 ;; Required for RUNPATH validation.
816 (string-append "-Dc_link_args=-Wl,-rpath="
817 (assoc-ref %outputs "out") "/lib/gnome-photos"))
818 #:phases
819 (modify-phases %standard-phases
820 (add-after 'install 'wrap-gnome-photos
821 (lambda* (#:key inputs outputs #:allow-other-keys)
822 (let*
823 ((out (assoc-ref outputs "out")))
824 (wrap-program (string-append out "/bin/gnome-photos")
825 `("GRL_PLUGIN_PATH" = (,(getenv "GRL_PLUGIN_PATH")))))
826 #t)))))
827 (native-inputs
828 `(("dbus" ,dbus)
829 ("desktop-file-utils" ,desktop-file-utils)
830 ("gettext" ,gettext-minimal)
831 ("git" ,git-minimal)
832 ("glib:bin" ,glib "bin")
833 ("gobject-introspection" ,gobject-introspection)
834 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
835 ("gtk+:bin" ,gtk+ "bin")
836 ("itstool" ,itstool)
837 ("pkg-config" ,pkg-config)))
838 (inputs
839 `(("babl" ,babl)
840 ("cairo" ,cairo)
841 ("gdk-pixbuf" ,gdk-pixbuf+svg)
842 ("gegl" ,gegl)
843 ("geocode-glib" ,geocode-glib)
844 ("gexiv2" ,gexiv2)
845 ("gnome-online-accounts" ,gnome-online-accounts)
846 ("gnome-online-miners" ,gnome-online-miners)
847 ("grilo" ,grilo)
848 ("grilo-plugins" ,grilo-plugins)
849 ("gtk+" ,gtk+)
850 ("libdazzle" ,libdazzle)
851 ("libgdata" ,libgdata)
852 ("libgfbgraph" ,gfbgraph)
853 ("libjpeg" ,libjpeg-turbo)
854 ("libpng" ,libpng)
855 ("librest" ,rest)
856 ("pygobject" ,python-pygobject)
857 ("tracker" ,tracker)
858 ("tracker-miners" ,tracker-miners)))
859 (synopsis "Access, organize and share your photos on GNOME desktop")
860 (description "GNOME Photos is a simple and elegant replacement for using a
861 file manager to deal with photos. Enhance, crop and edit in a snap. Seamless
862 cloud integration is offered through GNOME Online Accounts.")
863 (home-page "https://wiki.gnome.org/Apps/Photos")
864 (license license:gpl3+)))
865
866 (define-public gnome-music
867 (package
868 (name "gnome-music")
869 (version "3.34.5")
870 (source
871 (origin
872 (method url-fetch)
873 (uri
874 (string-append "mirror://gnome/sources/" name "/"
875 (version-major+minor version) "/"
876 name "-" version ".tar.xz"))
877 (sha256
878 (base32
879 "1r5sfw5cbd6qqh27lzhblazir0bfi3k7nqppw66qw990isqm5psy"))))
880 (build-system meson-build-system)
881 (arguments
882 `(#:glib-or-gtk? #t
883 #:phases
884 (modify-phases %standard-phases
885 (add-after 'install 'wrap-gnome-music
886 (lambda* (#:key inputs outputs #:allow-other-keys)
887 (let*
888 ((out (assoc-ref outputs "out"))
889 (pylib (string-append out "/lib/python"
890 ,(version-major+minor
891 (package-version python))
892 "/site-packages")))
893 (wrap-program (string-append out "/bin/gnome-music")
894 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))
895 `("GST_PLUGIN_SYSTEM_PATH" = (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
896 `("GRL_PLUGIN_PATH" = (,(getenv "GRL_PLUGIN_PATH")))
897 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))))
898 #t)))))
899 (native-inputs
900 `(("desktop-file-utils" ,desktop-file-utils)
901 ("gettext" ,gettext-minimal)
902 ("glib:bin" ,glib "bin")
903 ("gobject-introspection" ,gobject-introspection)
904 ("gtk+:bin" ,gtk+ "bin")
905 ("itstools" ,itstool)
906 ("pkg-config" ,pkg-config)))
907 (inputs
908 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
909 ("grilo" ,grilo)
910 ("grilo-plugins" ,grilo-plugins)
911 ("gst-plugins-base" ,gst-plugins-base)
912 ("gstreamer" ,gstreamer)
913 ("gvfs" ,gvfs)
914 ("libdazzle" ,libdazzle)
915 ("libmediaart" ,libmediaart)
916 ("libsoup" ,libsoup)
917 ("pycairo" ,python-pycairo)
918 ("pygobject" ,python-pygobject)
919 ("tracker" ,tracker)
920 ("tracker-miners" ,tracker-miners)))
921 (synopsis "Simple music player for GNOME desktop")
922 (description "GNOME Music is the new GNOME music playing application that
923 aims to combine an elegant and immersive browsing experience with simple
924 and straightforward controls.")
925 (home-page "https://wiki.gnome.org/Apps/Music")
926 (license license:gpl2+)))
927
928 (define-public portablexdr
929 (package
930 (name "portablexdr")
931 (version "4.9.1")
932 (source
933 (origin
934 (method url-fetch)
935 (uri
936 (string-append "https://people.redhat.com/~rjones/" name "/files/"
937 name "-" version ".tar.gz"))
938 (sha256
939 (base32
940 "0b77ipvvi520nv7rr6jb1c3xryhc3m2mywhby7m48kfgag8vvx2w"))))
941 (build-system gnu-build-system)
942 (synopsis "External Data Representation Library")
943 (description "PortableXDR is an implementation of External Data
944 Representation (XDR) Library. It is a standard data serialization format, for
945 uses such as computer network protocols. It allows data to be transferred
946 between different kinds of computer systems.")
947 (home-page "https://people.redhat.com/~rjones/portablexdr/")
948 (license
949 (list
950 license:gpl2+
951 license:lgpl2.1+))))
952
953 (define-public tepl
954 (package
955 (name "tepl")
956 (version "4.4.0")
957 (source
958 (origin
959 (method url-fetch)
960 (uri
961 (string-append "mirror://gnome/sources/" name "/"
962 (version-major+minor version) "/"
963 name "-" version ".tar.xz"))
964 (sha256
965 (base32
966 "0mm2z849hnni7597an05mrv0dckrxjngpf2xfa0g5s17i8x6gxp6"))))
967 (build-system glib-or-gtk-build-system)
968 (arguments
969 `(#:tests? #f)) ; FIX-ME: Requires gvfs
970 (native-inputs
971 `(("gobject-introspection" ,gobject-introspection)
972 ("pkg-config" ,pkg-config)))
973 (inputs
974 `(("amtk" ,amtk)
975 ("glib" ,glib)
976 ("gtk+" ,gtk+)
977 ("gtksourceview" ,gtksourceview)
978 ("libxml2" ,libxml2)
979 ("uchardet" ,uchardet)))
980 (synopsis "Text editor product line")
981 (description "Tepl is a library that eases the development of
982 GtkSourceView-based text editors and IDEs.")
983 (home-page "https://wiki.gnome.org/Projects/Tepl")
984 (license license:lgpl2.1+)))
985
986 (define-public krb5-auth-dialog
987 (package
988 (name "krb5-auth-dialog")
989 (version "3.26.1")
990 (source
991 (origin
992 (method url-fetch)
993 (uri
994 (string-append "mirror://gnome/sources/" name "/"
995 (version-major+minor version) "/"
996 name "-" version ".tar.xz"))
997 (sha256
998 (base32
999 "1w91gsvmifqhiam3xqf88i5rk2w6qadjalmbvvamjdc37j0vdc6x"))))
1000 (build-system glib-or-gtk-build-system)
1001 (native-inputs
1002 `(("intltool" ,intltool)
1003 ("itstool" ,itstool)
1004 ("libxml2" ,libxml2)
1005 ("pkg-config" ,pkg-config)
1006 ("python-wrapper" ,python-wrapper)))
1007 (inputs
1008 `(("glib" ,glib)
1009 ("gtk+" ,gtk+)
1010 ("libnotify" ,libnotify)
1011 ("mit-krb5" ,mit-krb5)
1012 ("network-manager" ,network-manager)))
1013 (synopsis "Popup dialogs for Kerberos 5")
1014 (description "krb5-auth-dialog is a simple dialog that monitors Kerberos
1015 tickets, and pops up a dialog when they are about to expire.")
1016 (home-page "https://gitlab.gnome.org/GNOME/krb5-auth-dialog")
1017 (license license:gpl2+)))
1018
1019 (define-public notification-daemon
1020 (package
1021 (name "notification-daemon")
1022 (version "3.20.0")
1023 (source
1024 (origin
1025 (method url-fetch)
1026 (uri
1027 (string-append "mirror://gnome/sources/" name "/"
1028 (version-major+minor version) "/"
1029 name "-" version ".tar.xz"))
1030 (sha256
1031 (base32
1032 "1rgchqi4j2ll7d6a7lgy7id0w9rrkwkgic1096fbm2zx6n7pc4yx"))))
1033 (build-system glib-or-gtk-build-system)
1034 (native-inputs
1035 `(("intltool" ,intltool)
1036 ("pkg-config" ,pkg-config)))
1037 (inputs
1038 `(("glib" ,glib)
1039 ("gtk+" ,gtk+)
1040 ("x11" ,libx11)))
1041 (synopsis "Notification Daemon for GNOME Desktop")
1042 (description "Notification-Daemon is the server implementation of the
1043 freedesktop.org desktop notification specification.")
1044 (home-page "https://wiki.gnome.org/Projects/NotificationDaemon")
1045 (license license:gpl2+)))
1046
1047 (define-public mm-common
1048 (package
1049 (name "mm-common")
1050 (version "1.0.2")
1051 (source (origin
1052 (method url-fetch)
1053 (uri (string-append "mirror://gnome/sources/mm-common/"
1054 (version-major+minor version) "/"
1055 "mm-common-" version ".tar.xz"))
1056 (sha256
1057 (base32
1058 "07b4s5ckcz9q5gwx8vchim19mhfgl8wysqwi30pndks3m4zrzad2"))))
1059 (build-system meson-build-system)
1060 (arguments
1061 `(#:phases
1062 (modify-phases %standard-phases
1063 (add-after 'unpack 'patch
1064 (lambda* (#:key inputs #:allow-other-keys)
1065 (substitute* "util/mm-common-prepare.in"
1066 (("ln") (string-append (assoc-ref inputs "coreutils")
1067 "/bin/ln"))
1068 (("cp") (string-append (assoc-ref inputs "coreutils")
1069 "/bin/cp"))
1070 (("sed") (string-append (assoc-ref inputs "sed")
1071 "/bin/sed"))
1072 (("cat") (string-append (assoc-ref inputs "coreutils")
1073 "/bin/cat")))
1074 #t)))))
1075 (native-inputs
1076 `(("coreutils" ,coreutils)
1077 ("gettext" ,gettext-minimal)
1078 ("pkg-config" ,pkg-config)
1079 ("sed" ,sed)))
1080 (inputs
1081 `(("python" ,python)))
1082 (synopsis "Module of GNOME C++ bindings")
1083 (description "The mm-common module provides the build infrastructure
1084 and utilities shared among the GNOME C++ binding libraries. Release
1085 archives of mm-common include the Doxygen tag file for the GNU C++
1086 Library reference documentation.")
1087 (home-page "https://gitlab.gnome.org/GNOME/mm-common")
1088 (license license:gpl2+)))
1089
1090 (define-public phodav
1091 (package
1092 (name "phodav")
1093 (version "2.5")
1094 (source (origin
1095 (method url-fetch)
1096 (uri (string-append "mirror://gnome/sources/" name "/"
1097 (version-major+minor version) "/"
1098 name "-" version ".tar.xz"))
1099 (sha256
1100 (base32
1101 "045rdzf8isqmzix12lkz6z073b5qvcqq6ad028advm5gf36skw3i"))))
1102 (build-system meson-build-system)
1103 (arguments
1104 `(#:phases
1105 (modify-phases %standard-phases
1106 (add-before 'check 'start-virtual-dir-server
1107 ;; The same server when started by tests/virtual-dir returns an
1108 ;; unexpected status (4 instead of 200) and fails a test. It is
1109 ;; unclear why starting it manually here makes it pass.
1110 (lambda _
1111 (system "tests/virtual-dir-server &")
1112 #t)))))
1113 (native-inputs
1114 `(("docbook-xml" ,docbook-xml-4.3)
1115 ("gettext" ,gettext-minimal)
1116 ("glib:bin" ,glib "bin")
1117 ("gtk-doc" ,gtk-doc)
1118 ("pkg-config" ,pkg-config)))
1119 (inputs
1120 `(("avahi" ,avahi)
1121 ("libgudev" ,libgudev)
1122 ("libsoup" ,libsoup)))
1123 (synopsis "WebDav server implementation using libsoup")
1124 (description "PhoDav was initially developed as a file-sharing mechanism for Spice,
1125 but it is generic enough to be reused in other projects,
1126 in particular in the GNOME desktop.")
1127 (home-page "https://wiki.gnome.org/phodav")
1128 (license license:lgpl2.1+)))
1129
1130 (define-public gnome-color-manager
1131 (package
1132 (name "gnome-color-manager")
1133 (version "3.32.0")
1134 (source (origin
1135 (method url-fetch)
1136 (uri (string-append "mirror://gnome/sources/" name "/"
1137 (version-major+minor version) "/"
1138 name "-" version ".tar.xz"))
1139 (sha256
1140 (base32
1141 "1vpxa2zjz3lkq9ldjg0fl65db9s6b4kcs8nyaqfz3jygma7ifg3w"))))
1142 (build-system meson-build-system)
1143 (arguments
1144 `(#:glib-or-gtk? #t
1145 #:phases
1146 (modify-phases %standard-phases
1147 (add-before
1148 'check 'pre-check
1149 (lambda _
1150 ;; Tests require a running X server.
1151 (system "Xvfb :1 &")
1152 (setenv "DISPLAY" ":1")
1153 #t)))))
1154 (native-inputs
1155 `(("desktop-file-utils" ,desktop-file-utils)
1156 ("gettext" ,gettext-minimal)
1157 ("glib:bin" ,glib "bin")
1158 ("gtk+:bin" ,gtk+ "bin")
1159 ("itstool" ,itstool)
1160 ("pkg-config" ,pkg-config)
1161 ("xorg-server" ,xorg-server-for-tests)))
1162 (inputs
1163 `(("adwaita-icon-theme" ,adwaita-icon-theme)
1164 ("appstream-glib" ,appstream-glib)
1165 ("colord-gtk" ,colord-gtk)
1166 ("exiv2" ,exiv2)
1167 ("gnome-desktop" ,gnome-desktop)
1168 ("libcanberra" ,libcanberra)
1169 ("libexif" ,libexif)
1170 ("libtiff" ,libtiff)
1171 ("libxrandr" ,libxrandr)
1172 ("libxtst" ,libxtst)
1173 ("libxxf86vm" ,libxxf86vm)
1174 ("vte" ,vte)
1175 ("xorgproto" ,xorgproto)))
1176 (synopsis "Color profile manager for the GNOME desktop")
1177 (description "GNOME Color Manager is a session framework that makes
1178 it easy to manage, install and generate color profiles
1179 in the GNOME desktop.")
1180 (home-page "https://gitlab.gnome.org/GNOME/gnome-color-manager")
1181 (license license:gpl2+)))
1182
1183 (define-public gnome-online-miners
1184 (package
1185 (name "gnome-online-miners")
1186 (version "3.34.0")
1187 (source (origin
1188 (method url-fetch)
1189 (uri (string-append "mirror://gnome/sources/" name "/"
1190 (version-major+minor version) "/"
1191 name "-" version ".tar.xz"))
1192 (sha256
1193 (base32
1194 "1n2jz9i8a42zwxx5h8j2gdy6q1vyydh4vl00r0al7w8jzdh24p44"))))
1195 (build-system glib-or-gtk-build-system)
1196 (native-inputs
1197 `(("gettext" ,gettext-minimal)
1198 ("glib:bin" ,glib "bin")
1199 ("gobject-introspection" ,gobject-introspection)
1200 ("gtk+:bin" ,gtk+ "bin")
1201 ("pkg-config" ,pkg-config)))
1202 (inputs
1203 `(("gnome-online-accounts" ,gnome-online-accounts)
1204 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1205 ("grilo" ,grilo)
1206 ("libgdata" ,libgdata)
1207 ("libgfbgraph" ,gfbgraph)
1208 ("libzapojit" ,libzapojit)
1209 ("rest" ,rest)
1210 ("tracker" ,tracker)))
1211 (synopsis "Web Crawlers for GNOME")
1212 (description "GNOME Online Miners provides a set of crawlers that
1213 go through your online content and index them locally in Tracker.
1214 It has miners for Facebook, Flickr, Google, ownCloud and SkyDrive.")
1215 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineMiners")
1216 (license license:gpl2+)))
1217
1218 (define-public gssdp
1219 (package
1220 (name "gssdp")
1221 (version "1.2.3")
1222 (source (origin
1223 (method url-fetch)
1224 (uri (string-append "mirror://gnome/sources/" name "/"
1225 (version-major+minor version) "/"
1226 name "-" version ".tar.xz"))
1227 (sha256
1228 (base32
1229 "1s57i8a8wnnxnsfl27cq4503dkdlzbrhry5zpg23sfqfffvdqqx2"))))
1230 (build-system meson-build-system)
1231 (native-inputs
1232 `(("gettext" ,gettext-minimal)
1233 ("glib:bin" ,glib "bin")
1234 ("gobject-introspection" ,gobject-introspection)
1235 ("gtk-doc" ,gtk-doc)
1236 ("pkg-config" ,pkg-config)
1237 ("vala" ,vala)))
1238 (inputs
1239 `(("gtk+" ,gtk+)
1240 ("libsoup" ,libsoup)))
1241 (synopsis "GObject-based API over @acronym{SSDP, Simple Service Discovery
1242 Protocol} for GNOME")
1243 (description "This package provides a library to handle resource discovery
1244 and announcement over @acronym{SSDP, Simple Service Discovery Protocol} and
1245 a debugging tool, @command{gssdp-device-sniffer}.")
1246 (home-page "https://gitlab.gnome.org/GNOME/gssdp")
1247 (license license:lgpl2.0+)))
1248
1249 (define-public gupnp
1250 (package
1251 (name "gupnp")
1252 (version "1.2.4")
1253 (source (origin
1254 (method url-fetch)
1255 (uri (string-append "mirror://gnome/sources/" name "/"
1256 (version-major+minor version) "/"
1257 name "-" version ".tar.xz"))
1258 (sha256
1259 (base32
1260 "1ld7mrpdv9cszmfzh7i19qx4li25j3fr7x1jp38l8phzlmz3187p"))))
1261 (build-system meson-build-system)
1262 (native-inputs
1263 `(("gettext" ,gettext-minimal)
1264 ("glib:bin" ,glib "bin")
1265 ("gobject-introspection" ,gobject-introspection)
1266 ("gtk-doc" ,gtk-doc)
1267 ("pkg-config" ,pkg-config)
1268 ("vala" ,vala)))
1269 (inputs
1270 `(("gssdp" ,gssdp)
1271 ("gtk+" ,gtk+)
1272 ("libsoup" ,libsoup)))
1273 (synopsis "PnP API for GNOME")
1274 (description "This package provides GUPnP, an object-oriented framework
1275 for creating UPnP devices and control points, written in C using
1276 @code{GObject} and @code{libsoup}.")
1277 (home-page "https://gitlab.gnome.org/GNOME/gupnp")
1278 (license license:lgpl2.0+)))
1279
1280 (define-public gupnp-dlna
1281 (package
1282 (name "gupnp-dlna")
1283 (version "0.10.5")
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 "0spzd2saax7w776p5laixdam6d7smyynr9qszhbmq7f14y13cghj"))))
1292 (build-system gnu-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 ("libxml" ,libxml2)
1299 ("pkg-config" ,pkg-config)
1300 ("vala" ,vala)))
1301 (inputs
1302 `(("gstreamer" ,gstreamer)
1303 ("gupnp" ,gupnp)))
1304 (propagated-inputs
1305 `(("gst-plugins-base" ,gst-plugins-base)
1306 ("gst-plugins-good" ,gst-plugins-good)))
1307 (synopsis "GUPnP DLNA for GNOME")
1308 (description "This package provides a small utility library to
1309 support DLNA-related tasks such as media profile guessing, transcoding to a
1310 given profile, etc. DLNA is a subset of UPnP A/V.")
1311 (home-page "https://gitlab.gnome.org/GNOME/gupnp-dlna")
1312 (license license:lgpl2.0+)))
1313
1314 (define-public gupnp-av
1315 (package
1316 (name "gupnp-av")
1317 (version "0.12.11")
1318 (source (origin
1319 (method url-fetch)
1320 (uri (string-append "mirror://gnome/sources/" name "/"
1321 (version-major+minor version) "/"
1322 name "-" version ".tar.xz"))
1323 (sha256
1324 (base32
1325 "1p3grslwqm9bc8rmpn4l48d7v9s84nina4r9xbd932dbj8acz7b8"))))
1326 (build-system gnu-build-system)
1327 (native-inputs
1328 `(("gettext" ,gettext-minimal)
1329 ("glib:bin" ,glib "bin")
1330 ("gobject-introspection" ,gobject-introspection)
1331 ("gtk-doc" ,gtk-doc)
1332 ("libxml" ,libxml2)
1333 ("pkg-config" ,pkg-config)))
1334 (inputs
1335 `(("gtk+" ,gtk+)
1336 ("gupnp" ,gupnp)))
1337 (synopsis "GUPnP A/V for GNOME")
1338 (description "This package provides a small library for handling
1339 and implementation of UPnP A/V profiles.")
1340 (home-page "https://gitlab.gnome.org/GNOME/gupnp-av")
1341 (license license:lgpl2.0+)))
1342
1343 (define-public libmediaart
1344 (package
1345 (name "libmediaart")
1346 (version "1.9.4")
1347 (source (origin
1348 (method url-fetch)
1349 (uri (string-append "mirror://gnome/sources/" name "/"
1350 (version-major+minor version) "/"
1351 name "-" version ".tar.xz"))
1352 (sha256
1353 (base32
1354 "0gc10imyabk57ar54m0qzms0x9dnmkymhkzyk8w1aj3y4lby0yx5"))))
1355 (build-system gnu-build-system)
1356 (native-inputs
1357 `(("glib:bin" ,glib "bin")
1358 ("pkg-config" ,pkg-config)))
1359 (inputs
1360 `(("gdk-pixbuf" ,gdk-pixbuf)
1361 ("gettext" ,gettext-minimal)
1362 ("gobject-introspection" ,gobject-introspection)
1363 ("gtk+:doc" ,gtk+ "doc")
1364 ("vala" ,vala)))
1365 (synopsis "Media art library for the GNOME desktop")
1366 (description
1367 "The libmediaart library is the foundation for media art caching,
1368 extraction, and lookup for applications on the desktop.")
1369 (home-page "https://gitlab.gnome.org/GNOME/libmediaart")
1370 (license license:lgpl2.1+)))
1371
1372 (define-public gnome-initial-setup
1373 (package
1374 (name "gnome-initial-setup")
1375 (version "3.32.1")
1376 (source (origin
1377 (method url-fetch)
1378 (uri (string-append "mirror://gnome/sources/gnome-initial-setup/"
1379 (version-major+minor version)
1380 "/gnome-initial-setup-" version ".tar.xz"))
1381 (sha256
1382 (base32
1383 "1gwhp7dalyc8zsb2pa66cmpdrj2d6drbq5p331sq6zp8ds10k9ry"))))
1384 (build-system meson-build-system)
1385 (arguments
1386 '(#:configure-flags '(;; Enable camera support for user selfie.
1387 "-Dcheese=auto"
1388 "-Dsystemd=false")
1389 #:phases (modify-phases %standard-phases
1390 (add-after 'unpack 'set-gkbd-file-name
1391 (lambda* (#:key inputs #:allow-other-keys)
1392 ;; Allow the "Preview" button in the keyboard layout
1393 ;; selection dialog to display the layout.
1394 (let ((libgnomekbd (assoc-ref inputs "libgnomekbd")))
1395 (substitute* "gnome-initial-setup/pages/keyboard/cc-input-chooser.c"
1396 (("\"gkbd-keyboard-display")
1397 (string-append "\"" libgnomekbd
1398 "/bin/gkbd-keyboard-display")))
1399 #t))))))
1400 (native-inputs
1401 `(("gettext" ,gettext-minimal)
1402 ("glib:bin" ,glib "bin")
1403 ("gobject-introspection" ,gobject-introspection)
1404 ("gtk+:bin" ,gtk+ "bin")
1405 ("pkg-config" ,pkg-config)))
1406 (inputs
1407 `(("accountsservice" ,accountsservice)
1408 ;("adwaita-icon-theme" ,adwaita-icon-theme)
1409 ("gdm" ,gdm)
1410 ("geoclue" ,geoclue)
1411 ("gnome-desktop" ,gnome-desktop)
1412 ("gnome-getting-started-docs" ,gnome-getting-started-docs)
1413 ("gnome-online-accounts" ,gnome-online-accounts)
1414 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1415 ("gstreamer" ,gstreamer)
1416 ("ibus" ,ibus)
1417 ("json-glib" ,json-glib)
1418 ("krb5" ,mit-krb5)
1419 ("libgweather" ,libgweather)
1420 ("libnma" ,libnma)
1421 ("libsecret" ,libsecret)
1422 ("network-manager" ,network-manager)
1423 ("packagekit" ,packagekit)
1424 ("polkit" ,polkit)
1425 ("pwquality" ,libpwquality)
1426 ("rest" ,rest)
1427 ("upower" ,upower)
1428 ("webkitgtk" ,webkitgtk)
1429 ("libgnomekbd" ,libgnomekbd)))
1430 (synopsis "Initial setup wizard for GNOME desktop")
1431 (description "This package provides a set-up wizard when a
1432 user logs into GNOME for the first time. It typically provides a
1433 tour of all gnome components and allows the user to set them up.")
1434 (home-page "https://gitlab.gnome.org/GNOME/gnome-initial-setup")
1435 (license license:gpl2)))
1436
1437 (define-public gnome-user-share
1438 (package
1439 (name "gnome-user-share")
1440 (version "3.33.1")
1441 (source (origin
1442 (method url-fetch)
1443 (uri (string-append "mirror://gnome/sources/" name "/"
1444 (version-major+minor version) "/"
1445 name "-" version ".tar.xz"))
1446 (sha256
1447 (base32
1448 "0lf790pyamdyj7180ils8vizjl8brxcg7jsm1iavfp9ay4wa8mz7"))))
1449 (build-system meson-build-system)
1450 (arguments
1451 `(#:glib-or-gtk? #t
1452 #:configure-flags
1453 `("-Dsystemd=false"
1454 ;; Enable nautilus extension for file sharing.
1455 "-Dnautilus_extension=true")))
1456 (native-inputs
1457 `(("gettext" ,gettext-minimal)
1458 ("glib:bin" ,glib "bin")
1459 ("gobject-introspection" ,gobject-introspection)
1460 ("gtk+:bin" ,gtk+ "bin")
1461 ("pkg-config" ,pkg-config)
1462 ("yelp-tools" ,yelp-tools)))
1463 (inputs
1464 `(("glib" ,glib)
1465 ("gnome-bluetooth" ,gnome-bluetooth)
1466 ("gtk+" ,gtk+)
1467 ("libcanberra" ,libcanberra)
1468 ("libnotify" ,libnotify)
1469 ("nautilus" ,nautilus))) ; For nautilus extension.
1470 (synopsis "File sharing for GNOME desktop")
1471 (description "GNOME User Share is a small package that binds together
1472 various free software projects to bring easy to use user-level file
1473 sharing to the masses.")
1474 (home-page "https://gitlab.gnome.org/GNOME/gnome-user-share")
1475 (license license:gpl2+)))
1476
1477 (define-public sushi
1478 (package
1479 (name "sushi")
1480 (version "3.32.1")
1481 (source (origin
1482 (method url-fetch)
1483 (uri (string-append "mirror://gnome/sources/" name "/"
1484 (version-major+minor version) "/"
1485 name "-" version ".tar.xz"))
1486 (sha256
1487 (base32
1488 "02idvqjk76lii9xyg3b1yz4rw721709bdm5j8ikjym6amcghl0aj"))))
1489 (build-system meson-build-system)
1490 (arguments
1491 `(#:glib-or-gtk? #t
1492 #:phases
1493 (modify-phases %standard-phases
1494 (add-after 'glib-or-gtk-wrap 'wrap-typelib
1495 (lambda* (#:key outputs #:allow-other-keys)
1496 (let ((prog (string-append (assoc-ref outputs "out")
1497 "/bin/sushi")))
1498 ;; Put existing typelibs before sushi's deps, so as to correctly
1499 ;; infer gdk-pixbuf
1500 (wrap-program prog
1501 `("GI_TYPELIB_PATH" suffix (,(getenv "GI_TYPELIB_PATH"))))
1502 #t))))))
1503 (native-inputs
1504 `(("glib:bin" ,glib "bin")
1505 ("gettext" ,gettext-minimal)
1506 ("gobject-introspection" ,gobject-introspection)
1507 ("pkg-config" ,pkg-config)))
1508 (inputs
1509 `(("clutter" ,clutter)
1510 ("clutter-gst" ,clutter-gst)
1511 ("clutter-gtk" ,clutter-gtk)
1512 ("evince" ,evince) ; For file previewing.
1513 ("freetype" ,freetype)
1514 ("gdk-pixbuf" ,gdk-pixbuf)
1515 ("gjs" ,gjs)
1516 ("gst-plugins-base" ,gst-plugins-base)
1517 ("gstreamer" ,gstreamer)
1518 ("gtksourceview" ,gtksourceview-3)
1519 ("harfbuzz" ,harfbuzz)
1520 ("libepoxy" ,libepoxy)
1521 ("libmusicbrainz" ,libmusicbrainz)
1522 ("libxml2" ,libxml2)
1523 ("neon" ,neon)
1524 ("webkitgtk" ,webkitgtk)))
1525 (synopsis "File previewer for the GNOME desktop")
1526 (description "Sushi is a DBus-activated service that allows applications to
1527 preview files on the GNOME desktop.")
1528 (home-page "https://gitlab.gnome.org/GNOME/sushi")
1529 (license license:gpl2+)))
1530
1531 (define-public rygel
1532 (package
1533 (name "rygel")
1534 (version "0.38.3")
1535 (source (origin
1536 (method url-fetch)
1537 (uri (string-append "mirror://gnome/sources/" name "/"
1538 (version-major+minor version) "/"
1539 name "-" version ".tar.xz"))
1540 (sha256
1541 (base32
1542 "003xficqb08r1dgid20i7cn889lbfwrglpx78rjd5nkvgxbimhh8"))))
1543 (build-system gnu-build-system)
1544 (native-inputs
1545 `(("gettext" ,gettext-minimal)
1546 ("gobject-introspection" ,gobject-introspection)
1547 ("gtk-doc" ,gtk-doc)
1548 ("pkg-config" ,pkg-config)
1549 ("vala" ,vala)))
1550 (inputs
1551 `(("gdk-pixbuf" ,gdk-pixbuf)
1552 ("gssdp" ,gssdp)
1553 ("gstreamer" ,gstreamer)
1554 ("gst-plugins-base" ,gst-plugins-base)
1555 ("gtk+" ,gtk+)
1556 ("gupnp" ,gupnp)
1557 ("gupnp-av" ,gupnp-av)
1558 ("gupnp-dlna" ,gupnp-dlna)
1559 ("libgee" ,libgee)
1560 ("libmediaart" ,libmediaart)
1561 ("libsoup" ,libsoup)
1562 ("libxslt" ,libxslt)
1563 ("libunistring" ,libunistring)
1564 ("tracker" ,tracker)))
1565 (synopsis "Share audio, video, and pictures with other devices")
1566 (description
1567 "Rygel is a home media solution (@dfn{UPnP AV MediaServer and
1568 MediaRenderer}) for GNOME that allows you to easily share audio, video, and
1569 pictures, and to control a media player on your home network.
1570
1571 Rygel achieves interoperability with other devices by trying to conform to the
1572 strict requirements of DLNA and by converting media on-the-fly to formats that
1573 client devices can handle.")
1574 (home-page "https://wiki.gnome.org/Projects/Rygel")
1575 (license (list
1576 ;; For logo (data/icons/*).
1577 license:cc-by-sa3.0
1578 ;; For all others.
1579 license:lgpl2.1+))))
1580
1581 (define-public libnma
1582 (package
1583 (name "libnma")
1584 (version "1.8.28")
1585 (source (origin
1586 (method url-fetch)
1587 (uri (string-append "mirror://gnome/sources/" name "/"
1588 (version-major+minor version) "/"
1589 name "-" version ".tar.xz"))
1590 (sha256
1591 (base32
1592 "09mp6k0hfam1vyyv9kcd8j4gb2r58i05ipx2nswb58ris599bxja"))))
1593 (build-system meson-build-system)
1594 (arguments
1595 `(#:phases
1596 (modify-phases %standard-phases
1597 (add-after 'unpack 'patch-docbook-xml
1598 (lambda* (#:key inputs #:allow-other-keys)
1599 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
1600 "/xml/dtd/docbook")))
1601 (substitute* "libnma-docs.xml"
1602 (("http://.*/docbookx\\.dtd")
1603 (string-append xmldoc "/docbookx.dtd")))
1604 #t))))))
1605 (native-inputs
1606 `(("docbook-xml" ,docbook-xml-4.3)
1607 ("gettext" ,gettext-minimal)
1608 ("glib:bin" ,glib "bin")
1609 ("gtk-doc" ,gtk-doc)
1610 ("gobject-introspection" ,gobject-introspection)
1611 ("pkg-config" ,pkg-config)
1612 ("vala" ,vala)))
1613 (inputs
1614 `(("gcr" ,gcr)
1615 ("gtk+" ,gtk+)
1616 ("iso-codes" ,iso-codes)
1617 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)
1618 ("network-manager" ,network-manager)))
1619 (synopsis "Network Manager's applet library")
1620 (description "Libnma is an applet library for Network Manager. It was
1621 initially part of network-manager-applet and has now become a separate
1622 project.")
1623 (home-page "https://gitlab.gnome.org/GNOME/libnma")
1624 ;; Some files carry the "GPL-2.0+" SPDX identifier while others say
1625 ;; "LGPL-2.1+".
1626 (license license:gpl2+)))
1627
1628 (define-public gnome-menus
1629 (package
1630 (name "gnome-menus")
1631 (version "3.32.0")
1632 (source (origin
1633 (method url-fetch)
1634 (uri (string-append "mirror://gnome/sources/gnome-menus/"
1635 (version-major+minor version) "/"
1636 name "-" version ".tar.xz"))
1637 (sha256
1638 (base32
1639 "0x2blzqrapmbsbfzxjcdcpa3vkw9hq5k96h9kvjmy9kl415wcl68"))))
1640 (build-system gnu-build-system)
1641 (native-inputs
1642 `(("gettext" ,gettext-minimal)
1643 ("glib" ,glib)
1644 ("pkg-config" ,pkg-config)))
1645 (synopsis "Menu support for GNOME desktop")
1646 (description "GNOME Menus contains the libgnome-menu library, the layout
1647 configuration files for the GNOME menu, as well as a simple menu editor.")
1648 (home-page "https://gitlab.gnome.org/GNOME/gnome-menus")
1649 (license license:lgpl2.0+)))
1650
1651 (define-public deja-dup
1652 (package
1653 (name "deja-dup")
1654 (version "40.6")
1655 (source (origin
1656 (method url-fetch)
1657 (uri (string-append "https://gitlab.gnome.org/World/deja-dup/-/archive/"
1658 version "/deja-dup-" version ".tar.bz2"))
1659 (sha256
1660 (base32
1661 "0lwazh6crby5wpy9fg6zvwy4plqbhs2f98bm5lbizjdlbh88n5q0"))))
1662 (build-system meson-build-system)
1663 (arguments
1664 `(#:glib-or-gtk? #t
1665 #:configure-flags
1666 (list
1667 ;; Otherwise, the RUNPATH will lack the final path component.
1668 (string-append "-Dc_link_args=-Wl,-rpath="
1669 (assoc-ref %outputs "out") "/lib/deja-dup"))
1670 #:phases
1671 (modify-phases %standard-phases
1672 (add-after 'unpack 'patch-paths
1673 (lambda* (#:key inputs #:allow-other-keys)
1674 (let ((python (assoc-ref inputs "python")))
1675 (substitute* '("libdeja/tools/duplicity/DuplicityInstance.vala"
1676 "libdeja/tests/scripts/instance-error.test")
1677 (("/bin/rm")
1678 (which "rm")))
1679 (substitute* "libdeja/tests/runner.vala"
1680 (("/bin/sh")
1681 (which "sh")))
1682 (substitute* "libdeja/tests/scripts/instance-error.test"
1683 (("`which python3`")
1684 (string-append python "/bin/python3"))))))
1685 (add-after 'unpack 'patch-libgpg-error
1686 (lambda* (#:key inputs #:allow-other-keys)
1687 (let ((libgpg-error (assoc-ref inputs "libgpg-error")))
1688 (substitute* "meson.build"
1689 (("(gpgerror_libs = ).*" _ var)
1690 (format #f "~a '-L~a/lib -lgpg-error'\n" var libgpg-error))))
1691 #t))
1692 (add-after 'unpack 'skip-gtk-update-icon-cache
1693 ;; Don't create 'icon-theme.cache'.
1694 (lambda _
1695 (substitute* "data/post-install.sh"
1696 (("gtk-update-icon-cache") "true"))
1697 #t)))))
1698 (inputs
1699 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1700 ("duplicity" ,duplicity)
1701 ("python" ,python)
1702 ("python-pygobject" ,python-pygobject)
1703 ("gtk+" ,gtk+)
1704 ("json-glib" ,json-glib)
1705 ("libnotify" ,libnotify)
1706 ("libgpg-error" ,libgpg-error)
1707 ("libsecret" ,libsecret)
1708 ("libsoup" ,libsoup)
1709 ("packagekit" ,packagekit)))
1710 (native-inputs
1711 `(("appstream-glib" ,appstream-glib)
1712 ("desktop-file-utils" ,desktop-file-utils)
1713 ("gettext" ,gettext-minimal)
1714 ("glib" ,glib "bin") ; for glib-compile-schemas.
1715 ("gobject-introspection" ,gobject-introspection)
1716 ("itstool" ,itstool)
1717 ("pkg-config" ,pkg-config)
1718 ("vala" ,vala)))
1719 (home-page "https://wiki.gnome.org/Apps/DejaDup")
1720 (synopsis "Simple backup tool, for regular encrypted backups")
1721 (description
1722 "Déjà Dup is a simple backup tool, for regular encrypted backups. It
1723 uses duplicity as the backend, which supports incremental backups and storage
1724 either on a local, or remote machine via a number of methods.")
1725 (license license:gpl3+)))
1726
1727 (define-public gnome-commander
1728 (package
1729 (name "gnome-commander")
1730 (version "1.10.3")
1731 (source
1732 (origin
1733 (method url-fetch)
1734 (uri (string-append "mirror://gnome/sources/" name "/"
1735 (version-major+minor version) "/"
1736 "gnome-commander-" version ".tar.xz"))
1737 (sha256
1738 (base32 "0bis36awb73vhkncq8yr0qlnyaxynqkvmyqbg57ijqwd0m8hh4zg"))))
1739 (build-system glib-or-gtk-build-system)
1740 (native-inputs
1741 `(("desktop-file-utils" ,desktop-file-utils)
1742 ("gcc" ,gcc-8) ;required for -Wcast-function-type
1743 ("gettext" ,gettext-minimal)
1744 ("glib:bin" ,glib "bin")
1745 ("gobject-introspection" ,gobject-introspection)
1746 ("googletest" ,googletest)
1747 ("intltool" ,intltool)
1748 ("itstool" ,itstool)
1749 ("libtool" ,libtool)
1750 ("pkg-config" ,pkg-config)))
1751 (inputs
1752 `(("gconf" ,gconf)
1753 ("gnome-vfs" ,gnome-vfs)
1754 ("gtk+" ,gtk+-2)
1755 ("libxml2" ,libxml2)))
1756 (home-page "https://gcmd.github.io/")
1757 (synopsis "Two-pane graphical file manager for the GNOME desktop")
1758 (description
1759 "GNOME Commander is a two-pane graphical file manager using GNOME
1760 libraries. It aims to fulfill the demands of more advanced users who
1761 like to focus on file management, their work through special applications
1762 and running smart commands.")
1763 (license license:gpl2+)))
1764
1765 (define-public gnome-user-docs
1766 (package
1767 (name "gnome-user-docs")
1768 (version "3.32.3")
1769 (source
1770 (origin
1771 (method url-fetch)
1772 (uri (string-append "mirror://gnome/sources/gnome-user-docs/"
1773 (version-major+minor version)
1774 "/gnome-user-docs-" version ".tar.xz"))
1775 (sha256
1776 (base32 "0dvsl0ldg8rf7yq0r4dv1pn41s7gjgcqp7agkbflkbmhrl6vbhig"))))
1777 (build-system gnu-build-system)
1778 (native-inputs
1779 `(("gettext" ,gettext-minimal)
1780 ("itstool" ,itstool)
1781 ("pkg-config" ,pkg-config)
1782 ("xmllint" ,libxml2)))
1783 (synopsis "User documentation for the GNOME desktop")
1784 (description
1785 "The GNOME User Documentation explains how to use the GNOME desktop and its
1786 components. It covers usage and setup of the core GNOME programs by end-users
1787 and system administrators.")
1788 (home-page "https://live.gnome.org/DocumentationProject")
1789 (license license:cc-by3.0)))
1790
1791 (define-public gnome-getting-started-docs
1792 (package
1793 (name "gnome-getting-started-docs")
1794 (version "3.32.2")
1795 (source
1796 (origin
1797 (method url-fetch)
1798 (uri (string-append "mirror://gnome/sources/gnome-getting-started-docs/"
1799 (version-major+minor version)
1800 "/gnome-getting-started-docs-" version ".tar.xz"))
1801 (sha256
1802 (base32 "1v4k465mlzrhgcdddzs6bmm0yliyrfx6jg3gh0s17a08i0w5rbwq"))))
1803 (build-system gnu-build-system)
1804 (native-inputs
1805 `(("gettext" ,gettext-minimal)
1806 ("itstool" ,itstool)
1807 ("pkg-config" ,pkg-config)
1808 ("xmllint" ,libxml2)))
1809 (synopsis "Help to get new users started with the GNOME desktop")
1810 (description
1811 "The GNOME Getting Started Documentation contains GNOME's intuitive
1812 \"Getting Started\" tour, with video guides, that can be viewed with Yelp.
1813
1814 It is normally used together with @command{gnome-initial-setup}, but is also
1815 useful as a tutorial and users' guide for new or less experienced users.")
1816 (home-page "https://live.gnome.org/DocumentationProject")
1817 (license license:cc-by-sa3.0)))
1818
1819 (define-public dia
1820 ;; This version from GNOME's repository includes fixes for compiling with
1821 ;; recent versions of the build tools. The latest activity on the
1822 ;; pre-GNOME version has been in 2014, while GNOME has continued applying
1823 ;; fixes since.
1824 (let ((commit "3cf7ec4c2e5bca139a7f3e17f9fc9009c237fcc5")
1825 (revision "2"))
1826 (package
1827 (name "dia")
1828 (version (git-version "0.97.3" revision commit))
1829 (source (origin
1830 (method git-fetch)
1831 (uri (git-reference
1832 (url "https://gitlab.gnome.org/GNOME/dia.git/")
1833 (commit commit)))
1834 (file-name (git-file-name name version))
1835 (sha256
1836 (base32
1837 "04r8dspa6nmicrifhi3sh46hqvyy88hzq37xx99q3q1mwsrpmwy8"))))
1838 (build-system meson-build-system)
1839 (inputs
1840 `(("graphene" ,graphene)
1841 ("gtk+" ,gtk+-2)
1842 ("libxml2" ,libxml2)
1843 ("libxslt" ,libxslt)
1844 ("poppler" ,poppler)
1845 ;; Without Python 2, build fails: plug-ins/python/meson.build:4:0:
1846 ;; ERROR: Unknown method "dependency" in object.
1847 ("python-2" ,python-2)))
1848 (native-inputs
1849 `(("appstream-glib" ,appstream-glib)
1850 ("docbook-xsl" ,docbook-xsl)
1851 ("glib" ,glib "bin")
1852 ("intltool" ,intltool)
1853 ("pkg-config" ,pkg-config)))
1854 (home-page "https://wiki.gnome.org/Apps/Dia")
1855 (synopsis "Diagram creation for GNOME")
1856 (description "Dia can be used to draw different types of diagrams, and
1857 includes support for UML static structure diagrams (class diagrams), entity
1858 relationship modeling, and network diagrams. The program supports various file
1859 formats like PNG, SVG, PDF and EPS.")
1860 (license license:gpl2+))))
1861
1862 ;; This is the unstable release, but it is required for the current stable
1863 ;; release of gvfs (1.38.1).
1864 (define-public libgdata
1865 (package
1866 (name "libgdata")
1867 (version "0.17.9")
1868 (source (origin
1869 (method url-fetch)
1870 (uri (string-append "mirror://gnome/sources/" name "/"
1871 (version-major+minor version) "/"
1872 name "-" version ".tar.xz"))
1873 (sha256
1874 (base32
1875 "0fj54yqxdapdppisqm1xcyrpgcichdmipq0a0spzz6009ikzgi45"))))
1876 (build-system gnu-build-system)
1877 (arguments
1878 '(#:phases
1879 (modify-phases %standard-phases
1880 (add-before 'check 'disable-failing-tests
1881 (lambda _
1882 ;; The PicasaWeb API tests fail with gnome-online-accounts@3.24.2.
1883 ;; They have been removed in libgdata 0.17.6, so just do the same.
1884 (substitute* "gdata/tests/Makefile"
1885 (("picasaweb\\$\\(EXEEXT\\) ") ""))
1886 #t)))))
1887 (native-inputs
1888 `(("glib:bin" ,glib "bin")
1889 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1890 ("intltool" ,intltool)
1891 ("pkg-config" ,pkg-config)
1892 ("uhttpmock" ,uhttpmock)))
1893 (inputs
1894 `(("cyrus-sasl" ,cyrus-sasl)
1895 ("glib-networking" ,glib-networking)))
1896 (propagated-inputs
1897 `(("gcr" ,gcr)
1898 ("glib" ,glib)
1899 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1900 ("json-glib" ,json-glib)
1901 ("liboauth" ,liboauth)
1902 ("libsoup" ,libsoup)
1903 ("libxml2" ,libxml2)))
1904 (home-page "https://wiki.gnome.org/Projects/libgdata")
1905 (synopsis "Library for accessing online service APIs")
1906 (description
1907 "libgdata is a GLib-based library for accessing online service APIs using
1908 the GData protocol — most notably, Google's services. It provides APIs to
1909 access the common Google services, and has full asynchronous support.")
1910 (license license:lgpl2.1+)))
1911
1912 (define-public libgxps
1913 (package
1914 (name "libgxps")
1915 (version "0.3.1")
1916 (source (origin
1917 (method url-fetch)
1918 (uri (string-append "mirror://gnome/sources/" name "/"
1919 (version-major+minor version) "/"
1920 name "-" version ".tar.xz"))
1921 (sha256
1922 (base32
1923 "157s4c9gjjss6yd7qp7n4q6s72gz1k4ilsx4xjvp357azk49z4qs"))))
1924 (build-system meson-build-system)
1925 (native-inputs
1926 `(("gobject-introspection" ,gobject-introspection)
1927 ("pkg-config" ,pkg-config)))
1928 (inputs
1929 `(("gtk+" ,gtk+)
1930 ("libjpeg" ,libjpeg-turbo)
1931 ("lcms" ,lcms)
1932 ("libtiff" ,libtiff)))
1933 (propagated-inputs
1934 ;; In Requires of libgxps.pc.
1935 `(("cairo" ,cairo)
1936 ("glib" ,glib)
1937 ("libarchive" ,libarchive)))
1938 (home-page "https://wiki.gnome.org/Projects/libgxps")
1939 (synopsis "GObject-based library for handling and rendering XPS documents")
1940 (description
1941 "libgxps is a GObject-based library for handling and rendering XPS
1942 documents. This package also contains binaries that can convert XPS documents
1943 to other formats.")
1944 (license license:lgpl2.1+)))
1945
1946 (define-public gnome-characters
1947 (package
1948 (name "gnome-characters")
1949 (version "3.30.0")
1950 (source
1951 (origin
1952 (method url-fetch)
1953 (uri (string-append "mirror://gnome/sources/"
1954 "gnome-characters/" (version-major+minor version)
1955 "/gnome-characters-" version ".tar.xz"))
1956 (sha256
1957 (base32
1958 "08cwz39iwgsyyb2wqhb8vfbmh1cwfkgfiy7adp08w7rwqi99x3dp"))))
1959 (build-system meson-build-system)
1960 (arguments
1961 `(#:glib-or-gtk? #t
1962 #:phases (modify-phases %standard-phases
1963 (add-after 'install 'wrap
1964 (lambda* (#:key outputs #:allow-other-keys)
1965 ;; GNOME Characters needs Typelib files from GTK and
1966 ;; gnome-desktop.
1967 (wrap-program (string-append (assoc-ref outputs "out")
1968 "/bin/gnome-characters")
1969 `("GI_TYPELIB_PATH" ":" prefix
1970 (,(getenv "GI_TYPELIB_PATH"))))
1971 #t)))))
1972 (native-inputs
1973 `(("gettext" ,gettext-minimal)
1974 ("glib:bin" ,glib "bin")
1975 ("gtk+:bin" ,gtk+ "bin")
1976 ("pkg-config" ,pkg-config)
1977 ("python" ,python-minimal)))
1978 (inputs
1979 `(("gjs" ,gjs)
1980 ("gtk+" ,gtk+)
1981 ("libunistring" ,libunistring)
1982 ("gnome-desktop" ,gnome-desktop)))
1983 (home-page "https://wiki.gnome.org/Apps/CharacterMap")
1984 (synopsis "Find and insert unusual characters")
1985 (description "Characters is a simple utility application to find
1986 and insert unusual characters. It allows you to quickly find the
1987 character you are looking for by searching for keywords.")
1988 (license license:bsd-3)))
1989
1990 (define-public gnome-common
1991 (package
1992 (name "gnome-common")
1993 (version "3.18.0")
1994 (source
1995 (origin
1996 (method url-fetch)
1997 (uri (string-append "mirror://gnome/sources/" name "/"
1998 (version-major+minor version) "/"
1999 name "-" version ".tar.xz"))
2000 (sha256
2001 (base32
2002 "1kzqi8qvh5p1zncj8msazlmvcwsczjz2hqxp4x2y0mg718vrwmi2"))))
2003 (build-system gnu-build-system)
2004 (home-page "https://www.gnome.org/")
2005 (synopsis "Bootstrap GNOME modules built from Git")
2006 (description "gnome-common contains various files needed to bootstrap
2007 GNOME modules built from Git. It contains a common \"autogen.sh\" script that
2008 can be used to configure a source directory checked out from Git and some
2009 commonly used macros.")
2010 (license license:gpl2+)))
2011
2012 (define-public gnome-contacts
2013 (package
2014 (name "gnome-contacts")
2015 (version "3.34")
2016 (source (origin
2017 (method url-fetch)
2018 (uri (string-append "mirror://gnome/sources/gnome-contacts/"
2019 (version-major+minor version) "/"
2020 name "-" version ".tar.xz"))
2021 (sha256
2022 (base32
2023 "04igc9xvyc4kb5xf5g2missnvyvj9zv5cqxf5k4z7hb0sv42wq4r"))))
2024 (build-system meson-build-system)
2025 (arguments
2026 `(#:configure-flags '("-Dcheese=false")
2027 #:phases
2028 (modify-phases %standard-phases
2029 (add-after 'unpack 'generate-vapis
2030 (lambda* (#:key inputs #:allow-other-keys)
2031 ;; To generate goa's missing .vapi file
2032 (define goa
2033 (assoc-ref inputs "gnome-online-accounts:lib"))
2034
2035 (invoke "vapigen" "--directory=vapi" "--pkg=gio-2.0"
2036 "--library=goa-1.0"
2037 (string-append goa "/share/gir-1.0/Goa-1.0.gir"))
2038 #t))
2039 (add-after 'unpack 'skip-gtk-update-icon-cache
2040 ;; Don't create 'icon-theme.cache'.
2041 (lambda _
2042 (substitute* "build-aux/meson_post_install.py"
2043 (("gtk-update-icon-cache") "true"))
2044 #t)))))
2045 (native-inputs
2046 `(("glib:bin" ,glib "bin")
2047 ("pkg-config" ,pkg-config)))
2048 (inputs
2049 `(("docbook-xml" ,docbook-xml)
2050 ("dockbook-xsl" ,docbook-xsl)
2051 ("evolution-data-server" ,evolution-data-server)
2052 ("gettext" ,gettext-minimal)
2053 ("gnome-desktop" ,gnome-desktop)
2054 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
2055 ("gobject-introspection" ,gobject-introspection)
2056 ("gst-plugins-base" ,gst-plugins-base)
2057 ("gtk+" ,gtk+)
2058 ("libgee" ,libgee)
2059 ("libxslt" ,libxslt)
2060 ("telepathy-glib" ,telepathy-glib)
2061 ("vala" ,vala)))
2062 (propagated-inputs
2063 `(("folks" ,folks)
2064 ("telepathy-mission-control" ,telepathy-mission-control)))
2065 (synopsis "GNOME's integrated address book")
2066 (description
2067 "GNOME Contacts organizes your contact information from online and
2068 offline sources, providing a centralized place for managing your contacts.")
2069 (home-page "https://wiki.gnome.org/Apps/Contacts")
2070 (license license:gpl2+)))
2071
2072 (define-public gnome-desktop
2073 (package
2074 (name "gnome-desktop")
2075 (version "3.34.2")
2076 (source
2077 (origin
2078 (method url-fetch)
2079 (uri (string-append "mirror://gnome/sources/" name "/"
2080 (version-major+minor version) "/"
2081 name "-" version ".tar.xz"))
2082 (sha256
2083 (base32
2084 "1v983xirwp1y6ggz97bh742ak6gff0hxb359dgn37nikjxhvm0a0"))))
2085 (build-system meson-build-system)
2086 (arguments
2087 '(#:phases
2088 (modify-phases %standard-phases
2089 (add-before 'configure 'patch-path
2090 (lambda* (#:key inputs #:allow-other-keys)
2091 (let ((libc (assoc-ref inputs "libc")))
2092 (substitute* "libgnome-desktop/gnome-languages.c"
2093 (("\"locale\"")
2094 (string-append "\"" libc "/bin/locale\"")))
2095 #t)))
2096 (add-before 'configure 'patch-bubblewrap
2097 (lambda* (#:key inputs #:allow-other-keys)
2098 (substitute* "libgnome-desktop/gnome-desktop-thumbnail-script.c"
2099 (("\"bwrap\",")
2100 (string-append "\"" (which "bwrap") "\","))
2101 (("\"--ro-bind\", \"/usr\", \"/usr\",")
2102 (string-append "\"--ro-bind\", \""
2103 (%store-directory)
2104 "\", \""
2105 (%store-directory)
2106 "\","))
2107 (("\"--ro-bind\", \"/etc/ld.so.cache\", \"/etc/ld.so.cache\",") ""))
2108 #t))
2109 (add-before 'check 'pre-check
2110 (lambda* (#:key inputs #:allow-other-keys)
2111 ;; Tests require a running X server and locales.
2112 (system "Xvfb :1 &")
2113 (setenv "DISPLAY" ":1")
2114 (setenv "GUIX_LOCPATH"
2115 (string-append (assoc-ref inputs "glibc-locales")
2116 "/lib/locale"))
2117 #t)))))
2118 (native-inputs
2119 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
2120 ("glibc-locales" ,glibc-locales) ; for tests
2121 ("gobject-introspection" ,gobject-introspection)
2122 ("itstool" ,itstool)
2123 ("intltool" ,intltool)
2124 ("pkg-config" ,pkg-config)
2125 ("xmllint" ,libxml2)
2126 ("xorg-server" ,xorg-server-for-tests)))
2127 (propagated-inputs
2128 ;; Required by gnome-desktop-3.0.pc.
2129 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2130 ("gtk+" ,gtk+)
2131 ("iso-codes" ,iso-codes)
2132 ("libseccomp" ,libseccomp)
2133 ("libx11" ,libx11)
2134 ("xkeyboard-config" ,xkeyboard-config)))
2135 (inputs
2136 `(("gdk-pixbuf" ,gdk-pixbuf)
2137 ("glib" ,glib)
2138 ("bubblewrap" ,bubblewrap)
2139 ("libxext" ,libxext)
2140 ("libxkbfile" ,libxkbfile)
2141 ("libxrandr" ,libxrandr)))
2142 (home-page "https://www.gnome.org/")
2143 (synopsis
2144 "Libgnome-desktop, gnome-about, and desktop-wide documents")
2145 (description
2146 "The libgnome-desktop library provides API shared by several applications
2147 on the desktop, but that cannot live in the platform for various reasons.
2148 There is no API or ABI guarantee, although we are doing our best to provide
2149 stability. Documentation for the API is available with gtk-doc.
2150
2151 The gnome-about program helps find which version of GNOME is installed.")
2152 ; Some bits under the LGPL.
2153 (license license:gpl2+)))
2154
2155 (define-public gnome-doc-utils
2156 (package
2157 (name "gnome-doc-utils")
2158 (version "0.20.10")
2159 (source
2160 (origin
2161 (method url-fetch)
2162 (uri (string-append "mirror://gnome/sources/" name "/"
2163 (version-major+minor version) "/"
2164 name "-" version ".tar.xz"))
2165 (sha256
2166 (base32
2167 "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb"))))
2168 (build-system gnu-build-system)
2169 (native-inputs
2170 `(("intltool" ,intltool)
2171 ("docbook-xml" ,docbook-xml-4.4)
2172 ("python2-libxml2" ,python2-libxml2)
2173 ("libxml2" ,libxml2)
2174 ("libxslt" ,libxslt)
2175 ("pkg-config" ,pkg-config)
2176 ("python-2" ,python-2)))
2177 (home-page "https://wiki.gnome.org/GnomeDocUtils")
2178 (synopsis
2179 "Documentation utilities for the Gnome project")
2180 (description
2181 "Gnome-doc-utils is a collection of documentation utilities for the
2182 Gnome project. It includes xml2po tool which makes it easier to translate
2183 and keep up to date translations of documentation.")
2184 (license license:gpl2+))) ; xslt under lgpl
2185
2186 (define-public gnome-disk-utility
2187 (package
2188 (name "gnome-disk-utility")
2189 (version "3.34.0")
2190 (source (origin
2191 (method url-fetch)
2192 (uri (string-append "mirror://gnome/sources/" name "/"
2193 (version-major+minor version) "/"
2194 name "-" version ".tar.xz"))
2195 (sha256
2196 (base32
2197 "1mb7q90lnlp97dhxhnadhjagcfd12dfqzp0vj9h6b1r61pzhy97y"))))
2198 (build-system meson-build-system)
2199 (arguments
2200 '(#:configure-flags '("-Dlogind=libelogind")
2201 #:phases
2202 (modify-phases %standard-phases
2203 (add-after 'unpack 'skip-gtk-update-icon-cache
2204 ;; Don't create 'icon-theme.cache'.
2205 (lambda _
2206 (substitute* "meson_post_install.py"
2207 (("gtk-update-icon-cache") "true"))
2208 #t)))))
2209 (native-inputs
2210 `(("glib:bin" ,glib "bin")
2211 ("intltool" ,intltool)
2212 ("pkg-config" ,pkg-config)
2213 ("docbook-xml" ,docbook-xml)
2214 ("docbook-xsl" ,docbook-xsl)
2215 ("libxml2" ,libxml2)
2216 ("libxslt" ,libxslt)))
2217 (inputs
2218 `(("elogind" ,elogind)
2219 ("glib" ,glib)
2220 ("appstream-glib" ,appstream-glib)
2221 ("gnome-settings-daemon" ,gnome-settings-daemon)
2222 ("gtk+" ,gtk+)
2223 ("libcanberra" ,libcanberra)
2224 ("libdvdread" ,libdvdread)
2225 ("libnotify" ,libnotify)
2226 ("libpwquality" ,libpwquality)
2227 ("libsecret" ,libsecret)
2228 ("udisks" ,udisks)))
2229 (home-page "https://git.gnome.org/browse/gnome-disk-utility")
2230 (synopsis "Disk management utility for GNOME")
2231 (description "Disk management utility for GNOME.")
2232 (license license:gpl2+)))
2233
2234 (define-public gnome-font-viewer
2235 (package
2236 (name "gnome-font-viewer")
2237 (version "3.30.0")
2238 (source (origin
2239 (method url-fetch)
2240 (uri (string-append "mirror://gnome/sources/gnome-font-viewer/"
2241 (version-major+minor version)
2242 "/gnome-font-viewer-" version ".tar.xz"))
2243 (sha256
2244 (base32
2245 "1wwnx2zrlbd2d6np7m9s78alx6j6ranrnh1g2z6zrv9qcj8rpzz5"))))
2246 (build-system meson-build-system)
2247 (arguments
2248 '(#:phases
2249 (modify-phases %standard-phases
2250 (add-after 'unpack 'patch-post-install-script
2251 (lambda _
2252 (substitute* "meson-postinstall.sh"
2253 (("update-desktop-database") (which "true")))
2254 #t)))))
2255 (native-inputs
2256 `(("gettext" ,gettext-minimal)
2257 ("glib:bin" ,glib "bin")
2258 ("pkg-config" ,pkg-config)))
2259 (inputs
2260 `(("glib" ,glib)
2261 ("gnome-desktop" ,gnome-desktop)
2262 ("gtk+" ,gtk+)))
2263 (home-page "https://gitlab.gnome.org/GNOME/gnome-font-viewer")
2264 (synopsis "GNOME Fonts")
2265 (description "Application to show you the fonts installed on your computer
2266 for your use as thumbnails. Selecting any thumbnails shows the full view of how
2267 the font would look under various sizes.")
2268 (license license:gpl2+)))
2269
2270 (define-public gcr
2271 (package
2272 (name "gcr")
2273 (version "3.34.0")
2274 (source (origin
2275 (method url-fetch)
2276 (uri (string-append "mirror://gnome/sources/" name "/"
2277 (version-major+minor version) "/"
2278 name "-" version ".tar.xz"))
2279 (sha256
2280 (base32
2281 "0925snsixzkwh49xiayqmj6fcrmklqk8kyy0jkv7m64h9abm1pr9"))))
2282 (build-system gnu-build-system)
2283 (arguments
2284 '(#:phases
2285 (modify-phases %standard-phases
2286 ;; These fail because /var/lib/dbus/machine-id is not present in the
2287 ;; build environment.
2288 (add-after 'unpack 'disable-failing-tests
2289 (lambda _
2290 (substitute* "Makefile.in"
2291 (("[[:blank:]]+test-system-prompt\\$\\(EXEEXT\\)")
2292 ""))
2293 #t))
2294 (add-before 'check 'pre-check
2295 (lambda _
2296 ;; Some tests expect to write to $HOME.
2297 (setenv "HOME" "/tmp")
2298 #t)))))
2299 (inputs
2300 `(("dbus" ,dbus)
2301 ("gnupg" ,gnupg) ;called as a child process during tests
2302 ("libgcrypt" ,libgcrypt)))
2303 (native-inputs
2304 `(("python" ,python-wrapper) ;for tests
2305 ("pkg-config" ,pkg-config)
2306 ("gettext" ,gettext-minimal)
2307 ("glib" ,glib "bin")
2308 ("gobject-introspection" ,gobject-introspection)
2309 ("libxml2" ,libxml2)
2310 ("vala" ,vala)
2311 ("xsltproc" ,libxslt)))
2312 ;; mentioned in gck.pc, gcr.pc and gcr-ui.pc
2313 (propagated-inputs
2314 `(("p11-kit" ,p11-kit)
2315 ("glib" ,glib)
2316 ("gtk+" ,gtk+)))
2317 (home-page "https://www.gnome.org")
2318 (synopsis "Libraries for displaying certificates and accessing key stores")
2319 (description
2320 "The GCR package contains libraries used for displaying certificates and
2321 accessing key stores. It also provides the viewer for crypto files on the
2322 GNOME Desktop.")
2323 (license license:lgpl2.1+)))
2324
2325 (define-public gdl
2326 (package
2327 (name "gdl")
2328 (version "3.34.0")
2329 (source (origin
2330 (method git-fetch)
2331 (uri (git-reference
2332 (url "https://gitlab.gnome.org/GNOME/gdl.git")
2333 (commit (string-append "GDL_" (string-map (match-lambda
2334 (#\. #\_)
2335 (c c))
2336 version)))))
2337 (file-name (git-file-name name version))
2338 (sha256
2339 (base32
2340 "154qcr0x6f68f4q526y87imv0rscmp34n47nk1pp82rsq52h2zna"))))
2341 (build-system gnu-build-system)
2342 (native-inputs
2343 `(("autoconf" ,autoconf)
2344 ("automake" ,automake)
2345 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2346 ("gnome-common" ,gnome-common)
2347 ("gtk-doc" ,gtk-doc)
2348 ("intltool" ,intltool)
2349 ("pkg-config" ,pkg-config)
2350 ("libtool" ,libtool)
2351 ("which" ,which)))
2352 (inputs
2353 `(("libxml2" ,libxml2)))
2354 (propagated-inputs
2355 ;; The gdl-3.0.pc file 'Requires' GTK+.
2356 `(("gtk+" ,gtk+)))
2357 (home-page "https://gitlab.gnome.org/GNOME/gdl/")
2358 (synopsis "GNOME docking library")
2359 (description "This library provides docking features for gtk+.")
2360 (license license:lgpl2.1+)))
2361
2362 ;;; A minimal variant used to break a cycle with Inkscape.
2363 (define-public gdl-minimal
2364 (package
2365 (inherit gdl)
2366 (name "gdl-minimal")
2367 (arguments
2368 '(#:phases
2369 (modify-phases %standard-phases
2370 (add-after 'unpack 'disable-doc-generation
2371 ;; XXX: There is no easy way to disable generating the
2372 ;; documentation.
2373 (lambda _
2374 (substitute* "configure.in"
2375 (("GTK_DOC_CHECK.*") "")
2376 (("docs/.*") ""))
2377 (substitute* "Makefile.am"
2378 (("gdl docs po") "gdl po"))
2379 #t)))))
2380 (native-inputs (alist-delete "gtk-doc" (package-native-inputs gdl)))))
2381
2382 (define-public libgnome-keyring
2383 (package
2384 (name "libgnome-keyring")
2385 (version "3.12.0")
2386 (source (origin
2387 (method url-fetch)
2388 (uri (string-append "mirror://gnome/sources/" name "/"
2389 (version-major+minor version) "/"
2390 name "-" version ".tar.xz"))
2391 (sha256
2392 (base32
2393 "10vpjhgbjm7z2djy04qakd02qlzpd02xnbfjhk2aqwjzn3xpihf4"))))
2394 (build-system gnu-build-system)
2395 (inputs
2396 `(("libgcrypt" ,libgcrypt)
2397 ("dbus" ,dbus)))
2398 (native-inputs
2399 `(("pkg-config" ,pkg-config)
2400 ("glib" ,glib "bin")
2401 ("intltool" ,intltool)))
2402 (propagated-inputs
2403 ;; Referred to in .h files and .pc.
2404 `(("glib" ,glib)))
2405 (home-page "https://www.gnome.org")
2406 (synopsis "Accessing passwords from the GNOME keyring")
2407 (description
2408 "Client library to access passwords from the GNOME keyring.")
2409
2410 ;; Though a couple of files are LGPLv2.1+.
2411 (license license:lgpl2.0+)))
2412
2413 (define-public gnome-keyring
2414 (package
2415 (name "gnome-keyring")
2416 (version "3.34.0")
2417 (source (origin
2418 (method url-fetch)
2419 (uri (string-append "mirror://gnome/sources/" name "/"
2420 (version-major+minor version) "/"
2421 name "-" version ".tar.xz"))
2422 (sha256
2423 (base32
2424 "0hqrsh5g9q9lm190f0m85q4nki8k4ng7wphl6qbccdry59aakkg9"))))
2425 (build-system gnu-build-system)
2426 (arguments
2427 `(#:tests? #f ;48 of 603 tests fail because /var/lib/dbus/machine-id does
2428 ;not exist
2429 #:configure-flags
2430 (list
2431 (string-append "--with-pkcs11-config="
2432 (assoc-ref %outputs "out") "/share/p11-kit/modules/")
2433 (string-append "--with-pkcs11-modules="
2434 (assoc-ref %outputs "out") "/share/p11-kit/modules/"))
2435 #:phases
2436 (modify-phases %standard-phases
2437 (add-after 'unpack 'fix-/bin/sh-reference
2438 (lambda _
2439 (substitute* "po/Makefile.in.in"
2440 (("/bin/sh") (which "sh")))
2441 #t))
2442 (add-after 'unpack 'fix-docbook
2443 (lambda* (#:key inputs #:allow-other-keys)
2444 (substitute* "docs/Makefile.am"
2445 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
2446 (string-append (assoc-ref inputs "docbook-xsl")
2447 "/xml/xsl/docbook-xsl-"
2448 ,(package-version docbook-xsl)
2449 "/manpages/docbook.xsl")))
2450 (setenv "XML_CATALOG_FILES"
2451 (string-append (assoc-ref inputs "docbook-xml")
2452 "/xml/dtd/docbook/catalog.xml"))
2453 ;; Rerun the whole thing to avoid version mismatch ("This is
2454 ;; Automake 1.15.1, but the definition used by this
2455 ;; AM_INIT_AUTOMAKE comes from Automake 1.15."). Note: we don't
2456 ;; use 'autoreconf' because it insists on running 'libtoolize'.
2457 (invoke "autoconf")
2458 (invoke "aclocal")
2459 (invoke "automake" "-ac"))))))
2460 (inputs
2461 `(("libgcrypt" ,libgcrypt)
2462 ("linux-pam" ,linux-pam)
2463 ("openssh" ,openssh)
2464 ("dbus" ,dbus)
2465 ("gcr" ,gcr)))
2466 (native-inputs
2467 `(("pkg-config" ,pkg-config)
2468 ("glib" ,glib "bin")
2469 ("glib" ,glib) ; for m4 macros
2470 ("python" ,python-2) ;for tests
2471 ("intltool" ,intltool)
2472 ("autoconf" ,autoconf)
2473 ("automake" ,automake)
2474 ("libxslt" ,libxslt) ;for documentation
2475 ("docbook-xml" ,docbook-xml-4.2)
2476 ("docbook-xsl" ,docbook-xsl)))
2477 (home-page "https://www.gnome.org")
2478 (synopsis "Daemon to store passwords and encryption keys")
2479 (description
2480 "gnome-keyring is a program that keeps passwords and other secrets for
2481 users. It is run as a daemon in the session, similar to ssh-agent, and other
2482 applications locate it via an environment variable or D-Bus.
2483
2484 The program can manage several keyrings, each with its own master password,
2485 and there is also a session keyring which is never stored to disk, but
2486 forgotten when the session ends.")
2487 (license license:lgpl2.1+)))
2488
2489 (define-public evince
2490 (package
2491 (name "evince")
2492 (version "3.36.5")
2493 (source (origin
2494 (method url-fetch)
2495 (uri (string-append "mirror://gnome/sources/evince/"
2496 (version-major+minor version) "/"
2497 "evince-" version ".tar.xz"))
2498 (sha256
2499 (base32
2500 "0z79jl0j9xq9wgwkfr0d1w1qrdy4447y8shs407n5srr0vixc3bg"))))
2501 (build-system glib-or-gtk-build-system)
2502 (arguments
2503 `(#:configure-flags '("--disable-nautilus" "--enable-introspection")
2504 #:phases
2505 (modify-phases %standard-phases
2506 (add-before 'install 'skip-gtk-update-icon-cache
2507 ;; Don't create 'icon-theme.cache'.
2508 (lambda _
2509 (substitute* "data/Makefile"
2510 (("gtk-update-icon-cache") "true"))
2511 #t)))))
2512 (inputs
2513 `(("libarchive" ,libarchive)
2514 ("libgxps" ,libgxps)
2515 ("libspectre" ,libspectre)
2516 ("djvulibre" ,djvulibre)
2517 ("ghostscript" ,ghostscript)
2518 ("poppler" ,poppler)
2519 ("libtiff" ,libtiff)
2520 ;; TODO:
2521 ;; Build libkpathsea as a shared library for DVI support.
2522 ;; ("libkpathsea" ,texlive-bin)
2523 ("gnome-desktop" ,gnome-desktop)
2524 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2525 ("gspell" ,gspell)
2526 ("libgnome-keyring" ,libgnome-keyring)
2527 ("adwaita-icon-theme" ,adwaita-icon-theme)
2528 ("gdk-pixbuf" ,gdk-pixbuf)
2529 ("atk" ,atk)
2530 ("pango" ,pango)
2531 ("gtk+" ,gtk+)
2532 ("glib" ,glib)
2533 ("libxml2" ,libxml2)
2534 ("libsm" ,libsm)
2535 ("libice" ,libice)
2536 ("shared-mime-info" ,shared-mime-info)
2537 ("dconf" ,dconf)
2538 ("libcanberra" ,libcanberra)
2539 ("libsecret" ,libsecret)
2540
2541 ;; For tests.
2542 ("dogtail" ,python2-dogtail)))
2543 (native-inputs
2544 `(("itstool" ,itstool)
2545 ("intltool" ,intltool)
2546 ("glib" ,glib "bin")
2547 ("gobject-introspection" ,gobject-introspection)
2548 ("pkg-config" ,pkg-config)
2549 ("xmllint" ,libxml2)))
2550 (home-page "https://www.gnome.org/projects/evince/")
2551 (synopsis "GNOME's document viewer")
2552 (description
2553 "Evince is a document viewer for multiple document formats. It
2554 currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
2555 of Evince is to replace the multiple document viewers that exist
2556 on the GNOME Desktop with a single simple application.")
2557 (license license:gpl2+)))
2558
2559 (define-public gsettings-desktop-schemas
2560 (package
2561 (name "gsettings-desktop-schemas")
2562 (version "3.34.0")
2563 (source
2564 (origin
2565 (method url-fetch)
2566 (uri (string-append "mirror://gnome/sources/" name "/"
2567 (version-major+minor version) "/"
2568 name "-" version ".tar.xz"))
2569 (sha256
2570 (base32
2571 "1bayr76aylawf2fhyjhv9zgk4kpv7ivrrmd80khb0h3h1wk092r8"))))
2572 (build-system meson-build-system)
2573 (arguments
2574 '(#:phases (modify-phases %standard-phases
2575 (add-after 'unpack 'patch-schemas
2576 (lambda* (#:key inputs #:allow-other-keys)
2577 (let ((theme (assoc-ref inputs "gnome-backgrounds")))
2578 (substitute* (find-files "schemas"
2579 "\\.gschema\\.xml\\.in$")
2580 ;; Provide the correct file name of the default GNOME
2581 ;; background, 'adwaita-timed.xml'.
2582 (("@datadir@/backgrounds/gnome")
2583 (string-append theme "/share/backgrounds/gnome"))
2584 ;; Do not reference fonts, that may not exist.
2585 (("'Source Code Pro 10'") "'Monospace 11'"))
2586 #t))))))
2587 (inputs
2588 `(("glib" ,glib)
2589 ("gnome-backgrounds" ,gnome-backgrounds)))
2590 (native-inputs
2591 `(("intltool" ,intltool)
2592 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
2593 ("gobject-introspection" ,gobject-introspection)
2594 ("pkg-config" ,pkg-config)))
2595 (home-page "https://launchpad.net/gsettings-desktop-schemas")
2596 (synopsis
2597 "GNOME settings for various desktop components")
2598 (description
2599 "Gsettings-desktop-schemas contains a collection of GSettings schemas
2600 for settings shared by various components of the GNOME desktop.")
2601 (license license:lgpl2.1+)))
2602
2603 (define-public python-liblarch
2604 (package
2605 (name "python-liblarch")
2606 (version "3.0.1")
2607 (source
2608 (origin
2609 (method git-fetch)
2610 (uri (git-reference
2611 (url "https://github.com/getting-things-gnome/liblarch")
2612 (commit (string-append "v" version))))
2613 (file-name (git-file-name name version))
2614 (sha256
2615 (base32 "0xv2mfvyzipbny3iz8vll77wsqxfwh28xj6bj1ff0l452waph45m"))))
2616 (build-system python-build-system)
2617 (arguments
2618 `(#:phases
2619 (modify-phases %standard-phases
2620 (add-before 'check 'start-xserver
2621 (lambda* (#:key inputs #:allow-other-keys)
2622 (system (format #f "~a/bin/Xvfb :1 &"
2623 (assoc-ref inputs "xorg-server")))
2624 (setenv "DISPLAY" ":1")
2625 #t)))))
2626 (native-inputs
2627 `(("xorg-server" ,xorg-server-for-tests)))
2628 (inputs
2629 `(("gtk+" ,gtk+)))
2630 (propagated-inputs
2631 `(("python-pygobject" ,python-pygobject)))
2632 (home-page "https://wiki.gnome.org/Projects/liblarch")
2633 (synopsis "Library to easily handle complex data structures")
2634 (description
2635 "Liblarch is a Python library built to easily handle data structures such
2636 as lists, trees and acyclic graphs. There's also a GTK binding that will
2637 allow you to use your data structure in a @code{Gtk.Treeview}.
2638
2639 Liblarch support multiple views of one data structure and complex filtering.
2640 That way, you have a clear separation between your data themselves (Model)
2641 and how they are displayed (View).")
2642 (license license:lgpl3+)))
2643
2644 (define-public gtg
2645 (package
2646 (name "gtg")
2647 (version "0.4")
2648 (source
2649 (origin
2650 (method git-fetch)
2651 (uri (git-reference
2652 (url "https://github.com/getting-things-gnome/gtg")
2653 (commit (string-append "v" version))))
2654 (file-name (git-file-name name version))
2655 (sha256
2656 (base32 "0r28vyr88rj3kd3cg4gj7sd29wadjchi92wzmbx67d4hlg25h8kk"))))
2657 (build-system meson-build-system)
2658 (arguments
2659 `(#:glib-or-gtk? #t
2660 #:phases
2661 (modify-phases %standard-phases
2662 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
2663 (lambda* (#:key outputs #:allow-other-keys)
2664 (let ((prog (string-append (assoc-ref outputs "out")
2665 "/bin/gtg"))
2666 (pylib (string-append (assoc-ref outputs "out")
2667 "/lib/python"
2668 ,(version-major+minor
2669 (package-version python))
2670 "/site-packages")))
2671 (wrap-program prog
2672 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
2673 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
2674 #t))))))
2675 (native-inputs
2676 `(("desktop-file-utils" ,desktop-file-utils)
2677 ("gettext" ,gettext-minimal)
2678 ("glib:bin" ,glib "bin")
2679 ("gobject-introspection" ,gobject-introspection)
2680 ("gtk+:bin" ,gtk+ "bin")
2681 ("pkg-config" ,pkg-config)))
2682 (inputs
2683 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2684 ("gtk+" ,gtk+)
2685 ("python-dbus" ,python-dbus)
2686 ("python-liblarch" ,python-liblarch)
2687 ("python-pycairo" ,python-pycairo)
2688 ("python-pygobject" ,python-pygobject)
2689 ("python-pyxdg" ,python-pyxdg)))
2690 (home-page "https://wiki.gnome.org/Apps/GTG")
2691 (synopsis "Personal organizer for the GNOME desktop")
2692 (description
2693 "Getting Things GNOME! (GTG) is a personal tasks and TODO list items
2694 organizer for the GNOME desktop environment inspired by the Getting Things
2695 Done (GTD) methodology. GTG is designed with flexibility, adaptability,
2696 and ease of use in mind so it can be used as more than just GTD software.
2697 GTG is intended to help you track everything you need to do and need to
2698 know, from small tasks to large projects.")
2699 (license license:gpl3+)))
2700
2701 (define-public icon-naming-utils
2702 (package
2703 (name "icon-naming-utils")
2704 (version "0.8.90")
2705 (source
2706 (origin
2707 (method url-fetch)
2708 (uri (string-append "https://tango.freedesktop.org/releases/icon-naming-utils-"
2709 version ".tar.bz2"))
2710 (sha256
2711 (base32
2712 "1mc3v28fdfqanx3lqx233vcr4glb4c2376k0kx2v91a4vxwqcdxi"))))
2713 (build-system gnu-build-system)
2714 (inputs
2715 `(("perl" ,perl)
2716 ("perl-xml-simple" ,perl-xml-simple)))
2717 (arguments
2718 '(#:phases
2719 (modify-phases %standard-phases
2720 (add-after 'install 'set-load-paths
2721 ;; Tell 'icon-name-mapping' where XML::Simple is.
2722 (lambda* (#:key outputs #:allow-other-keys)
2723 (let* ((out (assoc-ref outputs "out"))
2724 (prog (string-append out "/libexec/icon-name-mapping")))
2725 (wrap-program
2726 prog
2727 `("PERL5LIB" = ,(list (getenv "PERL5LIB")))))
2728 #t)))))
2729 (home-page "http://tango.freedesktop.org/Standard_Icon_Naming_Specification")
2730 (synopsis
2731 "Utility to implement the Freedesktop Icon Naming Specification")
2732 (description
2733 "To help with the transition to the Freedesktop Icon Naming
2734 Specification, the icon naming utility maps the icon names used by the
2735 GNOME and KDE desktops to the icon names proposed in the specification.")
2736 (license license:lgpl2.1+)))
2737
2738 (define-public gnome-icon-theme
2739 (package
2740 (name "gnome-icon-theme")
2741 (version "3.12.0")
2742 (source
2743 (origin
2744 (method url-fetch)
2745 (uri (string-append "mirror://gnome/sources/" name "/"
2746 (version-major+minor version) "/"
2747 name "-" version ".tar.xz"))
2748 (sha256
2749 (base32
2750 "0fjh9qmmgj34zlgxb09231ld7khys562qxbpsjlaplq2j85p57im"))))
2751 (build-system gnu-build-system)
2752 (arguments
2753 '(#:configure-flags
2754 ;; Don't create 'icon-theme.cache'.
2755 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
2756 (true (string-append coreutils "/bin/true")))
2757 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
2758 (native-inputs
2759 `(("icon-naming-utils" ,icon-naming-utils)
2760 ("intltool" ,intltool)
2761 ("pkg-config" ,pkg-config)))
2762 (home-page "https://wiki.gnome.org/Personalization")
2763 (synopsis "GNOME icon theme")
2764 (description "Icons for the GNOME desktop.")
2765 (license license:lgpl3))) ; or Creative Commons BY-SA 3.0
2766
2767 ;; gnome-icon-theme was renamed to adwaita-icon-theme after version 3.12.0.
2768 (define-public adwaita-icon-theme
2769 (package (inherit gnome-icon-theme)
2770 (name "adwaita-icon-theme")
2771 (version "3.34.3")
2772 (source (origin
2773 (method url-fetch)
2774 (uri (string-append "mirror://gnome/sources/" name "/"
2775 (version-major+minor version) "/"
2776 name "-" version ".tar.xz"))
2777 (sha256
2778 (base32
2779 "025rj1fskw1y448hiar4a9icyzpyr242nlh9xhsmyp8jb71dihp7"))))
2780 (native-inputs
2781 `(("gtk-encode-symbolic-svg" ,gtk+ "bin")))))
2782
2783 (define-public tango-icon-theme
2784 (package
2785 (name "tango-icon-theme")
2786 (version "0.8.90")
2787 (source (origin
2788 (method url-fetch)
2789 (uri (string-append "http://tango.freedesktop.org/releases/"
2790 "tango-icon-theme-" version ".tar.bz2"))
2791 (sha256
2792 (base32
2793 "034r9s944b4yikyfgn602yv7s54wdzlq0qfvqh52b9x6kbx08h79"))))
2794 (build-system gnu-build-system)
2795 (native-inputs
2796 `(("icon-naming-utils" ,icon-naming-utils)
2797 ("intltool" ,intltool)
2798 ("imagemagick" ,imagemagick)
2799 ("pkg-config" ,pkg-config)))
2800 (home-page "http://tango-project.org/")
2801 (synopsis "Tango icon theme")
2802 (description "This is an icon theme that follows the Tango visual
2803 guidelines.")
2804 (license license:public-domain)))
2805
2806 (define-public shared-mime-info
2807 (package
2808 (name "shared-mime-info")
2809 (version "1.15")
2810 (source (origin
2811 (method url-fetch)
2812 (uri (string-append
2813 "https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/"
2814 "b27eb88e4155d8fccb8bb3cd12025d5b/shared-mime-info-" version
2815 ".tar.xz"))
2816 (sha256
2817 (base32
2818 "146vynj78wcwdq0ms52jzm1r4m6dzi1rhyh3h4xyb6bw8ckv10pl"))))
2819 (build-system gnu-build-system)
2820 (arguments
2821 ;; The build system appears not to be parallel-safe.
2822 '(#:parallel-build? #f))
2823 (inputs
2824 `(("glib" ,glib)
2825 ("libxml2" ,libxml2)))
2826 (native-inputs
2827 `(("gettext" ,gettext-minimal)
2828 ("itstool" ,itstool)
2829 ("pkg-config" ,pkg-config)))
2830 (home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info")
2831 (synopsis "Database of common MIME types")
2832 (description
2833 "The shared-mime-info package contains the core database of common types
2834 and the update-mime-database command used to extend it. It requires glib2 to
2835 be installed for building the update command. Additionally, it uses intltool
2836 for translations, though this is only a dependency for the maintainers. This
2837 database is translated at Transifex.")
2838 (license license:gpl2+)))
2839
2840 (define-public system-config-printer
2841 (package
2842 (name "system-config-printer")
2843 (version "1.5.13")
2844 (source
2845 (origin
2846 (method url-fetch)
2847 (uri (string-append
2848 "https://github.com/OpenPrinting/system-config-printer/releases/"
2849 "download/v" version
2850 "/system-config-printer-" version ".tar.xz"))
2851 (sha256
2852 (base32 "18dqvi1s971lggkw6pv1sqxixlpg5a8rppzc1pxbanxa91jg18zf"))))
2853 (build-system glib-or-gtk-build-system)
2854 (arguments
2855 `(#:imported-modules ((guix build python-build-system)
2856 ,@%glib-or-gtk-build-system-modules)
2857 #:phases
2858 (modify-phases %standard-phases
2859 (add-after 'unpack 'patch-Makefile.am
2860 (lambda _
2861 ;; The Makefile generates some scripts, so set a valid shebang
2862 (substitute* "Makefile.am"
2863 (("/bin/bash") (which "bash")))
2864 (delete-file "configure")
2865 #t))
2866 (add-after 'unpack 'patch-docbook-xml
2867 (lambda* (#:key inputs #:allow-other-keys)
2868 ;; Modify the man XML otherwise xmlto tries to access the network
2869 (substitute* "man/system-config-printer.xml"
2870 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
2871 (string-append (assoc-ref inputs "docbook-xml")
2872 "/xml/dtd/docbook/")))
2873 #t))
2874 (add-after 'install 'wrap-for-python
2875 (@@ (guix build python-build-system) wrap))
2876 (add-after 'install 'wrap
2877 (lambda* (#:key outputs #:allow-other-keys)
2878 (let ((out (assoc-ref outputs "out"))
2879 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
2880 (for-each
2881 (lambda (program)
2882 (wrap-program program
2883 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
2884 (map (lambda (name)
2885 (string-append out "/bin/" name))
2886 '("system-config-printer"
2887 "system-config-printer-applet"
2888 "install-printerdriver"
2889 "scp-dbus-service"))))
2890 #t)))))
2891 (inputs
2892 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2893 ("gobject-introspection" ,gobject-introspection)
2894 ("python" ,python)
2895 ("cups" ,cups)
2896 ("gtk+" ,gtk+)
2897 ("python-dbus" ,python-dbus)
2898 ("python-pygobject" ,python-pygobject)
2899 ("python-pycups" ,python-pycups)
2900 ("python-requests" ,python-requests)
2901 ("python-pycairo" ,python-pycairo)
2902 ("libnotify" ,libnotify)
2903 ("packagekit" ,packagekit)))
2904 (native-inputs
2905 `(("pkg-config" ,pkg-config)
2906 ("desktop-file-utils" ,desktop-file-utils)
2907 ("glib" ,glib)
2908 ("autoconf" ,autoconf)
2909 ("automake" ,automake)
2910 ("intltool" ,intltool)
2911 ("xmlto" ,xmlto)
2912 ("docbook-xml" ,docbook-xml-4.1.2)
2913 ("docbook-xsl" ,docbook-xsl)
2914 ("libxml2" ,libxml2)))
2915 (home-page "https://github.com/zdohnal/system-config-printer")
2916 (synopsis "CUPS administration tool")
2917 (description
2918 "system-config-printer is a CUPS administration tool. It's written in
2919 Python using GTK+, and uses the @acronym{IPP, Internet Printing Protocol} when
2920 configuring CUPS.")
2921 (license license:gpl2+)))
2922
2923 (define-public hicolor-icon-theme
2924 (package
2925 (name "hicolor-icon-theme")
2926 (version "0.17")
2927 (source
2928 (origin
2929 (method url-fetch)
2930 (uri (string-append "https://icon-theme.freedesktop.org/releases/"
2931 "hicolor-icon-theme-" version ".tar.xz"))
2932 (sha256
2933 (base32
2934 "1n59i3al3zx6p90ff0l43gzpzmlqnzm6hf5cryxqrlbi48sq8x1i"))))
2935 (build-system gnu-build-system)
2936 (arguments
2937 `(#:tests? #f)) ; no check target
2938 (home-page "https://icon-theme.freedesktop.org/releases/")
2939 (synopsis
2940 "Freedesktop icon theme")
2941 (description
2942 "Freedesktop icon theme.")
2943 (license license:gpl2)))
2944
2945 (define-public libnotify
2946 (package
2947 (name "libnotify")
2948 (version "0.7.7")
2949 (source
2950 (origin
2951 (method url-fetch)
2952 (uri (string-append "mirror://gnome/sources/" name "/"
2953 (version-major+minor version) "/"
2954 name "-" version ".tar.xz"))
2955 (sha256
2956 (base32
2957 "017wgq9n00hx39n0hm784zn18hl721hbaijda868cm96bcqwxd4w"))))
2958 (build-system gnu-build-system)
2959 (arguments
2960 `(#:configure-flags '("--disable-static")))
2961 (propagated-inputs
2962 `(;; In Requires of libnotify.pc.
2963 ("gdk-pixbuf" ,gdk-pixbuf)
2964 ("glib" ,glib)))
2965 (inputs
2966 `(("gtk+" ,gtk+)
2967 ("libpng" ,libpng)))
2968 (native-inputs
2969 `(("pkg-config" ,pkg-config)
2970 ("glib" ,glib "bin")
2971 ("gobject-introspection" ,gobject-introspection)))
2972 (home-page "https://developer-next.gnome.org/libnotify/")
2973 (synopsis
2974 "GNOME desktop notification library")
2975 (description
2976 "Libnotify is a library that sends desktop notifications to a
2977 notification daemon, as defined in the Desktop Notifications spec. These
2978 notifications can be used to inform the user about an event or display
2979 some form of information without getting in the user's way.")
2980 (license license:lgpl2.1+)))
2981
2982 (define-public libpeas
2983 (package
2984 (name "libpeas")
2985 (version "1.28.0")
2986 (source
2987 (origin
2988 (method url-fetch)
2989 (uri (string-append "mirror://gnome/sources/" name "/"
2990 (version-major+minor version) "/"
2991 name "-" version ".tar.xz"))
2992 (sha256
2993 (base32
2994 "05cb7drn6arc4gi02wgsvzibigi2riz5gnfnmlb0zmbfnj9ikna2"))))
2995 (build-system meson-build-system)
2996 (arguments
2997 '(#:phases
2998 (modify-phases %standard-phases
2999 (add-before 'check 'start-xserver
3000 (lambda* (#:key inputs #:allow-other-keys)
3001 (let ((xorg-server (assoc-ref inputs "xorg-server"))
3002 (disp ":1"))
3003 (setenv "DISPLAY" disp)
3004 ;; Tests require a running X server.
3005 (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp))
3006 #t))))))
3007 (inputs
3008 `(("gtk+" ,gtk+)
3009 ("glade" ,glade3)
3010 ("python" ,python)
3011 ("python-pygobject" ,python-pygobject)))
3012 (native-inputs
3013 `(("pkg-config" ,pkg-config)
3014 ("gettext" ,gettext-minimal)
3015 ("glib:bin" ,glib "bin")
3016 ("gobject-introspection" ,gobject-introspection)
3017 ("xorg-server" ,xorg-server-for-tests)))
3018 (propagated-inputs
3019 ;; The .pc file "Requires" gobject-introspection.
3020 `(("gobject-introspection" ,gobject-introspection)))
3021 (home-page "https://wiki.gnome.org/Libpeas")
3022 (synopsis "GObject plugin system")
3023 (description
3024 "Libpeas is a gobject-based plugin engine, targeted at giving every
3025 application the chance to assume its own extensibility. It also has a set of
3026 features including, but not limited to: multiple extension points; on-demand
3027 (lazy) programming language support for C, Python and JS; simplicity of the
3028 API.")
3029 (license license:lgpl2.0+)))
3030
3031 (define-public gtkglext
3032 (package
3033 (name "gtkglext")
3034 (version "1.2.0")
3035 (source (origin
3036 (method url-fetch)
3037 (uri (string-append "mirror://sourceforge/gtkglext/gtkglext/"
3038 version "/gtkglext-" version ".tar.gz"))
3039 (sha256
3040 (base32 "1ya4d2j2aacr9ii5zj4ac95fjpdvlm2rg79mgnk7yvl1dcy3y1z5"))
3041 (patches (search-patches
3042 "gtkglext-disable-disable-deprecated.patch"))))
3043 (build-system gnu-build-system)
3044 (arguments
3045 `(#:phases
3046 (modify-phases %standard-phases
3047 ;; Fix a collision between a local variable and a definition from
3048 ;; glibc's string.h.
3049 (add-after 'unpack 'fix-collision
3050 (lambda _
3051 (substitute* "gdk/gdkglshapes.c"
3052 ((" index") " triangle_index"))
3053 #t)))))
3054 (inputs `(("gtk+" ,gtk+-2)
3055 ("mesa" ,mesa)
3056 ("glu" ,glu)
3057 ("libx11" ,libx11)
3058 ("libxt" ,libxt)))
3059 (native-inputs `(("pkg-config" ,pkg-config)
3060 ("glib" ,glib "bin")))
3061 (propagated-inputs `(("pangox-compat" ,pangox-compat)))
3062 (home-page "https://projects.gnome.org/gtkglext")
3063 (synopsis "OpenGL extension to GTK+")
3064 (description "GtkGLExt is an OpenGL extension to GTK+. It provides
3065 additional GDK objects which support OpenGL rendering in GTK+ and GtkWidget
3066 API add-ons to make GTK+ widgets OpenGL-capable.")
3067 (license license:lgpl2.1+)))
3068
3069 (define-public glade3
3070 (package
3071 (name "glade")
3072 (version "3.36.0")
3073 (source (origin
3074 (method url-fetch)
3075 (uri (string-append "mirror://gnome/sources/" name "/"
3076 (version-major+minor version) "/"
3077 name "-" version ".tar.xz"))
3078 (sha256
3079 (base32
3080 "023gx8rj51njn8fsb6ma5kz1irjpxi4js0n8rwy22inc4ysldd8r"))))
3081 (build-system glib-or-gtk-build-system)
3082 (arguments
3083 `(#:phases
3084 (modify-phases %standard-phases
3085 (add-before 'configure 'fix-docbook
3086 (lambda* (#:key inputs #:allow-other-keys)
3087 (substitute* "man/Makefile.in"
3088 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
3089 (string-append (assoc-ref inputs "docbook-xsl")
3090 "/xml/xsl/docbook-xsl-"
3091 ,(package-version docbook-xsl)
3092 "/manpages/docbook.xsl")))
3093 #t))
3094 (add-before 'check 'pre-check
3095 (lambda _
3096 (setenv "HOME" "/tmp")
3097 ;; Tests require a running X server.
3098 (system "Xvfb :1 &")
3099 (setenv "DISPLAY" ":1")
3100 #t)))))
3101 (inputs
3102 `(("gtk+" ,gtk+)
3103 ("libxml2" ,libxml2)))
3104 (native-inputs
3105 `(("hicolor-icon-theme" ,hicolor-icon-theme)
3106 ("intltool" ,intltool)
3107 ("itstool" ,itstool)
3108 ("libxslt" ,libxslt) ;for xsltproc
3109 ("docbook-xml" ,docbook-xml-4.2)
3110 ("docbook-xsl" ,docbook-xsl)
3111 ("python" ,python-2)
3112 ("pkg-config" ,pkg-config)
3113 ("xorg-server" ,xorg-server-for-tests)))
3114 (home-page "https://glade.gnome.org")
3115 (synopsis "GTK+ rapid application development tool")
3116 (description "Glade is a rapid application development (RAD) tool to
3117 enable quick & easy development of user interfaces for the GTK+ toolkit and
3118 the GNOME desktop environment.")
3119 (license license:lgpl2.0+)
3120 (native-search-paths (list (search-path-specification
3121 (variable "GLADE_CATALOG_SEARCH_PATH")
3122 (files '("share/glade/catalogs")))
3123 (search-path-specification
3124 (variable "GLADE_MODULE_SEARCH_PATH")
3125 (files '("lib/glade/modules")))))))
3126
3127 (define-public libcroco
3128 (package
3129 (name "libcroco")
3130 (version "0.6.13")
3131 (source (origin
3132 (method url-fetch)
3133 (uri (string-append "mirror://gnome/sources/" name "/"
3134 (version-major+minor version) "/"
3135 name "-" version ".tar.xz"))
3136 (sha256
3137 (base32
3138 "1m110rbj5d2raxcdp4iz0qp172284945awrsbdlq99ksmqsc4zkn"))))
3139 (build-system gnu-build-system)
3140 (native-inputs
3141 `(("pkg-config" ,pkg-config)))
3142 (inputs
3143 `(("glib" ,glib)
3144 ("libxml2" ,libxml2)
3145 ("zlib" ,zlib)))
3146 (home-page "https://github.com/GNOME/libcroco")
3147 (synopsis "CSS2 parsing and manipulation library")
3148 (description
3149 "Libcroco is a standalone CSS2 parsing and manipulation library.
3150 The parser provides a low level event driven SAC-like API and a CSS object
3151 model like API. Libcroco provides a CSS2 selection engine and an experimental
3152 XML/CSS rendering engine.")
3153
3154 ;; LGPLv2.1-only.
3155 (license license:lgpl2.1)))
3156
3157 (define-public libgsf
3158 (package
3159 (name "libgsf")
3160 (version "1.14.47")
3161 (source (origin
3162 (method url-fetch)
3163 (uri (string-append "mirror://gnome/sources/" name "/"
3164 (version-major+minor version) "/"
3165 name "-" version ".tar.xz"))
3166 (sha256
3167 (base32
3168 "0kbpp9ksl7977xiga37sk1gdw1r039v6zviqznl7alvvg39yp26i"))))
3169 (build-system gnu-build-system)
3170 (arguments
3171 '(#:configure-flags '("--disable-static")))
3172 (native-inputs
3173 `(("pkg-config" ,pkg-config)
3174 ("gettext" ,gettext-minimal)
3175
3176 ;; For tests.
3177 ("perl" ,perl)
3178 ("perl-xml-parser" ,perl-xml-parser)))
3179 (inputs
3180 `(("zlib" ,zlib)
3181 ("bzip2" ,bzip2)))
3182 (propagated-inputs
3183 `(("gdk-pixbuf" ,gdk-pixbuf)
3184 ("glib" ,glib)
3185 ("libxml2" ,libxml2)))
3186 (home-page "https://www.gnome.org/projects/libgsf")
3187 (synopsis "GNOME's Structured File Library")
3188 (description
3189 "Libgsf aims to provide an efficient extensible I/O abstraction for
3190 dealing with different structured file formats.")
3191
3192 ;; LGPLv2.1-only.
3193 (license license:lgpl2.1)))
3194
3195 (define-public librsvg
3196 (package
3197 (name "librsvg")
3198 (version "2.40.21")
3199 (source (origin
3200 (method url-fetch)
3201 (uri (string-append "mirror://gnome/sources/" name "/"
3202 (version-major+minor version) "/"
3203 name "-" version ".tar.xz"))
3204 (sha256
3205 (base32
3206 "1fljkag2gr7c4k5mn798lgf9903xslz8h51bgvl89nnay42qjqpp"))))
3207 (build-system gnu-build-system)
3208 (arguments
3209 `(#:configure-flags
3210 (list "--disable-static"
3211 "--enable-vala") ; needed for e.g. gnome-mines
3212 #:phases
3213 (modify-phases %standard-phases
3214 (add-before 'configure 'pre-configure
3215 (lambda* (#:key inputs #:allow-other-keys)
3216 (substitute* "gdk-pixbuf-loader/Makefile.in"
3217 ;; By default the gdk-pixbuf loader is installed under
3218 ;; gdk-pixbuf's prefix. Work around that.
3219 (("gdk_pixbuf_moduledir = .*$")
3220 (string-append "gdk_pixbuf_moduledir = "
3221 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
3222 "loaders\n"))
3223 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
3224 (("gdk_pixbuf_cache_file = .*$")
3225 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
3226 #t))
3227 (add-before 'check 'remove-failing-tests
3228 (lambda _
3229 (with-directory-excursion "tests/fixtures/reftests"
3230 (for-each delete-file
3231 '(;; This test fails on i686:
3232 "svg1.1/masking-path-04-b.svg"
3233 ;; This test fails on armhf:
3234 "svg1.1/masking-mask-01-b.svg"
3235 ;; This test fails on aarch64:
3236 "bugs/777834-empty-text-children.svg")))
3237 #t)))))
3238 (native-inputs
3239 `(("pkg-config" ,pkg-config)
3240 ("vala" ,vala)
3241 ("glib" ,glib "bin") ; glib-mkenums, etc.
3242 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
3243 (inputs
3244 `(;; XXX: 1.44 causes some test failures, so we stick with 1.42 for
3245 ;; this ancient version of librsvg.
3246 ("pango" ,pango-1.42)
3247 ("libcroco" ,libcroco)
3248 ("bzip2" ,bzip2)
3249 ("libgsf" ,libgsf)
3250 ("libxml2" ,libxml2)))
3251 (propagated-inputs
3252 ;; librsvg-2.0.pc refers to all of that.
3253 `(("cairo" ,cairo)
3254 ("gdk-pixbuf" ,gdk-pixbuf)
3255 ("glib" ,glib)))
3256 (home-page "https://wiki.gnome.org/LibRsvg")
3257 (synopsis "Render SVG files using Cairo")
3258 (description
3259 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
3260 library.")
3261 (license license:lgpl2.0+)))
3262
3263 (define-public librsvg-next
3264 (package
3265 (name "librsvg")
3266 (version "2.50.2")
3267 (source (origin
3268 (method url-fetch)
3269 (uri (string-append "mirror://gnome/sources/librsvg/"
3270 (version-major+minor version) "/"
3271 "librsvg-" version ".tar.xz"))
3272 (sha256
3273 (base32
3274 "1lsnl08b5pjf01q3agixjd53islw5rqkc38r31rlmm2crrqz44b2"))
3275 (modules '((guix build utils)))
3276 (snippet
3277 '(begin (delete-file-recursively "vendor")
3278 #t))))
3279 (build-system cargo-build-system)
3280 (outputs '("out" "doc"))
3281 (arguments
3282 `(#:modules
3283 ((guix build cargo-build-system)
3284 (guix build utils)
3285 ((guix build gnu-build-system) #:prefix gnu:))
3286 #:cargo-inputs
3287 (("rust-bitflags" ,rust-bitflags-1)
3288 ("rust-cairo-rs" ,rust-cairo-rs-0.8)
3289 ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
3290 ("rust-cast" ,rust-cast-0.2)
3291 ("rust-cssparser" ,rust-cssparser-0.27)
3292 ("rust-data-url" ,rust-data-url-0.1)
3293 ("rust-encoding" ,rust-encoding-0.2)
3294 ("rust-float-cmp" ,rust-float-cmp-0.8)
3295 ("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.8)
3296 ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.9)
3297 ("rust-gio" ,rust-gio-0.8)
3298 ("rust-gio-sys" ,rust-gio-sys-0.9)
3299 ("rust-glib" ,rust-glib-0.9)
3300 ("rust-glib-sys" ,rust-glib-sys-0.9)
3301 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
3302 ("rust-itertools" ,rust-itertools-0.9)
3303 ("rust-language-tags" ,rust-language-tags-0.2)
3304 ("rust-libc" ,rust-libc-0.2)
3305 ("rust-locale-config" ,rust-locale-config-0.3)
3306 ("rust-markup5ever" ,rust-markup5ever-0.10)
3307 ("rust-nalgebra" ,rust-nalgebra-0.21)
3308 ("rust-num-traits" ,rust-num-traits-0.2)
3309 ("rust-once-cell" ,rust-once-cell-1)
3310 ("rust-pkg-config" ,rust-pkg-config-0.3)
3311 ("rust-pango" ,rust-pango-0.8)
3312 ("rust-pango-sys" ,rust-pango-sys-0.9)
3313 ("rust-pangocairo" ,rust-pangocairo-0.9)
3314 ("rust-rayon" ,rust-rayon-1)
3315 ("rust-rctree" ,rust-rctree-0.3)
3316 ("rust-rgb" ,rust-rgb-0.8)
3317 ("rust-regex" ,rust-regex-1)
3318 ("rust-selectors" ,rust-selectors-0.22)
3319 ("rust-string-cache" ,rust-string-cache-0.8)
3320 ("rust-tinyvec" ,rust-tinyvec-0.3)
3321 ("rust-url" ,rust-url-2)
3322 ("rust-xml5ever" ,rust-xml5ever-0.16))
3323 #:cargo-development-inputs
3324 (("rust-assert-cmd" ,rust-assert-cmd-1)
3325 ("rust-cairo-rs" ,rust-cairo-rs-0.8)
3326 ("rust-chrono" ,rust-chrono-0.4)
3327 ("rust-criterion" ,rust-criterion-0.3)
3328 ("rust-float-cmp" ,rust-float-cmp-0.8)
3329 ("rust-lopdf" ,rust-lopdf-0.25)
3330 ("rust-png" ,rust-png-0.16)
3331 ("rust-predicates" ,rust-predicates-1)
3332 ("rust-tempfile" ,rust-tempfile-3))
3333 #:phases
3334 (modify-phases %standard-phases
3335 (add-after 'unpack 'patch-docbook-xml
3336 (lambda* (#:key inputs #:allow-other-keys)
3337 (with-directory-excursion "doc"
3338 (substitute* "rsvg-docs.xml"
3339 (("http://www.oasis-open.org/docbook/xml/4.3/")
3340 (string-append (assoc-ref inputs "docbook-xml")
3341 "/xml/dtd/docbook/"))))
3342 #t))
3343 (add-after 'unpack 'prepare-for-build
3344 (lambda _
3345 ;; In lieu of #:make-flags
3346 (setenv "CC" ,(cc-for-target))
3347 ;; Something about the build environment resists building
3348 ;; successfully with the '--locked' flag.
3349 (substitute* '("Makefile.am" "Makefile.in")
3350 (("--locked") ""))
3351 #t))
3352 (add-before 'configure 'pre-configure
3353 (lambda _
3354 (substitute* "gdk-pixbuf-loader/Makefile.in"
3355 ;; By default the gdk-pixbuf loader is installed under
3356 ;; gdk-pixbuf's prefix. Work around that.
3357 (("gdk_pixbuf_moduledir = .*$")
3358 (string-append "gdk_pixbuf_moduledir = "
3359 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
3360 "loaders\n"))
3361 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
3362 (("gdk_pixbuf_cache_file = .*$")
3363 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
3364 #t))
3365 (add-after 'configure 'gnu-configure
3366 (lambda* (#:key inputs native-inputs outputs #:allow-other-keys)
3367 ((assoc-ref gnu:%standard-phases 'configure)
3368 #:native-inputs native-inputs
3369 #:inputs inputs
3370 #:outputs outputs
3371 #:configure-flags
3372 (list "--disable-static"
3373 "--enable-vala"
3374 (string-append "--with-html-dir="
3375 (assoc-ref %outputs "doc")
3376 "/share/gtk-doc/html")))))
3377 (add-after 'configure 'dont-vendor-self
3378 (lambda* (#:key vendor-dir #:allow-other-keys)
3379 ;; Don't keep the whole tarball in the vendor directory
3380 (delete-file-recursively
3381 (string-append vendor-dir "/" ,name "-" ,version ".tar.xz"))
3382 #t))
3383 (replace 'build
3384 (assoc-ref gnu:%standard-phases 'build))
3385 (add-before 'check 'ignore-failing-tests
3386 ;; stderr=```/tmp/guix-build-.../librsvg-2.50.1/rsvg-convert: line 150: ls: command not found
3387 (lambda _
3388 (substitute* "tests/src/cmdline/rsvg_convert.rs"
3389 (("fn background_color_option_invalid_color_yields_error" all)
3390 (string-append "#[ignore] " all))
3391 (("fn empty_input_yields_error" all)
3392 (string-append "#[ignore] " all))
3393 (("fn empty_svg_yields_error" all)
3394 (string-append "#[ignore] " all))
3395 (("fn env_source_data_epoch_empty" all)
3396 (string-append "#[ignore] " all))
3397 (("fn env_source_data_epoch_no_digits" all)
3398 (string-append "#[ignore] " all))
3399 (("fn env_source_data_epoch_trailing_garbage" all)
3400 (string-append "#[ignore] " all))
3401 (("fn export_id_option_error" all)
3402 (string-append "#[ignore] " all))
3403 (("fn huge_zoom_factor_yields_error" all)
3404 (string-append "#[ignore] " all))
3405 (("fn multiple_input_files_not_allowed_for_png_output" all)
3406 (string-append "#[ignore] " all))
3407 (("fn stylesheet_option_error" all)
3408 (string-append "#[ignore] " all)))
3409 #t))
3410 (replace 'check
3411 (lambda* args
3412 ((assoc-ref gnu:%standard-phases 'check)
3413 #:test-target "check")))
3414 (replace 'install
3415 (assoc-ref gnu:%standard-phases 'install)))))
3416 (native-inputs
3417 `(("docbook-xml" ,docbook-xml-4.3)
3418 ("glib" ,glib "bin")
3419 ("gobject-introspection" ,gobject-introspection)
3420 ("pkg-config" ,pkg-config)
3421 ("python" ,python-wrapper)
3422 ("ruby" ,ruby)
3423 ("vala" ,vala)))
3424 (inputs
3425 `(("bzip2" ,bzip2)
3426 ("fontconfig" ,fontconfig)
3427 ("freetype" ,freetype)
3428 ("harfbuzz" ,harfbuzz)
3429 ("libcroco" ,libcroco)
3430 ("libgsf" ,libgsf)
3431 ("libxml2" ,libxml2)
3432 ("pango" ,pango)))
3433 (propagated-inputs
3434 `(("cairo" ,cairo)
3435 ("gdk-pixbuf" ,gdk-pixbuf)
3436 ("glib" ,glib)))
3437 (synopsis "SVG rendering library")
3438 (description "Librsvg is a library to render SVG images to Cairo surfaces.
3439 GNOME uses this to render SVG icons. Outside of GNOME, other desktop
3440 environments use it for similar purposes. Wikimedia uses it for Wikipedia's SVG
3441 diagrams.")
3442 (home-page "https://wiki.gnome.org/LibRsvg")
3443 (license license:lgpl2.1+)))
3444
3445 (define-public libidl
3446 (package
3447 (name "libidl")
3448 (version "0.8.14")
3449 (source (origin
3450 (method url-fetch)
3451 (uri (string-append "mirror://gnome/sources/libIDL/"
3452 (version-major+minor version) "/"
3453 "libIDL-" version ".tar.bz2"))
3454 (sha256
3455 (base32
3456 "08129my8s9fbrk0vqvnmx6ph4nid744g5vbwphzkaik51664vln5"))))
3457 (build-system gnu-build-system)
3458 (inputs `(("glib" ,glib)))
3459 (native-inputs
3460 `(("pkg-config" ,pkg-config)
3461 ("flex" ,flex)
3462 ("bison" ,bison)))
3463 (home-page "http://freecode.com/projects/libidl")
3464 (synopsis "Create trees of CORBA Interface Definition Language files")
3465 (description "Libidl is a library for creating trees of CORBA Interface
3466 Definition Language (idl) files, which is a specification for defining
3467 portable interfaces. libidl was initially written for orbit (the orb from the
3468 GNOME project, and the primary means of libidl distribution). However, the
3469 functionality was designed to be as reusable and portable as possible.")
3470 (properties `((upstream-name . "libIDL")))
3471 (license license:lgpl2.0+)))
3472
3473
3474 (define-public orbit2
3475 (package
3476 (name "orbit2")
3477 (version "2.14.19")
3478 (source (origin
3479 (method url-fetch)
3480 (uri (let ((upstream-name "ORBit2"))
3481 (string-append "mirror://gnome/sources/" upstream-name "/"
3482 (version-major+minor version) "/"
3483 upstream-name "-" version ".tar.bz2")))
3484 (sha256
3485 (base32
3486 "0l3mhpyym9m5iz09fz0rgiqxl2ym6kpkwpsp1xrr4aa80nlh1jam"))))
3487 (build-system gnu-build-system)
3488 (arguments
3489 `(;; The "timeout-server" test hangs when run in parallel.
3490 #:parallel-tests? #f
3491 #:configure-flags
3492 '(;; We don't need static libraries, plus they don't build reproducibly
3493 ;; (non-deterministic ordering of .o files in the archive.)
3494 "--disable-static"
3495
3496 ;; The programmer kindly gives us a hook to turn off deprecation
3497 ;; warnings ...
3498 "DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
3499 ;; ... which they then completly ignore !!
3500 #:phases
3501 (modify-phases %standard-phases
3502 (add-before 'configure 'ignore-deprecations
3503 (lambda _
3504 (substitute* "linc2/src/Makefile.in"
3505 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3506 #t)))))
3507 (inputs `(("glib" ,glib)
3508 ("libidl" ,libidl)))
3509 (native-inputs
3510 `(("pkg-config" ,pkg-config)))
3511 (home-page "https://projects.gnome.org/orbit2/")
3512 (synopsis "CORBA 2.4-compliant Object Request Broker")
3513 (description "ORBit2 is a CORBA 2.4-compliant Object Request Broker (orb)
3514 featuring mature C, C++ and Python bindings.")
3515 ;; Licence notice is unclear. The Web page simply say "GPL" without giving
3516 ;; a version. SOME of the code files have licence notices for GPLv2+.
3517 ;; The tarball contains files of the text of GPLv2 and LGPLv2.
3518 (license license:gpl2+)
3519 (properties `((upstream-name . "ORBit2")))))
3520
3521
3522 (define-public libbonobo
3523 (package
3524 (name "libbonobo")
3525 (version "2.32.1")
3526 (source (origin
3527 (method url-fetch)
3528 (uri (string-append "mirror://gnome/sources/" name "/"
3529 (version-major+minor version)
3530 "/" name "-" version ".tar.bz2"))
3531 (sha256
3532 (base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))
3533 (patches (search-patches
3534 "libbonobo-activation-test-race.patch"))))
3535 (build-system gnu-build-system)
3536 (arguments
3537 ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
3538 `(#:configure-flags
3539 '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
3540 ;; ... which they then completly ignore !!
3541 #:phases
3542 (modify-phases %standard-phases
3543 (add-before 'configure 'ignore-deprecations
3544 (lambda _
3545 (substitute* "activation-server/Makefile.in"
3546 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3547 #t)))
3548
3549 ;; There's apparently a race condition between the server stub
3550 ;; generation and linking of the example under 'samples/echo' that can
3551 ;; lead do undefined references when building in parallel, as reported
3552 ;; at <https://forums.gentoo.org/viewtopic-t-223376-start-550.html>.
3553 ;; Thus, disable parallel builds.
3554 #:parallel-build? #f))
3555 (inputs `(("popt" ,popt)
3556 ("libxml2" ,libxml2)))
3557 ;; The following are Required by the .pc file
3558 (propagated-inputs
3559 `(("glib" ,glib)
3560 ("orbit2" ,orbit2)))
3561 (native-inputs
3562 `(("intltool" ,intltool)
3563 ("pkg-config" ,pkg-config)
3564 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3565 ("flex" ,flex)
3566 ("bison" ,bison)))
3567 (home-page "https://developer.gnome.org/libbonobo/")
3568 (synopsis "Framework for creating reusable components for use in GNOME applications")
3569 (description "Bonobo is a framework for creating reusable components for
3570 use in GNOME applications, built on top of CORBA.")
3571 ;; Licence not explicitly stated. Source files contain no licence notices.
3572 ;; Tarball contains text of both GPLv2 and LGPLv2
3573 ;; GPLv2 covers both conditions
3574 (license license:gpl2+)))
3575
3576
3577 (define-public gconf
3578 (package
3579 (name "gconf")
3580 (version "3.2.6")
3581 (source (origin
3582 (method url-fetch)
3583 (uri
3584 (let ((upstream-name "GConf"))
3585 (string-append "mirror://gnome/sources/" upstream-name "/"
3586 (version-major+minor version) "/"
3587 upstream-name "-" version ".tar.xz")))
3588 (sha256
3589 (base32 "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr"))))
3590 (build-system gnu-build-system)
3591 (inputs `(("dbus-glib" ,dbus-glib)
3592 ("libxml2" ,libxml2)))
3593 (propagated-inputs `(("glib" ,glib) ; referred to in the .pc file
3594 ("orbit2" ,orbit2)))
3595 (native-inputs
3596 `(("intltool" ,intltool)
3597 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3598 ("pkg-config" ,pkg-config)))
3599 (home-page "https://projects.gnome.org/gconf/")
3600 (synopsis "Store application preferences")
3601 (description "Gconf is a system for storing application preferences. It
3602 is intended for user preferences; not arbitrary data storage.")
3603 (license license:lgpl2.0+)
3604 (properties '((upstream-name . "GConf")))))
3605
3606
3607 (define-public gnome-mime-data
3608 (package
3609 (name "gnome-mime-data")
3610 (version "2.18.0")
3611 (source (origin
3612 (method url-fetch)
3613 (uri (string-append "mirror://gnome/sources/" name "/"
3614 (version-major+minor version) "/"
3615 name "-" version ".tar.bz2"))
3616 (sha256
3617 (base32
3618 "1mvg8glb2a40yilmyabmb7fkbzlqd3i3d31kbkabqnq86xdnn69p"))))
3619 (build-system gnu-build-system)
3620 (native-inputs
3621 `(("perl" ,perl)
3622 ("intltool" ,intltool)))
3623 (arguments
3624 '(#:phases (modify-phases %standard-phases
3625 (add-after 'configure 'use-our-intltool
3626 (lambda _
3627 ;; Do not use the bundled intltool commands, which lack
3628 ;; the "dotless @INC" fixes of our 'intltool' package.
3629 (substitute* (find-files "." "^Makefile$")
3630 (("^INTLTOOL_(EXTRACT|UPDATE|MERGE) = .*$" _ tool)
3631 (string-append "INTLTOOL_" tool " = intltool-"
3632 (string-downcase tool) "\n")))
3633 #t)))))
3634 (home-page "https://www.gnome.org")
3635 (synopsis "Base MIME and Application database for GNOME")
3636 (description "GNOME Mime Data is a module which contains the base MIME
3637 and Application database for GNOME. The data stored by this module is
3638 designed to be accessed through the MIME functions in GnomeVFS.")
3639 (license license:gpl2+)))
3640
3641
3642 (define-public gnome-vfs
3643 (package
3644 (name "gnome-vfs")
3645 (version "2.24.4")
3646 (source (origin
3647 (method url-fetch)
3648 (uri (string-append "mirror://gnome/sources/" name "/"
3649 (version-major+minor version) "/"
3650 name "-" version ".tar.bz2"))
3651 (sha256
3652 (base32
3653 "1ajg8jb8k3snxc7rrgczlh8daxkjidmcv3zr9w809sq4p2sn9pk2"))))
3654 (build-system gnu-build-system)
3655 (arguments
3656 `(#:phases
3657 (modify-phases %standard-phases
3658 (add-before 'configure 'ignore-deprecations
3659 (lambda _
3660 (substitute* '("libgnomevfs/Makefile.in"
3661 "daemon/Makefile.in")
3662 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3663 #t))
3664 (add-before 'configure 'patch-test-async-cancel-to-never-fail
3665 (lambda _
3666 (substitute* "test/test-async-cancel.c"
3667 (("EXIT_FAILURE") "77"))
3668 #t)))))
3669 (inputs `(("libxml2" ,libxml2)
3670 ("dbus-glib" ,dbus-glib)
3671 ("gconf" ,gconf)
3672 ("gnome-mime-data" ,gnome-mime-data)
3673 ("zlib" ,zlib)))
3674 (native-inputs
3675 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3676 ("intltool" ,intltool)
3677 ("pkg-config" ,pkg-config)))
3678 (home-page "https://developer.gnome.org/gnome-vfs/")
3679 (synopsis "Access files and folders in GNOME applications")
3680 (description
3681 "GnomeVFS is the core library used to access files and folders in GNOME
3682 applications. It provides a file system abstraction which allows applications
3683 to access local and remote files with a single consistent API.")
3684 (license license:lgpl2.0+)))
3685
3686
3687
3688 (define-public libgnome
3689 (package
3690 (name "libgnome")
3691 (version "2.32.1")
3692 (source (origin
3693 (method url-fetch)
3694 (uri (string-append "mirror://gnome/sources/" name "/"
3695 (version-major+minor version) "/"
3696 name "-" version ".tar.bz2"))
3697 (sha256
3698 (base32
3699 "197pnq8y0knqjhm2fg4j6hbqqm3qfzfnd0irhwxpk1b4hqb3kimj"))
3700 (patches (search-patches "libgnome-encoding.patch"))))
3701 (build-system gnu-build-system)
3702 (arguments
3703 `(#:phases
3704 (modify-phases %standard-phases
3705 (add-before 'configure 'enable-deprecated
3706 (lambda _
3707 (substitute* "libgnome/Makefile.in"
3708 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3709 #t)))))
3710 (inputs `(("libxml2" ,libxml2)))
3711 (native-inputs
3712 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3713 ("intltool" ,intltool)
3714 ("pkg-config" ,pkg-config)))
3715 ;; The following are listed as Required in the .pc file
3716 ;; (except for libcanberra -- which seems to be oversight on the part
3717 ;; of the upstream developers -- anything that links against libgnome,
3718 ;; must also link against libcanberra
3719 (propagated-inputs
3720 `(("libcanberra" ,libcanberra)
3721 ("libbonobo" ,libbonobo)
3722 ("gconf" ,gconf)
3723 ("gnome-vfs" ,gnome-vfs)
3724 ("popt" ,popt))) ;gnome-program.h includes popt.h
3725 (home-page "https://developer.gnome.org/libgnome/")
3726 (synopsis "Useful routines for building applications")
3727 (description "The libgnome library provides a number of useful routines
3728 for building modern applications, including session management, activation of
3729 files and URIs, and displaying help.")
3730 (license license:lgpl2.0+)))
3731
3732
3733 (define-public libart-lgpl
3734 (package
3735 (name "libart-lgpl")
3736 (version "2.3.21")
3737 (source (origin
3738 (method url-fetch)
3739 (uri (let ((upstream-name "libart_lgpl"))
3740 (string-append "mirror://gnome/sources/" upstream-name "/"
3741 (version-major+minor version) "/"
3742 upstream-name "-" version ".tar.bz2")))
3743 (sha256
3744 (base32
3745 "1yknfkyzgz9s616is0l9gp5aray0f2ry4dw533jgzj8gq5s1xhgx"))))
3746 (build-system gnu-build-system)
3747 (native-inputs
3748 `(("pkg-config" ,pkg-config)))
3749 (home-page "https://people.gnome.org/~mathieu/libart")
3750 (synopsis "2D drawing library")
3751 (description "Libart is a 2D drawing library intended as a
3752 high-quality vector-based 2D library with antialiasing and alpha composition.")
3753 (license license:lgpl2.0+)))
3754
3755
3756
3757 (define-public libgnomecanvas
3758 (package
3759 (name "libgnomecanvas")
3760 (version "2.30.3")
3761 (source (origin
3762 (method url-fetch)
3763 (uri (string-append "mirror://gnome/sources/" name "/"
3764 (version-major+minor version) "/"
3765 name "-" version ".tar.gz"))
3766 (sha256
3767 (base32
3768 "1nhnq4lfkk8ljkdafscwaggx0h95mq0rxnd7zgqyq0xb6kkqbjm8"))))
3769 (build-system gnu-build-system)
3770 ;; Mentioned as Required in the .pc file
3771 (propagated-inputs `(("libart-lgpl" ,libart-lgpl)
3772 ("gtk+" ,gtk+-2)))
3773 (native-inputs
3774 `(("intltool" ,intltool)
3775 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3776 ("pkg-config" ,pkg-config)))
3777 (home-page "https://developer.gnome.org/libgnomecanvas/")
3778 (synopsis "Flexible widget for creating interactive structured graphics")
3779 (description "The GnomeCanvas widget provides a flexible widget for
3780 creating interactive structured graphics.")
3781 (license license:lgpl2.0+)))
3782
3783 (define-public libgnomecanvasmm
3784 (package
3785 (name "libgnomecanvasmm")
3786 (version "2.26.0")
3787 (source (origin
3788 (method url-fetch)
3789 (uri (string-append "mirror://gnome/sources/" name "/"
3790 (version-major+minor version) "/"
3791 name "-" version ".tar.bz2"))
3792 (sha256
3793 (base32
3794 "0679hcnpam2gkag2i63sm0wdm35gwvzafnz1354mg6j5gzwpfrcr"))))
3795 (build-system gnu-build-system)
3796 (propagated-inputs `(("libgnomecanvas" ,libgnomecanvas)))
3797 (native-inputs
3798 `(("gtkmm-2" ,gtkmm-2)
3799 ("pkg-config" ,pkg-config)))
3800 (home-page "https://gtkmm.org")
3801 (synopsis "C++ bindings to the GNOME Canvas library")
3802 (description "C++ bindings to the GNOME Canvas library.")
3803 (license license:lgpl2.0+)))
3804
3805 (define-public libgnomeui
3806 (package
3807 (name "libgnomeui")
3808 (version "2.24.5")
3809 (source (origin
3810 (method url-fetch)
3811 (uri (string-append "mirror://gnome/sources/" name "/"
3812 (version-major+minor version) "/"
3813 name "-" version ".tar.bz2"))
3814 (patches (search-patches "libgnomeui-utf8.patch"))
3815 (sha256
3816 (base32
3817 "03rwbli76crkjl6gp422wrc9lqpl174k56cp9i96b7l8jlj2yddf"))))
3818 (build-system gnu-build-system)
3819 ;; Mentioned as Required in the .pc file
3820 (propagated-inputs `(("libbonoboui" ,libbonoboui)
3821 ("libgnome" ,libgnome)
3822 ("libgnomecanvas" ,libgnomecanvas)
3823 ("libgnome-keyring" ,libgnome-keyring)))
3824 (inputs `(("libjpeg" ,libjpeg-turbo)
3825 ("popt" ,popt)
3826 ("libbonobo" ,libbonobo)
3827 ("libxml2" ,libxml2)
3828 ("libglade" ,libglade)))
3829 (native-inputs
3830 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3831 ("intltool" ,intltool)
3832 ("pkg-config" ,pkg-config)))
3833 (home-page "https://developer.gnome.org/libgnomeui/")
3834 (synopsis "Additional widgets for applications")
3835 (description "The libgnomeui library provides additional widgets for
3836 applications. Many of the widgets from libgnomeui have already been
3837 ported to GTK+.")
3838 (license license:lgpl2.0+)))
3839
3840 (define-public libglade
3841 (package
3842 (name "libglade")
3843 (version "2.6.4")
3844 (source (origin
3845 (method url-fetch)
3846 (uri (string-append "mirror://gnome/sources/" name "/"
3847 (version-major+minor version) "/"
3848 name "-" version ".tar.bz2"))
3849 (sha256
3850 (base32
3851 "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4"))))
3852 (build-system gnu-build-system)
3853 (inputs
3854 `(("python" ,python))) ;; needed for the optional libglade-convert program
3855 (propagated-inputs
3856 `(("gtk+-2" ,gtk+-2)
3857 ("libxml2" ,libxml2))) ; required by libglade-2.0.pc
3858 (native-inputs
3859 `(("pkg-config" ,pkg-config)))
3860 (home-page "https://developer.gnome.org/libglade")
3861 (synopsis "Load glade interfaces and access the glade built widgets")
3862 (description "Libglade is a library that provides interfaces for loading
3863 graphical interfaces described in glade files and for accessing the
3864 widgets built in the loading process.")
3865 (license license:gpl2+))) ; This is correct. GPL not LGPL
3866
3867 (define-public libgnomeprint
3868 ;; This library has been deprecated since 2006; see
3869 ;; <https://mail.gnome.org/archives/devel-announce-list/2006-August/msg00005.html>.
3870 (package
3871 (name "libgnomeprint")
3872 (version "2.18.8")
3873 (source (origin
3874 (method url-fetch)
3875 (uri (string-append "mirror://gnome/sources/" name "/"
3876 (version-major+minor version) "/"
3877 name "-" version ".tar.bz2"))
3878 (sha256
3879 (base32
3880 "14cnimvlc7ky22g2snyf4362412k3jk1syjf8b9887q5a63fqd0h"))))
3881 (build-system gnu-build-system)
3882 (inputs
3883 `(("popt" ,popt)
3884 ("libart-lgpl" ,libart-lgpl)
3885 ("gtk+" ,gtk+-2)
3886 ("libxml2" ,libxml2)))
3887 (native-inputs
3888 `(("intltool" ,intltool)
3889 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3890 ("pkg-config" ,pkg-config)))
3891 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
3892 (synopsis "Printing framework for GNOME")
3893 (description
3894 "GNOME-print was a printing framework for GNOME. It has been deprecated
3895 since ca. 2006, when GTK+ itself incorporated printing support.")
3896 (license license:lgpl2.0+)))
3897
3898
3899 (define-public libgnomeprintui
3900 ;; Deprecated; see libgnomeprint.
3901 (package
3902 (name "libgnomeprintui")
3903 (version "2.18.6")
3904 (source (origin
3905 (method url-fetch)
3906 (uri (string-append "mirror://gnome/sources/" name "/"
3907 (version-major+minor version) "/"
3908 name "-" version ".tar.bz2"))
3909 (sha256
3910 (base32
3911 "0spl8vinb5n6n1krnfnr61dwaxidg67h8j94z9p59k2xdsvfashm"))))
3912 (build-system gnu-build-system)
3913 ;; Mentioned as Required in the .pc file
3914 (propagated-inputs `(("libgnomeprint" ,libgnomeprint)))
3915 (inputs `(("gtk+" ,gtk+-2)
3916 ("glib" ,glib)
3917 ("gnome-icon-theme" ,gnome-icon-theme)
3918 ("libgnomecanvas" ,libgnomecanvas)
3919 ("libxml2" ,libxml2)))
3920 (native-inputs
3921 `(("intltool" ,intltool)
3922 ("pkg-config" ,pkg-config)))
3923 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
3924 (synopsis "Printing framework for GNOME")
3925 (description (package-description libgnomeprint))
3926 (license license:lgpl2.0+)))
3927
3928 (define-public libbonoboui
3929 (package
3930 (name "libbonoboui")
3931 (version "2.24.5")
3932 (source (origin
3933 (method url-fetch)
3934 (uri (string-append "mirror://gnome/sources/" name "/"
3935 (version-major+minor version) "/"
3936 name "-" version ".tar.bz2"))
3937 (sha256
3938 (base32
3939 "1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
3940 (build-system gnu-build-system)
3941 (arguments
3942 `(#:phases
3943 (modify-phases %standard-phases
3944 (add-before 'check 'start-xserver
3945 (lambda* (#:key inputs #:allow-other-keys)
3946 (let ((xorg-server (assoc-ref inputs "xorg-server"))
3947 (disp ":1"))
3948
3949 (setenv "HOME" (getcwd))
3950 (setenv "DISPLAY" disp)
3951 ;; There must be a running X server and make check doesn't start one.
3952 ;; Therefore we must do it.
3953 (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))))))
3954 ;; Mentioned as Required by the .pc file
3955 (propagated-inputs `(("libxml2" ,libxml2)))
3956 (inputs
3957 `(("popt" ,popt)
3958 ("pangox-compat" ,pangox-compat)
3959 ("libgnome" ,libgnome)
3960 ("libgnomecanvas" ,libgnomecanvas)
3961 ("libglade" ,libglade)))
3962 (native-inputs
3963 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
3964 ("intltool" ,intltool)
3965 ("xorg-server" ,xorg-server-for-tests) ; For running the tests
3966 ("pkg-config" ,pkg-config)))
3967 (home-page "https://developer.gnome.org/libbonoboui/")
3968 (synopsis "Some user interface controls using Bonobo")
3969 (description "The Bonobo UI library provides a number of user interface
3970 controls using the Bonobo component framework.")
3971 (license license:lgpl2.0+)))
3972
3973 (define-public libwnck
3974 (package
3975 (name "libwnck")
3976 (version "3.32.0")
3977 (source (origin
3978 (method url-fetch)
3979 (uri (string-append "mirror://gnome/sources/" name "/"
3980 (version-major+minor version) "/"
3981 name "-" version ".tar.xz"))
3982 (sha256
3983 (base32
3984 "1jp3p1lnwnwi6fxl2rz3166cmwzwy9vqz896anpwc3wdy9f875cm"))))
3985 (build-system meson-build-system)
3986 (native-inputs
3987 `(("pkg-config" ,pkg-config)
3988 ("glib" ,glib "bin") ; for glib-mkenums
3989 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
3990 ("intltool" ,intltool)))
3991 (propagated-inputs
3992 `(("gtk+" ,gtk+)
3993 ("libxres" ,libxres)
3994 ("startup-notification" ,startup-notification)))
3995 (home-page "https://developer.gnome.org/libwnck/")
3996 (synopsis "Window Navigator Construction Kit")
3997 (description
3998 "Libwnck is the Window Navigator Construction Kit, a library for use in
3999 writing pagers, tasklists, and more generally applications that are dealing
4000 with window management. It tries hard to respect the Extended Window Manager
4001 Hints specification (EWMH).")
4002 (license license:lgpl2.0+)))
4003
4004 ;; stable version for gtk2, required by xfwm4.
4005 (define-public libwnck-2
4006 (package (inherit libwnck)
4007 (name "libwnck")
4008 (version "2.30.7")
4009 (source (origin
4010 (method url-fetch)
4011 (uri (string-append "mirror://gnome/sources/" name "/"
4012 (version-major+minor version) "/"
4013 name "-" version ".tar.xz"))
4014 (sha256
4015 (base32
4016 "15713yl0f8f3p99jzqqfmbicrdswd3vwpx7r3bkf1bgh6d9lvs4b"))))
4017 (build-system gnu-build-system)
4018 (native-inputs
4019 `(("pkg-config" ,pkg-config)
4020 ("intltool" ,intltool)))
4021 (propagated-inputs
4022 `(("gtk+" ,gtk+-2)
4023 ("libxres" ,libxres)
4024 ("startup-notification" ,startup-notification)))))
4025
4026 (define-public goffice
4027 (package
4028 (name "goffice")
4029 (version "0.10.48")
4030 (source (origin
4031 (method url-fetch)
4032 (uri (string-append "mirror://gnome/sources/goffice/"
4033 (version-major+minor version) "/"
4034 "goffice-" version ".tar.xz"))
4035 (sha256
4036 (base32 "1z6f3q8fxkd1ysqrwdxdi0844zqa00vjpf07gq8mh3kal8picfd4"))))
4037 (build-system gnu-build-system)
4038 (outputs '("out"
4039 "doc")) ; 4.0 MiB of gtk-doc
4040 (arguments
4041 '(#:configure-flags (list (string-append "--with-html-dir="
4042 (assoc-ref %outputs "doc")
4043 "/share/gtk-doc/html"))))
4044 (inputs
4045 `(("gtk+" ,gtk+)
4046 ("libgsf" ,libgsf)
4047 ("librsvg" ,librsvg)
4048 ("libxslt" ,libxslt)
4049 ("libxml2" ,libxml2)))
4050 (native-inputs
4051 `(("intltool" ,intltool)
4052 ("glib" ,glib "bin")
4053 ("pkg-config" ,pkg-config)))
4054 (home-page "https://developer.gnome.org/goffice/")
4055 (synopsis "Document-centric objects and utilities")
4056 (description "A GLib/GTK+ set of document-centric objects and utilities.")
4057 (license
4058 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
4059 ;; Note: NOT LGPL
4060 (list license:gpl2 license:gpl3))))
4061
4062 (define-public goffice-0.8
4063 (package (inherit goffice)
4064 (version "0.8.17")
4065 (source (origin
4066 (method url-fetch)
4067 (uri (string-append "mirror://gnome/sources/" (package-name goffice) "/"
4068 (version-major+minor version) "/"
4069 (package-name goffice) "-" version ".tar.xz"))
4070 (sha256
4071 (base32 "05fvzbs5bin05bbsr4dp79aiva3lnq0a3a40zq55i13vnsz70l0n"))))
4072 (arguments
4073 `(#:phases
4074 (modify-phases %standard-phases
4075 (add-after 'unpack 'fix-pcre-check
4076 (lambda _
4077 ;; Only glib.h can be included directly. See
4078 ;; https://bugzilla.gnome.org/show_bug.cgi?id=670316
4079 (substitute* "configure"
4080 (("glib/gregex\\.h") "glib.h")) #t)))
4081
4082 ,@(package-arguments goffice)))
4083 (propagated-inputs
4084 ;; libgoffice-0.8.pc mentions libgsf-1
4085 `(("libgsf" ,libgsf)))
4086 (inputs
4087 `(("gtk" ,gtk+-2)
4088 ,@(alist-delete "gtk" (package-inputs goffice))))))
4089
4090 (define-public gnumeric
4091 (package
4092 (name "gnumeric")
4093 (version "1.12.48")
4094 (source (origin
4095 (method url-fetch)
4096 (uri (string-append "mirror://gnome/sources/gnumeric/"
4097 (version-major+minor version) "/"
4098 "gnumeric-" version ".tar.xz"))
4099 (sha256
4100 (base32
4101 "14556b0vyxdvdwjlin0rv7jk0vq4nplbmvp9j89bhkfk84xf7k2p"))))
4102 (build-system glib-or-gtk-build-system)
4103 (arguments
4104 `(;; The gnumeric developers don't worry much about failing tests.
4105 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
4106 #:tests? #f
4107 #:phases
4108 (modify-phases %standard-phases
4109 (add-before
4110 'configure 'pre-conf
4111 (lambda* (#:key outputs #:allow-other-keys)
4112 ;; Make install tries to write into the directory of goffice
4113 ;; I am informed that this only affects the possibility to embed a
4114 ;; spreadsheet inside an Abiword document. So presumably when we
4115 ;; package Abiword we'll have to refer it to this directory.
4116 (substitute* "configure"
4117 (("^GOFFICE_PLUGINS_DIR=.*")
4118 (string-append "GOFFICE_PLUGINS_DIR="
4119 (assoc-ref outputs "out")
4120 "/goffice/plugins"))))))))
4121 (inputs
4122 `(("glib" ,glib)
4123 ("gtk+" ,gtk+)
4124 ("goffice" ,goffice)
4125 ("libgsf" ,libgsf)
4126 ("librsvg" ,librsvg)
4127 ("libxml2" ,libxml2)
4128 ("libxslt" ,libxslt)
4129 ("python" ,python)
4130 ("python-pygobject" ,python-pygobject)
4131 ("zlib" ,zlib)))
4132 (native-inputs
4133 `(("bison" ,bison)
4134 ("docbook-xml" ,docbook-xml)
4135 ("intltool" ,intltool)
4136 ("itstool" ,itstool)
4137 ("glib:bin" ,glib "bin")
4138 ("pkg-config" ,pkg-config)))
4139 (home-page "http://www.gnumeric.org")
4140 (synopsis "Spreadsheet application")
4141 (description
4142 "GNUmeric is a GNU spreadsheet application, running under GNOME. It is
4143 interoperable with other spreadsheet applications. It has a vast array of
4144 features beyond typical spreadsheet functionality, such as support for linear
4145 and non-linear solvers, statistical analysis, and telecommunication
4146 engineering.")
4147 (license
4148 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
4149 (list license:gpl2 license:gpl3))))
4150
4151 (define-public gnome-themes-standard
4152 (package
4153 (name "gnome-themes-standard")
4154 (version "3.22.3")
4155 (source
4156 (origin
4157 (method url-fetch)
4158 (uri (string-append "mirror://gnome/sources/" name "/"
4159 (version-major+minor version) "/" name "-"
4160 version ".tar.xz"))
4161 (sha256
4162 (base32
4163 "0smmiamrgcgf5sa88bsn8hwmvsyx4gczzs359nwxbkv14b2qgp31"))))
4164 (build-system gnu-build-system)
4165 (arguments
4166 '(#:configure-flags
4167 ;; Don't create 'icon-theme.cache'.
4168 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
4169 (true (string-append coreutils "/bin/true")))
4170 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
4171 (inputs
4172 `(("gtk+" ,gtk+)
4173 ("gtk+-2" ,gtk+-2)
4174 ("librsvg" ,librsvg)
4175 ("libxml2" ,libxml2)
4176 ("glib" ,glib)))
4177 (native-inputs
4178 `(("intltool" ,intltool)
4179 ("glib:bin" ,glib "bin")
4180 ("pkg-config" ,pkg-config)))
4181 (home-page "https://launchpad.net/gnome-themes-standard")
4182 (synopsis "Default GNOME 3 themes")
4183 (description
4184 "The default GNOME 3 themes (Adwaita and some accessibility themes).")
4185 (license license:lgpl2.1+)))
4186
4187 (define-public seahorse
4188 (package
4189 (name "seahorse")
4190 (version "3.36.2")
4191 (source
4192 (origin
4193 (method url-fetch)
4194 (uri (string-append "mirror://gnome/sources/" name "/"
4195 (version-major+minor version) "/" name "-"
4196 version ".tar.xz"))
4197 (sha256
4198 (base32 "16wmxxppgcgfj8zkagcny5af1c81x32ysm9d6j9f2k7bmik21ss5"))))
4199 (build-system meson-build-system)
4200 (arguments
4201 '(#:glib-or-gtk? #t
4202 #:phases
4203 (modify-phases %standard-phases
4204 (add-after 'unpack 'skip-gtk-update-icon-cache
4205 ;; Don't create 'icon-theme.cache'.
4206 (lambda _
4207 (substitute* "build-aux/meson_post_install.py"
4208 (("gtk-update-icon-cache") "true"))
4209 #t)))))
4210 (inputs
4211 `(("gtk+" ,gtk+)
4212 ("gcr" ,gcr)
4213 ("gnupg" ,gnupg)
4214 ("gpgme" ,gpgme)
4215 ("openldap" ,openldap)
4216 ("openssh" ,openssh)
4217 ("avahi" ,avahi)
4218 ("libhandy" ,libhandy-0.0)
4219 ("libpwquality" ,libpwquality)
4220 ("libsecret" ,libsecret)
4221 ("libsoup" ,libsoup)))
4222 (native-inputs
4223 `(("gettext" ,gettext-minimal)
4224 ("glib:bin" ,glib "bin")
4225 ("itstool" ,itstool)
4226 ("pkg-config" ,pkg-config)
4227 ("vala" ,vala)
4228 ("xmllint" ,libxml2)))
4229 (home-page "https://wiki.gnome.org/Apps/Seahorse")
4230 (synopsis "Manage encryption keys and passwords in the GNOME keyring")
4231 (description
4232 "Seahorse is a GNOME application for managing encryption keys and
4233 passwords in the GNOME keyring.")
4234 (license license:gpl2+)))
4235
4236 (define-public vala
4237 (package
4238 (name "vala")
4239 (version "0.46.5")
4240 (source (origin
4241 (method url-fetch)
4242 (uri (string-append "mirror://gnome/sources/" name "/"
4243 (version-major+minor version) "/"
4244 name "-" version ".tar.xz"))
4245 (sha256
4246 (base32
4247 "07fv895sp9wq74b20qig7hic0r4ynrr5pfaqba02r44xb794fy0s"))))
4248 (build-system gnu-build-system)
4249 (arguments
4250 '(#:phases
4251 (modify-phases %standard-phases
4252 (add-before 'check 'pre-check
4253 (lambda _
4254 (setenv "CC" "gcc")
4255 (substitute* "valadoc/tests/testrunner.sh"
4256 (("export PKG_CONFIG_PATH=" m)
4257 (string-append m "$PKG_CONFIG_PATH:")))
4258 ;; For missing '/etc/machine-id'.
4259 (setenv "DBUS_FATAL_WARNINGS" "0")
4260 #t)))))
4261 (native-inputs
4262 `(("pkg-config" ,pkg-config)
4263 ("flex" ,flex)
4264 ("bison" ,bison)
4265 ("xsltproc" ,libxslt)
4266 ("dbus" ,dbus) ; for dbus tests
4267 ("gobject-introspection" ,gobject-introspection))) ; for gir tests
4268 (inputs
4269 `(("graphviz" ,graphviz)))
4270 (propagated-inputs
4271 `(("glib" ,glib))) ; required by libvala-0.40.pc
4272 (home-page "https://wiki.gnome.org/Projects/Vala/")
4273 (synopsis "Compiler for the GObject type system")
4274 (description
4275 "Vala is a programming language that aims to bring modern programming
4276 language features to GNOME developers without imposing any additional runtime
4277 requirements and without using a different ABI compared to applications and
4278 libraries written in C.")
4279 (license license:lgpl2.1+)))
4280
4281 (define-public vala-0.50
4282 (package
4283 (inherit vala)
4284 (version "0.50.2")
4285 (source (origin
4286 (method url-fetch)
4287 (uri (string-append "mirror://gnome/sources/vala/"
4288 (version-major+minor version) "/"
4289 "vala-" version ".tar.xz"))
4290 (sha256
4291 (base32
4292 "1nnf0x6vk0a9p2y6z7jwjfvmlxh3qhj581v381r0y1sxsv35s39c"))))))
4293
4294 (define-public vte
4295 (package
4296 (name "vte")
4297 (version "0.60.3")
4298 (source (origin
4299 (method url-fetch)
4300 (uri (string-append "mirror://gnome/sources/vte/"
4301 (version-major+minor version) "/"
4302 "vte-" version ".tar.xz"))
4303 (sha256
4304 (base32
4305 "0al2v6fn061v4j1wwvppim1q283y2a6s0iyl29hxhmx3h48nxdzy"))))
4306 (build-system meson-build-system)
4307 (arguments
4308 `(#:configure-flags
4309 '("-Dvapi=true"
4310 "-D_systemd=false")))
4311 (native-inputs
4312 `(("pkg-config" ,pkg-config)
4313 ("gettext" ,gettext-minimal)
4314 ("vala" ,vala)
4315 ("gobject-introspection" ,gobject-introspection)
4316 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
4317 ("gperf" ,gperf)
4318 ("xmllint" ,libxml2)))
4319 (propagated-inputs
4320 `(("gtk+" ,gtk+) ; required by vte-2.91.pc
4321 ("gnutls" ,gnutls) ; ditto
4322 ("pcre2" ,pcre2))) ; ditto
4323 (home-page "https://www.gnome.org/")
4324 (synopsis "Virtual Terminal Emulator")
4325 (description
4326 "VTE is a library (libvte) implementing a terminal emulator widget for
4327 GTK+, and a minimal sample application (vte) using that. Vte is mainly used in
4328 gnome-terminal, but can also be used to embed a console/terminal in games,
4329 editors, IDEs, etc.")
4330 (license license:lgpl2.1+)))
4331
4332 (define-public vte-ng
4333 (package
4334 (inherit vte)
4335 (name "vte-ng")
4336 (version "0.58.2.a")
4337 (home-page "https://github.com/thestinger/vte-ng")
4338 (source (origin
4339 (method git-fetch)
4340 (uri (git-reference (url home-page) (commit version)))
4341 (file-name (git-file-name name version))
4342 (sha256
4343 (base32
4344 "0rnm5c6m3abbm81jsfdas0y80z299ny54gr4syn4bfrms3s4g19l"))))
4345 (build-system meson-build-system)
4346 (native-inputs
4347 `(("gtk-doc" ,gtk-doc)
4348 ,@(package-native-inputs vte)))
4349 (arguments
4350 `(#:configure-flags '("-Ddocs=true")))
4351 (synopsis "Enhanced VTE terminal widget")
4352 (description
4353 "VTE is a library (libvte) implementing a terminal emulator widget for
4354 GTK+, this fork provides additional functions exposed for keyboard text
4355 selection and URL hints.")))
4356
4357 ;; Stable version for gtk2, required by gnurobots and lxterminal as of 2020-07.
4358 (define-public vte/gtk+-2
4359 (package (inherit vte)
4360 (name "vte")
4361 (version "0.28.2")
4362 (source (origin
4363 (method url-fetch)
4364 (uri (string-append "mirror://gnome/sources/" name "/"
4365 (version-major+minor version) "/"
4366 name "-" version ".tar.xz"))
4367 (sha256
4368 (base32
4369 "1bmhahkf8wdsra9whd3k5l5z4rv7r58ksr8mshzajgq2ma0hpkw6"))
4370 (patches (search-patches
4371 "vte-CVE-2012-2738-pt1.patch"
4372 "vte-CVE-2012-2738-pt2.patch"))))
4373 (build-system gnu-build-system)
4374 (arguments
4375 '(#:configure-flags '("--disable-python")))
4376 (native-inputs
4377 `(("pkg-config" ,pkg-config)
4378 ("intltool" ,intltool)
4379 ("glib" ,glib "bin"))) ; for glib-genmarshal, etc.
4380 (propagated-inputs
4381 `(("gtk+" ,gtk+-2) ; required by libvte.pc
4382 ("ncurses" ,ncurses))))) ; required by libvte.la
4383
4384 (define-public vinagre
4385 (package
4386 (name "vinagre")
4387 (version "3.22.0")
4388 (source (origin
4389 (method url-fetch)
4390 (uri (string-append "mirror://gnome/sources/" name "/"
4391 (version-major+minor version) "/"
4392 name "-" version ".tar.xz"))
4393 (patches (search-patches "vinagre-newer-freerdp.patch"
4394 "vinagre-newer-rdp-parameters.patch"))
4395 (sha256
4396 (base32
4397 "10jya3jyrm18nbw3v410gbkc7677bqamax44pzgd3j15randn76d"))))
4398 (build-system glib-or-gtk-build-system)
4399 (arguments
4400 ;; Disable -Werror and such, to avoid build failures on compilation
4401 ;; warnings.
4402 '(#:configure-flags '("--enable-compile-warnings=minimum")
4403 #:phases
4404 (modify-phases %standard-phases
4405 (add-before 'install 'skip-gtk-update-icon-cache
4406 (lambda _
4407 ;; Don't create 'icon-theme.cache'
4408 (substitute* (find-files "." "^Makefile$")
4409 (("gtk-update-icon-cache") (which "true")))
4410 #t))
4411 (add-after 'unpack 'patch-configure
4412 (lambda _
4413 (substitute* "configure"
4414 (("freerdp") "freerdp2"))
4415 #t)))))
4416 (native-inputs
4417 `(("pkg-config" ,pkg-config)
4418 ("intltool" ,intltool)
4419 ("itstool" ,itstool)
4420 ("glib-bin" ,glib "bin"))) ;for glib-compile-schemas
4421 (inputs
4422 `(("libxml2" ,libxml2)
4423 ("gtk-vnc" ,gtk-vnc)
4424 ("gnome-keyring" ,gnome-keyring)
4425 ("libsecret" ,libsecret)
4426 ("freerdp" ,freerdp)
4427 ("spice" ,spice)
4428 ("spice-gtk" ,spice-gtk)
4429 ("telepathy-glib" ,telepathy-glib)
4430 ("vte" ,vte)))
4431 (home-page "https://wiki.gnome.org/Apps/Vinagre")
4432 (synopsis "Remote desktop viewer for GNOME")
4433 (description "Vinagre is a remote display client supporting the VNC, SPICE
4434 and RDP protocols.")
4435 (license license:gpl3+)))
4436
4437 (define-public dconf
4438 (package
4439 (name "dconf")
4440 (version "0.36.0")
4441 (source (origin
4442 (method url-fetch)
4443 (uri (string-append
4444 "mirror://gnome/sources/" name "/"
4445 (version-major+minor version) "/"
4446 name "-" version ".tar.xz"))
4447 (sha256
4448 (base32
4449 "0bfs069pjv6lhp7xrzmrhz3876ay2ryqxzc6mlva1hhz34ibprlz"))))
4450 (build-system meson-build-system)
4451 (propagated-inputs
4452 ;; In Requires of dconf.pc.
4453 `(("glib" ,glib)))
4454 (inputs
4455 `(("gtk+" ,gtk+)
4456 ("dbus" ,dbus)))
4457 (native-inputs
4458 `(("bash-completion" ,bash-completion)
4459 ("libxslt" ,libxslt) ;for xsltproc
4460 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
4461 ("docbook-xml" ,docbook-xml-4.2)
4462 ("docbook-xsl" ,docbook-xsl)
4463 ("glib:bin" ,glib "bin")
4464 ("gtk-doc" ,gtk-doc)
4465 ("pkg-config" ,pkg-config)
4466 ("vala" ,vala)))
4467 (arguments
4468 `(#:glib-or-gtk? #t
4469 #:configure-flags '("-Denable-gtk-doc=true")
4470 #:phases (modify-phases %standard-phases
4471 (add-after 'unpack 'increase-test-timeout
4472 (lambda _
4473 ;; On big-memory systems, the engine test may take
4474 ;; much longer than the default of 30 seconds.
4475 (substitute* "tests/meson.build"
4476 (("test\\(unit_test\\[0\\], exe" all)
4477 (string-append all ", timeout : 90")))
4478 #t)))))
4479 (home-page "https://developer.gnome.org/dconf/")
4480 (synopsis "Low-level GNOME configuration system")
4481 (description "Dconf is a low-level configuration system. Its main purpose
4482 is to provide a backend to GSettings on platforms that don't already have
4483 configuration storage systems.")
4484 (license license:lgpl2.1+)))
4485
4486 (define-public json-glib
4487 (package
4488 (name "json-glib")
4489 (version "1.4.4")
4490 (source (origin
4491 (method url-fetch)
4492 (uri (string-append "mirror://gnome/sources/" name "/"
4493 (version-major+minor version) "/"
4494 name "-" version ".tar.xz"))
4495 (sha256
4496 (base32
4497 "0ixwyis47v5bkx6h8a1iqlw3638cxcv57ivxv4gw2gaig51my33j"))))
4498 (build-system meson-build-system)
4499 (native-inputs
4500 `(("gettext" ,gettext-minimal)
4501 ("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
4502 ("gobject-introspection" ,gobject-introspection)
4503 ("pkg-config" ,pkg-config)))
4504 (propagated-inputs
4505 `(("glib" ,glib))) ;according to json-glib-1.0.pc
4506 (home-page "https://wiki.gnome.org/Projects/JsonGlib")
4507 (synopsis "Compiler for the GObject type system")
4508 (description
4509 "JSON-GLib is a C library based on GLib providing serialization and
4510 deserialization support for the JavaScript Object Notation (JSON) format
4511 described by RFC 4627. It provides parser and generator GObject classes and
4512 various wrappers for the complex data types employed by JSON, such as arrays
4513 and objects.")
4514 (license license:lgpl2.1+)))
4515
4516 (define-public libxklavier
4517 (package
4518 (name "libxklavier")
4519 (version "5.4")
4520 (source (origin
4521 ;; Note: There's no tarball at ftp.gnome.org for this version.
4522 (method git-fetch)
4523 (uri (git-reference
4524 (url "https://anongit.freedesktop.org/git/libxklavier")
4525 (commit (string-append "libxklavier-" version))))
4526 (sha256
4527 (base32
4528 "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a"))
4529 (file-name (git-file-name name version))))
4530 (build-system gnu-build-system)
4531 (arguments
4532 '(#:configure-flags
4533 (list (string-append "--with-xkb-base="
4534 (assoc-ref %build-inputs "xkeyboard-config")
4535 "/share/X11/xkb")
4536 "--disable-xmodmap-support")))
4537 (native-inputs
4538 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
4539 ("gobject-introspection" ,gobject-introspection)
4540 ("pkg-config" ,pkg-config)
4541 ("gtk-doc" ,gtk-doc)
4542 ("intltool" ,intltool)
4543 ("which" ,which)
4544 ("autoconf" ,autoconf)
4545 ("automake" ,automake)
4546 ("libtool" ,libtool)))
4547 (propagated-inputs
4548 ;; Required by libxklavier.pc.
4549 `(("glib" ,glib)
4550 ("libxml2" ,libxml2)))
4551 (inputs
4552 `(("iso-codes" ,iso-codes)
4553 ("libxi" ,libxi)
4554 ("libxkbfile" ,libxkbfile)
4555 ("xkbcomp" ,xkbcomp)
4556 ("xkeyboard-config" ,xkeyboard-config)))
4557 (home-page "https://www.freedesktop.org/wiki/Software/LibXklavier/")
4558 (synopsis "High-level API for X Keyboard Extension")
4559 (description
4560 "LibXklavier is a library providing high-level API for X Keyboard
4561 Extension known as XKB. This library is intended to support XFree86 and other
4562 commercial X servers. It is useful for creating XKB-related software (layout
4563 indicators etc).")
4564 (license license:lgpl2.0+)))
4565
4566 (define-public python2-rsvg
4567 ;; XXX: This is actually a subset of gnome-python-desktop.
4568 (package
4569 (name "python2-rsvg")
4570 (version "2.32.0")
4571 (source
4572 (origin
4573 (method url-fetch)
4574 (uri (string-append
4575 "mirror://gnome/sources/gnome-python-desktop/2.32/gnome-python-desktop-"
4576 version ".tar.bz2"))
4577 (sha256
4578 (base32
4579 "1s8f9rns9v7qlwjv9qh9lr8crp88dpzfm45hj47zc3ivpy0dbnq9"))))
4580 (build-system gnu-build-system)
4581 (native-inputs
4582 `(("pkg-config" ,pkg-config)))
4583 (inputs
4584 `(("python" ,python-2)
4585 ("python2-pygtk" ,python2-pygtk)
4586 ("librsvg" ,librsvg)))
4587 (home-page "https://www.gnome.org")
4588 (synopsis "Python bindings to librsvg")
4589 (description
4590 "This package provides Python bindings to librsvg, the SVG rendering
4591 library.")
4592
4593 ;; This is the license of the rsvg bindings. The license of each module
4594 ;; of gnome-python-desktop is given in 'COPYING'.
4595 (license license:lgpl2.1+)))
4596
4597 (define-public glib-networking
4598 (package
4599 (name "glib-networking")
4600 (version "2.62.2")
4601 (source (origin
4602 (method url-fetch)
4603 (uri (string-append "mirror://gnome/sources/glib-networking/"
4604 (version-major+minor version) "/"
4605 "glib-networking-" version ".tar.xz"))
4606 (sha256
4607 (base32
4608 "0i2mw75297ql72h47vyvff3hqa0kcmqybblj52fqrarb0kfbhi06"))))
4609 (build-system meson-build-system)
4610 (arguments
4611 `(#:configure-flags '("-Dlibproxy_support=false")))
4612 (native-inputs
4613 `(("pkg-config" ,pkg-config)
4614 ("intltool" ,intltool)))
4615 (inputs
4616 `(("glib" ,glib)
4617 ("gnutls" ,gnutls)
4618 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
4619 (home-page "https://www.gnome.org")
4620 (synopsis "Network-related GIO modules")
4621 (description
4622 "This package contains various network related extensions for the GIO
4623 library.")
4624 (license license:lgpl2.0+)))
4625
4626 (define-public rest
4627 (package
4628 (name "rest")
4629 (version "0.8.1")
4630 (source (origin
4631 (method url-fetch)
4632 (uri (string-append "mirror://gnome/sources/rest/"
4633 (version-major+minor version) "/"
4634 name "-" version ".tar.xz"))
4635 (sha256
4636 (base32
4637 "1j81bgqmd55s5lxyaxcplym9n6xywcs1cm9wmvafsg2xiv9sl4q5"))))
4638 (build-system gnu-build-system)
4639 (arguments
4640 '(#:tests? #f ; tests require internet connection
4641 #:configure-flags
4642 '("--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt")))
4643 (native-inputs
4644 `(("glib-mkenums" ,glib "bin")
4645 ("gobject-introspection" ,gobject-introspection)
4646 ("pkg-config" ,pkg-config)))
4647 (propagated-inputs
4648 ;; rest-0.7.pc refers to all these.
4649 `(("glib" ,glib)
4650 ("libsoup" ,libsoup)
4651 ("libxml2" ,libxml2)))
4652 (home-page "https://www.gtk.org/")
4653 (synopsis "RESTful web api query library")
4654 (description
4655 "This library was designed to make it easier to access web services that
4656 claim to be \"RESTful\". It includes convenience wrappers for libsoup and
4657 libxml to ease remote use of the RESTful API.")
4658 (license license:lgpl2.1+)))
4659
4660 (define-public libsoup
4661 (package
4662 (name "libsoup")
4663 (version "2.72.0")
4664 (source (origin
4665 (method url-fetch)
4666 (uri (string-append "mirror://gnome/sources/libsoup/"
4667 (version-major+minor version) "/"
4668 "libsoup-" version ".tar.xz"))
4669 (sha256
4670 (base32
4671 "11skbyw2pw32178q3h8pi7xqa41b2x4k6q4k9f75zxmh8s23y30p"))))
4672 (build-system meson-build-system)
4673 (outputs '("out" "doc"))
4674 (arguments
4675 `(#:modules ((guix build utils)
4676 (guix build meson-build-system)
4677 (ice-9 popen))
4678
4679 #:configure-flags '("-Dgtk_doc=true")
4680 #:phases
4681 (modify-phases %standard-phases
4682 (add-after 'unpack 'patch-docbook-xml
4683 (lambda* (#:key inputs #:allow-other-keys)
4684 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
4685 "/xml/dtd/docbook")))
4686 (substitute* (find-files "docs/reference")
4687 (("http://.*/docbookx\\.dtd")
4688 (string-append xmldoc "/docbookx.dtd")))
4689 #t)))
4690 (add-after 'unpack 'adjust-tests
4691 (lambda _
4692 ;; This test fails due to missing /etc/nsswitch.conf
4693 ;; in the build environment.
4694 (substitute* "tests/socket-test.c"
4695 ((".*/sockets/unconnected.*") ""))
4696
4697 ;; These fail because "subdomain.localhost" does not resolve in
4698 ;; the build environment.
4699 (substitute* "tests/hsts-test.c"
4700 ((".*/hsts/basic.*") "")
4701 ((".*/hsts/subdomains.*") "")
4702 ((".*/hsts/superdomain.*") "")
4703 ((".*/hsts/utf8-address.*") ""))
4704 (substitute* "tests/hsts-db-test.c"
4705 ((".*/hsts-db/subdomains.*") ""))
4706
4707 ;; Generate a self-signed certificate that has "localhost" as its
4708 ;; 'dnsName'. Failing to do that, and starting with GnuTLS
4709 ;; 3.5.12, tests such as "ssl-tests" fail:
4710 ;;
4711 ;; ERROR:ssl-test.c:406:do_tls_interaction_test: Unexpected status 6 Unacceptable TLS certificate (expected 200 OK)
4712 ;;
4713 ;; 'certtool' is interactive so we have to pipe it the answers.
4714 ;; Reported at <https://bugzilla.gnome.org/show_bug.cgi?id=784696>.
4715 (let ((pipe (open-output-pipe "certtool --generate-self-signed \
4716 --load-privkey tests/test-key.pem --outfile tests/test-cert.pem")))
4717 (for-each (lambda (line)
4718 (display line pipe)
4719 (newline pipe))
4720 '("" ;Common name
4721 "" ;UID
4722 "Guix" ;Organizational unit name
4723 "GNU" ;Organization name
4724 "" ;Locality name
4725 "" ;State or province
4726 "" ;Country
4727 "" ;subject's domain component (DC)
4728 "" ;E-mail
4729 "" ;serial number
4730 "-1" ;expiration time
4731 "N" ;belong to authority?
4732 "N" ;web client certificate?
4733 "N" ;IPsec IKE?
4734 "Y" ;web server certificate?
4735 "localhost" ;dnsName of subject
4736 "" ;dnsName of subject (end)
4737 "" ;URI of subject
4738 "127.0.0.1" ;IP address of subject
4739 "" ;signing?
4740 "" ;encryption (RSA)?
4741 "" ;data encryption?
4742 "" ;sign OCSP requests?
4743 "" ;sign code?
4744 "" ;time stamping?
4745 "" ;email protection?
4746 "" ;URI of the CRL distribution point
4747 "y" ;above info OK?
4748 ))
4749 (close-pipe pipe))
4750 #t))
4751 (add-after 'install 'move-doc
4752 (lambda* (#:key outputs #:allow-other-keys)
4753 (let ((out (assoc-ref outputs "out"))
4754 (doc (assoc-ref outputs "doc")))
4755 (mkdir-p (string-append doc "/share"))
4756 (copy-recursively (string-append out "/share/gtk-doc")
4757 (string-append doc "/share/gtk-doc"))
4758 (delete-file-recursively (string-append out "/share/gtk-doc"))
4759 #t))))))
4760 (native-inputs
4761 `(("docbook-xml" ,docbook-xml-4.1.2)
4762 ("glib:bin" ,glib "bin") ; for glib-mkenums
4763 ("gobject-introspection" ,gobject-introspection)
4764 ("gtk-doc" ,gtk-doc)
4765 ("intltool" ,intltool)
4766 ("pkg-config" ,pkg-config)
4767 ("python" ,python-wrapper)
4768 ("vala" ,vala)
4769 ("php" ,php)
4770 ("curl" ,curl)
4771 ("gnutls" ,gnutls) ;for 'certtool'
4772 ("httpd" ,httpd)))
4773 (propagated-inputs
4774 ;; libsoup-2.4.pc refers to all these.
4775 `(("brotli" ,google-brotli)
4776 ("glib" ,glib)
4777 ("libpsl" ,libpsl)
4778 ("libxml2" ,libxml2)
4779 ("sqlite" ,sqlite)
4780 ("zlib" ,zlib)))
4781 (inputs
4782 `(("glib-networking" ,glib-networking)
4783 ("mit-krb5" ,mit-krb5)))
4784 (home-page "https://live.gnome.org/LibSoup/")
4785 (synopsis "GLib-based HTTP Library")
4786 (description
4787 "LibSoup is an HTTP client/server library for GNOME. It uses GObjects
4788 and the GLib main loop, to integrate well with GNOME applications.")
4789 (license license:lgpl2.0+)))
4790
4791
4792 ;;; A minimal version of libsoup used to prevent a cycle with Inkscape.
4793 (define-public libsoup-minimal
4794 (package
4795 (inherit libsoup)
4796 (name "libsoup-minimal")
4797 (outputs (delete "doc" (package-outputs libsoup)))
4798 (arguments
4799 (substitute-keyword-arguments (package-arguments libsoup)
4800 ((#:configure-flags configure-flags)
4801 `(delete "-Dgtk_doc=true" ,configure-flags))
4802 ((#:phases phases)
4803 `(modify-phases ,phases
4804 (delete 'move-doc)))))
4805 (native-inputs (alist-delete "gtk-doc" (package-native-inputs libsoup)))))
4806
4807 (define-public libsecret
4808 (package
4809 (name "libsecret")
4810 (version "0.20.4")
4811 (source (origin
4812 (method url-fetch)
4813 (uri (string-append
4814 "mirror://gnome/sources/libsecret/"
4815 (version-major+minor version) "/"
4816 "libsecret-" version ".tar.xz"))
4817 (sha256
4818 (base32
4819 "0a4xnfmraxchd9cq5ai66j12jv2vrgjmaaxz25kl031jvda4qnij"))))
4820 (build-system gnu-build-system)
4821 (outputs '("out" "doc"))
4822 (arguments
4823 `(#:tests? #f ; FIXME: Testing hangs.
4824 #:configure-flags
4825 (list (string-append "--with-html-dir="
4826 (assoc-ref %outputs "doc")
4827 "/share/gtk-doc/html"))))
4828 (native-inputs
4829 `(("gettext" ,gettext-minimal)
4830 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
4831 ("gobject-introspection" ,gobject-introspection)
4832 ("pkg-config" ,pkg-config)
4833 ("vala" ,vala)
4834 ("xsltproc" ,libxslt)))
4835 ;; These are needed for the tests.
4836 ;; FIXME: Add gjs once available.
4837 ;("dbus" ,dbus)
4838 ;("python2" ,python-2)
4839 ;("python2-dbus" ,python2-dbus)
4840 ;("python2-pygobject" ,python2-pygobject)
4841 ;("python2-pygobject-2" ,python2-pygobject-2)))
4842 (propagated-inputs
4843 `(("glib" ,glib))) ; required by libsecret-1.pc
4844 (inputs
4845 ;; The ‘build’ phase complains about missing docbook-xml-4.2 but adding it
4846 ;; doesn't seem to affect the build result.
4847 `(("docbook-xsl" ,docbook-xsl)
4848 ("libgcrypt" ,libgcrypt)
4849 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
4850 (home-page "https://wiki.gnome.org/Projects/Libsecret/")
4851 (synopsis "GObject bindings for \"Secret Service\" API")
4852 (description
4853 "Libsecret is a GObject based library for storing and retrieving passwords
4854 and other secrets. It communicates with the \"Secret Service\" using DBus.")
4855 (license license:lgpl2.1+)))
4856
4857 (define-public five-or-more
4858 (package
4859 (name "five-or-more")
4860 (version "3.32.2")
4861 (source
4862 (origin
4863 (method url-fetch)
4864 (uri (string-append "mirror://gnome/sources/five-or-more/"
4865 (version-major+minor version) "/"
4866 "five-or-more-" version ".tar.xz"))
4867 (sha256
4868 (base32 "19pf8wzbf3ciqf2k4bj9sddvyhckfd62x86pnqr6s8h4vn9jc6ii"))))
4869 (build-system meson-build-system)
4870 (arguments
4871 '(#:glib-or-gtk? #t
4872 #:phases
4873 (modify-phases %standard-phases
4874 (add-after 'unpack 'skip-gtk-update-icon-cache
4875 (lambda _
4876 (substitute* "meson_post_install.py"
4877 (("gtk-update-icon-cache") (which "true")))
4878 #t)))))
4879 (native-inputs
4880 `(("pkg-config" ,pkg-config)
4881 ("appstream-glib" ,appstream-glib)
4882 ("desktop-file-utils" ,desktop-file-utils)
4883 ("glib:bin" ,glib "bin") ; for glib-compile-resources
4884 ("intltool" ,intltool)
4885 ("itstool" ,itstool)
4886 ("vala" ,vala)
4887 ("xmllint" ,libxml2)))
4888 (inputs
4889 `(("gtk+" ,gtk+)
4890 ("libgnome-games-support" ,libgnome-games-support)
4891 ("librsvg" ,librsvg)))
4892 (home-page "https://wiki.gnome.org/Apps/Five%20or%20more")
4893 (synopsis "Logic puzzle game")
4894 (description "Five or More is a game where you try to align
4895 five or more objects of the same color and shape causing them to disappear.
4896 On every turn more objects will appear, until the board is full.
4897 Try to last as long as possible.")
4898 (license license:gpl2+)))
4899
4900 (define-public gnome-mines
4901 (package
4902 (name "gnome-mines")
4903 (version "3.36.1")
4904 (source
4905 (origin
4906 (method url-fetch)
4907 (uri (string-append "mirror://gnome/sources/" name "/"
4908 (version-major+minor version) "/"
4909 name "-" version ".tar.xz"))
4910 (sha256
4911 (base32 "0m2680r94nk61imym4x73j03jwfjd8cxm592m5ybiqdfdw6i723i"))))
4912 (build-system meson-build-system)
4913 (arguments
4914 '(#:glib-or-gtk? #t
4915 #:phases
4916 (modify-phases %standard-phases
4917 (add-after 'unpack 'skip-gtk-update-icon-cache
4918 (lambda _
4919 (substitute* "build-aux/meson_post_install.py"
4920 (("gtk-update-icon-cache") (which "true")))
4921 #t)))))
4922 (native-inputs
4923 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
4924 ("pkg-config" ,pkg-config)
4925 ("desktop-file-utils" ,desktop-file-utils)
4926 ("intltool" ,intltool)
4927 ("itstool" ,itstool)
4928 ("vala" ,vala)
4929 ("yelp" ,yelp)
4930 ("appstream-glib" ,appstream-glib)))
4931 (inputs
4932 `(("gtk+" ,gtk+)
4933 ("libgnome-games-support" ,libgnome-games-support)
4934 ("librsvg" ,librsvg)))
4935 (home-page "https://wiki.gnome.org/Apps/Mines")
4936 (synopsis "Minesweeper game")
4937 (description
4938 "Mines (previously gnomine) is a puzzle game where you locate mines
4939 floating in an ocean using only your brain and a little bit of luck.")
4940 (license license:gpl2+)))
4941
4942 (define-public gnome-multi-writer
4943 (package
4944 (name "gnome-multi-writer")
4945 (version "3.35.90")
4946 (source
4947 (origin
4948 (method url-fetch)
4949 (uri (string-append "mirror://gnome/sources/gnome-multi-writer/"
4950 (version-major+minor version) "/"
4951 "gnome-multi-writer-" version ".tar.xz"))
4952 (sha256
4953 (base32
4954 "07vgzjjdrxcp7h73z13h9agafxb4vmqx5i81bcfyw0ilw9kkdzmp"))))
4955 (build-system meson-build-system)
4956 (arguments
4957 '(#:glib-or-gtk? #t
4958 #:phases
4959 (modify-phases %standard-phases
4960 (add-after 'unpack 'skip-post-install
4961 (lambda _
4962 (substitute* "meson.build"
4963 (("meson.add_install_script" &) (string-append "# " &)))
4964 #t)))))
4965 (native-inputs
4966 `(("glib:bin" ,glib "bin")
4967 ("pkg-config" ,pkg-config)))
4968 (inputs
4969 `(("gtk+" ,gtk+)
4970 ("glib" ,glib) ; for gio
4971 ("gusb" ,gusb)
4972 ("udisks" ,udisks)
4973 ("libgudev" ,libgudev)
4974 ("libcanberra" ,libcanberra)
4975 ("polkit" ,polkit)))
4976 (home-page "https://wiki.gnome.org/Apps/MultiWriter")
4977 (synopsis "Write to multiple USB devices at once")
4978 (description
4979 "MultiWriter can be used to write an ISO file to multiple USB devices at
4980 once.")
4981 (license license:gpl2+)))
4982
4983 (define-public gnome-sudoku
4984 (package
4985 (name "gnome-sudoku")
4986 (version "3.34.1")
4987 (source
4988 (origin
4989 (method url-fetch)
4990 (uri (string-append "mirror://gnome/sources/" name "/"
4991 (version-major+minor version) "/"
4992 name "-" version ".tar.xz"))
4993 (sha256
4994 (base32
4995 "025y85r4qqardivvwiwhbmgarziykdy224m8zlrq8b79zv82793b"))))
4996 (build-system meson-build-system)
4997 (arguments
4998 '(#:glib-or-gtk? #t
4999 #:phases
5000 (modify-phases %standard-phases
5001 (add-after 'unpack 'skip-gtk-update-icon-cache
5002 (lambda _
5003 (substitute* "build-aux/post_install.py"
5004 (("gtk-update-icon-cache") (which "true")))
5005 #t)))))
5006 (native-inputs
5007 `(("pkg-config" ,pkg-config)
5008 ("desktop-file-utils" ,desktop-file-utils)
5009 ("glib:bin" ,glib "bin") ; for glib-compile-resources
5010 ("intltool" ,intltool)
5011 ("itstool" ,itstool)
5012 ("vala" ,vala)
5013 ("xmllint" ,libxml2)))
5014 (inputs
5015 `(("gtk+" ,gtk+)
5016 ("json-glib" ,json-glib)
5017 ("libgee" ,libgee)
5018 ("librsvg" ,librsvg)
5019 ("qqwing" ,qqwing)))
5020 (home-page "https://wiki.gnome.org/Apps/Sudoku")
5021 (synopsis "Japanese logic game")
5022 (description
5023 "Sudoku is a Japanese logic game that exploded in popularity in 2005.
5024 GNOME Sudoku is meant to have an interface as simple and unobstrusive as
5025 possible while still providing features that make playing difficult Sudoku
5026 more fun.")
5027 (license license:gpl2+)))
5028
5029 (define-public gnome-terminal
5030 (package
5031 (name "gnome-terminal")
5032 (version "3.34.2")
5033 (source
5034 (origin
5035 (method url-fetch)
5036 (uri (string-append "mirror://gnome/sources/" name "/"
5037 (version-major+minor version) "/"
5038 name "-" version ".tar.xz"))
5039 (sha256
5040 (base32
5041 "0gc004f9b5k94gkdanmqjz3wqgnpny0l3nqm8zd19h4f0ps27mrv"))))
5042 (build-system glib-or-gtk-build-system)
5043 (arguments
5044 '(#:configure-flags
5045 (list "--disable-migration" "--disable-search-provider"
5046 "--without-nautilus-extension")
5047 #:phases
5048 (modify-phases %standard-phases
5049 (add-before 'configure 'patch-/bin/true
5050 (lambda _
5051 (substitute* "configure"
5052 (("/bin/true") (which "true"))))))))
5053 (native-inputs
5054 `(("pkg-config" ,pkg-config)
5055 ("desktop-file-utils" ,desktop-file-utils)
5056 ("intltool" ,intltool)
5057 ("itstool" ,itstool)
5058 ("xmllint" ,libxml2)))
5059 (propagated-inputs
5060 `(("dconf" ,dconf)))
5061 (inputs
5062 `(("gtk+" ,gtk+)
5063 ("vte" ,vte)
5064 ("gnutls" ,gnutls)
5065 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5066 ("util-linux" ,util-linux "lib")
5067 ("vala" ,vala)))
5068 (home-page "https://wiki.gnome.org/Apps/Terminal")
5069 (synopsis "Terminal emulator")
5070 (description
5071 "GNOME Terminal is a terminal emulator application for accessing a
5072 UNIX shell environment which can be used to run programs available on
5073 your system.
5074
5075 It supports several profiles, multiple tabs and implements several
5076 keyboard shortcuts.")
5077 (license license:gpl3+)))
5078
5079 (define-public colord
5080 (package
5081 (name "colord")
5082 (version "1.4.5")
5083 (source
5084 (origin
5085 (method url-fetch)
5086 (uri (string-append "https://www.freedesktop.org/software/colord/releases/"
5087 "colord-" version ".tar.xz"))
5088 (sha256
5089 (base32 "05sydi6qqqx1rrqwnga1vbg9srkf89wdcfw5w4p4m7r37m2flx5p"))))
5090 (build-system meson-build-system)
5091 (arguments
5092 '(;; FIXME: One test fails:
5093 ;; /colord/icc-store (in lib/colord/colord-self-test-private):
5094 ;; Incorrect content type for /tmp/colord-vkve/already-exists.icc, got
5095 ;; application/x-zerosize
5096 #:tests? #f
5097 #:glib-or-gtk? #t
5098 #:configure-flags (list "-Dlocalstatedir=/var"
5099 ;; No dep on systemd.
5100 "-Dsystemd=false"
5101 ;; Wants to install to global completion dir;
5102 ;; punt.
5103 "-Dbash_completion=false"
5104 "-Ddaemon_user=colord"
5105 "-Dsane=true"
5106 "-Dvapi=true"
5107 ;; Requires spotread.
5108 "-Dargyllcms_sensor=false"
5109 ;; TODO: Requires docbook2x.
5110 "-Dman=false")
5111 #:phases
5112 (modify-phases %standard-phases
5113 (add-before 'configure 'patch-build-system
5114 (lambda* (#:key outputs #:allow-other-keys)
5115 (substitute* "rules/meson.build"
5116 (("udev.get_pkgconfig_variable\\('udevdir'\\)")
5117 (string-append "'" (assoc-ref outputs "out") "/lib/udev'")))
5118 #t))
5119 (add-before 'configure 'set-sqlite3-file-name
5120 (lambda* (#:key inputs #:allow-other-keys)
5121 ;; "colormgr dump" works by invoking the "sqlite3" command.
5122 ;; Record its absolute file name.
5123 (let ((sqlite (assoc-ref inputs "sqlite")))
5124 (substitute* "client/cd-util.c"
5125 (("\"sqlite3\"")
5126 (string-append "\"" sqlite "/bin/sqlite3\"")))
5127 #t))))))
5128 (native-inputs
5129 `(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
5130 ("gettext" ,gettext-minimal)
5131 ("gobject-introspection" ,gobject-introspection)
5132 ("gtk-doc" ,gtk-doc)
5133 ("pkg-config" ,pkg-config)
5134 ("vala" ,vala)))
5135 (propagated-inputs
5136 ;; colord.pc refers to all these.
5137 `(("glib" ,glib)
5138 ("lcms" ,lcms)
5139 ("udev" ,eudev)))
5140 (inputs
5141 `(("dbus-glib" ,dbus-glib)
5142 ("gusb" ,gusb)
5143 ("libgudev" ,libgudev)
5144 ("libusb" ,libusb)
5145 ("polkit" ,polkit)
5146 ("python" ,python-wrapper)
5147 ("sqlite" ,sqlite)
5148 ("sane-backends" ,sane-backends)))
5149 (home-page "https://www.freedesktop.org/software/colord/")
5150 (synopsis "Color management service")
5151 (description "Colord is a system service that makes it easy to manage,
5152 install and generate color profiles to accurately color manage input and
5153 output devices.")
5154 (license license:gpl2+)))
5155
5156 (define-public geoclue
5157 (package
5158 (name "geoclue")
5159 (version "2.5.7")
5160 (source
5161 (origin
5162 (method url-fetch)
5163 (uri
5164 (string-append "https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/"
5165 version "/geoclue-" version ".tar.bz2"))
5166 (sha256
5167 (base32 "09ww26a76kanldhgwnn5sqy9ly2940k45zpp68spykkv2zjdpivc"))
5168 (patches (search-patches "geoclue-config.patch"))))
5169 (build-system meson-build-system)
5170 (arguments
5171 '(#:configure-flags (list "-Dbus-srv-user=geoclue")))
5172 (native-inputs
5173 `(("pkg-config" ,pkg-config)
5174 ("gobject-introspection" ,gobject-introspection)
5175 ("modem-manager" ,modem-manager)
5176 ("libnotify" ,libnotify)
5177 ("gtk-doc" ,gtk-doc)
5178 ("intltool" ,intltool)))
5179 (inputs
5180 `(("avahi" ,avahi)
5181 ("glib:bin" ,glib "bin")
5182 ("glib-networking" ,glib-networking)
5183 ("json-glib" ,json-glib)
5184 ("libsoup" ,libsoup)))
5185 (home-page "https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home")
5186 (synopsis "Geolocation service")
5187 (description "Geoclue is a D-Bus service that provides location
5188 information. The primary goal of the Geoclue project is to make creating
5189 location-aware applications as simple as possible, while the secondary goal is
5190 to ensure that no application can access location information without explicit
5191 permission from user.")
5192 (license license:gpl2+)))
5193
5194 (define-public geocode-glib
5195 (package
5196 (name "geocode-glib")
5197 (version "3.26.2")
5198 (source (origin
5199 (method url-fetch)
5200 (uri (string-append "mirror://gnome/sources/geocode-glib/"
5201 (version-major+minor version) "/"
5202 "geocode-glib-" version ".tar.xz"))
5203 (sha256
5204 (base32
5205 "1l8g0f13xgkrk335afr9w8k46mziwb2jnyhl07jccl5yl37q9zh1"))))
5206 (build-system meson-build-system)
5207 (arguments
5208 `(#:phases
5209 (modify-phases %standard-phases
5210 ;; The tests require a bunch of locales.
5211 (add-before 'check 'set-locales
5212 (lambda* (#:key inputs #:allow-other-keys)
5213 (setenv "GUIX_LOCPATH"
5214 (string-append (assoc-ref inputs "glibc-locales")
5215 "/lib/locale"))
5216 #t)))))
5217 (native-inputs
5218 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5219 ("glibc-locales" ,glibc-locales) ; for tests
5220 ("gettext" ,gettext-minimal)
5221 ("gobject-introspection" ,gobject-introspection)
5222 ("gtk-doc" ,gtk-doc)
5223 ("pkg-config" ,pkg-config)
5224 ("json-glib" ,json-glib)))
5225 (propagated-inputs
5226 ;; geocode-glib-1.0.pc refers to GIO.
5227 `(("glib" ,glib)))
5228 (inputs
5229 `(("libsoup" ,libsoup)))
5230 (home-page "https://github.com/GNOME/geocode-glib/")
5231 (synopsis "Geocoding and reverse-geocoding library")
5232 (description
5233 "geocode-glib is a convenience library for geocoding (finding longitude,
5234 and latitude from an address) and reverse geocoding (finding an address from
5235 coordinates) using the Nominatim service. geocode-glib caches requests for
5236 faster results and to avoid unnecessary server load.")
5237 (license license:lgpl2.0+)))
5238
5239 (define-public upower
5240 (package
5241 (name "upower")
5242 (version "0.99.11")
5243 (source (origin
5244 (method url-fetch)
5245 (uri (string-append "https://upower.freedesktop.org/releases/"
5246 "upower-" version ".tar.xz"))
5247 (sha256
5248 (base32
5249 "1vxxvmz2cxb1qy6ibszaz5bskqdy9nd9fxspj9fv3gfmrjzzzdb4"))
5250 (patches (search-patches "upower-builddir.patch"))
5251 (modules '((guix build utils)))
5252 (snippet
5253 '(begin
5254 ;; Upstream commit
5255 ;; <https://cgit.freedesktop.org/upower/commit/?id=18457c99b68786cd729b315723d680e6860d9cfa>
5256 ;; moved 'dbus-1/system.d' from etc/ to share/. However,
5257 ;; 'dbus-configuration-directory' in (gnu services dbus)
5258 ;; expects it in etc/. Thus, move it back to its previous
5259 ;; location.
5260 (substitute* "src/Makefile.in"
5261 (("^dbusconfdir =.*$")
5262 "dbusconfdir = $(sysconfdir)/dbus-1/system.d\n"))
5263 #t))))
5264 (build-system glib-or-gtk-build-system)
5265 (arguments
5266 '(#:phases
5267 (modify-phases %standard-phases
5268 (add-before 'check 'pre-check
5269 (lambda* (#:key inputs #:allow-other-keys)
5270 (let ((umockdev (string-append (assoc-ref inputs "umockdev")
5271 "/lib")))
5272 (setenv "LD_LIBRARY_PATH" umockdev))
5273 #t)))
5274 #:configure-flags (list "--localstatedir=/var"
5275 (string-append "--with-udevrulesdir="
5276 (assoc-ref %outputs "out")
5277 "/lib/udev/rules.d"))))
5278 (native-inputs
5279 `(("gobject-introspection" ,gobject-introspection)
5280 ("pkg-config" ,pkg-config)
5281 ("intltool" ,intltool)
5282 ("python" ,python)
5283
5284 ;; For tests.
5285 ("python-dbus" ,python-dbus)
5286 ("python-dbusmock" ,python-dbusmock)
5287 ("python-pygobject" ,python-pygobject)
5288 ("umockdev" ,umockdev)
5289
5290 ;; For man pages.
5291 ("libxslt" ,libxslt) ;for 'xsltproc'
5292 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
5293 ("docbook-xsl" ,docbook-xsl)))
5294 (inputs
5295 `(("dbus-glib" ,dbus-glib)
5296 ("libgudev" ,libgudev)
5297 ("libusb" ,libusb)))
5298 (propagated-inputs
5299 ;; In Requires of upower-glib.pc.
5300 `(("glib" ,glib)))
5301 (home-page "https://upower.freedesktop.org/")
5302 (synopsis "System daemon for managing power devices")
5303 (description
5304 "UPower is an abstraction for enumerating power devices,
5305 listening to device events and querying history and statistics. Any
5306 application or service on the system can access the org.freedesktop.UPower
5307 service via the system message bus.")
5308 (license license:gpl2+)))
5309
5310 (define-public libgweather
5311 (package
5312 (name "libgweather")
5313 (version "3.34.0")
5314 (source (origin
5315 (method url-fetch)
5316 (uri (string-append "mirror://gnome/sources/" name "/"
5317 (version-major+minor version) "/"
5318 name "-" version ".tar.xz"))
5319 (sha256
5320 (base32
5321 "1fgiqswkhiaijanml3mb16ajn5aanrk7x6yiwagp9n9rssam6902"))))
5322 (build-system meson-build-system)
5323 (arguments
5324 `(#:tests? #f ; one of two tests requires network access
5325 #:configure-flags
5326 `(,(string-append "-Dzoneinfo_dir="
5327 (assoc-ref %build-inputs "tzdata")
5328 "/share/zoneinfo"))))
5329 (native-inputs
5330 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5331 ("gobject-introspection" ,gobject-introspection)
5332 ("pkg-config" ,pkg-config)
5333 ("vala" ,vala)
5334 ("intltool" ,intltool)))
5335 (propagated-inputs
5336 ;; gweather-3.0.pc refers to GTK+, GDK-Pixbuf, GLib/GObject, libxml, and
5337 ;; libsoup.
5338 `(("gtk+" ,gtk+)
5339 ("gdk-pixbuf" ,gdk-pixbuf)
5340 ("libxml2" ,libxml2)
5341 ("libsoup" ,libsoup)
5342 ("geocode-glib" ,geocode-glib)))
5343 (inputs
5344 `(("tzdata" ,tzdata)))
5345 (home-page "https://wiki.gnome.org/action/show/Projects/LibGWeather")
5346 (synopsis "Location, time zone, and weather library for GNOME")
5347 (description
5348 "libgweather is a library to access weather information from online
5349 services for numerous locations.")
5350 (license license:gpl2+)))
5351
5352 (define-public gnome-settings-daemon
5353 (package
5354 (name "gnome-settings-daemon")
5355 (version "3.34.1")
5356 (source
5357 (origin
5358 (method url-fetch)
5359 (uri (string-append "mirror://gnome/sources/" name "/"
5360 (version-major+minor version) "/"
5361 name "-" version ".tar.xz"))
5362 (sha256
5363 (base32
5364 "07y1gbicz0pbxmdgwrdzyc4byy30wfwpbqgvnx27gnpqmc5s50cr"))
5365 (patches (search-patches "gnome-settings-daemon-gc.patch"))))
5366 (build-system meson-build-system)
5367 (arguments
5368 `(#:glib-or-gtk? #t
5369 #:configure-flags
5370 (list (string-append "-Dudev_dir="
5371 (assoc-ref %outputs "out")
5372 "/lib/udev/rules.d/")
5373 "-Dsystemd=false"
5374 ;; Otherwise, the RUNPATH will lack the final path component.
5375 (string-append "-Dc_link_args=-Wl,-rpath="
5376 (assoc-ref %outputs "out")
5377 "/lib/gnome-settings-daemon-3.0"))
5378
5379 #:phases (modify-phases %standard-phases
5380 (add-before 'configure 'set-baobab-file-name
5381 (lambda* (#:key inputs #:allow-other-keys)
5382 ;; Hard-code the file name of Baobab instead of looking
5383 ;; it up in $PATH. This ensures users get the "Examine"
5384 ;; button in the low disk space notification of GDM even
5385 ;; if they don't have GNOME in their main profile.
5386 (let ((baobab (assoc-ref inputs "baobab")))
5387 (substitute* "plugins/housekeeping/gsd-disk-space.c"
5388 (("g_find_program_in_path \\(DISK_SPACE_ANALYZER\\)")
5389 (string-append "g_strdup (\"" baobab
5390 "/bin/baobab\")")))
5391 #t))))
5392
5393 ;; Color management test can't reach the colord system service.
5394 #:tests? #f))
5395 (native-inputs
5396 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5397 ("pkg-config" ,pkg-config)
5398 ("intltool" ,intltool)
5399 ("xsltproc" ,libxslt)
5400 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
5401 ("docbook-xml" ,docbook-xml-4.2)
5402 ("docbook-xsl" ,docbook-xsl)))
5403 (inputs
5404 `(("alsa-lib" ,alsa-lib)
5405 ("baobab" ,baobab)
5406 ("colord" ,colord)
5407 ("libgudev" ,libgudev)
5408 ("upower" ,upower)
5409 ("polkit" ,polkit)
5410 ("pulseaudio" ,pulseaudio)
5411 ("libcanberra" ,libcanberra)
5412 ("libx11" ,libx11)
5413 ("libxtst" ,libxtst)
5414 ("lcms" ,lcms)
5415 ("libnotify" ,libnotify)
5416 ("geoclue" ,geoclue)
5417 ("geocode-glib" ,geocode-glib)
5418 ("libgweather" ,libgweather)
5419 ("gnome-desktop" ,gnome-desktop)
5420 ("nss" ,nss)
5421 ("cups" ,cups)
5422 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5423 ("libwacom" ,libwacom)
5424 ("librsvg" ,librsvg)
5425 ("xf86-input-wacom" ,xf86-input-wacom)
5426 ("wayland" ,wayland)
5427 ("network-manager" ,network-manager)
5428 ("gcr" ,gcr)
5429 ("modem-manager" ,modem-manager)))
5430 (home-page "https://www.gnome.org")
5431 (synopsis "GNOME settings daemon")
5432 (description
5433 "This package contains the daemon responsible for setting the various
5434 parameters of a GNOME session and the applications that run under it. It
5435 handles settings such keyboard layout, shortcuts, and accessibility, clipboard
5436 settings, themes, mouse settings, and startup of other daemons.")
5437 (license license:gpl2+)))
5438
5439 (define-public totem-pl-parser
5440 (package
5441 (name "totem-pl-parser")
5442 (version "3.26.5")
5443 (source (origin
5444 (method url-fetch)
5445 (uri (string-append "mirror://gnome/sources/totem-pl-parser/"
5446 (version-major+minor version) "/"
5447 "totem-pl-parser-" version ".tar.xz"))
5448 (sha256
5449 (base32
5450 "132jihnf51zs98yjkc6jxyqib4f3dawpjm17g4bj4j78y93dww2k"))))
5451 (build-system meson-build-system)
5452 (arguments
5453 ;; FIXME: Tests require gvfs.
5454 `(#:tests? #f))
5455 (native-inputs
5456 `(("intltool" ,intltool)
5457 ("glib" ,glib "bin")
5458 ("gobject-introspection" ,gobject-introspection)
5459 ("pkg-config" ,pkg-config)))
5460 (propagated-inputs
5461 `(("glib" ,glib)
5462 ("gmime" ,gmime)
5463 ("libarchive" ,libarchive)
5464 ("libgcrypt" ,libgcrypt)
5465 ("libxml2" ,libxml2)))
5466 (inputs
5467 `(("libsoup" ,libsoup)))
5468 (home-page "https://projects.gnome.org/totem")
5469 (synopsis "Library to parse and save media playlists for GNOME")
5470 (description "Totem-pl-parser is a GObjects-based library to parse and save
5471 playlists in a variety of formats.")
5472 (license license:lgpl2.0+)))
5473
5474 (define-public aisleriot
5475 (package
5476 (name "aisleriot")
5477 (version "3.22.9")
5478 (source (origin
5479 (method url-fetch)
5480 (uri (string-append "mirror://gnome/sources/aisleriot/"
5481 (version-major+minor version) "/"
5482 "aisleriot-" version ".tar.xz"))
5483 (sha256
5484 (base32
5485 "0yzdh9cw5cjjgvfh75bihl968czlgfmpmn1z0fdk88sgvpjgzwji"))))
5486 (build-system glib-or-gtk-build-system)
5487 (arguments
5488 '(#:configure-flags
5489 '("--with-platform=gtk-only"
5490 "--with-card-theme-formats=svg")))
5491 (native-inputs
5492 `(("desktop-file-utils" ,desktop-file-utils)
5493 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5494 ("intltool" ,intltool)
5495 ("itstool" ,itstool)
5496 ("pkg-config" ,pkg-config)
5497 ("xmllint" ,libxml2)))
5498 (inputs
5499 `(("gtk+" ,gtk+)
5500 ("guile" ,guile-2.2)
5501 ("libcanberra" ,libcanberra)
5502 ("librsvg" ,librsvg)))
5503 (home-page "https://wiki.gnome.org/Apps/Aisleriot")
5504 (synopsis "Solitaire card games")
5505 (description
5506 "Aisleriot (also known as Solitaire or sol) is a collection of card games
5507 which are easy to play with the aid of a mouse.")
5508 (license license:gpl3+)))
5509
5510 (define-public amtk
5511 (package
5512 (name "amtk")
5513 (version "5.0.2")
5514 (source (origin
5515 (method url-fetch)
5516 (uri (string-append "mirror://gnome/sources/amtk/"
5517 (version-major+minor version) "/"
5518 "amtk-" version ".tar.xz"))
5519 (sha256
5520 (base32
5521 "11jgz2i9wjzv4alrxl1qyxiapb52w7vs5ygfgsw0qgdap8gqkk3i"))))
5522 (build-system gnu-build-system)
5523 (arguments
5524 '(#:configure-flags '("--enable-gtk-doc")))
5525 (native-inputs
5526 `(("gobject-introspection" ,gobject-introspection)
5527 ("glib:bin" ,glib "bin") ; for glib-mkenums
5528 ("gtk-doc" ,gtk-doc)
5529 ("pkg-config" ,pkg-config)))
5530 (inputs
5531 `(("glib" ,glib)
5532 ("gtk+" ,gtk+)))
5533 (home-page "https://wiki.gnome.org/Projects/Amtk")
5534 (synopsis "Actions, Menus and Toolbars Kit for GTK+ applications")
5535 (description
5536 "Amtk is the acronym for @acronym{Amtk, Actions Menus and Toolbars Kit}.
5537 It is a basic GtkUIManager replacement based on GAction. It is suitable for
5538 both a traditional UI or a modern UI with a GtkHeaderBar.")
5539 (license license:lgpl2.1+)))
5540
5541 (define-public devhelp
5542 (package
5543 (name "devhelp")
5544 (version "3.34.0")
5545 (source (origin
5546 (method url-fetch)
5547 (uri (string-append "mirror://gnome/sources/" name "/"
5548 (version-major+minor version) "/"
5549 name "-" version ".tar.xz"))
5550 (sha256
5551 (base32
5552 "0zpmn6fgkgiayvn4diia5df0s6s7dqrdnp3nrvpavsmgn0vhb4pg"))))
5553 (build-system meson-build-system)
5554 (arguments
5555 '(#:glib-or-gtk? #t
5556 #:phases
5557 (modify-phases %standard-phases
5558 (add-after 'unpack 'skip-gtk-update-icon-cache
5559 ;; Don't create 'icon-theme.cache'.
5560 (lambda _
5561 (substitute* "meson_post_install.py"
5562 (("gtk-update-icon-cache") "true"))
5563 #t)))))
5564 (native-inputs
5565 `(("intltool" ,intltool)
5566 ("itstool" ,itstool)
5567 ("gobject-introspection" ,gobject-introspection)
5568 ("glib:bin" ,glib "bin") ; for glib-mkmenus
5569 ("pkg-config" ,pkg-config)))
5570 (inputs
5571 `(("amtk" ,amtk)
5572 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5573 ("webkitgtk" ,webkitgtk)))
5574 (home-page "https://wiki.gnome.org/Apps/Devhelp")
5575 (synopsis "API documentation browser for GNOME")
5576 (description
5577 "Devhelp is an API documentation browser for GTK+ and GNOME. It works
5578 natively with GTK-Doc (the API reference system developed for GTK+ and used
5579 throughout GNOME for API documentation).")
5580 (license license:gpl2+)))
5581
5582 (define-public cogl
5583 (package
5584 (name "cogl")
5585 (version "1.22.8")
5586 (source
5587 (origin
5588 (method url-fetch)
5589 (uri (string-append "mirror://gnome/sources/cogl/"
5590 (version-major+minor version) "/"
5591 "cogl-" version ".tar.xz"))
5592 (sha256
5593 (base32 "0nfph4ai60ncdx7hy6hl1i1cmp761jgnyjfhagzi0iqq36qb41d8"))))
5594 ;; NOTE: mutter exports a bundled fork of cogl, so when making changes to
5595 ;; cogl, corresponding changes may be appropriate in mutter as well.
5596 (build-system gnu-build-system)
5597 (native-inputs
5598 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5599 ("gobject-introspection" ,gobject-introspection)
5600 ("xorg-server" ,xorg-server-for-tests)
5601 ("pkg-config" ,pkg-config)))
5602 (propagated-inputs
5603 `(("glib" ,glib)
5604 ("gdk-pixbuf" ,gdk-pixbuf)
5605 ("libx11" ,libx11)
5606 ("libxext" ,libxext)
5607 ("libxfixes" ,libxfixes)
5608 ("libxdamage" ,libxdamage)
5609 ("libxcomposite" ,libxcomposite)
5610 ("libxrandr" ,libxrandr)))
5611 (inputs
5612 `(("mesa" ,mesa)
5613 ("cairo" ,cairo)
5614 ("pango" ,pango)
5615 ("gstreamer" ,gstreamer)
5616 ("gst-plugins-base" ,gst-plugins-base)
5617 ("wayland" ,wayland)))
5618 (arguments
5619 `(#:disallowed-references (,xorg-server-for-tests)
5620 #:configure-flags (list "--enable-cogl-gst"
5621 "--enable-wayland-egl-platform"
5622 "--enable-wayland-egl-server"
5623
5624 ;; Arrange to pass an absolute file name to
5625 ;; dlopen for libGL.so.
5626 (string-append "--with-gl-libname="
5627 (assoc-ref %build-inputs "mesa")
5628 "/lib/libGL.so"))
5629 #:phases
5630 (modify-phases %standard-phases
5631 (add-after 'unpack 'fix-build-with-mesa-20
5632 (lambda _
5633 ;; Work around a problem with Mesa 20 where some macros used by
5634 ;; Cogl went missing from eglext.h. This can likely be removed
5635 ;; for newer versions of Cogl or Mesa.
5636 ;; https://gitlab.gnome.org/GNOME/cogl/-/merge_requests/19
5637 (substitute* '("configure"
5638 "cogl/winsys/cogl-winsys-egl-kms.c")
5639 (("#include <EGL/eglext.h>" all)
5640 (string-append all "\n#include <EGL/eglmesaext.h>\n")))
5641 #t))
5642 (add-before 'check 'start-xorg-server
5643 (lambda* (#:key tests? inputs #:allow-other-keys)
5644 (if tests?
5645 (begin
5646 ;; The test suite requires a running X server.
5647 (system (format #f "~a/bin/Xvfb :1 +extension GLX &"
5648 (assoc-ref inputs "xorg-server")))
5649 (setenv "DISPLAY" ":1")
5650 #t)
5651 (format #t "test suite not run~%"))
5652 #t)))))
5653 (home-page "https://www.cogl3d.org")
5654 (synopsis "Object oriented GL/GLES Abstraction/Utility Layer")
5655 (description
5656 "Cogl is a small library for using 3D graphics hardware to draw pretty
5657 pictures. The API departs from the flat state machine style of OpenGL and is
5658 designed to make it easy to write orthogonal components that can render
5659 without stepping on each others toes.")
5660 (license (list license:expat ; most of the code
5661 license:bsd-3 ; cogl/cogl-point-in-poly.c
5662 license:sgifreeb2.0 ; cogl-path/tesselator/
5663 license:asl2.0)))) ; examples/android/
5664
5665 (define-public clutter
5666 (package
5667 (name "clutter")
5668 (version "1.26.2")
5669 (source
5670 (origin
5671 (method url-fetch)
5672 (uri (string-append "mirror://gnome/sources/" name "/"
5673 (version-major+minor version) "/"
5674 name "-" version ".tar.xz"))
5675 (sha256
5676 (base32
5677 "0mif1qnrpkgxi43h7pimim6w6zwywa16ixcliw0yjm9hk0a368z7"))))
5678 ;; NOTE: mutter exports a bundled fork of clutter, so when making changes
5679 ;; to clutter, corresponding changes may be appropriate in mutter as well.
5680 (build-system gnu-build-system)
5681 (outputs '("out"
5682 "doc")) ;9 MiB of gtk-doc HTML pages
5683 (native-inputs
5684 `(("glib:bin" ,glib "bin") ; for glib-genmarshal
5685 ("gobject-introspection" ,gobject-introspection)
5686 ("pkg-config" ,pkg-config)
5687 ("xsltproc" ,libxslt)))
5688 (propagated-inputs
5689 `(("cogl" ,cogl)
5690 ("cairo" ,cairo)
5691 ("atk" ,atk)
5692 ("gtk+" ,gtk+)
5693 ("json-glib" ,json-glib)
5694 ("glib" ,glib)
5695 ("libxcomposite" ,libxcomposite)
5696 ("libxdamage" ,libxdamage)
5697 ("libxext" ,libxext)
5698 ("xinput" ,xinput)))
5699 (inputs
5700 `(("libxkbcommon" ,libxkbcommon)
5701 ("udev" ,eudev)))
5702 (arguments
5703 `(#:configure-flags (list "--enable-x11-backend=yes"
5704
5705 ;; This produces share/doc/{clutter,cally}.
5706 (string-append "--with-html-dir="
5707 (assoc-ref %outputs "doc")
5708 "/share/doc"))
5709 ;; XXX FIXME: Get test suite working. It would probably fail in the
5710 ;; same way the cogl tests fail, since clutter is based on cogl.
5711 #:tests? #f))
5712 (home-page "http://www.clutter-project.org")
5713 (synopsis "OpenGL-based interactive canvas library")
5714 (description
5715 "Clutter is an OpenGL-based interactive canvas library, designed for
5716 creating fast, mainly 2D single window applications such as media box UIs,
5717 presentations, kiosk style applications and so on.")
5718 (license license:lgpl2.0+)))
5719
5720 (define-public clutter-gtk
5721 (package
5722 (name "clutter-gtk")
5723 (version "1.8.4")
5724 (source
5725 (origin
5726 (method url-fetch)
5727 (uri (string-append "mirror://gnome/sources/" name "/"
5728 (version-major+minor version) "/"
5729 name "-" version ".tar.xz"))
5730 (sha256
5731 (base32
5732 "01ibniy4ich0fgpam53q252idm7f4fn5xg5qvizcfww90gn9652j"))))
5733 (build-system gnu-build-system)
5734 (native-inputs
5735 `(("pkg-config" ,pkg-config)
5736 ("gobject-introspection" ,gobject-introspection)))
5737 (propagated-inputs
5738 ;; clutter-gtk.pc refers to all these.
5739 `(("clutter" ,clutter)
5740 ("gtk+" ,gtk+)))
5741 (home-page "http://www.clutter-project.org")
5742 (synopsis "OpenGL-based interactive canvas library GTK+ widget")
5743 (description
5744 "Clutter is an OpenGL-based interactive canvas library, designed for
5745 creating fast, mainly 2D single window applications such as media box UIs,
5746 presentations, kiosk style applications and so on.")
5747 (license license:lgpl2.0+)))
5748
5749 (define-public clutter-gst
5750 (package
5751 (name "clutter-gst")
5752 (version "3.0.27")
5753 (source
5754 (origin
5755 (method url-fetch)
5756 (uri (string-append "mirror://gnome/sources/clutter-gst/"
5757 (version-major+minor version) "/"
5758 "clutter-gst-" version ".tar.xz"))
5759 (sha256
5760 (base32 "17czmpl92dzi4h3rn5rishk015yi3jwiw29zv8qan94xcmnbssgy"))))
5761 (build-system gnu-build-system)
5762 (native-inputs
5763 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5764 ("pkg-config" ,pkg-config)
5765 ("gobject-introspection" ,gobject-introspection)))
5766 (inputs
5767 `(("clutter" ,clutter)
5768 ("gstreamer" ,gstreamer)
5769 ("gst-plugins-base" ,gst-plugins-base)))
5770 (home-page "http://www.clutter-project.org")
5771 (synopsis "Integration library for using GStreamer with Clutter")
5772 (description
5773 "Clutter-Gst is an integration library for using GStreamer with Clutter.
5774 It provides a GStreamer sink to upload frames to GL and an actor that
5775 implements the ClutterGstPlayer interface using playbin. Clutter is an
5776 OpenGL-based interactive canvas library.")
5777 (license license:lgpl2.0+)))
5778
5779 (define-public libchamplain
5780 (package
5781 (name "libchamplain")
5782 (version "0.12.16")
5783 (source (origin
5784 (method url-fetch)
5785 (uri (string-append
5786 "mirror://gnome/sources/libchamplain/0.12/libchamplain-"
5787 version ".tar.xz"))
5788 (sha256
5789 (base32
5790 "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja"))))
5791 (build-system gnu-build-system)
5792 (arguments '(#:configure-flags '("--enable-vala")))
5793 (native-inputs
5794 `(("gobject-introspection" ,gobject-introspection)
5795 ("pkg-config" ,pkg-config)
5796 ("vala" ,vala)))
5797 (propagated-inputs
5798 `(("libsoup" ,libsoup)
5799 ("sqlite" ,sqlite)
5800 ("clutter" ,clutter)
5801 ("clutter-gtk" ,clutter-gtk)
5802 ("glib:bin" ,glib "bin") ;glib-mkenums, etc.
5803 ("cairo" ,cairo)
5804 ("gtk+3" ,gtk+)
5805 ("glib" ,glib)))
5806 (home-page "https://projects.gnome.org/libchamplain/")
5807 (synopsis "C library providing a ClutterActor to display maps")
5808 (description
5809 "libchamplain is a C library providing a ClutterActor to display maps.
5810 It also provides a Gtk+ widget to display maps in Gtk+ applications. Python
5811 and Perl bindings are also available. It supports numerous free map sources
5812 such as OpenStreetMap, OpenCycleMap, OpenAerialMap, and Maps for free.")
5813 (license license:lgpl2.1+)))
5814
5815 (define-public gom
5816 (package
5817 (name "gom")
5818 (version "0.3.2")
5819 (source
5820 (origin
5821 (method url-fetch)
5822 (uri (string-append "mirror://gnome/sources/gom/"
5823 (version-major+minor version) "/"
5824 "gom-" version ".tar.xz"))
5825 (sha256
5826 (base32
5827 "1zaqqwwkyiswib3v1v8wafpbifpbpak0nn2kp13pizzn9bwz1s5w"))))
5828 (build-system gnu-build-system)
5829 (native-inputs
5830 `(("intltool" ,intltool)
5831 ("pkg-config" ,pkg-config)
5832 ("gobject-introspection" ,gobject-introspection)))
5833 (inputs
5834 `(("glib" ,glib)
5835 ("gdk-pixbuf" ,gdk-pixbuf)
5836 ("sqlite" ,sqlite)))
5837 ;; XXX TODO: Figure out how to run the test suite.
5838 (arguments `(#:tests? #f))
5839 (home-page "https://wiki.gnome.org/Projects/Gom")
5840 (synopsis "Object mapper from GObjects to SQLite")
5841 (description
5842 "Gom provides an object mapper from GObjects to SQLite. It helps you
5843 write applications that need to store structured data as well as make complex
5844 queries upon that data.")
5845 (license license:lgpl2.1+)))
5846
5847 (define-public libgnome-games-support
5848 (package
5849 (name "libgnome-games-support")
5850 (version "1.4.4")
5851 (source (origin
5852 (method url-fetch)
5853 (uri (string-append "mirror://gnome/sources/libgnome-games-support/"
5854 (version-major+minor version) "/"
5855 "libgnome-games-support-" version ".tar.xz"))
5856 (sha256
5857 (base32
5858 "1zkbmnrn161p74qg6jhsn9f66yjjzxfm13pl1klv9av8k1bax9pq"))))
5859 (build-system gnu-build-system)
5860 (arguments
5861 '(#:phases
5862 (modify-phases %standard-phases
5863 (add-before 'check 'pre-check
5864 (lambda _
5865 ;; Tests require a writable HOME.
5866 (setenv "HOME" (getcwd))
5867 #t)))))
5868 (native-inputs
5869 `(("intltool" ,intltool)
5870 ("pkg-config" ,pkg-config)
5871 ("vala" ,vala)))
5872 (propagated-inputs
5873 ;; Required by libgnome-games-support-1.0.pc
5874 `(("gtk+" ,gtk+)
5875 ("libgee" ,libgee)))
5876 (home-page "https://www.gnome.org/")
5877 (synopsis "Useful functionality shared among GNOME games")
5878 (description
5879 "libgnome-games-support is a small library intended for internal use by
5880 GNOME Games, but it may be used by others.")
5881 (license license:lgpl3+)))
5882
5883 (define-public gnome-klotski
5884 (package
5885 (name "gnome-klotski")
5886 (version "3.34.0")
5887 (source (origin
5888 (method url-fetch)
5889 (uri (string-append "mirror://gnome/sources/" name "/"
5890 (version-major+minor version) "/"
5891 name "-" version ".tar.xz"))
5892 (sha256
5893 (base32
5894 "0sbx0bzy32lh2c9jp8v7gz788wn9y1la8mr5a7gf7370szsl4d4f"))))
5895 (build-system meson-build-system)
5896 (arguments
5897 '(#:glib-or-gtk? #t
5898 #:phases
5899 (modify-phases %standard-phases
5900 (add-after 'unpack 'skip-gtk-update-icon-cache
5901 ;; Don't create 'icon-theme.cache'.
5902 (lambda _
5903 (substitute* "build-aux/meson_post_install.py"
5904 (("gtk-update-icon-cache") (which "true")))
5905 #t)))))
5906 (native-inputs
5907 `(("desktop-file-utils" ,desktop-file-utils)
5908 ("glib:bin" ,glib "bin") ; for glib-compile-resources
5909 ("intltool" ,intltool)
5910 ("itstool" ,itstool)
5911 ("pkg-config" ,pkg-config)
5912 ("vala" ,vala)
5913 ("xmllint" ,libxml2)))
5914 (inputs
5915 `(("gtk+" ,gtk+)
5916 ("libgnome-games-support" ,libgnome-games-support)
5917 ("librsvg" ,librsvg)))
5918 (home-page "https://wiki.gnome.org/Apps/Klotski")
5919 (synopsis "Sliding block puzzles")
5920 (description
5921 "GNOME Klotski is a set of block sliding puzzles. The objective is to move
5922 the patterned block to the area bordered by green markers. To do so, you will
5923 need to slide other blocks out of the way. Complete each puzzle in as few moves
5924 as possible!")
5925 (license license:gpl2+)))
5926
5927 (define-public grilo
5928 (package
5929 (name "grilo")
5930 (version "0.3.12")
5931 (source
5932 (origin
5933 (method url-fetch)
5934 (uri (string-append "mirror://gnome/sources/grilo/"
5935 (version-major+minor version) "/"
5936 "grilo-" version ".tar.xz"))
5937 (sha256
5938 (base32 "0w8sq5g6g1rg85h53vbll8va70fcp6082mlpmy98aa03444ddyyv"))))
5939 (build-system meson-build-system)
5940 (native-inputs
5941 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
5942 ("intltool" ,intltool)
5943 ("pkg-config" ,pkg-config)
5944 ("gobject-introspection" ,gobject-introspection)
5945 ("gtk-doc" ,gtk-doc)
5946 ("vala" ,vala)))
5947 (inputs
5948 `(("cyrus-sasl" ,cyrus-sasl)
5949 ("glib" ,glib)
5950 ("gtk+" ,gtk+)
5951 ("libxml2" ,libxml2)
5952 ("liboauth" ,liboauth)
5953 ("libsoup" ,libsoup)
5954 ("totem-pl-parser" ,totem-pl-parser)))
5955 (native-search-paths
5956 (list (search-path-specification
5957 (variable "GRL_PLUGIN_PATH")
5958 (files (list (string-append "lib/grilo-"
5959 (version-major+minor version)))))))
5960 (home-page "https://wiki.gnome.org/action/show/Projects/Grilo")
5961 (synopsis "Framework for discovering and browsing media")
5962 (description
5963 "Grilo is a framework focused on making media discovery and browsing easy
5964 for application developers.")
5965 (license license:lgpl2.1+)))
5966
5967 (define-public grilo-plugins
5968 (package
5969 (name "grilo-plugins")
5970 (version "0.3.11")
5971 (source
5972 (origin
5973 (method url-fetch)
5974 (uri (string-append "mirror://gnome/sources/" name "/"
5975 (version-major+minor version) "/"
5976 name "-" version ".tar.xz"))
5977 (sha256
5978 (base32 "0wyd3n5mn7b77hxylkc3f62v01mlavh96901pz342hwrn42ydqnx"))))
5979 (build-system meson-build-system)
5980 (native-inputs
5981 `(("gettext" ,gettext-minimal)
5982 ("glib:bin" ,glib "bin")
5983 ("gtk+:bin" ,gtk+ "bin")
5984 ("itstool" ,itstool)
5985 ("pkg-config" ,pkg-config)))
5986 ;; TODO: ahavi, gstreamer
5987 (inputs
5988 `(("grilo" ,grilo)
5989 ;("gmime" ,gmime) ; unused
5990 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
5991 ("gom" ,gom)
5992 ;("gssdp" ,gssdp) ; unused
5993 ;("gupnp" ,gupnp) ; unused
5994 ;("gupnp-av" ,gupnp-av) ; unused
5995 ("json-glib" ,json-glib)
5996 ("avahi" ,avahi)
5997 ("libgdata" ,libgdata)
5998 ("libmediaart" ,libmediaart)
5999 ;("librest" ,rest) ; unused
6000 ("libsoup" ,libsoup)
6001 ("totam-pl-parser" ,totem-pl-parser)
6002 ("tracker" ,tracker))) ; unused because it's too old
6003 (arguments
6004 `(#:glib-or-gtk? #t
6005 ;;Disable lua-factory as it needs missing dependencies
6006 #:configure-flags '("-Denable-lua-factory=no")))
6007 (home-page "https://live.gnome.org/Grilo")
6008 (synopsis "Plugins for the Grilo media discovery library")
6009 (description
6010 "Grilo is a framework focused on making media discovery and browsing easy
6011 for application developers. This package provides plugins for common media
6012 discovery protocols.")
6013 (license license:lgpl2.1+)))
6014
6015 (define-public totem
6016 (package
6017 (name "totem")
6018 (version "3.38.0")
6019 (source
6020 (origin
6021 (method url-fetch)
6022 (uri (string-append "mirror://gnome/sources/totem/"
6023 (version-major+minor version) "/"
6024 "totem-" version ".tar.xz"))
6025 (sha256
6026 (base32
6027 "0bs33ijvxbr2prb9yj4dxglsszslsn9k258n311sld84masz4ad8"))))
6028 (build-system meson-build-system)
6029 (native-inputs
6030 `(("pkg-config" ,pkg-config)
6031 ("desktop-file-utils" ,desktop-file-utils)
6032 ("gettext" ,gettext-minimal)
6033 ("gobject-introspection" ,gobject-introspection)
6034 ("glib:bin" ,glib "bin") ;for 'glib-mkenums'
6035 ("itstool" ,itstool)
6036 ("xmllint" ,libxml2)
6037 ("xorg-server" ,xorg-server-for-tests)))
6038 (propagated-inputs
6039 `(("dconf" ,dconf)))
6040 (inputs
6041 `(("gtk+" ,gtk+)
6042 ("gdk-pixbuf" ,gdk-pixbuf)
6043 ("atk" ,atk)
6044 ("cairo" ,cairo)
6045 ("dbus-glib" ,dbus-glib)
6046 ("clutter" ,clutter)
6047 ("clutter-gtk" ,clutter-gtk)
6048 ("clutter-gst" ,clutter-gst)
6049 ("xorgproto" ,xorgproto)
6050 ("libxxf86vm" ,libxxf86vm)
6051 ("libxtst" ,libxtst)
6052 ("libxrandr" ,libxrandr)
6053 ("libxml2" ,libxml2)
6054 ("libsoup" ,libsoup)
6055 ("libpeas" ,libpeas)
6056 ("librsvg" ,librsvg)
6057 ("lirc" ,lirc)
6058 ("gnome-desktop" ,gnome-desktop)
6059 ("gstreamer" ,gstreamer)
6060 ("gst-plugins-base" ,gst-plugins-base)
6061 ("gst-plugins-good" ,gst-plugins-good)
6062 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6063 ("adwaita-icon-theme" ,adwaita-icon-theme)
6064 ("python" ,python)
6065 ("python-pygobject" ,python-pygobject)
6066 ("totem-pl-parser" ,totem-pl-parser)
6067 ("grilo" ,grilo)
6068 ("grilo-plugins" ,grilo-plugins)
6069 ("vala" ,vala)))
6070 (arguments
6071 `(#:glib-or-gtk? #t
6072
6073 ;; Disable automatic GStreamer plugin installation via PackageKit and
6074 ;; all that.
6075 #:configure-flags '("-D" "enable-easy-codec-installation=no"
6076
6077 ;; Do not build .a files for the plugins, it's
6078 ;; completely useless. This saves 2 MiB.
6079 "--default-library" "shared")
6080 #:phases
6081 (modify-phases %standard-phases
6082 (add-after 'unpack 'skip-gtk-update-icon-cache
6083 ;; Don't create 'icon-theme.cache'.
6084 (lambda _
6085 (substitute* "meson_post_install.py"
6086 (("gtk-update-icon-cache") "true"))
6087 #t))
6088 (add-after 'unpack 'patch-failing-test
6089 (lambda _
6090 ;; Work around test failure with GStreamer 1.18, because the test
6091 ;; relies on "und" not being mapped to a particular language:
6092 ;; https://gitlab.gnome.org/GNOME/totem/-/issues/450
6093 (substitute* "src/test-totem.c"
6094 (("und") "nosuchlang"))
6095 #t))
6096 (add-before
6097 'install 'disable-cache-generation
6098 (lambda _
6099 (setenv "DESTDIR" "/")
6100 #t))
6101 (add-before
6102 'check 'pre-check
6103 (lambda _
6104 ;; Tests require a running X server.
6105 (system "Xvfb :1 &")
6106 (setenv "DISPLAY" ":1")
6107 #t))
6108 (add-after
6109 'install 'wrap-totem
6110 (lambda* (#:key inputs outputs #:allow-other-keys)
6111 (let ((out (assoc-ref outputs "out"))
6112 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
6113 (grl-plugin-path (getenv "GRL_PLUGIN_PATH")))
6114 (wrap-program (string-append out "/bin/totem")
6115 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
6116 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path)))
6117 (wrap-program (string-append out "/bin/totem-video-thumbnailer")
6118 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
6119 #t)))))
6120 (home-page "https://wiki.gnome.org/Apps/Videos")
6121 (synopsis "Simple media player for GNOME based on GStreamer")
6122 (description "Totem is a simple yet featureful media player for GNOME
6123 which can read a large number of file formats.")
6124 ;; GPL2+ with an exception clause for non-GPL compatible GStreamer plugins
6125 ;; to be used and distributed together with GStreamer and Totem. See
6126 ;; file://COPYING in the source distribution for details.
6127 (license license:gpl2+)))
6128
6129 (define-public rhythmbox
6130 (package
6131 (name "rhythmbox")
6132 (version "3.4.4")
6133 (source (origin
6134 (method url-fetch)
6135 (uri (string-append "mirror://gnome/sources/rhythmbox/"
6136 (version-major+minor version) "/"
6137 "rhythmbox-" version ".tar.xz"))
6138 (sha256
6139 (base32
6140 "142xcvw4l19jyr5i72nbnrihs953pvrrzcbijjn9dxmxszbv03pf"))))
6141 (build-system glib-or-gtk-build-system)
6142 (arguments
6143 `(#:configure-flags
6144 (list "--enable-lirc"
6145 "--enable-python"
6146 "--enable-vala"
6147 "--with-brasero"
6148 "--with-gudev"
6149 "--with-libsecret")
6150 #:phases
6151 (modify-phases %standard-phases
6152 (add-after
6153 'install 'wrap-rhythmbox
6154 (lambda* (#:key inputs outputs #:allow-other-keys)
6155 (let ((out (assoc-ref outputs "out"))
6156 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6157 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
6158 (grl-plugin-path (getenv "GRL_PLUGIN_PATH"))
6159 (python-path (getenv "PYTHONPATH")))
6160 (wrap-program (string-append out "/bin/rhythmbox")
6161 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6162 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
6163 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path))
6164 `("PYTHONPATH" ":" prefix (,python-path))))
6165 #t)))))
6166 (propagated-inputs
6167 `(("dconf" ,dconf)))
6168 (native-inputs
6169 `(("itstool" ,itstool)
6170 ("intltool" ,intltool)
6171 ("glib" ,glib "bin")
6172 ("gobject-introspection" ,gobject-introspection)
6173 ("desktop-file-utils" ,desktop-file-utils)
6174 ("pkg-config" ,pkg-config)
6175 ("xmllint" ,libxml2)))
6176 (inputs
6177 `(("json-glib" ,json-glib)
6178 ("tdb" ,tdb)
6179 ("gnome-desktop" ,gnome-desktop)
6180 ("python" ,python)
6181 ("python-pygobject" ,python2-pygobject)
6182 ("vala" ,vala)
6183 ("gmime" ,gmime)
6184 ("adwaita-icon-theme" ,adwaita-icon-theme)
6185 ("grilo" ,grilo)
6186 ("grilo-plugins" ,grilo-plugins)
6187 ("gstreamer" ,gstreamer)
6188 ("gst-plugins-base" ,gst-plugins-base)
6189 ("gst-plugins-good" ,gst-plugins-good)
6190 ("totem-pl-parser" ,totem-pl-parser)
6191 ("libgudev" ,libgudev)
6192 ;;("libmtp" ,libmtp) FIXME: Not detected
6193 ("libsecret" ,libsecret)
6194 ("libsoup" ,libsoup)
6195 ("libnotify" ,libnotify)
6196 ("libpeas" ,libpeas)
6197 ("lirc" ,lirc)
6198 ;; TODO: clutter* only used by visualizer plugin, which also requires mx
6199 ;;("clutter" ,clutter)
6200 ;;("clutter-gtk" ,clutter-gtk)
6201 ;;("clutter-gst" ,clutter-gst)
6202 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6203 ("atk" ,atk)
6204 ("pango" ,pango)
6205 ("gtk+" ,gtk+)
6206 ;; TODO:
6207 ;; * libgpod
6208 ;; * mx
6209 ("brasero" ,brasero)))
6210 (home-page "https://wiki.gnome.org/Apps/Rhythmbox")
6211 (synopsis "Music player for GNOME")
6212 (description "Rhythmbox is a music playing application for GNOME. It
6213 supports playlists, song ratings, and any codecs installed through gstreamer.")
6214 (license license:gpl2+)))
6215
6216 (define-public eog
6217 (package
6218 (name "eog")
6219 (version "3.34.1")
6220 (source (origin
6221 (method url-fetch)
6222 (uri (string-append "mirror://gnome/sources/" name "/"
6223 (version-major+minor version) "/"
6224 name "-" version ".tar.xz"))
6225 (sha256
6226 (base32
6227 "0b7ld4azs9xbdjsk9b91ywhdzvxgajhndiwiivxjzbr0hjgp7c7x"))))
6228 (build-system meson-build-system)
6229 (arguments
6230 `(#:configure-flags
6231 ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
6232 (list (string-append "-Dc_link_args=-Wl,-rpath="
6233 (assoc-ref %outputs "out") "/lib/eog"))
6234 #:phases
6235 (modify-phases %standard-phases
6236 (add-after 'unpack 'skip-gtk-update-icon-cache
6237 ;; Don't create 'icon-theme.cache'.
6238 (lambda _
6239 (substitute* "meson_post_install.py"
6240 (("gtk-update-icon-cache") "true"))
6241 #t))
6242 (add-after 'install 'wrap-eog
6243 (lambda* (#:key outputs #:allow-other-keys)
6244 (let ((out (assoc-ref outputs "out"))
6245 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
6246 (wrap-program (string-append out "/bin/eog")
6247 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6248 #t)))))
6249 (propagated-inputs
6250 `(("dconf" ,dconf)))
6251 (native-inputs
6252 `(("intltool" ,intltool)
6253 ("itstool" ,itstool)
6254 ("glib" ,glib "bin")
6255 ("gobject-introspection" ,gobject-introspection)
6256 ("pkg-config" ,pkg-config)
6257 ("xmllint" ,libxml2)))
6258 (inputs
6259 `(("gnome-desktop" ,gnome-desktop)
6260 ("shared-mime-info" ,shared-mime-info)
6261 ("adwaita-icon-theme" ,adwaita-icon-theme)
6262 ("exempi" ,exempi)
6263 ("lcms" ,lcms)
6264 ("libexif" ,libexif)
6265 ("libpeas" ,libpeas)
6266 ("libjpeg" ,libjpeg-turbo)
6267 ("librsvg" ,librsvg-next)
6268 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6269 ("gtk+" ,gtk+)))
6270 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
6271 (synopsis "GNOME image viewer")
6272 (description "Eye of GNOME is the GNOME image viewer. It
6273 supports image conversion, rotation, and slideshows.")
6274 (license license:gpl2+)))
6275
6276 (define-public eog-plugins
6277 ;; Note: EOG looks for its plugins (via libpeas) in ~/.local as well as
6278 ;; $DATA/lib/eog/plugins, where DATA is one of the entries in
6279 ;; $XDG_DATA_DIRS. Thus, for EOG to find these, you have to have
6280 ;; 'XDG_DATA_DIRS' appropriately set.
6281 (package
6282 (name "eog-plugins")
6283 (version "3.26.4")
6284 (source (origin
6285 (method url-fetch)
6286 (uri (string-append "mirror://gnome/sources/eog-plugins/"
6287 (version-major+minor version) "/"
6288 "eog-plugins-" version ".tar.xz"))
6289 (sha256
6290 (base32
6291 "0pd7fqa4ciy5844k5s1c6rlsqkk8pxd8cchxjcjhxlsngm9lynnx"))))
6292 (build-system gnu-build-system)
6293 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome/Plugins")
6294 (synopsis "Extensions for the Eye of GNOME image viewer")
6295 (native-inputs
6296 `(("pkg-config" ,pkg-config)
6297 ("gettext" ,gettext-minimal)))
6298 (inputs
6299 `(("eog" ,eog)
6300 ("glib" ,glib)
6301 ("gtk+" ,gtk+)
6302 ("libpeas" ,libpeas)
6303 ("libexif" ,libexif)
6304 ("libchamplain" ,libchamplain)))
6305 (description
6306 "This package provides plugins for the Eye of GNOME (EOG) image viewer,
6307 notably:
6308
6309 @itemize
6310 @item @dfn{EXIF Display}, which displays camera (EXIF) information;
6311 @item @dfn{Map}, which displays a map of where the picture was taken on the
6312 side panel;
6313 @item @dfn{Slideshow Shuffle}, to shuffle images in slideshow mode.
6314 @end itemize\n")
6315
6316 ;; XXX: eog-postasa-plugin-resources.c (which we don't build) contains a
6317 ;; long suspicious byte stream that goes to a
6318 ;; ".gresource.eog_postasa_plugin" ELF section.
6319 (license license:gpl2+)))
6320
6321 (define-public libgudev
6322 (package
6323 (name "libgudev")
6324 (version "232")
6325 (source (origin
6326 (method url-fetch)
6327 (uri (string-append "mirror://gnome/sources/" name "/"
6328 version "/" name "-" version ".tar.xz"))
6329 (sha256
6330 (base32
6331 "0q3qki451zzgdjazlgshsfzbbm0in40lyx7dyrag7kbkqnwv4k7f"))))
6332 (build-system gnu-build-system)
6333 (arguments
6334 '(#:configure-flags
6335 ;; umockdev depends on libgudev.
6336 (list "--disable-umockdev")))
6337 (native-inputs
6338 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6339 ("gobject-introspection" ,gobject-introspection)
6340 ("pkg-config" ,pkg-config)))
6341 (propagated-inputs
6342 `(("glib" ,glib))) ; required by gudev-1.0.pc
6343 (inputs
6344 `(("udev" ,eudev)))
6345 (home-page "https://wiki.gnome.org/Projects/libgudev")
6346 (synopsis "GObject bindings for libudev")
6347 (description
6348 "This library provides GObject bindings for libudev. It was originally
6349 part of udev-extras, then udev, then systemd. It's now a project on its own.")
6350 (license license:lgpl2.1+)))
6351
6352 (define-public gvfs
6353 (package
6354 (name "gvfs")
6355 (version "1.40.1")
6356 (source (origin
6357 (method url-fetch)
6358 (uri (string-append "mirror://gnome/sources/gvfs/"
6359 (version-major+minor version) "/"
6360 "gvfs-" version ".tar.xz"))
6361 (sha256
6362 (base32
6363 "1cfnzamr4mvgpf6yhm28lh9cafy9z6842s8jpbqnfizfxybg8ylj"))
6364 ;; This patch may be removed when upgrading to version 1.46.x.
6365 (patches
6366 (search-patches "gvfs-add-support-for-libplist-2.2.patch"))))
6367 (build-system meson-build-system)
6368 (arguments
6369 '(#:glib-or-gtk? #t
6370 #:configure-flags
6371 (list "-Dsystemduserunitdir=no"
6372 "-Dtmpfilesdir=no"
6373 ;; Otherwise, the RUNPATH will lack the final path component.
6374 (string-append "-Dc_link_args=-Wl,-rpath="
6375 (assoc-ref %outputs "out") "/lib/gvfs"))))
6376 (native-inputs
6377 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6378 ("gettext" ,gettext-minimal)
6379 ("gtk-doc" ,gtk-doc)
6380 ("pkg-config" ,pkg-config)
6381 ("xsltproc" ,libxslt)))
6382 (inputs
6383 `(("avahi" ,avahi)
6384 ("docbook-xml" ,docbook-xml-4.2)
6385 ("docbook-xsl" ,docbook-xsl)
6386 ("dbus" ,dbus)
6387 ("elogind" ,elogind)
6388 ("fuse" ,fuse)
6389 ("gcr" ,gcr)
6390 ("glib" ,glib)
6391 ("gnome-online-accounts" ,gnome-online-accounts)
6392 ("libarchive" ,libarchive)
6393 ("libbluray" ,libbluray)
6394 ("libcap" ,libcap)
6395 ("libcdio-paranoia" ,libcdio-paranoia)
6396 ("libgcrypt" ,libgcrypt)
6397 ("libgdata" ,libgdata)
6398 ("libgphoto2" ,libgphoto2)
6399 ("libgudev" ,libgudev)
6400 ("libimobiledevice" ,libimobiledevice)
6401 ("libmtp" ,libmtp)
6402 ("libnfs" ,libnfs)
6403 ("libsecret" ,libsecret)
6404 ("libsmbclient" ,samba)
6405 ("libsoup" ,libsoup)
6406 ("libxml2" ,libxml2)
6407 ("openssh" ,openssh)
6408 ("polkit" ,polkit)
6409 ("udisks" ,udisks)))
6410 (home-page "https://wiki.gnome.org/gvfs/")
6411 (synopsis "Userspace virtual file system for GIO")
6412 (description
6413 "GVFS is a userspace virtual file system designed to work with the I/O
6414 abstraction of GIO. It contains a GIO module that seamlessly adds GVFS support
6415 to all applications using the GIO API. It also supports exposing the GVFS
6416 mounts to non-GIO applications using FUSE.
6417
6418 GVFS comes with a set of backends, including trash support, SFTP, SMB, HTTP,
6419 DAV, and others.")
6420 (license license:lgpl2.0+)))
6421
6422 (define-public gusb
6423 (package
6424 (name "gusb")
6425 (version "0.3.0")
6426 (source (origin
6427 (method git-fetch)
6428 (uri (git-reference
6429 (url "https://github.com/hughsie/libgusb")
6430 (commit version)))
6431 (file-name (git-file-name name version))
6432 (sha256
6433 (base32
6434 "002pg0p4qzzk5dkyiynm483ir26zxrn4k71c7f6j85mfsdzbgli7"))))
6435 (build-system meson-build-system)
6436 (native-inputs
6437 `(("gobject-introspection" ,gobject-introspection)
6438 ("pkg-config" ,pkg-config)
6439 ("vala" ,vala)
6440 ("gtk-doc" ,gtk-doc)))
6441 (propagated-inputs
6442 ;; Both of these are required by gusb.pc.
6443 `(("glib" ,glib)
6444 ("libusb" ,libusb)))
6445 (arguments
6446 `(#:tests? #f)) ;libusb fails to initialize. Wonder what that is.
6447 (home-page "https://github.com/hughsie/libgusb")
6448 (synopsis "GLib binding for libusb1")
6449 (description
6450 "GUsb is a GObject wrapper for libusb1 that makes it easy to do
6451 asynchronous control, bulk and interrupt transfers with proper cancellation
6452 and integration into a mainloop. This makes it easy to integrate low level
6453 USB transfers with your high-level application or system daemon.")
6454 (license license:lgpl2.1+)))
6455
6456 (define-public simple-scan
6457 (package
6458 (name "simple-scan")
6459 (version "3.38.2")
6460 (source
6461 (origin
6462 (method url-fetch)
6463 (uri (string-append "mirror://gnome/sources/simple-scan/"
6464 (version-major+minor version) "/"
6465 "simple-scan-" version ".tar.xz"))
6466 (sha256
6467 (base32 "02sdkhxgr6i7iy481h4xavgaqd0a5dlsipzwrm4qd242jrr813d8"))))
6468 (build-system meson-build-system)
6469 ;; TODO: Fix icons in home screen, About dialogue, and scan menu.
6470 (arguments
6471 '(#:glib-or-gtk? #t))
6472 (inputs
6473 `(("gtk" ,gtk+)
6474 ("zlib" ,zlib)
6475 ("cairo" ,cairo)
6476 ("colord" ,colord)
6477 ("gdk-pixbuf" ,gdk-pixbuf)
6478 ("gusb" ,gusb)
6479 ("libsane" ,sane-backends)))
6480 (native-inputs
6481 `(("gettext" ,gettext-minimal)
6482 ("itstool" ,itstool)
6483 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
6484 ("pkg-config" ,pkg-config)
6485 ("vala" ,vala)
6486 ("xmllint" ,libxml2)))
6487 (home-page "https://gitlab.gnome.org/GNOME/simple-scan")
6488 (synopsis "Document and image scanner")
6489 (description
6490 "Document Scanner is an easy-to-use application that lets you connect your
6491 scanner and quickly capture images and documents in an appropriate format. It
6492 supports any scanner for which a suitable SANE driver is available, which is
6493 almost all of them.")
6494 (license license:gpl3+)))
6495
6496 (define-public eolie
6497 (package
6498 (name "eolie")
6499 (version "0.9.100")
6500 (source (origin
6501 (method url-fetch)
6502 (uri (string-append "https://adishatz.org/eolie/eolie-"
6503 version ".tar.xz"))
6504 (sha256
6505 (base32
6506 "1vzhfp8j1z3jvd5ndqfyn7nqrx3zdvx9mv1byjl36nnd9g63ji62"))))
6507 (build-system meson-build-system)
6508 (arguments
6509 `(#:glib-or-gtk? #t
6510 #:phases
6511 (modify-phases %standard-phases
6512 (add-after 'unpack 'skip-gtk-update-icon-cache
6513 ;; Don't create 'icon-theme.cache'.
6514 (lambda _
6515 (substitute* "meson_post_install.py"
6516 (("gtk-update-icon-cache") "true"))
6517 #t))
6518 (add-after 'wrap 'wrap-more
6519 (lambda* (#:key inputs outputs #:allow-other-keys)
6520 (let* ((out (assoc-ref outputs "out"))
6521 ;; These libraries must be on LD_LIBRARY_PATH.
6522 (libs '("gtkspell3" "webkitgtk" "libsoup" "libsecret"
6523 "atk" "gtk+" "gsettings-desktop-schemas"
6524 "gobject-introspection"))
6525 (path (string-join
6526 (map (lambda (lib)
6527 (string-append (assoc-ref inputs lib) "/lib"))
6528 libs)
6529 ":")))
6530 (wrap-program (string-append out "/bin/eolie")
6531 `("LD_LIBRARY_PATH" ":" prefix (,path))
6532 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
6533 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
6534 #t)))))
6535 (native-inputs
6536 `(("intltool" ,intltool)
6537 ("itstool" ,itstool)
6538 ("pkg-config" ,pkg-config)
6539 ("python" ,python)
6540 ("glib:bin" ,glib "bin")))
6541 (inputs
6542 `(("gobject-introspection" ,gobject-introspection)
6543 ("glib-networking" ,glib-networking)
6544 ("cairo" ,cairo)
6545 ("gtk+" ,gtk+)
6546 ("atk" ,atk) ; propagated by gtk+, but we need it in LD_LIBRARY_PATH
6547 ("python" ,python-wrapper)
6548 ("python-dateutil" ,python-dateutil)
6549 ("python-pyfxa" ,python-pyfxa)
6550 ("python-pygobject" ,python-pygobject)
6551 ("python-pycairo" ,python-pycairo)
6552 ("python-pycrypto" ,python-pycrypto)
6553 ("libsecret" ,libsecret)
6554 ("gtkspell3" ,gtkspell3)
6555 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6556 ("webkitgtk" ,webkitgtk)))
6557 (home-page "https://wiki.gnome.org/Apps/Eolie")
6558 (synopsis "Web browser for GNOME")
6559 (description
6560 "Eolie is a new web browser for GNOME. It features Firefox sync support,
6561 a secret password store, an adblocker, and a modern UI.")
6562 (license license:gpl3+)))
6563
6564 (define-public epiphany
6565 (package
6566 (name "epiphany")
6567 (version "3.34.4")
6568 (source (origin
6569 (method url-fetch)
6570 (uri (string-append "mirror://gnome/sources/epiphany/"
6571 (version-major+minor version) "/"
6572 "epiphany-" version ".tar.xz"))
6573 (sha256
6574 (base32
6575 "13ar3s40cds1rplwbzx0fzigf120w0rydiv05r3k6zpc0zy91qb0"))))
6576
6577 (build-system meson-build-system)
6578 (arguments
6579 '(#:glib-or-gtk? #t
6580 #:phases
6581 (modify-phases %standard-phases
6582 (add-after 'unpack 'skip-gtk-update-icon-cache
6583 ;; Don't create 'icon-theme.cache'.
6584 (lambda _
6585 (substitute* "post_install.py"
6586 (("gtk-update-icon-cache") "true"))
6587 #t))
6588 (add-after 'unpack 'disable-failing-tests
6589 (lambda _
6590 (substitute* "tests/meson.build"
6591 ;; embed_shell fails, because webkitgtk apparently no longer supports
6592 ;; overriding the ftp schema
6593 ;; web_app_utils fails due to missing network access
6594 (("(embed_shell|web_app_utils)_test,")
6595 "find_program('sh'), args: ['-c', 'exit 77'],"))
6596 #t))
6597 (add-before 'check 'pre-check
6598 (lambda _
6599 ;; Tests require a running X server.
6600 (system "Xvfb :1 &")
6601 (setenv "DISPLAY" ":1")
6602 #t)))
6603 #:configure-flags
6604 ;; Otherwise, the RUNPATH will lack the final 'epiphany' path component.
6605 (list (string-append "-Dc_link_args=-Wl,-rpath="
6606 (assoc-ref %outputs "out") "/lib/epiphany"))))
6607 (propagated-inputs
6608 `(("dconf" ,dconf)))
6609 (native-inputs
6610 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6611 ("glib:bin" ,glib "bin") ; for glib-mkenums
6612 ("intltool" ,intltool)
6613 ("itstool" ,itstool)
6614 ("pkg-config" ,pkg-config)
6615 ("xmllint" ,libxml2)
6616 ("xorg-server" ,xorg-server-for-tests)))
6617 (inputs
6618 `(("avahi" ,avahi)
6619 ("gcr" ,gcr)
6620 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg) ; for loading SVG files
6621 ("glib-networking" ,glib-networking)
6622 ("gnome-desktop" ,gnome-desktop)
6623 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6624 ("json-glib" ,json-glib)
6625 ("iso-codes" ,iso-codes)
6626 ("libdazzle" ,libdazzle)
6627 ("libnotify" ,libnotify)
6628 ("libsecret" ,libsecret)
6629 ("libxslt" ,libxslt)
6630 ("nettle" ,nettle) ; for hogweed
6631 ("sqlite" ,sqlite)
6632 ("webkitgtk" ,webkitgtk)))
6633 (home-page "https://wiki.gnome.org/Apps/Web")
6634 (synopsis "GNOME web browser")
6635 (description
6636 "Epiphany is a GNOME web browser targeted at non-technical users. Its
6637 principles are simplicity and standards compliance.")
6638 (license license:gpl2+)))
6639
6640 (define-public d-feet
6641 (package
6642 (name "d-feet")
6643 (version "0.3.14")
6644 (source (origin
6645 (method url-fetch)
6646 (uri (string-append "mirror://gnome/sources/" name "/"
6647 (version-major+minor version) "/"
6648 name "-" version ".tar.xz"))
6649 (sha256
6650 (base32
6651 "1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f"))))
6652 (build-system glib-or-gtk-build-system)
6653 (arguments
6654 '(#:out-of-source? #f ; tests need to run in the source directory.
6655 #:phases
6656 (modify-phases %standard-phases
6657 (add-before
6658 'check 'pre-check
6659 (lambda _
6660 ;; The test suite requires a running X server.
6661 (system "Xvfb :1 &")
6662 (setenv "DISPLAY" ":1")
6663 ;; Don't fail on missing '/etc/machine-id'.
6664 (setenv "DBUS_FATAL_WARNINGS" "0")
6665 ;; tests.py and window.py don't meet E402:
6666 ;; E402 module level import not at top of file
6667 (substitute* "src/tests/Makefile"
6668 (("--ignore=E123") "--ignore=E123,E402"))
6669 #t))
6670 (add-after
6671 'install 'wrap-program
6672 (lambda* (#:key outputs #:allow-other-keys)
6673 (let ((prog (string-append (assoc-ref outputs "out")
6674 "/bin/d-feet")))
6675 (wrap-program prog
6676 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
6677 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
6678 #t))))))
6679 (native-inputs
6680 `(("intltool" ,intltool)
6681 ("itstool" ,itstool)
6682 ("pkg-config" ,pkg-config)
6683 ("python-pep8" ,python-pep8)
6684 ("xmllint" ,libxml2)
6685 ("xorg-server" ,xorg-server-for-tests)))
6686 (inputs
6687 `(("gobject-introspection" ,gobject-introspection)
6688 ("gtk+" ,gtk+)
6689 ("python" ,python-wrapper)
6690 ("hicolor-icon-theme" ,hicolor-icon-theme)
6691 ("python-pygobject" ,python-pygobject)))
6692 (home-page "https://wiki.gnome.org/Apps/DFeet")
6693 (synopsis "D-Bus debugger")
6694 (description
6695 "D-Feet is a D-Bus debugger, which can be used to inspect D-Bus interfaces
6696 of running programs and invoke methods on those interfaces.")
6697 (license license:gpl2+)))
6698
6699 (define-public yelp-xsl
6700 (package
6701 (name "yelp-xsl")
6702 (version "3.34.2")
6703 (source
6704 (origin
6705 (method url-fetch)
6706 (uri
6707 (string-append "mirror://gnome/sources/" name "/"
6708 (version-major+minor version) "/"
6709 name "-" version ".tar.xz"))
6710 (sha256
6711 (base32 "1bdpgkzawhqmw52l6zx8czzg1ndfgcf1p44m2bxjdpqkc4afcgqc"))))
6712 (build-system gnu-build-system)
6713 (native-inputs
6714 `(("gettext-minimal" ,gettext-minimal)
6715 ("itstool" ,itstool)
6716 ("xmllint" ,libxml2)))
6717 (synopsis "XSL stylesheets for Yelp")
6718 (description "Yelp-XSL is a collection of programs and data files to help
6719 you build, maintain, and distribute documentation. It provides XSLT stylesheets
6720 that can be built upon for help viewers and publishing systems. These
6721 stylesheets output JavaScript and CSS content, and reference images
6722 provided by yelp-xsl. It also redistributes copies of the jQuery and
6723 jQuery.Syntax JavaScript libraries.")
6724 (home-page "https://wiki.gnome.org/Apps/Yelp")
6725 (license
6726 (list
6727 ;; XSLT
6728 license:gpl2+
6729 ;; Images
6730 license:lgpl2.1+
6731 ;; JavaScript
6732 license:expat))))
6733
6734 (define-public yelp
6735 (package
6736 (name "yelp")
6737 (version "3.32.2")
6738 (source (origin
6739 (method url-fetch)
6740 (uri (string-append "mirror://gnome/sources/" name "/"
6741 (version-major+minor version) "/"
6742 name "-" version ".tar.xz"))
6743 (sha256
6744 (base32
6745 "0yrl96icmmrxvg7sxl519gzg9qb368cmzgrr9ddh181ignkxzx7f"))))
6746 (build-system glib-or-gtk-build-system)
6747 (native-inputs
6748 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6749 ("intltool" ,intltool)
6750 ("itstool" ,itstool)
6751 ("pkg-config" ,pkg-config)))
6752 (propagated-inputs
6753 `(("dconf" ,dconf)))
6754 (inputs
6755 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6756 ("libxslt" ,libxslt)
6757 ("sqlite" ,sqlite)
6758 ("webkitgtk" ,webkitgtk)
6759 ("yelp-xsl" ,yelp-xsl)))
6760 (home-page "https://wiki.gnome.org/Apps/Yelp")
6761 (synopsis "GNOME help browser")
6762 (description
6763 "Yelp is the help viewer in Gnome. It natively views Mallard, DocBook,
6764 man, info, and HTML documents. It can locate documents according to the
6765 freedesktop.org help system specification.")
6766 (license license:gpl2+)))
6767
6768 (define-public yelp-tools
6769 (package
6770 (name "yelp-tools")
6771 (version "3.32.2")
6772 (source
6773 (origin
6774 (method url-fetch)
6775 (uri
6776 (string-append "mirror://gnome/sources/" name "/"
6777 (version-major+minor version) "/"
6778 name "-" version ".tar.xz"))
6779 (sha256
6780 (base32 "1yg8f5g5wadhmy4yfd9yjhvd8vll4gq4l86ibp0b42qbxnsmcf0q"))))
6781 (build-system gnu-build-system)
6782 (native-inputs
6783 `(("pkg-config" ,pkg-config)))
6784 (inputs
6785 `(("yelp-xsl" ,yelp-xsl)))
6786 (propagated-inputs
6787 ;; Needed by `yelp-build', `yelp-check' or 'yelp.m4'.
6788 `(("itstool" ,itstool)
6789 ("xmllint" ,libxml2)
6790 ("xsltproc" ,libxslt)))
6791 (synopsis "Yelp documentation tools")
6792 (description
6793 "Yelp-tools is a collection of scripts and build utilities to help create,
6794 manage, and publish documentation for Yelp and the web. Most of the heavy
6795 lifting is done by packages like yelp-xsl and itstool. This package just
6796 wraps things up in a developer-friendly way.")
6797 (home-page "https://wiki.gnome.org/Apps/Yelp/Tools")
6798 (license license:gpl2+)))
6799
6800 (define-public libgee
6801 (package
6802 (name "libgee")
6803 (version "0.20.3")
6804 (source (origin
6805 (method url-fetch)
6806 (uri (string-append "mirror://gnome/sources/libgee/"
6807 (version-major+minor version) "/"
6808 "libgee-" version ".tar.xz"))
6809 (sha256
6810 (base32
6811 "1pm525wm11dhwz24m8bpcln9547lmrigl6cxf3qsbg4cr3pyvdfh"))))
6812 (build-system gnu-build-system)
6813 (arguments
6814 `(#:phases
6815 (modify-phases %standard-phases
6816 (add-after 'unpack 'fix-introspection-install-dir
6817 (lambda* (#:key outputs #:allow-other-keys)
6818 (let ((out (assoc-ref outputs "out")))
6819 (substitute* "gee/Makefile.in"
6820 (("@INTROSPECTION_GIRDIR@")
6821 (string-append out "/share/gir-1.0/"))
6822 (("@INTROSPECTION_TYPELIBDIR@")
6823 (string-append out "/lib/girepository-1.0/")))))))))
6824 (native-inputs
6825 `(("glib" ,glib "bin")
6826 ("pkg-config" ,pkg-config)))
6827 (inputs
6828 `(("glib" ,glib)
6829 ("gobject-introspection" ,gobject-introspection)))
6830 (home-page "https://wiki.gnome.org/Projects/Libgee")
6831 (synopsis "GObject collection library")
6832 (description
6833 "Libgee is a utility library providing GObject-based interfaces and
6834 classes for commonly used data structures.")
6835 (license license:lgpl2.1+)))
6836
6837 (define-public gexiv2
6838 (package
6839 (name "gexiv2")
6840 (version "0.12.1")
6841 (source (origin
6842 (method url-fetch)
6843 (uri (string-append "mirror://gnome/sources/" name "/"
6844 (version-major+minor version) "/"
6845 name "-" version ".tar.xz"))
6846 (sha256
6847 (base32
6848 "0xxxq8xdkgkn146my307jgws4qgxx477h0ybg1mqza1ycmczvsla"))))
6849 (build-system meson-build-system)
6850 (native-inputs
6851 `(("gcr" ,gcr)
6852 ("glib" ,glib "bin")
6853 ("pkg-config" ,pkg-config)
6854 ("vala" ,vala)))
6855 (propagated-inputs
6856 ;; Listed in "Requires" section of gexiv2.pc
6857 `(("exiv2" ,exiv2)))
6858 (inputs
6859 `(("glib" ,glib)
6860 ("gobject-introspection" ,gobject-introspection)))
6861 (home-page "https://wiki.gnome.org/Projects/gexiv2")
6862 (synopsis "GObject wrapper around the Exiv2 photo metadata library")
6863 (description
6864 "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library. It
6865 allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
6866 metadata in photo and video files of various formats.")
6867 (license license:gpl2+)))
6868
6869 (define-public shotwell
6870 (package
6871 (name "shotwell")
6872 (version "0.30.11")
6873 (source (origin
6874 (method url-fetch)
6875 (uri (string-append "mirror://gnome/sources/shotwell/"
6876 (version-major+minor version) "/"
6877 "shotwell-" version ".tar.xz"))
6878 (sha256
6879 (base32
6880 "12d26y40kjlv5x8f5g04wff33vh7mdjb8c41ydqbrwdip0jwy2n2"))))
6881 (build-system meson-build-system)
6882 (arguments
6883 '(#:glib-or-gtk? #t
6884 #:phases
6885 (modify-phases %standard-phases
6886 (add-after 'unpack 'skip-gtk-update-icon-cache
6887 (lambda _
6888 (substitute* "build-aux/meson/postinstall.py"
6889 (("gtk-update-icon-cache") (which "true"))
6890 (("update-desktop-database") (which "true")))
6891 #t)))))
6892 (propagated-inputs
6893 `(("dconf" ,dconf)))
6894 (native-inputs
6895 `(("gettext" ,gettext-minimal)
6896 ("glib:bin" ,glib "bin")
6897 ("itstool" ,itstool)
6898 ("pkg-config" ,pkg-config)
6899 ("vala" ,vala)))
6900 (inputs
6901 `(("gcr" ,gcr)
6902 ("gexiv2" ,gexiv2)
6903 ("gst-plugins-base" ,gst-plugins-base)
6904 ("gstreamer" ,gstreamer)
6905 ("json-glib" ,json-glib)
6906 ("libgdata" ,libgdata)
6907 ("libgee" ,libgee)
6908 ("libgphoto2" ,libgphoto2)
6909 ("libgudev" ,libgudev)
6910 ("libraw" ,libraw)
6911 ("libsoup" ,libsoup)
6912 ("libxml2" ,libxml2)
6913 ("sqlite" ,sqlite)
6914 ("webkitgtk" ,webkitgtk)))
6915 (home-page "https://wiki.gnome.org/Apps/Shotwell")
6916 (synopsis "Photo manager for GNOME 3")
6917 (description
6918 "Shotwell is a digital photo manager designed for the GNOME desktop
6919 environment. It allows you to import photos from disk or camera, organize
6920 them by keywords and events, view them in full-window or fullscreen mode, and
6921 share them with others via social networking and more.")
6922 (license license:lgpl2.1+)))
6923
6924 (define-public file-roller
6925 (package
6926 (name "file-roller")
6927 (version "3.38.0")
6928 (source (origin
6929 (method url-fetch)
6930 (uri (string-append "mirror://gnome/sources/file-roller/"
6931 (version-major+minor version) "/"
6932 "file-roller-" version ".tar.xz"))
6933 (sha256
6934 (base32
6935 "06ikvjjcgb8nxabkn2rywy76a1c7s6w8dszaxvaxldbxarp1qgbj"))))
6936 (build-system meson-build-system)
6937 (native-inputs
6938 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6939 ("intltool" ,intltool)
6940 ("itstool" ,itstool)
6941 ("pkg-config" ,pkg-config)
6942 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
6943 ("glib:bin" ,glib "bin")))
6944 ;; TODO: Add libnautilus.
6945 (inputs
6946 `(("gtk+" ,gtk+)
6947 ("gdk-pixbuf" ,gdk-pixbuf)
6948 ("json-glib" ,json-glib)
6949 ("libarchive" ,libarchive)
6950 ("libnotify" ,libnotify)
6951 ("nettle" ,nettle)
6952 ("libxml2" ,libxml2)))
6953 (synopsis "Graphical archive manager for GNOME")
6954 (description "File Roller is an archive manager for the GNOME desktop
6955 environment that allows users to view, unpack, and create compressed archives
6956 such as gzip tarballs.")
6957 (home-page "http://fileroller.sourceforge.net/")
6958 (license license:gpl2+)))
6959
6960 (define-public gnome-session
6961 (package
6962 (name "gnome-session")
6963 (version "3.34.2")
6964 (source (origin
6965 (method url-fetch)
6966 (uri (string-append "mirror://gnome/sources/" name "/"
6967 (version-major+minor version) "/"
6968 name "-" version ".tar.xz"))
6969 (sha256
6970 (base32
6971 "1qgqp97f8k2zi2ydvhds14zsjzfj7cv521r6wx5sw0qacn0p7dwb"))))
6972 (arguments
6973 '(#:glib-or-gtk? #t
6974 #:phases
6975 (modify-phases %standard-phases
6976 (add-before 'configure 'pre-configure
6977 (lambda* (#:key outputs #:allow-other-keys)
6978 ;; Use elogind instead of systemd.
6979 (substitute* "meson.build"
6980 (("libsystemd-login") "libelogind")
6981 (("and libsystemd_daemon_dep.found.*") ","))
6982 (substitute* "gnome-session/gsm-systemd.c"
6983 (("#include <systemd/sd-login.h>")
6984 "#include <elogind/sd-login.h>"))
6985 ;; Remove uses of the systemd daemon.
6986 (substitute* "gnome-session/gsm-autostart-app.c"
6987 (("#ifdef HAVE_SYSTEMD") "#if 0"))
6988 #t))
6989 (add-after 'install 'wrap-gnome-session
6990 (lambda* (#:key inputs outputs #:allow-other-keys)
6991 ;; Make sure 'gnome-session' finds the 'gsettings' program.
6992 (let ((glib (assoc-ref inputs "glib:bin"))
6993 (out (assoc-ref outputs "out")))
6994 (wrap-program (string-append out "/bin/gnome-session")
6995 `("PATH" ":" prefix (,(string-append glib "/bin"))))
6996 #t))))
6997
6998 #:configure-flags
6999 '("-Ddocbook=false" ; FIXME: disabled because of docbook validation error
7000 "-Dman=false" ; FIXME: disabled because of docbook validation error
7001 "-Dsystemd_journal=false")))
7002 (build-system meson-build-system)
7003 (native-inputs
7004 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7005 ("pkg-config" ,pkg-config)
7006 ("intltool" ,intltool)
7007 ("xsltproc" ,libxslt)
7008 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
7009 ("docbook-xsl" ,docbook-xsl)
7010 ("docbook-xml" ,docbook-xml)
7011 ("xmlto" ,xmlto)))
7012 (inputs
7013 `(("elogind" ,elogind)
7014 ("gnome-desktop" ,gnome-desktop)
7015 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7016 ("gtk+" ,gtk+)
7017 ("json-glib" ,json-glib)
7018 ("libsm" ,libsm)
7019 ("libxcomposite" ,libxcomposite)
7020 ("libxtst" ,libxtst)
7021 ("mesa" ,mesa)
7022 ("upower" ,upower)
7023 ("xtrans" ,xtrans)))
7024 (synopsis "Session manager for GNOME")
7025 (description
7026 "This package contains the GNOME session manager, as well as a
7027 configuration program to choose applications starting on login.")
7028 (home-page "https://wiki.gnome.org/Projects/SessionManagement")
7029 (license license:gpl2+)))
7030
7031 (define-public gjs
7032 (package
7033 (name "gjs")
7034 (version "1.58.3")
7035 (source (origin
7036 (method url-fetch)
7037 (uri (string-append "mirror://gnome/sources/" name "/"
7038 (version-major+minor version) "/"
7039 name "-" version ".tar.xz"))
7040 (sha256
7041 (base32
7042 "1bkksx362007zs8c31ydygb29spwa5g5kch1ad2grc2sp53wv7ya"))))
7043 (build-system gnu-build-system)
7044 (arguments
7045 '(#:phases
7046 (modify-phases %standard-phases
7047 (add-before
7048 'check 'pre-check
7049 (lambda _
7050 ;; The test suite requires a running X server.
7051 (system "Xvfb :1 &")
7052 (setenv "DISPLAY" ":1")
7053
7054 ;; For the missing /etc/machine-id.
7055 (setenv "DBUS_FATAL_WARNINGS" "0")
7056
7057 ;; Our mozjs-38 package does not compile the required Intl API
7058 ;; support for these failing tests.
7059 (substitute* "installed-tests/js/testLocale.js"
7060 ((".*toBeDefined.*") "")
7061 ((".*expect\\(datestr\\).*") ""))
7062 (substitute* "installed-tests/scripts/testCommandLine.sh"
7063 (("Valentín") "")
7064 (("☭") ""))
7065 #t)))))
7066 (native-inputs
7067 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
7068 ("pkg-config" ,pkg-config)
7069 ("xmllint" ,libxml2)
7070 ;; For testing
7071 ("dbus-launch" ,dbus)
7072 ("dconf" ,dconf) ; required to properly store settings
7073 ("uuidgen" ,util-linux)
7074 ("xvfb" ,xorg-server-for-tests)))
7075 (propagated-inputs
7076 ;; These are all in the Requires.private field of gjs-1.0.pc.
7077 `(("cairo" ,cairo)
7078 ("gobject-introspection" ,gobject-introspection)
7079 ("mozjs" ,mozjs-60)))
7080 (inputs
7081 `(("gtk+" ,gtk+)
7082 ("readline" ,readline)))
7083 (synopsis "Javascript bindings for GNOME")
7084 (home-page "https://live.gnome.org/Gjs")
7085 (description
7086 "Gjs is a javascript binding for GNOME. It's mainly based on spidermonkey
7087 javascript engine and the GObject introspection framework.")
7088 (license license:gpl2+)))
7089
7090 (define-public gedit
7091 (package
7092 (name "gedit")
7093 (version "3.34.1")
7094 (source (origin
7095 (method url-fetch)
7096 (uri (string-append "mirror://gnome/sources/" name "/"
7097 (version-major+minor version) "/"
7098 name "-" version ".tar.xz"))
7099 (sha256
7100 (base32
7101 "1inm50sdfw63by1lf4f1swb59mpyxlly0g5rdg99j5l3357fzygb"))))
7102 (build-system meson-build-system)
7103 (arguments
7104 `(#:glib-or-gtk? #t
7105 #:configure-flags
7106 ;; Otherwise, the RUNPATH will lack the final path component.
7107 (list (string-append "-Dc_link_args=-Wl,-rpath="
7108 (assoc-ref %outputs "out") "/lib/gedit"))
7109
7110 ;; XXX: Generated .h files are sometimes used before being built.
7111 #:parallel-build? #f
7112
7113 #:phases
7114 (modify-phases %standard-phases
7115 (add-after 'unpack 'skip-gtk-update-icon-cache
7116 ;; Don't create 'icon-theme.cache'.
7117 (lambda _
7118 (substitute* "build-aux/meson/post_install.py"
7119 (("gtk-update-icon-cache") (which "true")))
7120 #t))
7121 (add-after 'unpack 'patch-libgd-fetch
7122 (lambda* (#:key inputs #:allow-other-keys)
7123 (let ((libgd (assoc-ref inputs "libgd")))
7124 ;; Calling git is unnecessary because libgd is fetched as a
7125 ;; native input to this package.
7126 (substitute* "meson.build"
7127 ((".*git.*") ""))
7128 (copy-recursively libgd "subprojects/libgd")
7129 #t)))
7130 (add-after 'install 'wrap-gedit
7131 (lambda* (#:key inputs outputs #:allow-other-keys)
7132 (let ((out (assoc-ref outputs "out"))
7133 (gtksourceview (assoc-ref inputs "gtksourceview"))
7134 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
7135 (python-path (getenv "PYTHONPATH")))
7136 (wrap-program (string-append out "/bin/gedit")
7137 ;; For plugins.
7138 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
7139 `("PYTHONPATH" ":" prefix (,python-path))
7140 ;; For language-specs.
7141 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
7142 "/share")))))
7143 #t)))))
7144 (propagated-inputs
7145 `(("dconf" ,dconf)))
7146 (native-inputs
7147 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7148 ("intltool" ,intltool)
7149 ("itstool" ,itstool)
7150 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
7151 ("gobject-introspection" ,gobject-introspection)
7152 ("libgd"
7153 ,(origin
7154 (method git-fetch)
7155 (uri (git-reference
7156 (url "https://gitlab.gnome.org/GNOME/libgd")
7157 (commit "c7c7ff4e05d3fe82854219091cf116cce6b19de0")))
7158 (file-name (git-file-name "libgd" version))
7159 (sha256
7160 (base32 "16yld0ap7qj1n96h4f2sqkjmibg7xx5xwkqxdfzam2nmyfdlrrrs"))))
7161 ("pkg-config" ,pkg-config)))
7162 (inputs
7163 `(("glib" ,glib)
7164 ("gspell" ,gspell)
7165 ("gtk+" ,gtk+)
7166 ("gtksourceview" ,gtksourceview)
7167 ("libpeas" ,libpeas)
7168 ("libxml2" ,libxml2)
7169 ("iso-codes" ,iso-codes)
7170 ("python-pygobject" ,python-pygobject)
7171 ("python" ,python)
7172 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7173 ("libx11" ,libx11)
7174 ("vala" ,vala)
7175 ("adwaita-icon-theme" ,adwaita-icon-theme)
7176 ("libsoup" ,libsoup)
7177 ("gnome-desktop" ,gnome-desktop)))
7178 (home-page "https://wiki.gnome.org/Apps/Gedit")
7179 (synopsis "GNOME text editor")
7180 (description "While aiming at simplicity and ease of use, gedit is a
7181 powerful general purpose text editor.")
7182 (license license:gpl2+)))
7183
7184 (define-public zenity
7185 (package
7186 (name "zenity")
7187 (version "3.32.0")
7188 (source (origin
7189 (method url-fetch)
7190 (uri (string-append "mirror://gnome/sources/zenity/"
7191 (version-major+minor version) "/"
7192 "zenity-" version ".tar.xz"))
7193 (sha256
7194 (base32
7195 "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7"))))
7196 (build-system gnu-build-system)
7197 (native-inputs
7198 `(("gettext" ,gettext-minimal)
7199 ("itstool" ,itstool)
7200 ("pkg-config" ,pkg-config)))
7201 (inputs
7202 `(("libnotify" ,libnotify)
7203 ("webkitgtk" ,webkitgtk)))
7204 (synopsis "Display graphical dialog boxes from shell scripts")
7205 (home-page "https://www.gnome.org")
7206 (description
7207 "Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you
7208 to display dialog boxes from the commandline and shell scripts.")
7209 (license license:lgpl2.0+)))
7210
7211 (define-public mutter
7212 (package
7213 (name "mutter")
7214 (version "3.34.2")
7215 (source (origin
7216 (method url-fetch)
7217 (uri (string-append "mirror://gnome/sources/" name "/"
7218 (version-major+minor version) "/"
7219 name "-" version ".tar.xz"))
7220 (sha256
7221 (base32
7222 "0b8bz5kvs7rlwvqsg87cf6jhrrj95vgd1l235mjx8rip35ipfvrd"))))
7223 ;; NOTE: Since version 3.21.x, mutter now bundles and exports forked
7224 ;; versions of cogl and clutter. As a result, many of the inputs,
7225 ;; propagated-inputs, and configure flags used in cogl and clutter are
7226 ;; needed here as well.
7227 (build-system meson-build-system)
7228 (arguments
7229 '(;; XXX: All mutter tests fail with the following error:
7230 ;; Settings schema 'org.gnome.mutter' is not installed
7231 #:tests? #f
7232 #:glib-or-gtk? #t
7233 #:configure-flags
7234 ;; TODO: Enable profiler when Sysprof is packaged.
7235 (list "-Dprofiler=false"
7236 ;; Otherwise, the RUNPATH will lack the final path component.
7237 (string-append "-Dc_link_args=-Wl,-rpath="
7238 (assoc-ref %outputs "out") "/lib:"
7239 (assoc-ref %outputs "out") "/lib/mutter-5")
7240
7241 ;; The following flags are needed for the bundled clutter
7242 (string-append "-Dxwayland_path="
7243 (assoc-ref %build-inputs "xorg-server-xwayland")
7244 "/bin/Xwayland")
7245
7246 ;; the remaining flags are needed for the bundled cogl
7247 (string-append "-Dopengl_libname="
7248 (assoc-ref %build-inputs "mesa")
7249 "/lib/libGL.so"))
7250 #:phases (modify-phases %standard-phases
7251 (add-after 'unpack 'fix-build-with-mesa-20
7252 (lambda _
7253 ;; Mimic upstream commit a444a4c5f58ea516ad for
7254 ;; compatibility with Mesa 20. Remove for 3.36.
7255 (substitute* '("src/backends/meta-egl-ext.h"
7256 "src/backends/meta-egl.c"
7257 "src/backends/meta-egl.h")
7258 (("#include <EGL/eglext\\.h>" all)
7259 (string-append all "\n#include <EGL/eglmesaext.h>")))
7260 (substitute* "cogl/cogl/meson.build"
7261 (("#include <EGL/eglext\\.h>" all)
7262 (string-append all "\\n#include <EGL/eglmesaext.h>")))
7263 #t)))))
7264 (native-inputs
7265 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7266 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7267 ("gobject-introspection" ,gobject-introspection)
7268 ("intltool" ,intltool)
7269 ("pkg-config" ,pkg-config)
7270 ("xorg-server" ,xorg-server-for-tests)
7271 ;; For git build
7272 ("autoconf" ,autoconf)
7273 ("automake" ,automake)
7274 ("libtool" ,libtool)))
7275 (propagated-inputs
7276 `(;; libmutter.pc refers to these:
7277 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7278 ("gtk+" ,gtk+)
7279 ;; mutter-clutter-1.0.pc and mutter-cogl-1.0.pc refer to these:
7280 ("atk" ,atk)
7281 ("cairo" ,cairo)
7282 ("gdk-pixbuf" ,gdk-pixbuf)
7283 ("glib" ,glib)
7284 ("json-glib" ,json-glib)
7285 ("libinput" ,libinput)
7286 ("libx11" ,libx11)
7287 ("libxcomposite" ,libxcomposite)
7288 ("libxdamage" ,libxdamage)
7289 ("libxext" ,libxext)
7290 ("libxfixes" ,libxfixes)
7291 ("libxkbcommon" ,libxkbcommon)
7292 ("libxrandr" ,libxrandr)
7293 ("mesa" ,mesa)
7294 ("pango" ,pango)
7295 ("udev" ,eudev)
7296 ("xinput" ,xinput)))
7297 (inputs
7298 `(("elogind" ,elogind)
7299 ("gnome-desktop" ,gnome-desktop)
7300 ("gnome-settings-daemon" ,gnome-settings-daemon)
7301 ("libcanberra-gtk" ,libcanberra)
7302 ("libgudev" ,libgudev)
7303 ("libice" ,libice)
7304 ("libsm" ,libsm)
7305 ("libwacom" ,libwacom)
7306 ("libxkbfile" ,libxkbfile)
7307 ("libxrandr" ,libxrandr)
7308 ("libxtst" ,libxtst)
7309 ("pipewire" ,pipewire)
7310 ("startup-notification" ,startup-notification)
7311 ("upower-glib" ,upower)
7312 ("xkeyboard-config" ,xkeyboard-config)
7313 ("xorg-server-xwayland" ,xorg-server-xwayland)
7314 ("zenity" ,zenity)))
7315 (synopsis "Window and compositing manager")
7316 (home-page "https://www.gnome.org")
7317 (description
7318 "Mutter is a window and compositing manager that displays and manages your
7319 desktop via OpenGL. Mutter combines a sophisticated display engine using the
7320 Clutter toolkit with solid window-management logic inherited from the Metacity
7321 window manager.")
7322 (license license:gpl2+)))
7323
7324 (define-public gnome-online-accounts
7325 (package
7326 (name "gnome-online-accounts")
7327 (version "3.36.0")
7328 (source (origin
7329 (method url-fetch)
7330 (uri (string-append "mirror://gnome/sources/" name "/"
7331 (version-major+minor version) "/"
7332 name "-" version ".tar.xz"))
7333 (sha256
7334 (base32
7335 "0bigfi225g1prnxpb9lcc1i7mdcrkplwb05vilc43jik12cn53qw"))))
7336 (outputs '("out" "lib"))
7337 (build-system glib-or-gtk-build-system)
7338 (arguments
7339 `(#:configure-flags
7340 (list (string-append "--libdir=" (assoc-ref %outputs "out") "/lib"))
7341 #:phases
7342 (modify-phases %standard-phases
7343 (add-before 'configure 'patch-libgoa-output
7344 (lambda* (#:key outputs #:allow-other-keys)
7345 (let ((lib (assoc-ref outputs "lib")))
7346 (substitute* '("src/goa/Makefile.in" "src/goa/goa-1.0.pc.in")
7347 (("@prefix@") lib)
7348 (("@exec_prefix@") lib)
7349 (("@libdir@") (string-append lib "/lib"))
7350 (("@includedir@") (string-append lib "/include"))
7351 (("@datadir@") (string-append lib "/share")))
7352 ;; Make sure gobject-introspection knows about the output
7353 ;; too (see <https://bugs.gnu.org/36535>).
7354 (setenv "outputs" "out lib")
7355 #t))))))
7356 (native-inputs
7357 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7358 ("gobject-introspection" ,gobject-introspection)
7359 ("intltool" ,intltool)
7360 ("pkg-config" ,pkg-config)
7361 ("vala" ,vala)
7362 ("xsltproc" ,libxslt)))
7363 (propagated-inputs
7364 `(("glib" ,glib) ; required by goa-1.0.pc
7365 ("gtk+" ,gtk+))) ; required by goa-backend-1.0.pc
7366 (inputs
7367 `(("docbook-xsl" ,docbook-xsl)
7368 ("json-glib" ,json-glib)
7369 ("libsecret" ,libsecret)
7370 ("rest" ,rest)
7371 ("webkitgtk" ,webkitgtk)))
7372 (synopsis "Single sign-on framework for GNOME")
7373 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineAccounts")
7374 (description
7375 "GNOME Online Accounts provides interfaces so that applications and
7376 libraries in GNOME can access the user's online accounts. It has providers for
7377 Google, ownCloud, Facebook, Flickr, Windows Live, Pocket, Foursquare, Microsoft
7378 Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
7379 (license license:lgpl2.0+)))
7380
7381 (define-public evolution-data-server
7382 (package
7383 (name "evolution-data-server")
7384 (version "3.34.2")
7385 (source (origin
7386 (method url-fetch)
7387 (uri (string-append "mirror://gnome/sources/" name "/"
7388 (version-major+minor version) "/"
7389 name "-" version ".tar.xz"))
7390 (patches (search-patches "evolution-data-server-locales.patch"
7391 "evolution-data-server-libical-compat.patch"))
7392 (sha256
7393 (base32
7394 "16z85y6hhazcrp5ngw47w4x9r0j8zrj7awv5im58hhp0xs19zf1y"))))
7395 (build-system cmake-build-system)
7396 (arguments
7397 '(#:configure-flags
7398 (let* ((lib (string-append (assoc-ref %outputs "out") "/lib"))
7399 (runpaths (map (lambda (s)
7400 (string-append lib "/evolution-data-server/" s))
7401 '("addressbook-backends" "calendar-backends"
7402 "camel-providers" "credential-modules"
7403 "registry-modules"))))
7404 (list "-DENABLE_UOA=OFF" ;disable Ubuntu Online Accounts support
7405 "-DENABLE_GOOGLE=OFF" ;disable Google Contacts support
7406 "-DENABLE_GOOGLE_AUTH=OFF" ;disable Google authentication
7407 "-DENABLE_VALA_BINDINGS=ON"
7408 (string-append "-DCMAKE_INSTALL_RPATH=" lib ";"
7409 (string-append lib "/evolution-data-server;")
7410 (string-join runpaths ";"))
7411 "-DENABLE_INTROSPECTION=ON")) ;required for Vala bindings
7412 #:phases
7413 (modify-phases %standard-phases
7414 (add-after 'unpack 'disable-failing-tests
7415 (lambda _
7416 ;; tests/book-migration/test-migration.c:160:test_fetch_contacts:
7417 ;; assertion failed (g_slist_length (contacts) == 20): (0 == 20)
7418 (delete-file-recursively "tests/book-migration")
7419 (substitute* "tests/CMakeLists.txt"
7420 (("add_subdirectory\\(book-migration\\)") ""))
7421 #t))
7422 (add-after 'unpack 'patch-paths
7423 (lambda _
7424 (substitute* '("tests/test-server-utils/e-test-server-utils.c"
7425 "tests/libedata-book/data-test-utils.c"
7426 "tests/libedata-book/test-book-cache-utils.c"
7427 "tests/libedata-cal/test-cal-cache-utils.c")
7428 (("/bin/rm") (which "rm")))
7429 #t))
7430 (add-before 'configure 'dont-override-rpath
7431 (lambda _
7432 (substitute* "CMakeLists.txt"
7433 ;; CMakeLists.txt hard-codes runpath to just the libdir.
7434 ;; Remove it so the configure flag is respected.
7435 (("SET\\(CMAKE_INSTALL_RPATH .*") ""))
7436 #t)))))
7437 (native-inputs
7438 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
7439 ("gobject-introspection" ,gobject-introspection)
7440 ("gperf" ,gperf)
7441 ("intltool" ,intltool)
7442 ("pkg-config" ,pkg-config)
7443 ("vala" ,vala)
7444 ("python" ,python-wrapper)))
7445 (propagated-inputs
7446 ;; These are all in the Requires field of .pc files.
7447 `(("gtk+" ,gtk+)
7448 ("libical" ,libical)
7449 ("libsecret" ,libsecret)
7450 ("libsoup" ,libsoup)
7451 ("nss" ,nss)
7452 ("sqlite" ,sqlite)))
7453 (inputs
7454 `(("bdb" ,bdb)
7455 ("gcr" ,gcr)
7456 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
7457 ("json-glib" ,json-glib)
7458 ("libcanberra" ,libcanberra)
7459 ("libgweather" ,libgweather)
7460 ("mit-krb5" ,mit-krb5)
7461 ("openldap" ,openldap)
7462 ("webkitgtk" ,webkitgtk)))
7463 (synopsis "Store address books and calendars")
7464 (home-page "https://wiki.gnome.org/Apps/Evolution")
7465 (description
7466 "This package provides a unified backend for programs that work with
7467 contacts, tasks, and calendar information. It was originally developed for
7468 Evolution (hence the name), but is now used by other packages as well.")
7469 (license license:lgpl2.0)))
7470
7471 (define-public caribou
7472 (package
7473 (name "caribou")
7474 (version "0.4.21")
7475 (source (origin
7476 (method url-fetch)
7477 (uri (string-append "mirror://gnome/sources/" name "/"
7478 (version-major+minor version) "/"
7479 name "-" version ".tar.xz"))
7480 (sha256
7481 (base32
7482 "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
7483 (build-system glib-or-gtk-build-system)
7484 (arguments
7485 '(#:phases
7486 (modify-phases %standard-phases
7487 (add-before
7488 'build 'pre-build
7489 (lambda* (#:key outputs #:allow-other-keys)
7490 (let ((out (assoc-ref outputs "out")))
7491 ;; Use absolute shared library path in Caribou-1.0.typelib.
7492 (substitute* "libcaribou/Makefile"
7493 (("--shared-library=libcaribou.so")
7494 (string-append "--shared-library="
7495 out "/lib/libcaribou.so")))
7496 #t)))
7497 (add-after 'install 'wrap-programs
7498 (lambda* (#:key outputs #:allow-other-keys)
7499 (let* ((out (assoc-ref outputs "out"))
7500 (python-path (getenv "PYTHONPATH"))
7501 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7502 (for-each
7503 (lambda (prog)
7504 (wrap-program prog
7505 `("PYTHONPATH" ":" prefix (,python-path))
7506 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7507 (list (string-append out "/bin/caribou-preferences")
7508 (string-append out "/libexec/antler-keyboard"))))
7509 #t)))))
7510 (native-inputs
7511 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7512 ("gobject-introspection" ,gobject-introspection)
7513 ("intltool" ,intltool)
7514 ("pkg-config" ,pkg-config)
7515 ("python" ,python)
7516 ("vala" ,vala)
7517 ("xsltproc" ,libxslt)))
7518 (propagated-inputs
7519 ;; caribou-1.0.pc refers to all these.
7520 `(("libgee" ,libgee)
7521 ("libxklavier" ,libxklavier)
7522 ("libxtst" ,libxtst)
7523 ("gtk+" ,gtk+)))
7524 (inputs
7525 `(("clutter" ,clutter)
7526 ("dconf" ,dconf)
7527 ("gtk+-2" ,gtk+-2)
7528 ("python-pygobject" ,python-pygobject)))
7529 (synopsis "Text entry and UI navigation application")
7530 (home-page "https://wiki.gnome.org/Projects/Caribou")
7531 (description
7532 "Caribou is an input assistive technology intended for switch and pointer
7533 users.")
7534 (license license:lgpl2.1)))
7535
7536 (define-public network-manager
7537 (package
7538 (name "network-manager")
7539 (version "1.24.0")
7540 (source (origin
7541 (method url-fetch)
7542 (uri (string-append "mirror://gnome/sources/NetworkManager/"
7543 (version-major+minor version) "/"
7544 "NetworkManager-" version ".tar.xz"))
7545 (patches (search-patches "network-manager-plugin-path.patch"))
7546 (sha256
7547 (base32
7548 "06044fl60bjlj7c6rqqfbm5795h61h6yzp7ch392hzcnm46wwhn3"))
7549 (modules '((guix build utils)))
7550 (snippet
7551 '(begin
7552 (substitute* "src/devices/wwan/nm-modem-manager.c"
7553 (("systemd") "elogind"))
7554 #t))))
7555 (build-system meson-build-system)
7556 (outputs '("out"
7557 "doc")) ; 8 MiB of gtk-doc HTML
7558 (arguments
7559 `(#:configure-flags
7560 (let ((out (assoc-ref %outputs "out"))
7561 (dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
7562 "/sbin/dhclient")))
7563 (list
7564 ;; Otherwise, the RUNPATH will lack the final 'NetworkManager' path
7565 ;; component.
7566 (string-append "-Dc_link_args=-Wl,-rpath="
7567 out "/lib:"
7568 out "/lib/NetworkManager/" ,version)
7569 "-Dsystemd_journal=false"
7570 "-Dsession_tracking=elogind"
7571 "-Dsuspend_resume=elogind"
7572 "-Dsystemdsystemunitdir=no"
7573 "-Dsession_tracking_consolekit=false"
7574 "-Ddhcpcd=no"
7575 "-Ddhcpcanon=no"
7576 "-Dcrypto=gnutls"
7577 "-Diwd=true"
7578 "-Dlibaudit=yes"
7579 "-Dqt=false"
7580 "-Ddocs=true"
7581 "--sysconfdir=/etc"
7582 "--localstatedir=/var"
7583 (string-append "-Dudev_dir="
7584 out "/lib/udev")
7585 (string-append "-Ddbus_conf_dir="
7586 out "/etc/dbus-1/system.d")
7587
7588 (string-append "-Ddhclient=" dhclient)))
7589 #:phases
7590 (modify-phases %standard-phases
7591 (add-before 'configure 'pre-configure
7592 (lambda _
7593 ;; These tests try to test aspects of network-manager's
7594 ;; functionality within restricted containers, but they don't
7595 ;; cope with being already in the Guix build jail as that jail
7596 ;; lacks some features that they would like to proxy over (like
7597 ;; a /sys mount).
7598 (substitute* "src/platform/tests/meson.build"
7599 ((".*test-address-linux.*") "")
7600 ((".*test-cleanup-linux.*") "")
7601 ((".*test-link-linux.*") "")
7602 ((".*test-route-linux.*") ""))
7603 (substitute* "src/devices/tests/meson.build"
7604 ((".*test-acd.*") "")
7605 ((".*test-lldp.*") ""))
7606 #t))
7607 (add-after 'unpack 'patch-docbook-xml
7608 (lambda* (#:key inputs #:allow-other-keys)
7609 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
7610 "/xml/dtd/docbook")))
7611 (substitute* (find-files "." ".*\\.(xsl|xml)")
7612 (("http://.*/docbookx\\.dtd")
7613 (string-append xmldoc "/docbookx.dtd")))
7614 #t)))
7615 (add-before 'check 'pre-check
7616 (lambda _
7617 ;; For the missing /etc/machine-id.
7618 (setenv "DBUS_FATAL_WARNINGS" "0")
7619 #t))
7620 (add-before 'install 'no-polkit-magic
7621 ;; Meson ‘magically’ invokes pkexec, which fails (not setuid).
7622 (lambda _
7623 (setenv "PKEXEC_UID" "something")
7624 #t))
7625 (add-after 'install 'move-doc
7626 (lambda* (#:key outputs #:allow-other-keys)
7627 (let ((out (assoc-ref outputs "out"))
7628 (doc (assoc-ref outputs "doc")))
7629 (mkdir-p (string-append doc "/share"))
7630 (for-each (lambda (directory)
7631 (copy-recursively (string-append out directory)
7632 (string-append doc directory))
7633 (delete-file-recursively
7634 (string-append out directory)))
7635 '("/share/doc" "/share/gtk-doc"))
7636 #t))))))
7637 (propagated-inputs
7638 `(("glib" ,glib)))
7639 (native-inputs
7640 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
7641 ("gtk-doc" ,gtk-doc)
7642 ("gobject-introspection" ,gobject-introspection)
7643 ("docbook-xml" ,docbook-xml)
7644 ("docbook-xsl" ,docbook-xsl)
7645 ("intltool" ,intltool)
7646 ("libxslt" ,libxslt)
7647 ("libxml2" ,libxml2)
7648 ("pkg-config" ,pkg-config)
7649 ("vala" ,vala)
7650 ;; For testing.
7651 ("python" ,python-wrapper)
7652 ("python-dbus" ,python-dbus)
7653 ("python-pygobject" ,python-pygobject)))
7654 (inputs
7655 `(("curl" ,curl)
7656 ("cyrus-sasl" ,cyrus-sasl)
7657 ("dbus-glib" ,dbus-glib)
7658 ("dnsmasq" ,dnsmasq)
7659 ("eudev" ,eudev)
7660 ("gnutls" ,gnutls)
7661 ("iptables" ,iptables)
7662 ("isc-dhcp" ,isc-dhcp)
7663 ("iwd" ,iwd) ; wpa_supplicant alternative
7664 ("jansson" ,jansson)
7665 ("libaudit" ,audit)
7666 ("libgcrypt" ,libgcrypt)
7667 ("libgudev" ,libgudev)
7668 ("libndp" ,libndp)
7669 ("libnl" ,libnl)
7670 ("libsoup" ,libsoup)
7671 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)
7672 ("modem-manager" ,modem-manager)
7673 ("newt" ,newt) ;for the 'nmtui' console interface
7674 ("openresolv" ,openresolv) ; alternative resolv.conf manager
7675 ("polkit" ,polkit)
7676 ("ppp" ,ppp)
7677 ("readline" ,readline)
7678 ("util-linux" ,util-linux)
7679 ("elogind" ,elogind)))
7680 (synopsis "Network connection manager")
7681 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
7682 (description
7683 "NetworkManager is a system network service that manages your network
7684 devices and connections, attempting to keep active network connectivity when
7685 available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE
7686 devices, and provides VPN integration with a variety of different VPN
7687 services.")
7688 ;; “This NetworkManager project consists of the daemon, client tools, and
7689 ;; libnm. libnm is licensed LGPL-2.1+, while the rest is licensed under
7690 ;; GPL-2.0+.”
7691 (license (list license:gpl2+
7692 license:lgpl2.1+))
7693 (properties '((upstream-name . "NetworkManager")))))
7694
7695 (define-public network-manager-openvpn
7696 (package
7697 (name "network-manager-openvpn")
7698 (version "1.8.12")
7699 (source (origin
7700 (method url-fetch)
7701 (uri (string-append
7702 "mirror://gnome/sources/NetworkManager-openvpn/"
7703 (version-major+minor version)
7704 "/NetworkManager-openvpn-" version ".tar.xz"))
7705 (sha256
7706 (base32
7707 "062kh4zj7jfbwy4zzcwpq2m457bzbpm3l18s0ysnw3mgia3siz8f"))))
7708 (build-system gnu-build-system)
7709 (arguments
7710 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
7711 #:phases
7712 (modify-phases %standard-phases
7713 (add-after 'configure 'patch-path
7714 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7715 (let* ((ovpn (string-append (assoc-ref inputs "openvpn")
7716 "/sbin/openvpn"))
7717 (modprobe (string-append (assoc-ref inputs "kmod")
7718 "/bin/modprobe"))
7719 (pretty-ovpn (string-append "\"" ovpn "\"")))
7720 (for-each
7721 (lambda (file)
7722 (substitute* file
7723 (("\"/usr/local/sbin/openvpn\"") pretty-ovpn)
7724 (("\"/usr/sbin/openvpn\"") pretty-ovpn)
7725 (("\"/sbin/openvpn\"") pretty-ovpn)
7726 (("/sbin/modprobe") modprobe)))
7727 '("src/nm-openvpn-service.c" "properties/nm-openvpn-editor.c")))
7728 #t)))))
7729 (native-inputs
7730 `(("pkg-config" ,pkg-config)
7731 ("intltool" ,intltool)))
7732 (inputs
7733 `(("gtk+" ,gtk+)
7734 ("kmod" ,kmod)
7735 ("openvpn" ,openvpn)
7736 ("network-manager" ,network-manager)
7737 ("libnma" ,libnma)
7738 ("libsecret" ,libsecret)))
7739 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7740 (synopsis "OpenVPN plug-in for NetworkManager")
7741 (description
7742 "This extension of NetworkManager allows it to take care of connections
7743 to virtual private networks (VPNs) via OpenVPN.")
7744 (license license:gpl2+)
7745 (properties `((upstream-name . "NetworkManager-openvpn")))))
7746
7747 (define-public network-manager-vpnc
7748 (package
7749 (name "network-manager-vpnc")
7750 (version "1.2.6")
7751 (source (origin
7752 (method url-fetch)
7753 (uri (string-append
7754 "mirror://gnome/sources/NetworkManager-vpnc/"
7755 (version-major+minor version)
7756 "/NetworkManager-vpnc-" version ".tar.xz"))
7757 (sha256
7758 (base32
7759 "1js5lwcsqws4klgypfxl4ikmakv7v7xgddij1fj6b0y0qicx0kyy"))))
7760 (build-system gnu-build-system)
7761 (arguments
7762 `(#:configure-flags '("--enable-absolute-paths"
7763 "--localstatedir=/var"
7764 ;; libnm-glib has been removed from network-manager
7765 ;; 1de8383ad9fdfc8f552117e5d109bdfa7005634b
7766 "--with-libnm-glib=no")
7767 #:phases
7768 (modify-phases %standard-phases
7769 (add-after 'configure 'patch-path
7770 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7771 (let* ((vpnc (string-append (assoc-ref inputs "vpnc")
7772 "/sbin/vpnc"))
7773 (modprobe (string-append (assoc-ref inputs "kmod")
7774 "/bin/modprobe"))
7775 (pretty-ovpn (string-append "\"" vpnc "\"")))
7776 (substitute* "src/nm-vpnc-service.c"
7777 (("\"/usr/local/sbin/vpnc\"") pretty-ovpn)
7778 (("\"/usr/sbin/vpnc\"") pretty-ovpn)
7779 (("\"/sbin/vpnc\"") pretty-ovpn)
7780 (("/sbin/modprobe") modprobe)))
7781 #t)))))
7782 (native-inputs
7783 `(("pkg-config" ,pkg-config)
7784 ("intltool" ,intltool)))
7785 (inputs
7786 `(("gtk+" ,gtk+)
7787 ("kmod" ,kmod)
7788 ("vpnc" ,vpnc)
7789 ("network-manager" ,network-manager)
7790 ("libnma" ,libnma)
7791 ("libsecret" ,libsecret)))
7792 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7793 (synopsis "VPNC plug-in for NetworkManager")
7794 (description
7795 "Support for configuring virtual private networks based on VPNC.
7796 Compatible with Cisco VPN concentrators configured to use IPsec.")
7797 (license license:gpl2+)
7798 (properties `((upstream-name . "NetworkManager-vpnc")))))
7799
7800 (define-public network-manager-openconnect
7801 (package
7802 (name "network-manager-openconnect")
7803 (version "1.2.6")
7804 (source (origin
7805 (method url-fetch)
7806 (uri (string-append
7807 "mirror://gnome/sources/NetworkManager-openconnect/"
7808 (version-major+minor version)
7809 "/NetworkManager-openconnect-" version ".tar.xz"))
7810 (sha256
7811 (base32
7812 "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m"))))
7813 (build-system gnu-build-system)
7814 (arguments
7815 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
7816 #:phases
7817 (modify-phases %standard-phases
7818 (add-after 'configure 'patch-path
7819 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7820 (let* ((openconnect (string-append (assoc-ref inputs "openconnect")
7821 "/sbin/openconnect"))
7822 (modprobe (string-append (assoc-ref inputs "kmod")
7823 "/bin/modprobe"))
7824 (pretty-ovpn (string-append "\"" openconnect "\"")))
7825 (substitute* "src/nm-openconnect-service.c"
7826 (("\"/usr(/local)?/s?bin/openconnect\"") pretty-ovpn)
7827 (("/sbin/modprobe") modprobe)))
7828 #t)))))
7829 (native-inputs
7830 `(("intltool" ,intltool)
7831 ("libnma" ,libnma)
7832 ("pkg-config" ,pkg-config)))
7833 (inputs
7834 `(("gcr" ,gcr)
7835 ("gtk+" ,gtk+)
7836 ("kmod" ,kmod)
7837 ("libsecret" ,libsecret)
7838 ("libxml2" ,libxml2)
7839 ("lz4" ,lz4)
7840 ("network-manager" ,network-manager)
7841 ("openconnect" ,openconnect)))
7842 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7843 (synopsis "OpenConnect plug-in for NetworkManager")
7844 (description
7845 "This extension of NetworkManager allows it to take care of connections
7846 to @acronym{VPNs, virtual private networks} via OpenConnect, an open client for
7847 Cisco's AnyConnect SSL VPN.")
7848 (license license:gpl2+)
7849 (properties `((upstream-name . "NetworkManager-openconnect")
7850
7851 ;; The 'etc/dbus-1/system.d/nm-openconnect-service.conf'
7852 ;; file refers to account "nm-openconnect". Specify it here
7853 ;; so that 'network-manager-service-type' creates it.
7854 (user-accounts . ("nm-openconnect"))))))
7855
7856 (define-public mobile-broadband-provider-info
7857 (package
7858 (name "mobile-broadband-provider-info")
7859 (version "20190116")
7860 (source (origin
7861 (method url-fetch)
7862 (uri (string-append
7863 "mirror://gnome/sources/"
7864 "mobile-broadband-provider-info/" version "/"
7865 "mobile-broadband-provider-info-" version ".tar.xz"))
7866 (sha256
7867 (base32
7868 "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"))))
7869 (build-system gnu-build-system)
7870 (arguments
7871 `(#:tests? #f)) ; no tests
7872 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
7873 (synopsis "Database of broadband connection configuration")
7874 (description "Database of broadband connection configuration.")
7875 (license license:public-domain)))
7876
7877 (define-public network-manager-applet
7878 (package
7879 (name "network-manager-applet")
7880 (version "1.16.0")
7881 (source (origin
7882 (method url-fetch)
7883 (uri (string-append "mirror://gnome/sources/network-manager-applet/"
7884 (version-major+minor version) "/"
7885 "network-manager-applet-" version ".tar.xz"))
7886 (sha256
7887 (base32
7888 "1rf3nm0hjcy9f8ajb4vmvwy503w8yj8d4daxkcb7w7i7b92qmyfn"))))
7889 (build-system meson-build-system)
7890 (arguments
7891 '(#:glib-or-gtk? #t))
7892 (native-inputs
7893 `(("intltool" ,intltool)
7894 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
7895 ("gobject-introspection" ,gobject-introspection)
7896 ("gtk-doc" ,gtk-doc)
7897 ("pkg-config" ,pkg-config)))
7898 (propagated-inputs
7899 ;; libnm-gtk.pc refers to all these.
7900 `(("dbus-glib" ,dbus-glib)
7901 ("gtk+" ,gtk+)
7902 ("network-manager" ,network-manager)
7903 ;; nm-applet need by org.gnome.nm-applet.gschema.xml
7904 ("libnma" ,libnma)))
7905 (inputs
7906 `(("gcr" ,gcr)
7907 ("libgudev" ,libgudev)
7908 ("libnotify" ,libnotify)
7909 ("libsecret" ,libsecret)
7910 ("libselinux" ,libselinux)
7911 ("jansson" ,jansson) ; for team support
7912 ("modem-manager" ,modem-manager)))
7913 (synopsis "Applet for managing network connections")
7914 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
7915 (description
7916 "This package contains a systray applet for NetworkManager. It displays
7917 the available networks and allows users to easily switch between them.")
7918 (license license:gpl2+)))
7919
7920 (define-public libxml++
7921 (package
7922 (name "libxml++")
7923 (version "3.0.1")
7924 (source (origin
7925 (method url-fetch)
7926 (uri (string-append "mirror://gnome/sources/" name "/"
7927 (version-major+minor version) "/"
7928 name "-" version ".tar.xz"))
7929 (sha256
7930 (base32
7931 "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"))))
7932 (build-system gnu-build-system)
7933 ;; libxml++-3.0.pc refers to all these.
7934 (propagated-inputs
7935 `(("libxml2" ,libxml2)
7936 ("glibmm" ,glibmm)))
7937 (native-inputs
7938 `(("perl" ,perl)
7939 ("pkg-config" ,pkg-config)))
7940 (home-page "http://libxmlplusplus.sourceforge.net/")
7941 (synopsis "C++ wrapper for XML parser library libxml2")
7942 (description
7943 "This package provides a C++ wrapper for the XML parser library
7944 libxml2.")
7945 (license license:lgpl2.1+)))
7946
7947 (define-public libxml++-2
7948 (package
7949 (inherit libxml++)
7950 (name "libxml++")
7951 (version "2.40.1")
7952 (source (origin
7953 (method url-fetch)
7954 (uri (string-append "mirror://gnome/sources/" name "/"
7955 (version-major+minor version) "/"
7956 name "-" version ".tar.xz"))
7957 (sha256
7958 (base32
7959 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
7960
7961 (define-public gdm
7962 (package
7963 (name "gdm")
7964 (version "3.34.1")
7965 (source (origin
7966 (method url-fetch)
7967 (uri (string-append "mirror://gnome/sources/" name "/"
7968 (version-major+minor version) "/"
7969 name "-" version ".tar.xz"))
7970 (sha256
7971 (base32
7972 "1lyqvcwxhwxklbxn4xjswjzr6fhjix6h28mi9ypn34wdm9bzcpg8"))
7973 (patches (search-patches "gdm-default-session.patch"))))
7974 (build-system glib-or-gtk-build-system)
7975 (arguments
7976 '(#:configure-flags
7977 `("--without-plymouth"
7978 "--disable-systemd-journal"
7979
7980 ;; Using --with-initial-vt=7 allows GDM to run alongside TTY 1,
7981 ;; instead of having to replace it (i.e., stopping the mingetty
7982 ;; service for TTY 1 before starting GDM).
7983 "--with-initial-vt=7"
7984
7985 ;; Use '/etc/environment' for locale settings instead of the
7986 ;; systemd-specific '/etc/locale.conf'.
7987 "--with-lang-file=/etc/environment"
7988
7989 ,(string-append "--with-udevdir="
7990 (assoc-ref %outputs "out") "/lib/udev")
7991
7992 "--localstatedir=/var"
7993 ,(string-append "--with-default-path="
7994 (string-join '("/run/setuid-programs"
7995 "/run/current-system/profile/bin"
7996 "/run/current-system/profile/sbin")
7997 ":"))
7998 ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
7999 ;; XDG_DATA_DIRS so that it finds its schemas.
8000 "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
8001 #:phases
8002 (modify-phases %standard-phases
8003 (add-before
8004 'configure 'pre-configure
8005 (lambda* (#:key inputs outputs #:allow-other-keys)
8006 ;; We don't have <systemd/sd-daemon.h>.
8007 (substitute* '("common/gdm-log.c"
8008 "daemon/gdm-server.c"
8009 "daemon/gdm-session-worker.c"
8010 "daemon/gdm-session-worker-job.c")
8011 (("#include <systemd/sd-daemon\\.h>") ""))
8012 ;; Use elogind for sd-login.
8013 (substitute* '("common/gdm-common.c"
8014 "daemon/gdm-local-display-factory.c"
8015 "daemon/gdm-manager.c"
8016 "libgdm/gdm-user-switching.c")
8017 (("#include <systemd/sd-login\\.h>")
8018 "#include <elogind/sd-login.h>"))
8019 ;; Check for elogind.
8020 (substitute* '("configure")
8021 (("libsystemd")
8022 "libelogind"))
8023 ;; Look for system-installed sessions in
8024 ;; /run/current-system/profile/share.
8025 (substitute* '("libgdm/gdm-sessions.c"
8026 "daemon/gdm-session.c"
8027 "daemon/gdm-display.c"
8028 "daemon/gdm-launch-environment.c")
8029 (("DATADIR \"/x")
8030 "\"/run/current-system/profile/share/x")
8031 (("DATADIR \"/wayland")
8032 "\"/run/current-system/profile/share/wayland")
8033 (("DATADIR \"/gnome")
8034 "\"/run/current-system/profile/share/gnome"))
8035 (let ((propagate '("GDM_CUSTOM_CONF"
8036 "GDM_DBUS_DAEMON"
8037 "GDM_X_SERVER"
8038 "GDM_X_SESSION"
8039 ;; XXX: Remove this once GNOME Shell is
8040 ;; a dependency of GDM.
8041 "XDG_DATA_DIRS")))
8042 (substitute* "daemon/gdm-session.c"
8043 (("set_up_session_environment \\(self\\);")
8044 (apply string-append
8045 "set_up_session_environment (self);\n"
8046 (map (lambda (name)
8047 (string-append
8048 "gdm_session_set_environment_variable "
8049 "(self, \"" name "\","
8050 "g_getenv (\"" name "\"));\n"))
8051 propagate)))))
8052 ;; Find the configuration file using an environment variable.
8053 (substitute* '("common/gdm-settings.c")
8054 (("GDM_CUSTOM_CONF")
8055 (string-append "(g_getenv(\"GDM_CUSTOM_CONF\") != NULL"
8056 " ? g_getenv(\"GDM_CUSTOM_CONF\")"
8057 " : GDM_CUSTOM_CONF)")))
8058 ;; Use service-supplied path to X.
8059 (substitute* '("daemon/gdm-server.c")
8060 (("\\(X_SERVER X_SERVER_ARG_FORMAT")
8061 "(\"%s\" X_SERVER_ARG_FORMAT, g_getenv (\"GDM_X_SERVER\")"))
8062 (substitute* '("daemon/gdm-wayland-session.c"
8063 "daemon/gdm-x-session.c")
8064 (("\"dbus-daemon\"")
8065 "g_getenv (\"GDM_DBUS_DAEMON\")")
8066 (("X_SERVER")
8067 "g_getenv (\"GDM_X_SERVER\")")
8068 (("GDMCONFDIR \"/Xsession\"")
8069 "g_getenv (\"GDM_X_SESSION\")"))
8070 ;; Use an absolute path for GNOME Session.
8071 (substitute* "daemon/gdm-launch-environment.c"
8072 (("\"gnome-session\"")
8073 (string-append "\"" (assoc-ref inputs "gnome-session")
8074 "/bin/gnome-session\"")))
8075 ;; Do not automatically select the placeholder session.
8076 (substitute* "daemon/gdm-session.c"
8077 (("!g_str_has_suffix [(]base_name, \"\\.desktop\"[)]")
8078 (string-append "!g_str_has_suffix (base_name, \".desktop\") || "
8079 "(g_strcmp0(search_dirs[i], \""
8080 (assoc-ref outputs "out") "/share/gdm/BuiltInSessions/"
8081 "\") == 0 && "
8082 "g_strcmp0(base_name, \"fail.desktop\") == 0)"))
8083 (("g_error [(]\"GdmSession: no session desktop files installed, aborting\\.\\.\\.\"[)];")
8084 "{ self->fallback_session_name = g_strdup(\"fail\"); goto out; }"))
8085 #t))
8086 ;; GDM requires that there be at least one desktop entry
8087 ;; file. This phase installs a hidden one that simply
8088 ;; fails. This enables users to use GDM with a
8089 ;; '~/.xsession' script with no other desktop entry files.
8090 ;; See <https://bugs.gnu.org/35068>.
8091 (add-after 'install 'install-placeholder-desktop-entry
8092 (lambda* (#:key inputs outputs #:allow-other-keys)
8093 (let* ((out (assoc-ref outputs "out"))
8094 (sessions (string-append out "/share/gdm/BuiltInSessions"))
8095 (fail (string-append sessions "/fail.desktop")))
8096 (mkdir-p sessions)
8097 (with-output-to-file fail
8098 (lambda ()
8099 (for-each
8100 display
8101 '("[Desktop Entry]\n"
8102 "Encoding=UTF-8\n"
8103 "Type=Application\n"
8104 "Name=Fail\n"
8105 "Comment=This session fails immediately.\n"
8106 "NoDisplay=true\n"
8107 "Exec=false\n"))))
8108 #t)))
8109 ;; GDM needs GNOME Session to run these applications. We link
8110 ;; their autostart files in `share/gdm/greeter/autostart'
8111 ;; because GDM explicitly tells GNOME Session to look there.
8112 ;;
8113 ;; XXX: GNOME Shell should be linked here too, but currently
8114 ;; GNOME Shell depends on GDM.
8115 (add-after 'install 'link-autostart-files
8116 (lambda* (#:key inputs outputs #:allow-other-keys)
8117 (let* ((out (assoc-ref outputs "out"))
8118 (autostart (string-append out "/share/gdm/"
8119 "greeter/autostart"))
8120 (settings (assoc-ref inputs "gnome-settings-daemon")))
8121 (mkdir-p autostart)
8122 (with-directory-excursion autostart
8123 (for-each (lambda (desktop)
8124 (symlink desktop (basename desktop)))
8125 (find-files (string-append settings "/etc/xdg"))))
8126 #t))))))
8127 (native-inputs
8128 `(("dconf" ,dconf)
8129 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8130 ("gobject-introspection" ,gobject-introspection)
8131 ("intltool" ,intltool)
8132 ("itstool" ,itstool)
8133 ("pkg-config" ,pkg-config)
8134 ("xmllint" ,libxml2)))
8135 (inputs
8136 `(("accountsservice" ,accountsservice)
8137 ("check" ,check-0.14) ;for testing
8138 ("elogind" ,elogind)
8139 ("gnome-session" ,gnome-session)
8140 ("gnome-settings-daemon" ,gnome-settings-daemon)
8141 ("gtk+" ,gtk+)
8142 ("iso-codes" ,iso-codes)
8143 ("libcanberra" ,libcanberra)
8144 ("linux-pam" ,linux-pam)))
8145 (synopsis "Display manager for GNOME")
8146 (home-page "https://wiki.gnome.org/Projects/GDM/")
8147 (description
8148 "GNOME Display Manager is a system service that is responsible for
8149 providing graphical log-ins and managing local and remote displays.")
8150 (license license:gpl2+)))
8151
8152 (define-public libgtop
8153 (package
8154 (name "libgtop")
8155 (version "2.40.0")
8156 (source (origin
8157 (method url-fetch)
8158 (uri (string-append "mirror://gnome/sources/libgtop/"
8159 (version-major+minor version) "/"
8160 "libgtop-" version ".tar.xz"))
8161 (sha256
8162 (base32
8163 "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq"))))
8164 (build-system gnu-build-system)
8165 (native-inputs
8166 `(("gobject-introspection" ,gobject-introspection)
8167 ("intltool" ,intltool)
8168 ("perl" ,perl)
8169 ("pkg-config" ,pkg-config)))
8170 (propagated-inputs
8171 `(("glib" ,glib))) ; required by libgtop-2.0.pc
8172 (synopsis "Portable system access library")
8173 (home-page "https://www.gnome.org/")
8174 (description
8175 "LibGTop is a library to get system specific data such as CPU and memory
8176 usage and information about running processes.")
8177 (license license:gpl2+)))
8178
8179 (define-public gnome-bluetooth
8180 (package
8181 (name "gnome-bluetooth")
8182 (version "3.34.2")
8183 (source (origin
8184 (method url-fetch)
8185 (uri (string-append "mirror://gnome/sources/" name "/"
8186 (version-major+minor version) "/"
8187 name "-" version ".tar.xz"))
8188 (sha256
8189 (base32
8190 "0lmjvb49vgr4jjplrisv6pi29jsn1q42715i6c5a0p9ad3gawyyv"))))
8191 (build-system meson-build-system)
8192 (native-inputs
8193 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
8194 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
8195 ("gobject-introspection" ,gobject-introspection)
8196 ("intltool" ,intltool)
8197 ("pkg-config" ,pkg-config)
8198 ("xmllint" ,libxml2)))
8199 (propagated-inputs
8200 ;; gnome-bluetooth-1.0.pc refers to all these.
8201 `(("glib" ,glib)
8202 ("gtk+" ,gtk+)))
8203 (inputs
8204 `(("eudev" ,eudev)
8205 ("libcanberra" ,libcanberra)
8206 ("libnotify" ,libnotify)))
8207 (synopsis "GNOME Bluetooth subsystem")
8208 (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
8209 (description
8210 "This package contains tools for managing and manipulating Bluetooth
8211 devices using the GNOME desktop.")
8212 (license license:lgpl2.1+)))
8213
8214 (define-public gnome-control-center
8215 (package
8216 (name "gnome-control-center")
8217 (version "3.34.2")
8218 (source (origin
8219 (method url-fetch)
8220 (uri (string-append "mirror://gnome/sources/" name "/"
8221 (version-major+minor version) "/"
8222 name "-" version ".tar.xz"))
8223 (sha256
8224 (base32
8225 "054igagvmyzpaa5nwzz98gv7bk7l5dwp6g813707132si3szlpx8"))))
8226 (build-system meson-build-system)
8227 (arguments
8228 '(#:glib-or-gtk? #t
8229 #:configure-flags
8230 (list "-Dcheese=false"
8231 (string-append "-Dgnome_session_libexecdir="
8232 (assoc-ref %build-inputs "gnome-session")
8233 "/libexec"))
8234 #:phases
8235 (modify-phases %standard-phases
8236 (add-before 'configure 'patch-paths
8237 (lambda* (#:key inputs #:allow-other-keys)
8238 (let ((libc (assoc-ref inputs "libc"))
8239 (tzdata (assoc-ref inputs "tzdata"))
8240 (libgnomekbd (assoc-ref inputs "libgnomekbd"))
8241 (nm-applet (assoc-ref inputs "network-manager-applet"))
8242 (gnome-desktop (assoc-ref inputs "gnome-desktop")))
8243 (substitute* "panels/datetime/tz.h"
8244 (("/usr/share/zoneinfo/zone.tab")
8245 (string-append tzdata "/share/zoneinfo/zone.tab")))
8246 (substitute* "tests/datetime/test-endianess.c"
8247 (("/usr/share/locale")
8248 (string-append libc "/share/locale")))
8249 (substitute* "panels/region/cc-region-panel.c"
8250 (("\"gkbd-keyboard-display")
8251 (string-append "\"" libgnomekbd
8252 "/bin/gkbd-keyboard-display")))
8253 (substitute* '("panels/network/net-device-wifi.c"
8254 "panels/network/net-device.c"
8255 "panels/network/connection-editor/net-connection-editor.c")
8256 (("\"nm-connection-editor")
8257 (string-append "\"" nm-applet
8258 "/bin/nm-connection-editor")))
8259 (substitute* '("panels/user-accounts/run-passwd.c")
8260 (("/usr/bin/passwd")
8261 "/run/setuid-programs/passwd"))
8262 (substitute* "panels/info/cc-info-overview-panel.c"
8263 (("DATADIR \"/gnome/gnome-version.xml\"")
8264 (string-append "\"" gnome-desktop
8265 "/share/gnome/gnome-version.xml\"")))
8266 #t)))
8267 (add-after 'unpack 'skip-gtk-update-icon-cache
8268 ;; Don't create 'icon-theme.cache'.
8269 (lambda _
8270 (substitute* "build-aux/meson/meson_post_install.py"
8271 (("gtk-update-icon-cache") (which "true")))
8272 #t)))))
8273 (native-inputs
8274 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
8275 ("intltool" ,intltool)
8276 ("pkg-config" ,pkg-config)
8277 ("xsltproc" ,libxslt)
8278 ;; For tests
8279 ("hicolor-icon-theme" ,hicolor-icon-theme)
8280 ("python-dbusmock" ,python-dbusmock)
8281 ("xorg-server" ,xorg-server-for-tests)))
8282 (inputs
8283 `(("accountsservice" ,accountsservice)
8284 ("clutter-gtk" ,clutter-gtk)
8285 ("colord-gtk" ,colord-gtk)
8286 ("cups" ,cups)
8287 ("dconf" ,dconf)
8288 ("docbook-xsl" ,docbook-xsl)
8289 ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
8290 ("gnome-bluetooth" ,gnome-bluetooth)
8291 ("gnome-desktop" ,gnome-desktop)
8292 ("gnome-online-accounts" ,gnome-online-accounts)
8293 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
8294 ("gnome-session" ,gnome-session)
8295 ("gnome-settings-daemon" ,gnome-settings-daemon)
8296 ("grilo" ,grilo)
8297 ("gsound" ,gsound)
8298 ("ibus" ,ibus)
8299 ("libcanberra" ,libcanberra)
8300 ("libgnomekbd" ,libgnomekbd)
8301 ("libgudev" ,libgudev)
8302 ("libgtop" ,libgtop)
8303 ("libnma" ,libnma)
8304 ("libpwquality" ,libpwquality)
8305 ("libsecret" ,libsecret)
8306 ("libsoup" ,libsoup)
8307 ("libxml2" ,libxml2)
8308 ("libwacom" ,libwacom)
8309 ("mesa" ,mesa)
8310 ("mit-krb5" ,mit-krb5)
8311 ("modem-manager" ,modem-manager)
8312 ("network-manager-applet" ,network-manager-applet)
8313 ("polkit" ,polkit)
8314 ("pulseaudio" ,pulseaudio)
8315 ("smbclient" ,samba)
8316 ("tzdata" ,tzdata)
8317 ("udisks" ,udisks)
8318 ("upower" ,upower)))
8319 (synopsis "Utilities to configure the GNOME desktop")
8320 (home-page "https://www.gnome.org/")
8321 (description
8322 "This package contains configuration applets for the GNOME desktop,
8323 allowing to set accessibility configuration, desktop fonts, keyboard and mouse
8324 properties, sound setup, desktop theme and background, user interface
8325 properties, screen resolution, and other GNOME parameters.")
8326 (license license:gpl2+)))
8327
8328 (define-public gnome-shell
8329 (package
8330 (name "gnome-shell")
8331 (version "3.34.2")
8332 (source (origin
8333 (method url-fetch)
8334 (uri (string-append "mirror://gnome/sources/" name "/"
8335 (version-major+minor version) "/"
8336 name "-" version ".tar.xz"))
8337 (sha256
8338 (base32
8339 "0k9vq2gh1nhdd6fpp7jnwx37qxaakawiqw1xnlfjvq5g5zdn8ckh"))
8340 (patches (search-patches "gnome-shell-theme.patch"
8341 "gnome-shell-disable-test.patch"))
8342 (modules '((guix build utils)))
8343 (snippet
8344 #~(begin
8345 ;; Copy images for use on the GDM log-in screen.
8346 (copy-file #$(file-append %artwork-repository
8347 "/slim/0.x/background.png")
8348 "data/theme/guix-background.png")
8349 (copy-file #$(file-append %artwork-repository
8350 "/logo/Guix-horizontal-white.svg")
8351 "data/theme/guix-logo.svg")
8352 #t))))
8353 (build-system meson-build-system)
8354 (arguments
8355 `(#:glib-or-gtk? #t
8356 #:disallowed-references ((,glib "bin")
8357 ,inkscape ,libxslt
8358 ,ruby-sass)
8359 #:configure-flags
8360 (list "-Dsystemd=false"
8361 ;; Otherwise, the RUNPATH will lack the final path component.
8362 (string-append "-Dc_link_args=-Wl,-rpath="
8363 (assoc-ref %outputs "out")
8364 "/lib/gnome-shell"))
8365
8366 #:modules ((guix build meson-build-system)
8367 (guix build utils)
8368 (srfi srfi-1))
8369
8370 #:phases
8371 (modify-phases %standard-phases
8372 (add-after 'unpack 'fix-keysdir
8373 (lambda* (#:key outputs #:allow-other-keys)
8374 (let* ((out (assoc-ref outputs "out"))
8375 (keysdir (string-append
8376 out "/share/gnome-control-center/keybindings")))
8377 (substitute* "meson.build"
8378 (("keysdir =.*")
8379 (string-append "keysdir = '" keysdir "'\n")))
8380 #t)))
8381 (add-before 'configure 'convert-logo-to-png
8382 (lambda* (#:key inputs #:allow-other-keys)
8383 ;; Convert the logo from SVG to PNG.
8384 (invoke "inkscape" "--export-png=data/theme/guix-logo.png"
8385 "data/theme/guix-logo.svg")))
8386 (add-before 'configure 'record-absolute-file-names
8387 (lambda* (#:key inputs #:allow-other-keys)
8388 (substitute* "js/misc/ibusManager.js"
8389 (("'ibus-daemon'")
8390 (string-append "'" (assoc-ref inputs "ibus")
8391 "/bin/ibus-daemon'")))
8392 (substitute* "js/ui/status/keyboard.js"
8393 (("'gkbd-keyboard-display'")
8394 (string-append "'" (assoc-ref inputs "libgnomekbd")
8395 "/bin/gkbd-keyboard-display'")))
8396 #t))
8397 (add-before 'check 'pre-check
8398 (lambda* (#:key inputs #:allow-other-keys)
8399 ;; Tests require a running X server.
8400 (system "Xvfb :1 &")
8401 (setenv "DISPLAY" ":1")
8402 #t))
8403 (add-after 'install 'wrap-programs
8404 (lambda* (#:key inputs outputs #:allow-other-keys)
8405 (let ((out (assoc-ref outputs "out"))
8406 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
8407 (python-path (getenv "PYTHONPATH")))
8408 (wrap-program (string-append out "/bin/gnome-shell")
8409 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
8410 ;; FIXME: gnome-shell loads these libraries with unqualified
8411 ;; names only, so they need to be on LD_LIBRARY_PATH. The
8412 ;; alternative might be to patch gnome-shell.
8413 `("LD_LIBRARY_PATH" ":" prefix
8414 ,(map (lambda (pkg)
8415 (string-append (assoc-ref inputs pkg) "/lib"))
8416 '("gdk-pixbuf"
8417 "gnome-bluetooth" "librsvg" "libgweather"))))
8418 (for-each
8419 (lambda (prog)
8420 (wrap-program (string-append out "/bin/" prog)
8421 `("PYTHONPATH" ":" prefix (,python-path))
8422 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
8423 '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
8424 #t)))
8425 (replace 'glib-or-gtk-wrap
8426 (let ((wrap (assoc-ref %standard-phases 'glib-or-gtk-wrap)))
8427 (lambda* (#:key inputs outputs #:allow-other-keys #:rest rest)
8428 ;; By default Inkscape et al. would end up in the XDG_DATA_DIRS
8429 ;; settings of the wrappers created by the 'glib-or-gtk-wrap'
8430 ;; phase. Fix that since we don't need these.
8431 (wrap #:inputs (fold alist-delete inputs
8432 '("inkscape" "intltool" "glib:bin"))
8433 #:outputs outputs)))))))
8434 (native-inputs
8435 `(("asciidoc" ,asciidoc)
8436 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8437 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8438 ("gobject-introspection" ,gobject-introspection)
8439 ("inkscape" ,inkscape)
8440 ("intltool" ,intltool)
8441 ("pkg-config" ,pkg-config)
8442 ("python" ,python)
8443 ("ruby-sass" ,ruby-sass)
8444 ("sassc" ,sassc)
8445 ("xsltproc" ,libxslt)
8446 ;; For tests
8447 ("xorg-server" ,xorg-server-for-tests)))
8448 (inputs
8449 `(("accountsservice" ,accountsservice)
8450 ("caribou" ,caribou)
8451 ("docbook-xsl" ,docbook-xsl)
8452 ("evolution-data-server" ,evolution-data-server)
8453 ("gcr" ,gcr)
8454 ("gdm" ,gdm)
8455 ("gdk-pixbuf" ,gdk-pixbuf+svg)
8456 ("gjs" ,gjs)
8457 ("gnome-autoar" ,gnome-autoar)
8458 ("gnome-bluetooth" ,gnome-bluetooth)
8459 ("gnome-desktop" ,gnome-desktop)
8460 ("gnome-settings-daemon" ,gnome-settings-daemon)
8461 ("gst-plugins-base" ,gst-plugins-base)
8462 ("ibus" ,ibus)
8463 ("libcanberra" ,libcanberra)
8464 ("libcroco" ,libcroco)
8465 ("libgnomekbd" ,libgnomekbd) ;for gkbd-keyboard-display
8466 ("libgweather" ,libgweather)
8467 ("libnma" ,libnma)
8468 ("libsoup" ,libsoup)
8469 ("mesa-headers" ,mesa-headers)
8470 ("mutter" ,mutter)
8471 ("network-manager-applet" ,network-manager-applet)
8472 ("polkit" ,polkit)
8473 ("pulseaudio" ,pulseaudio)
8474 ("python-pygobject" ,python-pygobject)
8475 ("startup-notification" ,startup-notification)
8476 ("telepathy-logger" ,telepathy-logger)
8477 ("upower" ,upower)
8478 ;; XXX: These requirements were added in 3.24, but no mention in NEWS.
8479 ;; Missing propagation? See also: <https://bugs.gnu.org/27264>
8480 ("librsvg" ,librsvg)
8481 ("geoclue" ,geoclue)))
8482 (synopsis "Desktop shell for GNOME")
8483 (home-page "https://wiki.gnome.org/Projects/GnomeShell")
8484 (description
8485 "GNOME Shell provides core user interface functions for the GNOME desktop,
8486 like switching to windows and launching applications.")
8487 (license license:gpl2+)))
8488
8489 (define-public gtk-vnc
8490 (package
8491 (name "gtk-vnc")
8492 (version "1.0.0")
8493 (source
8494 (origin
8495 (method url-fetch)
8496 (uri
8497 (string-append "mirror://gnome/sources/" name "/"
8498 (version-major+minor version) "/"
8499 name "-" version ".tar.xz"))
8500 (sha256
8501 (base32 "1060ws037v556rx1qhfrcg02859rscksrzr8fq11himdg4d1y6m8"))))
8502 (build-system meson-build-system)
8503 (arguments
8504 `(#:glib-or-gtk? #t)) ; To wrap binaries and/or compile schemas
8505 (native-inputs
8506 `(("gjs" ,gjs)
8507 ("glib:bin" ,glib "bin")
8508 ("gobject-introspection" ,gobject-introspection)
8509 ("intltool" ,intltool)
8510 ("node" ,node)
8511 ("perl" ,perl)
8512 ("pkg-config" ,pkg-config)
8513 ("python" ,python-wrapper)
8514 ("vala" ,vala)))
8515 (inputs
8516 `(("cairo" ,cairo)
8517 ("gdk-pixbuf" ,gdk-pixbuf+svg)
8518 ("glib" ,glib)
8519 ("gnutls" ,gnutls)
8520 ("libgcrypt" ,libgcrypt)
8521 ("libsasl" ,cyrus-sasl)
8522 ("pulseaudio" ,pulseaudio)
8523 ("x11" ,libx11)
8524 ("zlib" ,zlib)))
8525 (propagated-inputs
8526 `(("gtk+" ,gtk+)))
8527 (synopsis "VNC client viewer widget for GTK+")
8528 (description "GTK-VNC is a project providing client side APIs for the RFB
8529 protocol / VNC remote desktop technology. It is built using coroutines allowing
8530 it to be completely asynchronous while remaining single threaded. It provides a
8531 core C library, and bindings for Python (PyGTK).")
8532 (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
8533 (license license:lgpl2.1+)))
8534
8535 (define-public gnome-autoar
8536 (package
8537 (name "gnome-autoar")
8538 (version "0.2.4")
8539 (source (origin
8540 (method url-fetch)
8541 (uri (string-append "mirror://gnome/sources/" name "/"
8542 (version-major+minor version) "/"
8543 name "-" version ".tar.xz"))
8544 (sha256
8545 (base32
8546 "0yk56ch46n3wfy633mq31kif9n7v06rlij4vqbsbn6l4z1vw6d0a"))))
8547 (build-system glib-or-gtk-build-system)
8548 (native-inputs
8549 `(("gobject-introspection" ,gobject-introspection)
8550 ("pkg-config" ,pkg-config)))
8551 (propagated-inputs
8552 `(("libarchive" ,libarchive))) ; Required by gnome-autoar-0.pc
8553 (inputs
8554 `(("gtk+" ,gtk+)))
8555 (synopsis "Archives integration support for GNOME")
8556 (home-page "https://git.gnome.org/browse/gnome-autoar/")
8557 (description
8558 "GNOME Autoar is a library which makes creating and extracting archives
8559 easy, safe, and automatic.")
8560 (license license:lgpl2.1+)))
8561
8562 (define-public tracker
8563 (package
8564 (name "tracker")
8565 (version "2.3.5")
8566 (source (origin
8567 (method url-fetch)
8568 (uri (string-append "mirror://gnome/sources/tracker/"
8569 (version-major+minor version) "/"
8570 "tracker-" version ".tar.xz"))
8571 (sha256
8572 (base32
8573 "1ixxyqjlv7pnl4j8g6b72fkbjvzfspza8y71ppkncry8i6xkr223"))))
8574 (build-system meson-build-system)
8575 (arguments
8576 `(#:glib-or-gtk? #t
8577 #:configure-flags
8578 ;; Otherwise, the RUNPATH will lack the final path component.
8579 (list (string-append "-Dc_link_args=-Wl,-rpath="
8580 (assoc-ref %outputs "out") "/lib:"
8581 (assoc-ref %outputs "out") "/lib/tracker-2.0"))
8582 #:phases
8583 (modify-phases %standard-phases
8584 (add-before 'check 'pre-check
8585 (lambda _
8586 ;; Some tests expect to write to $HOME.
8587 (setenv "HOME" "/tmp")
8588 #t)))))
8589 (native-inputs
8590 `(("glib:bin" ,glib "bin")
8591 ("gobject-introspection" ,gobject-introspection)
8592 ("python-pygobject" ,python-pygobject)
8593 ("intltool" ,intltool)
8594 ("pkg-config" ,pkg-config)
8595 ("vala" ,vala)))
8596 (inputs
8597 `(("dbus" ,dbus)
8598 ("sqlite" ,sqlite)
8599 ("libxml2" ,libxml2)
8600 ("icu4c" ,icu4c) ; libunistring gets miner-miner-fs test to fail.
8601 ("json-glib" ,json-glib)
8602 ("libsoup" ,libsoup)))
8603 (synopsis "Metadata database, indexer and search tool")
8604 (home-page "https://wiki.gnome.org/Projects/Tracker")
8605 (description
8606 "Tracker is a search engine and triplestore for desktop, embedded and mobile.
8607
8608 It is a middleware component aimed at desktop application developers who want
8609 their apps to browse and search user content. It's not designed to be used
8610 directly by desktop users, but it provides a commandline tool named
8611 @command{tracker} for the adventurous.
8612
8613 Tracker allows your application to instantly perform full-text searches across
8614 all documents. This feature is used by the @{emph{search} bar in GNOME Files, for
8615 example. This is achieved by indexing the user's home directory in the
8616 background.
8617
8618 Tracker also allows your application to query and list content that the user
8619 has stored. For example, GNOME Music displays all the music files that are
8620 found by Tracker. This means that GNOME Music doesn't need to maintain a
8621 database of its own.
8622
8623 If you need to go beyond simple searches, Tracker is also a linked data
8624 endpoint and it understands SPARQL. ")
8625 ;; https://gitlab.gnome.org/GNOME/tracker/-/blob/master/COPYING:
8626 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
8627 ;; libstemmer is bsd-3 and the rest is gpl2+.
8628 (license (list license:gpl2+
8629 license:bsd-3
8630 license:lgpl2.1+))))
8631
8632 (define-public tracker-miners
8633 (package
8634 (name "tracker-miners")
8635 (version "2.3.4")
8636 (source (origin
8637 (method url-fetch)
8638 (uri (string-append "mirror://gnome/sources/tracker-miners/"
8639 (version-major+minor version)
8640 "/tracker-miners-" version ".tar.xz"))
8641 (sha256
8642 (base32
8643 "10wy8d8ski52k809p7s6lbw72qmg05bbmhnl00vx4qrbzqyxvc0b"))))
8644 (build-system meson-build-system)
8645 (arguments
8646 `(#:glib-or-gtk? #t
8647 #:configure-flags
8648 (list "-Dminer_rss=false" ; libgrss is required.
8649 ;; Ensure the RUNPATH contains all installed library locations.
8650 (string-append "-Dc_link_args=-Wl,-rpath="
8651 (assoc-ref %outputs "out")
8652 "/lib/tracker-miners-2.0")
8653 ;; TODO: Enable functional tests. Currently, the following error
8654 ;; appears:
8655 ;; Exception: The functional tests require DConf to be the default
8656 ;; GSettings backend. Got GKeyfileSettingsBackend instead.
8657 "-Dfunctional_tests=false")))
8658 (native-inputs
8659 `(("dbus" ,dbus)
8660 ("intltool" ,intltool)
8661 ("glib:bin" ,glib "bin")
8662 ("gobject-introspection" ,gobject-introspection)
8663 ("pkg-config" ,pkg-config)
8664 ("python-pygobject" ,python-pygobject)))
8665 (inputs
8666 `(("exempi" ,exempi)
8667 ("ffmpeg" ,ffmpeg)
8668 ("flac" ,flac)
8669 ("giflib" ,giflib)
8670 ("glib" ,glib)
8671 ("gstreamer" ,gstreamer)
8672 ("icu4c" ,icu4c)
8673 ("libcue" ,libcue)
8674 ("libexif" ,libexif)
8675 ("libgsf" ,libgsf)
8676 ("libgxps" ,libgxps)
8677 ("libiptcdata" ,libiptcdata)
8678 ("libjpeg" ,libjpeg-turbo)
8679 ("libosinfo" ,libosinfo)
8680 ("libpng" ,libpng)
8681 ("libseccomp" ,libseccomp)
8682 ("libtiff" ,libtiff)
8683 ("libvorbis" ,libvorbis)
8684 ("libxml2" ,libxml2)
8685 ("poppler" ,poppler)
8686 ("taglib" ,taglib)
8687 ("totem-pl-parser" ,totem-pl-parser)
8688 ("tracker" ,tracker)
8689 ("upower" ,upower)
8690 ("zlib" ,zlib)))
8691 (synopsis "Metadata database, indexer and search tool")
8692 (home-page "https://wiki.gnome.org/Projects/Tracker")
8693 (description
8694 "Tracker is an advanced framework for first class objects with associated
8695 metadata and tags. It provides a one stop solution for all metadata, tags,
8696 shared object databases, search tools and indexing.")
8697 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
8698 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
8699 (license (list license:gpl2+
8700 license:lgpl2.1+
8701 license:lgpl2.0+))))
8702
8703 (define-public nautilus
8704 (package
8705 (name "nautilus")
8706 (version "3.34.2")
8707 (source (origin
8708 (method url-fetch)
8709 (uri (string-append "mirror://gnome/sources/" name "/"
8710 (version-major+minor version) "/"
8711 name "-" version ".tar.xz"))
8712 (sha256
8713 (base32
8714 "19zqwq4qyyncc5wq3xls0f7rsavnw741k336p2h7kx35p4kf41mv"))))
8715 (build-system meson-build-system)
8716 (arguments
8717 '(#:glib-or-gtk? #t
8718 #:phases
8719 (modify-phases %standard-phases
8720 (add-after 'unpack 'skip-gtk-update-icon-cache
8721 ;; Don't create 'icon-theme.cache'.
8722 (lambda _
8723 (substitute* "build-aux/meson/postinstall.py"
8724 (("gtk-update-icon-cache") "true"))
8725 #t)))
8726 ;; XXX: FAIL: check-nautilus
8727 ;; Settings schema 'org.gnome.nautilus.preferences' is not installed
8728 #:tests? #f))
8729 (native-inputs
8730 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8731 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
8732 ("gobject-introspection" ,gobject-introspection)
8733 ("intltool" ,intltool)
8734 ("pkg-config" ,pkg-config)))
8735 (inputs
8736 `(("dconf" ,dconf)
8737 ("gexiv2" ,gexiv2)
8738 ("gvfs" ,gvfs)
8739 ("exempi" ,exempi)
8740 ("gnome-desktop" ,gnome-desktop)
8741 ("gnome-autoar" ,gnome-autoar)
8742 ("gst-plugins-base" ,gst-plugins-base)
8743 ("libseccomp" ,libseccomp)
8744 ("libselinux" ,libselinux)
8745 ("tracker" ,tracker)
8746 ("tracker-miners" ,tracker-miners)
8747 ;; XXX: gtk+ is required by libnautilus-extension.pc
8748 ;;
8749 ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
8750 ;; package. See:
8751 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
8752 ("gtk+" ,gtk+)
8753 ("libexif" ,libexif)
8754 ("libxml2" ,libxml2)))
8755 (synopsis "File manager for GNOME")
8756 (home-page "https://wiki.gnome.org/Apps/Nautilus")
8757 (description
8758 "Nautilus (Files) is a file manager designed to fit the GNOME desktop
8759 design and behaviour, giving the user a simple way to navigate and manage its
8760 files.")
8761 (license license:gpl2+)))
8762
8763 (define-public baobab
8764 (package
8765 (name "baobab")
8766 (version "3.38.0")
8767 (source (origin
8768 (method url-fetch)
8769 (uri (string-append
8770 "mirror://gnome/sources/" name "/"
8771 (version-major+minor version) "/"
8772 name "-" version ".tar.xz"))
8773 (sha256
8774 (base32
8775 "0ac3fbl15l836yvgw724q4whbkws9v4b6l2xy6bnp0b0g0a6i104"))))
8776 (build-system meson-build-system)
8777 (arguments
8778 '(#:glib-or-gtk? #t))
8779 (native-inputs
8780 `(("intltool" ,intltool)
8781 ("pkg-config" ,pkg-config)
8782 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8783 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8784 ("itstool" ,itstool)
8785 ("xmllint" ,libxml2)
8786 ("glib" ,glib "bin")
8787 ("vala" ,vala)))
8788 (inputs
8789 `(("gtk+" ,gtk+)))
8790 (synopsis "Disk usage analyzer for GNOME")
8791 (description
8792 "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
8793 usage in the GNOME desktop environment. It can easily scan device volumes or
8794 a specific user-requested directory branch (local or remote). Once the scan
8795 is complete it provides a graphical representation of each selected folder.")
8796 (home-page "https://wiki.gnome.org/Apps/Baobab")
8797 (license license:gpl2+)))
8798
8799 (define-public gnome-backgrounds
8800 (package
8801 (name "gnome-backgrounds")
8802 (version "3.34.0")
8803 (source
8804 (origin
8805 (method url-fetch)
8806 (uri (string-append "mirror://gnome/sources/" name "/"
8807 (version-major+minor version) "/"
8808 name "-" version ".tar.xz"))
8809 (sha256
8810 (base32
8811 "0zxlwy55fz7i582hch2wnj8zy1kzikssgaix0l2y41ccp5nzpdy2"))))
8812 (build-system meson-build-system)
8813 (native-inputs
8814 `(("intltool" ,intltool)))
8815 (home-page "https://gitlab.gnome.org/GNOME/gnome-backgrounds")
8816 (synopsis "Background images for the GNOME desktop")
8817 (description
8818 "GNOME backgrounds package contains a collection of graphics files which
8819 can be used as backgrounds in the GNOME Desktop environment. Additionally,
8820 the package creates the proper framework and directory structure so that you
8821 can add your own files to the collection.")
8822 (license (list license:gpl2+
8823 license:cc-by2.0
8824 license:cc-by-sa2.0
8825 license:cc-by-sa3.0))))
8826
8827 (define-public gnome-screenshot
8828 (package
8829 (name "gnome-screenshot")
8830 (version "3.34.0")
8831 (source
8832 (origin
8833 (method url-fetch)
8834 (uri (string-append "mirror://gnome/sources/" name "/"
8835 (version-major+minor version) "/"
8836 name "-" version ".tar.xz"))
8837 (sha256
8838 (base32
8839 "1rmiq890j7gfn5mcz31xy6jfnnxgc17dq67bhn2k9m5ylbvza2n8"))))
8840 (build-system meson-build-system)
8841 (arguments
8842 '(#:phases
8843 (modify-phases %standard-phases
8844 (add-after 'unpack 'skip-gtk-update-icon-cache
8845 ;; Don't create 'icon-theme.cache'.
8846 (lambda _
8847 (substitute* "build-aux/postinstall.py"
8848 (("gtk-update-icon-cache") "true"))
8849 #t)))))
8850 (native-inputs
8851 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8852 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8853 ("intltool" ,intltool)
8854 ("appstream-glib" ,appstream-glib)
8855 ("pkg-config" ,pkg-config)))
8856 (inputs
8857 `(("gtk+" ,gtk+)
8858 ("libcanberra" ,libcanberra)
8859 ("libx11" ,libx11)
8860 ("libxext" ,libxext)))
8861 (home-page "https://gitlab.gnome.org/GNOME/gnome-screenshot")
8862 (synopsis "Take pictures of your screen")
8863 (description
8864 "GNOME Screenshot is a utility used for taking screenshots of the entire
8865 screen, a window or a user defined area of the screen, with optional
8866 beautifying border effects.")
8867 (license license:gpl2+)))
8868
8869 (define-public dconf-editor
8870 (package
8871 (name "dconf-editor")
8872 (version "3.34.2")
8873 (source
8874 (origin
8875 (method url-fetch)
8876 (uri (string-append "mirror://gnome/sources/" name "/"
8877 (version-major+minor version) "/"
8878 name "-" version ".tar.xz"))
8879 (sha256
8880 (base32
8881 "0pwxjada2vaf69ihpjgp9nky54iykvxq63lp1vl8pxjanif2mk6f"))))
8882 (build-system meson-build-system)
8883 (native-inputs
8884 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
8885 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8886 ("intltool" ,intltool)
8887 ("pkg-config" ,pkg-config)
8888 ("vala" ,vala)))
8889 (inputs
8890 `(("dconf" ,dconf)
8891 ("gtk+" ,gtk+)
8892 ("libxml2" ,libxml2)))
8893 (home-page "https://gitlab.gnome.org/GNOME/dconf-editor")
8894 (synopsis "Graphical editor for GNOME's dconf configuration system")
8895 (description
8896 "Dconf-editor is a graphical tool for browsing and editing the dconf
8897 configuration system for GNOME. It allows users to configure desktop
8898 software that do not provide their own configuration interface.")
8899 (license license:lgpl2.1+)))
8900
8901 (define-public gnome-default-applications
8902 (package
8903 (name "gnome-default-applications")
8904 (version "0")
8905 (build-system trivial-build-system)
8906 (source #f)
8907 (propagated-inputs
8908 `(("nautilus" ,nautilus)
8909 ("evince" ,evince)))
8910 (arguments
8911 `(#:modules ((guix build utils))
8912 #:builder
8913 (begin
8914 (use-modules (guix build utils))
8915 (let* ((out (assoc-ref %outputs "out"))
8916 (apps (string-append out "/share/applications")))
8917 (mkdir-p apps)
8918 (call-with-output-file (string-append apps "/gnome-mimeapps.list")
8919 (lambda (port)
8920 (format port "[Default Applications]\n")
8921 (format port "inode/directory=org.gnome.Nautilus.desktop\n")
8922 (format port "application/pdf=evince.desktop\n")
8923 (format port "application/postscript=evince.desktop\n")))
8924 #t))))
8925 (synopsis "Default MIME type associations for the GNOME desktop")
8926 (description
8927 "Given many installed packages which might handle a given MIME type, a
8928 user running the GNOME desktop probably has some preferences: for example,
8929 that folders be opened by default by the Nautilus file manager, not the Baobab
8930 disk usage analyzer. This package establishes that set of default MIME type
8931 associations for GNOME.")
8932 (license license:gpl3+)
8933 (home-page #f)))
8934
8935 (define-public libgovirt
8936 (package
8937 (name "libgovirt")
8938 (version "0.3.6")
8939 (source (origin
8940 (method url-fetch)
8941 (uri (string-append "mirror://gnome/sources/" name "/"
8942 (version-major+minor version) "/"
8943 name "-" version ".tar.xz"))
8944 (sha256
8945 (base32
8946 "19pb71pag3vsi83kbv8h08kimwym4hpw36kjl6a5ik5nk50mc8sg"))))
8947 (build-system glib-or-gtk-build-system)
8948 (native-inputs
8949 `(("gettext" ,gettext-minimal)
8950 ("glib:bin" ,glib "bin")
8951 ("gobject-introspection" ,gobject-introspection)
8952 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8953 ("gtk+:bin" ,gtk+ "bin")
8954 ("pkg-config" ,pkg-config)))
8955 (inputs
8956 `(("glib-networking" ,glib-networking) ; GIO plugin--for the tests
8957 ("librest" ,rest)))
8958 (synopsis "GoVirt Library")
8959 (description "GoVirt is a GObject wrapper for the oVirt REST API.")
8960 (home-page "https://gitlab.gnome.org/GNOME/libgovirt")
8961 (license license:gpl2+)))
8962
8963 (define-public gnome-weather
8964 (package
8965 (name "gnome-weather")
8966 (version "3.34.0")
8967 (source (origin
8968 (method url-fetch)
8969 (uri (string-append "mirror://gnome/sources/" name "/"
8970 (version-major+minor version) "/"
8971 name "-" version ".tar.xz"))
8972 (sha256
8973 (base32
8974 "1g63xzs17i36if923b36k9fwbk0nqa5vz6zh1k6q2axrzhhpx1i4"))))
8975 (build-system meson-build-system)
8976 (native-inputs
8977 `(("gettext" ,gettext-minimal)
8978 ("glib:bin" ,glib "bin")
8979 ("gobject-introspection" ,gobject-introspection)
8980 ("gtk+:bin" ,gtk+ "bin")
8981 ("pkg-config" ,pkg-config)))
8982 (inputs
8983 `( ;("adwaita-icon-theme" ,adwaita-icon-theme)
8984 ("appstream-glib" ,appstream-glib)
8985 ("geoclue" ,geoclue)
8986 ("gdk-pixbuf" ,gdk-pixbuf)
8987 ("gjs" ,gjs)
8988 ("gnome-desktop" ,gnome-desktop)
8989 ("libgweather" ,libgweather)))
8990 (arguments
8991 `(#:glib-or-gtk? #t
8992 #:phases
8993 (modify-phases %standard-phases
8994 (add-after 'install 'fix-desktop-file
8995 ;; FIXME: "gapplication launch org.gnome.Weather" fails for some reason.
8996 ;; See https://issues.guix.gnu.org/issue/39324.
8997 (lambda* (#:key outputs #:allow-other-keys)
8998 (let* ((out (assoc-ref outputs "out"))
8999 (applications (string-append out "/share/applications")))
9000 (substitute* (string-append applications "/org.gnome.Weather.desktop")
9001 (("Exec=.*") "Exec=gnome-weather\n"))
9002 #t)))
9003 (add-after 'install 'wrap
9004 (lambda* (#:key inputs outputs #:allow-other-keys)
9005 (let ((out (assoc-ref outputs "out"))
9006 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
9007 ;; GNOME Weather needs the typelib files of GTK+, Pango etc at runtime.
9008 (wrap-program (string-append out "/bin/gnome-weather")
9009 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
9010 #t))))))
9011 (synopsis "Weather monitoring for GNOME desktop")
9012 (description "GNOME Weather is a small application that allows you to
9013 monitor the current weather conditions for your city, or anywhere in the
9014 world.")
9015 (home-page "https://wiki.gnome.org/Apps/Weather")
9016 (license license:gpl2+)))
9017
9018 (define-public gnome
9019 (package
9020 (name "gnome")
9021 (version (package-version gnome-shell))
9022 (source #f)
9023 (build-system trivial-build-system)
9024 (arguments '(#:builder (begin (mkdir %output) #t)))
9025 (propagated-inputs
9026 ;; TODO: Add or remove packages according to:
9027 ;; <https://calc.disroot.org/2nu6mpf88ynq.html>.
9028 `(
9029 ;; GNOME-Core-OS-Services
9030 ("accountsservice" ,accountsservice)
9031 ("network-manager" ,network-manager)
9032 ("packagekit" ,packagekit)
9033 ("upower" ,upower)
9034 ;; GNOME-Core-Shell
9035 ("adwaita-icon-theme" ,adwaita-icon-theme)
9036 ("gdm" ,gdm)
9037 ("glib-networking" ,glib-networking)
9038 ("gnome-backgrounds" ,gnome-backgrounds)
9039 ("gnome-bluetooth" ,gnome-bluetooth)
9040 ("gnome-color-manager" ,gnome-color-manager)
9041 ("gnome-control-center" ,gnome-control-center)
9042 ("gnome-desktop" ,gnome-desktop)
9043 ("gnome-getting-started-docs" ,gnome-getting-started-docs)
9044 ("gnome-initial-setup" ,gnome-initial-setup)
9045 ("gnome-keyring" ,gnome-keyring)
9046 ("gnome-menus" ,gnome-menus)
9047 ("gnome-session" ,gnome-session)
9048 ("gnome-settings-daemon" ,gnome-settings-daemon)
9049 ("gnome-shell-extensions" ,gnome-shell-extensions)
9050 ("gnome-shell" ,gnome-shell)
9051 ("gnome-themes-extra" ,gnome-themes-extra)
9052 ("gnome-user-docs" ,gnome-user-docs)
9053 ("gnome-user-share" ,gnome-user-share)
9054 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9055 ("gvfs" ,gvfs)
9056 ("mutter" ,mutter)
9057 ("orca" ,orca)
9058 ("rygel" ,rygel)
9059 ("sushi" ,sushi)
9060 ;; GNOME-Core-Utilities
9061 ("baobab" ,baobab)
9062 ("cheese" ,cheese)
9063 ;; XXX: EoG requires librsvg-next, which depends on Rust, which currently
9064 ;; only works on x86_64, so exclude it on other architectures.
9065 ,@(if (string-prefix? "x86_64" (%current-system))
9066 `(("eog" ,eog))
9067 '())
9068 ("epiphany" ,epiphany)
9069 ("evince" ,evince)
9070 ("file-roller" ,file-roller)
9071 ("gedit" ,gedit)
9072 ("gnome-boxes" ,gnome-boxes)
9073 ("gnome-calculator" ,gnome-calculator)
9074 ("gnome-calendar" ,gnome-calendar)
9075 ("gnome-characters" ,gnome-characters)
9076 ("gnome-clocks" ,gnome-clocks)
9077 ("gnome-contacts" ,gnome-contacts)
9078 ("gnome-disk-utility" ,gnome-disk-utility)
9079 ("gnome-font-viewer" ,gnome-font-viewer)
9080 ("gnome-maps" ,gnome-maps)
9081 ; TODO: ("gnome-music" ,gnome-music)
9082 ; TODO: ("gnome-photos" ,gnome-photos)
9083 ("gnome-screenshot" ,gnome-screenshot)
9084 ("gnome-system-monitor" ,gnome-system-monitor)
9085 ("gnome-terminal" ,gnome-terminal)
9086 ("gnome-weather" ,gnome-weather)
9087 ("nautilus" ,nautilus)
9088 ("simple-scan" ,simple-scan)
9089 ("totem" ,totem)
9090 ("yelp" ,yelp)
9091 ;; Others
9092 ("hicolor-icon-theme" ,hicolor-icon-theme)
9093 ("gnome-online-accounts" ,gnome-online-accounts)
9094
9095 ;; Packages not part of GNOME proper but that are needed for a good
9096 ;; experience. See <https://bugs.gnu.org/39646>.
9097 ;; XXX: Find out exactly which ones are needed and why.
9098 ("font-cantarell" ,font-cantarell)
9099 ("font-dejavu" ,font-dejavu)
9100 ("at-spi2-core" ,at-spi2-core)
9101 ("dbus" ,dbus)
9102 ("dconf" ,dconf)
9103 ("desktop-file-utils" ,desktop-file-utils)
9104 ("gnome-default-applications" ,gnome-default-applications)
9105 ("gnome-themes-standard" ,gnome-themes-standard)
9106 ("gst-plugins-base" ,gst-plugins-base)
9107 ("gst-plugins-good" ,gst-plugins-good)
9108 ("gucharmap" ,gucharmap)
9109 ("pinentry-gnome3" ,pinentry-gnome3)
9110 ("pulseaudio" ,pulseaudio)
9111 ("shared-mime-info" ,shared-mime-info)
9112 ("system-config-printer" ,system-config-printer)
9113 ("xdg-user-dirs" ,xdg-user-dirs)
9114 ("yelp" ,yelp)
9115 ("zenity" ,zenity)))
9116 (synopsis "The GNU desktop environment")
9117 (home-page "https://www.gnome.org/")
9118 (description
9119 "GNOME is the graphical desktop for GNU. It includes a wide variety of
9120 applications for browsing the web, editing text and images, creating
9121 documents and diagrams, playing media, scanning, and much more.")
9122 (license license:gpl2+)))
9123
9124 (define-public byzanz
9125 ;; The last stable release of Byzanz was in 2011, but there have been many
9126 ;; useful commits made to the Byzanz repository since then that it would be
9127 ;; silly to use such an old release.
9128 (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
9129 (package
9130 (name "byzanz")
9131 (version (string-append "0.2-1." (string-take commit 7)))
9132 (source (origin
9133 (method git-fetch)
9134 (uri (git-reference
9135 (url "https://git.gnome.org/browse/byzanz")
9136 (commit commit)))
9137 (file-name (string-append name "-" version "-checkout"))
9138 (sha256
9139 (base32
9140 "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
9141 (build-system glib-or-gtk-build-system)
9142 (arguments
9143 '(#:phases
9144 (modify-phases %standard-phases
9145 (add-before 'bootstrap 'build-without-Werror
9146 (lambda _
9147 ;; The build system cleverly detects that we're not building from
9148 ;; a release tarball and turns on -Werror for GCC.
9149 ;; Unsurprisingly, there is a warning during compilation that
9150 ;; causes the build to fail unnecessarily, so we remove the flag.
9151 (substitute* '("configure.ac")
9152 (("-Werror") ""))
9153 #t)))))
9154 (native-inputs
9155 `(("autoconf" ,autoconf)
9156 ("automake" ,automake)
9157 ("gnome-common" ,gnome-common)
9158 ("intltool" ,intltool)
9159 ("libtool" ,libtool)
9160 ("pkg-config" ,pkg-config)
9161 ("which" ,which)))
9162 (inputs
9163 `(("glib" ,glib)
9164 ("gstreamer" ,gstreamer)
9165 ("gst-plugins-base" ,gst-plugins-base)
9166 ("gtk+" ,gtk+)))
9167 (synopsis "Desktop recording program")
9168 (description "Byzanz is a simple desktop recording program with a
9169 command-line interface. It can record part or all of an X display for a
9170 specified duration and save it as a GIF encoded animated image file.")
9171 (home-page "https://git.gnome.org/browse/byzanz")
9172 (license license:gpl2+))))
9173
9174 (define-public authenticator
9175 (package
9176 (name "authenticator")
9177 (version "3.32.2")
9178 (source
9179 (origin
9180 (method git-fetch)
9181 (uri (git-reference
9182 (url "https://gitlab.gnome.org/World/Authenticator")
9183 (commit version)))
9184 (file-name (git-file-name name version))
9185 (sha256
9186 (base32 "1c4r9rnrz5gazrfg0z2rcwax4nscs7z391bcjcl74k6ln3blwzpr"))))
9187 (build-system meson-build-system)
9188 (arguments
9189 `(#:glib-or-gtk? #t
9190 #:phases
9191 (modify-phases %standard-phases
9192 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
9193 (lambda* (#:key inputs outputs #:allow-other-keys)
9194 (let ((prog (string-append (assoc-ref outputs "out")
9195 "/bin/authenticator"))
9196 (pylib (string-append (assoc-ref outputs "out")
9197 "/lib/python"
9198 ,(version-major+minor
9199 (package-version python))
9200 "/site-packages")))
9201 (wrap-program prog
9202 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
9203 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
9204 #t))))))
9205 (native-inputs
9206 `(("desktop-file-utils" ,desktop-file-utils)
9207 ("gettext" ,gettext-minimal)
9208 ("glib:bin" ,glib "bin")
9209 ("gobject-introspection" ,gobject-introspection)
9210 ("gtk+:bin" ,gtk+ "bin")
9211 ("pkg-config" ,pkg-config)))
9212 (inputs
9213 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9214 ("gtk+" ,gtk+)
9215 ("libhandy" ,libhandy-0.0)
9216 ("libsecret" ,libsecret)
9217 ("python-beautifulsoup4" ,python-beautifulsoup4)
9218 ("python-pillow" ,python-pillow)
9219 ("python-pyfavicon" ,python-pyfavicon)
9220 ("python-pygobject" ,python-pygobject)
9221 ("python-pyotp" ,python-pyotp)
9222 ("python-pyzbar" ,python-pyzbar)
9223 ("yoyo-migrations" ,yoyo-migrations)
9224 ("zbar" ,zbar)))
9225 (home-page "https://gitlab.gnome.org/World/Authenticator/")
9226 (synopsis "Two-factor authentication application built for GNOME")
9227 (description
9228 "Authenticator is a two-factor authentication (2FA) application built for
9229 the GNOME desktop environment.
9230
9231 Features:
9232
9233 @itemize
9234 @item QR code scanner
9235 @item Beautiful UI
9236 @item Huge database of more than 560 supported services
9237 @item Keep your PIN tokens secure by locking the application with a password
9238 @item Automatically fetch an image for services using their favicon
9239 @item The possibility to add new services
9240 @end itemize")
9241 (license license:gpl3+)))
9242
9243 (define-public gsound
9244 (package
9245 (name "gsound")
9246 (version "1.0.2")
9247 (source (origin
9248 (method url-fetch)
9249 (uri (string-append "mirror://gnome/sources/" name "/"
9250 (version-major+minor version) "/"
9251 name "-" version ".tar.xz"))
9252 (sha256
9253 (base32
9254 "0lwfwx2c99qrp08pfaj59pks5dphsnxjgrxyadz065d8xqqgza5v"))))
9255 (build-system glib-or-gtk-build-system)
9256 (native-inputs
9257 `(("pkg-config" ,pkg-config)
9258 ("gobject-introspection" ,gobject-introspection)
9259 ("vala" ,vala)))
9260 (inputs
9261 `(("glib" ,glib)
9262 ("libcanberra" ,libcanberra)))
9263 (home-page "https://wiki.gnome.org/Projects/GSound")
9264 (synopsis "GObject wrapper for libcanberra")
9265 (description
9266 "GSound is a small library for playing system sounds. It's designed to be
9267 used via GObject Introspection, and is a thin wrapper around the libcanberra C
9268 library.")
9269 (license license:lgpl2.1+)))
9270
9271 (define-public libzapojit
9272 (package
9273 (name "libzapojit")
9274 (version "0.0.3")
9275 (source (origin
9276 (method url-fetch)
9277 (uri (string-append "mirror://gnome/sources/" name "/"
9278 (version-major+minor version) "/"
9279 name "-" version ".tar.xz"))
9280 (sha256
9281 (base32
9282 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
9283 (build-system gnu-build-system)
9284 (native-inputs
9285 `(("gobject-introspection" ,gobject-introspection)
9286 ("intltool" ,intltool)
9287 ("pkg-config" ,pkg-config)))
9288 (inputs
9289 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9290 ("json-glib" ,json-glib)
9291 ("rest" ,rest)))
9292 (home-page "https://wiki.gnome.org/Projects/Zapojit")
9293 (synopsis "Library for accessing SkyDrive and Hotmail")
9294 (description
9295 "Libzapojit is a GLib-based library for accessing online service APIs of
9296 Microsoft SkyDrive and Hotmail, using their REST protocols.")
9297 (license license:lgpl2.1+)))
9298
9299 (define-public gnome-clocks
9300 (package
9301 (name "gnome-clocks")
9302 (version "3.34.0")
9303 (source (origin
9304 (method url-fetch)
9305 (uri (string-append "mirror://gnome/sources/" name "/"
9306 (version-major+minor version) "/"
9307 name "-" version ".tar.xz"))
9308 (sha256
9309 (base32
9310 "0g7hjk55smhkd09hwa9kag3h5a12l494wj89w9smpdk3ghsmy6b1"))))
9311 (build-system meson-build-system)
9312 (arguments
9313 '(#:glib-or-gtk? #t
9314 #:phases
9315 (modify-phases %standard-phases
9316 (add-after 'unpack 'skip-gtk-update-icon-cache
9317 ;; Don't create 'icon-theme.cache'.
9318 (lambda _
9319 (substitute* "build-aux/post-install.py"
9320 (("gtk-update-icon-cache") "true"))
9321 #t)))))
9322 (native-inputs
9323 `(("vala" ,vala)
9324 ("pkg-config" ,pkg-config)
9325 ("glib" ,glib "bin") ; for glib-compile-resources
9326 ("desktop-file-utils" ,desktop-file-utils)
9327 ("gettext" ,gettext-minimal)
9328 ("itstool" ,itstool)))
9329 (inputs
9330 `(("glib" ,glib)
9331 ("gtk+" ,gtk+)
9332 ("gsound" ,gsound)
9333 ("geoclue" ,geoclue)
9334 ("geocode-glib" ,geocode-glib)
9335 ("libgweather" ,libgweather)
9336 ("gnome-desktop" ,gnome-desktop)))
9337 (home-page "https://wiki.gnome.org/Apps/Clocks")
9338 (synopsis "GNOME's clock application")
9339 (description
9340 "GNOME Clocks is a simple clocks application designed to fit the GNOME
9341 desktop. It supports world clock, stop watch, alarms, and count down timer.")
9342 (license license:gpl3+)))
9343
9344 (define-public gnome-calendar
9345 (package
9346 (name "gnome-calendar")
9347 (version "3.34.2")
9348 (source (origin
9349 (method url-fetch)
9350 (uri (string-append "mirror://gnome/sources/" name "/"
9351 (version-major+minor version) "/"
9352 name "-" version ".tar.xz"))
9353 (sha256
9354 (base32
9355 "1bnmd191044zn2kr6f5vg7sm5q59qf7z652awll1f7s6ahijr8rw"))))
9356 (build-system meson-build-system)
9357 (arguments
9358 '(#:glib-or-gtk? #t
9359 ;; gnome-calendar has to be installed before the tests can be run
9360 ;; https://bugzilla.gnome.org/show_bug.cgi?id=788224
9361 #:tests? #f
9362 #:phases
9363 (modify-phases %standard-phases
9364 (add-after 'unpack 'skip-gtk-update-icon-cache
9365 ;; Don't create 'icon-theme.cache'.
9366 (lambda _
9367 (substitute* "build-aux/meson/meson_post_install.py"
9368 (("gtk-update-icon-cache") "true"))
9369 #t)))))
9370 (native-inputs
9371 `(("gettext" ,gettext-minimal)
9372 ("glib-bin" ,glib "bin") ; For glib-compile-schemas
9373 ("pkg-config" ,pkg-config)))
9374 (inputs
9375 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9376 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9377 ("libdazzle" ,libdazzle)
9378 ("libedataserverui" ,evolution-data-server)
9379 ("libgweather" ,libgweather)
9380 ("geoclue" ,geoclue)))
9381 (propagated-inputs
9382 `(("evolution-data-server" ,evolution-data-server)))
9383 (home-page "https://wiki.gnome.org/Apps/Calendar")
9384 (synopsis "GNOME's calendar application")
9385 (description
9386 "GNOME Calendar is a simple calendar application designed to fit the GNOME
9387 desktop. It supports multiple calendars, month, week and year view.")
9388 (license license:gpl3+)))
9389
9390 (define-public gnome-todo
9391 (package
9392 (name "gnome-todo")
9393 (version "3.28.1")
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 "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"))
9402 (patches
9403 (search-patches "gnome-todo-delete-esource-duplicate.patch"))))
9404 (build-system meson-build-system)
9405 (arguments
9406 '(#:glib-or-gtk? #t
9407 #:phases (modify-phases %standard-phases
9408 (add-after
9409 'install 'wrap-gnome-todo
9410 (lambda* (#:key inputs outputs #:allow-other-keys)
9411 (let ((out (assoc-ref outputs "out"))
9412 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
9413 (python-path (getenv "PYTHONPATH")))
9414 (wrap-program (string-append out "/bin/gnome-todo")
9415 ;; XXX: gi plugins are broken.
9416 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=787212
9417 ;; For plugins.
9418 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
9419 `("PYTHONPATH" ":" prefix (,python-path))))
9420 #t)))))
9421 (native-inputs
9422 `(("gettext" ,gettext-minimal)
9423 ("gobject-introspection" ,gobject-introspection)
9424 ("glib:bin" ,glib "bin") ; For glib-compile-resources
9425 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
9426 ("pkg-config" ,pkg-config)))
9427 (inputs
9428 `(("rest" ,rest) ; For Todoist plugin
9429 ("json-glib" ,json-glib) ; For Todoist plugin
9430 ("libedataserverui" ,evolution-data-server)
9431 ("libical" ,libical)
9432 ("libpeas" ,libpeas)
9433 ("python-pygobject" ,python-pygobject)
9434 ("evolution-data-server" ,evolution-data-server)
9435 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9436 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
9437 (home-page "https://wiki.gnome.org/Apps/Todo")
9438 (synopsis "GNOME's ToDo Application")
9439 (description
9440 "GNOME To Do is a simplistic personal task manager designed to perfectly
9441 fit the GNOME desktop.")
9442 (license license:gpl3+)))
9443
9444 (define-public gnome-dictionary
9445 (package
9446 (name "gnome-dictionary")
9447 (version "3.26.1")
9448 (source (origin
9449 (method url-fetch)
9450 (uri (string-append "mirror://gnome/sources/" name "/"
9451 (version-major+minor version) "/"
9452 name "-" version ".tar.xz"))
9453 (sha256
9454 (base32
9455 "007k2bq8iplg4psdpz074r5d4zxvn4s95qym4rw9hs6giljbrf0n"))))
9456 (build-system meson-build-system)
9457 (arguments '(#:glib-or-gtk? #t
9458 #:phases (modify-phases %standard-phases
9459 (add-after 'unpack 'patch-install-script
9460 (lambda _
9461 ;; This script attempts to compile glib schemas
9462 ;; and create an empty MIME database. We do
9463 ;; that elsewhere, so prevent it from running.
9464 (substitute* "build-aux/post-install.sh"
9465 (("\\[ -z \"\\$DESTDIR\" \\]") "false"))
9466 #t)))))
9467 (native-inputs
9468 `(("glib:bin" ,glib "bin")
9469 ("gobject-introspection" ,gobject-introspection)
9470 ("intltool" ,intltool)
9471 ("itstool" ,itstool)
9472 ("pkg-config" ,pkg-config)
9473 ("xmllint" ,libxml2)))
9474 (inputs
9475 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9476 ("gtk+" ,gtk+)))
9477 (home-page "https://wiki.gnome.org/Apps/Dictionary")
9478 (synopsis "Look up words in dictionary sources")
9479 (description
9480 "GNOME Dictionary can look for the definition or translation of a word in
9481 existing databases over the internet.")
9482 (license license:gpl3+)))
9483
9484 (define-public gnome-tweaks
9485 (package
9486 (name "gnome-tweaks")
9487 (version "3.34.1")
9488 (source (origin
9489 (method url-fetch)
9490 (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
9491 (version-major+minor version) "/"
9492 "gnome-tweaks-" version ".tar.xz"))
9493 (patches
9494 (list (search-patch "gnome-tweaks-search-paths.patch")))
9495 (sha256
9496 (base32
9497 "19y62dj4n5i6v4zpjllxl51dch6ndy8xs45v5aqmmq9xyfrqk5yq"))))
9498 (build-system meson-build-system)
9499 (arguments
9500 `(#:glib-or-gtk? #t
9501 #:configure-flags '("-Dlocalstatedir=/tmp"
9502 "-Dsysconfdir=/tmp")
9503 #:imported-modules ((guix build python-build-system)
9504 ,@%meson-build-system-modules)
9505 #:phases
9506 (modify-phases %standard-phases
9507 (add-after 'unpack 'skip-gtk-update-icon-cache
9508 ;; Don't create 'icon-theme.cache'.
9509 (lambda _
9510 (substitute* "meson-postinstall.py"
9511 (("gtk-update-icon-cache") "true"))
9512 #t))
9513 (add-after 'install 'wrap
9514 (@@ (guix build python-build-system) wrap))
9515 (add-after 'wrap 'wrap-gi-typelib
9516 (lambda* (#:key inputs outputs #:allow-other-keys)
9517 (let ((out (assoc-ref outputs "out"))
9518 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
9519 (wrap-program (string-append out "/bin/gnome-tweaks")
9520 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
9521 #t)))))
9522 (native-inputs
9523 `(("intltool" ,intltool)
9524 ("pkg-config" ,pkg-config)))
9525 (inputs
9526 `(("gnome-desktop" ,gnome-desktop)
9527 ("gtk+" ,gtk+)
9528 ("gobject-introspection" ,gobject-introspection)
9529 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9530 ("libhandy" ,libhandy-0.0)
9531 ("libnotify" ,libnotify)
9532 ("libsoup" ,libsoup)
9533 ("nautilus" ,nautilus)
9534 ("python" ,python)
9535 ("python-pygobject" ,python-pygobject)))
9536 (synopsis "Customize advanced GNOME 3 options")
9537 (home-page "https://wiki.gnome.org/Apps/Tweaks")
9538 (description
9539 "GNOME Tweaks allows adjusting advanced configuration settings in
9540 GNOME 3. This includes things like the fonts used in user interface elements,
9541 alternative user interface themes, changes in window management behavior,
9542 GNOME Shell appearance and extension, etc.")
9543 (license license:gpl3+)))
9544
9545 (define-public gnome-shell-extensions
9546 (package
9547 (name "gnome-shell-extensions")
9548 (version "3.34.2")
9549 (source (origin
9550 (method url-fetch)
9551 (uri (string-append "mirror://gnome/sources/" name "/"
9552 (version-major+minor version) "/"
9553 name "-" version ".tar.xz"))
9554 (sha256
9555 (base32
9556 "1f5l35l3kdkzrv49xmg1sh11vwmgjbg7hx3gb91i39bfl1snxqd1"))))
9557 (build-system meson-build-system)
9558 (arguments
9559 '(#:configure-flags '("-Dextension_set=all")))
9560 (native-inputs
9561 `(("glib:bin" ,glib "bin")
9562 ("intltool" ,intltool)
9563 ("pkg-config" ,pkg-config)))
9564 (propagated-inputs
9565 `(("glib" ,glib)))
9566 (synopsis "Extensions for GNOME Shell")
9567 (description "GNOME Shell extensions modify and extend GNOME Shell
9568 functionality and behavior.")
9569 (home-page "https://extensions.gnome.org/")
9570 (license license:gpl3+)))
9571
9572 (define-public arc-theme
9573 (package
9574 (name "arc-theme")
9575 (version "20201013")
9576 (source (origin
9577 (method git-fetch)
9578 (uri (git-reference
9579 (url "https://github.com/jnsh/arc-theme")
9580 (commit version)))
9581 (file-name (git-file-name name version))
9582 (sha256
9583 (base32
9584 "1x2l1mwjx68dwf3jb1i90c1q8nqsl1wf2zggcn8im6590k5yv39s"))))
9585 (build-system gnu-build-system)
9586 (arguments
9587 '(#:configure-flags
9588 (list "--disable-cinnamon")
9589 #:phases
9590 (modify-phases %standard-phases
9591 ;; autogen.sh calls configure at the end of the script.
9592 (replace 'bootstrap
9593 (lambda _ (invoke "autoreconf" "-vfi")))
9594 (add-before 'build 'set-home ;placate Inkscape
9595 (lambda _
9596 (setenv "HOME" (getcwd))
9597 #t)))))
9598 (native-inputs
9599 `(("autoconf" ,autoconf)
9600 ("automake" ,automake)
9601 ("glib" ,glib "bin") ; for glib-compile-resources
9602 ("gnome-shell" ,gnome-shell)
9603 ("gtk+" ,gtk+)
9604 ("inkscape" ,inkscape)
9605 ("optipng" ,optipng)
9606 ("pkg-config" ,pkg-config)
9607 ("sassc" ,sassc/libsass-3.5)))
9608 (synopsis "A flat GTK+ theme with transparent elements")
9609 (description "Arc is a flat theme with transparent elements for GTK 3, GTK
9610 2, and GNOME Shell which supports GTK 3 and GTK 2 based desktop environments
9611 like GNOME, Unity, Budgie, Pantheon, XFCE, Mate, etc.")
9612 (home-page "https://github.com/horst3180/arc-theme")
9613 ;; No "or later" language found.
9614 (license license:gpl3+)))
9615
9616 (define-public faba-icon-theme
9617 (package
9618 (name "faba-icon-theme")
9619 (version "4.3")
9620 (source
9621 (origin
9622 (method git-fetch)
9623 (uri (git-reference
9624 (url "https://github.com/snwh/faba-icon-theme")
9625 (commit (string-append "v" version))))
9626 (file-name (git-file-name name version))
9627 (sha256
9628 (base32 "0xh6ppr73p76z60ym49b4d0liwdc96w41cc5p07d48hxjsa6qd6n"))))
9629 (build-system meson-build-system)
9630 (arguments
9631 `(#:phases
9632 (modify-phases %standard-phases
9633 (add-before 'configure 'disable-post-install
9634 (lambda _
9635 (substitute* "meson.build"
9636 (("meson.add_install_script.*") "")))))))
9637 (native-inputs
9638 `(("autoconf" ,autoconf)
9639 ("automake" ,automake)))
9640 (synopsis "Faba icon theme")
9641 (description
9642 "Faba is a minimal icon set used as a basis for other themes such as
9643 Moka")
9644 (home-page "https://snwh.org/moka")
9645 (license (list license:lgpl3+
9646 license:cc-by-sa4.0))))
9647
9648 (define-public moka-icon-theme
9649 (package
9650 (inherit faba-icon-theme)
9651 (name "moka-icon-theme")
9652 (version "5.4.0")
9653 (source
9654 (origin
9655 (method git-fetch)
9656 (uri (git-reference
9657 (url "https://github.com/snwh/moka-icon-theme")
9658 (commit (string-append "v" version))))
9659 (file-name (git-file-name name version))
9660 (sha256
9661 (base32 "015l02im4mha5z91dbchxf6xkp66d346bg3xskwg0rh3lglhjsrd"))))
9662 (propagated-inputs
9663 ;; Moka is based on Faba by using it as a fallback icon set instead of
9664 ;; bundling it, so we need to add it as a propagated input.
9665 `(("faba-icon-theme" ,faba-icon-theme)))
9666 (synopsis "Moka icon theme")
9667 (description "Moka is a stylized desktop icon set, designed to be clear,
9668 simple and consistent.")
9669 (license (list license:gpl3+
9670 license:cc-by-sa4.0))))
9671
9672 (define-public arc-icon-theme
9673 (package
9674 (name "arc-icon-theme")
9675 (version "20161122")
9676 (source
9677 (origin
9678 (method git-fetch)
9679 (uri (git-reference
9680 (url "https://github.com/horst3180/arc-icon-theme")
9681 (commit version)))
9682 (file-name (git-file-name name version))
9683 (sha256
9684 (base32 "1ch3hp08qri93510hypzz6m2x4xgg2h15wvnhjwh1x1s1b7jvxjd"))))
9685 (build-system gnu-build-system)
9686 (arguments
9687 `(#:phases
9688 (modify-phases %standard-phases
9689 (add-after 'unpack 'disable-configure-during-bootstrap
9690 (lambda _
9691 (substitute* "autogen.sh"
9692 (("^\"\\$srcdir/configure\".*") ""))
9693 #t)))))
9694 (native-inputs
9695 `(("autoconf" ,autoconf)
9696 ("automake" ,automake)))
9697 ;; When Arc is missing an icon, it looks in the Moka icon theme for it.
9698 (propagated-inputs
9699 `(("moka-icon-theme" ,moka-icon-theme)))
9700 (synopsis "Arc icon theme")
9701 (description "The Arc icon theme provides a set of icons matching the
9702 style of the Arc GTK theme. Icons missing from the Arc theme are provided by
9703 the Moka icon theme.")
9704 (home-page "https://github.com/horst3180/arc-icon-theme")
9705 (license license:gpl3+)))
9706
9707 (define-public folks
9708 (package
9709 (name "folks")
9710 (version "0.13.1")
9711 (source (origin
9712 (method url-fetch)
9713 (uri (string-append
9714 "mirror://gnome/sources/folks/"
9715 (version-major+minor version) "/"
9716 "folks-" version ".tar.xz"))
9717 (sha256
9718 (base32
9719 "0pda8sx4ap3lyri5fdrnakl29la1zkhwlc9bmnp13qigp1iwdw9x"))))
9720 (build-system meson-build-system)
9721 (arguments
9722 '(#:phases
9723 (modify-phases %standard-phases
9724 (add-after 'unpack 'skip-gtk-update-icon-cache
9725 ;; Don't create 'icon-theme.cache'.
9726 (lambda _
9727 (substitute* "meson_post_install.py"
9728 (("gtk-update-icon-cache") "true"))
9729 #t)))))
9730 (inputs
9731 `(("bdb" ,bdb)
9732 ("dbus-glib" ,dbus-glib)
9733 ("evolution-data-server" ,evolution-data-server)
9734 ("glib" ,glib)
9735 ("libgee" ,libgee)
9736 ("readline" ,readline)
9737 ("telepathy-glib" ,telepathy-glib)))
9738 (native-inputs
9739 `(("glib:bin" ,glib "bin")
9740 ("gobject-introspection" ,gobject-introspection)
9741 ("intltool" ,intltool)
9742 ("pkg-config" ,pkg-config)
9743 ("vala" ,vala)))
9744 (synopsis "Library to aggregate data about people")
9745 (description "Libfolks is a library that aggregates information about people
9746 from multiple sources (e.g., Telepathy connection managers for IM contacts,
9747 Evolution Data Server for local contacts, libsocialweb for web service contacts,
9748 etc.) to create metacontacts. It's written in Vala, which generates C code when
9749 compiled.")
9750 (home-page "https://wiki.gnome.org/Projects/Folks")
9751 (license license:lgpl2.1+)))
9752
9753 (define-public gfbgraph
9754 (package
9755 (name "gfbgraph")
9756 (version "0.2.4")
9757 (source (origin
9758 (method url-fetch)
9759 (uri (string-append
9760 "mirror://gnome/sources/gfbgraph/"
9761 (version-major+minor version) "/"
9762 "gfbgraph-" version ".tar.xz"))
9763 (sha256
9764 (base32
9765 "0yck7dwvjk16a52nafjpi0a39rxwmg0w833brj45acz76lgkjrb0"))))
9766 (build-system glib-or-gtk-build-system)
9767 (arguments
9768 `(#:tests? #f ; tests appear to require the network
9769 #:configure-flags '("--disable-static"
9770 "--enable-gtk-doc"
9771 "--enable-introspection")))
9772 (native-inputs
9773 `(("gobject-introspection" ,gobject-introspection)
9774 ("gtk-doc" ,gtk-doc)
9775 ("pkg-config" ,pkg-config)
9776
9777 ;; The 0.2.4 ‘release’ tarball isn't bootstrapped.
9778 ("autoconf" ,autoconf)
9779 ("automake" ,automake)
9780 ("libtool" ,libtool)
9781 ("which" ,which)))
9782 (inputs
9783 `(("json-glib" ,json-glib)
9784 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9785 ("rest" ,rest)))
9786 (synopsis "GLib/GObject wrapper for the Facebook API")
9787 (description "This library allows you to use the Facebook API from
9788 GLib/GObject code.")
9789 (home-page "https://wiki.gnome.org/Projects/GFBGraph")
9790 (license license:lgpl2.1+)))
9791
9792 (define-public libgnomekbd
9793 (package
9794 (name "libgnomekbd")
9795 (version "3.26.1")
9796 (source (origin
9797 (method url-fetch)
9798 (uri (string-append "mirror://gnome/sources/libgnomekbd/"
9799 (version-major+minor version) "/"
9800 "libgnomekbd-" version ".tar.xz"))
9801 (sha256
9802 (base32
9803 "0y962ykn3rr9gylj0pwpww7bi20lmhvsw6qvxs5bisbn2mih5jpp"))))
9804 (build-system gnu-build-system)
9805 (native-inputs
9806 `(("pkg-config" ,pkg-config)
9807 ("glib" ,glib "bin")
9808 ("intltool" ,intltool)))
9809 (propagated-inputs
9810 ;; Referred to in .h files and .pc.
9811 `(("glib" ,glib)
9812 ("gtk+" ,gtk+)
9813 ("libxklavier" ,libxklavier)))
9814 (home-page "https://www.gnome.org")
9815 (synopsis "GNOME keyboard configuration library")
9816 (description
9817 "Libgnomekbd is a keyboard configuration library for the GNOME desktop
9818 environment, which can notably display keyboard layouts.")
9819 (license license:lgpl2.0+)))
9820
9821 ;;; This package is no longer maintained:
9822 ;;; https://wiki.gnome.org/Attic/LibUnique
9823 ;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
9824 ;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
9825 (define-public libunique
9826 (package
9827 (name "libunique")
9828 (version "3.0.2")
9829 (source (origin
9830 (method url-fetch)
9831 (uri (string-append "mirror://gnome/sources/" name "/"
9832 (version-major+minor version) "/"
9833 name "-" version ".tar.xz"))
9834 (sha256
9835 (base32
9836 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
9837 (build-system glib-or-gtk-build-system)
9838 (arguments
9839 `(#:configure-flags '("--disable-static"
9840 "--disable-dbus" ; use gdbus
9841 "--enable-introspection")))
9842 (native-inputs
9843 `(("pkg-config" ,pkg-config)
9844 ("gobject-introspection" ,gobject-introspection)
9845 ("glib:bin" ,glib "bin")
9846 ("gtk-doc" ,gtk-doc)))
9847 (propagated-inputs
9848 ;; Referred to in .h files and .pc.
9849 `(("gtk+" ,gtk+)))
9850 (home-page "https://wiki.gnome.org/Attic/LibUnique")
9851 (synopsis "Library for writing single instance applications")
9852 (description
9853 "Libunique is a library for writing single instance applications. If you
9854 launch a single instance application twice, the second instance will either just
9855 quit or will send a message to the running instance. Libunique makes it easy to
9856 write this kind of application, by providing a base class, taking care of all
9857 the IPC machinery needed to send messages to a running instance, and also
9858 handling the startup notification side.")
9859 (license license:lgpl2.1+)))
9860
9861 (define-public gnome-calculator
9862 (package
9863 (name "gnome-calculator")
9864 (version "3.34.1")
9865 (source
9866 (origin
9867 (method url-fetch)
9868 (uri (string-append "mirror://gnome/sources/" name "/"
9869 (version-major+minor version) "/"
9870 name "-" version ".tar.xz"))
9871 (sha256
9872 (base32
9873 "0lbh87255zzggqzai6543qg920y52bl4vs5m5h5087ghzg14hlsd"))))
9874 (build-system meson-build-system)
9875 (arguments '(#:glib-or-gtk? #t))
9876 (native-inputs
9877 `(("gettext" ,gettext-minimal)
9878 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
9879 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
9880 ("itstool" ,itstool)
9881 ("vala" ,vala)
9882 ("pkg-config" ,pkg-config)))
9883 (inputs
9884 `(("glib" ,glib)
9885 ("gtksourceview" ,gtksourceview)
9886 ("libgee" ,libgee)
9887 ("libsoup" ,libsoup)
9888 ("libxml2" ,libxml2)
9889 ("mpc" ,mpc)
9890 ("mpfr" ,mpfr)))
9891 (home-page "https://wiki.gnome.org/Apps/Calculator")
9892 (synopsis "Desktop calculator")
9893 (description
9894 "Calculator is an application that solves mathematical equations and
9895 is suitable as a default application in a Desktop environment.")
9896 (license license:gpl3)))
9897
9898 (define-public xpad
9899 (package
9900 (name "xpad")
9901 (version "5.1.0")
9902 (source
9903 (origin
9904 (method url-fetch)
9905 (uri (string-append "https://launchpad.net/xpad/trunk/"
9906 version "/+download/"
9907 name "-" version ".tar.bz2"))
9908 (sha256
9909 (base32
9910 "0l0g5x8g6dwhf5ksnqqrjjsycy57kcvdslkmsr6bl3vrsjd7qml3"))))
9911 (build-system gnu-build-system)
9912 (native-inputs
9913 `(("autoconf" ,autoconf)
9914 ("automake" ,automake)
9915 ("gtk+:bin" ,gtk+ "bin")
9916 ("intltool" ,intltool)
9917 ("pkg-config" ,pkg-config)))
9918 (inputs
9919 `(("gtksourceview" ,gtksourceview-3)
9920 ("libsm" ,libsm)))
9921 (home-page "https://wiki.gnome.org/Apps/Xpad")
9922 (synopsis "Virtual sticky note")
9923 (description
9924 "Xpad is a sticky note that strives to be simple, fault tolerant,
9925 and customizable. Xpad consists of independent pad windows, each is
9926 basically a text box in which notes can be written.")
9927 (license license:gpl3+)))
9928
9929 (define-public gucharmap
9930 (let ((unicode-files
9931 '(("Blocks.txt"
9932 "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1")
9933 ("DerivedAge.txt"
9934 "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6")
9935 ("NamesList.txt"
9936 "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61")
9937 ("Scripts.txt"
9938 "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx")
9939 ("UnicodeData.txt"
9940 "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap")
9941 ("Unihan.zip"
9942 "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"))))
9943 (package
9944 (name "gucharmap")
9945 (version "12.0.1")
9946 (source
9947 (origin
9948 (method url-fetch)
9949 (uri (string-append "mirror://gnome/sources/" name "/"
9950 (version-major+minor version) "/"
9951 name "-" version ".tar.xz"))
9952 (sha256
9953 (base32
9954 "0m915hm2b2d6r3vs1l80rqpssvg78pv8j6nv54yg62kzknnqmpir"))))
9955 (build-system glib-or-gtk-build-system)
9956 (arguments
9957 `(#:modules ((ice-9 match)
9958 (guix build glib-or-gtk-build-system)
9959 (guix build utils))
9960 #:configure-flags
9961 (list "--with-unicode-data=../unicode-data")
9962 #:phases
9963 (modify-phases %standard-phases
9964 (add-after 'unpack 'prepare-unicode-data
9965 (lambda* (#:key inputs #:allow-other-keys)
9966 (mkdir-p "../unicode-data")
9967 (with-directory-excursion "../unicode-data"
9968 (for-each (match-lambda
9969 ((file _)
9970 (install-file (assoc-ref inputs file) ".")))
9971 ',unicode-files))
9972 #t)))))
9973 (native-inputs
9974 `(("desktop-file-utils" ,desktop-file-utils)
9975 ("glib:bin" ,glib "bin") ; for glib-compile-resources.
9976 ("gobject-introspection" ,gobject-introspection)
9977 ("intltool" ,intltool)
9978 ("itstool" ,itstool)
9979 ("pkg-config" ,pkg-config)
9980 ,@(map (match-lambda
9981 ((file hash)
9982 `(,file
9983 ,(origin
9984 (method url-fetch)
9985 (uri (string-append
9986 "http://www.unicode.org/Public/12.0.0/ucd/"
9987 file))
9988 (sha256 (base32 hash))))))
9989 unicode-files)
9990 ("unzip" ,unzip)))
9991 (inputs
9992 `(("gtk+" ,gtk+)
9993 ("xmllint" ,libxml2)))
9994 (home-page "https://wiki.gnome.org/Apps/Gucharmap")
9995 (synopsis "Unicode character picker and font browser")
9996 (description
9997 "This program allows you to browse through all the available Unicode
9998 characters and categories for the installed fonts, and to examine their
9999 detailed properties. It is an easy way to find the character you might
10000 only know by its Unicode name or code point.")
10001 (license license:gpl3+))))
10002
10003 (define-public bluefish
10004 (package
10005 (name "bluefish")
10006 (version "2.2.12")
10007 (source
10008 (origin
10009 (method url-fetch)
10010 (uri (string-append "https://www.bennewitz.com/bluefish/stable/source/"
10011 "bluefish-" version ".tar.gz"))
10012 (sha256
10013 (base32 "09hgxq139kbkjda5y073lqhq1z1x7cx0j80jh77afrqa3y9c53wl"))))
10014 (build-system gnu-build-system)
10015 (native-inputs
10016 `(("desktop-file-utils" ,desktop-file-utils)
10017 ("intltool" ,intltool)
10018 ("pkg-config" ,pkg-config)))
10019 (inputs
10020 `(("enchant" ,enchant)
10021 ("gtk+" ,gtk+)
10022 ("python" ,python-wrapper)
10023 ("xmllint" ,libxml2)
10024 ("gucharmap" ,gucharmap)))
10025 (home-page "http://bluefish.openoffice.nl")
10026 (synopsis "Web development studio")
10027 (description
10028 "Bluefish is an editor aimed at programmers and web developers,
10029 with many options to write web sites, scripts and other code.
10030 Bluefish supports many programming and markup languages.")
10031 (license license:gpl3+)))
10032
10033 (define-public gnome-system-monitor
10034 (package
10035 (name "gnome-system-monitor")
10036 (version "3.32.1")
10037 (source
10038 (origin
10039 (method url-fetch)
10040 (uri (string-append "mirror://gnome/sources/" name "/"
10041 (version-major+minor version) "/"
10042 name "-" version ".tar.xz"))
10043 (sha256
10044 (base32
10045 "1wd43qdgjav6xamq5z5cy8fri5zr01jga3plc9w95gcia0rk3ha8"))))
10046 (build-system meson-build-system)
10047 (arguments
10048 '(#:glib-or-gtk? #t
10049 #:configure-flags '("-Dsystemd=false")))
10050 (native-inputs
10051 `(("glib:bin" ,glib "bin") ; for glib-mkenums.
10052 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
10053 ("intltool" ,intltool)
10054 ("itstool" ,itstool)
10055 ("libgtop" ,libgtop)
10056 ("polkit" ,polkit)
10057 ("pkg-config" ,pkg-config)))
10058 (inputs
10059 `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
10060 ("gtk+" ,gtk+)
10061 ("gtkmm" ,gtkmm)
10062 ("librsvg" ,librsvg)
10063 ("libxml2" ,libxml2)
10064 ("libwnck" ,libwnck)))
10065 (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
10066 (synopsis "Process viewer and system resource monitor for GNOME")
10067 (description
10068 "GNOME System Monitor is a GNOME process viewer and system monitor with
10069 an attractive, easy-to-use interface. It has features, such as a tree view
10070 for process dependencies, icons for processes, the ability to hide processes,
10071 graphical time histories of CPU/memory/swap usage and the ability to
10072 kill/reinice processes.")
10073 (license license:gpl2+)))
10074
10075 (define-public python-pyatspi
10076 (package
10077 (name "python-pyatspi")
10078 (version "2.34.0")
10079 (source (origin
10080 (method url-fetch)
10081 (uri (string-append
10082 "mirror://gnome/sources/pyatspi/"
10083 (version-major+minor version)
10084 "/pyatspi-" version ".tar.xz"))
10085 (sha256
10086 (base32
10087 "0j3f75j0zd6ca8msg7yr19qsfirqkn9fk8pqbjnlhqrpri455g4p"))))
10088 (build-system gnu-build-system)
10089 (arguments
10090 `(#:phases
10091 (modify-phases %standard-phases
10092 (add-before 'build 'fix-atk-load
10093 (lambda _
10094 (substitute* "pyatspi/__init__.py"
10095 (("from gi.repository import Atspi")
10096 "gi.require_version('Gtk', '3.0')
10097 from gi.repository import Gtk
10098 from gi.repository import Atspi"))
10099 #t)))))
10100 (native-inputs
10101 `(("pkg-config" ,pkg-config)))
10102 (inputs
10103 `(("python" ,python)))
10104 (propagated-inputs
10105 `(("python-pygobject" ,python-pygobject)))
10106 (synopsis "Python client bindings for D-Bus AT-SPI")
10107 (home-page "https://wiki.linuxfoundation.org/accessibility\
10108 /atk/at-spi/at-spi_on_d-bus")
10109 (description
10110 "This package includes a python client library for the AT-SPI D-Bus
10111 accessibility infrastructure.")
10112 (license license:lgpl2.0)
10113 (properties '((upstream-name . "pyatspi")))))
10114
10115 (define-public python2-pyatspi
10116 (package
10117 (inherit python-pyatspi)
10118 (name "python2-pyatspi")
10119 (inputs
10120 `(("python" ,python-2)))
10121 (propagated-inputs
10122 `(("python-pygobject" ,python2-pygobject)))))
10123
10124 (define-public orca
10125 (package
10126 (name "orca")
10127 (version "3.34.1")
10128 (source (origin
10129 (method url-fetch)
10130 (uri (string-append
10131 "mirror://gnome/sources/" name "/"
10132 (version-major+minor version) "/"
10133 name "-" version ".tar.xz"))
10134 (sha256
10135 (base32
10136 "1q38n7hyshkiszmn361skxjynxr31lcms7a1iny6d0zlpmh1vnk4"))))
10137 (build-system glib-or-gtk-build-system)
10138 (arguments
10139 '(#:phases
10140 (modify-phases %standard-phases
10141 (add-before 'configure 'qualify-xkbcomp
10142 (lambda* (#:key inputs #:allow-other-keys)
10143 (let ((xkbcomp (string-append
10144 (assoc-ref inputs "xkbcomp") "/bin/xkbcomp")))
10145 (substitute* "src/orca/orca.py"
10146 (("'xkbcomp'") (format #f "'~a'" xkbcomp))))
10147 #t))
10148 (add-after 'install 'wrap-orca
10149 (lambda* (#:key outputs #:allow-other-keys)
10150 (let* ((out (assoc-ref outputs "out"))
10151 (prog (string-append out "/bin/orca")))
10152 (wrap-program prog
10153 `("GI_TYPELIB_PATH" ":" prefix
10154 (,(getenv "GI_TYPELIB_PATH")))
10155 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
10156 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
10157 `("PYTHONPATH" ":" prefix
10158 (,(getenv "PYTHONPATH")))))
10159 #t)))))
10160 (native-inputs
10161 `(("intltool" ,intltool)
10162 ("itstool" ,itstool)
10163 ("pkg-config" ,pkg-config)
10164 ("xmllint" ,libxml2)))
10165 (inputs
10166 `(("at-spi2-atk" ,at-spi2-atk)
10167 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10168 ("gstreamer" ,gstreamer)
10169 ("gst-plugins-base" ,gst-plugins-base)
10170 ("gst-plugins-good" ,gst-plugins-good)
10171 ("gtk+" ,gtk+)
10172 ("python" ,python)
10173 ("python-pygobject" ,python-pygobject)
10174 ("python-pyatspi" ,python-pyatspi)
10175 ("python-speechd" ,speech-dispatcher)
10176 ("xkbcomp" ,xkbcomp)))
10177 (synopsis
10178 "Screen reader for individuals who are blind or visually impaired")
10179 (home-page "https://wiki.gnome.org/Projects/Orca")
10180 (description
10181 "Orca is a screen reader that provides access to the graphical desktop
10182 via speech and refreshable braille. Orca works with applications and toolkits
10183 that support the Assistive Technology Service Provider Interface (AT-SPI).")
10184 (license license:lgpl2.1+)))
10185
10186 (define-public gspell
10187 (package
10188 (name "gspell")
10189 (version "1.8.2")
10190 (source (origin
10191 (method url-fetch)
10192 (uri (string-append "mirror://gnome/sources/" name "/"
10193 (version-major+minor version) "/"
10194 name "-" version ".tar.xz"))
10195 (sha256
10196 (base32
10197 "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
10198 (patches (search-patches "gspell-dash-test.patch"))))
10199 (build-system glib-or-gtk-build-system)
10200 (arguments
10201 '(#:configure-flags (list "--enable-vala")
10202 #:phases
10203 (modify-phases %standard-phases
10204 (add-before 'check 'pre-check
10205 (lambda* (#:key inputs #:allow-other-keys)
10206 ;; Tests require a running X server.
10207 (system "Xvfb :1 &")
10208 (setenv "DISPLAY" ":1")
10209
10210 ;; For the missing /etc/machine-id.
10211 (setenv "DBUS_FATAL_WARNINGS" "0")
10212
10213 ;; Allow Enchant and its Aspell backend to find the en_US
10214 ;; dictionary.
10215 (setenv "ASPELL_DICT_DIR"
10216 (string-append (assoc-ref inputs "aspell-dict-en")
10217 "/lib/aspell"))
10218 #t)))))
10219 (inputs
10220 `(("gtk+" ,gtk+)
10221 ("glib" ,glib)
10222 ("iso-codes" ,iso-codes)))
10223 (native-inputs
10224 `(("glib" ,glib "bin")
10225 ("gobject-introspection" ,gobject-introspection)
10226 ("pkg-config" ,pkg-config)
10227 ("vala" ,vala) ;for VAPI, needed by Geary
10228 ("xmllint" ,libxml2)
10229
10230 ;; For tests.
10231 ("aspell-dict-en" ,aspell-dict-en)
10232 ("xorg-server" ,xorg-server-for-tests)))
10233 (propagated-inputs
10234 `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
10235 (home-page "https://wiki.gnome.org/Projects/gspell")
10236 (synopsis "GNOME's alternative spell checker")
10237 (description
10238 "gspell provides a flexible API to add spell-checking to a GTK+
10239 application. It provides a GObject API, spell-checking to text entries and
10240 text views, and buttons to choose the language.")
10241 (license license:gpl2+)))
10242
10243 (define-public gnome-planner
10244 (package
10245 (name "gnome-planner")
10246 (version "0.14.6")
10247 (source (origin
10248 (method url-fetch)
10249 (uri (string-append "mirror://gnome/sources/planner/"
10250 (version-major+minor version) "/planner-"
10251 version ".tar.xz"))
10252 (sha256
10253 (base32
10254 "15h6ps58giy5r1g66sg1l4xzhjssl362mfny2x09khdqsvk2j38k"))))
10255 (build-system glib-or-gtk-build-system)
10256 (arguments
10257 ;; Disable the Python bindings because the Planner program functions
10258 ;; without them, and (as of 2017-06-13) we have not packaged all of
10259 ;; packages that are necessary for building the Python bindings.
10260 `(#:configure-flags
10261 (list "--disable-python"
10262 ,@(if (string=? "aarch64-linux" (%current-system))
10263 '("--build=aarch64-unknown-linux-gnu")
10264 '()))))
10265 (inputs
10266 `(("libgnomecanvas" ,libgnomecanvas)
10267 ("libgnomeui" ,libgnomeui)
10268 ("libglade" ,libglade)
10269 ("gnome-vfs" ,gnome-vfs)
10270 ("gconf" ,gconf)
10271 ("libxml2" ,libxml2)
10272 ("libxslt" ,libxslt)
10273 ("gtk+" ,gtk+)
10274 ("glib" ,glib)))
10275 (native-inputs
10276 `(("intltool" ,intltool)
10277 ("scrollkeeper" ,scrollkeeper)
10278 ("pkg-config" ,pkg-config)))
10279 (home-page "https://wiki.gnome.org/Apps/Planner")
10280 (synopsis "Project management software for the GNOME desktop")
10281 (description
10282 "GNOME Planner is a project management tool based on the Work Breakdown
10283 Structure (WBS). Its goal is to enable you to easily plan projects. Based on
10284 the resources, tasks, and constraints that you define, Planner generates
10285 various views into a project. For example, Planner can show a Gantt chart of
10286 the project. It can show a detailed summary of tasks including their
10287 duration, cost, and current progress. It can also show a report of resource
10288 utilization that highlights under-utilized and over-utilized resources. These
10289 views can be printed as PDF or PostScript files, or exported to HTML.")
10290 (license license:gpl2+)))
10291
10292 (define-public lollypop
10293 (package
10294 (name "lollypop")
10295 (version "1.4.6")
10296 (source
10297 (origin
10298 (method url-fetch)
10299 (uri (string-append "https://adishatz.org/lollypop/"
10300 "lollypop-" version ".tar.xz"))
10301 (sha256
10302 (base32 "1hlahr50gsagx1ifcdk4yn43xps6w0vqn0gnd6xckfc7qmg1pgq7"))))
10303 (build-system meson-build-system)
10304 (arguments
10305 `(#:imported-modules
10306 (,@%meson-build-system-modules
10307 (guix build python-build-system))
10308 #:modules
10309 ((guix build meson-build-system)
10310 ((guix build python-build-system) #:prefix python:)
10311 (guix build utils))
10312 #:glib-or-gtk? #t
10313 #:tests? #f ; no test suite
10314 #:phases
10315 (modify-phases %standard-phases
10316 (add-after 'install 'wrap-program
10317 (lambda* (#:key outputs #:allow-other-keys)
10318 (let ((out (assoc-ref outputs "out"))
10319 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
10320 (wrap-program (string-append out "/bin/lollypop")
10321 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
10322 #t))
10323 (add-after 'install 'wrap-python
10324 (assoc-ref python:%standard-phases 'wrap)))))
10325 (native-inputs
10326 `(("intltool" ,intltool)
10327 ("itstool" ,itstool)
10328 ("glib:bin" ,glib "bin") ; For glib-compile-resources
10329 ("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
10330 ("pkg-config" ,pkg-config)))
10331 (inputs
10332 `(("glib-networking" ,glib-networking)
10333 ("gobject-introspection" ,gobject-introspection)
10334 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10335 ("gst-plugins-base" ,gst-plugins-base)
10336 ("libnotify" ,libnotify)
10337 ("libsecret" ,libsecret)
10338 ("libhandy" ,libhandy)
10339 ("libsoup" ,libsoup)
10340 ("python" ,python)
10341 ("python-beautifulsoup4" ,python-beautifulsoup4)
10342 ("python-gst" ,python-gst)
10343 ("python-pil" ,python-pillow)
10344 ("python-pycairo" ,python-pycairo)
10345 ("python-pygobject" ,python-pygobject)
10346 ("python-pylast" ,python-pylast)
10347 ("totem-pl-parser" ,totem-pl-parser)
10348 ("webkitgtk" ,webkitgtk)))
10349 (propagated-inputs
10350 `(;; gst-plugins-base is required to start Lollypop,
10351 ;; the others are required to play streaming.
10352 ("gst-plugins-good" ,gst-plugins-good)
10353 ("gst-plugins-ugly" ,gst-plugins-ugly)))
10354 (home-page "https://wiki.gnome.org/Apps/Lollypop")
10355 (synopsis "GNOME music playing application")
10356 (description
10357 "Lollypop is a music player designed to play well with GNOME desktop.
10358 Lollypop plays audio formats such as mp3, mp4, ogg and flac and gets information
10359 from artists and tracks from the web. It also fetches cover artworks
10360 automatically and it can stream songs from online music services and charts.")
10361 (license license:gpl3+)))
10362
10363 (define-public gnome-video-effects
10364 (package
10365 (name "gnome-video-effects")
10366 (version "0.5.0")
10367 (source (origin
10368 (method url-fetch)
10369 (uri (string-append "mirror://gnome/sources/" name "/"
10370 (version-major+minor version) "/" name "-"
10371 version ".tar.xz"))
10372 (sha256
10373 (base32
10374 "1j6h98whgkcxrh30bwvnxvyqxrxchgpdgqhl0j71xz7x72dqxijd"))))
10375 (build-system meson-build-system)
10376 (native-inputs
10377 `(("gettext" ,gettext-minimal)
10378 ("pkg-config" ,pkg-config)))
10379 (home-page "https://wiki.gnome.org/Projects/GnomeVideoEffects")
10380 (synopsis "Video effects for Cheese and other GNOME applications")
10381 (description
10382 "A collection of GStreamer video filters and effects to be used in
10383 photo-booth-like software, such as Cheese.")
10384 (license license:gpl2+)))
10385
10386 (define-public cheese
10387 (package
10388 (name "cheese")
10389 (version "3.38.0")
10390 (source (origin
10391 (method url-fetch)
10392 (uri (string-append "mirror://gnome/sources/" name "/"
10393 (version-major+minor version) "/" name "-"
10394 version ".tar.xz"))
10395 (sha256
10396 (base32
10397 "0vyim2avlgq3a48rgdfz5g21kqk11mfb53b2l883340v88mp7ll8"))))
10398 (arguments
10399 `(#:glib-or-gtk? #t
10400 ;; Tests require GDK.
10401 #:tests? #f
10402 #:phases
10403 (modify-phases %standard-phases
10404 (add-after 'unpack 'skip-gtk-update-icon-cache
10405 (lambda _
10406 ;; Don't create 'icon-theme.cache'
10407 (substitute* "meson_post_install.py"
10408 (("gtk-update-icon-cache") (which "true")))
10409 #t))
10410 (add-after 'unpack 'patch-docbook-xml
10411 (lambda* (#:key inputs #:allow-other-keys)
10412 ;; Avoid a network connection attempt during the build.
10413 (substitute* '("docs/reference/cheese.xml"
10414 "docs/reference/cheese-docs.xml")
10415 (("http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd")
10416 (string-append (assoc-ref inputs "docbook-xml")
10417 "/xml/dtd/docbook/docbookx.dtd")))
10418 #t))
10419 (add-after 'install 'wrap-cheese
10420 (lambda* (#:key inputs outputs #:allow-other-keys)
10421 (let ((out (assoc-ref outputs "out"))
10422 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
10423 (wrap-program (string-append out "/bin/cheese")
10424 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
10425 #t)))))
10426 (build-system meson-build-system)
10427 (native-inputs
10428 `(("docbook-xsl" ,docbook-xsl)
10429 ("docbook-xml" ,docbook-xml-4.3)
10430 ("gettext" ,gettext-minimal)
10431 ("glib:bin" ,glib "bin")
10432 ("gtk-doc" ,gtk-doc)
10433 ("itstool" ,itstool)
10434 ("libxml2" ,libxml2)
10435 ("libxslt" ,libxslt)
10436 ("pkg-config" ,pkg-config)
10437 ("vala" ,vala)))
10438 (propagated-inputs
10439 `(("gnome-video-effects" ,gnome-video-effects)
10440 ("clutter" ,clutter)
10441 ("clutter-gst" ,clutter-gst)
10442 ("clutter-gtk" ,clutter-gtk)
10443 ("libcanberra" ,libcanberra)
10444 ("gdk-pixbuf" ,gdk-pixbuf)
10445 ("glib" ,glib)
10446 ("gstreamer" ,gstreamer)))
10447 (inputs
10448 `(("gnome-desktop" ,gnome-desktop)
10449 ("gobject-introspection" ,gobject-introspection)
10450 ("gst-plugins-base" ,gst-plugins-base)
10451 ("gst-plugins-bad" ,gst-plugins-bad)
10452 ("gtk+" ,gtk+)
10453 ("libx11" ,libx11)
10454 ("libxtst" ,libxtst)))
10455 (home-page "https://wiki.gnome.org/Apps/Cheese")
10456 (synopsis "Webcam photo booth software for GNOME")
10457 (description
10458 "Cheese uses your webcam to take photos and videos. Cheese can also
10459 apply fancy special effects and lets you share the fun with others.")
10460 (license license:gpl2+)))
10461
10462 (define-public passwordsafe
10463 (package
10464 (name "passwordsafe")
10465 (version "3.99.2")
10466 (source
10467 (origin
10468 (method git-fetch)
10469 (uri (git-reference
10470 (url "https://gitlab.gnome.org/World/PasswordSafe")
10471 (commit version)))
10472 (file-name (git-file-name name version))
10473 (sha256
10474 (base32 "0pi2l4gwf8paxm858mxrcsk5nr0c0zw5ycax40mghndb6b1qmmhf"))))
10475 (build-system meson-build-system)
10476 (arguments
10477 `(#:glib-or-gtk? #t
10478 #:phases
10479 (modify-phases %standard-phases
10480 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
10481 (lambda* (#:key outputs #:allow-other-keys)
10482 (let ((prog (string-append (assoc-ref outputs "out")
10483 "/bin/gnome-passwordsafe"))
10484 (pylib (string-append (assoc-ref outputs "out")
10485 "/lib/python"
10486 ,(version-major+minor
10487 (package-version python))
10488 "/site-packages")))
10489 (wrap-program prog
10490 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
10491 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
10492 #t))))))
10493 (native-inputs
10494 `(("desktop-file-utils" ,desktop-file-utils)
10495 ("gettext" ,gettext-minimal)
10496 ("glib:bin" ,glib "bin")
10497 ("gobject-introspection" ,gobject-introspection)
10498 ("gtk+:bin" ,gtk+ "bin")
10499 ("pkg-config" ,pkg-config)))
10500 (inputs
10501 `(("glib" ,glib)
10502 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10503 ("gtk+" ,gtk+)
10504 ("libhandy" ,libhandy-0.0)
10505 ("libpwquality" ,libpwquality)
10506 ("python-pygobject" ,python-pygobject)
10507 ("python-pykeepass" ,python-pykeepass)))
10508 (home-page "https://gitlab.gnome.org/World/PasswordSafe")
10509 (synopsis "Password manager for the GNOME desktop")
10510 (description
10511 "Password Safe is a password manager which makes use of the KeePass v4
10512 format. It integrates perfectly with the GNOME desktop and provides an easy
10513 and uncluttered interface for the management of password databases.")
10514 (license license:gpl3+)))
10515
10516 (define-public sound-juicer
10517 (package
10518 (name "sound-juicer")
10519 (version "3.24.0")
10520 (source
10521 (origin
10522 (method url-fetch)
10523 (uri (string-append "mirror://gnome/sources/" name "/"
10524 (version-major+minor version) "/"
10525 name "-" version ".tar.xz"))
10526 (sha256
10527 (base32
10528 "19qg4xv0f9rkq34lragkmhii1llxsa87llbl28i759b0ks4f6sny"))))
10529 (build-system glib-or-gtk-build-system)
10530 (native-inputs
10531 `(("desktop-file-utils" ,desktop-file-utils)
10532 ("intltool" ,intltool)
10533 ("itstool" ,itstool)
10534 ("pkg-config" ,pkg-config)
10535 ("xmllint" ,libxml2)))
10536 (inputs
10537 `(("gtk+" ,gtk+)
10538 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10539 ("gstreamer" ,gstreamer)
10540 ("gst-plugins-base" ,gst-plugins-base)
10541 ("gst-plugins-good" ,gst-plugins-good)
10542 ("iso-codes" ,iso-codes)
10543 ("libbrasero-media3" ,brasero)
10544 ("libcanberra" ,libcanberra)
10545 ("libdiscid" ,libdiscid)
10546 ("libmusicbrainz" ,libmusicbrainz)
10547 ("neon" ,neon)))
10548 (home-page "https://wiki.gnome.org/Apps/SoundJuicer")
10549 (synopsis "Audio music cd ripper")
10550 (description "Sound Juicer extracts audio from compact discs and convert it
10551 into audio files that a personal computer or digital audio player can play.
10552 It supports ripping to any audio codec supported by a GStreamer plugin, such as
10553 mp3, Ogg Vorbis and FLAC")
10554 (license license:gpl2+)))
10555
10556 (define-public soundconverter
10557 (package
10558 (name "soundconverter")
10559 (version "3.0.2")
10560 (source
10561 (origin
10562 (method url-fetch)
10563 (uri (string-append "https://launchpad.net/soundconverter/trunk/"
10564 version "/+download/"
10565 "soundconverter-" version ".tar.xz"))
10566
10567 (sha256
10568 (base32 "1jv8m82hi23ilrgdznlc1jhp2jm8bw1yrw0chh3qw2l0sixvkl11"))))
10569 (build-system glib-or-gtk-build-system)
10570 (arguments
10571 `(#:imported-modules ((guix build python-build-system)
10572 (guix build glib-or-gtk-build-system)
10573 ,@%gnu-build-system-modules)
10574
10575 #:modules ((guix build glib-or-gtk-build-system)
10576 (guix build utils)
10577 ((guix build gnu-build-system) #:prefix gnu:)
10578 ((guix build python-build-system) #:prefix python:))
10579
10580 #:phases
10581 (modify-phases %standard-phases
10582 (add-after 'install 'wrap-soundconverter-for-python
10583 (assoc-ref python:%standard-phases 'wrap))
10584 (add-after 'install 'wrap-soundconverter
10585 (lambda* (#:key inputs outputs #:allow-other-keys)
10586 (let ((out (assoc-ref outputs "out"))
10587 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
10588 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
10589 (wrap-program (string-append out "/bin/soundconverter")
10590 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
10591 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
10592 #t)))))
10593 (native-inputs
10594 `(("intltool" ,intltool)
10595 ("pkg-config" ,pkg-config)
10596 ("glib:bin" ,glib "bin")))
10597 (inputs
10598 `(("gtk+" ,gtk+)
10599 ("python" ,python)
10600 ("python-pygobject" ,python-pygobject)
10601 ("gstreamer" ,gstreamer)
10602 ("gst-plugins-base" ,gst-plugins-base)))
10603 (home-page "https://soundconverter.org/")
10604 (synopsis "Convert between audio formats with a graphical interface")
10605 (description
10606 "SoundConverter supports converting between many audio formats including
10607 Opus, Ogg Vorbis, FLAC and more. It supports parallel conversion, and
10608 configurable file renaming. ")
10609 (license license:gpl3)))
10610
10611 (define-public workrave
10612 (package
10613 (name "workrave")
10614 (version "1.10.42")
10615 (source
10616 (origin
10617 (method git-fetch)
10618 (uri (git-reference
10619 (url "https://github.com/rcaelers/workrave")
10620 (commit (string-append "v" (string-map
10621 (match-lambda (#\. #\_) (chr chr))
10622 version)))))
10623 (file-name (git-file-name name version))
10624 (sha256
10625 (base32 "03i9kk8r1wgrfkkbwikx8wxaw4r4kn62vismr2zdq5g34fkkjh95"))))
10626 (build-system glib-or-gtk-build-system)
10627 (arguments
10628 ;; The only tests are maintainer tests (in po/), which fail.
10629 `(#:tests? #f))
10630 (inputs `(("glib" ,glib)
10631 ("gtk+" ,gtk+)
10632 ("gdk-pixbuf" ,gdk-pixbuf)
10633 ("gtkmm" ,gtkmm)
10634 ("glibmm" ,glibmm)
10635 ("libx11" ,libx11)
10636 ("libxtst" ,libxtst)
10637 ("dconf" ,dconf)
10638 ("libice" ,libice)
10639 ("libsm" ,libsm)
10640 ("libxscrnsaver" ,libxscrnsaver)))
10641 (native-inputs `(("boost" ,boost)
10642 ("pkg-config" ,pkg-config)
10643 ("gettext" ,gettext-minimal)
10644 ("autoconf" ,autoconf)
10645 ("autoconf-archive" , autoconf-archive)
10646 ("automake" ,automake)
10647 ("libtool" ,libtool)
10648 ("intltool" ,intltool)
10649 ("gobject-introspection" ,gobject-introspection)
10650 ("python3" ,python-3)
10651 ("python-jinja2" ,python-jinja2)))
10652 (synopsis "Tool to help prevent repetitive strain injury (RSI)")
10653 (description
10654 "Workrave is a program that assists in the recovery and prevention of
10655 repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
10656 micro-pauses and rest breaks, and restricts you to your daily limit.")
10657 (home-page "http://www.workrave.org")
10658 (license license:gpl3+)))
10659
10660 (define-public ghex
10661 (package
10662 (name "ghex")
10663 (version "3.18.4")
10664 (source (origin
10665 (method url-fetch)
10666 (uri (string-append "mirror://gnome/sources/ghex/"
10667 (version-major+minor version) "/"
10668 "ghex-" version ".tar.xz"))
10669 (sha256
10670 (base32
10671 "1h1pjrr9wynclfykizqd78dbi785wjz6b63p31k87kjvzy8w3nf2"))))
10672 (build-system meson-build-system)
10673 (arguments
10674 '(#:glib-or-gtk? #t
10675 #:phases
10676 (modify-phases %standard-phases
10677 (add-after 'unpack 'skip-gtk-update-icon-cache
10678 ;; Don't create 'icon-theme.cache'.
10679 (lambda _
10680 (substitute* "meson_post_install.py"
10681 (("gtk-update-icon-cache") (which "true")))
10682 #t)))))
10683 (native-inputs
10684 `(("pkg-config" ,pkg-config)
10685 ("glib:bin" ,glib "bin") ; for glib-compile-schemas
10686 ("gnome-common" ,gnome-common)
10687 ("which" ,which)
10688 ("intltool" ,intltool)
10689 ("yelp-tools" ,yelp-tools)
10690 ("desktop-file-utils" ,desktop-file-utils))) ; for 'desktop-file-validate'
10691 (inputs
10692 `(("atk" ,atk)
10693 ("gtk" ,gtk+)))
10694 (synopsis "GNOME hexadecimal editor")
10695 (description "The GHex program can view and edit files in two ways:
10696 hexadecimal or ASCII. It is useful for editing binary files in general.")
10697 (home-page "https://wiki.gnome.org/Apps/Ghex")
10698 (license license:gpl2)))
10699
10700 (define-public libdazzle
10701 (package
10702 (name "libdazzle")
10703 (version "3.37.1")
10704 (source (origin
10705 (method url-fetch)
10706 (uri (string-append "mirror://gnome/sources/libdazzle/"
10707 (version-major+minor version) "/"
10708 "libdazzle-" version ".tar.xz"))
10709 (sha256
10710 (base32
10711 "03r5cr11dc031qa3694bpgm3lajrhiiln67kvl7vjj4q0scf7w7x"))))
10712 (build-system meson-build-system)
10713 (arguments
10714 `(#:phases
10715 (modify-phases %standard-phases
10716 (add-before 'check 'pre-check
10717 (lambda _
10718 ;; Tests require a running X server.
10719 (system "Xvfb :1 &")
10720 (setenv "DISPLAY" ":1")
10721 #t)))))
10722 (native-inputs
10723 `(("glib" ,glib "bin") ; glib-compile-resources
10724 ("pkg-config" ,pkg-config)
10725 ;; For tests.
10726 ("xorg-server" ,xorg-server-for-tests)))
10727 (inputs
10728 `(("glib" ,glib)
10729 ("gobject-introspection" ,gobject-introspection)
10730 ("gtk+" ,gtk+)
10731 ("vala" ,vala)))
10732 (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
10733 (synopsis "Companion library to GObject and Gtk+")
10734 (description "The libdazzle library is a companion library to GObject and
10735 Gtk+. It provides various features that the authors wish were in the
10736 underlying library but cannot for various reasons. In most cases, they are
10737 wildly out of scope for those libraries. In other cases, they are not quite
10738 generic enough to work for everyone.")
10739 (license license:gpl3+)))
10740
10741 (define-public evolution
10742 (package
10743 (name "evolution")
10744 (version "3.34.2")
10745 (source (origin
10746 (method url-fetch)
10747 (uri (string-append "mirror://gnome/sources/evolution/"
10748 (version-major+minor version) "/"
10749 "evolution-" version ".tar.xz"))
10750 (sha256
10751 (base32
10752 "164vy8h432pjglafn8y2ms4gsvk3kbgc63h5qp0mk5dv4smsp29c"))))
10753 (build-system cmake-build-system)
10754 (arguments
10755 `(#:imported-modules (,@%cmake-build-system-modules
10756 (guix build glib-or-gtk-build-system))
10757 #:modules ((guix build cmake-build-system)
10758 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
10759 (guix build utils))
10760 #:configure-flags
10761 (list "-DENABLE_PST_IMPORT=OFF" ; libpst is not packaged
10762 "-DENABLE_LIBCRYPTUI=OFF") ; libcryptui hasn't seen a release
10763 ; in four years and cannot be built.
10764 #:phases
10765 (modify-phases %standard-phases
10766 ;; The build system attempts to install user interface modules to the
10767 ;; output directory of the "evolution-data-server" package. This
10768 ;; change redirects that change.
10769 (add-after 'unpack 'patch-ui-module-dir
10770 (lambda* (#:key outputs #:allow-other-keys)
10771 (substitute* "src/modules/alarm-notify/CMakeLists.txt"
10772 (("\\$\\{edsuimoduledir\\}")
10773 (string-append (assoc-ref outputs "out")
10774 "/lib/evolution-data-server/ui-modules")))
10775 #t))
10776 (add-after 'install 'glib-or-gtk-compile-schemas
10777 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
10778 (add-after 'install 'glib-or-gtk-wrap
10779 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
10780 (native-inputs
10781 `(("glib" ,glib "bin") ; glib-mkenums
10782 ("pkg-config" ,pkg-config)
10783 ("intltool" ,intltool)
10784 ("itstool" ,itstool)))
10785 (inputs
10786 `(("enchant" ,enchant)
10787 ("evolution-data-server" ,evolution-data-server) ; must be the same version
10788 ("gcr" ,gcr)
10789 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10790 ("gnome-autoar" ,gnome-autoar)
10791 ("gnome-desktop" ,gnome-desktop)
10792 ("gspell" ,gspell)
10793 ("highlight" ,highlight)
10794 ("libcanberra" ,libcanberra)
10795 ("libgweather" ,libgweather)
10796 ("libnotify" ,libnotify)
10797 ("libsoup" ,libsoup)
10798 ("nss" ,nss)
10799 ("openldap" ,openldap)
10800 ("webkitgtk" ,webkitgtk)
10801 ("ytnef" ,ytnef)))
10802 (home-page "https://gitlab.gnome.org/GNOME/evolution")
10803 (synopsis "Manage your email, contacts and schedule")
10804 (description "Evolution is a personal information management application
10805 that provides integrated mail, calendaring and address book
10806 functionality.")
10807 ;; See COPYING for details.
10808 (license (list license:lgpl2.1 license:lgpl3 ; either one of these
10809 license:openldap2.8 ; addressbook/gui/component/openldap-extract.h
10810 license:lgpl2.1+)))) ; smime/lib/*
10811
10812 (define-public gthumb
10813 (package
10814 (name "gthumb")
10815 (version "3.8.2")
10816 (source (origin
10817 (method url-fetch)
10818 (uri (string-append "mirror://gnome/sources/gthumb/"
10819 (version-major+minor version) "/"
10820 "gthumb-" version ".tar.xz"))
10821 (sha256
10822 (base32
10823 "15wqks35ks5dm7zj046dfd45vvrilan2ayfy2sxiprv7q74cip2q"))))
10824 (build-system meson-build-system)
10825 (arguments
10826 `(#:glib-or-gtk? #t
10827 #:configure-flags
10828 ;; Ensure the RUNPATH contains all installed library locations.
10829 (list (string-append "-Dc_link_args=-Wl,-rpath="
10830 (assoc-ref %outputs "out")
10831 "/lib/gthumb/extensions")
10832 (string-append "-Dcpp_link_args=-Wl,-rpath="
10833 (assoc-ref %outputs "out")
10834 "/lib/gthumb/extensions"))))
10835 (native-inputs
10836 `(("pkg-config" ,pkg-config)
10837 ("glib:bin" ,glib "bin") ; for glib-compile-resources
10838 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
10839 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
10840 ("intltool" ,intltool)
10841 ("itstool" ,itstool)))
10842 (inputs
10843 `(("exiv2" ,exiv2)
10844 ("gtk" ,gtk+)
10845 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10846 ("gstreamer" ,gstreamer)
10847 ("clutter" ,clutter)
10848 ("clutter-gst" ,clutter-gst)
10849 ("clutter-gtk" ,clutter-gtk)
10850 ("libjpeg" ,libjpeg-turbo)
10851 ("libtiff" ,libtiff)
10852 ("libraw" ,libraw)))
10853 (home-page "https://wiki.gnome.org/Apps/Gthumb")
10854 (synopsis "GNOME image viewer and browser")
10855 (description "GThumb is an image viewer, browser, organizer, editor and
10856 advanced image management tool")
10857 (license license:gpl2+)))
10858
10859 (define-public terminator
10860 (package
10861 (name "terminator")
10862 (version "1.91")
10863 (source (origin
10864 (method url-fetch)
10865 (uri (string-append "https://launchpad.net/" name "/"
10866 "gtk3/" version "/" "+download/"
10867 name "-" version ".tar.gz"))
10868 (sha256
10869 (base32
10870 "0sdyqwydmdnh7j6mn74vrywz35m416kqsbxbrqcnv5ak08y6xxwm"))))
10871 (build-system python-build-system)
10872 (native-inputs
10873 `(("intltool" ,intltool)
10874 ("glib:bin" ,glib "bin") ; for glib-compile-resources
10875 ("gettext" ,gettext-minimal)
10876 ("pkg-config" ,pkg-config)))
10877 (inputs
10878 `(("cairo" ,cairo)
10879 ("gobject-introspection" ,gobject-introspection)
10880 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10881 ("python2-pycairo" ,python2-pycairo)
10882 ("python2-pygobject" ,python2-pygobject)
10883 ("python2-psutil" ,python2-psutil)
10884 ("vte" ,vte)))
10885 (arguments
10886 `(#:python ,python-2 ; Python 3 isn't supported
10887 #:imported-modules ((guix build glib-or-gtk-build-system)
10888 ,@%python-build-system-modules)
10889 #:modules ((guix build python-build-system)
10890 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
10891 (guix build utils))
10892 #:phases
10893 (modify-phases %standard-phases
10894 (add-after
10895 'install 'wrap-program
10896 (lambda* (#:key outputs #:allow-other-keys)
10897 (let ((prog (string-append (assoc-ref outputs "out")
10898 "/bin/terminator")))
10899 (wrap-program prog
10900 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
10901 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
10902 #t)))
10903 (add-after 'wrap-program 'glib-or-gtk-wrap
10904 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
10905 (home-page "https://gnometerminator.blogspot.com/")
10906 (synopsis "Store and run multiple GNOME terminals in one window")
10907 (description
10908 "Terminator allows you to run multiple GNOME terminals in a grid and
10909 +tabs, and it supports drag and drop re-ordering of terminals.")
10910 (license license:gpl2)))
10911
10912 (define-public libhandy
10913 (package
10914 (name "libhandy")
10915 (version "1.0.2")
10916 (source
10917 (origin
10918 (method git-fetch)
10919 (uri (git-reference
10920 (url "https://gitlab.gnome.org/GNOME/libhandy")
10921 (commit version)))
10922 (file-name (git-file-name name version))
10923 (sha256
10924 (base32 "1bmmkahshvlvpsnb7zp8bddv7i1h5k4p967n6kxh71g1vnj8x20m"))))
10925 (build-system meson-build-system)
10926 (arguments
10927 `(#:configure-flags
10928 '("-Dglade_catalog=enabled"
10929 "-Dgtk_doc=true")
10930 #:phases
10931 (modify-phases %standard-phases
10932 (add-before 'check 'pre-check
10933 (lambda _
10934 ;; Tests require a running X server.
10935 (system "Xvfb :1 &")
10936 (setenv "DISPLAY" ":1")
10937 #t)))))
10938 (inputs
10939 `(("gtk+" ,gtk+)
10940 ("glade" ,glade3)
10941 ("libxml2" ,libxml2)))
10942 (native-inputs
10943 `(("glib:bin" ,glib "bin")
10944 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
10945 ("vala" ,vala)
10946 ("gtk-doc" ,gtk-doc)
10947 ("pkg-config" ,pkg-config)
10948 ("gettext" ,gettext-minimal)
10949
10950 ;; Test suite dependencies.
10951 ("xorg-server" ,xorg-server-for-tests)
10952 ("hicolor-icon-theme" ,hicolor-icon-theme)))
10953 (home-page "https://gitlab.gnome.org/GNOME/libhandy/")
10954 (synopsis "Library full of GTK+ widgets for mobile phones")
10955 (description "The aim of the handy library is to help with developing user
10956 interfaces for mobile devices using GTK+. It provides responsive GTK+ widgets
10957 for usage on small and big screens.")
10958 (license license:lgpl2.1+)))
10959
10960 (define-public libhandy-0.0
10961 (package
10962 (inherit libhandy)
10963 (version "0.0.13")
10964 (source
10965 (origin
10966 (method git-fetch)
10967 (uri (git-reference
10968 (url "https://gitlab.gnome.org/GNOME/libhandy")
10969 (commit (string-append "v" version))))
10970 (file-name (git-file-name "libhandy" version))
10971 (sha256
10972 (base32 "1y23k623sjkldfrdiwfarpchg5mg58smcy1pkgnwfwca15wm1ra5"))))
10973 (arguments
10974 (substitute-keyword-arguments (package-arguments libhandy)
10975 ((#:configure-flags flags)
10976 '(list "-Dglade_catalog=disabled" "-Dgtk_doc=true"))))))
10977
10978 (define-public libgit2-glib
10979 (package
10980 (name "libgit2-glib")
10981 (version "0.99.0.1")
10982 (source (origin
10983 (method url-fetch)
10984 (uri (string-append "mirror://gnome/sources/" name "/"
10985 (version-major+minor version) "/"
10986 name "-" version ".tar.xz"))
10987 (sha256
10988 (base32
10989 "1pmrcnsa7qdda73c3dxf47733mwprmj5ljpw3acxbj6r8k27anp0"))))
10990 (build-system meson-build-system)
10991 (native-inputs
10992 `(("glib:bin" ,glib "bin") ;; For glib-mkenums
10993 ("gobject-introspection" ,gobject-introspection)
10994 ("pkg-config" ,pkg-config)
10995 ("python-pygobject" ,python-pygobject)
10996 ("python-wrapper" ,python-wrapper)
10997 ("vala" ,vala)))
10998 (inputs
10999 `(("glib" ,glib)
11000 ("libssh2" ,libssh2)))
11001 (propagated-inputs
11002 `(;; In Requires of libgit2-glib.pc.
11003 ("libgit2" ,libgit2)))
11004 (synopsis "GLib wrapper around the libgit2 Git access library")
11005 (description "libgit2-glib is a GLib wrapper library around the libgit2 Git
11006 access library. It only implements the core plumbing functions, not really the
11007 higher level porcelain stuff.")
11008 (home-page "https://wiki.gnome.org/Projects/Libgit2-glib")
11009 (license license:gpl2+)))
11010
11011 (define-public gitg
11012 (package
11013 (name "gitg")
11014 (version "3.32.1")
11015 (source (origin
11016 (method url-fetch)
11017 (uri (string-append "mirror://gnome/sources/" name "/"
11018 (version-major+minor version) "/"
11019 name "-" version ".tar.xz"))
11020 (sha256
11021 (base32
11022 "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914"))))
11023 (build-system meson-build-system)
11024 (arguments
11025 `(#:glib-or-gtk? #t
11026 #:phases
11027 (modify-phases %standard-phases
11028 (add-after 'unpack 'disable-post-install-partially
11029 (lambda _
11030 (substitute* "meson_post_install.py"
11031 (("'python'") ; there are no python sources to compile
11032 (string-append "'" (which "true") "'"))
11033 (("gtk-update-icon-cache") (which "true")))
11034 #t))
11035 (add-after 'unpack 'fix-test-sources
11036 (lambda _
11037 (substitute* "tests/libgitg/test-commit.vala"
11038 (("/bin/bash") (which "bash")))
11039 #t))
11040 (add-after 'glib-or-gtk-wrap 'wrap-typelib
11041 (lambda* (#:key outputs #:allow-other-keys)
11042 (let ((prog (string-append (assoc-ref outputs "out")
11043 "/bin/gitg")))
11044 (wrap-program prog
11045 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11046 #t))))))
11047 (inputs
11048 `(("glib" ,glib)
11049 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11050 ("gtk+" ,gtk+)
11051 ("gtkspell3" ,gtkspell3)
11052 ("gtksourceview" ,gtksourceview-3)
11053 ("json-glib" ,json-glib)
11054 ("libdazzle" ,libdazzle)
11055 ("libgee" ,libgee)
11056 ("libgit2-glib" ,libgit2-glib)
11057 ("libpeas" ,libpeas)
11058 ("libsecret" ,libsecret)
11059 ("libsoup" ,libsoup)
11060 ("libxml2" ,libxml2)))
11061 (native-inputs
11062 `(("glib:bin" ,glib "bin")
11063 ("gtk+:bin" ,gtk+ "bin")
11064 ("gobject-introspection" ,gobject-introspection)
11065 ("intltool" ,intltool)
11066 ("pkg-config" ,pkg-config)
11067 ("vala" ,vala)))
11068 (synopsis "Graphical user interface for git")
11069 (description
11070 "gitg is a graphical user interface for git. It aims at being a small,
11071 fast and convenient tool to visualize the history of git repositories.
11072 Besides visualization, gitg also provides several utilities to manage your
11073 repository and commit your work.")
11074 (home-page "https://wiki.gnome.org/Apps/Gitg")
11075 (license license:gpl2+)))
11076
11077 (define-public gamin
11078 (package
11079 (name "gamin")
11080 (version "0.1.10")
11081 (source (origin
11082 (method url-fetch)
11083 (uri (string-append "mirror://gnome/sources/" name "/"
11084 (version-major+minor version) "/"
11085 name "-" version ".tar.bz2"))
11086 (sha256
11087 (base32
11088 "02n1zr9y8q9lyczhcz0nxar1vmf8p2mmbw8kq0v43wg21jr4i6d5"))))
11089 (build-system gnu-build-system)
11090 (arguments
11091 `(#:phases
11092 (modify-phases %standard-phases
11093 (add-after 'unpack 'remove-deprecated-macro
11094 (lambda _
11095 (substitute* '("server/gam_node.c"
11096 "server/gam_subscription.h"
11097 "server/gam_node.h"
11098 "server/gam_subscription.c")
11099 (("G_CONST_RETURN") "const"))
11100 #t)))))
11101 (inputs
11102 `(("glib" ,glib)))
11103 (native-inputs
11104 `(("intltool" ,intltool)
11105 ("pkg-config" ,pkg-config)))
11106 (home-page "https://people.gnome.org/~veillard/gamin/")
11107 (synopsis "File alteration monitor")
11108 (description
11109 "Gamin is a file and directory monitoring system defined to be a subset
11110 of the FAM (File Alteration Monitor) system. This is a service provided by a
11111 library which detects when a file or a directory has been modified.")
11112 (license license:gpl2+)))
11113
11114 (define-public gnome-mahjongg
11115 (package
11116 (name "gnome-mahjongg")
11117 (version "3.35.1")
11118 (source (origin
11119 (method git-fetch)
11120 (uri (git-reference
11121 (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
11122 (commit version)))
11123 (file-name (git-file-name name version))
11124 (sha256
11125 (base32
11126 "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
11127 (build-system meson-build-system)
11128 (arguments
11129 `(#:glib-or-gtk? #t))
11130 (native-inputs
11131 `(("appstream-glib" ,appstream-glib)
11132 ("gettext" ,gettext-minimal)
11133 ("glib:bin" ,glib "bin") ;; For glib-compile-resources
11134 ("gtk+" ,gtk+ "bin") ;; For gtk-update-icon-cache
11135 ("itstool" ,itstool)
11136 ("pkg-config" ,pkg-config)
11137 ("vala" ,vala)))
11138 (propagated-inputs
11139 `(("dconf" ,dconf)))
11140 (inputs
11141 `(("glib" ,glib)
11142 ("gtk+" ,gtk+)
11143 ("librsvg" ,librsvg)))
11144 (synopsis "Mahjongg tile-matching game")
11145 (description "GNOME Mahjongg is a game based on the classic Chinese
11146 tile-matching game Mahjong. It features multiple board layouts, tile themes,
11147 and a high score table.")
11148 (home-page "https://wiki.gnome.org/Apps/Mahjongg")
11149 (license license:gpl2+)))
11150
11151 (define-public gnome-themes-extra
11152 (package
11153 (name "gnome-themes-extra")
11154 (version "3.28")
11155 (source
11156 (origin
11157 (method url-fetch)
11158 (uri (string-append "mirror://gnome/sources/" name "/"
11159 (version-major+minor version) "/" name "-"
11160 version ".tar.xz"))
11161 (sha256
11162 (base32
11163 "06aqg9asq2vqi9wr29bs4v8z2bf4manhbhfghf4nvw01y2zs0jvw"))))
11164 (build-system gnu-build-system)
11165 (arguments
11166 '(#:configure-flags
11167 ;; Don't create 'icon-theme.cache'.
11168 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
11169 (true (string-append coreutils "/bin/true")))
11170 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
11171 (native-inputs
11172 `(("glib:bin" ,glib "bin")
11173 ("intltool" ,intltool)
11174 ("pkg-config" ,pkg-config)))
11175 (inputs
11176 `(("glib" ,glib)
11177 ("gtk+" ,gtk+)
11178 ("gtk+-2" ,gtk+-2)
11179 ("librsvg" ,librsvg)
11180 ("libxml2" ,libxml2)))
11181 (home-page "https://gitlab.gnome.org/GNOME/gnome-themes-extra")
11182 (synopsis "GNOME Extra Themes")
11183 (description "This package provides themes and related elements that don't
11184 really fit in other upstream packages. It offers legacy support for GTK+ 2
11185 versions of Adwaita, Adwaita-dark and HighContrast themes. It also provides
11186 index files needed for Adwaita to be used outside of GNOME.")
11187 (license license:lgpl2.1+)))
11188
11189 (define-public gnote
11190 (package
11191 (name "gnote")
11192 (version "3.38.0")
11193 (source
11194 (origin
11195 (method url-fetch)
11196 (uri (string-append "mirror://gnome/sources/" name "/"
11197 (version-major+minor version) "/"
11198 "gnote-" version ".tar.xz"))
11199 (sha256
11200 (base32 "1ingbaw4d8vpjn083xvzqw7kz8z0k2bx7msk78pbzd68bwgkadpx"))))
11201 (build-system glib-or-gtk-build-system)
11202 (native-inputs
11203 `(("desktop-file-utils" ,desktop-file-utils)
11204 ("glib:bin" ,glib "bin")
11205 ("gobject-introspection" ,gobject-introspection)
11206 ("intltool" ,intltool)
11207 ("itstool" ,itstool)
11208 ("pkg-config" ,pkg-config)
11209 ("unittest-cpp" ,unittest-cpp))) ;FIXME: not found by pkg-config
11210 (inputs
11211 `(("glibmm" ,glibmm)
11212 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11213 ("gspell" ,gspell)
11214 ("gtk+" ,gtk+)
11215 ("gtkmm" ,gtkmm)
11216 ("libsecret" ,libsecret)
11217 ("libuuid" ,util-linux "lib")
11218 ("libxml2" ,libxml2)
11219 ("libxslt" ,libxslt)))
11220 (synopsis "Note-taking application for the GNOME desktop")
11221 (description
11222 "Gnote is a note-taking application written for the GNOME desktop
11223 environment.")
11224 (home-page "https://wiki.gnome.org/Apps/Gnote")
11225 (license license:gpl3+)))
11226
11227 (define-public polari
11228 (package
11229 (name "polari")
11230 (version "3.36.3")
11231 (source (origin
11232 (method url-fetch)
11233 (uri (string-append "mirror://gnome/sources/polari/"
11234 (version-major+minor version)
11235 "/polari-" version ".tar.xz"))
11236 (sha256
11237 (base32
11238 "0fpmrvhd40yay051bzn4x3gsrzdv42nav0pm5ps0np8wk1z689jg"))))
11239 (build-system meson-build-system)
11240 (arguments
11241 `(#:glib-or-gtk? #t
11242 #:phases
11243 (modify-phases %standard-phases
11244 (add-after 'unpack 'skip-gtk-update-icon-cache
11245 (lambda _
11246 (substitute* "meson/meson-postinstall.sh"
11247 (("gtk-update-icon-cache") (which "true")))
11248 #t))
11249 (add-after 'glib-or-gtk-wrap 'wrap-typelib
11250 (lambda* (#:key outputs #:allow-other-keys)
11251 (let ((prog (string-append (assoc-ref outputs "out")
11252 "/bin/polari")))
11253 (wrap-program prog
11254 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11255 #t))))))
11256 (inputs
11257 `(("glib" ,glib)
11258 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11259 ("gspell" ,gspell)
11260 ("gtk+" ,gtk+)
11261 ("gjs" ,gjs)
11262 ("libsecret" ,libsecret)
11263 ("libsoup" ,libsoup)
11264 ("telepathy-glib" ,telepathy-glib)
11265 ("telepathy-logger" ,telepathy-logger)))
11266 (native-inputs
11267 `(("glib:bin" ,glib "bin")
11268 ("gobject-introspection" ,gobject-introspection)
11269 ("intltool" ,intltool)
11270 ("pkg-config" ,pkg-config)
11271 ("yelp-tools" ,yelp-tools)))
11272 (propagated-inputs
11273 `(("telepathy-idle" ,telepathy-idle)
11274 ("telepathy-mission-control" ,telepathy-mission-control)))
11275 (synopsis "Simple IRC Client")
11276 (description
11277 "Polari is a simple Internet Relay Chat (IRC) client that is designed to
11278 integrate seamlessly with the GNOME desktop.")
11279 (home-page "https://wiki.gnome.org/Apps/Polari")
11280 (license license:gpl2+)))
11281
11282 (define-public gnome-boxes
11283 (package
11284 (name "gnome-boxes")
11285 (version "3.36.6")
11286 (source
11287 (origin
11288 (method url-fetch)
11289 (uri (string-append "mirror://gnome/sources/gnome-boxes/"
11290 (version-major+minor version) "/"
11291 "gnome-boxes-" version ".tar.xz"))
11292 (sha256
11293 (base32 "0c3cw90xqqcpacc2z06ljs0gg8saxizfgjzg9alhpwgz3gl4c5pg"))))
11294 (build-system meson-build-system)
11295 (arguments
11296 '(#:glib-or-gtk? #t
11297 #:configure-flags (list "-Drdp=false"
11298 (string-append "-Dc_link_args=-Wl,-rpath="
11299 (assoc-ref %outputs "out")
11300 "/lib/gnome-boxes"))))
11301 (native-inputs
11302 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
11303 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
11304 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
11305 ("itstool" ,itstool)
11306 ("intltool" ,intltool)
11307 ("vala" ,vala)
11308 ("pkg-config" ,pkg-config)))
11309 (inputs
11310 `(("libarchive" ,libarchive)
11311 ("glib-networking" ,glib-networking) ;for TLS support
11312 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11313 ("gtk" ,gtk+)
11314 ("gtk-vnc" ,gtk-vnc)
11315 ("libosinfo" ,libosinfo)
11316 ("libsecret" ,libsecret)
11317 ("libsoup" ,libsoup)
11318 ("libusb" ,libusb)
11319 ("libvirt" ,libvirt)
11320 ("libvirt-glib" ,libvirt-glib)
11321 ("libxml" ,libxml2)
11322 ("spice-gtk" ,spice-gtk)
11323 ("sparql-query" ,sparql-query)
11324 ("vte" ,vte)
11325 ("webkitgtk" ,webkitgtk)
11326 ("tracker" ,tracker)
11327 ("libgudev" ,libgudev)))
11328 (home-page "https://wiki.gnome.org/Apps/Boxes")
11329 (synopsis "View, access, and manage remote and virtual systems")
11330 (description "GNOME Boxes is a simple application to view, access, and
11331 manage remote and virtual systems. Note that this application requires the
11332 @code{libvirt} and @code{virtlog} daemons to run. Use the command
11333 @command{info '(guix) Virtualization Services'} to learn how to configure
11334 these services on the Guix System.")
11335 (license (list
11336 ;; For data/icons/empty-boxes.png.
11337 license:cc-by2.0
11338 ;; For all others.
11339 license:lgpl2.0+))))
11340
11341 (define-public geary
11342 (package
11343 (name "geary")
11344 (version "3.34.1")
11345 (source (origin
11346 (method git-fetch)
11347 (uri (git-reference
11348 (url "https://gitlab.gnome.org/GNOME/geary")
11349 (commit version)))
11350 (file-name (git-file-name name version))
11351 (sha256
11352 (base32
11353 "01cc921kyh3zxz07biqbdzkjgmdcc36kwjyajm4y382a75cl5zg7"))))
11354 (build-system meson-build-system)
11355 (arguments
11356 `(#:glib-or-gtk? #t
11357 #:phases (modify-phases %standard-phases
11358 (add-after 'unpack 'disable-failing-tests
11359 (lambda _
11360 (substitute* "test/meson.build"
11361 (("test\\('client-tests', geary_test_client_bin\\)")
11362 ""))
11363 #t))
11364 (add-after 'unpack 'disable-postinstall-script
11365 (lambda _
11366 (substitute* "meson.build"
11367 (("meson.add_install_script\\(\
11368 join_paths\\('build-aux', 'post_install.py'\\)\\)")
11369 ""))
11370 #t))
11371 (add-before 'check 'setup-xvfb
11372 (lambda _
11373 (system "Xvfb :1 &")
11374 (setenv "DISPLAY" ":1")
11375 #t)))))
11376 (inputs
11377 `(("enchant" ,enchant)
11378 ("folks" ,folks)
11379 ("gcr" ,gcr)
11380 ("glib" ,glib)
11381 ("gmime" ,gmime-2.6)
11382 ("gnome-online-accounts:lib"
11383 ,gnome-online-accounts "lib")
11384 ("gspell" ,gspell)
11385 ("gtk+" ,gtk+)
11386 ("iso-codes" ,iso-codes)
11387 ("json-glib" ,json-glib)
11388 ("libcanberra" ,libcanberra)
11389 ("libgee" ,libgee)
11390 ("libhandy" ,libhandy-0.0)
11391 ("libpeas" ,libpeas)
11392 ("libsecret" ,libsecret)
11393 ("libunwind" ,libunwind)
11394 ("sqlite" ,sqlite)
11395 ("webkitgtk" ,webkitgtk)
11396 ("ytnef" ,ytnef)))
11397 (native-inputs
11398 `(("appstream-glib" ,appstream-glib)
11399 ("cmake-minimal" ,cmake-minimal)
11400 ("desktop-file-utils" ,desktop-file-utils)
11401 ("gettext" ,gettext-minimal)
11402 ("glib:bin" ,glib "bin")
11403 ("gobject-introspection" ,gobject-introspection)
11404 ("itstool" ,itstool)
11405 ("libarchive" ,libarchive)
11406 ("libxml2" ,libxml2)
11407 ("pkg-config" ,pkg-config)
11408 ("vala" ,vala)
11409 ("xvfb" ,xorg-server-for-tests)))
11410 (synopsis "GNOME email application built around conversations")
11411 (description
11412 "Geary collects related messages together into conversations,
11413 making it easy to find and follow your discussions. Full-text and keyword
11414 search makes it easy to find the email you are looking for. Geary's
11415 full-featured composer lets you send rich, styled text with images, links, and
11416 lists, but also send lightweight, easy to read text messages. Geary
11417 automatically picks up your existing GNOME Online Accounts, and adding more is
11418 easy. Geary has a clean, fast, modern interface that works like you want it
11419 to.")
11420 (home-page "https://wiki.gnome.org/Apps/Geary")
11421 (license (list
11422 ;; geary
11423 license:lgpl2.1+
11424 ;; icons
11425 license:cc-by3.0
11426 license:cc-by-sa3.0
11427 license:public-domain
11428 ;; snowball
11429 license:bsd-2))))
11430
11431 (define-public glabels
11432 (package
11433 (name "glabels")
11434 (version "3.4.1")
11435 (source
11436 (origin
11437 (method url-fetch)
11438 (uri (string-append "mirror://gnome/sources/" name "/"
11439 (version-major+minor version) "/"
11440 "glabels-" version ".tar.xz"))
11441 (sha256
11442 (base32 "0f2rki8i27pkd9r0gz03cdl1g4vnmvp0j49nhxqn275vi8lmgr0q"))))
11443 (build-system glib-or-gtk-build-system)
11444 (native-inputs
11445 `(("gettext" ,gettext-minimal)
11446 ("glib:bin" ,glib "bin")
11447 ("intltool" ,intltool)
11448 ("itstool" ,itstool)
11449 ("pkg-config" ,pkg-config)))
11450 (inputs
11451 `(("gtk+" ,gtk+)
11452 ("librsvg" ,librsvg)
11453 ("libxml2" ,libxml2)))
11454 (home-page "https://glabels.org/")
11455 (synopsis "Program for creating labels and business cards")
11456 (description
11457 "gLabels is a program for creating labels and business cards. It is
11458 designed to work with various laser/ink-jet peel-off label and business
11459 card sheets that you’ll find at most office supply stores.")
11460 (license license:gpl3+)))
11461
11462 ;; Version 3.38.0 is out but requires tepl>=5 which requires glib>=2.64.
11463 (define-public gnome-latex
11464 (package
11465 (name "gnome-latex")
11466 (version "3.36.0")
11467 (source
11468 (origin
11469 (method url-fetch)
11470 (uri (string-append "mirror://gnome/sources/" name "/"
11471 (version-major+minor version) "/"
11472 "gnome-latex-" version ".tar.xz"))
11473 (sha256
11474 (base32 "1869kr1zhcp04mzbi67lwgk497w840dbbc7427i9yh9b9s7j6mqn"))))
11475 (build-system glib-or-gtk-build-system)
11476 (native-inputs
11477 `(("gettext" ,gettext-minimal)
11478 ("glib:bin" ,glib "bin")
11479 ("gobject-introspection" ,gobject-introspection)
11480 ("gtk-doc" ,gtk-doc)
11481 ("intltool" ,intltool)
11482 ("itstool" ,itstool)
11483 ("pkg-config" ,pkg-config)
11484 ("vala" ,vala)))
11485 (inputs
11486 `(("amtk" ,amtk)
11487 ("dconf" ,dconf)
11488 ("glib" ,glib)
11489 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11490 ("gspell" ,gspell)
11491 ("gtk+" ,gtk+)
11492 ("gtksourceview" ,gtksourceview)
11493 ("libgee" ,libgee)
11494 ("tepl" ,tepl)
11495 ("uchardet" ,uchardet)))
11496 (home-page "https://wiki.gnome.org/Apps/GNOME-LaTeX")
11497 (synopsis "LaTeX editor for the GNOME desktop")
11498 (description
11499 "GNOME LaTeX is a LaTeX editor for the GNOME desktop. It has features
11500 such as build tools, completion of LaTeX commands, structure navigation,
11501 symbol tables, document templates, project management, spell-checking, menus
11502 and toolbars.")
11503 (license license:gpl3+)))
11504
11505 (define-public setzer
11506 (package
11507 (name "setzer")
11508 (version "0.3.8")
11509 (source
11510 (origin
11511 (method git-fetch)
11512 (uri (git-reference
11513 (url "https://github.com/cvfosammmm/Setzer")
11514 (commit (string-append "v" version))))
11515 (file-name (git-file-name name version))
11516 (sha256
11517 (base32 "1f5qmkz4hzn54sh56z3hw8zrvg93xlz62ggzlzyg7vgsr83kpns9"))))
11518 (build-system meson-build-system)
11519 (arguments
11520 `(#:glib-or-gtk? #t
11521 #:phases
11522 (modify-phases %standard-phases
11523 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
11524 (lambda* (#:key outputs #:allow-other-keys)
11525 (let ((prog (string-append (assoc-ref outputs "out")
11526 "/bin/setzer"))
11527 (pylib (string-append (assoc-ref outputs "out")
11528 "/lib/python"
11529 ,(version-major+minor
11530 (package-version python))
11531 "/site-packages")))
11532 (wrap-program prog
11533 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
11534 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11535 #t))))))
11536 (native-inputs
11537 `(("desktop-file-utils" ,desktop-file-utils)
11538 ("gettext" ,gettext-minimal)
11539 ("glib:bin" ,glib "bin")
11540 ("gobject-introspection" ,gobject-introspection)
11541 ("gtk+:bin" ,gtk+ "bin")))
11542 (inputs
11543 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11544 ("gspell" ,gspell)
11545 ("gtk+" ,gtk+)
11546 ("gtksourceview" ,gtksourceview)
11547 ("pango" ,pango)
11548 ("poppler" ,poppler)
11549 ("python-pycairo" ,python-pycairo)
11550 ("python-pygobject" ,python-pygobject)
11551 ("python-pyxdg" ,python-pyxdg)
11552 ("webkitgtk" ,webkitgtk)
11553 ("xdg-utils" ,xdg-utils)))
11554 (home-page "https://www.cvfosammmm.org/setzer/")
11555 (synopsis "LaTeX editor written in Python with GTK+")
11556 (description
11557 "Setzer is a simple yet full-featured LaTeX editor written in Python with
11558 GTK+. It integrates well with the GNOME desktop environment.")
11559 (license license:gpl3+)))
11560
11561 (define-public libratbag
11562 (package
11563 (name "libratbag")
11564 (version "0.14")
11565 (source
11566 (origin
11567 (method git-fetch)
11568 (uri (git-reference
11569 (url "https://github.com/libratbag/libratbag")
11570 (commit (string-append "v" version))))
11571 (file-name (git-file-name name version))
11572 (sha256
11573 (base32 "1fpwp2sj8mf98bqasq2h8qwgprxi7k3iw33gcfid3d1lbyiacw0x"))))
11574 (build-system meson-build-system)
11575 (arguments
11576 `(#:configure-flags
11577 (list "-Dsystemd=false"
11578 "-Dlogind-provider=elogind")
11579 #:phases
11580 (modify-phases %standard-phases
11581 (add-after 'install 'wrap
11582 (lambda* (#:key inputs outputs #:allow-other-keys)
11583 (let* ((out (assoc-ref outputs "out"))
11584 (site (string-append
11585 "/lib/python"
11586 ,(version-major+minor (package-version python))
11587 "/site-packages"))
11588 (evdev (string-append
11589 (assoc-ref inputs "python-evdev") site))
11590 (pygo (string-append
11591 (assoc-ref inputs "python-pygobject") site))
11592 (python-wrap
11593 `("PYTHONPATH" = (,evdev ,pygo))))
11594 (wrap-program (string-append out "/bin/" "ratbagctl")
11595 python-wrap)
11596 #t))))))
11597 (native-inputs
11598 `(("check" ,check)
11599 ("pkg-config" ,pkg-config)
11600 ("swig" ,swig)
11601 ("valgrind" ,valgrind)))
11602 (inputs
11603 `(("glib" ,glib)
11604 ("json-glib" ,json-glib)
11605 ("libevdev" ,libevdev)
11606 ("libsystemd" ,elogind)
11607 ("libunistring" ,libunistring)
11608 ("python-evdev" ,python-evdev)
11609 ("python-pygobject" ,python-pygobject)
11610 ("udev" ,eudev)))
11611 (home-page "https://github.com/libratbag/libratbag")
11612 (synopsis "DBus daemon and utility for configuring gaming mice")
11613 (description "libratbag provides @command{ratbagd}, a DBus daemon to
11614 configure input devices, mainly gaming mice. The daemon provides a generic
11615 way to access the various features exposed by these mice and abstracts away
11616 hardware-specific and kernel-specific quirks. There is also the
11617 @command{ratbagctl} command line interface for configuring devices.
11618
11619 libratbag currently supports devices from Logitech, Etekcity, GSkill, Roccat,
11620 Steelseries.
11621
11622 The ratbagd DBus service can be enabled by adding the following service to
11623 your operating-system definition:
11624
11625 (simple-service 'ratbagd dbus-root-service-type (list libratbag))")
11626 (license license:expat)))
11627
11628 (define-public piper
11629 (package
11630 (name "piper")
11631 (version "0.5.1")
11632 (source
11633 (origin
11634 (method git-fetch)
11635 (uri (git-reference
11636 (url "https://github.com/libratbag/piper")
11637 (commit version)))
11638 (sha256
11639 (base32 "1nfjnsiwg2rs6gkjsxzhr2708i6di149dgwq3cf6l12rxqpb8arj"))
11640 (file-name (git-file-name name version))))
11641 (build-system meson-build-system)
11642 (native-inputs
11643 `(("gettext" ,gettext-minimal)
11644 ("glib:bin" ,glib "bin")
11645 ("gobject-introspection" ,gobject-introspection)
11646 ("pkg-config" ,pkg-config)
11647 ("python-flake8" ,python-flake8)))
11648 (inputs
11649 `(("adwaita-icon-theme" ,adwaita-icon-theme)
11650 ("gtk" ,gtk+)
11651 ("gtk:bin" ,gtk+ "bin")
11652 ("librsvg" ,librsvg)
11653 ("python-evdev" ,python-evdev)
11654 ("python-lxml" ,python-lxml)
11655 ("python-pycairo" ,python-pycairo)
11656 ("python-pygobject" ,python-pygobject)))
11657 (arguments
11658 `(#:imported-modules ((guix build python-build-system)
11659 ,@%meson-build-system-modules)
11660 #:modules (((guix build python-build-system) #:prefix python:)
11661 (guix build meson-build-system)
11662 (guix build utils))
11663 #:tests? #f ;; The flake8 test fails trying to validate piper.in as code.
11664 #:phases
11665 (modify-phases %standard-phases
11666 (add-after 'unpack 'dont-update-gtk-icon-cache
11667 (lambda _
11668 (substitute* "meson.build"
11669 (("meson.add_install_script('meson_install.sh')") ""))
11670 #t))
11671 ;; TODO: Switch to wrap-script when it is fixed.
11672 (add-after 'install 'wrap-python
11673 (assoc-ref python:%standard-phases 'wrap))
11674 (add-after 'wrap-python 'wrap
11675 (lambda* (#:key outputs #:allow-other-keys)
11676 (wrap-program
11677 (string-append (assoc-ref outputs "out" )"/bin/piper")
11678 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11679 #t)))))
11680 (home-page "https://github.com/libratbag/piper/")
11681 (synopsis "Configure bindings and LEDs on gaming mice")
11682 (description "Piper is a GTK+ application for configuring gaming mice with
11683 onboard configuration for key bindings via libratbag. Piper requires
11684 a @command{ratbagd} daemon running with root privileges. It can be run
11685 manually as root, but is preferably configured as a DBus service that can
11686 launch on demand. This can be configured by enabling the following service,
11687 provided there is a DBus service present:
11688
11689 (simple-service 'ratbagd dbus-root-service-type (list libratbag))")
11690 (license license:gpl2)))
11691
11692 (define-public parlatype
11693 (package
11694 (name "parlatype")
11695 (version "2.1")
11696 (source
11697 (origin
11698 (method git-fetch)
11699 (uri (git-reference
11700 (url "https://github.com/gkarsay/parlatype")
11701 (commit (string-append "v" version))))
11702 (file-name (git-file-name name version))
11703 (sha256
11704 (base32 "1c15ja0rwz3jj8bnqdq0nmqka39iwrhy8krdv2a2x8nl4shfpmv0"))))
11705 (build-system meson-build-system)
11706 (arguments
11707 `(#:glib-or-gtk? #t
11708 #:tests? #f ;require internet access
11709 #:phases
11710 (modify-phases %standard-phases
11711 (add-after 'install 'wrap-parlatype
11712 ;; Add gstreamer plugin provided in this package to system's
11713 ;; plugins.
11714 (lambda* (#:key outputs #:allow-other-keys)
11715 (let* ((out (assoc-ref outputs "out"))
11716 (gst-plugin-path (string-append
11717 out "/lib/gstreamer-1.0/"
11718 ":"
11719 (getenv "GST_PLUGIN_SYSTEM_PATH"))))
11720 (wrap-program (string-append out "/bin/parlatype")
11721 `("GST_PLUGIN_SYSTEM_PATH" ":" = (,gst-plugin-path))))
11722 #t)))))
11723 (native-inputs
11724 `(("appstream-glib" ,appstream-glib)
11725 ("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
11726 ("gettext" ,gettext-minimal)
11727 ("glib" ,glib "bin") ;for glib-compile-resources
11728 ("pkg-config" ,pkg-config)
11729 ("yelp-tools" ,yelp-tools)))
11730 (inputs
11731 `(("gst-plugins-base" ,gst-plugins-base)
11732 ("gst-plugins-good" ,gst-plugins-good)
11733 ("gstreamer" ,gstreamer)
11734 ("gtk+" ,gtk+)
11735 ("pocketsphinx" ,pocketsphinx)
11736 ("pulseaudio" ,pulseaudio)
11737 ("sphinxbase" ,sphinxbase)))
11738 (home-page "http://gkarsay.github.io/parlatype/")
11739 (synopsis "GNOME audio player for transcription")
11740 (description "Parlatype is an audio player for the GNOME desktop
11741 environment. Its main purpose is the manual transcription of spoken
11742 audio files.")
11743 (license license:gpl3+)))
11744
11745 (define-public jsonrpc-glib
11746 (package
11747 (name "jsonrpc-glib")
11748 (version "3.34.0")
11749 (source (origin
11750 (method url-fetch)
11751 (uri (string-append "mirror://gnome/sources/" name "/"
11752 (version-major+minor version) "/"
11753 name "-" version ".tar.xz"))
11754 (sha256
11755 (base32
11756 "0j05x4xv2cp3cbmp30m68z8g4rdw7b030ip4wszyfj9ya15v5kni"))))
11757 (build-system meson-build-system)
11758 (inputs
11759 `(("json-glib" ,json-glib)
11760 ("glib" ,glib)))
11761 (native-inputs
11762 `(("pkg-config" ,pkg-config)
11763 ("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
11764 ("gobject-introspection" ,gobject-introspection)
11765 ("vala" ,vala)))
11766 (home-page "https://gitlab.gnome.org/GNOME/jsonrpc-glib")
11767 (synopsis "JSON-RPC library for GLib")
11768 (description "Jsonrpc-GLib is a library to communicate with JSON-RPC based
11769 peers in either a synchronous or asynchronous fashion. It also allows
11770 communicating using the GVariant serialization format instead of JSON when
11771 both peers support it. You might want that when communicating on a single
11772 host to avoid parser overhead and memory-allocator fragmentation.")
11773 (license license:lgpl2.1+)))
11774
11775 (define-public feedbackd
11776 (package
11777 (name "feedbackd")
11778 (version "0.0.0+git20200527")
11779 (source (origin
11780 (method git-fetch)
11781 (uri (git-reference
11782 (url "https://source.puri.sm/Librem5/feedbackd.git")
11783 (commit (string-append "v" version))))
11784 (file-name (git-file-name name version))
11785 (sha256
11786 (base32
11787 "1wbkzxnqjydfgjvp7vz4ghczcz740zcb1yn90cb6gb5md4n6qx2y"))))
11788 (build-system meson-build-system)
11789 (native-inputs
11790 `(("glib:bin" ,glib "bin")
11791 ("gobject-introspection" ,gobject-introspection)
11792 ("pkg-config" ,pkg-config)
11793 ("vala" ,vala)))
11794 (inputs
11795 `(("dbus" ,dbus)
11796 ("gsound" ,gsound)
11797 ("json-glib" ,json-glib)
11798 ("libgudev" ,libgudev)))
11799 (propagated-inputs
11800 `(("glib" ,glib))) ; in Requires of libfeedback-0.0.pc
11801 (synopsis "Haptic/visual/audio feedback via DBus")
11802 (description "Feedbackd provides a DBus daemon to act on events to provide
11803 haptic, visual and audio feedback. It offers the libfeedbackd library and
11804 GObject introspection bindings.")
11805 (home-page "https://source.puri.sm/Librem5/feedbackd")
11806 (license (list license:lgpl2.1+ ; libfeedbackd
11807 license:lgpl3+)))) ; the rest
11808
11809 (define-public sysprof
11810 (package
11811 (name "sysprof")
11812 (version "3.36.0")
11813 (source
11814 (origin
11815 (method url-fetch)
11816 (uri (string-append "mirror://gnome/sources/sysprof/"
11817 (version-major+minor version) "/"
11818 "sysprof-" version ".tar.xz"))
11819 (sha256
11820 (base32 "024i0gzqnm79rpr4gqxdvcj6gvf82xdlcp2p1k9ikcppmi6xnw46"))))
11821 (build-system meson-build-system)
11822 (arguments
11823 `(#:configure-flags
11824 (list (string-append "-Dsystemdunitdir="
11825 %output
11826 "/share/systemd"))
11827 #:tests? #f ; 3/4 test-model-filter barfs some dbus nonsense
11828 #:phases
11829 (modify-phases %standard-phases
11830 (add-after 'unpack 'patch-install-script
11831 (lambda _
11832 (substitute* "build-aux/meson/post_install.sh"
11833 (("gtk-update-icon-cache") "true")
11834 (("update-desktop-database") "true"))
11835 #t)))))
11836 (inputs
11837 `(("glib" ,glib)
11838 ("gtk+" ,gtk+)
11839 ("libdazzle" ,libdazzle)
11840 ("polkit" ,polkit)))
11841 (native-inputs
11842 `(("gettext" ,gettext-minimal)
11843 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
11844 ("itstool" ,itstool)
11845 ("pkg-config" ,pkg-config)
11846 ("xmllint" ,libxml2)))
11847 ;; This home page is so woefully out of date as to be essentially useless.
11848 ;; (home-page "http://www.sysprof.com")
11849 (home-page "https://wiki.gnome.org/Apps/Sysprof")
11850 (synopsis "System-wide performance profiler for GNU/Linux")
11851 (description
11852 "Sysprof performs detailed, accurate, and fast CPU profiling of an entire
11853 GNU/Linux system including the kernel and all user-space applications. This
11854 helps find the function(s) in which a program spends most of its time.
11855
11856 It uses the kernel's built-in @code{ptrace} feature and handles shared
11857 libraries. Applications do not need to be recompiled--or even restarted.")
11858 (license license:gpl3+)))
11859
11860 (define-public gnome-builder
11861 (package
11862 (name "gnome-builder")
11863 (version "3.36.1")
11864 (source (origin
11865 (method url-fetch)
11866 (uri (string-append "mirror://gnome/sources/" name "/"
11867 (version-major+minor version) "/"
11868 name "-" version ".tar.xz"))
11869 (sha256
11870 (base32
11871 "17pvmd5jypar8dkr6w56hvf7jnq4l1wih2wwgkrv7sblr7rkkar2"))))
11872 (build-system meson-build-system)
11873 (arguments
11874 `(#:configure-flags (list "-Dnetwork_tests=false"
11875 ;; TODO: Enable all plugins...
11876 "-Dplugin_clang=false"
11877 "-Dplugin_flatpak=false"
11878 "-Dplugin_glade=false"
11879 ;; XXX: This one has been shown not to work in
11880 ;; <https://issues.guix.gnu.org/45272>
11881 "-Dplugin_jedi=false"
11882 ;; ... except this one.
11883 "-Dplugin_update_manager=false")
11884 #:phases
11885 (modify-phases %standard-phases
11886 (add-after 'unpack 'patch-meson
11887 (lambda* (#:key inputs #:allow-other-keys)
11888 (substitute* "build-aux/meson/post_install.py"
11889 (("gtk-update-icon-cache") "true")
11890 (("update-desktop-database") "true"))
11891 (substitute* "src/libide/meson.build"
11892 (("/usr/lib")
11893 (string-append (assoc-ref inputs "python-pygobject")
11894 "/lib")))
11895 #t))
11896 (add-after 'configure 'fix-ninja
11897 (lambda _
11898 ;; #43296: meson(?) incorrectly assumes we want to link
11899 ;; this PIE against a static libselinux.
11900 (substitute* "build.ninja"
11901 (("libselinux\\.a") "libselinux.so"))
11902 #t))
11903 (add-before 'check 'pre-check
11904 (lambda _
11905 (system "Xvfb :1 &")
11906 (setenv "DISPLAY" ":1")
11907 #t)))))
11908 (inputs
11909 `(("devhelp" ,devhelp)
11910 ("gspell" ,gspell)
11911 ("gtk+" ,gtk+)
11912 ("json-glib" ,json-glib)
11913 ("jsonrpc-glib" ,jsonrpc-glib)
11914 ("libdazzle" ,libdazzle)
11915 ("libgit2-glib" ,libgit2-glib)
11916 ("libpeas" ,libpeas)
11917 ("python-pygobject" ,python-pygobject)
11918 ("sysprof" ,sysprof)
11919 ("template-glib" ,template-glib)
11920 ("vte" ,vte)
11921 ("webkitgtk" ,webkitgtk)))
11922 (propagated-inputs
11923 `(("gtksourceview" ,gtksourceview))) ;needed for settings
11924 (native-inputs
11925 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
11926 ("glib:bin" ,glib "bin")
11927 ("gettext" ,gettext-minimal)
11928 ("pkg-config" ,pkg-config)
11929 ("vala" ,vala)
11930 ("xorg-server" ,xorg-server-for-tests)))
11931 (home-page "https://wiki.gnome.org/Apps/Builder")
11932 (synopsis "Toolsmith for GNOME-based applications")
11933 (description "Builder aims to be an integrated development
11934 environment (IDE) for writing GNOME-based software. It features fuzzy search,
11935 auto-completion, a mini code map, documentation browsing, Git integration, an
11936 integrated profiler via Sysprof, debugging support, and more.")
11937 (license license:gpl3+)))
11938
11939 (define-public komikku
11940 (package
11941 (name "komikku")
11942 (version "0.24.0")
11943 (source
11944 (origin
11945 (method git-fetch)
11946 (uri (git-reference
11947 (url "https://gitlab.com/valos/Komikku/")
11948 (commit (string-append "v" version))))
11949 (file-name (git-file-name name version))
11950 (sha256
11951 (base32
11952 "010p32zrim245y0l784yp0rasqcqlyr3lrxwl3r1876x83qhs6q3"))))
11953 (build-system meson-build-system)
11954 (arguments
11955 `(#:glib-or-gtk? #t
11956 #:phases
11957 (modify-phases %standard-phases
11958 (add-after 'unpack 'patch-sources
11959 (lambda _
11960 (substitute* "komikku/utils.py"
11961 (("from komikku\\.servers import get_servers_list")
11962 ;; code following that line should migrate old databases
11963 ;; but the line itself results in an import error
11964 "return data_dir_path"))))
11965 (add-after 'unpack 'skip-gtk-update-icon-cache
11966 (lambda _
11967 (substitute* "meson_post_install.py"
11968 (("gtk-update-icon-cache") (which "true")))
11969 #t))
11970 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
11971 (lambda* (#:key outputs #:allow-other-keys)
11972 (let ((prog (string-append (assoc-ref outputs "out")
11973 "/bin/komikku")))
11974 (wrap-program prog
11975 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
11976 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11977 #t))))))
11978 (inputs
11979 `(("gtk+" ,gtk+)
11980 ("libhandy" ,libhandy)
11981 ("libnotify" ,libnotify)
11982 ("libsecret" ,libsecret)
11983 ("python-beautifulsoup4" ,python-beautifulsoup4)
11984 ("python-dateparser" ,python-dateparser)
11985 ("python-keyring" ,python-keyring)
11986 ("python-lxml" ,python-lxml)
11987 ("python-magic" ,python-magic)
11988 ("python-pillow" ,python-pillow)
11989 ("python-pure-protobuf" ,python-pure-protobuf)
11990 ("python-pycairo" ,python-pycairo)
11991 ("python-pygobject" ,python-pygobject)
11992 ("python-requests" ,python-requests)
11993 ("python-unidecode" ,python-unidecode)))
11994 (native-inputs
11995 `(("desktop-file-utils" ,desktop-file-utils)
11996 ("gettext" ,gettext-minimal)
11997 ("glib:bin" ,glib "bin")
11998 ("gobject-introspection" ,gobject-introspection)
11999 ("pkg-config" ,pkg-config)))
12000 (home-page "https://gitlab.com/valos/Komikku")
12001 (synopsis "Manga reader for GNOME")
12002 (description "Komikku is an online/offline manga reader for GNOME,
12003 developed with the aim of being used with the Librem 5 phone.")
12004 (license license:gpl3+)))
12005
12006 (define-public libgda
12007 (package
12008 (name "libgda")
12009 (version "5.2.10")
12010 (source
12011 (origin
12012 (method git-fetch)
12013 (uri (git-reference
12014 (url "https://gitlab.gnome.org/GNOME/libgda.git/")
12015 (commit (string-append "LIBGDA_" (string-replace-substring
12016 version "." "_")))))
12017 (file-name (git-file-name name version))
12018 (sha256
12019 (base32 "18rg773gq9v3cdywpmrp12c5xyp97ir9yqjinccpi22sksb1kl8a"))))
12020 (build-system gnu-build-system)
12021 (arguments
12022 `(#:configure-flags '("--enable-vala")
12023 ;; There's a race between check_cnc_lock and check_threaded_cnc
12024 ;; in tests/multi-threading.
12025 #:parallel-tests? #f
12026 #:phases
12027 (modify-phases %standard-phases
12028 (add-after 'unpack 'fix-glade-install
12029 (lambda _
12030 (substitute* "configure.ac"
12031 (("`\\$PKG_CONFIG --variable=catalogdir gladeui-2\\.0`")
12032 "${datadir}/glade/catalogs")
12033 (("`\\$PKG_CONFIG --variable=pixmapdir gladeui-2\\.0`")
12034 "${datadir}/glade/pixmaps"))
12035 #t))
12036 (add-before 'check 'pre-check
12037 (lambda* (#:key inputs #:allow-other-keys)
12038 ;; Tests require a running X server.
12039 (system "Xvfb :1 &")
12040 (setenv "DISPLAY" ":1")
12041 #t))
12042 (add-after 'install 'symlink-glade-module
12043 (lambda* (#:key outputs #:allow-other-keys)
12044 (let* ((shlib "libgda-ui-5.0.so")
12045 (out (assoc-ref outputs "out"))
12046 (out/lib (string-append out "/lib"))
12047 (moduledir (string-append out/lib "/glade/modules")))
12048 (mkdir-p moduledir)
12049 (symlink (string-append out/lib "/" shlib)
12050 (string-append moduledir "/" shlib))
12051 #t))))))
12052 (propagated-inputs
12053 `(("libxml2" ,libxml2))) ; required by libgda-5.0.pc
12054 (inputs
12055 `(("glib" ,glib)
12056 ("glade" ,glade3)
12057 ("gtk+" ,gtk+)
12058 ("libsecret" ,libsecret)
12059 ("libxslt" ,libxslt)
12060 ("openssl" ,openssl)
12061 ("vala" ,vala)))
12062 (native-inputs
12063 `(("autoconf" ,autoconf)
12064 ("autoconf-archive" ,autoconf-archive)
12065 ("automake" ,automake)
12066 ("glib:bin" ,glib "bin")
12067 ("gnome-common" ,gnome-common)
12068 ("gobject-introspection" ,gobject-introspection)
12069 ("gtk-doc" ,gtk-doc)
12070 ("intltool" ,intltool)
12071 ("libtool" ,libtool)
12072 ("pkg-config" ,pkg-config)
12073 ("vala" ,vala)
12074 ("which" ,which)
12075 ("xorg-server" ,xorg-server-for-tests)
12076 ("yelp-tools" ,yelp-tools)))
12077 (home-page "https://gitlab.gnome.org/GNOME/libgda")
12078 (synopsis "Uniform data access")
12079 (description
12080 "GNU Data Access (GDA) is an attempt to provide uniform access to
12081 different kinds of data sources (databases, information servers, mail spools,
12082 etc). It is a complete architecture that provides all you need to access
12083 your data.")
12084 (license license:lgpl2.1+)))
12085
12086 (define-public gtranslator
12087 (package
12088 (name "gtranslator")
12089 (version "3.36.0")
12090 (source (origin
12091 (method url-fetch)
12092 (uri (string-append "mirror://gnome/sources/" name "/"
12093 (version-major+minor version) "/"
12094 name "-" version ".tar.xz"))
12095 (sha256
12096 (base32
12097 "1lxd2nkji4jk8g2xmyc1a1r3ww710ddk91zh9psmx8xlb4xivaid"))))
12098 (build-system meson-build-system)
12099 (inputs
12100 `(("json-glib" ,json-glib)
12101 ("jsonrpc-glib" ,jsonrpc-glib)
12102 ("gettext" ,gettext-minimal)
12103 ("glib" ,glib)
12104 ("gtk+" ,gtk+)
12105 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
12106 ("gspell" ,gspell)
12107 ("libdazzle" ,libdazzle)
12108 ("libgda" ,libgda)
12109 ("libsoup" ,libsoup)))
12110 (native-inputs
12111 `(("glib:bin" ,glib "bin")
12112 ("itstool" ,itstool)
12113 ("pkg-config" ,pkg-config)))
12114 (propagated-inputs
12115 `(("gtksourceview" ,gtksourceview))) ; required for source view
12116 (arguments
12117 `(#:build-type "release"
12118 #:glib-or-gtk? #t
12119 #:phases
12120 (modify-phases %standard-phases
12121 (add-after 'unpack 'skip-gtk-update-icon-cache
12122 (lambda _
12123 (substitute* "build-aux/meson/meson_post_install.py"
12124 (("gtk-update-icon-cache") (which "true")))
12125 #t)))))
12126 (home-page "https://wiki.gnome.org/Apps/Gtranslator")
12127 (synopsis "Translation making program")
12128 (description
12129 "gtranslator is a quite comfortable gettext po/po.gz/(g)mo files editor
12130 for the GNOME 3.x platform with many features. It aims to be a very complete
12131 editing environment for translation issues within the GNU gettext/GNOME desktop
12132 world.")
12133 (license license:gpl3+)))