gnu: gvfs: Add 'lint-hidden-cve' property.
[jackhill/guix/guix.git] / gnu / packages / gnome.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
5 ;;; Copyright © 2014, 2016, 2020 Eric Bavier <bavier@posteo.net>
6 ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
7 ;;; Copyright © 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
8 ;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
9 ;;; Copyright © 2015, 2017 Andy Wingo <wingo@igalia.com>
10 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
11 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2015, 2016, 2017, 2018, 2021 Mark H Weaver <mhw@netris.org>
13 ;;; Copyright © 2015 David Thompson <davet@gnu.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
15 ;;; Copyright © 2016, 2017, 2018 Rene Saavedra <pacoon@protonmail.com>
16 ;;; Copyright © 2016 Jochem Raat <jchmrt@riseup.net>
17 ;;; Copyright © 2016, 2017, 2019 Kei Kebreau <kkebreau@posteo.net>
18 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
19 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
20 ;;; Copyright © 2016, 2018 Leo Famulari <leo@famulari.name>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
23 ;;; Copyright © 2016 David Craven <david@craven.ch>
24 ;;; Copyright © 2016–2021 Tobias Geerinckx-Rice <me@tobias.gr>
25 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
26 ;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com>
27 ;;; Copyright © 2017, 2018 nee <nee-git@hidamari.blue>
28 ;;; Copyright © 2017 Chris Marusich <cmmarusich@gmail.com>
29 ;;; Copyright © 2017 Mohammed Sadiq <sadiq@sadiqpk.org>
30 ;;; Copyright © 2017, 2020 Brendan Tildesley <mail@brendan.scot>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2018 Jovany Leandro G.C <bit4bit@riseup.net>
33 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
34 ;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
35 ;;; Copyright © 2018, 2019 Timothy Sample <samplet@ngyro.com>
36 ;;; Copyright © 2019 Danny Milosavljevic <dannym@scratchpost.org>
37 ;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
38 ;;; Copyright © 2019 Florian Pelz <pelzflorian@pelzflorian.de>
39 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
40 ;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
41 ;;; Copyright © 2019 Jonathan Frederickson <jonathan@terracrypt.net>
42 ;;; Copyright © 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
43 ;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
44 ;;; Copyright © 2019 David Wilson <david@daviwil.com>
45 ;;; Copyright © 2019, 2020 Raghav Gururajan <raghavgururajan@disroot.org>
46 ;;; Copyright © 2019, 2020 Jonathan Brielmaier <jonathan.brielmaier@web.de>
47 ;;; Copyright © 2019, 2020, 2021 Leo Prikler <leo.prikler@student.tugraz.at>
48 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
49 ;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
50 ;;; Copyright © 2020 raingloom <raingloom@riseup.net>
51 ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
52 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
53 ;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
54 ;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
55 ;;; Copyright © 2020, 2021 Brice Waegeneire <brice@waegenei.re>
56 ;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
57 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
58 ;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
59 ;;; Copyright © 2020, 2021 Andy Tai <atai@atai.org>
60 ;;; Copyright © 2020, 2021 Sébastien Lerique <sl@eauchat.org>
61 ;;;
62 ;;; This file is part of GNU Guix.
63 ;;;
64 ;;; GNU Guix is free software; you can redistribute it and/or modify it
65 ;;; under the terms of the GNU General Public License as published by
66 ;;; the Free Software Foundation; either version 3 of the License, or (at
67 ;;; your option) any later version.
68 ;;;
69 ;;; GNU Guix is distributed in the hope that it will be useful, but
70 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
71 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
72 ;;; GNU General Public License for more details.
73 ;;;
74 ;;; You should have received a copy of the GNU General Public License
75 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
76
77 (define-module (gnu packages gnome)
78 #:use-module (gnu packages)
79 #:use-module (gnu packages admin)
80 #:use-module (gnu packages aidc)
81 #:use-module (gnu packages aspell)
82 #:use-module (gnu packages autotools)
83 #:use-module (gnu packages avahi)
84 #:use-module (gnu packages backup)
85 #:use-module (gnu packages base)
86 #:use-module (gnu packages bash)
87 #:use-module (gnu packages bison)
88 #:use-module (gnu packages boost)
89 #:use-module (gnu packages build-tools)
90 #:use-module (gnu packages calendar)
91 #:use-module (gnu packages cdrom)
92 #:use-module (gnu packages check)
93 #:use-module (gnu packages cmake)
94 #:use-module (gnu packages compression)
95 #:use-module (gnu packages crates-io)
96 #:use-module (gnu packages crates-graphics)
97 #:use-module (gnu packages crates-gtk)
98 #:use-module (gnu packages cups)
99 #:use-module (gnu packages curl)
100 #:use-module (gnu packages cyrus-sasl)
101 #:use-module (gnu packages databases)
102 #:use-module (gnu packages dbm)
103 #:use-module (gnu packages djvu)
104 #:use-module (gnu packages dns)
105 #:use-module (gnu packages docbook)
106 #:use-module (gnu packages documentation)
107 #:use-module (gnu packages enchant)
108 #:use-module (gnu packages flex)
109 #:use-module (gnu packages fonts)
110 #:use-module (gnu packages file-systems)
111 #:use-module (gnu packages fontutils)
112 #:use-module (gnu packages freedesktop)
113 #:use-module (gnu packages game-development)
114 #:use-module (gnu packages gcc)
115 #:use-module (gnu packages gettext)
116 #:use-module (gnu packages ghostscript)
117 #:use-module (gnu packages gimp)
118 #:use-module (gnu packages gl)
119 #:use-module (gnu packages glib)
120 #:use-module (gnu packages gnupg)
121 #:use-module (gnu packages gnuzilla)
122 #:use-module (gnu packages geo)
123 #:use-module (gnu packages gperf)
124 #:use-module (gnu packages graphviz)
125 #:use-module (gnu packages gstreamer)
126 #:use-module (gnu packages gtk)
127 #:use-module (gnu packages guile)
128 #:use-module (gnu packages ibus)
129 #:use-module (gnu packages icu4c)
130 #:use-module (gnu packages image)
131 #:use-module (gnu packages imagemagick)
132 #:use-module (gnu packages inkscape)
133 #:use-module (gnu packages iso-codes)
134 #:use-module (gnu packages kerberos)
135 #:use-module (gnu packages libcanberra)
136 #:use-module (gnu packages libffi)
137 #:use-module (gnu packages libunistring)
138 #:use-module (gnu packages libunwind)
139 #:use-module (gnu packages libusb)
140 #:use-module (gnu packages linux)
141 #:use-module (gnu packages lirc)
142 #:use-module (gnu packages lua)
143 #:use-module (gnu packages mail)
144 #:use-module (gnu packages mp3)
145 #:use-module (gnu packages multiprecision)
146 #:use-module (gnu packages music)
147 #:use-module (gnu packages ncurses)
148 #:use-module (gnu packages nettle)
149 #:use-module (gnu packages networking)
150 #:use-module (gnu packages ninja)
151 #:use-module (gnu packages node)
152 #:use-module (gnu packages nss)
153 #:use-module (gnu packages ocr)
154 #:use-module (gnu packages openldap)
155 #:use-module (gnu packages package-management)
156 #:use-module (gnu packages password-utils)
157 #:use-module (gnu packages pcre)
158 #:use-module (gnu packages pdf)
159 #:use-module (gnu packages perl)
160 #:use-module (gnu packages photo)
161 #:use-module (gnu packages php)
162 #:use-module (gnu packages pkg-config)
163 #:use-module (gnu packages polkit)
164 #:use-module (gnu packages popt)
165 #:use-module (gnu packages pretty-print)
166 #:use-module (gnu packages protobuf)
167 #:use-module (gnu packages pulseaudio)
168 #:use-module (gnu packages python)
169 #:use-module (gnu packages python-crypto)
170 #:use-module (gnu packages python-web)
171 #:use-module (gnu packages python-xyz)
172 #:use-module (gnu packages rdesktop)
173 #:use-module (gnu packages rdf)
174 #:use-module (gnu packages readline)
175 #:use-module (gnu packages ruby)
176 #:use-module (gnu packages rust)
177 #:use-module (gnu packages samba)
178 #:use-module (gnu packages scanner)
179 #:use-module (gnu packages sdl)
180 #:use-module (gnu packages search)
181 #:use-module (gnu packages selinux)
182 #:use-module (gnu packages slang)
183 #:use-module (gnu packages speech)
184 #:use-module (gnu packages spice)
185 #:use-module (gnu packages sqlite)
186 #:use-module (gnu packages ssh)
187 #:use-module (gnu packages swig)
188 #:use-module (gnu packages tex)
189 #:use-module (gnu packages time)
190 #:use-module (gnu packages tls)
191 #:use-module (gnu packages valgrind)
192 #:use-module (gnu packages version-control)
193 #:use-module (gnu packages video)
194 #:use-module (gnu packages virtualization)
195 #:use-module (gnu packages vpn)
196 #:use-module (gnu packages web)
197 #:use-module (gnu packages webkit)
198 #:use-module (gnu packages xdisorg)
199 #:use-module (gnu packages xiph)
200 #:use-module (gnu packages xml)
201 #:use-module (gnu packages xorg)
202 #:use-module (gnu artwork)
203 #:use-module ((guix build utils) #:select (modify-phases))
204 #:use-module (guix build-system cargo)
205 #:use-module (guix build-system cmake)
206 #:use-module (guix build-system glib-or-gtk)
207 #:use-module (guix build-system gnu)
208 #:use-module (guix build-system meson)
209 #:use-module (guix build-system python)
210 #:use-module (guix build-system trivial)
211 #:use-module (guix download)
212 #:use-module (guix git-download)
213 #:use-module ((guix licenses) #:prefix license:)
214 #:use-module (guix packages)
215 #:use-module (guix utils)
216 #:use-module (guix gexp)
217 #:use-module (guix monads)
218 #:use-module (guix store)
219 #:use-module (ice-9 match)
220 #:use-module (srfi srfi-1))
221
222 (define-public gupnp-igd
223 (package
224 (name "gupnp-igd")
225 (version "1.2.0")
226 (source
227 (origin
228 (method url-fetch)
229 (uri
230 (string-append "mirror://gnome/sources/" name "/"
231 (version-major+minor version) "/"
232 name "-" version ".tar.xz"))
233 (sha256
234 (base32 "1q9bw12ibih3yxpha3gm1dabyqg9gx6yxacbh4kxsgm1i84j0lab"))))
235 (build-system meson-build-system)
236 (outputs '("out" "doc"))
237 (arguments
238 `(#:glib-or-gtk? #t ; To wrap binaries and compile schemas
239 #:configure-flags (list "-Dgtk_doc=true")
240 #:phases
241 (modify-phases %standard-phases
242 (add-after 'unpack 'patch-docbook-xml
243 (lambda* (#:key inputs #:allow-other-keys)
244 (with-directory-excursion "doc"
245 (substitute* "gupnp-igd-docs.xml"
246 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
247 (string-append (assoc-ref inputs "docbook-xml-4.1.2")
248 "/xml/dtd/docbook/"))))
249 #t))
250 (add-after 'install 'move-doc
251 (lambda* (#:key outputs #:allow-other-keys)
252 (let* ((out (assoc-ref outputs "out"))
253 (doc (assoc-ref outputs "doc")))
254 (mkdir-p (string-append doc "/share"))
255 (rename-file
256 (string-append out "/share/gtk-doc")
257 (string-append doc "/share/gtk-doc"))
258 #t))))))
259 (native-inputs
260 `(("docbook-xml-4.1.2" ,docbook-xml-4.1.2)
261 ("docbook-xsl" ,docbook-xsl)
262 ("glib:bin" ,glib "bin")
263 ("gobject-introspection" ,gobject-introspection)
264 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
265 ("gtk-doc" ,gtk-doc)
266 ("pkg-config" ,pkg-config)))
267 (propagated-inputs
268 `(("glib" ,glib)
269 ("glib-networking" ,glib-networking)
270 ("gssdp" ,gssdp)
271 ("gupnp" ,gupnp)
272 ("libsoup" ,libsoup)))
273 (synopsis "UPnP IGD for GNOME")
274 (description "GUPnP-IGD is a library to handle UPnP IGD port mapping.")
275 (home-page "https://gitlab.gnome.org/GNOME/gupnp-igd")
276 (license license:lgpl2.1+)))
277
278 (define-public brasero
279 (package
280 (name "brasero")
281 (version "3.12.2")
282 (source (origin
283 (method url-fetch)
284 (uri (string-append "mirror://gnome/sources/brasero/"
285 (version-major+minor version) "/"
286 "brasero-" version ".tar.xz"))
287 (sha256
288 (base32
289 "0h90y674j26rvjahb8cc0w79zx477rb6zaqcj26wzvq8kmpic8k8"))))
290 (build-system glib-or-gtk-build-system)
291 (arguments
292 `(#:configure-flags (list
293 (string-append "--with-girdir="
294 (assoc-ref %outputs "out")
295 "/share/gir-1.0")
296 (string-append "--with-typelibdir="
297 (assoc-ref %outputs "out")
298 "/lib/girepository-1.0"))
299 #:phases
300 (modify-phases %standard-phases
301 (add-before 'configure 'embed-growisofs
302 (lambda* (#:key inputs #:allow-other-keys)
303 (substitute* "plugins/growisofs/burn-growisofs.c"
304 (("\"growisofs") (string-append "\"" (which "growisofs"))))
305 #t)))))
306 (propagated-inputs
307 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
308 (native-inputs
309 `(("intltool" ,intltool)
310 ("itstool" ,itstool)
311 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
312 ("gobject-introspection" ,gobject-introspection)
313 ("pkg-config" ,pkg-config)))
314 (inputs
315 `(("dvd+rw-tools" ,dvd+rw-tools)
316 ("glib" ,glib)
317 ("gnome-doc-utils" ,gnome-doc-utils)
318 ("gstreamer" ,gstreamer)
319 ("gst-plugins-base" ,gst-plugins-base)
320 ("gtk+" ,gtk+)
321 ("libcanberra" ,libcanberra)
322 ("libice" ,libice)
323 ("libnotify" ,libnotify)
324 ("libsm" ,libsm)
325 ("libxml2" ,libxml2)
326 ("totem-pl-parser" ,totem-pl-parser)))
327 (home-page "https://wiki.gnome.org/Apps/Brasero")
328 (synopsis "CD/DVD burning tool for Gnome")
329 (description "Brasero is an application to burn CD/DVD for the Gnome
330 Desktop. It is designed to be as simple as possible and has some unique
331 features to enable users to create their discs easily and quickly.")
332 (license license:gpl2+)))
333
334 (define-public libcloudproviders
335 (package
336 (name "libcloudproviders")
337 (version "0.3.1")
338 (source
339 (origin
340 (method url-fetch)
341 (uri
342 (string-append "mirror://gnome/sources/" name "/"
343 (version-major+minor version) "/"
344 name "-" version ".tar.xz"))
345 (sha256
346 (base32 "0aars24myf6n8b8hm1n12hsgcm54097kpbpm4ba31zp1l4y22qs7"))))
347 (build-system meson-build-system)
348 (outputs '("out" "doc"))
349 (arguments
350 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
351 #:configure-flags
352 (list
353 "-Denable-gtk-doc=true")
354 #:phases
355 (modify-phases %standard-phases
356 (add-after 'install 'move-doc
357 (lambda* (#:key outputs #:allow-other-keys)
358 (let* ((out (assoc-ref outputs "out"))
359 (doc (assoc-ref outputs "doc")))
360 (mkdir-p (string-append doc "/share"))
361 (rename-file
362 (string-append out "/share/gtk-doc")
363 (string-append doc "/share/gtk-doc"))
364 #t))))))
365 (native-inputs
366 `(("glib:bin" ,glib "bin")
367 ("gobject-introspection" ,gobject-introspection)
368 ("gtk-doc" ,gtk-doc)
369 ("pkg-config" ,pkg-config)
370 ("vala" ,vala)))
371 (inputs
372 `(("glib" ,glib)
373 ("glib-networking" ,glib-networking)))
374 (synopsis "Cloudproviders Integration API")
375 (description "Libcloudproviders is a DBus API that allows cloud storage sync
376 clients to expose their services. Clients such as file managers and desktop
377 environments can then provide integrated access to the cloud providers
378 services.")
379 (home-page "https://csorianognome.wordpress.com/2015/07/07/cloud-providers/")
380 (license license:lgpl3+)))
381
382 (define-public libgrss
383 (package
384 (name "libgrss")
385 (version "0.7.0")
386 (source
387 (origin
388 (method url-fetch)
389 (uri
390 (string-append "mirror://gnome/sources/" name "/"
391 (version-major+minor version) "/"
392 name "-" version ".tar.xz"))
393 (sha256
394 (base32 "1nalslgyglvhpva3px06fj6lv5zgfg0qmj0sbxyyl5d963vc02b7"))))
395 (build-system glib-or-gtk-build-system)
396 (outputs '("out" "doc"))
397 (arguments
398 `(#:configure-flags
399 (list
400 "--enable-gtk-doc"
401 (string-append "--with-html-dir="
402 (assoc-ref %outputs "doc")
403 "/share/gtk-doc/html"))
404 #:phases
405 (modify-phases %standard-phases
406 (add-after 'unpack 'patch-docbook-xml
407 (lambda* (#:key inputs #:allow-other-keys)
408 (with-directory-excursion "doc/reference"
409 (substitute* "libgrss-docs.sgml"
410 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
411 (string-append (assoc-ref inputs "docbook-xml")
412 "/xml/dtd/docbook/"))))
413 #t)))))
414 (native-inputs
415 `(("docbook-xml" ,docbook-xml-4.1.2)
416 ("gobject-introspection" ,gobject-introspection)
417 ("gtk-doc" ,gtk-doc)
418 ("pkg-config" ,pkg-config)))
419 (propagated-inputs
420 `(("glib" ,glib)
421 ("libsoup" ,libsoup)
422 ("libxml2" ,libxml2)))
423 (synopsis "Glib library for feeds")
424 (description "LibGRSS is a Glib abstraction to handle feeds in RSS, Atom,
425 and other formats.")
426 (home-page "https://wiki.gnome.org/Projects/Libgrss")
427 (license license:lgpl3+)))
428
429 (define-public gnome-js-common
430 (package
431 (name "gnome-js-common")
432 (version "0.1.2")
433 (source
434 (origin
435 (method url-fetch)
436 (uri
437 (string-append "mirror://gnome/sources/" name "/"
438 (version-major+minor version) "/"
439 name "-" version ".tar.gz"))
440 (sha256
441 (base32 "1zv5b9bcbclzj64xd9kgql4ndmbwvvi6cl937ykw8fp21xgh8z7y"))))
442 (build-system glib-or-gtk-build-system)
443 (arguments
444 `(#:configure-flags
445 (list
446 "--disable-static")))
447 (native-inputs
448 `(("gettext" ,gettext-minimal)
449 ("intltool" ,intltool)
450 ("pkg-config" ,pkg-config)))
451 (synopsis "Common JS Modules")
452 (description "GNOME-JS-Common provides common modules for GNOME JavaScript
453 bindings.")
454 (home-page "https://wiki.gnome.org/Projects/Seed")
455 (license license:gpl3+)))
456
457 (define-public seed
458 (package
459 (name "seed")
460 (version "3.8.1")
461 (source
462 (origin
463 (method url-fetch)
464 (uri
465 (string-append "mirror://gnome/sources/" name "/"
466 (version-major+minor version) "/"
467 name "-" version ".tar.xz"))
468 (sha256
469 (base32 "0cmcxaggcdcy13j27gy8id2qsf2p2sl4bz2mwb9zhv3gzavlvjw0"))
470 (patches
471 (search-patches "seed-webkit.patch"))))
472 (build-system glib-or-gtk-build-system)
473 (outputs '("out" "doc"))
474 (arguments
475 `(#:configure-flags
476 (list
477 "--disable-static"
478 "--enable-xorg-module"
479 (string-append "--with-html-dir="
480 (assoc-ref %outputs "doc")
481 "/share/gtk-doc/html")
482 "--with-webkit=4.0")
483 #:phases
484 (modify-phases %standard-phases
485 ;; The seed-webkit.patch patches configure.ac.
486 ;; So the source files need to be re-bootstrapped.
487 (add-after 'unpack 'trigger-bootstrap
488 (lambda _
489 (for-each delete-file
490 (list
491 "configure"
492 "Makefile.in"))
493 #t))
494 (add-after 'unpack 'patch-tests
495 (lambda* (#:key outputs #:allow-other-keys)
496 (substitute* (find-files "." "\\.js$")
497 (("#!/usr/bin/env seed")
498 (string-append "#!" (getcwd) "/src/seed")))
499 #t))
500 (add-before 'build 'patch-docbook-xml
501 (lambda* (#:key inputs #:allow-other-keys)
502 (with-directory-excursion "doc"
503 (substitute* '("reference/seed-docs.sgml" "modules/book.xml")
504 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
505 (string-append (assoc-ref inputs "docbook-xml")
506 "/xml/dtd/docbook/"))))
507 #t)))))
508 (native-inputs
509 `(("autoconf" ,autoconf)
510 ("automake" ,automake)
511 ("docbook-xml" ,docbook-xml-4.1.2)
512 ("gettext" ,gettext-minimal)
513 ("gobject-introspection" ,gobject-introspection)
514 ("gtk-doc" ,gtk-doc)
515 ("intltool" ,intltool)
516 ("libtool" ,libtool)
517 ("pkg-config" ,pkg-config)))
518 (inputs
519 `(("cairo" ,cairo)
520 ("dbus" ,dbus)
521 ("dbus-glib" ,dbus-glib)
522 ("gnome-js-common" ,gnome-js-common)
523 ("gtk+" ,gtk+)
524 ("gtk+-2" ,gtk+-2)
525 ("libffi" ,libffi)
526 ("libxml2" ,libxml2)
527 ("mpfr" ,mpfr)
528 ("readline" ,readline)
529 ("sqlite" ,sqlite)
530 ("xscrnsaver" ,libxscrnsaver)))
531 (propagated-inputs
532 `(("glib" ,glib)
533 ("webkit" ,webkitgtk)))
534 (synopsis "GObject JavaScriptCore bridge")
535 (description "Seed is a library and interpreter, dynamically bridging
536 (through GObjectIntrospection) the WebKit JavaScriptCore engine, with the
537 GNOME platform. It serves as something which enables you to write standalone
538 applications in JavaScript, or easily enable your application to be extensible
539 in JavaScript.")
540 (home-page "https://wiki.gnome.org/Projects/Seed")
541 (license license:lgpl2.0+)))
542
543 (define-public libdmapsharing
544 (package
545 (name "libdmapsharing")
546 (version "3.9.10")
547 (source
548 (origin
549 (method url-fetch)
550 (uri
551 (string-append "https://www.flyn.org/projects/"
552 name "/" name "-" version ".tar.gz"))
553 (sha256
554 (base32 "152hnddwxv590cn802awv3mn27ixc3s6ac691a7z02d1c5fl45p2"))))
555 (build-system glib-or-gtk-build-system)
556 (outputs '("out" "doc"))
557 (arguments
558 `(#:tests? #f ; Tests require networking.
559 #:configure-flags
560 (list
561 "--disable-static"
562 (string-append "--with-html-dir="
563 (assoc-ref %outputs "doc")
564 "/share/gtk-doc/html"))
565 #:phases
566 (modify-phases %standard-phases
567 (add-after 'unpack 'patch-docbook-xml
568 (lambda* (#:key inputs #:allow-other-keys)
569 (with-directory-excursion "doc"
570 (substitute* "libdmapsharing-4.0-docs.xml"
571 (("http://www.oasis-open.org/docbook/xml/4.3/")
572 (string-append (assoc-ref inputs "docbook-xml")
573 "/xml/dtd/docbook/"))))
574 #t)))))
575 (native-inputs
576 `(("check" ,check)
577 ("docbook-xml" ,docbook-xml-4.3)
578 ("gobject-introspection" ,gobject-introspection)
579 ("pedansee" ,pedansee)
580 ("pkg-config" ,pkg-config)
581 ("vala" ,vala)))
582 (inputs
583 `(("avahi" ,avahi)
584 ("gdk-pixbuf" ,gdk-pixbuf+svg)
585 ("gee" ,libgee)
586 ("gst-plugins-base" ,gst-plugins-base)
587 ("gtk+" ,gtk+)))
588 (propagated-inputs
589 `(("glib" ,glib)
590 ("glib-networking" ,glib-networking)
591 ("gstreamer" ,gstreamer)
592 ("libsoup" ,libsoup)))
593 (synopsis "Media management library")
594 (description "Libdmapsharing is a library which allows programs to access,
595 share and control the playback of media content using DMAP (DAAP, DPAP & DACP).
596 It is written in C using GObject and libsoup.")
597 (home-page "https://launchpad.net/gtx")
598 (license license:lgpl2.1+)))
599
600 (define-public gtx
601 (package
602 (name "gtx")
603 (version "0.2.2")
604 (source
605 (origin
606 (method url-fetch)
607 (uri
608 (string-append "https://launchpad.net/gtx/trunk/"
609 version "/+download/gtx-" version ".tar.gz"))
610 (sha256
611 (base32 "0i4zvn5v4rf0cw3fxylk6j2pyy5lkrswdiw8jdxkys0ph0nan33n"))))
612 (build-system glib-or-gtk-build-system)
613 (outputs '("out" "doc"))
614 (arguments
615 `(#:configure-flags
616 (list
617 "--disable-static"
618 "--enable-gtk-doc"
619 (string-append "--with-html-dir="
620 (assoc-ref %outputs "doc")
621 "/share/gtk-doc/html"))))
622 (native-inputs
623 `(("gobject-introspection" ,gobject-introspection)
624 ("gtk-doc" ,gtk-doc)
625 ("pkg-config" ,pkg-config)))
626 (propagated-inputs
627 `(("glib" ,glib)))
628 (synopsis "GLib Testing Framework")
629 (description "GTX is a small collection of convenience functions intended to
630 enhance the GLib testing framework. With specific emphasis on easing the pain
631 of writing test cases for asynchronous interactions.")
632 (home-page "https://launchpad.net/gtx")
633 (license license:lgpl2.1+)))
634
635 (define-public dee
636 (package
637 (name "dee")
638 (version "1.2.7")
639 (source
640 (origin
641 (method url-fetch)
642 (uri
643 (string-append "https://launchpad.net/dee/1.0/"
644 version "/+download/dee-" version ".tar.gz"))
645 (sha256
646 (base32 "12mzffk0lyd566y46x57jlvb9af152b4dqpasr40zal4wrn37w0v"))
647 (patches
648 (search-patches "dee-vapi.patch"))))
649 (build-system glib-or-gtk-build-system)
650 (outputs '("out" "doc"))
651 (arguments
652 `(#:configure-flags
653 (list
654 "--disable-maintainer-flags"
655 (string-append "--with-pygi-overrides-dir="
656 (assoc-ref %outputs "out")
657 "/lib/python"
658 ,(version-major+minor
659 (package-version python))
660 "/site-packages/gi/overrides")
661 (string-append "--with-html-dir="
662 (assoc-ref %outputs "doc")
663 "/share/gtk-doc/html"))
664 #:phases
665 (modify-phases %standard-phases
666 (add-after 'unpack 'patch-docbook-xml
667 (lambda* (#:key inputs #:allow-other-keys)
668 (with-directory-excursion "doc/reference/dee-1.0"
669 (substitute* "dee-1.0-docs.sgml"
670 (("http://www.oasis-open.org/docbook/xml/4.3/")
671 (string-append (assoc-ref inputs "docbook-xml")
672 "/xml/dtd/docbook/"))))
673 #t))
674 (add-after 'patch-docbook-xml 'disable-failing-tests
675 (lambda _
676 (substitute* "tests/test-icu.c"
677 (("g_test_add \\(DOMAIN\"/Default/AsciiFolder\", Fixture, 0,")
678 "")
679 (("setup, test_ascii_folder, teardown\\);")
680 ""))
681 #t))
682 (add-before 'check 'pre-check
683 (lambda _
684 ;; Tests require a running dbus-daemon.
685 (system "dbus-daemon &")
686 ;; For missing '/etc/machine-id'.
687 (setenv "DBUS_FATAL_WARNINGS" "0")
688 #t)))))
689 (native-inputs
690 `(("dbus" ,dbus)
691 ("dbus-test-runner" ,dbus-test-runner)
692 ("docbook-xml" ,docbook-xml-4.3)
693 ("gobject-introspection" ,gobject-introspection)
694 ("gtk-doc" ,gtk-doc)
695 ;; Would only be required by configure flag "--enable-extended-tests".
696 ;("gtx" ,gtx)
697 ("pkg-config" ,pkg-config)
698 ("pygobject" ,python-pygobject)
699 ("python" ,python-wrapper)
700 ("vala" ,vala)))
701 (inputs
702 `(("icu" ,icu4c)))
703 (propagated-inputs
704 `(("glib" ,glib)))
705 (synopsis "Model to synchronize multiple instances over DBus")
706 (description "Dee is a library that uses DBus to provide objects allowing
707 you to create Model-View-Controller type programs across DBus. It also consists
708 of utility objects which extend DBus allowing for peer-to-peer discoverability
709 of known objects without needing a central registrar.")
710 (home-page "https://launchpad.net/dee")
711 (license
712 ;; Dual-licensed
713 (list
714 license:lgpl3+
715 license:gpl3+))))
716
717 (define-public zeitgeist
718 (package
719 (name "zeitgeist")
720 (version "1.0.3")
721 (source
722 (origin
723 (method git-fetch)
724 (uri
725 (git-reference
726 (url "https://gitlab.freedesktop.org/zeitgeist/zeitgeist.git")
727 (commit
728 (string-append "v" version))))
729 (file-name
730 (git-file-name name version))
731 (sha256
732 (base32 "0y6fyzxl5np4yskcxibd0p03h619w9ir907nhf40h02y0pk1kgkp"))))
733 (build-system glib-or-gtk-build-system)
734 (arguments
735 `(#:configure-flags
736 (list
737 "--enable-explain-queries"
738 "--enable-fts"
739 "--enable-docs")
740 #:phases
741 (modify-phases %standard-phases
742 (add-after 'unpack 'patch-docbook-xml
743 (lambda* (#:key inputs #:allow-other-keys)
744 (with-directory-excursion "doc/libzeitgeist"
745 (substitute* "zeitgeist-gtkdoc-index.sgml"
746 (("http://www.oasis-open.org/docbook/xml/4.3/")
747 (string-append (assoc-ref inputs "docbook-xml")
748 "/xml/dtd/docbook/"))))
749 #t))
750 (add-after 'patch-docbook-xml 'disable-failing-tests
751 (lambda _
752 (substitute* "test/direct/Makefile.am"
753 ((" log-test ")
754 ""))
755 (substitute* "test/c/Makefile.am"
756 ((" test-log ")
757 ""))
758 #t))
759 (add-before 'bootstrap 'remove-autogen-script
760 (lambda _
761 ;; To honor `autoreconf -vif` by build-system.
762 (delete-file "autogen.sh")
763 #t)))))
764 (native-inputs
765 `(("autoconf" ,autoconf)
766 ("automake" ,automake)
767 ("docbook-xml" ,docbook-xml-4.3)
768 ("gettext" ,gettext-minimal)
769 ("gobject-introspection" ,gobject-introspection)
770 ("gtk-doc" ,gtk-doc)
771 ("libtool" ,libtool)
772 ("pkg-config" ,pkg-config)
773 ("vala" ,vala)
774 ("xorg-server-for-tests" ,xorg-server-for-tests)))
775 (inputs
776 `(("dee-icu" ,dee)
777 ("gtk+" ,gtk+)
778 ("json-glib" ,json-glib)
779 ("sqlite" ,sqlite)
780 ("telepathy-glib" ,telepathy-glib)
781 ("python" ,python-wrapper)
782 ("python-rdflib" ,python-rdflib)
783 ("xapian-config" ,xapian)))
784 (propagated-inputs
785 `(("glib" ,glib)))
786 (synopsis "Desktop Activity Logging")
787 (description "Zeitgeist is a service which logs the users’s activities and
788 events, anywhere from files opened to websites visited and conversations. It
789 makes this information readily available for other applications to use. It is
790 able to establish relationships between items based on similarity and usage
791 patterns.")
792 (home-page "https://zeitgeist.freedesktop.org/")
793 (license
794 ;; Dual-licensed
795 (list
796 license:lgpl2.1+
797 license:gpl2+))))
798
799 (define-public gnome-recipes
800 (package
801 (name "gnome-recipes")
802 (version "2.0.4")
803 (source (origin
804 (method git-fetch)
805 (uri (git-reference
806 (url "https://gitlab.gnome.org/GNOME/recipes")
807 (commit version)))
808 (file-name (git-file-name name version))
809 (sha256
810 (base32
811 "1h049mzqnlcfqwrhmzbq3pzzdglvy2bn9fj1p8wql7a60pn8sr32"))))
812 (build-system meson-build-system)
813 (arguments
814 `(#:glib-or-gtk? #t
815 #:phases
816 (modify-phases %standard-phases
817 (add-after 'unpack 'skip-gtk-update-icon-cache
818 (lambda _
819 (substitute* "meson_post_install.py"
820 (("gtk-update-icon-cache") (which "true")))
821 #t))
822 (add-after 'unpack 'unpack-libgd
823 (lambda* (#:key inputs #:allow-other-keys)
824 (let ((libgd (assoc-ref inputs "libgd")))
825 (copy-recursively libgd "subprojects/libgd")
826 #t))))))
827 (inputs
828 `(("glib" ,glib)
829 ("gnome-autoar" ,gnome-autoar)
830 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
831 ("gspell" ,gspell)
832 ("gtk+" ,gtk+)
833 ("json-glib" ,json-glib)
834 ("libcanberra" ,libcanberra)
835 ("libsoup" ,libsoup)
836 ("rest" ,rest)))
837 (native-inputs
838 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
839 ("gettext" ,gettext-minimal)
840 ("glib:bin" ,glib "bin")
841 ("itstool" ,itstool)
842 ("libgd"
843 ,(origin
844 (method git-fetch)
845 (uri (git-reference
846 (url "https://gitlab.gnome.org/GNOME/libgd")
847 (commit "c7c7ff4e05d3fe82854219091cf116cce6b19de0")))
848 (file-name (git-file-name "libgd" version))
849 (sha256
850 (base32 "16yld0ap7qj1n96h4f2sqkjmibg7xx5xwkqxdfzam2nmyfdlrrrs"))))
851 ("pkg-config" ,pkg-config)))
852 (home-page "https://wiki.gnome.org/Apps/Recipes")
853 (synopsis "Discover recipes for preparing food")
854 (description "GNOME Recipes helps you discover what to cook today,
855 tomorrow, the rest of the week and for special occasions.")
856 (license license:gpl3+)))
857
858 (define-public gnome-photos
859 (package
860 (name "gnome-photos")
861 (version "3.34.2")
862 (source
863 (origin
864 (method url-fetch)
865 (uri
866 (string-append "mirror://gnome/sources/" name "/"
867 (version-major+minor version) "/"
868 name "-" version ".tar.xz"))
869 (sha256
870 (base32
871 "06ml5sf8xhpan410msqz085hmfc7082d368pb82yq646y9pcfn9w"))))
872 (build-system meson-build-system)
873 (arguments
874 `(#:glib-or-gtk? #t
875 #:configure-flags
876 (list "-Ddogtail=false" ; Not available
877 ;; Required for RUNPATH validation.
878 (string-append "-Dc_link_args=-Wl,-rpath="
879 (assoc-ref %outputs "out") "/lib/gnome-photos"))
880 #:phases
881 (modify-phases %standard-phases
882 (add-after 'install 'wrap-gnome-photos
883 (lambda* (#:key inputs outputs #:allow-other-keys)
884 (let*
885 ((out (assoc-ref outputs "out")))
886 (wrap-program (string-append out "/bin/gnome-photos")
887 `("GRL_PLUGIN_PATH" = (,(getenv "GRL_PLUGIN_PATH")))))
888 #t)))))
889 (native-inputs
890 `(("dbus" ,dbus)
891 ("desktop-file-utils" ,desktop-file-utils)
892 ("gettext" ,gettext-minimal)
893 ("git" ,git-minimal)
894 ("glib:bin" ,glib "bin")
895 ("gobject-introspection" ,gobject-introspection)
896 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
897 ("gtk+:bin" ,gtk+ "bin")
898 ("itstool" ,itstool)
899 ("pkg-config" ,pkg-config)))
900 (inputs
901 `(("babl" ,babl)
902 ("cairo" ,cairo)
903 ("gdk-pixbuf" ,gdk-pixbuf+svg)
904 ("gegl" ,gegl)
905 ("geocode-glib" ,geocode-glib)
906 ("gexiv2" ,gexiv2)
907 ("gnome-online-accounts" ,gnome-online-accounts)
908 ("gnome-online-miners" ,gnome-online-miners)
909 ("grilo" ,grilo)
910 ("grilo-plugins" ,grilo-plugins)
911 ("gtk+" ,gtk+)
912 ("libdazzle" ,libdazzle)
913 ("libgdata" ,libgdata)
914 ("libgfbgraph" ,gfbgraph)
915 ("libjpeg" ,libjpeg-turbo)
916 ("libpng" ,libpng)
917 ("librest" ,rest)
918 ("pygobject" ,python-pygobject)
919 ("tracker" ,tracker)
920 ("tracker-miners" ,tracker-miners)))
921 (synopsis "Access, organize and share your photos on GNOME desktop")
922 (description "GNOME Photos is a simple and elegant replacement for using a
923 file manager to deal with photos. Enhance, crop and edit in a snap. Seamless
924 cloud integration is offered through GNOME Online Accounts.")
925 (home-page "https://wiki.gnome.org/Apps/Photos")
926 (license license:gpl3+)))
927
928 (define-public gnome-music
929 (package
930 (name "gnome-music")
931 (version "3.34.5")
932 (source
933 (origin
934 (method url-fetch)
935 (uri
936 (string-append "mirror://gnome/sources/" name "/"
937 (version-major+minor version) "/"
938 name "-" version ".tar.xz"))
939 (sha256
940 (base32
941 "1r5sfw5cbd6qqh27lzhblazir0bfi3k7nqppw66qw990isqm5psy"))))
942 (build-system meson-build-system)
943 (arguments
944 `(#:glib-or-gtk? #t
945 #:phases
946 (modify-phases %standard-phases
947 (add-after 'install 'wrap-gnome-music
948 (lambda* (#:key inputs outputs #:allow-other-keys)
949 (let*
950 ((out (assoc-ref outputs "out"))
951 (pylib (string-append out "/lib/python"
952 ,(version-major+minor
953 (package-version python))
954 "/site-packages")))
955 (wrap-program (string-append out "/bin/gnome-music")
956 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))
957 `("GST_PLUGIN_SYSTEM_PATH" = (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
958 `("GRL_PLUGIN_PATH" = (,(getenv "GRL_PLUGIN_PATH")))
959 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))))
960 #t)))))
961 (native-inputs
962 `(("desktop-file-utils" ,desktop-file-utils)
963 ("gettext" ,gettext-minimal)
964 ("glib:bin" ,glib "bin")
965 ("gobject-introspection" ,gobject-introspection)
966 ("gtk+:bin" ,gtk+ "bin")
967 ("itstools" ,itstool)
968 ("pkg-config" ,pkg-config)))
969 (inputs
970 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
971 ("grilo" ,grilo)
972 ("grilo-plugins" ,grilo-plugins)
973 ("gst-plugins-base" ,gst-plugins-base)
974 ("gstreamer" ,gstreamer)
975 ("gvfs" ,gvfs)
976 ("libdazzle" ,libdazzle)
977 ("libmediaart" ,libmediaart)
978 ("libsoup" ,libsoup)
979 ("pycairo" ,python-pycairo)
980 ("pygobject" ,python-pygobject)
981 ("tracker" ,tracker)
982 ("tracker-miners" ,tracker-miners)))
983 (synopsis "Simple music player for GNOME desktop")
984 (description "GNOME Music is the new GNOME music playing application that
985 aims to combine an elegant and immersive browsing experience with simple
986 and straightforward controls.")
987 (home-page "https://wiki.gnome.org/Apps/Music")
988 (license license:gpl2+)))
989
990 (define-public portablexdr
991 (package
992 (name "portablexdr")
993 (version "4.9.1")
994 (source
995 (origin
996 (method url-fetch)
997 (uri
998 (string-append "https://people.redhat.com/~rjones/" name "/files/"
999 name "-" version ".tar.gz"))
1000 (sha256
1001 (base32
1002 "0b77ipvvi520nv7rr6jb1c3xryhc3m2mywhby7m48kfgag8vvx2w"))))
1003 (build-system gnu-build-system)
1004 (synopsis "External Data Representation Library")
1005 (description "PortableXDR is an implementation of External Data
1006 Representation (XDR) Library. It is a standard data serialization format, for
1007 uses such as computer network protocols. It allows data to be transferred
1008 between different kinds of computer systems.")
1009 (home-page "https://people.redhat.com/~rjones/portablexdr/")
1010 (license
1011 (list
1012 license:gpl2+
1013 license:lgpl2.1+))))
1014
1015 (define-public tepl
1016 (package
1017 (name "tepl")
1018 (version "4.4.0")
1019 (source
1020 (origin
1021 (method url-fetch)
1022 (uri
1023 (string-append "mirror://gnome/sources/" name "/"
1024 (version-major+minor version) "/"
1025 name "-" version ".tar.xz"))
1026 (sha256
1027 (base32
1028 "0mm2z849hnni7597an05mrv0dckrxjngpf2xfa0g5s17i8x6gxp6"))))
1029 (build-system glib-or-gtk-build-system)
1030 (arguments
1031 `(#:tests? #f)) ; FIX-ME: Requires gvfs
1032 (native-inputs
1033 `(("gobject-introspection" ,gobject-introspection)
1034 ("pkg-config" ,pkg-config)))
1035 (inputs
1036 `(("amtk" ,amtk)
1037 ("glib" ,glib)
1038 ("gtk+" ,gtk+)
1039 ("gtksourceview" ,gtksourceview)
1040 ("libxml2" ,libxml2)
1041 ("uchardet" ,uchardet)))
1042 (synopsis "Text editor product line")
1043 (description "Tepl is a library that eases the development of
1044 GtkSourceView-based text editors and IDEs.")
1045 (home-page "https://wiki.gnome.org/Projects/Tepl")
1046 (license license:lgpl2.1+)))
1047
1048 (define-public krb5-auth-dialog
1049 (package
1050 (name "krb5-auth-dialog")
1051 (version "3.26.1")
1052 (source
1053 (origin
1054 (method url-fetch)
1055 (uri
1056 (string-append "mirror://gnome/sources/" name "/"
1057 (version-major+minor version) "/"
1058 name "-" version ".tar.xz"))
1059 (sha256
1060 (base32
1061 "1w91gsvmifqhiam3xqf88i5rk2w6qadjalmbvvamjdc37j0vdc6x"))))
1062 (build-system glib-or-gtk-build-system)
1063 (native-inputs
1064 `(("intltool" ,intltool)
1065 ("itstool" ,itstool)
1066 ("libxml2" ,libxml2)
1067 ("pkg-config" ,pkg-config)
1068 ("python-wrapper" ,python-wrapper)))
1069 (inputs
1070 `(("glib" ,glib)
1071 ("gtk+" ,gtk+)
1072 ("libnotify" ,libnotify)
1073 ("mit-krb5" ,mit-krb5)
1074 ("network-manager" ,network-manager)))
1075 (synopsis "Popup dialogs for Kerberos 5")
1076 (description "krb5-auth-dialog is a simple dialog that monitors Kerberos
1077 tickets, and pops up a dialog when they are about to expire.")
1078 (home-page "https://gitlab.gnome.org/GNOME/krb5-auth-dialog")
1079 (license license:gpl2+)))
1080
1081 (define-public notification-daemon
1082 (package
1083 (name "notification-daemon")
1084 (version "3.20.0")
1085 (source
1086 (origin
1087 (method url-fetch)
1088 (uri
1089 (string-append "mirror://gnome/sources/" name "/"
1090 (version-major+minor version) "/"
1091 name "-" version ".tar.xz"))
1092 (sha256
1093 (base32
1094 "1rgchqi4j2ll7d6a7lgy7id0w9rrkwkgic1096fbm2zx6n7pc4yx"))))
1095 (build-system glib-or-gtk-build-system)
1096 (native-inputs
1097 `(("intltool" ,intltool)
1098 ("pkg-config" ,pkg-config)))
1099 (inputs
1100 `(("glib" ,glib)
1101 ("gtk+" ,gtk+)
1102 ("x11" ,libx11)))
1103 (synopsis "Notification Daemon for GNOME Desktop")
1104 (description "Notification-Daemon is the server implementation of the
1105 freedesktop.org desktop notification specification.")
1106 (home-page "https://wiki.gnome.org/Projects/NotificationDaemon")
1107 (license license:gpl2+)))
1108
1109 (define-public mm-common
1110 (package
1111 (name "mm-common")
1112 (version "1.0.2")
1113 (source (origin
1114 (method url-fetch)
1115 (uri (string-append "mirror://gnome/sources/mm-common/"
1116 (version-major+minor version) "/"
1117 "mm-common-" version ".tar.xz"))
1118 (sha256
1119 (base32
1120 "07b4s5ckcz9q5gwx8vchim19mhfgl8wysqwi30pndks3m4zrzad2"))))
1121 (build-system meson-build-system)
1122 (arguments
1123 `(#:phases
1124 (modify-phases %standard-phases
1125 (add-after 'unpack 'patch
1126 (lambda* (#:key inputs #:allow-other-keys)
1127 (substitute* "util/mm-common-prepare.in"
1128 (("ln") (string-append (assoc-ref inputs "coreutils")
1129 "/bin/ln"))
1130 (("cp") (string-append (assoc-ref inputs "coreutils")
1131 "/bin/cp"))
1132 (("sed") (string-append (assoc-ref inputs "sed")
1133 "/bin/sed"))
1134 (("cat") (string-append (assoc-ref inputs "coreutils")
1135 "/bin/cat")))
1136 #t)))))
1137 (native-inputs
1138 `(("coreutils" ,coreutils)
1139 ("gettext" ,gettext-minimal)
1140 ("pkg-config" ,pkg-config)
1141 ("sed" ,sed)))
1142 (inputs
1143 `(("python" ,python)))
1144 (synopsis "Module of GNOME C++ bindings")
1145 (description "The mm-common module provides the build infrastructure
1146 and utilities shared among the GNOME C++ binding libraries. Release
1147 archives of mm-common include the Doxygen tag file for the GNU C++
1148 Library reference documentation.")
1149 (home-page "https://gitlab.gnome.org/GNOME/mm-common")
1150 (license license:gpl2+)))
1151
1152 (define-public phodav
1153 (package
1154 (name "phodav")
1155 (version "2.5")
1156 (source (origin
1157 (method url-fetch)
1158 (uri (string-append "mirror://gnome/sources/" name "/"
1159 (version-major+minor version) "/"
1160 name "-" version ".tar.xz"))
1161 (sha256
1162 (base32
1163 "045rdzf8isqmzix12lkz6z073b5qvcqq6ad028advm5gf36skw3i"))))
1164 (build-system meson-build-system)
1165 (arguments
1166 `(#:phases
1167 (modify-phases %standard-phases
1168 (add-before 'check 'start-virtual-dir-server
1169 ;; The same server when started by tests/virtual-dir returns an
1170 ;; unexpected status (4 instead of 200) and fails a test. It is
1171 ;; unclear why starting it manually here makes it pass.
1172 (lambda _
1173 (system "tests/virtual-dir-server &")
1174 #t)))))
1175 (native-inputs
1176 `(("docbook-xml" ,docbook-xml-4.3)
1177 ("gettext" ,gettext-minimal)
1178 ("glib:bin" ,glib "bin")
1179 ("gtk-doc" ,gtk-doc)
1180 ("pkg-config" ,pkg-config)))
1181 (inputs
1182 `(("avahi" ,avahi)
1183 ("libgudev" ,libgudev)
1184 ("libsoup" ,libsoup)))
1185 (synopsis "WebDav server implementation using libsoup")
1186 (description "PhoDav was initially developed as a file-sharing mechanism for Spice,
1187 but it is generic enough to be reused in other projects,
1188 in particular in the GNOME desktop.")
1189 (home-page "https://wiki.gnome.org/phodav")
1190 (license license:lgpl2.1+)))
1191
1192 (define-public gnome-color-manager
1193 (package
1194 (name "gnome-color-manager")
1195 (version "3.32.0")
1196 (source (origin
1197 (method url-fetch)
1198 (uri (string-append "mirror://gnome/sources/" name "/"
1199 (version-major+minor version) "/"
1200 name "-" version ".tar.xz"))
1201 (sha256
1202 (base32
1203 "1vpxa2zjz3lkq9ldjg0fl65db9s6b4kcs8nyaqfz3jygma7ifg3w"))))
1204 (build-system meson-build-system)
1205 (arguments
1206 `(#:glib-or-gtk? #t
1207 #:phases
1208 (modify-phases %standard-phases
1209 (add-before
1210 'check 'pre-check
1211 (lambda _
1212 ;; Tests require a running X server.
1213 (system "Xvfb :1 &")
1214 (setenv "DISPLAY" ":1")
1215 #t)))))
1216 (native-inputs
1217 `(("desktop-file-utils" ,desktop-file-utils)
1218 ("gettext" ,gettext-minimal)
1219 ("glib:bin" ,glib "bin")
1220 ("gtk+:bin" ,gtk+ "bin")
1221 ("itstool" ,itstool)
1222 ("pkg-config" ,pkg-config)
1223 ("xorg-server" ,xorg-server-for-tests)))
1224 (inputs
1225 `(("adwaita-icon-theme" ,adwaita-icon-theme)
1226 ("appstream-glib" ,appstream-glib)
1227 ("colord-gtk" ,colord-gtk)
1228 ("exiv2" ,exiv2)
1229 ("gnome-desktop" ,gnome-desktop)
1230 ("libcanberra" ,libcanberra)
1231 ("libexif" ,libexif)
1232 ("libtiff" ,libtiff)
1233 ("libxrandr" ,libxrandr)
1234 ("libxtst" ,libxtst)
1235 ("libxxf86vm" ,libxxf86vm)
1236 ("vte" ,vte)
1237 ("xorgproto" ,xorgproto)))
1238 (synopsis "Color profile manager for the GNOME desktop")
1239 (description "GNOME Color Manager is a session framework that makes
1240 it easy to manage, install and generate color profiles
1241 in the GNOME desktop.")
1242 (home-page "https://gitlab.gnome.org/GNOME/gnome-color-manager")
1243 (license license:gpl2+)))
1244
1245 (define-public gnome-online-miners
1246 (package
1247 (name "gnome-online-miners")
1248 (version "3.34.0")
1249 (source (origin
1250 (method url-fetch)
1251 (uri (string-append "mirror://gnome/sources/" name "/"
1252 (version-major+minor version) "/"
1253 name "-" version ".tar.xz"))
1254 (sha256
1255 (base32
1256 "1n2jz9i8a42zwxx5h8j2gdy6q1vyydh4vl00r0al7w8jzdh24p44"))))
1257 (build-system glib-or-gtk-build-system)
1258 (native-inputs
1259 `(("gettext" ,gettext-minimal)
1260 ("glib:bin" ,glib "bin")
1261 ("gobject-introspection" ,gobject-introspection)
1262 ("gtk+:bin" ,gtk+ "bin")
1263 ("pkg-config" ,pkg-config)))
1264 (inputs
1265 `(("gnome-online-accounts" ,gnome-online-accounts)
1266 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1267 ("grilo" ,grilo)
1268 ("libgdata" ,libgdata)
1269 ("libgfbgraph" ,gfbgraph)
1270 ("libzapojit" ,libzapojit)
1271 ("rest" ,rest)
1272 ("tracker" ,tracker)))
1273 (synopsis "Web Crawlers for GNOME")
1274 (description "GNOME Online Miners provides a set of crawlers that
1275 go through your online content and index them locally in Tracker.
1276 It has miners for Facebook, Flickr, Google, ownCloud and SkyDrive.")
1277 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineMiners")
1278 (license license:gpl2+)))
1279
1280 (define-public gssdp
1281 (package
1282 (name "gssdp")
1283 (version "1.2.3")
1284 (source (origin
1285 (method url-fetch)
1286 (uri (string-append "mirror://gnome/sources/" name "/"
1287 (version-major+minor version) "/"
1288 name "-" version ".tar.xz"))
1289 (sha256
1290 (base32
1291 "1s57i8a8wnnxnsfl27cq4503dkdlzbrhry5zpg23sfqfffvdqqx2"))))
1292 (build-system meson-build-system)
1293 (native-inputs
1294 `(("gettext" ,gettext-minimal)
1295 ("glib:bin" ,glib "bin")
1296 ("gobject-introspection" ,gobject-introspection)
1297 ("gtk-doc" ,gtk-doc)
1298 ("pkg-config" ,pkg-config)
1299 ("vala" ,vala)))
1300 (inputs
1301 `(("gtk+" ,gtk+)
1302 ("libsoup" ,libsoup)))
1303 (synopsis "GObject-based API over @acronym{SSDP, Simple Service Discovery
1304 Protocol} for GNOME")
1305 (description "This package provides a library to handle resource discovery
1306 and announcement over @acronym{SSDP, Simple Service Discovery Protocol} and
1307 a debugging tool, @command{gssdp-device-sniffer}.")
1308 (home-page "https://gitlab.gnome.org/GNOME/gssdp")
1309 (license license:lgpl2.0+)))
1310
1311 (define-public gupnp
1312 (package
1313 (name "gupnp")
1314 (version "1.2.4")
1315 (source (origin
1316 (method url-fetch)
1317 (uri (string-append "mirror://gnome/sources/" name "/"
1318 (version-major+minor version) "/"
1319 name "-" version ".tar.xz"))
1320 (sha256
1321 (base32
1322 "1ld7mrpdv9cszmfzh7i19qx4li25j3fr7x1jp38l8phzlmz3187p"))))
1323 (build-system meson-build-system)
1324 (native-inputs
1325 `(("gettext" ,gettext-minimal)
1326 ("glib:bin" ,glib "bin")
1327 ("gobject-introspection" ,gobject-introspection)
1328 ("gtk-doc" ,gtk-doc)
1329 ("pkg-config" ,pkg-config)
1330 ("vala" ,vala)))
1331 (inputs
1332 `(("gssdp" ,gssdp)
1333 ("gtk+" ,gtk+)
1334 ("libsoup" ,libsoup)))
1335 (synopsis "PnP API for GNOME")
1336 (description "This package provides GUPnP, an object-oriented framework
1337 for creating UPnP devices and control points, written in C using
1338 @code{GObject} and @code{libsoup}.")
1339 (home-page "https://gitlab.gnome.org/GNOME/gupnp")
1340 (license license:lgpl2.0+)))
1341
1342 (define-public gupnp-dlna
1343 (package
1344 (name "gupnp-dlna")
1345 (version "0.10.5")
1346 (source (origin
1347 (method url-fetch)
1348 (uri (string-append "mirror://gnome/sources/" name "/"
1349 (version-major+minor version) "/"
1350 name "-" version ".tar.xz"))
1351 (sha256
1352 (base32
1353 "0spzd2saax7w776p5laixdam6d7smyynr9qszhbmq7f14y13cghj"))))
1354 (build-system gnu-build-system)
1355 (native-inputs
1356 `(("gettext" ,gettext-minimal)
1357 ("glib:bin" ,glib "bin")
1358 ("gobject-introspection" ,gobject-introspection)
1359 ("gtk-doc" ,gtk-doc)
1360 ("libxml" ,libxml2)
1361 ("pkg-config" ,pkg-config)
1362 ("vala" ,vala)))
1363 (inputs
1364 `(("gstreamer" ,gstreamer)
1365 ("gupnp" ,gupnp)))
1366 (propagated-inputs
1367 `(("gst-plugins-base" ,gst-plugins-base)
1368 ("gst-plugins-good" ,gst-plugins-good)))
1369 (synopsis "GUPnP DLNA for GNOME")
1370 (description "This package provides a small utility library to
1371 support DLNA-related tasks such as media profile guessing, transcoding to a
1372 given profile, etc. DLNA is a subset of UPnP A/V.")
1373 (home-page "https://gitlab.gnome.org/GNOME/gupnp-dlna")
1374 (license license:lgpl2.0+)))
1375
1376 (define-public gupnp-av
1377 (package
1378 (name "gupnp-av")
1379 (version "0.12.11")
1380 (source (origin
1381 (method url-fetch)
1382 (uri (string-append "mirror://gnome/sources/" name "/"
1383 (version-major+minor version) "/"
1384 name "-" version ".tar.xz"))
1385 (sha256
1386 (base32
1387 "1p3grslwqm9bc8rmpn4l48d7v9s84nina4r9xbd932dbj8acz7b8"))))
1388 (build-system gnu-build-system)
1389 (native-inputs
1390 `(("gettext" ,gettext-minimal)
1391 ("glib:bin" ,glib "bin")
1392 ("gobject-introspection" ,gobject-introspection)
1393 ("gtk-doc" ,gtk-doc)
1394 ("libxml" ,libxml2)
1395 ("pkg-config" ,pkg-config)))
1396 (inputs
1397 `(("gtk+" ,gtk+)
1398 ("gupnp" ,gupnp)))
1399 (synopsis "GUPnP A/V for GNOME")
1400 (description "This package provides a small library for handling
1401 and implementation of UPnP A/V profiles.")
1402 (home-page "https://gitlab.gnome.org/GNOME/gupnp-av")
1403 (license license:lgpl2.0+)))
1404
1405 (define-public libmediaart
1406 (package
1407 (name "libmediaart")
1408 (version "1.9.4")
1409 (source (origin
1410 (method url-fetch)
1411 (uri (string-append "mirror://gnome/sources/" name "/"
1412 (version-major+minor version) "/"
1413 name "-" version ".tar.xz"))
1414 (sha256
1415 (base32
1416 "0gc10imyabk57ar54m0qzms0x9dnmkymhkzyk8w1aj3y4lby0yx5"))))
1417 (build-system gnu-build-system)
1418 (native-inputs
1419 `(("glib:bin" ,glib "bin")
1420 ("pkg-config" ,pkg-config)))
1421 (inputs
1422 `(("gdk-pixbuf" ,gdk-pixbuf)
1423 ("gettext" ,gettext-minimal)
1424 ("gobject-introspection" ,gobject-introspection)
1425 ("gtk+:doc" ,gtk+ "doc")
1426 ("vala" ,vala)))
1427 (synopsis "Media art library for the GNOME desktop")
1428 (description
1429 "The libmediaart library is the foundation for media art caching,
1430 extraction, and lookup for applications on the desktop.")
1431 (home-page "https://gitlab.gnome.org/GNOME/libmediaart")
1432 (license license:lgpl2.1+)))
1433
1434 (define-public gnome-initial-setup
1435 (package
1436 (name "gnome-initial-setup")
1437 (version "3.32.1")
1438 (source (origin
1439 (method url-fetch)
1440 (uri (string-append "mirror://gnome/sources/gnome-initial-setup/"
1441 (version-major+minor version)
1442 "/gnome-initial-setup-" version ".tar.xz"))
1443 (sha256
1444 (base32
1445 "1gwhp7dalyc8zsb2pa66cmpdrj2d6drbq5p331sq6zp8ds10k9ry"))))
1446 (build-system meson-build-system)
1447 (arguments
1448 '(#:configure-flags '(;; Enable camera support for user selfie.
1449 "-Dcheese=auto"
1450 "-Dsystemd=false")
1451 #:phases (modify-phases %standard-phases
1452 (add-after 'unpack 'set-gkbd-file-name
1453 (lambda* (#:key inputs #:allow-other-keys)
1454 ;; Allow the "Preview" button in the keyboard layout
1455 ;; selection dialog to display the layout.
1456 (let ((libgnomekbd (assoc-ref inputs "libgnomekbd")))
1457 (substitute* "gnome-initial-setup/pages/keyboard/cc-input-chooser.c"
1458 (("\"gkbd-keyboard-display")
1459 (string-append "\"" libgnomekbd
1460 "/bin/gkbd-keyboard-display")))
1461 #t))))))
1462 (native-inputs
1463 `(("gettext" ,gettext-minimal)
1464 ("glib:bin" ,glib "bin")
1465 ("gobject-introspection" ,gobject-introspection)
1466 ("gtk+:bin" ,gtk+ "bin")
1467 ("pkg-config" ,pkg-config)))
1468 (inputs
1469 `(("accountsservice" ,accountsservice)
1470 ;("adwaita-icon-theme" ,adwaita-icon-theme)
1471 ("gdm" ,gdm)
1472 ("geoclue" ,geoclue)
1473 ("gnome-desktop" ,gnome-desktop)
1474 ("gnome-getting-started-docs" ,gnome-getting-started-docs)
1475 ("gnome-online-accounts" ,gnome-online-accounts)
1476 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1477 ("gstreamer" ,gstreamer)
1478 ("ibus" ,ibus)
1479 ("json-glib" ,json-glib)
1480 ("krb5" ,mit-krb5)
1481 ("libgweather" ,libgweather)
1482 ("libnma" ,libnma)
1483 ("libsecret" ,libsecret)
1484 ("network-manager" ,network-manager)
1485 ("packagekit" ,packagekit)
1486 ("polkit" ,polkit)
1487 ("pwquality" ,libpwquality)
1488 ("rest" ,rest)
1489 ("upower" ,upower)
1490 ("webkitgtk" ,webkitgtk)
1491 ("libgnomekbd" ,libgnomekbd)))
1492 (synopsis "Initial setup wizard for GNOME desktop")
1493 (description "This package provides a set-up wizard when a
1494 user logs into GNOME for the first time. It typically provides a
1495 tour of all gnome components and allows the user to set them up.")
1496 (home-page "https://gitlab.gnome.org/GNOME/gnome-initial-setup")
1497 (license license:gpl2)))
1498
1499 (define-public gnome-user-share
1500 (package
1501 (name "gnome-user-share")
1502 (version "3.33.1")
1503 (source (origin
1504 (method url-fetch)
1505 (uri (string-append "mirror://gnome/sources/" name "/"
1506 (version-major+minor version) "/"
1507 name "-" version ".tar.xz"))
1508 (sha256
1509 (base32
1510 "0lf790pyamdyj7180ils8vizjl8brxcg7jsm1iavfp9ay4wa8mz7"))))
1511 (build-system meson-build-system)
1512 (arguments
1513 `(#:glib-or-gtk? #t
1514 #:configure-flags
1515 `("-Dsystemd=false"
1516 ;; Enable nautilus extension for file sharing.
1517 "-Dnautilus_extension=true")))
1518 (native-inputs
1519 `(("gettext" ,gettext-minimal)
1520 ("glib:bin" ,glib "bin")
1521 ("gobject-introspection" ,gobject-introspection)
1522 ("gtk+:bin" ,gtk+ "bin")
1523 ("pkg-config" ,pkg-config)
1524 ("yelp-tools" ,yelp-tools)))
1525 (inputs
1526 `(("glib" ,glib)
1527 ("gnome-bluetooth" ,gnome-bluetooth)
1528 ("gtk+" ,gtk+)
1529 ("libcanberra" ,libcanberra)
1530 ("libnotify" ,libnotify)
1531 ("nautilus" ,nautilus))) ; For nautilus extension.
1532 (synopsis "File sharing for GNOME desktop")
1533 (description "GNOME User Share is a small package that binds together
1534 various free software projects to bring easy to use user-level file
1535 sharing to the masses.")
1536 (home-page "https://gitlab.gnome.org/GNOME/gnome-user-share")
1537 (license license:gpl2+)))
1538
1539 (define-public sushi
1540 (package
1541 (name "sushi")
1542 (version "3.32.1")
1543 (source (origin
1544 (method url-fetch)
1545 (uri (string-append "mirror://gnome/sources/" name "/"
1546 (version-major+minor version) "/"
1547 name "-" version ".tar.xz"))
1548 (sha256
1549 (base32
1550 "02idvqjk76lii9xyg3b1yz4rw721709bdm5j8ikjym6amcghl0aj"))))
1551 (build-system meson-build-system)
1552 (arguments
1553 `(#:glib-or-gtk? #t
1554 #:phases
1555 (modify-phases %standard-phases
1556 (add-after 'glib-or-gtk-wrap 'wrap-typelib
1557 (lambda* (#:key outputs #:allow-other-keys)
1558 (let ((prog (string-append (assoc-ref outputs "out")
1559 "/bin/sushi")))
1560 ;; Put existing typelibs before sushi's deps, so as to correctly
1561 ;; infer gdk-pixbuf
1562 (wrap-program prog
1563 `("GI_TYPELIB_PATH" suffix (,(getenv "GI_TYPELIB_PATH"))))
1564 #t))))))
1565 (native-inputs
1566 `(("glib:bin" ,glib "bin")
1567 ("gettext" ,gettext-minimal)
1568 ("gobject-introspection" ,gobject-introspection)
1569 ("pkg-config" ,pkg-config)))
1570 (inputs
1571 `(("clutter" ,clutter)
1572 ("clutter-gst" ,clutter-gst)
1573 ("clutter-gtk" ,clutter-gtk)
1574 ("evince" ,evince) ; For file previewing.
1575 ("freetype" ,freetype)
1576 ("gdk-pixbuf" ,gdk-pixbuf)
1577 ("gjs" ,gjs)
1578 ("gst-plugins-base" ,gst-plugins-base)
1579 ("gstreamer" ,gstreamer)
1580 ("gtksourceview" ,gtksourceview-3)
1581 ("harfbuzz" ,harfbuzz)
1582 ("libepoxy" ,libepoxy)
1583 ("libmusicbrainz" ,libmusicbrainz)
1584 ("libxml2" ,libxml2)
1585 ("neon" ,neon)
1586 ("webkitgtk" ,webkitgtk)))
1587 (synopsis "File previewer for the GNOME desktop")
1588 (description "Sushi is a DBus-activated service that allows applications to
1589 preview files on the GNOME desktop.")
1590 (home-page "https://gitlab.gnome.org/GNOME/sushi")
1591 (license license:gpl2+)))
1592
1593 (define-public rygel
1594 (package
1595 (name "rygel")
1596 (version "0.38.3")
1597 (source (origin
1598 (method url-fetch)
1599 (uri (string-append "mirror://gnome/sources/" name "/"
1600 (version-major+minor version) "/"
1601 name "-" version ".tar.xz"))
1602 (sha256
1603 (base32
1604 "003xficqb08r1dgid20i7cn889lbfwrglpx78rjd5nkvgxbimhh8"))))
1605 (build-system gnu-build-system)
1606 (native-inputs
1607 `(("gettext" ,gettext-minimal)
1608 ("gobject-introspection" ,gobject-introspection)
1609 ("gtk-doc" ,gtk-doc)
1610 ("pkg-config" ,pkg-config)
1611 ("vala" ,vala)))
1612 (inputs
1613 `(("gdk-pixbuf" ,gdk-pixbuf)
1614 ("gssdp" ,gssdp)
1615 ("gstreamer" ,gstreamer)
1616 ("gst-plugins-base" ,gst-plugins-base)
1617 ("gtk+" ,gtk+)
1618 ("gupnp" ,gupnp)
1619 ("gupnp-av" ,gupnp-av)
1620 ("gupnp-dlna" ,gupnp-dlna)
1621 ("libgee" ,libgee)
1622 ("libmediaart" ,libmediaart)
1623 ("libsoup" ,libsoup)
1624 ("libxslt" ,libxslt)
1625 ("libunistring" ,libunistring)
1626 ("tracker" ,tracker)))
1627 (synopsis "Share audio, video, and pictures with other devices")
1628 (description
1629 "Rygel is a home media solution (@dfn{UPnP AV MediaServer and
1630 MediaRenderer}) for GNOME that allows you to easily share audio, video, and
1631 pictures, and to control a media player on your home network.
1632
1633 Rygel achieves interoperability with other devices by trying to conform to the
1634 strict requirements of DLNA and by converting media on-the-fly to formats that
1635 client devices can handle.")
1636 (home-page "https://wiki.gnome.org/Projects/Rygel")
1637 (license (list
1638 ;; For logo (data/icons/*).
1639 license:cc-by-sa3.0
1640 ;; For all others.
1641 license:lgpl2.1+))))
1642
1643 (define-public libnma
1644 (package
1645 (name "libnma")
1646 (version "1.8.28")
1647 (source (origin
1648 (method url-fetch)
1649 (uri (string-append "mirror://gnome/sources/" name "/"
1650 (version-major+minor version) "/"
1651 name "-" version ".tar.xz"))
1652 (sha256
1653 (base32
1654 "09mp6k0hfam1vyyv9kcd8j4gb2r58i05ipx2nswb58ris599bxja"))))
1655 (build-system meson-build-system)
1656 (arguments
1657 `(#:phases
1658 (modify-phases %standard-phases
1659 (add-after 'unpack 'patch-docbook-xml
1660 (lambda* (#:key inputs #:allow-other-keys)
1661 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
1662 "/xml/dtd/docbook")))
1663 (substitute* "libnma-docs.xml"
1664 (("http://.*/docbookx\\.dtd")
1665 (string-append xmldoc "/docbookx.dtd")))
1666 #t))))))
1667 (native-inputs
1668 `(("docbook-xml" ,docbook-xml-4.3)
1669 ("gettext" ,gettext-minimal)
1670 ("glib:bin" ,glib "bin")
1671 ("gtk-doc" ,gtk-doc)
1672 ("gobject-introspection" ,gobject-introspection)
1673 ("pkg-config" ,pkg-config)
1674 ("vala" ,vala)))
1675 (inputs
1676 `(("gcr" ,gcr)
1677 ("gtk+" ,gtk+)
1678 ("iso-codes" ,iso-codes)
1679 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)
1680 ("network-manager" ,network-manager)))
1681 (synopsis "Network Manager's applet library")
1682 (description "Libnma is an applet library for Network Manager. It was
1683 initially part of network-manager-applet and has now become a separate
1684 project.")
1685 (home-page "https://gitlab.gnome.org/GNOME/libnma")
1686 ;; Some files carry the "GPL-2.0+" SPDX identifier while others say
1687 ;; "LGPL-2.1+".
1688 (license license:gpl2+)))
1689
1690 (define-public gnome-menus
1691 (package
1692 (name "gnome-menus")
1693 (version "3.32.0")
1694 (source (origin
1695 (method url-fetch)
1696 (uri (string-append "mirror://gnome/sources/gnome-menus/"
1697 (version-major+minor version) "/"
1698 name "-" version ".tar.xz"))
1699 (sha256
1700 (base32
1701 "0x2blzqrapmbsbfzxjcdcpa3vkw9hq5k96h9kvjmy9kl415wcl68"))))
1702 (build-system gnu-build-system)
1703 (native-inputs
1704 `(("gettext" ,gettext-minimal)
1705 ("glib" ,glib)
1706 ("pkg-config" ,pkg-config)))
1707 (synopsis "Menu support for GNOME desktop")
1708 (description "GNOME Menus contains the libgnome-menu library, the layout
1709 configuration files for the GNOME menu, as well as a simple menu editor.")
1710 (home-page "https://gitlab.gnome.org/GNOME/gnome-menus")
1711 (license license:lgpl2.0+)))
1712
1713 (define-public deja-dup
1714 (package
1715 (name "deja-dup")
1716 (version "40.6")
1717 (source (origin
1718 (method url-fetch)
1719 (uri (string-append "https://gitlab.gnome.org/World/deja-dup/-/archive/"
1720 version "/deja-dup-" version ".tar.bz2"))
1721 (sha256
1722 (base32
1723 "0lwazh6crby5wpy9fg6zvwy4plqbhs2f98bm5lbizjdlbh88n5q0"))))
1724 (build-system meson-build-system)
1725 (arguments
1726 `(#:glib-or-gtk? #t
1727 #:configure-flags
1728 (list
1729 ;; Otherwise, the RUNPATH will lack the final path component.
1730 (string-append "-Dc_link_args=-Wl,-rpath="
1731 (assoc-ref %outputs "out") "/lib/deja-dup"))
1732 #:phases
1733 (modify-phases %standard-phases
1734 (add-after 'unpack 'patch-paths
1735 (lambda* (#:key inputs #:allow-other-keys)
1736 (let ((python (assoc-ref inputs "python")))
1737 (substitute* '("libdeja/tools/duplicity/DuplicityInstance.vala"
1738 "libdeja/tests/scripts/instance-error.test")
1739 (("/bin/rm")
1740 (which "rm")))
1741 (substitute* "libdeja/tests/runner.vala"
1742 (("/bin/sh")
1743 (which "sh")))
1744 (substitute* "libdeja/tests/scripts/instance-error.test"
1745 (("`which python3`")
1746 (string-append python "/bin/python3"))))))
1747 (add-after 'unpack 'patch-libgpg-error
1748 (lambda* (#:key inputs #:allow-other-keys)
1749 (let ((libgpg-error (assoc-ref inputs "libgpg-error")))
1750 (substitute* "meson.build"
1751 (("(gpgerror_libs = ).*" _ var)
1752 (format #f "~a '-L~a/lib -lgpg-error'\n" var libgpg-error))))
1753 #t))
1754 (add-after 'unpack 'skip-gtk-update-icon-cache
1755 ;; Don't create 'icon-theme.cache'.
1756 (lambda _
1757 (substitute* "data/post-install.sh"
1758 (("gtk-update-icon-cache") "true"))
1759 #t)))))
1760 (inputs
1761 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1762 ("duplicity" ,duplicity)
1763 ("python" ,python)
1764 ("python-pygobject" ,python-pygobject)
1765 ("gtk+" ,gtk+)
1766 ("json-glib" ,json-glib)
1767 ("libnotify" ,libnotify)
1768 ("libgpg-error" ,libgpg-error)
1769 ("libsecret" ,libsecret)
1770 ("libsoup" ,libsoup)
1771 ("packagekit" ,packagekit)))
1772 (native-inputs
1773 `(("appstream-glib" ,appstream-glib)
1774 ("desktop-file-utils" ,desktop-file-utils)
1775 ("gettext" ,gettext-minimal)
1776 ("glib" ,glib "bin") ; for glib-compile-schemas.
1777 ("gobject-introspection" ,gobject-introspection)
1778 ("itstool" ,itstool)
1779 ("pkg-config" ,pkg-config)
1780 ("vala" ,vala)))
1781 (home-page "https://wiki.gnome.org/Apps/DejaDup")
1782 (synopsis "Simple backup tool, for regular encrypted backups")
1783 (description
1784 "Déjà Dup is a simple backup tool, for regular encrypted backups. It
1785 uses duplicity as the backend, which supports incremental backups and storage
1786 either on a local, or remote machine via a number of methods.")
1787 (license license:gpl3+)))
1788
1789 (define-public gnome-commander
1790 (package
1791 (name "gnome-commander")
1792 (version "1.10.3")
1793 (source
1794 (origin
1795 (method url-fetch)
1796 (uri (string-append "mirror://gnome/sources/" name "/"
1797 (version-major+minor version) "/"
1798 "gnome-commander-" version ".tar.xz"))
1799 (sha256
1800 (base32 "0bis36awb73vhkncq8yr0qlnyaxynqkvmyqbg57ijqwd0m8hh4zg"))))
1801 (build-system glib-or-gtk-build-system)
1802 (native-inputs
1803 `(("desktop-file-utils" ,desktop-file-utils)
1804 ("gcc" ,gcc-8) ;required for -Wcast-function-type
1805 ("gettext" ,gettext-minimal)
1806 ("glib:bin" ,glib "bin")
1807 ("gobject-introspection" ,gobject-introspection)
1808 ("googletest" ,googletest)
1809 ("intltool" ,intltool)
1810 ("itstool" ,itstool)
1811 ("libtool" ,libtool)
1812 ("pkg-config" ,pkg-config)))
1813 (inputs
1814 `(("gconf" ,gconf)
1815 ("gnome-vfs" ,gnome-vfs)
1816 ("gtk+" ,gtk+-2)
1817 ("libxml2" ,libxml2)))
1818 (home-page "https://gcmd.github.io/")
1819 (synopsis "Two-pane graphical file manager for the GNOME desktop")
1820 (description
1821 "GNOME Commander is a two-pane graphical file manager using GNOME
1822 libraries. It aims to fulfill the demands of more advanced users who
1823 like to focus on file management, their work through special applications
1824 and running smart commands.")
1825 (license license:gpl2+)))
1826
1827 (define-public gnome-user-docs
1828 (package
1829 (name "gnome-user-docs")
1830 (version "3.32.3")
1831 (source
1832 (origin
1833 (method url-fetch)
1834 (uri (string-append "mirror://gnome/sources/gnome-user-docs/"
1835 (version-major+minor version)
1836 "/gnome-user-docs-" version ".tar.xz"))
1837 (sha256
1838 (base32 "0dvsl0ldg8rf7yq0r4dv1pn41s7gjgcqp7agkbflkbmhrl6vbhig"))))
1839 (build-system gnu-build-system)
1840 (native-inputs
1841 `(("gettext" ,gettext-minimal)
1842 ("itstool" ,itstool)
1843 ("pkg-config" ,pkg-config)
1844 ("xmllint" ,libxml2)))
1845 (synopsis "User documentation for the GNOME desktop")
1846 (description
1847 "The GNOME User Documentation explains how to use the GNOME desktop and its
1848 components. It covers usage and setup of the core GNOME programs by end-users
1849 and system administrators.")
1850 (home-page "https://live.gnome.org/DocumentationProject")
1851 (license license:cc-by3.0)))
1852
1853 (define-public gnome-getting-started-docs
1854 (package
1855 (name "gnome-getting-started-docs")
1856 (version "3.32.2")
1857 (source
1858 (origin
1859 (method url-fetch)
1860 (uri (string-append "mirror://gnome/sources/gnome-getting-started-docs/"
1861 (version-major+minor version)
1862 "/gnome-getting-started-docs-" version ".tar.xz"))
1863 (sha256
1864 (base32 "1v4k465mlzrhgcdddzs6bmm0yliyrfx6jg3gh0s17a08i0w5rbwq"))))
1865 (build-system gnu-build-system)
1866 (native-inputs
1867 `(("gettext" ,gettext-minimal)
1868 ("itstool" ,itstool)
1869 ("pkg-config" ,pkg-config)
1870 ("xmllint" ,libxml2)))
1871 (synopsis "Help to get new users started with the GNOME desktop")
1872 (description
1873 "The GNOME Getting Started Documentation contains GNOME's intuitive
1874 \"Getting Started\" tour, with video guides, that can be viewed with Yelp.
1875
1876 It is normally used together with @command{gnome-initial-setup}, but is also
1877 useful as a tutorial and users' guide for new or less experienced users.")
1878 (home-page "https://live.gnome.org/DocumentationProject")
1879 (license license:cc-by-sa3.0)))
1880
1881 (define-public dia
1882 ;; This version from GNOME's repository includes fixes for compiling with
1883 ;; recent versions of the build tools. The latest activity on the
1884 ;; pre-GNOME version has been in 2014, while GNOME has continued applying
1885 ;; fixes since.
1886 (let ((commit "3cf7ec4c2e5bca139a7f3e17f9fc9009c237fcc5")
1887 (revision "2"))
1888 (package
1889 (name "dia")
1890 (version (git-version "0.97.3" revision commit))
1891 (source (origin
1892 (method git-fetch)
1893 (uri (git-reference
1894 (url "https://gitlab.gnome.org/GNOME/dia.git/")
1895 (commit commit)))
1896 (file-name (git-file-name name version))
1897 (sha256
1898 (base32
1899 "04r8dspa6nmicrifhi3sh46hqvyy88hzq37xx99q3q1mwsrpmwy8"))))
1900 (build-system meson-build-system)
1901 (inputs
1902 `(("graphene" ,graphene)
1903 ("gtk+" ,gtk+-2)
1904 ("libxml2" ,libxml2)
1905 ("libxslt" ,libxslt)
1906 ("poppler" ,poppler)
1907 ;; Without Python 2, build fails: plug-ins/python/meson.build:4:0:
1908 ;; ERROR: Unknown method "dependency" in object.
1909 ("python-2" ,python-2)))
1910 (native-inputs
1911 `(("appstream-glib" ,appstream-glib)
1912 ("docbook-xsl" ,docbook-xsl)
1913 ("glib" ,glib "bin")
1914 ("intltool" ,intltool)
1915 ("pkg-config" ,pkg-config)))
1916 (home-page "https://wiki.gnome.org/Apps/Dia")
1917 (synopsis "Diagram creation for GNOME")
1918 (description "Dia can be used to draw different types of diagrams, and
1919 includes support for UML static structure diagrams (class diagrams), entity
1920 relationship modeling, and network diagrams. The program supports various file
1921 formats like PNG, SVG, PDF and EPS.")
1922 (license license:gpl2+))))
1923
1924 ;; This is the unstable release, but it is required for the current stable
1925 ;; release of gvfs (1.38.1).
1926 (define-public libgdata
1927 (package
1928 (name "libgdata")
1929 (version "0.17.9")
1930 (source (origin
1931 (method url-fetch)
1932 (uri (string-append "mirror://gnome/sources/" name "/"
1933 (version-major+minor version) "/"
1934 name "-" version ".tar.xz"))
1935 (sha256
1936 (base32
1937 "0fj54yqxdapdppisqm1xcyrpgcichdmipq0a0spzz6009ikzgi45"))))
1938 (build-system gnu-build-system)
1939 (arguments
1940 '(#:phases
1941 (modify-phases %standard-phases
1942 (add-before 'check 'disable-failing-tests
1943 (lambda _
1944 ;; The PicasaWeb API tests fail with gnome-online-accounts@3.24.2.
1945 ;; They have been removed in libgdata 0.17.6, so just do the same.
1946 (substitute* "gdata/tests/Makefile"
1947 (("picasaweb\\$\\(EXEEXT\\) ") ""))
1948 #t)))))
1949 (native-inputs
1950 `(("glib:bin" ,glib "bin")
1951 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1952 ("intltool" ,intltool)
1953 ("pkg-config" ,pkg-config)
1954 ("uhttpmock" ,uhttpmock)))
1955 (inputs
1956 `(("cyrus-sasl" ,cyrus-sasl)
1957 ("glib-networking" ,glib-networking)))
1958 (propagated-inputs
1959 `(("gcr" ,gcr)
1960 ("glib" ,glib)
1961 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1962 ("json-glib" ,json-glib)
1963 ("liboauth" ,liboauth)
1964 ("libsoup" ,libsoup)
1965 ("libxml2" ,libxml2)))
1966 (home-page "https://wiki.gnome.org/Projects/libgdata")
1967 (synopsis "Library for accessing online service APIs")
1968 (description
1969 "libgdata is a GLib-based library for accessing online service APIs using
1970 the GData protocol — most notably, Google's services. It provides APIs to
1971 access the common Google services, and has full asynchronous support.")
1972 (license license:lgpl2.1+)))
1973
1974 (define-public libgxps
1975 (package
1976 (name "libgxps")
1977 (version "0.3.2")
1978 (source (origin
1979 (method url-fetch)
1980 (uri (string-append "mirror://gnome/sources/" name "/"
1981 (version-major+minor version) "/"
1982 name "-" version ".tar.xz"))
1983 (sha256
1984 (base32
1985 "07156nj7yrp3h9zyzx6mjwxwmfijialb4gi5d6dwyp53arr8c9vd"))))
1986 (build-system meson-build-system)
1987 (native-inputs
1988 `(("gobject-introspection" ,gobject-introspection)
1989 ("pkg-config" ,pkg-config)))
1990 (inputs
1991 `(("gtk+" ,gtk+)
1992 ("libjpeg" ,libjpeg-turbo)
1993 ("lcms" ,lcms)
1994 ("libtiff" ,libtiff)))
1995 (propagated-inputs
1996 ;; In Requires of libgxps.pc.
1997 `(("cairo" ,cairo)
1998 ("glib" ,glib)
1999 ("libarchive" ,libarchive)))
2000 (home-page "https://wiki.gnome.org/Projects/libgxps")
2001 (synopsis "GObject-based library for handling and rendering XPS documents")
2002 (description
2003 "libgxps is a GObject-based library for handling and rendering XPS
2004 documents. This package also contains binaries that can convert XPS documents
2005 to other formats.")
2006 (license license:lgpl2.1+)))
2007
2008 (define-public gnome-characters
2009 (package
2010 (name "gnome-characters")
2011 (version "3.30.0")
2012 (source
2013 (origin
2014 (method url-fetch)
2015 (uri (string-append "mirror://gnome/sources/"
2016 "gnome-characters/" (version-major+minor version)
2017 "/gnome-characters-" version ".tar.xz"))
2018 (sha256
2019 (base32
2020 "08cwz39iwgsyyb2wqhb8vfbmh1cwfkgfiy7adp08w7rwqi99x3dp"))))
2021 (build-system meson-build-system)
2022 (arguments
2023 `(#:glib-or-gtk? #t
2024 #:phases (modify-phases %standard-phases
2025 (add-after 'install 'wrap
2026 (lambda* (#:key outputs #:allow-other-keys)
2027 ;; GNOME Characters needs Typelib files from GTK and
2028 ;; gnome-desktop.
2029 (wrap-program (string-append (assoc-ref outputs "out")
2030 "/bin/gnome-characters")
2031 `("GI_TYPELIB_PATH" ":" prefix
2032 (,(getenv "GI_TYPELIB_PATH"))))
2033 #t)))))
2034 (native-inputs
2035 `(("gettext" ,gettext-minimal)
2036 ("glib:bin" ,glib "bin")
2037 ("gtk+:bin" ,gtk+ "bin")
2038 ("pkg-config" ,pkg-config)
2039 ("python" ,python-minimal)))
2040 (inputs
2041 `(("gjs" ,gjs)
2042 ("gtk+" ,gtk+)
2043 ("libunistring" ,libunistring)
2044 ("gnome-desktop" ,gnome-desktop)))
2045 (home-page "https://wiki.gnome.org/Apps/CharacterMap")
2046 (synopsis "Find and insert unusual characters")
2047 (description "Characters is a simple utility application to find
2048 and insert unusual characters. It allows you to quickly find the
2049 character you are looking for by searching for keywords.")
2050 (license license:bsd-3)))
2051
2052 (define-public gnome-common
2053 (package
2054 (name "gnome-common")
2055 (version "3.18.0")
2056 (source
2057 (origin
2058 (method url-fetch)
2059 (uri (string-append "mirror://gnome/sources/" name "/"
2060 (version-major+minor version) "/"
2061 name "-" version ".tar.xz"))
2062 (sha256
2063 (base32
2064 "1kzqi8qvh5p1zncj8msazlmvcwsczjz2hqxp4x2y0mg718vrwmi2"))))
2065 (build-system gnu-build-system)
2066 (home-page "https://www.gnome.org/")
2067 (synopsis "Bootstrap GNOME modules built from Git")
2068 (description "gnome-common contains various files needed to bootstrap
2069 GNOME modules built from Git. It contains a common \"autogen.sh\" script that
2070 can be used to configure a source directory checked out from Git and some
2071 commonly used macros.")
2072 (license license:gpl2+)))
2073
2074 (define-public gnome-contacts
2075 (package
2076 (name "gnome-contacts")
2077 (version "3.34")
2078 (source (origin
2079 (method url-fetch)
2080 (uri (string-append "mirror://gnome/sources/gnome-contacts/"
2081 (version-major+minor version) "/"
2082 name "-" version ".tar.xz"))
2083 (sha256
2084 (base32
2085 "04igc9xvyc4kb5xf5g2missnvyvj9zv5cqxf5k4z7hb0sv42wq4r"))))
2086 (build-system meson-build-system)
2087 (arguments
2088 `(#:configure-flags '("-Dcheese=false")
2089 #:phases
2090 (modify-phases %standard-phases
2091 (add-after 'unpack 'generate-vapis
2092 (lambda* (#:key inputs #:allow-other-keys)
2093 ;; To generate goa's missing .vapi file
2094 (define goa
2095 (assoc-ref inputs "gnome-online-accounts:lib"))
2096
2097 (invoke "vapigen" "--directory=vapi" "--pkg=gio-2.0"
2098 "--library=goa-1.0"
2099 (string-append goa "/share/gir-1.0/Goa-1.0.gir"))
2100 #t))
2101 (add-after 'unpack 'skip-gtk-update-icon-cache
2102 ;; Don't create 'icon-theme.cache'.
2103 (lambda _
2104 (substitute* "build-aux/meson_post_install.py"
2105 (("gtk-update-icon-cache") "true"))
2106 #t)))))
2107 (native-inputs
2108 `(("glib:bin" ,glib "bin")
2109 ("pkg-config" ,pkg-config)))
2110 (inputs
2111 `(("docbook-xml" ,docbook-xml)
2112 ("dockbook-xsl" ,docbook-xsl)
2113 ("evolution-data-server" ,evolution-data-server)
2114 ("gettext" ,gettext-minimal)
2115 ("gnome-desktop" ,gnome-desktop)
2116 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
2117 ("gobject-introspection" ,gobject-introspection)
2118 ("gst-plugins-base" ,gst-plugins-base)
2119 ("gtk+" ,gtk+)
2120 ("libgee" ,libgee)
2121 ("libxslt" ,libxslt)
2122 ("telepathy-glib" ,telepathy-glib)
2123 ("vala" ,vala)))
2124 (propagated-inputs
2125 `(("folks" ,folks)
2126 ("telepathy-mission-control" ,telepathy-mission-control)))
2127 (synopsis "GNOME's integrated address book")
2128 (description
2129 "GNOME Contacts organizes your contact information from online and
2130 offline sources, providing a centralized place for managing your contacts.")
2131 (home-page "https://wiki.gnome.org/Apps/Contacts")
2132 (license license:gpl2+)))
2133
2134 (define-public gnome-desktop
2135 (package
2136 (name "gnome-desktop")
2137 (version "3.34.2")
2138 (source
2139 (origin
2140 (method url-fetch)
2141 (uri (string-append "mirror://gnome/sources/" name "/"
2142 (version-major+minor version) "/"
2143 name "-" version ".tar.xz"))
2144 (sha256
2145 (base32
2146 "1v983xirwp1y6ggz97bh742ak6gff0hxb359dgn37nikjxhvm0a0"))))
2147 (build-system meson-build-system)
2148 (arguments
2149 '(#:phases
2150 (modify-phases %standard-phases
2151 (add-before 'configure 'patch-path
2152 (lambda* (#:key inputs #:allow-other-keys)
2153 (let ((libc (assoc-ref inputs "libc")))
2154 (substitute* "libgnome-desktop/gnome-languages.c"
2155 (("\"locale\"")
2156 (string-append "\"" libc "/bin/locale\"")))
2157 #t)))
2158 (add-before 'configure 'patch-bubblewrap
2159 (lambda* (#:key inputs #:allow-other-keys)
2160 (substitute* "libgnome-desktop/gnome-desktop-thumbnail-script.c"
2161 (("\"bwrap\",")
2162 (string-append "\"" (which "bwrap") "\","))
2163 (("\"--ro-bind\", \"/usr\", \"/usr\",")
2164 (string-append "\"--ro-bind\", \""
2165 (%store-directory)
2166 "\", \""
2167 (%store-directory)
2168 "\","))
2169 (("\"--ro-bind\", \"/etc/ld.so.cache\", \"/etc/ld.so.cache\",") ""))
2170 #t))
2171 (add-before 'check 'pre-check
2172 (lambda* (#:key inputs #:allow-other-keys)
2173 ;; Tests require a running X server and locales.
2174 (system "Xvfb :1 &")
2175 (setenv "DISPLAY" ":1")
2176 (setenv "GUIX_LOCPATH"
2177 (string-append (assoc-ref inputs "glibc-locales")
2178 "/lib/locale"))
2179 #t)))))
2180 (native-inputs
2181 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
2182 ("glibc-locales" ,glibc-locales) ; for tests
2183 ("gobject-introspection" ,gobject-introspection)
2184 ("itstool" ,itstool)
2185 ("intltool" ,intltool)
2186 ("pkg-config" ,pkg-config)
2187 ("xmllint" ,libxml2)
2188 ("xorg-server" ,xorg-server-for-tests)))
2189 (propagated-inputs
2190 ;; Required by gnome-desktop-3.0.pc.
2191 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2192 ("gtk+" ,gtk+)
2193 ("iso-codes" ,iso-codes)
2194 ("libseccomp" ,libseccomp)
2195 ("libx11" ,libx11)
2196 ("xkeyboard-config" ,xkeyboard-config)))
2197 (inputs
2198 `(("gdk-pixbuf" ,gdk-pixbuf)
2199 ("glib" ,glib)
2200 ("bubblewrap" ,bubblewrap)
2201 ("libxext" ,libxext)
2202 ("libxkbfile" ,libxkbfile)
2203 ("libxrandr" ,libxrandr)))
2204 (home-page "https://www.gnome.org/")
2205 (synopsis
2206 "Libgnome-desktop, gnome-about, and desktop-wide documents")
2207 (description
2208 "The libgnome-desktop library provides API shared by several applications
2209 on the desktop, but that cannot live in the platform for various reasons.
2210 There is no API or ABI guarantee, although we are doing our best to provide
2211 stability. Documentation for the API is available with gtk-doc.
2212
2213 The gnome-about program helps find which version of GNOME is installed.")
2214 ; Some bits under the LGPL.
2215 (license license:gpl2+)))
2216
2217 (define-public gnome-doc-utils
2218 (package
2219 (name "gnome-doc-utils")
2220 (version "0.20.10")
2221 (source
2222 (origin
2223 (method url-fetch)
2224 (uri (string-append "mirror://gnome/sources/" name "/"
2225 (version-major+minor version) "/"
2226 name "-" version ".tar.xz"))
2227 (sha256
2228 (base32
2229 "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb"))))
2230 (build-system gnu-build-system)
2231 (native-inputs
2232 `(("intltool" ,intltool)
2233 ("docbook-xml" ,docbook-xml-4.4)
2234 ("python2-libxml2" ,python2-libxml2)
2235 ("libxml2" ,libxml2)
2236 ("libxslt" ,libxslt)
2237 ("pkg-config" ,pkg-config)
2238 ("python-2" ,python-2)))
2239 (home-page "https://wiki.gnome.org/GnomeDocUtils")
2240 (synopsis
2241 "Documentation utilities for the Gnome project")
2242 (description
2243 "Gnome-doc-utils is a collection of documentation utilities for the
2244 Gnome project. It includes xml2po tool which makes it easier to translate
2245 and keep up to date translations of documentation.")
2246 (license license:gpl2+))) ; xslt under lgpl
2247
2248 (define-public gnome-disk-utility
2249 (package
2250 (name "gnome-disk-utility")
2251 (version "3.34.0")
2252 (source (origin
2253 (method url-fetch)
2254 (uri (string-append "mirror://gnome/sources/" name "/"
2255 (version-major+minor version) "/"
2256 name "-" version ".tar.xz"))
2257 (sha256
2258 (base32
2259 "1mb7q90lnlp97dhxhnadhjagcfd12dfqzp0vj9h6b1r61pzhy97y"))))
2260 (build-system meson-build-system)
2261 (arguments
2262 '(#:configure-flags '("-Dlogind=libelogind")
2263 #:phases
2264 (modify-phases %standard-phases
2265 (add-after 'unpack 'skip-gtk-update-icon-cache
2266 ;; Don't create 'icon-theme.cache'.
2267 (lambda _
2268 (substitute* "meson_post_install.py"
2269 (("gtk-update-icon-cache") "true"))
2270 #t)))))
2271 (native-inputs
2272 `(("glib:bin" ,glib "bin")
2273 ("intltool" ,intltool)
2274 ("pkg-config" ,pkg-config)
2275 ("docbook-xml" ,docbook-xml)
2276 ("docbook-xsl" ,docbook-xsl)
2277 ("libxml2" ,libxml2)
2278 ("libxslt" ,libxslt)))
2279 (inputs
2280 `(("elogind" ,elogind)
2281 ("glib" ,glib)
2282 ("appstream-glib" ,appstream-glib)
2283 ("gnome-settings-daemon" ,gnome-settings-daemon)
2284 ("gtk+" ,gtk+)
2285 ("libcanberra" ,libcanberra)
2286 ("libdvdread" ,libdvdread)
2287 ("libnotify" ,libnotify)
2288 ("libpwquality" ,libpwquality)
2289 ("libsecret" ,libsecret)
2290 ("udisks" ,udisks)))
2291 (home-page "https://git.gnome.org/browse/gnome-disk-utility")
2292 (synopsis "Disk management utility for GNOME")
2293 (description "Disk management utility for GNOME.")
2294 (license license:gpl2+)))
2295
2296 (define-public gnome-font-viewer
2297 (package
2298 (name "gnome-font-viewer")
2299 (version "3.30.0")
2300 (source (origin
2301 (method url-fetch)
2302 (uri (string-append "mirror://gnome/sources/gnome-font-viewer/"
2303 (version-major+minor version)
2304 "/gnome-font-viewer-" version ".tar.xz"))
2305 (sha256
2306 (base32
2307 "1wwnx2zrlbd2d6np7m9s78alx6j6ranrnh1g2z6zrv9qcj8rpzz5"))))
2308 (build-system meson-build-system)
2309 (arguments
2310 '(#:phases
2311 (modify-phases %standard-phases
2312 (add-after 'unpack 'patch-post-install-script
2313 (lambda _
2314 (substitute* "meson-postinstall.sh"
2315 (("update-desktop-database") (which "true")))
2316 #t))
2317 (add-after 'install 'patch-thumbnailer
2318 (lambda* (#:key outputs #:allow-other-keys)
2319 (let ((out (assoc-ref outputs "out")))
2320 (substitute*
2321 (string-append
2322 out
2323 "/share/thumbnailers/gnome-font-viewer.thumbnailer")
2324 (("gnome-thumbnail-font")
2325 (string-append out "/bin/gnome-thumbnail-font"))))
2326 #t)))))
2327 (native-inputs
2328 `(("gettext" ,gettext-minimal)
2329 ("glib:bin" ,glib "bin")
2330 ("pkg-config" ,pkg-config)))
2331 (inputs
2332 `(("glib" ,glib)
2333 ("gnome-desktop" ,gnome-desktop)
2334 ("gtk+" ,gtk+)))
2335 (home-page "https://gitlab.gnome.org/GNOME/gnome-font-viewer")
2336 (synopsis "GNOME Fonts")
2337 (description "Application to show you the fonts installed on your computer
2338 for your use as thumbnails. Selecting any thumbnails shows the full view of how
2339 the font would look under various sizes.")
2340 (license license:gpl2+)))
2341
2342 (define-public gcr
2343 (package
2344 (name "gcr")
2345 (version "3.34.0")
2346 (source (origin
2347 (method url-fetch)
2348 (uri (string-append "mirror://gnome/sources/" name "/"
2349 (version-major+minor version) "/"
2350 name "-" version ".tar.xz"))
2351 (sha256
2352 (base32
2353 "0925snsixzkwh49xiayqmj6fcrmklqk8kyy0jkv7m64h9abm1pr9"))))
2354 (build-system gnu-build-system)
2355 (arguments
2356 '(#:phases
2357 (modify-phases %standard-phases
2358 ;; These fail because /var/lib/dbus/machine-id is not present in the
2359 ;; build environment.
2360 (add-after 'unpack 'disable-failing-tests
2361 (lambda _
2362 (substitute* "Makefile.in"
2363 (("[[:blank:]]+test-system-prompt\\$\\(EXEEXT\\)")
2364 ""))
2365 #t))
2366 (add-before 'check 'pre-check
2367 (lambda _
2368 ;; Some tests expect to write to $HOME.
2369 (setenv "HOME" "/tmp")
2370 #t)))))
2371 (inputs
2372 `(("dbus" ,dbus)
2373 ("gnupg" ,gnupg) ;called as a child process during tests
2374 ("libgcrypt" ,libgcrypt)))
2375 (native-inputs
2376 `(("python" ,python-wrapper) ;for tests
2377 ("pkg-config" ,pkg-config)
2378 ("gettext" ,gettext-minimal)
2379 ("glib" ,glib "bin")
2380 ("gobject-introspection" ,gobject-introspection)
2381 ("libxml2" ,libxml2)
2382 ("vala" ,vala)
2383 ("xsltproc" ,libxslt)))
2384 ;; mentioned in gck.pc, gcr.pc and gcr-ui.pc
2385 (propagated-inputs
2386 `(("p11-kit" ,p11-kit)
2387 ("glib" ,glib)
2388 ("gtk+" ,gtk+)))
2389 (home-page "https://www.gnome.org")
2390 (synopsis "Libraries for displaying certificates and accessing key stores")
2391 (description
2392 "The GCR package contains libraries used for displaying certificates and
2393 accessing key stores. It also provides the viewer for crypto files on the
2394 GNOME Desktop.")
2395 (license license:lgpl2.1+)))
2396
2397 (define-public gdl
2398 (package
2399 (name "gdl")
2400 (version "3.34.0")
2401 (source (origin
2402 (method git-fetch)
2403 (uri (git-reference
2404 (url "https://gitlab.gnome.org/GNOME/gdl.git")
2405 (commit (string-append "GDL_" (string-map (match-lambda
2406 (#\. #\_)
2407 (c c))
2408 version)))))
2409 (file-name (git-file-name name version))
2410 (sha256
2411 (base32
2412 "154qcr0x6f68f4q526y87imv0rscmp34n47nk1pp82rsq52h2zna"))))
2413 (build-system gnu-build-system)
2414 (native-inputs
2415 `(("autoconf" ,autoconf)
2416 ("automake" ,automake)
2417 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2418 ("gnome-common" ,gnome-common)
2419 ("gtk-doc" ,gtk-doc)
2420 ("intltool" ,intltool)
2421 ("pkg-config" ,pkg-config)
2422 ("libtool" ,libtool)
2423 ("which" ,which)))
2424 (inputs
2425 `(("libxml2" ,libxml2)))
2426 (propagated-inputs
2427 ;; The gdl-3.0.pc file 'Requires' GTK+.
2428 `(("gtk+" ,gtk+)))
2429 (home-page "https://gitlab.gnome.org/GNOME/gdl/")
2430 (synopsis "GNOME docking library")
2431 (description "This library provides docking features for gtk+.")
2432 (license license:lgpl2.1+)))
2433
2434 ;;; A minimal variant used to break a cycle with Inkscape.
2435 (define-public gdl-minimal
2436 (package
2437 (inherit gdl)
2438 (name "gdl-minimal")
2439 (arguments
2440 '(#:phases
2441 (modify-phases %standard-phases
2442 (add-after 'unpack 'disable-doc-generation
2443 ;; XXX: There is no easy way to disable generating the
2444 ;; documentation.
2445 (lambda _
2446 (substitute* "configure.in"
2447 (("GTK_DOC_CHECK.*") "")
2448 (("docs/.*") ""))
2449 (substitute* "Makefile.am"
2450 (("gdl docs po") "gdl po"))
2451 #t)))))
2452 (native-inputs (alist-delete "gtk-doc" (package-native-inputs gdl)))))
2453
2454 (define-public libgnome-keyring
2455 (package
2456 (name "libgnome-keyring")
2457 (version "3.12.0")
2458 (source (origin
2459 (method url-fetch)
2460 (uri (string-append "mirror://gnome/sources/" name "/"
2461 (version-major+minor version) "/"
2462 name "-" version ".tar.xz"))
2463 (sha256
2464 (base32
2465 "10vpjhgbjm7z2djy04qakd02qlzpd02xnbfjhk2aqwjzn3xpihf4"))))
2466 (build-system gnu-build-system)
2467 (inputs
2468 `(("libgcrypt" ,libgcrypt)
2469 ("dbus" ,dbus)))
2470 (native-inputs
2471 `(("pkg-config" ,pkg-config)
2472 ("glib" ,glib "bin")
2473 ("intltool" ,intltool)))
2474 (propagated-inputs
2475 ;; Referred to in .h files and .pc.
2476 `(("glib" ,glib)))
2477 (home-page "https://www.gnome.org")
2478 (synopsis "Accessing passwords from the GNOME keyring")
2479 (description
2480 "Client library to access passwords from the GNOME keyring.")
2481
2482 ;; Though a couple of files are LGPLv2.1+.
2483 (license license:lgpl2.0+)))
2484
2485 (define-public gnome-keyring
2486 (package
2487 (name "gnome-keyring")
2488 (version "3.34.0")
2489 (source (origin
2490 (method url-fetch)
2491 (uri (string-append "mirror://gnome/sources/" name "/"
2492 (version-major+minor version) "/"
2493 name "-" version ".tar.xz"))
2494 (sha256
2495 (base32
2496 "0hqrsh5g9q9lm190f0m85q4nki8k4ng7wphl6qbccdry59aakkg9"))))
2497 (build-system gnu-build-system)
2498 (arguments
2499 `(#:tests? #f ;48 of 603 tests fail because /var/lib/dbus/machine-id does
2500 ;not exist
2501 #:configure-flags
2502 (list
2503 (string-append "--with-pkcs11-config="
2504 (assoc-ref %outputs "out") "/share/p11-kit/modules/")
2505 (string-append "--with-pkcs11-modules="
2506 (assoc-ref %outputs "out") "/share/p11-kit/modules/"))
2507 #:phases
2508 (modify-phases %standard-phases
2509 (add-after 'unpack 'fix-/bin/sh-reference
2510 (lambda _
2511 (substitute* "po/Makefile.in.in"
2512 (("/bin/sh") (which "sh")))
2513 #t))
2514 (add-after 'unpack 'fix-docbook
2515 (lambda* (#:key inputs #:allow-other-keys)
2516 (substitute* "docs/Makefile.am"
2517 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
2518 (string-append (assoc-ref inputs "docbook-xsl")
2519 "/xml/xsl/docbook-xsl-"
2520 ,(package-version docbook-xsl)
2521 "/manpages/docbook.xsl")))
2522 (setenv "XML_CATALOG_FILES"
2523 (string-append (assoc-ref inputs "docbook-xml")
2524 "/xml/dtd/docbook/catalog.xml"))
2525 ;; Rerun the whole thing to avoid version mismatch ("This is
2526 ;; Automake 1.15.1, but the definition used by this
2527 ;; AM_INIT_AUTOMAKE comes from Automake 1.15."). Note: we don't
2528 ;; use 'autoreconf' because it insists on running 'libtoolize'.
2529 (invoke "autoconf")
2530 (invoke "aclocal")
2531 (invoke "automake" "-ac"))))))
2532 (inputs
2533 `(("libgcrypt" ,libgcrypt)
2534 ("linux-pam" ,linux-pam)
2535 ("openssh" ,openssh)
2536 ("dbus" ,dbus)
2537 ("gcr" ,gcr)))
2538 (native-inputs
2539 `(("pkg-config" ,pkg-config)
2540 ("glib" ,glib "bin")
2541 ("glib" ,glib) ; for m4 macros
2542 ("python" ,python-2) ;for tests
2543 ("intltool" ,intltool)
2544 ("autoconf" ,autoconf)
2545 ("automake" ,automake)
2546 ("libxslt" ,libxslt) ;for documentation
2547 ("docbook-xml" ,docbook-xml-4.2)
2548 ("docbook-xsl" ,docbook-xsl)))
2549 (propagated-inputs
2550 `(("gcr" ,gcr)))
2551 (home-page "https://www.gnome.org")
2552 (synopsis "Daemon to store passwords and encryption keys")
2553 (description
2554 "gnome-keyring is a program that keeps passwords and other secrets for
2555 users. It is run as a daemon in the session, similar to ssh-agent, and other
2556 applications locate it via an environment variable or D-Bus.
2557
2558 The program can manage several keyrings, each with its own master password,
2559 and there is also a session keyring which is never stored to disk, but
2560 forgotten when the session ends.")
2561 (license license:lgpl2.1+)))
2562
2563 (define-public evince
2564 (package
2565 (name "evince")
2566 (version "3.36.5")
2567 (source (origin
2568 (method url-fetch)
2569 (uri (string-append "mirror://gnome/sources/evince/"
2570 (version-major+minor version) "/"
2571 "evince-" version ".tar.xz"))
2572 (sha256
2573 (base32
2574 "0z79jl0j9xq9wgwkfr0d1w1qrdy4447y8shs407n5srr0vixc3bg"))))
2575 (build-system glib-or-gtk-build-system)
2576 (arguments
2577 `(#:configure-flags '("--disable-nautilus" "--enable-introspection")
2578 #:phases
2579 (modify-phases %standard-phases
2580 (add-before 'install 'skip-gtk-update-icon-cache
2581 ;; Don't create 'icon-theme.cache'.
2582 (lambda _
2583 (substitute* "data/Makefile"
2584 (("gtk-update-icon-cache") "true"))
2585 #t)))))
2586 (inputs
2587 `(("libarchive" ,libarchive)
2588 ("libgxps" ,libgxps)
2589 ("libspectre" ,libspectre)
2590 ("djvulibre" ,djvulibre)
2591 ("ghostscript" ,ghostscript)
2592 ("poppler" ,poppler)
2593 ("libtiff" ,libtiff)
2594 ;; TODO:
2595 ;; Build libkpathsea as a shared library for DVI support.
2596 ;; ("libkpathsea" ,texlive-bin)
2597 ("gnome-desktop" ,gnome-desktop)
2598 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2599 ("gspell" ,gspell)
2600 ("libgnome-keyring" ,libgnome-keyring)
2601 ("adwaita-icon-theme" ,adwaita-icon-theme)
2602 ("gdk-pixbuf" ,gdk-pixbuf)
2603 ("atk" ,atk)
2604 ("pango" ,pango)
2605 ("gtk+" ,gtk+)
2606 ("glib" ,glib)
2607 ("libxml2" ,libxml2)
2608 ("libsm" ,libsm)
2609 ("libice" ,libice)
2610 ("shared-mime-info" ,shared-mime-info)
2611 ("dconf" ,dconf)
2612 ("libcanberra" ,libcanberra)
2613 ("libsecret" ,libsecret)
2614
2615 ;; For tests.
2616 ("dogtail" ,python2-dogtail)))
2617 (native-inputs
2618 `(("itstool" ,itstool)
2619 ("intltool" ,intltool)
2620 ("glib" ,glib "bin")
2621 ("gobject-introspection" ,gobject-introspection)
2622 ("pkg-config" ,pkg-config)
2623 ("xmllint" ,libxml2)))
2624 (home-page "https://www.gnome.org/projects/evince/")
2625 (synopsis "GNOME's document viewer")
2626 (description
2627 "Evince is a document viewer for multiple document formats. It
2628 currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
2629 of Evince is to replace the multiple document viewers that exist
2630 on the GNOME Desktop with a single simple application.")
2631 (license license:gpl2+)))
2632
2633 (define-public gsettings-desktop-schemas
2634 (package
2635 (name "gsettings-desktop-schemas")
2636 (version "3.34.0")
2637 (source
2638 (origin
2639 (method url-fetch)
2640 (uri (string-append "mirror://gnome/sources/" name "/"
2641 (version-major+minor version) "/"
2642 name "-" version ".tar.xz"))
2643 (sha256
2644 (base32
2645 "1bayr76aylawf2fhyjhv9zgk4kpv7ivrrmd80khb0h3h1wk092r8"))))
2646 (build-system meson-build-system)
2647 (arguments
2648 '(#:phases (modify-phases %standard-phases
2649 (add-after 'unpack 'patch-schemas
2650 (lambda* (#:key inputs #:allow-other-keys)
2651 (let ((theme (assoc-ref inputs "gnome-backgrounds")))
2652 (substitute* (find-files "schemas"
2653 "\\.gschema\\.xml\\.in$")
2654 ;; Provide the correct file name of the default GNOME
2655 ;; background, 'adwaita-timed.xml'.
2656 (("@datadir@/backgrounds/gnome")
2657 (string-append theme "/share/backgrounds/gnome"))
2658 ;; Do not reference fonts, that may not exist.
2659 (("'Source Code Pro 10'") "'Monospace 11'"))
2660 #t))))))
2661 (inputs
2662 `(("glib" ,glib)
2663 ("gnome-backgrounds" ,gnome-backgrounds)))
2664 (native-inputs
2665 `(("intltool" ,intltool)
2666 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
2667 ("gobject-introspection" ,gobject-introspection)
2668 ("pkg-config" ,pkg-config)))
2669 (home-page "https://launchpad.net/gsettings-desktop-schemas")
2670 (synopsis
2671 "GNOME settings for various desktop components")
2672 (description
2673 "Gsettings-desktop-schemas contains a collection of GSettings schemas
2674 for settings shared by various components of the GNOME desktop.")
2675 (license license:lgpl2.1+)))
2676
2677 (define-public python-liblarch
2678 (package
2679 (name "python-liblarch")
2680 (version "3.0.1")
2681 (source
2682 (origin
2683 (method git-fetch)
2684 (uri (git-reference
2685 (url "https://github.com/getting-things-gnome/liblarch")
2686 (commit (string-append "v" version))))
2687 (file-name (git-file-name name version))
2688 (sha256
2689 (base32 "0xv2mfvyzipbny3iz8vll77wsqxfwh28xj6bj1ff0l452waph45m"))))
2690 (build-system python-build-system)
2691 (arguments
2692 `(#:phases
2693 (modify-phases %standard-phases
2694 (add-before 'check 'start-xserver
2695 (lambda* (#:key inputs #:allow-other-keys)
2696 (system (format #f "~a/bin/Xvfb :1 &"
2697 (assoc-ref inputs "xorg-server")))
2698 (setenv "DISPLAY" ":1")
2699 #t)))))
2700 (native-inputs
2701 `(("xorg-server" ,xorg-server-for-tests)))
2702 (inputs
2703 `(("gtk+" ,gtk+)))
2704 (propagated-inputs
2705 `(("python-pygobject" ,python-pygobject)))
2706 (home-page "https://wiki.gnome.org/Projects/liblarch")
2707 (synopsis "Library to easily handle complex data structures")
2708 (description
2709 "Liblarch is a Python library built to easily handle data structures such
2710 as lists, trees and acyclic graphs. There's also a GTK binding that will
2711 allow you to use your data structure in a @code{Gtk.Treeview}.
2712
2713 Liblarch support multiple views of one data structure and complex filtering.
2714 That way, you have a clear separation between your data themselves (Model)
2715 and how they are displayed (View).")
2716 (license license:lgpl3+)))
2717
2718 (define-public gtg
2719 (package
2720 (name "gtg")
2721 (version "0.4")
2722 (source
2723 (origin
2724 (method git-fetch)
2725 (uri (git-reference
2726 (url "https://github.com/getting-things-gnome/gtg")
2727 (commit (string-append "v" version))))
2728 (file-name (git-file-name name version))
2729 (sha256
2730 (base32 "0r28vyr88rj3kd3cg4gj7sd29wadjchi92wzmbx67d4hlg25h8kk"))))
2731 (build-system meson-build-system)
2732 (arguments
2733 `(#:glib-or-gtk? #t
2734 #:phases
2735 (modify-phases %standard-phases
2736 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
2737 (lambda* (#:key outputs #:allow-other-keys)
2738 (let ((prog (string-append (assoc-ref outputs "out")
2739 "/bin/gtg"))
2740 (pylib (string-append (assoc-ref outputs "out")
2741 "/lib/python"
2742 ,(version-major+minor
2743 (package-version python))
2744 "/site-packages")))
2745 (wrap-program prog
2746 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
2747 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
2748 #t))))))
2749 (native-inputs
2750 `(("desktop-file-utils" ,desktop-file-utils)
2751 ("gettext" ,gettext-minimal)
2752 ("glib:bin" ,glib "bin")
2753 ("gobject-introspection" ,gobject-introspection)
2754 ("gtk+:bin" ,gtk+ "bin")
2755 ("pkg-config" ,pkg-config)))
2756 (inputs
2757 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2758 ("gtk+" ,gtk+)
2759 ("python-dbus" ,python-dbus)
2760 ("python-liblarch" ,python-liblarch)
2761 ("python-pycairo" ,python-pycairo)
2762 ("python-pygobject" ,python-pygobject)
2763 ("python-pyxdg" ,python-pyxdg)))
2764 (home-page "https://wiki.gnome.org/Apps/GTG")
2765 (synopsis "Personal organizer for the GNOME desktop")
2766 (description
2767 "Getting Things GNOME! (GTG) is a personal tasks and TODO list items
2768 organizer for the GNOME desktop environment inspired by the Getting Things
2769 Done (GTD) methodology. GTG is designed with flexibility, adaptability,
2770 and ease of use in mind so it can be used as more than just GTD software.
2771 GTG is intended to help you track everything you need to do and need to
2772 know, from small tasks to large projects.")
2773 (license license:gpl3+)))
2774
2775 (define-public icon-naming-utils
2776 (package
2777 (name "icon-naming-utils")
2778 (version "0.8.90")
2779 (source
2780 (origin
2781 (method url-fetch)
2782 (uri (string-append "https://tango.freedesktop.org/releases/icon-naming-utils-"
2783 version ".tar.bz2"))
2784 (sha256
2785 (base32
2786 "1mc3v28fdfqanx3lqx233vcr4glb4c2376k0kx2v91a4vxwqcdxi"))))
2787 (build-system gnu-build-system)
2788 (inputs
2789 `(("perl" ,perl)
2790 ("perl-xml-simple" ,perl-xml-simple)))
2791 (arguments
2792 '(#:phases
2793 (modify-phases %standard-phases
2794 (add-after 'install 'set-load-paths
2795 ;; Tell 'icon-name-mapping' where XML::Simple is.
2796 (lambda* (#:key outputs #:allow-other-keys)
2797 (let* ((out (assoc-ref outputs "out"))
2798 (prog (string-append out "/libexec/icon-name-mapping")))
2799 (wrap-program
2800 prog
2801 `("PERL5LIB" = ,(list (getenv "PERL5LIB")))))
2802 #t)))))
2803 (home-page "http://tango.freedesktop.org/Standard_Icon_Naming_Specification")
2804 (synopsis
2805 "Utility to implement the Freedesktop Icon Naming Specification")
2806 (description
2807 "To help with the transition to the Freedesktop Icon Naming
2808 Specification, the icon naming utility maps the icon names used by the
2809 GNOME and KDE desktops to the icon names proposed in the specification.")
2810 (license license:lgpl2.1+)))
2811
2812 (define-public gnome-icon-theme
2813 (package
2814 (name "gnome-icon-theme")
2815 (version "3.12.0")
2816 (source
2817 (origin
2818 (method url-fetch)
2819 (uri (string-append "mirror://gnome/sources/" name "/"
2820 (version-major+minor version) "/"
2821 name "-" version ".tar.xz"))
2822 (sha256
2823 (base32
2824 "0fjh9qmmgj34zlgxb09231ld7khys562qxbpsjlaplq2j85p57im"))))
2825 (build-system gnu-build-system)
2826 (arguments
2827 '(#:configure-flags
2828 ;; Don't create 'icon-theme.cache'.
2829 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
2830 (true (string-append coreutils "/bin/true")))
2831 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
2832 (native-inputs
2833 `(("icon-naming-utils" ,icon-naming-utils)
2834 ("intltool" ,intltool)
2835 ("pkg-config" ,pkg-config)))
2836 (home-page "https://wiki.gnome.org/Personalization")
2837 (synopsis "GNOME icon theme")
2838 (description "Icons for the GNOME desktop.")
2839 (license license:lgpl3))) ; or Creative Commons BY-SA 3.0
2840
2841 ;; gnome-icon-theme was renamed to adwaita-icon-theme after version 3.12.0.
2842 (define-public adwaita-icon-theme
2843 (package (inherit gnome-icon-theme)
2844 (name "adwaita-icon-theme")
2845 (version "3.34.3")
2846 (source (origin
2847 (method url-fetch)
2848 (uri (string-append "mirror://gnome/sources/" name "/"
2849 (version-major+minor version) "/"
2850 name "-" version ".tar.xz"))
2851 (sha256
2852 (base32
2853 "025rj1fskw1y448hiar4a9icyzpyr242nlh9xhsmyp8jb71dihp7"))))
2854 (native-inputs
2855 `(("gtk-encode-symbolic-svg" ,gtk+ "bin")))))
2856
2857 (define-public tango-icon-theme
2858 (package
2859 (name "tango-icon-theme")
2860 (version "0.8.90")
2861 (source (origin
2862 (method url-fetch)
2863 (uri (string-append "http://tango.freedesktop.org/releases/"
2864 "tango-icon-theme-" version ".tar.bz2"))
2865 (sha256
2866 (base32
2867 "034r9s944b4yikyfgn602yv7s54wdzlq0qfvqh52b9x6kbx08h79"))))
2868 (build-system gnu-build-system)
2869 (native-inputs
2870 `(("icon-naming-utils" ,icon-naming-utils)
2871 ("intltool" ,intltool)
2872 ("imagemagick" ,imagemagick)
2873 ("pkg-config" ,pkg-config)))
2874 (home-page "http://tango-project.org/")
2875 (synopsis "Tango icon theme")
2876 (description "This is an icon theme that follows the Tango visual
2877 guidelines.")
2878 (license license:public-domain)))
2879
2880 (define-public shared-mime-info
2881 (package
2882 (name "shared-mime-info")
2883 (version "1.15")
2884 (source (origin
2885 (method url-fetch)
2886 (uri (string-append
2887 "https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/"
2888 "b27eb88e4155d8fccb8bb3cd12025d5b/shared-mime-info-" version
2889 ".tar.xz"))
2890 (sha256
2891 (base32
2892 "146vynj78wcwdq0ms52jzm1r4m6dzi1rhyh3h4xyb6bw8ckv10pl"))))
2893 (build-system gnu-build-system)
2894 (arguments
2895 ;; The build system appears not to be parallel-safe.
2896 '(#:parallel-build? #f))
2897 (inputs
2898 `(("glib" ,glib)
2899 ("libxml2" ,libxml2)))
2900 (native-inputs
2901 `(("gettext" ,gettext-minimal)
2902 ("itstool" ,itstool)
2903 ("pkg-config" ,pkg-config)))
2904 (home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info")
2905 (synopsis "Database of common MIME types")
2906 (description
2907 "The shared-mime-info package contains the core database of common types
2908 and the update-mime-database command used to extend it. It requires glib2 to
2909 be installed for building the update command. Additionally, it uses intltool
2910 for translations, though this is only a dependency for the maintainers. This
2911 database is translated at Transifex.")
2912 (license license:gpl2+)))
2913
2914 (define-public system-config-printer
2915 (package
2916 (name "system-config-printer")
2917 (version "1.5.15")
2918 (source
2919 (origin
2920 (method url-fetch)
2921 (uri (string-append
2922 "https://github.com/OpenPrinting/system-config-printer/releases/"
2923 "download/v" version
2924 "/system-config-printer-" version ".tar.xz"))
2925 (sha256
2926 (base32 "12d6xx51vizc476zfnsga9q09nflp51ipn6y7lhi9w2v4772dlpv"))))
2927 (build-system glib-or-gtk-build-system)
2928 (arguments
2929 `(#:imported-modules ((guix build python-build-system)
2930 ,@%glib-or-gtk-build-system-modules)
2931 #:phases
2932 (modify-phases %standard-phases
2933 (add-after 'unpack 'patch-Makefile.am
2934 (lambda _
2935 ;; The Makefile generates some scripts, so set a valid shebang
2936 (substitute* "Makefile.am"
2937 (("/bin/bash") (which "bash")))
2938 (delete-file "configure")
2939 #t))
2940 (add-after 'unpack 'patch-docbook-xml
2941 (lambda* (#:key inputs #:allow-other-keys)
2942 ;; Modify the man XML otherwise xmlto tries to access the network
2943 (substitute* "man/system-config-printer.xml"
2944 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
2945 (string-append (assoc-ref inputs "docbook-xml")
2946 "/xml/dtd/docbook/")))
2947 #t))
2948 (add-after 'install 'wrap-for-python
2949 (@@ (guix build python-build-system) wrap))
2950 (add-after 'install 'wrap
2951 (lambda* (#:key outputs #:allow-other-keys)
2952 (let ((out (assoc-ref outputs "out"))
2953 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
2954 (for-each
2955 (lambda (program)
2956 (wrap-program program
2957 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
2958 (map (lambda (name)
2959 (string-append out "/bin/" name))
2960 '("system-config-printer"
2961 "system-config-printer-applet"
2962 "install-printerdriver"
2963 "scp-dbus-service"))))
2964 #t)))))
2965 (inputs
2966 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2967 ("gobject-introspection" ,gobject-introspection)
2968 ("python" ,python)
2969 ("cups" ,cups)
2970 ("gtk+" ,gtk+)
2971 ("python-dbus" ,python-dbus)
2972 ("python-pygobject" ,python-pygobject)
2973 ("python-pycups" ,python-pycups)
2974 ("python-requests" ,python-requests)
2975 ("python-pycairo" ,python-pycairo)
2976 ("libnotify" ,libnotify)
2977 ("packagekit" ,packagekit)))
2978 (native-inputs
2979 `(("pkg-config" ,pkg-config)
2980 ("desktop-file-utils" ,desktop-file-utils)
2981 ("glib" ,glib)
2982 ("autoconf" ,autoconf)
2983 ("automake" ,automake)
2984 ("intltool" ,intltool)
2985 ("xmlto" ,xmlto)
2986 ("docbook-xml" ,docbook-xml-4.1.2)
2987 ("docbook-xsl" ,docbook-xsl)
2988 ("libxml2" ,libxml2)))
2989 (home-page "https://github.com/zdohnal/system-config-printer")
2990 (synopsis "CUPS administration tool")
2991 (description
2992 "system-config-printer is a CUPS administration tool. It's written in
2993 Python using GTK+, and uses the @acronym{IPP, Internet Printing Protocol} when
2994 configuring CUPS.")
2995 (license license:gpl2+)))
2996
2997 (define-public hicolor-icon-theme
2998 (package
2999 (name "hicolor-icon-theme")
3000 (version "0.17")
3001 (source
3002 (origin
3003 (method url-fetch)
3004 (uri (string-append "https://icon-theme.freedesktop.org/releases/"
3005 "hicolor-icon-theme-" version ".tar.xz"))
3006 (sha256
3007 (base32
3008 "1n59i3al3zx6p90ff0l43gzpzmlqnzm6hf5cryxqrlbi48sq8x1i"))))
3009 (build-system gnu-build-system)
3010 (arguments
3011 `(#:tests? #f)) ; no check target
3012 (home-page "https://icon-theme.freedesktop.org/releases/")
3013 (synopsis
3014 "Freedesktop icon theme")
3015 (description
3016 "Freedesktop icon theme.")
3017 (license license:gpl2)))
3018
3019 (define-public libnotify
3020 (package
3021 (name "libnotify")
3022 (version "0.7.9")
3023 (source
3024 (origin
3025 (method url-fetch)
3026 (uri (string-append "mirror://gnome/sources/" name "/"
3027 (version-major+minor version) "/"
3028 name "-" version ".tar.xz"))
3029 (sha256
3030 (base32
3031 "0qa7cx6ra5hwqnxw95b9svgjg5q6ynm8y843iqjszxvds5z53h36"))))
3032 (build-system meson-build-system)
3033 (arguments
3034 `(#:phases
3035 (modify-phases %standard-phases
3036 (add-after 'unpack 'fix-docbook
3037 (lambda* (#:key inputs #:allow-other-keys)
3038 ;; Don't attempt to download XSL schema.
3039 (substitute* "meson.build"
3040 (("http://docbook.sourceforge.net/release/xsl-ns/current\
3041 /manpages/docbook.xsl")
3042 (string-append (assoc-ref inputs "docbook-xsl")
3043 "/xml/xsl/docbook-xsl-"
3044 ,(package-version docbook-xsl)
3045 "/manpages/docbook.xsl")))
3046 #t)))))
3047 (propagated-inputs
3048 `(;; In Requires of libnotify.pc.
3049 ("gdk-pixbuf" ,gdk-pixbuf)
3050 ("glib" ,glib)))
3051 (inputs
3052 `(("gtk+" ,gtk+)
3053 ("libpng" ,libpng)))
3054 (native-inputs
3055 `(("pkg-config" ,pkg-config)
3056 ("glib" ,glib "bin")
3057 ("gobject-introspection" ,gobject-introspection)
3058
3059 ;; For the documentation.
3060 ("gtk-doc" ,gtk-doc)
3061 ("xsltproc" ,libxslt)
3062 ("docbook-xsl" ,docbook-xsl)))
3063 (home-page "https://developer-next.gnome.org/libnotify/")
3064 (synopsis
3065 "GNOME desktop notification library")
3066 (description
3067 "Libnotify is a library that sends desktop notifications to a
3068 notification daemon, as defined in the Desktop Notifications spec. These
3069 notifications can be used to inform the user about an event or display
3070 some form of information without getting in the user's way.")
3071 (license license:lgpl2.1+)))
3072
3073 (define-public libpeas
3074 (package
3075 (name "libpeas")
3076 (version "1.28.0")
3077 (source
3078 (origin
3079 (method url-fetch)
3080 (uri (string-append "mirror://gnome/sources/" name "/"
3081 (version-major+minor version) "/"
3082 name "-" version ".tar.xz"))
3083 (sha256
3084 (base32
3085 "05cb7drn6arc4gi02wgsvzibigi2riz5gnfnmlb0zmbfnj9ikna2"))))
3086 (build-system meson-build-system)
3087 (arguments
3088 '(#:phases
3089 (modify-phases %standard-phases
3090 (add-before 'check 'start-xserver
3091 (lambda* (#:key inputs #:allow-other-keys)
3092 (let ((xorg-server (assoc-ref inputs "xorg-server"))
3093 (disp ":1"))
3094 (setenv "DISPLAY" disp)
3095 ;; Tests require a running X server.
3096 (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp))
3097 #t))))))
3098 (inputs
3099 `(("gtk+" ,gtk+)
3100 ("glade" ,glade3)
3101 ("python" ,python)
3102 ("python-pygobject" ,python-pygobject)))
3103 (native-inputs
3104 `(("pkg-config" ,pkg-config)
3105 ("gettext" ,gettext-minimal)
3106 ("glib:bin" ,glib "bin")
3107 ("gobject-introspection" ,gobject-introspection)
3108 ("xorg-server" ,xorg-server-for-tests)))
3109 (propagated-inputs
3110 ;; The .pc file "Requires" gobject-introspection.
3111 `(("gobject-introspection" ,gobject-introspection)))
3112 (home-page "https://wiki.gnome.org/Libpeas")
3113 (synopsis "GObject plugin system")
3114 (description
3115 "Libpeas is a gobject-based plugin engine, targeted at giving every
3116 application the chance to assume its own extensibility. It also has a set of
3117 features including, but not limited to: multiple extension points; on-demand
3118 (lazy) programming language support for C, Python and JS; simplicity of the
3119 API.")
3120 (license license:lgpl2.0+)))
3121
3122 (define-public gtkglext
3123 (package
3124 (name "gtkglext")
3125 (version "1.2.0")
3126 (source (origin
3127 (method url-fetch)
3128 (uri (string-append "mirror://sourceforge/gtkglext/gtkglext/"
3129 version "/gtkglext-" version ".tar.gz"))
3130 (sha256
3131 (base32 "1ya4d2j2aacr9ii5zj4ac95fjpdvlm2rg79mgnk7yvl1dcy3y1z5"))
3132 (patches (search-patches
3133 "gtkglext-disable-disable-deprecated.patch"))))
3134 (build-system gnu-build-system)
3135 (arguments
3136 `(#:phases
3137 (modify-phases %standard-phases
3138 ;; Fix a collision between a local variable and a definition from
3139 ;; glibc's string.h.
3140 (add-after 'unpack 'fix-collision
3141 (lambda _
3142 (substitute* "gdk/gdkglshapes.c"
3143 ((" index") " triangle_index"))
3144 #t)))))
3145 (inputs `(("gtk+" ,gtk+-2)
3146 ("mesa" ,mesa)
3147 ("glu" ,glu)
3148 ("libx11" ,libx11)
3149 ("libxt" ,libxt)))
3150 (native-inputs `(("pkg-config" ,pkg-config)
3151 ("glib" ,glib "bin")))
3152 (propagated-inputs `(("pangox-compat" ,pangox-compat)))
3153 (home-page "https://projects.gnome.org/gtkglext")
3154 (synopsis "OpenGL extension to GTK+")
3155 (description "GtkGLExt is an OpenGL extension to GTK+. It provides
3156 additional GDK objects which support OpenGL rendering in GTK+ and GtkWidget
3157 API add-ons to make GTK+ widgets OpenGL-capable.")
3158 (license license:lgpl2.1+)))
3159
3160 (define-public glade3
3161 (package
3162 (name "glade")
3163 (version "3.36.0")
3164 (source (origin
3165 (method url-fetch)
3166 (uri (string-append "mirror://gnome/sources/" name "/"
3167 (version-major+minor version) "/"
3168 name "-" version ".tar.xz"))
3169 (sha256
3170 (base32
3171 "023gx8rj51njn8fsb6ma5kz1irjpxi4js0n8rwy22inc4ysldd8r"))))
3172 (build-system glib-or-gtk-build-system)
3173 (arguments
3174 `(#:phases
3175 (modify-phases %standard-phases
3176 (add-before 'configure 'fix-docbook
3177 (lambda* (#:key inputs #:allow-other-keys)
3178 (substitute* "man/Makefile.in"
3179 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
3180 (string-append (assoc-ref inputs "docbook-xsl")
3181 "/xml/xsl/docbook-xsl-"
3182 ,(package-version docbook-xsl)
3183 "/manpages/docbook.xsl")))
3184 #t))
3185 (add-before 'check 'pre-check
3186 (lambda _
3187 (setenv "HOME" "/tmp")
3188 ;; Tests require a running X server.
3189 (system "Xvfb :1 &")
3190 (setenv "DISPLAY" ":1")
3191 #t)))))
3192 (inputs
3193 `(("gtk+" ,gtk+)
3194 ("libxml2" ,libxml2)))
3195 (native-inputs
3196 `(("hicolor-icon-theme" ,hicolor-icon-theme)
3197 ("intltool" ,intltool)
3198 ("itstool" ,itstool)
3199 ("libxslt" ,libxslt) ;for xsltproc
3200 ("docbook-xml" ,docbook-xml-4.2)
3201 ("docbook-xsl" ,docbook-xsl)
3202 ("python" ,python-2)
3203 ("pkg-config" ,pkg-config)
3204 ("xorg-server" ,xorg-server-for-tests)))
3205 (home-page "https://glade.gnome.org")
3206 (synopsis "GTK+ rapid application development tool")
3207 (description "Glade is a rapid application development (RAD) tool to
3208 enable quick & easy development of user interfaces for the GTK+ toolkit and
3209 the GNOME desktop environment.")
3210 (license license:lgpl2.0+)
3211 (native-search-paths (list (search-path-specification
3212 (variable "GLADE_CATALOG_SEARCH_PATH")
3213 (files '("share/glade/catalogs")))
3214 (search-path-specification
3215 (variable "GLADE_MODULE_SEARCH_PATH")
3216 (files '("lib/glade/modules")))))))
3217
3218 (define-public libcroco
3219 (package
3220 (name "libcroco")
3221 (version "0.6.13")
3222 (source (origin
3223 (method url-fetch)
3224 (uri (string-append "mirror://gnome/sources/" name "/"
3225 (version-major+minor version) "/"
3226 name "-" version ".tar.xz"))
3227 (sha256
3228 (base32
3229 "1m110rbj5d2raxcdp4iz0qp172284945awrsbdlq99ksmqsc4zkn"))))
3230 (replacement libcroco/fixed)
3231 (build-system gnu-build-system)
3232 (native-inputs
3233 `(("pkg-config" ,pkg-config)))
3234 (inputs
3235 `(("glib" ,glib)
3236 ("libxml2" ,libxml2)
3237 ("zlib" ,zlib)))
3238 (home-page "https://github.com/GNOME/libcroco")
3239 (synopsis "CSS2 parsing and manipulation library")
3240 (description
3241 "Libcroco is a standalone CSS2 parsing and manipulation library.
3242 The parser provides a low level event driven SAC-like API and a CSS object
3243 model like API. Libcroco provides a CSS2 selection engine and an experimental
3244 XML/CSS rendering engine.")
3245
3246 ;; LGPLv2.1-only.
3247 (license license:lgpl2.1)))
3248
3249 (define libcroco/fixed
3250 (package
3251 (inherit libcroco)
3252 (name "libcroco")
3253 (version "0.6.13")
3254 (source (origin
3255 (method url-fetch)
3256 (uri (string-append "mirror://gnome/sources/" name "/"
3257 (version-major+minor version) "/"
3258 name "-" version ".tar.xz"))
3259 (sha256
3260 (base32
3261 "1m110rbj5d2raxcdp4iz0qp172284945awrsbdlq99ksmqsc4zkn"))
3262 (patches (search-patches "libcroco-CVE-2020-12825.patch"))))))
3263
3264 (define-public libgsf
3265 (package
3266 (name "libgsf")
3267 (version "1.14.47")
3268 (source (origin
3269 (method url-fetch)
3270 (uri (string-append "mirror://gnome/sources/" name "/"
3271 (version-major+minor version) "/"
3272 name "-" version ".tar.xz"))
3273 (sha256
3274 (base32
3275 "0kbpp9ksl7977xiga37sk1gdw1r039v6zviqznl7alvvg39yp26i"))))
3276 (build-system gnu-build-system)
3277 (arguments
3278 '(#:configure-flags '("--disable-static")))
3279 (native-inputs
3280 `(("pkg-config" ,pkg-config)
3281 ("gettext" ,gettext-minimal)
3282
3283 ;; For tests.
3284 ("perl" ,perl)
3285 ("perl-xml-parser" ,perl-xml-parser)))
3286 (inputs
3287 `(("zlib" ,zlib)
3288 ("bzip2" ,bzip2)))
3289 (propagated-inputs
3290 `(("gdk-pixbuf" ,gdk-pixbuf)
3291 ("glib" ,glib)
3292 ("libxml2" ,libxml2)))
3293 (home-page "https://www.gnome.org/projects/libgsf")
3294 (synopsis "GNOME's Structured File Library")
3295 (description
3296 "Libgsf aims to provide an efficient extensible I/O abstraction for
3297 dealing with different structured file formats.")
3298
3299 ;; LGPLv2.1-only.
3300 (license license:lgpl2.1)))
3301
3302 (define-public librsvg
3303 (package
3304 (name "librsvg")
3305 (version "2.40.21")
3306 (source (origin
3307 (method url-fetch)
3308 (uri (string-append "mirror://gnome/sources/" name "/"
3309 (version-major+minor version) "/"
3310 name "-" version ".tar.xz"))
3311 (sha256
3312 (base32
3313 "1fljkag2gr7c4k5mn798lgf9903xslz8h51bgvl89nnay42qjqpp"))))
3314 (build-system gnu-build-system)
3315 (arguments
3316 `(#:configure-flags
3317 (list "--disable-static"
3318 "--enable-vala") ; needed for e.g. gnome-mines
3319 #:phases
3320 (modify-phases %standard-phases
3321 (add-before 'configure 'pre-configure
3322 (lambda* (#:key inputs #:allow-other-keys)
3323 (substitute* "gdk-pixbuf-loader/Makefile.in"
3324 ;; By default the gdk-pixbuf loader is installed under
3325 ;; gdk-pixbuf's prefix. Work around that.
3326 (("gdk_pixbuf_moduledir = .*$")
3327 (string-append "gdk_pixbuf_moduledir = "
3328 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
3329 "loaders\n"))
3330 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
3331 (("gdk_pixbuf_cache_file = .*$")
3332 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
3333 #t))
3334 (add-before 'check 'remove-failing-tests
3335 (lambda _
3336 (with-directory-excursion "tests/fixtures/reftests"
3337 (for-each delete-file
3338 '(;; This test fails on i686:
3339 "svg1.1/masking-path-04-b.svg"
3340 ;; This test fails on armhf:
3341 "svg1.1/masking-mask-01-b.svg"
3342 ;; This test fails on aarch64:
3343 "bugs/777834-empty-text-children.svg")))
3344 #t)))))
3345 (native-inputs
3346 `(("pkg-config" ,pkg-config)
3347 ("vala" ,vala)
3348 ("glib" ,glib "bin") ; glib-mkenums, etc.
3349 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
3350 (inputs
3351 `(;; XXX: 1.44 causes some test failures, so we stick with 1.42 for
3352 ;; this ancient version of librsvg.
3353 ("pango" ,pango-1.42)
3354 ("libcroco" ,libcroco)
3355 ("bzip2" ,bzip2)
3356 ("libgsf" ,libgsf)
3357 ("libxml2" ,libxml2)))
3358 (propagated-inputs
3359 ;; librsvg-2.0.pc refers to all of that.
3360 `(("cairo" ,cairo)
3361 ("gdk-pixbuf" ,gdk-pixbuf)
3362 ("glib" ,glib)))
3363 (home-page "https://wiki.gnome.org/LibRsvg")
3364 (synopsis "Render SVG files using Cairo")
3365 (description
3366 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
3367 library.")
3368 (license license:lgpl2.0+)))
3369
3370 (define-public librsvg-next
3371 (package
3372 (name "librsvg")
3373 (version "2.50.2")
3374 (source (origin
3375 (method url-fetch)
3376 (uri (string-append "mirror://gnome/sources/librsvg/"
3377 (version-major+minor version) "/"
3378 "librsvg-" version ".tar.xz"))
3379 (sha256
3380 (base32
3381 "1lsnl08b5pjf01q3agixjd53islw5rqkc38r31rlmm2crrqz44b2"))
3382 (modules '((guix build utils)))
3383 (snippet
3384 '(begin (delete-file-recursively "vendor")
3385 #t))))
3386 (build-system cargo-build-system)
3387 (outputs '("out" "doc"))
3388 (arguments
3389 `(#:install-source? #f
3390 #:modules
3391 ((guix build cargo-build-system)
3392 (guix build utils)
3393 ((guix build gnu-build-system) #:prefix gnu:))
3394 #:cargo-inputs
3395 (("rust-bitflags" ,rust-bitflags-1)
3396 ("rust-cairo-rs" ,rust-cairo-rs-0.8)
3397 ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
3398 ("rust-cast" ,rust-cast-0.2)
3399 ("rust-cssparser" ,rust-cssparser-0.27)
3400 ("rust-data-url" ,rust-data-url-0.1)
3401 ("rust-encoding" ,rust-encoding-0.2)
3402 ("rust-float-cmp" ,rust-float-cmp-0.8)
3403 ("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.8)
3404 ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.9)
3405 ("rust-gio" ,rust-gio-0.8)
3406 ("rust-gio-sys" ,rust-gio-sys-0.9)
3407 ("rust-glib" ,rust-glib-0.9)
3408 ("rust-glib-sys" ,rust-glib-sys-0.9)
3409 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
3410 ("rust-itertools" ,rust-itertools-0.9)
3411 ("rust-language-tags" ,rust-language-tags-0.2)
3412 ("rust-libc" ,rust-libc-0.2)
3413 ("rust-locale-config" ,rust-locale-config-0.3)
3414 ("rust-markup5ever" ,rust-markup5ever-0.10)
3415 ("rust-nalgebra" ,rust-nalgebra-0.21)
3416 ("rust-num-traits" ,rust-num-traits-0.2)
3417 ("rust-once-cell" ,rust-once-cell-1)
3418 ("rust-pkg-config" ,rust-pkg-config-0.3)
3419 ("rust-pango" ,rust-pango-0.8)
3420 ("rust-pango-sys" ,rust-pango-sys-0.9)
3421 ("rust-pangocairo" ,rust-pangocairo-0.9)
3422 ("rust-rayon" ,rust-rayon-1)
3423 ("rust-rctree" ,rust-rctree-0.3)
3424 ("rust-rgb" ,rust-rgb-0.8)
3425 ("rust-regex" ,rust-regex-1)
3426 ("rust-selectors" ,rust-selectors-0.22)
3427 ("rust-string-cache" ,rust-string-cache-0.8)
3428 ("rust-tinyvec" ,rust-tinyvec-0.3)
3429 ("rust-url" ,rust-url-2)
3430 ("rust-xml5ever" ,rust-xml5ever-0.16))
3431 #:cargo-development-inputs
3432 (("rust-assert-cmd" ,rust-assert-cmd-1)
3433 ("rust-cairo-rs" ,rust-cairo-rs-0.8)
3434 ("rust-chrono" ,rust-chrono-0.4)
3435 ("rust-criterion" ,rust-criterion-0.3)
3436 ("rust-float-cmp" ,rust-float-cmp-0.8)
3437 ("rust-lopdf" ,rust-lopdf-0.25)
3438 ("rust-png" ,rust-png-0.16)
3439 ("rust-predicates" ,rust-predicates-1)
3440 ("rust-tempfile" ,rust-tempfile-3))
3441 #:phases
3442 (modify-phases %standard-phases
3443 (add-after 'unpack 'patch-docbook-xml
3444 (lambda* (#:key inputs #:allow-other-keys)
3445 (with-directory-excursion "doc"
3446 (substitute* "rsvg-docs.xml"
3447 (("http://www.oasis-open.org/docbook/xml/4.3/")
3448 (string-append (assoc-ref inputs "docbook-xml")
3449 "/xml/dtd/docbook/"))))
3450 #t))
3451 (add-after 'unpack 'prepare-for-build
3452 (lambda _
3453 ;; In lieu of #:make-flags
3454 (setenv "CC" ,(cc-for-target))
3455 ;; Something about the build environment resists building
3456 ;; successfully with the '--locked' flag.
3457 (substitute* '("Makefile.am" "Makefile.in")
3458 (("--locked") ""))
3459 #t))
3460 (add-before 'configure 'pre-configure
3461 (lambda _
3462 (substitute* "gdk-pixbuf-loader/Makefile.in"
3463 ;; By default the gdk-pixbuf loader is installed under
3464 ;; gdk-pixbuf's prefix. Work around that.
3465 (("gdk_pixbuf_moduledir = .*$")
3466 (string-append "gdk_pixbuf_moduledir = "
3467 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
3468 "loaders\n"))
3469 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
3470 (("gdk_pixbuf_cache_file = .*$")
3471 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
3472 #t))
3473 (add-after 'configure 'gnu-configure
3474 (lambda* (#:key inputs native-inputs outputs #:allow-other-keys)
3475 ((assoc-ref gnu:%standard-phases 'configure)
3476 #:native-inputs native-inputs
3477 #:inputs inputs
3478 #:outputs outputs
3479 #:configure-flags
3480 (list "--disable-static"
3481 "--enable-vala"
3482 (string-append "--with-html-dir="
3483 (assoc-ref %outputs "doc")
3484 "/share/gtk-doc/html")))))
3485 (add-after 'configure 'dont-vendor-self
3486 (lambda* (#:key vendor-dir #:allow-other-keys)
3487 ;; Don't keep the whole tarball in the vendor directory
3488 (delete-file-recursively
3489 (string-append vendor-dir "/" ,name "-" ,version ".tar.xz"))
3490 #t))
3491 (replace 'build
3492 (assoc-ref gnu:%standard-phases 'build))
3493 (add-before 'check 'ignore-failing-tests
3494 ;; stderr=```/tmp/guix-build-.../librsvg-2.50.1/rsvg-convert: line 150: ls: command not found
3495 (lambda _
3496 (substitute* "tests/src/cmdline/rsvg_convert.rs"
3497 (("fn background_color_option_invalid_color_yields_error" all)
3498 (string-append "#[ignore] " all))
3499 (("fn empty_input_yields_error" all)
3500 (string-append "#[ignore] " all))
3501 (("fn empty_svg_yields_error" all)
3502 (string-append "#[ignore] " all))
3503 (("fn env_source_data_epoch_empty" all)
3504 (string-append "#[ignore] " all))
3505 (("fn env_source_data_epoch_no_digits" all)
3506 (string-append "#[ignore] " all))
3507 (("fn env_source_data_epoch_trailing_garbage" all)
3508 (string-append "#[ignore] " all))
3509 (("fn export_id_option_error" all)
3510 (string-append "#[ignore] " all))
3511 (("fn huge_zoom_factor_yields_error" all)
3512 (string-append "#[ignore] " all))
3513 (("fn multiple_input_files_not_allowed_for_png_output" all)
3514 (string-append "#[ignore] " all))
3515 (("fn stylesheet_option_error" all)
3516 (string-append "#[ignore] " all)))
3517 #t))
3518 (replace 'check
3519 (lambda* args
3520 ((assoc-ref gnu:%standard-phases 'check)
3521 #:test-target "check")))
3522 (replace 'install
3523 (assoc-ref gnu:%standard-phases 'install)))))
3524 (native-inputs
3525 `(("docbook-xml" ,docbook-xml-4.3)
3526 ("glib" ,glib "bin")
3527 ("gobject-introspection" ,gobject-introspection)
3528 ("pkg-config" ,pkg-config)
3529 ("python" ,python-wrapper)
3530 ("ruby" ,ruby)
3531 ("vala" ,vala)))
3532 (inputs
3533 `(("bzip2" ,bzip2)
3534 ("fontconfig" ,fontconfig)
3535 ("freetype" ,freetype)
3536 ("harfbuzz" ,harfbuzz)
3537 ("libcroco" ,libcroco)
3538 ("libgsf" ,libgsf)
3539 ("libxml2" ,libxml2)
3540 ("pango" ,pango)))
3541 (propagated-inputs
3542 `(("cairo" ,cairo)
3543 ("gdk-pixbuf" ,gdk-pixbuf)
3544 ("glib" ,glib)))
3545 (synopsis "SVG rendering library")
3546 (description "Librsvg is a library to render SVG images to Cairo surfaces.
3547 GNOME uses this to render SVG icons. Outside of GNOME, other desktop
3548 environments use it for similar purposes. Wikimedia uses it for Wikipedia's SVG
3549 diagrams.")
3550 (home-page "https://wiki.gnome.org/LibRsvg")
3551 (license license:lgpl2.1+)))
3552
3553 (define-public libidl
3554 (package
3555 (name "libidl")
3556 (version "0.8.14")
3557 (source (origin
3558 (method url-fetch)
3559 (uri (string-append "mirror://gnome/sources/libIDL/"
3560 (version-major+minor version) "/"
3561 "libIDL-" version ".tar.bz2"))
3562 (sha256
3563 (base32
3564 "08129my8s9fbrk0vqvnmx6ph4nid744g5vbwphzkaik51664vln5"))))
3565 (build-system gnu-build-system)
3566 (inputs `(("glib" ,glib)))
3567 (native-inputs
3568 `(("pkg-config" ,pkg-config)
3569 ("flex" ,flex)
3570 ("bison" ,bison)))
3571 (home-page "http://freecode.com/projects/libidl")
3572 (synopsis "Create trees of CORBA Interface Definition Language files")
3573 (description "Libidl is a library for creating trees of CORBA Interface
3574 Definition Language (idl) files, which is a specification for defining
3575 portable interfaces. libidl was initially written for orbit (the orb from the
3576 GNOME project, and the primary means of libidl distribution). However, the
3577 functionality was designed to be as reusable and portable as possible.")
3578 (properties `((upstream-name . "libIDL")))
3579 (license license:lgpl2.0+)))
3580
3581
3582 (define-public orbit2
3583 (package
3584 (name "orbit2")
3585 (version "2.14.19")
3586 (source (origin
3587 (method url-fetch)
3588 (uri (let ((upstream-name "ORBit2"))
3589 (string-append "mirror://gnome/sources/" upstream-name "/"
3590 (version-major+minor version) "/"
3591 upstream-name "-" version ".tar.bz2")))
3592 (sha256
3593 (base32
3594 "0l3mhpyym9m5iz09fz0rgiqxl2ym6kpkwpsp1xrr4aa80nlh1jam"))))
3595 (build-system gnu-build-system)
3596 (arguments
3597 `(;; The "timeout-server" test hangs when run in parallel.
3598 #:parallel-tests? #f
3599 #:configure-flags
3600 '(;; We don't need static libraries, plus they don't build reproducibly
3601 ;; (non-deterministic ordering of .o files in the archive.)
3602 "--disable-static"
3603
3604 ;; The programmer kindly gives us a hook to turn off deprecation
3605 ;; warnings ...
3606 "DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
3607 ;; ... which they then completly ignore !!
3608 #:phases
3609 (modify-phases %standard-phases
3610 (add-before 'configure 'ignore-deprecations
3611 (lambda _
3612 (substitute* "linc2/src/Makefile.in"
3613 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3614 #t)))))
3615 (inputs `(("glib" ,glib)
3616 ("libidl" ,libidl)))
3617 (native-inputs
3618 `(("pkg-config" ,pkg-config)))
3619 (home-page "https://projects.gnome.org/orbit2/")
3620 (synopsis "CORBA 2.4-compliant Object Request Broker")
3621 (description "ORBit2 is a CORBA 2.4-compliant Object Request Broker (orb)
3622 featuring mature C, C++ and Python bindings.")
3623 ;; Licence notice is unclear. The Web page simply say "GPL" without giving
3624 ;; a version. SOME of the code files have licence notices for GPLv2+.
3625 ;; The tarball contains files of the text of GPLv2 and LGPLv2.
3626 (license license:gpl2+)
3627 (properties `((upstream-name . "ORBit2")))))
3628
3629
3630 (define-public libbonobo
3631 (package
3632 (name "libbonobo")
3633 (version "2.32.1")
3634 (source (origin
3635 (method url-fetch)
3636 (uri (string-append "mirror://gnome/sources/" name "/"
3637 (version-major+minor version)
3638 "/" name "-" version ".tar.bz2"))
3639 (sha256
3640 (base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))
3641 (patches (search-patches
3642 "libbonobo-activation-test-race.patch"))))
3643 (build-system gnu-build-system)
3644 (arguments
3645 ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
3646 `(#:configure-flags
3647 '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
3648 ;; ... which they then completly ignore !!
3649 #:phases
3650 (modify-phases %standard-phases
3651 (add-before 'configure 'ignore-deprecations
3652 (lambda _
3653 (substitute* "activation-server/Makefile.in"
3654 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3655 #t)))
3656
3657 ;; There's apparently a race condition between the server stub
3658 ;; generation and linking of the example under 'samples/echo' that can
3659 ;; lead do undefined references when building in parallel, as reported
3660 ;; at <https://forums.gentoo.org/viewtopic-t-223376-start-550.html>.
3661 ;; Thus, disable parallel builds.
3662 #:parallel-build? #f))
3663 (inputs `(("popt" ,popt)
3664 ("libxml2" ,libxml2)))
3665 ;; The following are Required by the .pc file
3666 (propagated-inputs
3667 `(("glib" ,glib)
3668 ("orbit2" ,orbit2)))
3669 (native-inputs
3670 `(("intltool" ,intltool)
3671 ("pkg-config" ,pkg-config)
3672 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3673 ("flex" ,flex)
3674 ("bison" ,bison)))
3675 (home-page "https://developer.gnome.org/libbonobo/")
3676 (synopsis "Framework for creating reusable components for use in GNOME applications")
3677 (description "Bonobo is a framework for creating reusable components for
3678 use in GNOME applications, built on top of CORBA.")
3679 ;; Licence not explicitly stated. Source files contain no licence notices.
3680 ;; Tarball contains text of both GPLv2 and LGPLv2
3681 ;; GPLv2 covers both conditions
3682 (license license:gpl2+)))
3683
3684
3685 (define-public gconf
3686 (package
3687 (name "gconf")
3688 (version "3.2.6")
3689 (source (origin
3690 (method url-fetch)
3691 (uri
3692 (let ((upstream-name "GConf"))
3693 (string-append "mirror://gnome/sources/" upstream-name "/"
3694 (version-major+minor version) "/"
3695 upstream-name "-" version ".tar.xz")))
3696 (sha256
3697 (base32 "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr"))))
3698 (build-system gnu-build-system)
3699 (inputs `(("dbus-glib" ,dbus-glib)
3700 ("libxml2" ,libxml2)))
3701 (propagated-inputs `(("glib" ,glib) ; referred to in the .pc file
3702 ("orbit2" ,orbit2)))
3703 (native-inputs
3704 `(("intltool" ,intltool)
3705 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3706 ("pkg-config" ,pkg-config)))
3707 (home-page "https://projects.gnome.org/gconf/")
3708 (synopsis "Store application preferences")
3709 (description "Gconf is a system for storing application preferences. It
3710 is intended for user preferences; not arbitrary data storage.")
3711 (license license:lgpl2.0+)
3712 (properties '((upstream-name . "GConf")))))
3713
3714
3715 (define-public gnome-mime-data
3716 (package
3717 (name "gnome-mime-data")
3718 (version "2.18.0")
3719 (source (origin
3720 (method url-fetch)
3721 (uri (string-append "mirror://gnome/sources/" name "/"
3722 (version-major+minor version) "/"
3723 name "-" version ".tar.bz2"))
3724 (sha256
3725 (base32
3726 "1mvg8glb2a40yilmyabmb7fkbzlqd3i3d31kbkabqnq86xdnn69p"))))
3727 (build-system gnu-build-system)
3728 (native-inputs
3729 `(("perl" ,perl)
3730 ("intltool" ,intltool)))
3731 (arguments
3732 '(#:phases (modify-phases %standard-phases
3733 (add-after 'configure 'use-our-intltool
3734 (lambda _
3735 ;; Do not use the bundled intltool commands, which lack
3736 ;; the "dotless @INC" fixes of our 'intltool' package.
3737 (substitute* (find-files "." "^Makefile$")
3738 (("^INTLTOOL_(EXTRACT|UPDATE|MERGE) = .*$" _ tool)
3739 (string-append "INTLTOOL_" tool " = intltool-"
3740 (string-downcase tool) "\n")))
3741 #t)))))
3742 (home-page "https://www.gnome.org")
3743 (synopsis "Base MIME and Application database for GNOME")
3744 (description "GNOME Mime Data is a module which contains the base MIME
3745 and Application database for GNOME. The data stored by this module is
3746 designed to be accessed through the MIME functions in GnomeVFS.")
3747 (license license:gpl2+)))
3748
3749
3750 (define-public gnome-vfs
3751 (package
3752 (name "gnome-vfs")
3753 (version "2.24.4")
3754 (source (origin
3755 (method url-fetch)
3756 (uri (string-append "mirror://gnome/sources/" name "/"
3757 (version-major+minor version) "/"
3758 name "-" version ".tar.bz2"))
3759 (sha256
3760 (base32
3761 "1ajg8jb8k3snxc7rrgczlh8daxkjidmcv3zr9w809sq4p2sn9pk2"))))
3762 (build-system gnu-build-system)
3763 (arguments
3764 `(#:phases
3765 (modify-phases %standard-phases
3766 (add-before 'configure 'ignore-deprecations
3767 (lambda _
3768 (substitute* '("libgnomevfs/Makefile.in"
3769 "daemon/Makefile.in")
3770 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3771 #t))
3772 (add-before 'configure 'patch-test-async-cancel-to-never-fail
3773 (lambda _
3774 (substitute* "test/test-async-cancel.c"
3775 (("EXIT_FAILURE") "77"))
3776 #t)))))
3777 (inputs `(("libxml2" ,libxml2)
3778 ("dbus-glib" ,dbus-glib)
3779 ("gconf" ,gconf)
3780 ("gnome-mime-data" ,gnome-mime-data)
3781 ("zlib" ,zlib)))
3782 (native-inputs
3783 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3784 ("intltool" ,intltool)
3785 ("pkg-config" ,pkg-config)))
3786 (home-page "https://developer.gnome.org/gnome-vfs/")
3787 (synopsis "Access files and folders in GNOME applications")
3788 (description
3789 "GnomeVFS is the core library used to access files and folders in GNOME
3790 applications. It provides a file system abstraction which allows applications
3791 to access local and remote files with a single consistent API.")
3792 (license license:lgpl2.0+)))
3793
3794
3795
3796 (define-public libgnome
3797 (package
3798 (name "libgnome")
3799 (version "2.32.1")
3800 (source (origin
3801 (method url-fetch)
3802 (uri (string-append "mirror://gnome/sources/" name "/"
3803 (version-major+minor version) "/"
3804 name "-" version ".tar.bz2"))
3805 (sha256
3806 (base32
3807 "197pnq8y0knqjhm2fg4j6hbqqm3qfzfnd0irhwxpk1b4hqb3kimj"))
3808 (patches (search-patches "libgnome-encoding.patch"))))
3809 (build-system gnu-build-system)
3810 (arguments
3811 `(#:phases
3812 (modify-phases %standard-phases
3813 (add-before 'configure 'enable-deprecated
3814 (lambda _
3815 (substitute* "libgnome/Makefile.in"
3816 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3817 #t)))))
3818 (inputs `(("libxml2" ,libxml2)))
3819 (native-inputs
3820 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3821 ("intltool" ,intltool)
3822 ("pkg-config" ,pkg-config)))
3823 ;; The following are listed as Required in the .pc file
3824 ;; (except for libcanberra -- which seems to be oversight on the part
3825 ;; of the upstream developers -- anything that links against libgnome,
3826 ;; must also link against libcanberra
3827 (propagated-inputs
3828 `(("libcanberra" ,libcanberra)
3829 ("libbonobo" ,libbonobo)
3830 ("gconf" ,gconf)
3831 ("gnome-vfs" ,gnome-vfs)
3832 ("popt" ,popt))) ;gnome-program.h includes popt.h
3833 (home-page "https://developer.gnome.org/libgnome/")
3834 (synopsis "Useful routines for building applications")
3835 (description "The libgnome library provides a number of useful routines
3836 for building modern applications, including session management, activation of
3837 files and URIs, and displaying help.")
3838 (license license:lgpl2.0+)))
3839
3840
3841 (define-public libart-lgpl
3842 (package
3843 (name "libart-lgpl")
3844 (version "2.3.21")
3845 (source (origin
3846 (method url-fetch)
3847 (uri (let ((upstream-name "libart_lgpl"))
3848 (string-append "mirror://gnome/sources/" upstream-name "/"
3849 (version-major+minor version) "/"
3850 upstream-name "-" version ".tar.bz2")))
3851 (sha256
3852 (base32
3853 "1yknfkyzgz9s616is0l9gp5aray0f2ry4dw533jgzj8gq5s1xhgx"))))
3854 (build-system gnu-build-system)
3855 (native-inputs
3856 `(("pkg-config" ,pkg-config)))
3857 (home-page "https://people.gnome.org/~mathieu/libart")
3858 (synopsis "2D drawing library")
3859 (description "Libart is a 2D drawing library intended as a
3860 high-quality vector-based 2D library with antialiasing and alpha composition.")
3861 (license license:lgpl2.0+)))
3862
3863
3864
3865 (define-public libgnomecanvas
3866 (package
3867 (name "libgnomecanvas")
3868 (version "2.30.3")
3869 (source (origin
3870 (method url-fetch)
3871 (uri (string-append "mirror://gnome/sources/" name "/"
3872 (version-major+minor version) "/"
3873 name "-" version ".tar.gz"))
3874 (sha256
3875 (base32
3876 "1nhnq4lfkk8ljkdafscwaggx0h95mq0rxnd7zgqyq0xb6kkqbjm8"))))
3877 (build-system gnu-build-system)
3878 ;; Mentioned as Required in the .pc file
3879 (propagated-inputs `(("libart-lgpl" ,libart-lgpl)
3880 ("gtk+" ,gtk+-2)))
3881 (native-inputs
3882 `(("intltool" ,intltool)
3883 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3884 ("pkg-config" ,pkg-config)))
3885 (home-page "https://developer.gnome.org/libgnomecanvas/")
3886 (synopsis "Flexible widget for creating interactive structured graphics")
3887 (description "The GnomeCanvas widget provides a flexible widget for
3888 creating interactive structured graphics.")
3889 (license license:lgpl2.0+)))
3890
3891 (define-public libgnomecanvasmm
3892 (package
3893 (name "libgnomecanvasmm")
3894 (version "2.26.0")
3895 (source (origin
3896 (method url-fetch)
3897 (uri (string-append "mirror://gnome/sources/" name "/"
3898 (version-major+minor version) "/"
3899 name "-" version ".tar.bz2"))
3900 (sha256
3901 (base32
3902 "0679hcnpam2gkag2i63sm0wdm35gwvzafnz1354mg6j5gzwpfrcr"))))
3903 (build-system gnu-build-system)
3904 (propagated-inputs `(("libgnomecanvas" ,libgnomecanvas)))
3905 (native-inputs
3906 `(("gtkmm-2" ,gtkmm-2)
3907 ("pkg-config" ,pkg-config)))
3908 (home-page "https://gtkmm.org")
3909 (synopsis "C++ bindings to the GNOME Canvas library")
3910 (description "C++ bindings to the GNOME Canvas library.")
3911 (license license:lgpl2.0+)))
3912
3913 (define-public libgnomeui
3914 (package
3915 (name "libgnomeui")
3916 (version "2.24.5")
3917 (source (origin
3918 (method url-fetch)
3919 (uri (string-append "mirror://gnome/sources/" name "/"
3920 (version-major+minor version) "/"
3921 name "-" version ".tar.bz2"))
3922 (patches (search-patches "libgnomeui-utf8.patch"))
3923 (sha256
3924 (base32
3925 "03rwbli76crkjl6gp422wrc9lqpl174k56cp9i96b7l8jlj2yddf"))))
3926 (build-system gnu-build-system)
3927 ;; Mentioned as Required in the .pc file
3928 (propagated-inputs `(("libbonoboui" ,libbonoboui)
3929 ("libgnome" ,libgnome)
3930 ("libgnomecanvas" ,libgnomecanvas)
3931 ("libgnome-keyring" ,libgnome-keyring)))
3932 (inputs `(("libjpeg" ,libjpeg-turbo)
3933 ("popt" ,popt)
3934 ("libbonobo" ,libbonobo)
3935 ("libxml2" ,libxml2)
3936 ("libglade" ,libglade)))
3937 (native-inputs
3938 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3939 ("intltool" ,intltool)
3940 ("pkg-config" ,pkg-config)))
3941 (home-page "https://developer.gnome.org/libgnomeui/")
3942 (synopsis "Additional widgets for applications")
3943 (description "The libgnomeui library provides additional widgets for
3944 applications. Many of the widgets from libgnomeui have already been
3945 ported to GTK+.")
3946 (license license:lgpl2.0+)))
3947
3948 (define-public libglade
3949 (package
3950 (name "libglade")
3951 (version "2.6.4")
3952 (source (origin
3953 (method url-fetch)
3954 (uri (string-append "mirror://gnome/sources/" name "/"
3955 (version-major+minor version) "/"
3956 name "-" version ".tar.bz2"))
3957 (sha256
3958 (base32
3959 "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4"))))
3960 (build-system gnu-build-system)
3961 (inputs
3962 `(("python" ,python))) ;; needed for the optional libglade-convert program
3963 (propagated-inputs
3964 `(("gtk+-2" ,gtk+-2)
3965 ("libxml2" ,libxml2))) ; required by libglade-2.0.pc
3966 (native-inputs
3967 `(("pkg-config" ,pkg-config)))
3968 (home-page "https://developer.gnome.org/libglade")
3969 (synopsis "Load glade interfaces and access the glade built widgets")
3970 (description "Libglade is a library that provides interfaces for loading
3971 graphical interfaces described in glade files and for accessing the
3972 widgets built in the loading process.")
3973 (license license:gpl2+))) ; This is correct. GPL not LGPL
3974
3975 (define-public libgnomeprint
3976 ;; This library has been deprecated since 2006; see
3977 ;; <https://mail.gnome.org/archives/devel-announce-list/2006-August/msg00005.html>.
3978 (package
3979 (name "libgnomeprint")
3980 (version "2.18.8")
3981 (source (origin
3982 (method url-fetch)
3983 (uri (string-append "mirror://gnome/sources/" name "/"
3984 (version-major+minor version) "/"
3985 name "-" version ".tar.bz2"))
3986 (sha256
3987 (base32
3988 "14cnimvlc7ky22g2snyf4362412k3jk1syjf8b9887q5a63fqd0h"))))
3989 (build-system gnu-build-system)
3990 (inputs
3991 `(("popt" ,popt)
3992 ("libart-lgpl" ,libart-lgpl)
3993 ("gtk+" ,gtk+-2)
3994 ("libxml2" ,libxml2)))
3995 (native-inputs
3996 `(("intltool" ,intltool)
3997 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3998 ("pkg-config" ,pkg-config)))
3999 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
4000 (synopsis "Printing framework for GNOME")
4001 (description
4002 "GNOME-print was a printing framework for GNOME. It has been deprecated
4003 since ca. 2006, when GTK+ itself incorporated printing support.")
4004 (license license:lgpl2.0+)))
4005
4006
4007 (define-public libgnomeprintui
4008 ;; Deprecated; see libgnomeprint.
4009 (package
4010 (name "libgnomeprintui")
4011 (version "2.18.6")
4012 (source (origin
4013 (method url-fetch)
4014 (uri (string-append "mirror://gnome/sources/" name "/"
4015 (version-major+minor version) "/"
4016 name "-" version ".tar.bz2"))
4017 (sha256
4018 (base32
4019 "0spl8vinb5n6n1krnfnr61dwaxidg67h8j94z9p59k2xdsvfashm"))))
4020 (build-system gnu-build-system)
4021 ;; Mentioned as Required in the .pc file
4022 (propagated-inputs `(("libgnomeprint" ,libgnomeprint)))
4023 (inputs `(("gtk+" ,gtk+-2)
4024 ("glib" ,glib)
4025 ("gnome-icon-theme" ,gnome-icon-theme)
4026 ("libgnomecanvas" ,libgnomecanvas)
4027 ("libxml2" ,libxml2)))
4028 (native-inputs
4029 `(("intltool" ,intltool)
4030 ("pkg-config" ,pkg-config)))
4031 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
4032 (synopsis "Printing framework for GNOME")
4033 (description (package-description libgnomeprint))
4034 (license license:lgpl2.0+)))
4035
4036 (define-public libbonoboui
4037 (package
4038 (name "libbonoboui")
4039 (version "2.24.5")
4040 (source (origin
4041 (method url-fetch)
4042 (uri (string-append "mirror://gnome/sources/" name "/"
4043 (version-major+minor version) "/"
4044 name "-" version ".tar.bz2"))
4045 (sha256
4046 (base32
4047 "1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
4048 (build-system gnu-build-system)
4049 (arguments
4050 `(#:phases
4051 (modify-phases %standard-phases
4052 (add-before 'check 'start-xserver
4053 (lambda* (#:key inputs #:allow-other-keys)
4054 (let ((xorg-server (assoc-ref inputs "xorg-server"))
4055 (disp ":1"))
4056
4057 (setenv "HOME" (getcwd))
4058 (setenv "DISPLAY" disp)
4059 ;; There must be a running X server and make check doesn't start one.
4060 ;; Therefore we must do it.
4061 (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))))))
4062 ;; Mentioned as Required by the .pc file
4063 (propagated-inputs `(("libxml2" ,libxml2)))
4064 (inputs
4065 `(("popt" ,popt)
4066 ("pangox-compat" ,pangox-compat)
4067 ("libgnome" ,libgnome)
4068 ("libgnomecanvas" ,libgnomecanvas)
4069 ("libglade" ,libglade)))
4070 (native-inputs
4071 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
4072 ("intltool" ,intltool)
4073 ("xorg-server" ,xorg-server-for-tests) ; For running the tests
4074 ("pkg-config" ,pkg-config)))
4075 (home-page "https://developer.gnome.org/libbonoboui/")
4076 (synopsis "Some user interface controls using Bonobo")
4077 (description "The Bonobo UI library provides a number of user interface
4078 controls using the Bonobo component framework.")
4079 (license license:lgpl2.0+)))
4080
4081 (define-public libwnck
4082 (package
4083 (name "libwnck")
4084 (version "3.32.0")
4085 (source (origin
4086 (method url-fetch)
4087 (uri (string-append "mirror://gnome/sources/" name "/"
4088 (version-major+minor version) "/"
4089 name "-" version ".tar.xz"))
4090 (sha256
4091 (base32
4092 "1jp3p1lnwnwi6fxl2rz3166cmwzwy9vqz896anpwc3wdy9f875cm"))))
4093 (build-system meson-build-system)
4094 (native-inputs
4095 `(("pkg-config" ,pkg-config)
4096 ("glib" ,glib "bin") ; for glib-mkenums
4097 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
4098 ("intltool" ,intltool)))
4099 (propagated-inputs
4100 `(("gtk+" ,gtk+)
4101 ("libxres" ,libxres)
4102 ("startup-notification" ,startup-notification)))
4103 (home-page "https://developer.gnome.org/libwnck/")
4104 (synopsis "Window Navigator Construction Kit")
4105 (description
4106 "Libwnck is the Window Navigator Construction Kit, a library for use in
4107 writing pagers, tasklists, and more generally applications that are dealing
4108 with window management. It tries hard to respect the Extended Window Manager
4109 Hints specification (EWMH).")
4110 (license license:lgpl2.0+)))
4111
4112 ;; stable version for gtk2, required by xfwm4.
4113 (define-public libwnck-2
4114 (package (inherit libwnck)
4115 (name "libwnck")
4116 (version "2.30.7")
4117 (source (origin
4118 (method url-fetch)
4119 (uri (string-append "mirror://gnome/sources/" name "/"
4120 (version-major+minor version) "/"
4121 name "-" version ".tar.xz"))
4122 (sha256
4123 (base32
4124 "15713yl0f8f3p99jzqqfmbicrdswd3vwpx7r3bkf1bgh6d9lvs4b"))))
4125 (build-system gnu-build-system)
4126 (native-inputs
4127 `(("pkg-config" ,pkg-config)
4128 ("intltool" ,intltool)))
4129 (propagated-inputs
4130 `(("gtk+" ,gtk+-2)
4131 ("libxres" ,libxres)
4132 ("startup-notification" ,startup-notification)))))
4133
4134 (define-public goffice
4135 (package
4136 (name "goffice")
4137 (version "0.10.48")
4138 (source (origin
4139 (method url-fetch)
4140 (uri (string-append "mirror://gnome/sources/goffice/"
4141 (version-major+minor version) "/"
4142 "goffice-" version ".tar.xz"))
4143 (sha256
4144 (base32 "1z6f3q8fxkd1ysqrwdxdi0844zqa00vjpf07gq8mh3kal8picfd4"))))
4145 (build-system gnu-build-system)
4146 (outputs '("out"
4147 "doc")) ; 4.0 MiB of gtk-doc
4148 (arguments
4149 '(#:configure-flags (list (string-append "--with-html-dir="
4150 (assoc-ref %outputs "doc")
4151 "/share/gtk-doc/html"))))
4152 (inputs
4153 `(("gtk+" ,gtk+)
4154 ("libgsf" ,libgsf)
4155 ("librsvg" ,librsvg)
4156 ("libxslt" ,libxslt)
4157 ("libxml2" ,libxml2)))
4158 (native-inputs
4159 `(("intltool" ,intltool)
4160 ("glib" ,glib "bin")
4161 ("pkg-config" ,pkg-config)))
4162 (home-page "https://developer.gnome.org/goffice/")
4163 (synopsis "Document-centric objects and utilities")
4164 (description "A GLib/GTK+ set of document-centric objects and utilities.")
4165 (license
4166 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
4167 ;; Note: NOT LGPL
4168 (list license:gpl2 license:gpl3))))
4169
4170 (define-public goffice-0.8
4171 (package (inherit goffice)
4172 (version "0.8.17")
4173 (source (origin
4174 (method url-fetch)
4175 (uri (string-append "mirror://gnome/sources/" (package-name goffice) "/"
4176 (version-major+minor version) "/"
4177 (package-name goffice) "-" version ".tar.xz"))
4178 (sha256
4179 (base32 "05fvzbs5bin05bbsr4dp79aiva3lnq0a3a40zq55i13vnsz70l0n"))))
4180 (arguments
4181 `(#:phases
4182 (modify-phases %standard-phases
4183 (add-after 'unpack 'fix-pcre-check
4184 (lambda _
4185 ;; Only glib.h can be included directly. See
4186 ;; https://bugzilla.gnome.org/show_bug.cgi?id=670316
4187 (substitute* "configure"
4188 (("glib/gregex\\.h") "glib.h")) #t)))
4189
4190 ,@(package-arguments goffice)))
4191 (propagated-inputs
4192 ;; libgoffice-0.8.pc mentions libgsf-1
4193 `(("libgsf" ,libgsf)))
4194 (inputs
4195 `(("gtk" ,gtk+-2)
4196 ,@(alist-delete "gtk" (package-inputs goffice))))))
4197
4198 (define-public gnumeric
4199 (package
4200 (name "gnumeric")
4201 (version "1.12.48")
4202 (source (origin
4203 (method url-fetch)
4204 (uri (string-append "mirror://gnome/sources/gnumeric/"
4205 (version-major+minor version) "/"
4206 "gnumeric-" version ".tar.xz"))
4207 (sha256
4208 (base32
4209 "14556b0vyxdvdwjlin0rv7jk0vq4nplbmvp9j89bhkfk84xf7k2p"))))
4210 (build-system glib-or-gtk-build-system)
4211 (arguments
4212 `(;; The gnumeric developers don't worry much about failing tests.
4213 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
4214 #:tests? #f
4215 #:phases
4216 (modify-phases %standard-phases
4217 (add-before
4218 'configure 'pre-conf
4219 (lambda* (#:key outputs #:allow-other-keys)
4220 ;; Make install tries to write into the directory of goffice
4221 ;; I am informed that this only affects the possibility to embed a
4222 ;; spreadsheet inside an Abiword document. So presumably when we
4223 ;; package Abiword we'll have to refer it to this directory.
4224 (substitute* "configure"
4225 (("^GOFFICE_PLUGINS_DIR=.*")
4226 (string-append "GOFFICE_PLUGINS_DIR="
4227 (assoc-ref outputs "out")
4228 "/goffice/plugins"))))))))
4229 (inputs
4230 `(("glib" ,glib)
4231 ("gtk+" ,gtk+)
4232 ("goffice" ,goffice)
4233 ("libgsf" ,libgsf)
4234 ("librsvg" ,librsvg)
4235 ("libxml2" ,libxml2)
4236 ("libxslt" ,libxslt)
4237 ("python" ,python)
4238 ("python-pygobject" ,python-pygobject)
4239 ("zlib" ,zlib)))
4240 (native-inputs
4241 `(("bison" ,bison)
4242 ("docbook-xml" ,docbook-xml)
4243 ("intltool" ,intltool)
4244 ("itstool" ,itstool)
4245 ("glib:bin" ,glib "bin")
4246 ("pkg-config" ,pkg-config)))
4247 (home-page "http://www.gnumeric.org")
4248 (synopsis "Spreadsheet application")
4249 (description
4250 "GNUmeric is a GNU spreadsheet application, running under GNOME. It is
4251 interoperable with other spreadsheet applications. It has a vast array of
4252 features beyond typical spreadsheet functionality, such as support for linear
4253 and non-linear solvers, statistical analysis, and telecommunication
4254 engineering.")
4255 (license
4256 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
4257 (list license:gpl2 license:gpl3))))
4258
4259 (define-public gnome-themes-standard
4260 (package
4261 (name "gnome-themes-standard")
4262 (version "3.22.3")
4263 (source
4264 (origin
4265 (method url-fetch)
4266 (uri (string-append "mirror://gnome/sources/" name "/"
4267 (version-major+minor version) "/" name "-"
4268 version ".tar.xz"))
4269 (sha256
4270 (base32
4271 "0smmiamrgcgf5sa88bsn8hwmvsyx4gczzs359nwxbkv14b2qgp31"))))
4272 (build-system gnu-build-system)
4273 (arguments
4274 '(#:configure-flags
4275 ;; Don't create 'icon-theme.cache'.
4276 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
4277 (true (string-append coreutils "/bin/true")))
4278 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
4279 (inputs
4280 `(("gtk+" ,gtk+)
4281 ("gtk+-2" ,gtk+-2)
4282 ("librsvg" ,librsvg)
4283 ("libxml2" ,libxml2)
4284 ("glib" ,glib)))
4285 (native-inputs
4286 `(("intltool" ,intltool)
4287 ("glib:bin" ,glib "bin")
4288 ("pkg-config" ,pkg-config)))
4289 (home-page "https://launchpad.net/gnome-themes-standard")
4290 (synopsis "Default GNOME 3 themes")
4291 (description
4292 "The default GNOME 3 themes (Adwaita and some accessibility themes).")
4293 (license license:lgpl2.1+)))
4294
4295 (define-public seahorse
4296 (package
4297 (name "seahorse")
4298 (version "3.36.2")
4299 (source
4300 (origin
4301 (method url-fetch)
4302 (uri (string-append "mirror://gnome/sources/" name "/"
4303 (version-major+minor version) "/" name "-"
4304 version ".tar.xz"))
4305 (sha256
4306 (base32 "16wmxxppgcgfj8zkagcny5af1c81x32ysm9d6j9f2k7bmik21ss5"))))
4307 (build-system meson-build-system)
4308 (arguments
4309 '(#:glib-or-gtk? #t
4310 #:phases
4311 (modify-phases %standard-phases
4312 (add-after 'unpack 'skip-gtk-update-icon-cache
4313 ;; Don't create 'icon-theme.cache'.
4314 (lambda _
4315 (substitute* "build-aux/meson_post_install.py"
4316 (("gtk-update-icon-cache") "true"))
4317 #t)))))
4318 (inputs
4319 `(("gtk+" ,gtk+)
4320 ("gcr" ,gcr)
4321 ("gnupg" ,gnupg)
4322 ("gpgme" ,gpgme)
4323 ("openldap" ,openldap)
4324 ("openssh" ,openssh)
4325 ("avahi" ,avahi)
4326 ("libhandy" ,libhandy-0.0)
4327 ("libpwquality" ,libpwquality)
4328 ("libsecret" ,libsecret)
4329 ("libsoup" ,libsoup)))
4330 (native-inputs
4331 `(("gettext" ,gettext-minimal)
4332 ("glib:bin" ,glib "bin")
4333 ("itstool" ,itstool)
4334 ("pkg-config" ,pkg-config)
4335 ("vala" ,vala)
4336 ("xmllint" ,libxml2)))
4337 (home-page "https://wiki.gnome.org/Apps/Seahorse")
4338 (synopsis "Manage encryption keys and passwords in the GNOME keyring")
4339 (description
4340 "Seahorse is a GNOME application for managing encryption keys and
4341 passwords in the GNOME keyring.")
4342 (license license:gpl2+)))
4343
4344 (define-public vala
4345 (package
4346 (name "vala")
4347 (version "0.46.5")
4348 (source (origin
4349 (method url-fetch)
4350 (uri (string-append "mirror://gnome/sources/" name "/"
4351 (version-major+minor version) "/"
4352 name "-" version ".tar.xz"))
4353 (sha256
4354 (base32
4355 "07fv895sp9wq74b20qig7hic0r4ynrr5pfaqba02r44xb794fy0s"))))
4356 (build-system gnu-build-system)
4357 (arguments
4358 '(#:phases
4359 (modify-phases %standard-phases
4360 (add-before 'check 'pre-check
4361 (lambda _
4362 (setenv "CC" "gcc")
4363 (substitute* "valadoc/tests/testrunner.sh"
4364 (("export PKG_CONFIG_PATH=" m)
4365 (string-append m "$PKG_CONFIG_PATH:")))
4366 ;; For missing '/etc/machine-id'.
4367 (setenv "DBUS_FATAL_WARNINGS" "0")
4368 #t)))))
4369 (native-inputs
4370 `(("pkg-config" ,pkg-config)
4371 ("flex" ,flex)
4372 ("bison" ,bison)
4373 ("xsltproc" ,libxslt)
4374 ("dbus" ,dbus) ; for dbus tests
4375 ("gobject-introspection" ,gobject-introspection))) ; for gir tests
4376 (inputs
4377 `(("graphviz" ,graphviz)))
4378 (propagated-inputs
4379 `(("glib" ,glib))) ; required by libvala-0.40.pc
4380 (home-page "https://wiki.gnome.org/Projects/Vala/")
4381 (synopsis "Compiler for the GObject type system")
4382 (description
4383 "Vala is a programming language that aims to bring modern programming
4384 language features to GNOME developers without imposing any additional runtime
4385 requirements and without using a different ABI compared to applications and
4386 libraries written in C.")
4387 (license license:lgpl2.1+)))
4388
4389 (define-public vala-0.50
4390 (package
4391 (inherit vala)
4392 (version "0.50.2")
4393 (source (origin
4394 (method url-fetch)
4395 (uri (string-append "mirror://gnome/sources/vala/"
4396 (version-major+minor version) "/"
4397 "vala-" version ".tar.xz"))
4398 (sha256
4399 (base32
4400 "1nnf0x6vk0a9p2y6z7jwjfvmlxh3qhj581v381r0y1sxsv35s39c"))))))
4401
4402 (define-public vte
4403 (package
4404 (name "vte")
4405 (version "0.60.3")
4406 (source (origin
4407 (method url-fetch)
4408 (uri (string-append "mirror://gnome/sources/vte/"
4409 (version-major+minor version) "/"
4410 "vte-" version ".tar.xz"))
4411 (sha256
4412 (base32
4413 "0al2v6fn061v4j1wwvppim1q283y2a6s0iyl29hxhmx3h48nxdzy"))))
4414 (build-system meson-build-system)
4415 (arguments
4416 `(#:configure-flags
4417 '("-Dvapi=true"
4418 "-D_systemd=false")))
4419 (native-inputs
4420 `(("pkg-config" ,pkg-config)
4421 ("gettext" ,gettext-minimal)
4422 ("vala" ,vala)
4423 ("gobject-introspection" ,gobject-introspection)
4424 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
4425 ("gperf" ,gperf)
4426 ("xmllint" ,libxml2)))
4427 (propagated-inputs
4428 `(("gtk+" ,gtk+) ; required by vte-2.91.pc
4429 ("gnutls" ,gnutls) ; ditto
4430 ("pcre2" ,pcre2))) ; ditto
4431 (home-page "https://www.gnome.org/")
4432 (synopsis "Virtual Terminal Emulator")
4433 (description
4434 "VTE is a library (libvte) implementing a terminal emulator widget for
4435 GTK+, and a minimal sample application (vte) using that. Vte is mainly used in
4436 gnome-terminal, but can also be used to embed a console/terminal in games,
4437 editors, IDEs, etc.")
4438 (license license:lgpl2.1+)))
4439
4440 (define-public vte-ng
4441 (package
4442 (inherit vte)
4443 (name "vte-ng")
4444 (version "0.58.2.a")
4445 (home-page "https://github.com/thestinger/vte-ng")
4446 (source (origin
4447 (method git-fetch)
4448 (uri (git-reference (url home-page) (commit version)))
4449 (file-name (git-file-name name version))
4450 (sha256
4451 (base32
4452 "0rnm5c6m3abbm81jsfdas0y80z299ny54gr4syn4bfrms3s4g19l"))))
4453 (build-system meson-build-system)
4454 (native-inputs
4455 `(("gtk-doc" ,gtk-doc)
4456 ,@(package-native-inputs vte)))
4457 (arguments
4458 `(#:configure-flags '("-Ddocs=true")))
4459 (synopsis "Enhanced VTE terminal widget")
4460 (description
4461 "VTE is a library (libvte) implementing a terminal emulator widget for
4462 GTK+, this fork provides additional functions exposed for keyboard text
4463 selection and URL hints.")))
4464
4465 ;; Stable version for gtk2, required by gnurobots and lxterminal as of 2020-07.
4466 (define-public vte/gtk+-2
4467 (package (inherit vte)
4468 (name "vte")
4469 (version "0.28.2")
4470 (source (origin
4471 (method url-fetch)
4472 (uri (string-append "mirror://gnome/sources/" name "/"
4473 (version-major+minor version) "/"
4474 name "-" version ".tar.xz"))
4475 (sha256
4476 (base32
4477 "1bmhahkf8wdsra9whd3k5l5z4rv7r58ksr8mshzajgq2ma0hpkw6"))
4478 (patches (search-patches
4479 "vte-CVE-2012-2738-pt1.patch"
4480 "vte-CVE-2012-2738-pt2.patch"))))
4481 (build-system gnu-build-system)
4482 (arguments
4483 '(#:configure-flags '("--disable-python")))
4484 (native-inputs
4485 `(("pkg-config" ,pkg-config)
4486 ("intltool" ,intltool)
4487 ("glib" ,glib "bin"))) ; for glib-genmarshal, etc.
4488 (propagated-inputs
4489 `(("gtk+" ,gtk+-2) ; required by libvte.pc
4490 ("ncurses" ,ncurses))))) ; required by libvte.la
4491
4492 (define-public vinagre
4493 (package
4494 (name "vinagre")
4495 (version "3.22.0")
4496 (source (origin
4497 (method url-fetch)
4498 (uri (string-append "mirror://gnome/sources/" name "/"
4499 (version-major+minor version) "/"
4500 name "-" version ".tar.xz"))
4501 (patches (search-patches "vinagre-newer-freerdp.patch"
4502 "vinagre-newer-rdp-parameters.patch"))
4503 (sha256
4504 (base32
4505 "10jya3jyrm18nbw3v410gbkc7677bqamax44pzgd3j15randn76d"))))
4506 (build-system glib-or-gtk-build-system)
4507 (arguments
4508 ;; Disable -Werror and such, to avoid build failures on compilation
4509 ;; warnings.
4510 '(#:configure-flags '("--enable-compile-warnings=minimum")
4511 #:phases
4512 (modify-phases %standard-phases
4513 (add-before 'install 'skip-gtk-update-icon-cache
4514 (lambda _
4515 ;; Don't create 'icon-theme.cache'
4516 (substitute* (find-files "." "^Makefile$")
4517 (("gtk-update-icon-cache") (which "true")))
4518 #t))
4519 (add-after 'unpack 'patch-configure
4520 (lambda _
4521 (substitute* "configure"
4522 (("freerdp") "freerdp2"))
4523 #t)))))
4524 (native-inputs
4525 `(("pkg-config" ,pkg-config)
4526 ("intltool" ,intltool)
4527 ("itstool" ,itstool)
4528 ("glib-bin" ,glib "bin"))) ;for glib-compile-schemas
4529 (inputs
4530 `(("libxml2" ,libxml2)
4531 ("gtk-vnc" ,gtk-vnc)
4532 ("gnome-keyring" ,gnome-keyring)
4533 ("libsecret" ,libsecret)
4534 ("freerdp" ,freerdp)
4535 ("spice" ,spice)
4536 ("spice-gtk" ,spice-gtk)
4537 ("telepathy-glib" ,telepathy-glib)
4538 ("vte" ,vte)))
4539 (home-page "https://wiki.gnome.org/Apps/Vinagre")
4540 (synopsis "Remote desktop viewer for GNOME")
4541 (description "Vinagre is a remote display client supporting the VNC, SPICE
4542 and RDP protocols.")
4543 (license license:gpl3+)))
4544
4545 (define-public dconf
4546 (package
4547 (name "dconf")
4548 (version "0.36.0")
4549 (source (origin
4550 (method url-fetch)
4551 (uri (string-append
4552 "mirror://gnome/sources/" name "/"
4553 (version-major+minor version) "/"
4554 name "-" version ".tar.xz"))
4555 (sha256
4556 (base32
4557 "0bfs069pjv6lhp7xrzmrhz3876ay2ryqxzc6mlva1hhz34ibprlz"))))
4558 (build-system meson-build-system)
4559 (propagated-inputs
4560 ;; In Requires of dconf.pc.
4561 `(("glib" ,glib)))
4562 (inputs
4563 `(("gtk+" ,gtk+)
4564 ("dbus" ,dbus)))
4565 (native-inputs
4566 `(("bash-completion" ,bash-completion)
4567 ("libxslt" ,libxslt) ;for xsltproc
4568 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
4569 ("docbook-xml" ,docbook-xml-4.2)
4570 ("docbook-xsl" ,docbook-xsl)
4571 ("glib:bin" ,glib "bin")
4572 ("gtk-doc" ,gtk-doc)
4573 ("pkg-config" ,pkg-config)
4574 ("vala" ,vala)))
4575 (arguments
4576 `(#:glib-or-gtk? #t
4577 #:configure-flags '("-Denable-gtk-doc=true")
4578 #:phases (modify-phases %standard-phases
4579 (add-after 'unpack 'increase-test-timeout
4580 (lambda _
4581 ;; On big-memory systems, the engine test may take
4582 ;; much longer than the default of 30 seconds.
4583 (substitute* "tests/meson.build"
4584 (("test\\(unit_test\\[0\\], exe" all)
4585 (string-append all ", timeout : 90")))
4586 #t)))))
4587 (home-page "https://developer.gnome.org/dconf/")
4588 (synopsis "Low-level GNOME configuration system")
4589 (description "Dconf is a low-level configuration system. Its main purpose
4590 is to provide a backend to GSettings on platforms that don't already have
4591 configuration storage systems.")
4592 (license license:lgpl2.1+)))
4593
4594 (define-public json-glib
4595 (package
4596 (name "json-glib")
4597 (version "1.4.4")
4598 (source (origin
4599 (method url-fetch)
4600 (uri (string-append "mirror://gnome/sources/" name "/"
4601 (version-major+minor version) "/"
4602 name "-" version ".tar.xz"))
4603 (sha256
4604 (base32
4605 "0ixwyis47v5bkx6h8a1iqlw3638cxcv57ivxv4gw2gaig51my33j"))))
4606 (build-system meson-build-system)
4607 (native-inputs
4608 `(("gettext" ,gettext-minimal)
4609 ("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
4610 ("gobject-introspection" ,gobject-introspection)
4611 ("pkg-config" ,pkg-config)))
4612 (propagated-inputs
4613 `(("glib" ,glib))) ;according to json-glib-1.0.pc
4614 (home-page "https://wiki.gnome.org/Projects/JsonGlib")
4615 (synopsis "Compiler for the GObject type system")
4616 (description
4617 "JSON-GLib is a C library based on GLib providing serialization and
4618 deserialization support for the JavaScript Object Notation (JSON) format
4619 described by RFC 4627. It provides parser and generator GObject classes and
4620 various wrappers for the complex data types employed by JSON, such as arrays
4621 and objects.")
4622 (license license:lgpl2.1+)))
4623
4624 (define-public libxklavier
4625 (package
4626 (name "libxklavier")
4627 (version "5.4")
4628 (source (origin
4629 ;; Note: There's no tarball at ftp.gnome.org for this version.
4630 (method git-fetch)
4631 (uri (git-reference
4632 (url "https://anongit.freedesktop.org/git/libxklavier")
4633 (commit (string-append "libxklavier-" version))))
4634 (sha256
4635 (base32
4636 "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a"))
4637 (file-name (git-file-name name version))))
4638 (build-system gnu-build-system)
4639 (arguments
4640 '(#:configure-flags
4641 (list (string-append "--with-xkb-base="
4642 (assoc-ref %build-inputs "xkeyboard-config")
4643 "/share/X11/xkb")
4644 "--disable-xmodmap-support")))
4645 (native-inputs
4646 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
4647 ("gobject-introspection" ,gobject-introspection)
4648 ("pkg-config" ,pkg-config)
4649 ("gtk-doc" ,gtk-doc)
4650 ("intltool" ,intltool)
4651 ("which" ,which)
4652 ("autoconf" ,autoconf)
4653 ("automake" ,automake)
4654 ("libtool" ,libtool)))
4655 (propagated-inputs
4656 ;; Required by libxklavier.pc.
4657 `(("glib" ,glib)
4658 ("libxml2" ,libxml2)))
4659 (inputs
4660 `(("iso-codes" ,iso-codes)
4661 ("libxi" ,libxi)
4662 ("libxkbfile" ,libxkbfile)
4663 ("xkbcomp" ,xkbcomp)
4664 ("xkeyboard-config" ,xkeyboard-config)))
4665 (home-page "https://www.freedesktop.org/wiki/Software/LibXklavier/")
4666 (synopsis "High-level API for X Keyboard Extension")
4667 (description
4668 "LibXklavier is a library providing high-level API for X Keyboard
4669 Extension known as XKB. This library is intended to support XFree86 and other
4670 commercial X servers. It is useful for creating XKB-related software (layout
4671 indicators etc).")
4672 (license license:lgpl2.0+)))
4673
4674 (define-public python2-rsvg
4675 ;; XXX: This is actually a subset of gnome-python-desktop.
4676 (package
4677 (name "python2-rsvg")
4678 (version "2.32.0")
4679 (source
4680 (origin
4681 (method url-fetch)
4682 (uri (string-append
4683 "mirror://gnome/sources/gnome-python-desktop/2.32/gnome-python-desktop-"
4684 version ".tar.bz2"))
4685 (sha256
4686 (base32
4687 "1s8f9rns9v7qlwjv9qh9lr8crp88dpzfm45hj47zc3ivpy0dbnq9"))))
4688 (build-system gnu-build-system)
4689 (native-inputs
4690 `(("pkg-config" ,pkg-config)))
4691 (inputs
4692 `(("python" ,python-2)
4693 ("python2-pygtk" ,python2-pygtk)
4694 ("librsvg" ,librsvg)))
4695 (home-page "https://www.gnome.org")
4696 (synopsis "Python bindings to librsvg")
4697 (description
4698 "This package provides Python bindings to librsvg, the SVG rendering
4699 library.")
4700
4701 ;; This is the license of the rsvg bindings. The license of each module
4702 ;; of gnome-python-desktop is given in 'COPYING'.
4703 (license license:lgpl2.1+)))
4704
4705 (define-public glib-networking
4706 (package
4707 (name "glib-networking")
4708 (version "2.62.2")
4709 (source (origin
4710 (method url-fetch)
4711 (uri (string-append "mirror://gnome/sources/glib-networking/"
4712 (version-major+minor version) "/"
4713 "glib-networking-" version ".tar.xz"))
4714 (sha256
4715 (base32
4716 "0i2mw75297ql72h47vyvff3hqa0kcmqybblj52fqrarb0kfbhi06"))))
4717 (build-system meson-build-system)
4718 (arguments
4719 `(#:configure-flags '("-Dlibproxy_support=false")))
4720 (native-inputs
4721 `(("pkg-config" ,pkg-config)
4722 ("intltool" ,intltool)))
4723 (inputs
4724 `(("glib" ,glib)
4725 ("gnutls" ,gnutls)
4726 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
4727 (home-page "https://www.gnome.org")
4728 (synopsis "Network-related GIO modules")
4729 (description
4730 "This package contains various network related extensions for the GIO
4731 library.")
4732 (license license:lgpl2.0+)))
4733
4734 (define-public rest
4735 (package
4736 (name "rest")
4737 (version "0.8.1")
4738 (source (origin
4739 (method url-fetch)
4740 (uri (string-append "mirror://gnome/sources/rest/"
4741 (version-major+minor version) "/"
4742 name "-" version ".tar.xz"))
4743 (sha256
4744 (base32
4745 "1j81bgqmd55s5lxyaxcplym9n6xywcs1cm9wmvafsg2xiv9sl4q5"))))
4746 (build-system gnu-build-system)
4747 (arguments
4748 '(#:tests? #f ; tests require internet connection
4749 #:configure-flags
4750 '("--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt")))
4751 (native-inputs
4752 `(("glib-mkenums" ,glib "bin")
4753 ("gobject-introspection" ,gobject-introspection)
4754 ("pkg-config" ,pkg-config)))
4755 (propagated-inputs
4756 ;; rest-0.7.pc refers to all these.
4757 `(("glib" ,glib)
4758 ("libsoup" ,libsoup)
4759 ("libxml2" ,libxml2)))
4760 (home-page "https://www.gtk.org/")
4761 (synopsis "RESTful web api query library")
4762 (description
4763 "This library was designed to make it easier to access web services that
4764 claim to be \"RESTful\". It includes convenience wrappers for libsoup and
4765 libxml to ease remote use of the RESTful API.")
4766 (license license:lgpl2.1+)))
4767
4768 (define-public libsoup
4769 (package
4770 (name "libsoup")
4771 (version "2.72.0")
4772 (source (origin
4773 (method url-fetch)
4774 (uri (string-append "mirror://gnome/sources/libsoup/"
4775 (version-major+minor version) "/"
4776 "libsoup-" version ".tar.xz"))
4777 (sha256
4778 (base32
4779 "11skbyw2pw32178q3h8pi7xqa41b2x4k6q4k9f75zxmh8s23y30p"))))
4780 (build-system meson-build-system)
4781 (outputs '("out" "doc"))
4782 (arguments
4783 `(#:modules ((guix build utils)
4784 (guix build meson-build-system)
4785 (ice-9 popen))
4786
4787 #:configure-flags '("-Dgtk_doc=true")
4788 #:phases
4789 (modify-phases %standard-phases
4790 (add-after 'unpack 'patch-docbook-xml
4791 (lambda* (#:key inputs #:allow-other-keys)
4792 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
4793 "/xml/dtd/docbook")))
4794 (substitute* (find-files "docs/reference")
4795 (("http://.*/docbookx\\.dtd")
4796 (string-append xmldoc "/docbookx.dtd")))
4797 #t)))
4798 (add-after 'unpack 'adjust-tests
4799 (lambda _
4800 ;; This test fails due to missing /etc/nsswitch.conf
4801 ;; in the build environment.
4802 (substitute* "tests/socket-test.c"
4803 ((".*/sockets/unconnected.*") ""))
4804
4805 ;; These fail because "subdomain.localhost" does not resolve in
4806 ;; the build environment.
4807 (substitute* "tests/hsts-test.c"
4808 ((".*/hsts/basic.*") "")
4809 ((".*/hsts/subdomains.*") "")
4810 ((".*/hsts/superdomain.*") "")
4811 ((".*/hsts/utf8-address.*") ""))
4812 (substitute* "tests/hsts-db-test.c"
4813 ((".*/hsts-db/subdomains.*") ""))
4814
4815 ;; Generate a self-signed certificate that has "localhost" as its
4816 ;; 'dnsName'. Failing to do that, and starting with GnuTLS
4817 ;; 3.5.12, tests such as "ssl-tests" fail:
4818 ;;
4819 ;; ERROR:ssl-test.c:406:do_tls_interaction_test: Unexpected status 6 Unacceptable TLS certificate (expected 200 OK)
4820 ;;
4821 ;; 'certtool' is interactive so we have to pipe it the answers.
4822 ;; Reported at <https://bugzilla.gnome.org/show_bug.cgi?id=784696>.
4823 (let ((pipe (open-output-pipe "certtool --generate-self-signed \
4824 --load-privkey tests/test-key.pem --outfile tests/test-cert.pem")))
4825 (for-each (lambda (line)
4826 (display line pipe)
4827 (newline pipe))
4828 '("" ;Common name
4829 "" ;UID
4830 "Guix" ;Organizational unit name
4831 "GNU" ;Organization name
4832 "" ;Locality name
4833 "" ;State or province
4834 "" ;Country
4835 "" ;subject's domain component (DC)
4836 "" ;E-mail
4837 "" ;serial number
4838 "-1" ;expiration time
4839 "N" ;belong to authority?
4840 "N" ;web client certificate?
4841 "N" ;IPsec IKE?
4842 "Y" ;web server certificate?
4843 "localhost" ;dnsName of subject
4844 "" ;dnsName of subject (end)
4845 "" ;URI of subject
4846 "127.0.0.1" ;IP address of subject
4847 "" ;signing?
4848 "" ;encryption (RSA)?
4849 "" ;data encryption?
4850 "" ;sign OCSP requests?
4851 "" ;sign code?
4852 "" ;time stamping?
4853 "" ;email protection?
4854 "" ;URI of the CRL distribution point
4855 "y" ;above info OK?
4856 ))
4857 (close-pipe pipe))
4858 #t))
4859 (add-after 'install 'move-doc
4860 (lambda* (#:key outputs #:allow-other-keys)
4861 (let ((out (assoc-ref outputs "out"))
4862 (doc (assoc-ref outputs "doc")))
4863 (mkdir-p (string-append doc "/share"))
4864 (copy-recursively (string-append out "/share/gtk-doc")
4865 (string-append doc "/share/gtk-doc"))
4866 (delete-file-recursively (string-append out "/share/gtk-doc"))
4867 #t))))))
4868 (native-inputs
4869 `(("docbook-xml" ,docbook-xml-4.1.2)
4870 ("glib:bin" ,glib "bin") ; for glib-mkenums
4871 ("gobject-introspection" ,gobject-introspection)
4872 ("gtk-doc" ,gtk-doc)
4873 ("intltool" ,intltool)
4874 ("pkg-config" ,pkg-config)
4875 ("python" ,python-wrapper)
4876 ("vala" ,vala)
4877 ("php" ,php)
4878 ("curl" ,curl)
4879 ("gnutls" ,gnutls) ;for 'certtool'
4880 ("httpd" ,httpd)))
4881 (propagated-inputs
4882 ;; libsoup-2.4.pc refers to all these.
4883 `(("brotli" ,google-brotli)
4884 ("glib" ,glib)
4885 ("libpsl" ,libpsl)
4886 ("libxml2" ,libxml2)
4887 ("sqlite" ,sqlite)
4888 ("zlib" ,zlib)))
4889 (inputs
4890 `(("glib-networking" ,glib-networking)
4891 ("mit-krb5" ,mit-krb5)))
4892 (home-page "https://live.gnome.org/LibSoup/")
4893 (synopsis "GLib-based HTTP Library")
4894 (description
4895 "LibSoup is an HTTP client/server library for GNOME. It uses GObjects
4896 and the GLib main loop, to integrate well with GNOME applications.")
4897 (license license:lgpl2.0+)))
4898
4899
4900 ;;; A minimal version of libsoup used to prevent a cycle with Inkscape.
4901 (define-public libsoup-minimal
4902 (package
4903 (inherit libsoup)
4904 (name "libsoup-minimal")
4905 (outputs (delete "doc" (package-outputs libsoup)))
4906 (arguments
4907 (substitute-keyword-arguments (package-arguments libsoup)
4908 ((#:configure-flags configure-flags)
4909 `(delete "-Dgtk_doc=true" ,configure-flags))
4910 ((#:phases phases)
4911 `(modify-phases ,phases
4912 (delete 'move-doc)))))
4913 (native-inputs (alist-delete "gtk-doc" (package-native-inputs libsoup)))))
4914
4915 (define-public libsecret
4916 (package
4917 (name "libsecret")
4918 (version "0.20.4")
4919 (source (origin
4920 (method url-fetch)
4921 (uri (string-append
4922 "mirror://gnome/sources/libsecret/"
4923 (version-major+minor version) "/"
4924 "libsecret-" version ".tar.xz"))
4925 (sha256
4926 (base32
4927 "0a4xnfmraxchd9cq5ai66j12jv2vrgjmaaxz25kl031jvda4qnij"))))
4928 (build-system gnu-build-system)
4929 (outputs '("out" "doc"))
4930 (arguments
4931 `(#:tests? #f ; FIXME: Testing hangs.
4932 #:configure-flags
4933 (list (string-append "--with-html-dir="
4934 (assoc-ref %outputs "doc")
4935 "/share/gtk-doc/html"))))
4936 (native-inputs
4937 `(("gettext" ,gettext-minimal)
4938 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
4939 ("gobject-introspection" ,gobject-introspection)
4940 ("pkg-config" ,pkg-config)
4941 ("vala" ,vala)
4942 ("xsltproc" ,libxslt)))
4943 ;; These are needed for the tests.
4944 ;; FIXME: Add gjs once available.
4945 ;("dbus" ,dbus)
4946 ;("python2" ,python-2)
4947 ;("python2-dbus" ,python2-dbus)
4948 ;("python2-pygobject" ,python2-pygobject)
4949 ;("python2-pygobject-2" ,python2-pygobject-2)))
4950 (propagated-inputs
4951 `(("glib" ,glib))) ; required by libsecret-1.pc
4952 (inputs
4953 ;; The ‘build’ phase complains about missing docbook-xml-4.2 but adding it
4954 ;; doesn't seem to affect the build result.
4955 `(("docbook-xsl" ,docbook-xsl)
4956 ("libgcrypt" ,libgcrypt)
4957 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
4958 (home-page "https://wiki.gnome.org/Projects/Libsecret/")
4959 (synopsis "GObject bindings for \"Secret Service\" API")
4960 (description
4961 "Libsecret is a GObject based library for storing and retrieving passwords
4962 and other secrets. It communicates with the \"Secret Service\" using DBus.")
4963 (license license:lgpl2.1+)))
4964
4965 (define-public five-or-more
4966 (package
4967 (name "five-or-more")
4968 (version "3.32.2")
4969 (source
4970 (origin
4971 (method url-fetch)
4972 (uri (string-append "mirror://gnome/sources/five-or-more/"
4973 (version-major+minor version) "/"
4974 "five-or-more-" version ".tar.xz"))
4975 (sha256
4976 (base32 "19pf8wzbf3ciqf2k4bj9sddvyhckfd62x86pnqr6s8h4vn9jc6ii"))))
4977 (build-system meson-build-system)
4978 (arguments
4979 '(#:glib-or-gtk? #t
4980 #:phases
4981 (modify-phases %standard-phases
4982 (add-after 'unpack 'skip-gtk-update-icon-cache
4983 (lambda _
4984 (substitute* "meson_post_install.py"
4985 (("gtk-update-icon-cache") (which "true")))
4986 #t)))))
4987 (native-inputs
4988 `(("pkg-config" ,pkg-config)
4989 ("appstream-glib" ,appstream-glib)
4990 ("desktop-file-utils" ,desktop-file-utils)
4991 ("glib:bin" ,glib "bin") ; for glib-compile-resources
4992 ("intltool" ,intltool)
4993 ("itstool" ,itstool)
4994 ("vala" ,vala)
4995 ("xmllint" ,libxml2)))
4996 (inputs
4997 `(("gtk+" ,gtk+)
4998 ("libgnome-games-support" ,libgnome-games-support)
4999 ("librsvg" ,librsvg)))
5000 (home-page "https://wiki.gnome.org/Apps/Five%20or%20more")
5001 (synopsis "Logic puzzle game")
5002 (description "Five or More is a game where you try to align
5003 five or more objects of the same color and shape causing them to disappear.
5004 On every turn more objects will appear, until the board is full.
5005 Try to last as long as possible.")
5006 (license license:gpl2+)))
5007
5008 (define-public gnome-mines
5009 (package
5010 (name "gnome-mines")
5011 (version "3.36.1")
5012 (source
5013 (origin
5014 (method url-fetch)
5015 (uri (string-append "mirror://gnome/sources/" name "/"
5016 (version-major+minor version) "/"
5017 name "-" version ".tar.xz"))
5018 (sha256
5019 (base32 "0m2680r94nk61imym4x73j03jwfjd8cxm592m5ybiqdfdw6i723i"))))
5020 (build-system meson-build-system)
5021 (arguments
5022 '(#:glib-or-gtk? #t
5023 #:phases
5024 (modify-phases %standard-phases
5025 (add-after 'unpack 'skip-gtk-update-icon-cache
5026 (lambda _
5027 (substitute* "build-aux/meson_post_install.py"
5028 (("gtk-update-icon-cache") (which "true")))
5029 #t)))))
5030 (native-inputs
5031 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
5032 ("pkg-config" ,pkg-config)
5033 ("desktop-file-utils" ,desktop-file-utils)
5034 ("intltool" ,intltool)
5035 ("itstool" ,itstool)
5036 ("vala" ,vala)
5037 ("yelp" ,yelp)
5038 ("appstream-glib" ,appstream-glib)))
5039 (inputs
5040 `(("gtk+" ,gtk+)
5041 ("libgnome-games-support" ,libgnome-games-support)
5042 ("librsvg" ,librsvg)))
5043 (home-page "https://wiki.gnome.org/Apps/Mines")
5044 (synopsis "Minesweeper game")
5045 (description
5046 "Mines (previously gnomine) is a puzzle game where you locate mines
5047 floating in an ocean using only your brain and a little bit of luck.")
5048 (license license:gpl2+)))
5049
5050 (define-public gnome-multi-writer
5051 (package
5052 (name "gnome-multi-writer")
5053 (version "3.35.90")
5054 (source
5055 (origin
5056 (method url-fetch)
5057 (uri (string-append "mirror://gnome/sources/gnome-multi-writer/"
5058 (version-major+minor version) "/"
5059 "gnome-multi-writer-" version ".tar.xz"))
5060 (sha256
5061 (base32
5062 "07vgzjjdrxcp7h73z13h9agafxb4vmqx5i81bcfyw0ilw9kkdzmp"))))
5063 (build-system meson-build-system)
5064 (arguments
5065 '(#:glib-or-gtk? #t
5066 #:phases
5067 (modify-phases %standard-phases
5068 (add-after 'unpack 'skip-post-install
5069 (lambda _
5070 (substitute* "meson.build"
5071 (("meson.add_install_script" &) (string-append "# " &)))
5072 #t)))))
5073 (native-inputs
5074 `(("glib:bin" ,glib "bin")
5075 ("pkg-config" ,pkg-config)))
5076 (inputs
5077 `(("gtk+" ,gtk+)
5078 ("glib" ,glib) ; for gio
5079 ("gusb" ,gusb)
5080 ("udisks" ,udisks)
5081 ("libgudev" ,libgudev)
5082 ("libcanberra" ,libcanberra)
5083 ("polkit" ,polkit)))
5084 (home-page "https://wiki.gnome.org/Apps/MultiWriter")
5085 (synopsis "Write to multiple USB devices at once")
5086 (description
5087 "MultiWriter can be used to write an ISO file to multiple USB devices at
5088 once.")
5089 (license license:gpl2+)))
5090
5091 (define-public gnome-sudoku
5092 (package
5093 (name "gnome-sudoku")
5094 (version "3.34.1")
5095 (source
5096 (origin
5097 (method url-fetch)
5098 (uri (string-append "mirror://gnome/sources/" name "/"
5099 (version-major+minor version) "/"
5100 name "-" version ".tar.xz"))
5101 (sha256
5102 (base32
5103 "025y85r4qqardivvwiwhbmgarziykdy224m8zlrq8b79zv82793b"))))
5104 (build-system meson-build-system)
5105 (arguments
5106 '(#:glib-or-gtk? #t
5107 #:phases
5108 (modify-phases %standard-phases
5109 (add-after 'unpack 'skip-gtk-update-icon-cache
5110 (lambda _
5111 (substitute* "build-aux/post_install.py"
5112 (("gtk-update-icon-cache") (which "true")))
5113 #t)))))
5114 (native-inputs
5115 `(("pkg-config" ,pkg-config)
5116 ("desktop-file-utils" ,desktop-file-utils)
5117 ("glib:bin" ,glib "bin") ; for glib-compile-resources
5118 ("intltool" ,intltool)
5119 ("itstool" ,itstool)
5120 ("vala" ,vala)
5121 ("xmllint" ,libxml2)))
5122 (inputs
5123 `(("gtk+" ,gtk+)
5124 ("json-glib" ,json-glib)
5125 ("libgee" ,libgee)
5126 ("librsvg" ,librsvg)
5127 ("qqwing" ,qqwing)))
5128 (home-page "https://wiki.gnome.org/Apps/Sudoku")
5129 (synopsis "Japanese logic game")
5130 (description
5131 "Sudoku is a Japanese logic game that exploded in popularity in 2005.
5132 GNOME Sudoku is meant to have an interface as simple and unobstrusive as
5133 possible while still providing features that make playing difficult Sudoku
5134 more fun.")
5135 (license license:gpl2+)))
5136
5137 (define-public gnome-terminal
5138 (package
5139 (name "gnome-terminal")
5140 (version "3.34.2")
5141 (source
5142 (origin
5143 (method url-fetch)
5144 (uri (string-append "mirror://gnome/sources/" name "/"
5145 (version-major+minor version) "/"
5146 name "-" version ".tar.xz"))
5147 (sha256
5148 (base32
5149 "0gc004f9b5k94gkdanmqjz3wqgnpny0l3nqm8zd19h4f0ps27mrv"))))
5150 (build-system glib-or-gtk-build-system)
5151 (arguments
5152 '(#:configure-flags
5153 (list "--disable-migration" "--disable-search-provider"
5154 "--without-nautilus-extension")
5155 #:phases
5156 (modify-phases %standard-phases
5157 (add-before 'configure 'patch-/bin/true
5158 (lambda _
5159 (substitute* "configure"
5160 (("/bin/true") (which "true"))))))))
5161 (native-inputs
5162 `(("pkg-config" ,pkg-config)
5163 ("desktop-file-utils" ,desktop-file-utils)
5164 ("intltool" ,intltool)
5165 ("itstool" ,itstool)
5166 ("xmllint" ,libxml2)))
5167 (propagated-inputs
5168 `(("dconf" ,dconf)))
5169 (inputs
5170 `(("gtk+" ,gtk+)
5171 ("vte" ,vte)
5172 ("gnutls" ,gnutls)
5173 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5174 ("util-linux" ,util-linux "lib")
5175 ("vala" ,vala)))
5176 (home-page "https://wiki.gnome.org/Apps/Terminal")
5177 (synopsis "Terminal emulator")
5178 (description
5179 "GNOME Terminal is a terminal emulator application for accessing a
5180 UNIX shell environment which can be used to run programs available on
5181 your system.
5182
5183 It supports several profiles, multiple tabs and implements several
5184 keyboard shortcuts.")
5185 (license license:gpl3+)))
5186
5187 (define-public colord
5188 (package
5189 (name "colord")
5190 (version "1.4.5")
5191 (source
5192 (origin
5193 (method url-fetch)
5194 (uri (string-append "https://www.freedesktop.org/software/colord/releases/"
5195 "colord-" version ".tar.xz"))
5196 (sha256
5197 (base32 "05sydi6qqqx1rrqwnga1vbg9srkf89wdcfw5w4p4m7r37m2flx5p"))))
5198 (build-system meson-build-system)
5199 (arguments
5200 '(;; FIXME: One test fails:
5201 ;; /colord/icc-store (in lib/colord/colord-self-test-private):
5202 ;; Incorrect content type for /tmp/colord-vkve/already-exists.icc, got
5203 ;; application/x-zerosize
5204 #:tests? #f
5205 #:glib-or-gtk? #t
5206 #:configure-flags (list "-Dlocalstatedir=/var"
5207 ;; No dep on systemd.
5208 "-Dsystemd=false"
5209 ;; Wants to install to global completion dir;
5210 ;; punt.
5211 "-Dbash_completion=false"
5212 "-Ddaemon_user=colord"
5213 "-Dsane=true"
5214 "-Dvapi=true"
5215 ;; Requires spotread.
5216 "-Dargyllcms_sensor=false"
5217 ;; TODO: Requires docbook2x.
5218 "-Dman=false")
5219 #:phases
5220 (modify-phases %standard-phases
5221 (add-before 'configure 'patch-build-system
5222 (lambda* (#:key outputs #:allow-other-keys)
5223 (substitute* "rules/meson.build"
5224 (("udev.get_pkgconfig_variable\\('udevdir'\\)")
5225 (string-append "'" (assoc-ref outputs "out") "/lib/udev'")))
5226 #t))
5227 (add-before 'configure 'set-sqlite3-file-name
5228 (lambda* (#:key inputs #:allow-other-keys)
5229 ;; "colormgr dump" works by invoking the "sqlite3" command.
5230 ;; Record its absolute file name.
5231 (let ((sqlite (assoc-ref inputs "sqlite")))
5232 (substitute* "client/cd-util.c"
5233 (("\"sqlite3\"")
5234 (string-append "\"" sqlite "/bin/sqlite3\"")))
5235 #t))))))
5236 (native-inputs
5237 `(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
5238 ("gettext" ,gettext-minimal)
5239 ("gobject-introspection" ,gobject-introspection)
5240 ("gtk-doc" ,gtk-doc)
5241 ("pkg-config" ,pkg-config)
5242 ("vala" ,vala)))
5243 (propagated-inputs
5244 ;; colord.pc refers to all these.
5245 `(("glib" ,glib)
5246 ("lcms" ,lcms)
5247 ("udev" ,eudev)))
5248 (inputs
5249 `(("dbus-glib" ,dbus-glib)
5250 ("gusb" ,gusb)
5251 ("libgudev" ,libgudev)
5252 ("libusb" ,libusb)
5253 ("polkit" ,polkit)
5254 ("python" ,python-wrapper)
5255 ("sqlite" ,sqlite)
5256 ("sane-backends" ,sane-backends)))
5257 (home-page "https://www.freedesktop.org/software/colord/")
5258 (synopsis "Color management service")
5259 (description "Colord is a system service that makes it easy to manage,
5260 install and generate color profiles to accurately color manage input and
5261 output devices.")
5262 (license license:gpl2+)))
5263
5264 (define-public geoclue
5265 (package
5266 (name "geoclue")
5267 (version "2.5.7")
5268 (source
5269 (origin
5270 (method url-fetch)
5271 (uri
5272 (string-append "https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/"
5273 version "/geoclue-" version ".tar.bz2"))
5274 (sha256
5275 (base32 "09ww26a76kanldhgwnn5sqy9ly2940k45zpp68spykkv2zjdpivc"))
5276 (patches (search-patches "geoclue-config.patch"))))
5277 (build-system meson-build-system)
5278 (arguments
5279 '(#:configure-flags (list "-Dbus-srv-user=geoclue")))
5280 (native-inputs
5281 `(("pkg-config" ,pkg-config)
5282 ("gobject-introspection" ,gobject-introspection)
5283 ("modem-manager" ,modem-manager)
5284 ("libnotify" ,libnotify)
5285 ("gtk-doc" ,gtk-doc)
5286 ("intltool" ,intltool)))
5287 (inputs
5288 `(("avahi" ,avahi)
5289 ("glib:bin" ,glib "bin")
5290 ("glib-networking" ,glib-networking)
5291 ("json-glib" ,json-glib)
5292 ("libsoup" ,libsoup)))
5293 (home-page "https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home")
5294 (synopsis "Geolocation service")
5295 (description "Geoclue is a D-Bus service that provides location
5296 information. The primary goal of the Geoclue project is to make creating
5297 location-aware applications as simple as possible, while the secondary goal is
5298 to ensure that no application can access location information without explicit
5299 permission from user.")
5300 (license license:gpl2+)))
5301
5302 (define-public geocode-glib
5303 (package
5304 (name "geocode-glib")
5305 (version "3.26.2")
5306 (source (origin
5307 (method url-fetch)
5308 (uri (string-append "mirror://gnome/sources/geocode-glib/"
5309 (version-major+minor version) "/"
5310 "geocode-glib-" version ".tar.xz"))
5311 (sha256
5312 (base32
5313 "1l8g0f13xgkrk335afr9w8k46mziwb2jnyhl07jccl5yl37q9zh1"))))
5314 (build-system meson-build-system)
5315 (arguments
5316 `(#:phases
5317 (modify-phases %standard-phases
5318 ;; The tests require a bunch of locales.
5319 (add-before 'check 'set-locales
5320 (lambda* (#:key inputs #:allow-other-keys)
5321 (setenv "GUIX_LOCPATH"
5322 (string-append (assoc-ref inputs "glibc-locales")
5323 "/lib/locale"))
5324 #t)))))
5325 (native-inputs
5326 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5327 ("glibc-locales" ,glibc-locales) ; for tests
5328 ("gettext" ,gettext-minimal)
5329 ("gobject-introspection" ,gobject-introspection)
5330 ("gtk-doc" ,gtk-doc)
5331 ("pkg-config" ,pkg-config)
5332 ("json-glib" ,json-glib)))
5333 (propagated-inputs
5334 ;; geocode-glib-1.0.pc refers to GIO.
5335 `(("glib" ,glib)))
5336 (inputs
5337 `(("libsoup" ,libsoup)))
5338 (home-page "https://github.com/GNOME/geocode-glib/")
5339 (synopsis "Geocoding and reverse-geocoding library")
5340 (description
5341 "geocode-glib is a convenience library for geocoding (finding longitude,
5342 and latitude from an address) and reverse geocoding (finding an address from
5343 coordinates) using the Nominatim service. geocode-glib caches requests for
5344 faster results and to avoid unnecessary server load.")
5345 (license license:lgpl2.0+)))
5346
5347 (define-public upower
5348 (package
5349 (name "upower")
5350 (version "0.99.11")
5351 (source (origin
5352 (method url-fetch)
5353 (uri (string-append "https://upower.freedesktop.org/releases/"
5354 "upower-" version ".tar.xz"))
5355 (sha256
5356 (base32
5357 "1vxxvmz2cxb1qy6ibszaz5bskqdy9nd9fxspj9fv3gfmrjzzzdb4"))
5358 (patches (search-patches "upower-builddir.patch"))
5359 (modules '((guix build utils)))
5360 (snippet
5361 '(begin
5362 ;; Upstream commit
5363 ;; <https://cgit.freedesktop.org/upower/commit/?id=18457c99b68786cd729b315723d680e6860d9cfa>
5364 ;; moved 'dbus-1/system.d' from etc/ to share/. However,
5365 ;; 'dbus-configuration-directory' in (gnu services dbus)
5366 ;; expects it in etc/. Thus, move it back to its previous
5367 ;; location.
5368 (substitute* "src/Makefile.in"
5369 (("^dbusconfdir =.*$")
5370 "dbusconfdir = $(sysconfdir)/dbus-1/system.d\n"))
5371 #t))))
5372 (build-system glib-or-gtk-build-system)
5373 (arguments
5374 '(#:phases
5375 (modify-phases %standard-phases
5376 (add-before 'check 'pre-check
5377 (lambda* (#:key inputs #:allow-other-keys)
5378 (let ((umockdev (string-append (assoc-ref inputs "umockdev")
5379 "/lib")))
5380 (setenv "LD_LIBRARY_PATH" umockdev))
5381 #t)))
5382 #:configure-flags (list "--localstatedir=/var"
5383 (string-append "--with-udevrulesdir="
5384 (assoc-ref %outputs "out")
5385 "/lib/udev/rules.d"))))
5386 (native-inputs
5387 `(("gobject-introspection" ,gobject-introspection)
5388 ("pkg-config" ,pkg-config)
5389 ("intltool" ,intltool)
5390 ("python" ,python)
5391
5392 ;; For tests.
5393 ("python-dbus" ,python-dbus)
5394 ("python-dbusmock" ,python-dbusmock)
5395 ("python-pygobject" ,python-pygobject)
5396 ("umockdev" ,umockdev)
5397
5398 ;; For man pages.
5399 ("libxslt" ,libxslt) ;for 'xsltproc'
5400 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
5401 ("docbook-xsl" ,docbook-xsl)))
5402 (inputs
5403 `(("dbus-glib" ,dbus-glib)
5404 ("libgudev" ,libgudev)
5405 ("libusb" ,libusb)))
5406 (propagated-inputs
5407 ;; In Requires of upower-glib.pc.
5408 `(("glib" ,glib)))
5409 (home-page "https://upower.freedesktop.org/")
5410 (synopsis "System daemon for managing power devices")
5411 (description
5412 "UPower is an abstraction for enumerating power devices,
5413 listening to device events and querying history and statistics. Any
5414 application or service on the system can access the org.freedesktop.UPower
5415 service via the system message bus.")
5416 (license license:gpl2+)))
5417
5418 (define-public libgweather
5419 (package
5420 (name "libgweather")
5421 (version "3.34.0")
5422 (source (origin
5423 (method url-fetch)
5424 (uri (string-append "mirror://gnome/sources/" name "/"
5425 (version-major+minor version) "/"
5426 name "-" version ".tar.xz"))
5427 (sha256
5428 (base32
5429 "1fgiqswkhiaijanml3mb16ajn5aanrk7x6yiwagp9n9rssam6902"))))
5430 (build-system meson-build-system)
5431 (arguments
5432 `(#:tests? #f ; one of two tests requires network access
5433 #:configure-flags
5434 `(,(string-append "-Dzoneinfo_dir="
5435 (assoc-ref %build-inputs "tzdata")
5436 "/share/zoneinfo"))))
5437 (native-inputs
5438 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5439 ("gobject-introspection" ,gobject-introspection)
5440 ("pkg-config" ,pkg-config)
5441 ("vala" ,vala)
5442 ("intltool" ,intltool)))
5443 (propagated-inputs
5444 ;; gweather-3.0.pc refers to GTK+, GDK-Pixbuf, GLib/GObject, libxml, and
5445 ;; libsoup.
5446 `(("gtk+" ,gtk+)
5447 ("gdk-pixbuf" ,gdk-pixbuf)
5448 ("libxml2" ,libxml2)
5449 ("libsoup" ,libsoup)
5450 ("geocode-glib" ,geocode-glib)))
5451 (inputs
5452 `(("tzdata" ,tzdata)))
5453 (home-page "https://wiki.gnome.org/action/show/Projects/LibGWeather")
5454 (synopsis "Location, time zone, and weather library for GNOME")
5455 (description
5456 "libgweather is a library to access weather information from online
5457 services for numerous locations.")
5458 (license license:gpl2+)))
5459
5460 (define-public gnome-settings-daemon
5461 (package
5462 (name "gnome-settings-daemon")
5463 (version "3.34.1")
5464 (source
5465 (origin
5466 (method url-fetch)
5467 (uri (string-append "mirror://gnome/sources/" name "/"
5468 (version-major+minor version) "/"
5469 name "-" version ".tar.xz"))
5470 (sha256
5471 (base32
5472 "07y1gbicz0pbxmdgwrdzyc4byy30wfwpbqgvnx27gnpqmc5s50cr"))
5473 (patches (search-patches "gnome-settings-daemon-gc.patch"))))
5474 (build-system meson-build-system)
5475 (arguments
5476 `(#:glib-or-gtk? #t
5477 #:configure-flags
5478 (list (string-append "-Dudev_dir="
5479 (assoc-ref %outputs "out")
5480 "/lib/udev/rules.d/")
5481 "-Dsystemd=false"
5482 ;; Otherwise, the RUNPATH will lack the final path component.
5483 (string-append "-Dc_link_args=-Wl,-rpath="
5484 (assoc-ref %outputs "out")
5485 "/lib/gnome-settings-daemon-3.0"))
5486
5487 #:phases (modify-phases %standard-phases
5488 (add-before 'configure 'set-baobab-file-name
5489 (lambda* (#:key inputs #:allow-other-keys)
5490 ;; Hard-code the file name of Baobab instead of looking
5491 ;; it up in $PATH. This ensures users get the "Examine"
5492 ;; button in the low disk space notification of GDM even
5493 ;; if they don't have GNOME in their main profile.
5494 (let ((baobab (assoc-ref inputs "baobab")))
5495 (substitute* "plugins/housekeeping/gsd-disk-space.c"
5496 (("g_find_program_in_path \\(DISK_SPACE_ANALYZER\\)")
5497 (string-append "g_strdup (\"" baobab
5498 "/bin/baobab\")")))
5499 #t))))
5500
5501 ;; Color management test can't reach the colord system service.
5502 #:tests? #f))
5503 (native-inputs
5504 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5505 ("pkg-config" ,pkg-config)
5506 ("intltool" ,intltool)
5507 ("xsltproc" ,libxslt)
5508 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
5509 ("docbook-xml" ,docbook-xml-4.2)
5510 ("docbook-xsl" ,docbook-xsl)))
5511 (inputs
5512 `(("alsa-lib" ,alsa-lib)
5513 ("baobab" ,baobab)
5514 ("colord" ,colord)
5515 ("libgudev" ,libgudev)
5516 ("upower" ,upower)
5517 ("polkit" ,polkit)
5518 ("pulseaudio" ,pulseaudio)
5519 ("libcanberra" ,libcanberra)
5520 ("libx11" ,libx11)
5521 ("libxtst" ,libxtst)
5522 ("lcms" ,lcms)
5523 ("libnotify" ,libnotify)
5524 ("geoclue" ,geoclue)
5525 ("geocode-glib" ,geocode-glib)
5526 ("libgweather" ,libgweather)
5527 ("gnome-desktop" ,gnome-desktop)
5528 ("nss" ,nss)
5529 ("cups" ,cups)
5530 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5531 ("libwacom" ,libwacom)
5532 ("librsvg" ,librsvg)
5533 ("xf86-input-wacom" ,xf86-input-wacom)
5534 ("wayland" ,wayland)
5535 ("network-manager" ,network-manager)
5536 ("gcr" ,gcr)
5537 ("modem-manager" ,modem-manager)))
5538 (home-page "https://www.gnome.org")
5539 (synopsis "GNOME settings daemon")
5540 (description
5541 "This package contains the daemon responsible for setting the various
5542 parameters of a GNOME session and the applications that run under it. It
5543 handles settings such keyboard layout, shortcuts, and accessibility, clipboard
5544 settings, themes, mouse settings, and startup of other daemons.")
5545 (license license:gpl2+)))
5546
5547 (define-public totem-pl-parser
5548 (package
5549 (name "totem-pl-parser")
5550 (version "3.26.5")
5551 (source (origin
5552 (method url-fetch)
5553 (uri (string-append "mirror://gnome/sources/totem-pl-parser/"
5554 (version-major+minor version) "/"
5555 "totem-pl-parser-" version ".tar.xz"))
5556 (sha256
5557 (base32
5558 "132jihnf51zs98yjkc6jxyqib4f3dawpjm17g4bj4j78y93dww2k"))))
5559 (build-system meson-build-system)
5560 (arguments
5561 ;; FIXME: Tests require gvfs.
5562 `(#:tests? #f))
5563 (native-inputs
5564 `(("intltool" ,intltool)
5565 ("glib" ,glib "bin")
5566 ("gobject-introspection" ,gobject-introspection)
5567 ("pkg-config" ,pkg-config)))
5568 (propagated-inputs
5569 `(("glib" ,glib)
5570 ("gmime" ,gmime)
5571 ("libarchive" ,libarchive)
5572 ("libgcrypt" ,libgcrypt)
5573 ("libxml2" ,libxml2)))
5574 (inputs
5575 `(("libsoup" ,libsoup)))
5576 (home-page "https://projects.gnome.org/totem")
5577 (synopsis "Library to parse and save media playlists for GNOME")
5578 (description "Totem-pl-parser is a GObjects-based library to parse and save
5579 playlists in a variety of formats.")
5580 (license license:lgpl2.0+)))
5581
5582 (define-public aisleriot
5583 (package
5584 (name "aisleriot")
5585 (version "3.22.9")
5586 (source (origin
5587 (method url-fetch)
5588 (uri (string-append "mirror://gnome/sources/aisleriot/"
5589 (version-major+minor version) "/"
5590 "aisleriot-" version ".tar.xz"))
5591 (sha256
5592 (base32
5593 "0yzdh9cw5cjjgvfh75bihl968czlgfmpmn1z0fdk88sgvpjgzwji"))))
5594 (build-system glib-or-gtk-build-system)
5595 (arguments
5596 '(#:configure-flags
5597 '("--with-platform=gtk-only"
5598 "--with-card-theme-formats=svg")))
5599 (native-inputs
5600 `(("desktop-file-utils" ,desktop-file-utils)
5601 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5602 ("intltool" ,intltool)
5603 ("itstool" ,itstool)
5604 ("pkg-config" ,pkg-config)
5605 ("xmllint" ,libxml2)))
5606 (inputs
5607 `(("gtk+" ,gtk+)
5608 ("guile" ,guile-2.2)
5609 ("libcanberra" ,libcanberra)
5610 ("librsvg" ,librsvg)))
5611 (home-page "https://wiki.gnome.org/Apps/Aisleriot")
5612 (synopsis "Solitaire card games")
5613 (description
5614 "Aisleriot (also known as Solitaire or sol) is a collection of card games
5615 which are easy to play with the aid of a mouse.")
5616 (license license:gpl3+)))
5617
5618 (define-public amtk
5619 (package
5620 (name "amtk")
5621 (version "5.0.2")
5622 (source (origin
5623 (method url-fetch)
5624 (uri (string-append "mirror://gnome/sources/amtk/"
5625 (version-major+minor version) "/"
5626 "amtk-" version ".tar.xz"))
5627 (sha256
5628 (base32
5629 "11jgz2i9wjzv4alrxl1qyxiapb52w7vs5ygfgsw0qgdap8gqkk3i"))))
5630 (build-system gnu-build-system)
5631 (arguments
5632 '(#:configure-flags '("--enable-gtk-doc")))
5633 (native-inputs
5634 `(("gobject-introspection" ,gobject-introspection)
5635 ("glib:bin" ,glib "bin") ; for glib-mkenums
5636 ("gtk-doc" ,gtk-doc)
5637 ("pkg-config" ,pkg-config)))
5638 (inputs
5639 `(("glib" ,glib)
5640 ("gtk+" ,gtk+)))
5641 (home-page "https://wiki.gnome.org/Projects/Amtk")
5642 (synopsis "Actions, Menus and Toolbars Kit for GTK+ applications")
5643 (description
5644 "Amtk is the acronym for @acronym{Amtk, Actions Menus and Toolbars Kit}.
5645 It is a basic GtkUIManager replacement based on GAction. It is suitable for
5646 both a traditional UI or a modern UI with a GtkHeaderBar.")
5647 (license license:lgpl2.1+)))
5648
5649 (define-public devhelp
5650 (package
5651 (name "devhelp")
5652 (version "3.34.0")
5653 (source (origin
5654 (method url-fetch)
5655 (uri (string-append "mirror://gnome/sources/" name "/"
5656 (version-major+minor version) "/"
5657 name "-" version ".tar.xz"))
5658 (sha256
5659 (base32
5660 "0zpmn6fgkgiayvn4diia5df0s6s7dqrdnp3nrvpavsmgn0vhb4pg"))))
5661 (build-system meson-build-system)
5662 (arguments
5663 '(#:glib-or-gtk? #t
5664 #:phases
5665 (modify-phases %standard-phases
5666 (add-after 'unpack 'skip-gtk-update-icon-cache
5667 ;; Don't create 'icon-theme.cache'.
5668 (lambda _
5669 (substitute* "meson_post_install.py"
5670 (("gtk-update-icon-cache") "true"))
5671 #t)))))
5672 (native-inputs
5673 `(("intltool" ,intltool)
5674 ("itstool" ,itstool)
5675 ("gobject-introspection" ,gobject-introspection)
5676 ("glib:bin" ,glib "bin") ; for glib-mkmenus
5677 ("pkg-config" ,pkg-config)))
5678 (inputs
5679 `(("amtk" ,amtk)
5680 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5681 ("webkitgtk" ,webkitgtk)))
5682 (home-page "https://wiki.gnome.org/Apps/Devhelp")
5683 (synopsis "API documentation browser for GNOME")
5684 (description
5685 "Devhelp is an API documentation browser for GTK+ and GNOME. It works
5686 natively with GTK-Doc (the API reference system developed for GTK+ and used
5687 throughout GNOME for API documentation).")
5688 (license license:gpl2+)))
5689
5690 (define-public cogl
5691 (package
5692 (name "cogl")
5693 (version "1.22.8")
5694 (source
5695 (origin
5696 (method url-fetch)
5697 (uri (string-append "mirror://gnome/sources/cogl/"
5698 (version-major+minor version) "/"
5699 "cogl-" version ".tar.xz"))
5700 (sha256
5701 (base32 "0nfph4ai60ncdx7hy6hl1i1cmp761jgnyjfhagzi0iqq36qb41d8"))))
5702 ;; NOTE: mutter exports a bundled fork of cogl, so when making changes to
5703 ;; cogl, corresponding changes may be appropriate in mutter as well.
5704 (build-system gnu-build-system)
5705 (native-inputs
5706 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5707 ("gobject-introspection" ,gobject-introspection)
5708 ("xorg-server" ,xorg-server-for-tests)
5709 ("pkg-config" ,pkg-config)))
5710 (propagated-inputs
5711 `(("glib" ,glib)
5712 ("gdk-pixbuf" ,gdk-pixbuf)
5713 ("libx11" ,libx11)
5714 ("libxext" ,libxext)
5715 ("libxfixes" ,libxfixes)
5716 ("libxdamage" ,libxdamage)
5717 ("libxcomposite" ,libxcomposite)
5718 ("libxrandr" ,libxrandr)))
5719 (inputs
5720 `(("mesa" ,mesa)
5721 ("cairo" ,cairo)
5722 ("pango" ,pango)
5723 ("gstreamer" ,gstreamer)
5724 ("gst-plugins-base" ,gst-plugins-base)
5725 ("wayland" ,wayland)))
5726 (arguments
5727 `(#:disallowed-references (,xorg-server-for-tests)
5728 #:configure-flags (list "--enable-cogl-gst"
5729 "--enable-wayland-egl-platform"
5730 "--enable-wayland-egl-server"
5731
5732 ;; Arrange to pass an absolute file name to
5733 ;; dlopen for libGL.so.
5734 (string-append "--with-gl-libname="
5735 (assoc-ref %build-inputs "mesa")
5736 "/lib/libGL.so"))
5737 #:phases
5738 (modify-phases %standard-phases
5739 (add-after 'unpack 'fix-build-with-mesa-20
5740 (lambda _
5741 ;; Work around a problem with Mesa 20 where some macros used by
5742 ;; Cogl went missing from eglext.h. This can likely be removed
5743 ;; for newer versions of Cogl or Mesa.
5744 ;; https://gitlab.gnome.org/GNOME/cogl/-/merge_requests/19
5745 (substitute* '("configure"
5746 "cogl/winsys/cogl-winsys-egl-kms.c")
5747 (("#include <EGL/eglext.h>" all)
5748 (string-append all "\n#include <EGL/eglmesaext.h>\n")))
5749 #t))
5750 (add-before 'check 'start-xorg-server
5751 (lambda* (#:key tests? inputs #:allow-other-keys)
5752 (if tests?
5753 (begin
5754 ;; The test suite requires a running X server.
5755 (system (format #f "~a/bin/Xvfb :1 +extension GLX &"
5756 (assoc-ref inputs "xorg-server")))
5757 (setenv "DISPLAY" ":1")
5758 #t)
5759 (format #t "test suite not run~%"))
5760 #t)))))
5761 (home-page "https://www.cogl3d.org")
5762 (synopsis "Object oriented GL/GLES Abstraction/Utility Layer")
5763 (description
5764 "Cogl is a small library for using 3D graphics hardware to draw pretty
5765 pictures. The API departs from the flat state machine style of OpenGL and is
5766 designed to make it easy to write orthogonal components that can render
5767 without stepping on each others toes.")
5768 (license (list license:expat ; most of the code
5769 license:bsd-3 ; cogl/cogl-point-in-poly.c
5770 license:sgifreeb2.0 ; cogl-path/tesselator/
5771 license:asl2.0)))) ; examples/android/
5772
5773 (define-public clutter
5774 (package
5775 (name "clutter")
5776 (version "1.26.2")
5777 (source
5778 (origin
5779 (method url-fetch)
5780 (uri (string-append "mirror://gnome/sources/" name "/"
5781 (version-major+minor version) "/"
5782 name "-" version ".tar.xz"))
5783 (sha256
5784 (base32
5785 "0mif1qnrpkgxi43h7pimim6w6zwywa16ixcliw0yjm9hk0a368z7"))))
5786 ;; NOTE: mutter exports a bundled fork of clutter, so when making changes
5787 ;; to clutter, corresponding changes may be appropriate in mutter as well.
5788 (build-system gnu-build-system)
5789 (outputs '("out"
5790 "doc")) ;9 MiB of gtk-doc HTML pages
5791 (native-inputs
5792 `(("glib:bin" ,glib "bin") ; for glib-genmarshal
5793 ("gobject-introspection" ,gobject-introspection)
5794 ("pkg-config" ,pkg-config)
5795 ("xsltproc" ,libxslt)))
5796 (propagated-inputs
5797 `(("cogl" ,cogl)
5798 ("cairo" ,cairo)
5799 ("atk" ,atk)
5800 ("gtk+" ,gtk+)
5801 ("json-glib" ,json-glib)
5802 ("glib" ,glib)
5803 ("libxcomposite" ,libxcomposite)
5804 ("libxdamage" ,libxdamage)
5805 ("libxext" ,libxext)
5806 ("xinput" ,xinput)))
5807 (inputs
5808 `(("libxkbcommon" ,libxkbcommon)
5809 ("udev" ,eudev)))
5810 (arguments
5811 `(#:configure-flags (list "--enable-x11-backend=yes"
5812
5813 ;; This produces share/doc/{clutter,cally}.
5814 (string-append "--with-html-dir="
5815 (assoc-ref %outputs "doc")
5816 "/share/doc"))
5817 ;; XXX FIXME: Get test suite working. It would probably fail in the
5818 ;; same way the cogl tests fail, since clutter is based on cogl.
5819 #:tests? #f))
5820 (home-page "http://www.clutter-project.org")
5821 (synopsis "OpenGL-based interactive canvas library")
5822 (description
5823 "Clutter is an OpenGL-based interactive canvas library, designed for
5824 creating fast, mainly 2D single window applications such as media box UIs,
5825 presentations, kiosk style applications and so on.")
5826 (license license:lgpl2.0+)))
5827
5828 (define-public clutter-gtk
5829 (package
5830 (name "clutter-gtk")
5831 (version "1.8.4")
5832 (source
5833 (origin
5834 (method url-fetch)
5835 (uri (string-append "mirror://gnome/sources/" name "/"
5836 (version-major+minor version) "/"
5837 name "-" version ".tar.xz"))
5838 (sha256
5839 (base32
5840 "01ibniy4ich0fgpam53q252idm7f4fn5xg5qvizcfww90gn9652j"))))
5841 (build-system gnu-build-system)
5842 (native-inputs
5843 `(("pkg-config" ,pkg-config)
5844 ("gobject-introspection" ,gobject-introspection)))
5845 (propagated-inputs
5846 ;; clutter-gtk.pc refers to all these.
5847 `(("clutter" ,clutter)
5848 ("gtk+" ,gtk+)))
5849 (home-page "http://www.clutter-project.org")
5850 (synopsis "OpenGL-based interactive canvas library GTK+ widget")
5851 (description
5852 "Clutter is an OpenGL-based interactive canvas library, designed for
5853 creating fast, mainly 2D single window applications such as media box UIs,
5854 presentations, kiosk style applications and so on.")
5855 (license license:lgpl2.0+)))
5856
5857 (define-public clutter-gst
5858 (package
5859 (name "clutter-gst")
5860 (version "3.0.27")
5861 (source
5862 (origin
5863 (method url-fetch)
5864 (uri (string-append "mirror://gnome/sources/clutter-gst/"
5865 (version-major+minor version) "/"
5866 "clutter-gst-" version ".tar.xz"))
5867 (sha256
5868 (base32 "17czmpl92dzi4h3rn5rishk015yi3jwiw29zv8qan94xcmnbssgy"))))
5869 (build-system gnu-build-system)
5870 (native-inputs
5871 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5872 ("pkg-config" ,pkg-config)
5873 ("gobject-introspection" ,gobject-introspection)))
5874 (inputs
5875 `(("clutter" ,clutter)
5876 ("gstreamer" ,gstreamer)
5877 ("gst-plugins-base" ,gst-plugins-base)))
5878 (home-page "http://www.clutter-project.org")
5879 (synopsis "Integration library for using GStreamer with Clutter")
5880 (description
5881 "Clutter-Gst is an integration library for using GStreamer with Clutter.
5882 It provides a GStreamer sink to upload frames to GL and an actor that
5883 implements the ClutterGstPlayer interface using playbin. Clutter is an
5884 OpenGL-based interactive canvas library.")
5885 (license license:lgpl2.0+)))
5886
5887 (define-public libchamplain
5888 (package
5889 (name "libchamplain")
5890 (version "0.12.16")
5891 (source (origin
5892 (method url-fetch)
5893 (uri (string-append
5894 "mirror://gnome/sources/libchamplain/0.12/libchamplain-"
5895 version ".tar.xz"))
5896 (sha256
5897 (base32
5898 "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja"))))
5899 (build-system gnu-build-system)
5900 (arguments '(#:configure-flags '("--enable-vala")))
5901 (native-inputs
5902 `(("gobject-introspection" ,gobject-introspection)
5903 ("pkg-config" ,pkg-config)
5904 ("vala" ,vala)))
5905 (propagated-inputs
5906 `(("libsoup" ,libsoup)
5907 ("sqlite" ,sqlite)
5908 ("clutter" ,clutter)
5909 ("clutter-gtk" ,clutter-gtk)
5910 ("glib:bin" ,glib "bin") ;glib-mkenums, etc.
5911 ("cairo" ,cairo)
5912 ("gtk+3" ,gtk+)
5913 ("glib" ,glib)))
5914 (home-page "https://projects.gnome.org/libchamplain/")
5915 (synopsis "C library providing a ClutterActor to display maps")
5916 (description
5917 "libchamplain is a C library providing a ClutterActor to display maps.
5918 It also provides a Gtk+ widget to display maps in Gtk+ applications. Python
5919 and Perl bindings are also available. It supports numerous free map sources
5920 such as OpenStreetMap, OpenCycleMap, OpenAerialMap, and Maps for free.")
5921 (license license:lgpl2.1+)))
5922
5923 (define-public gom
5924 (package
5925 (name "gom")
5926 (version "0.3.2")
5927 (source
5928 (origin
5929 (method url-fetch)
5930 (uri (string-append "mirror://gnome/sources/gom/"
5931 (version-major+minor version) "/"
5932 "gom-" version ".tar.xz"))
5933 (sha256
5934 (base32
5935 "1zaqqwwkyiswib3v1v8wafpbifpbpak0nn2kp13pizzn9bwz1s5w"))))
5936 (build-system gnu-build-system)
5937 (native-inputs
5938 `(("intltool" ,intltool)
5939 ("pkg-config" ,pkg-config)
5940 ("gobject-introspection" ,gobject-introspection)))
5941 (inputs
5942 `(("glib" ,glib)
5943 ("gdk-pixbuf" ,gdk-pixbuf)
5944 ("sqlite" ,sqlite)))
5945 ;; XXX TODO: Figure out how to run the test suite.
5946 (arguments `(#:tests? #f))
5947 (home-page "https://wiki.gnome.org/Projects/Gom")
5948 (synopsis "Object mapper from GObjects to SQLite")
5949 (description
5950 "Gom provides an object mapper from GObjects to SQLite. It helps you
5951 write applications that need to store structured data as well as make complex
5952 queries upon that data.")
5953 (license license:lgpl2.1+)))
5954
5955 (define-public libgnome-games-support
5956 (package
5957 (name "libgnome-games-support")
5958 (version "1.4.4")
5959 (source (origin
5960 (method url-fetch)
5961 (uri (string-append "mirror://gnome/sources/libgnome-games-support/"
5962 (version-major+minor version) "/"
5963 "libgnome-games-support-" version ".tar.xz"))
5964 (sha256
5965 (base32
5966 "1zkbmnrn161p74qg6jhsn9f66yjjzxfm13pl1klv9av8k1bax9pq"))))
5967 (build-system gnu-build-system)
5968 (arguments
5969 '(#:phases
5970 (modify-phases %standard-phases
5971 (add-before 'check 'pre-check
5972 (lambda _
5973 ;; Tests require a writable HOME.
5974 (setenv "HOME" (getcwd))
5975 #t)))))
5976 (native-inputs
5977 `(("intltool" ,intltool)
5978 ("pkg-config" ,pkg-config)
5979 ("vala" ,vala)))
5980 (propagated-inputs
5981 ;; Required by libgnome-games-support-1.0.pc
5982 `(("gtk+" ,gtk+)
5983 ("libgee" ,libgee)))
5984 (home-page "https://www.gnome.org/")
5985 (synopsis "Useful functionality shared among GNOME games")
5986 (description
5987 "libgnome-games-support is a small library intended for internal use by
5988 GNOME Games, but it may be used by others.")
5989 (license license:lgpl3+)))
5990
5991 (define-public gnome-klotski
5992 (package
5993 (name "gnome-klotski")
5994 (version "3.34.0")
5995 (source (origin
5996 (method url-fetch)
5997 (uri (string-append "mirror://gnome/sources/" name "/"
5998 (version-major+minor version) "/"
5999 name "-" version ".tar.xz"))
6000 (sha256
6001 (base32
6002 "0sbx0bzy32lh2c9jp8v7gz788wn9y1la8mr5a7gf7370szsl4d4f"))))
6003 (build-system meson-build-system)
6004 (arguments
6005 '(#:glib-or-gtk? #t
6006 #:phases
6007 (modify-phases %standard-phases
6008 (add-after 'unpack 'skip-gtk-update-icon-cache
6009 ;; Don't create 'icon-theme.cache'.
6010 (lambda _
6011 (substitute* "build-aux/meson_post_install.py"
6012 (("gtk-update-icon-cache") (which "true")))
6013 #t)))))
6014 (native-inputs
6015 `(("desktop-file-utils" ,desktop-file-utils)
6016 ("glib:bin" ,glib "bin") ; for glib-compile-resources
6017 ("intltool" ,intltool)
6018 ("itstool" ,itstool)
6019 ("pkg-config" ,pkg-config)
6020 ("vala" ,vala)
6021 ("xmllint" ,libxml2)))
6022 (inputs
6023 `(("gtk+" ,gtk+)
6024 ("libgnome-games-support" ,libgnome-games-support)
6025 ("librsvg" ,librsvg)))
6026 (home-page "https://wiki.gnome.org/Apps/Klotski")
6027 (synopsis "Sliding block puzzles")
6028 (description
6029 "GNOME Klotski is a set of block sliding puzzles. The objective is to move
6030 the patterned block to the area bordered by green markers. To do so, you will
6031 need to slide other blocks out of the way. Complete each puzzle in as few moves
6032 as possible!")
6033 (license license:gpl2+)))
6034
6035 (define-public grilo
6036 (package
6037 (name "grilo")
6038 (version "0.3.12")
6039 (source
6040 (origin
6041 (method url-fetch)
6042 (uri (string-append "mirror://gnome/sources/grilo/"
6043 (version-major+minor version) "/"
6044 "grilo-" version ".tar.xz"))
6045 (sha256
6046 (base32 "0w8sq5g6g1rg85h53vbll8va70fcp6082mlpmy98aa03444ddyyv"))))
6047 (build-system meson-build-system)
6048 (native-inputs
6049 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
6050 ("intltool" ,intltool)
6051 ("pkg-config" ,pkg-config)
6052 ("gobject-introspection" ,gobject-introspection)
6053 ("gtk-doc" ,gtk-doc)
6054 ("vala" ,vala)))
6055 (inputs
6056 `(("cyrus-sasl" ,cyrus-sasl)
6057 ("glib" ,glib)
6058 ("gtk+" ,gtk+)
6059 ("libxml2" ,libxml2)
6060 ("liboauth" ,liboauth)
6061 ("libsoup" ,libsoup)
6062 ("totem-pl-parser" ,totem-pl-parser)))
6063 (native-search-paths
6064 (list (search-path-specification
6065 (variable "GRL_PLUGIN_PATH")
6066 (files (list (string-append "lib/grilo-"
6067 (version-major+minor version)))))))
6068 (home-page "https://wiki.gnome.org/action/show/Projects/Grilo")
6069 (synopsis "Framework for discovering and browsing media")
6070 (description
6071 "Grilo is a framework focused on making media discovery and browsing easy
6072 for application developers.")
6073 (license license:lgpl2.1+)))
6074
6075 (define-public grilo-plugins
6076 (package
6077 (name "grilo-plugins")
6078 (version "0.3.11")
6079 (source
6080 (origin
6081 (method url-fetch)
6082 (uri (string-append "mirror://gnome/sources/" name "/"
6083 (version-major+minor version) "/"
6084 name "-" version ".tar.xz"))
6085 (sha256
6086 (base32 "0wyd3n5mn7b77hxylkc3f62v01mlavh96901pz342hwrn42ydqnx"))))
6087 (build-system meson-build-system)
6088 (native-inputs
6089 `(("gettext" ,gettext-minimal)
6090 ("glib:bin" ,glib "bin")
6091 ("gtk+:bin" ,gtk+ "bin")
6092 ("itstool" ,itstool)
6093 ("pkg-config" ,pkg-config)))
6094 ;; TODO: ahavi, gstreamer
6095 (inputs
6096 `(("grilo" ,grilo)
6097 ;("gmime" ,gmime) ; unused
6098 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6099 ("gom" ,gom)
6100 ;("gssdp" ,gssdp) ; unused
6101 ;("gupnp" ,gupnp) ; unused
6102 ;("gupnp-av" ,gupnp-av) ; unused
6103 ("json-glib" ,json-glib)
6104 ("avahi" ,avahi)
6105 ("libgdata" ,libgdata)
6106 ("libmediaart" ,libmediaart)
6107 ;("librest" ,rest) ; unused
6108 ("libsoup" ,libsoup)
6109 ("totam-pl-parser" ,totem-pl-parser)
6110 ("tracker" ,tracker))) ; unused because it's too old
6111 (arguments
6112 `(#:glib-or-gtk? #t
6113 ;;Disable lua-factory as it needs missing dependencies
6114 #:configure-flags '("-Denable-lua-factory=no")))
6115 (home-page "https://live.gnome.org/Grilo")
6116 (synopsis "Plugins for the Grilo media discovery library")
6117 (description
6118 "Grilo is a framework focused on making media discovery and browsing easy
6119 for application developers. This package provides plugins for common media
6120 discovery protocols.")
6121 (license license:lgpl2.1+)))
6122
6123 (define-public totem
6124 (package
6125 (name "totem")
6126 (version "3.38.0")
6127 (source
6128 (origin
6129 (method url-fetch)
6130 (uri (string-append "mirror://gnome/sources/totem/"
6131 (version-major+minor version) "/"
6132 "totem-" version ".tar.xz"))
6133 (sha256
6134 (base32
6135 "0bs33ijvxbr2prb9yj4dxglsszslsn9k258n311sld84masz4ad8"))))
6136 (build-system meson-build-system)
6137 (native-inputs
6138 `(("pkg-config" ,pkg-config)
6139 ("desktop-file-utils" ,desktop-file-utils)
6140 ("gettext" ,gettext-minimal)
6141 ("gobject-introspection" ,gobject-introspection)
6142 ("glib:bin" ,glib "bin") ;for 'glib-mkenums'
6143 ("itstool" ,itstool)
6144 ("xmllint" ,libxml2)
6145 ("xorg-server" ,xorg-server-for-tests)))
6146 (propagated-inputs
6147 `(("dconf" ,dconf)))
6148 (inputs
6149 `(("gtk+" ,gtk+)
6150 ("gdk-pixbuf" ,gdk-pixbuf)
6151 ("atk" ,atk)
6152 ("cairo" ,cairo)
6153 ("dbus-glib" ,dbus-glib)
6154 ("clutter" ,clutter)
6155 ("clutter-gtk" ,clutter-gtk)
6156 ("clutter-gst" ,clutter-gst)
6157 ("xorgproto" ,xorgproto)
6158 ("libxxf86vm" ,libxxf86vm)
6159 ("libxtst" ,libxtst)
6160 ("libxrandr" ,libxrandr)
6161 ("libxml2" ,libxml2)
6162 ("libsoup" ,libsoup)
6163 ("libpeas" ,libpeas)
6164 ("librsvg" ,librsvg)
6165 ("lirc" ,lirc)
6166 ("gnome-desktop" ,gnome-desktop)
6167 ("gstreamer" ,gstreamer)
6168 ("gst-plugins-base" ,gst-plugins-base)
6169 ("gst-plugins-good" ,gst-plugins-good)
6170 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6171 ("adwaita-icon-theme" ,adwaita-icon-theme)
6172 ("python" ,python)
6173 ("python-pygobject" ,python-pygobject)
6174 ("totem-pl-parser" ,totem-pl-parser)
6175 ("grilo" ,grilo)
6176 ("grilo-plugins" ,grilo-plugins)
6177 ("vala" ,vala)))
6178 (arguments
6179 `(#:glib-or-gtk? #t
6180
6181 ;; Disable automatic GStreamer plugin installation via PackageKit and
6182 ;; all that.
6183 #:configure-flags '("-D" "enable-easy-codec-installation=no"
6184
6185 ;; Do not build .a files for the plugins, it's
6186 ;; completely useless. This saves 2 MiB.
6187 "--default-library" "shared")
6188 #:phases
6189 (modify-phases %standard-phases
6190 (add-after 'unpack 'skip-gtk-update-icon-cache
6191 ;; Don't create 'icon-theme.cache'.
6192 (lambda _
6193 (substitute* "meson_post_install.py"
6194 (("gtk-update-icon-cache") "true"))
6195 #t))
6196 (add-after 'unpack 'patch-failing-test
6197 (lambda _
6198 ;; Work around test failure with GStreamer 1.18, because the test
6199 ;; relies on "und" not being mapped to a particular language:
6200 ;; https://gitlab.gnome.org/GNOME/totem/-/issues/450
6201 (substitute* "src/test-totem.c"
6202 (("und") "nosuchlang"))
6203 #t))
6204 (add-before
6205 'install 'disable-cache-generation
6206 (lambda _
6207 (setenv "DESTDIR" "/")
6208 #t))
6209 (add-before
6210 'check 'pre-check
6211 (lambda _
6212 ;; Tests require a running X server.
6213 (system "Xvfb :1 &")
6214 (setenv "DISPLAY" ":1")
6215 #t))
6216 (add-after
6217 'install 'wrap-totem
6218 (lambda* (#:key inputs outputs #:allow-other-keys)
6219 (let ((out (assoc-ref outputs "out"))
6220 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
6221 (grl-plugin-path (getenv "GRL_PLUGIN_PATH")))
6222 (wrap-program (string-append out "/bin/totem")
6223 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
6224 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path)))
6225 (wrap-program (string-append out "/bin/totem-video-thumbnailer")
6226 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
6227 #t)))))
6228 (home-page "https://wiki.gnome.org/Apps/Videos")
6229 (synopsis "Simple media player for GNOME based on GStreamer")
6230 (description "Totem is a simple yet featureful media player for GNOME
6231 which can read a large number of file formats.")
6232 ;; GPL2+ with an exception clause for non-GPL compatible GStreamer plugins
6233 ;; to be used and distributed together with GStreamer and Totem. See
6234 ;; file://COPYING in the source distribution for details.
6235 (license license:gpl2+)))
6236
6237 (define-public rhythmbox
6238 (package
6239 (name "rhythmbox")
6240 (version "3.4.4")
6241 (source (origin
6242 (method url-fetch)
6243 (uri (string-append "mirror://gnome/sources/rhythmbox/"
6244 (version-major+minor version) "/"
6245 "rhythmbox-" version ".tar.xz"))
6246 (sha256
6247 (base32
6248 "142xcvw4l19jyr5i72nbnrihs953pvrrzcbijjn9dxmxszbv03pf"))))
6249 (build-system glib-or-gtk-build-system)
6250 (arguments
6251 `(#:configure-flags
6252 (list "--enable-lirc"
6253 "--enable-python"
6254 "--enable-vala"
6255 "--with-brasero"
6256 "--with-gudev"
6257 "--with-libsecret")
6258 #:phases
6259 (modify-phases %standard-phases
6260 (add-after
6261 'install 'wrap-rhythmbox
6262 (lambda* (#:key inputs outputs #:allow-other-keys)
6263 (let ((out (assoc-ref outputs "out"))
6264 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6265 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
6266 (grl-plugin-path (getenv "GRL_PLUGIN_PATH"))
6267 (python-path (getenv "PYTHONPATH")))
6268 (wrap-program (string-append out "/bin/rhythmbox")
6269 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6270 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
6271 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path))
6272 `("PYTHONPATH" ":" prefix (,python-path))))
6273 #t)))))
6274 (propagated-inputs
6275 `(("dconf" ,dconf)))
6276 (native-inputs
6277 `(("itstool" ,itstool)
6278 ("intltool" ,intltool)
6279 ("glib" ,glib "bin")
6280 ("gobject-introspection" ,gobject-introspection)
6281 ("desktop-file-utils" ,desktop-file-utils)
6282 ("pkg-config" ,pkg-config)
6283 ("xmllint" ,libxml2)))
6284 (inputs
6285 `(("json-glib" ,json-glib)
6286 ("tdb" ,tdb)
6287 ("gnome-desktop" ,gnome-desktop)
6288 ("python" ,python)
6289 ("python-pygobject" ,python2-pygobject)
6290 ("vala" ,vala)
6291 ("gmime" ,gmime)
6292 ("adwaita-icon-theme" ,adwaita-icon-theme)
6293 ("grilo" ,grilo)
6294 ("grilo-plugins" ,grilo-plugins)
6295 ("gstreamer" ,gstreamer)
6296 ("gst-plugins-base" ,gst-plugins-base)
6297 ("gst-plugins-good" ,gst-plugins-good)
6298 ("totem-pl-parser" ,totem-pl-parser)
6299 ("libgudev" ,libgudev)
6300 ;;("libmtp" ,libmtp) FIXME: Not detected
6301 ("libsecret" ,libsecret)
6302 ("libsoup" ,libsoup)
6303 ("libnotify" ,libnotify)
6304 ("libpeas" ,libpeas)
6305 ("lirc" ,lirc)
6306 ;; TODO: clutter* only used by visualizer plugin, which also requires mx
6307 ;;("clutter" ,clutter)
6308 ;;("clutter-gtk" ,clutter-gtk)
6309 ;;("clutter-gst" ,clutter-gst)
6310 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6311 ("atk" ,atk)
6312 ("pango" ,pango)
6313 ("gtk+" ,gtk+)
6314 ;; TODO:
6315 ;; * libgpod
6316 ;; * mx
6317 ("brasero" ,brasero)))
6318 (home-page "https://wiki.gnome.org/Apps/Rhythmbox")
6319 (synopsis "Music player for GNOME")
6320 (description "Rhythmbox is a music playing application for GNOME. It
6321 supports playlists, song ratings, and any codecs installed through gstreamer.")
6322 (license license:gpl2+)))
6323
6324 (define-public eog
6325 (package
6326 (name "eog")
6327 (version "3.34.1")
6328 (source (origin
6329 (method url-fetch)
6330 (uri (string-append "mirror://gnome/sources/" name "/"
6331 (version-major+minor version) "/"
6332 name "-" version ".tar.xz"))
6333 (sha256
6334 (base32
6335 "0b7ld4azs9xbdjsk9b91ywhdzvxgajhndiwiivxjzbr0hjgp7c7x"))))
6336 (build-system meson-build-system)
6337 (arguments
6338 `(#:configure-flags
6339 ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
6340 (list (string-append "-Dc_link_args=-Wl,-rpath="
6341 (assoc-ref %outputs "out") "/lib/eog"))
6342 #:phases
6343 (modify-phases %standard-phases
6344 (add-after 'unpack 'skip-gtk-update-icon-cache
6345 ;; Don't create 'icon-theme.cache'.
6346 (lambda _
6347 (substitute* "meson_post_install.py"
6348 (("gtk-update-icon-cache") "true"))
6349 #t))
6350 (add-after 'install 'wrap-eog
6351 (lambda* (#:key outputs #:allow-other-keys)
6352 (let ((out (assoc-ref outputs "out"))
6353 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
6354 (wrap-program (string-append out "/bin/eog")
6355 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6356 #t)))))
6357 (propagated-inputs
6358 `(("dconf" ,dconf)))
6359 (native-inputs
6360 `(("intltool" ,intltool)
6361 ("itstool" ,itstool)
6362 ("glib" ,glib "bin")
6363 ("gobject-introspection" ,gobject-introspection)
6364 ("pkg-config" ,pkg-config)
6365 ("xmllint" ,libxml2)))
6366 (inputs
6367 `(("gnome-desktop" ,gnome-desktop)
6368 ("shared-mime-info" ,shared-mime-info)
6369 ("adwaita-icon-theme" ,adwaita-icon-theme)
6370 ("exempi" ,exempi)
6371 ("lcms" ,lcms)
6372 ("libexif" ,libexif)
6373 ("libpeas" ,libpeas)
6374 ("libjpeg" ,libjpeg-turbo)
6375 ("librsvg" ,librsvg-next)
6376 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6377 ("gtk+" ,gtk+)))
6378 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
6379 (synopsis "GNOME image viewer")
6380 (description "Eye of GNOME is the GNOME image viewer. It
6381 supports image conversion, rotation, and slideshows.")
6382 (license license:gpl2+)))
6383
6384 (define-public eog-plugins
6385 ;; Note: EOG looks for its plugins (via libpeas) in ~/.local as well as
6386 ;; $DATA/lib/eog/plugins, where DATA is one of the entries in
6387 ;; $XDG_DATA_DIRS. Thus, for EOG to find these, you have to have
6388 ;; 'XDG_DATA_DIRS' appropriately set.
6389 (package
6390 (name "eog-plugins")
6391 (version "3.26.4")
6392 (source (origin
6393 (method url-fetch)
6394 (uri (string-append "mirror://gnome/sources/eog-plugins/"
6395 (version-major+minor version) "/"
6396 "eog-plugins-" version ".tar.xz"))
6397 (sha256
6398 (base32
6399 "0pd7fqa4ciy5844k5s1c6rlsqkk8pxd8cchxjcjhxlsngm9lynnx"))))
6400 (build-system gnu-build-system)
6401 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome/Plugins")
6402 (synopsis "Extensions for the Eye of GNOME image viewer")
6403 (native-inputs
6404 `(("pkg-config" ,pkg-config)
6405 ("gettext" ,gettext-minimal)))
6406 (inputs
6407 `(("eog" ,eog)
6408 ("glib" ,glib)
6409 ("gtk+" ,gtk+)
6410 ("libpeas" ,libpeas)
6411 ("libexif" ,libexif)
6412 ("libchamplain" ,libchamplain)))
6413 (description
6414 "This package provides plugins for the Eye of GNOME (EOG) image viewer,
6415 notably:
6416
6417 @itemize
6418 @item @dfn{EXIF Display}, which displays camera (EXIF) information;
6419 @item @dfn{Map}, which displays a map of where the picture was taken on the
6420 side panel;
6421 @item @dfn{Slideshow Shuffle}, to shuffle images in slideshow mode.
6422 @end itemize\n")
6423
6424 ;; XXX: eog-postasa-plugin-resources.c (which we don't build) contains a
6425 ;; long suspicious byte stream that goes to a
6426 ;; ".gresource.eog_postasa_plugin" ELF section.
6427 (license license:gpl2+)))
6428
6429 (define-public libgudev
6430 (package
6431 (name "libgudev")
6432 (version "232")
6433 (source (origin
6434 (method url-fetch)
6435 (uri (string-append "mirror://gnome/sources/" name "/"
6436 version "/" name "-" version ".tar.xz"))
6437 (sha256
6438 (base32
6439 "0q3qki451zzgdjazlgshsfzbbm0in40lyx7dyrag7kbkqnwv4k7f"))))
6440 (build-system gnu-build-system)
6441 (arguments
6442 '(#:configure-flags
6443 ;; umockdev depends on libgudev.
6444 (list "--disable-umockdev")))
6445 (native-inputs
6446 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6447 ("gobject-introspection" ,gobject-introspection)
6448 ("pkg-config" ,pkg-config)))
6449 (propagated-inputs
6450 `(("glib" ,glib))) ; required by gudev-1.0.pc
6451 (inputs
6452 `(("udev" ,eudev)))
6453 (home-page "https://wiki.gnome.org/Projects/libgudev")
6454 (synopsis "GObject bindings for libudev")
6455 (description
6456 "This library provides GObject bindings for libudev. It was originally
6457 part of udev-extras, then udev, then systemd. It's now a project on its own.")
6458 (license license:lgpl2.1+)))
6459
6460 (define-public gvfs
6461 (package
6462 (name "gvfs")
6463 (version "1.40.2")
6464 (source (origin
6465 (method url-fetch)
6466 (uri (string-append "mirror://gnome/sources/gvfs/"
6467 (version-major+minor version) "/"
6468 "gvfs-" version ".tar.xz"))
6469 (sha256
6470 (base32
6471 "07lpcfric3h0302n9b1pwa38mjb76r9s98kg2867y2d1qvzfivxx"))
6472 ;; This patch may be removed when upgrading to version 1.46.x.
6473 (patches
6474 (search-patches "gvfs-add-support-for-libplist-2.2.patch"))))
6475 (build-system meson-build-system)
6476 (arguments
6477 '(#:glib-or-gtk? #t
6478 #:configure-flags
6479 (list "-Dsystemduserunitdir=no"
6480 "-Dtmpfilesdir=no"
6481 ;; Otherwise, the RUNPATH will lack the final path component.
6482 (string-append "-Dc_link_args=-Wl,-rpath="
6483 (assoc-ref %outputs "out") "/lib/gvfs"))))
6484 (native-inputs
6485 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6486 ("gettext" ,gettext-minimal)
6487 ("gtk-doc" ,gtk-doc)
6488 ("pkg-config" ,pkg-config)
6489 ("xsltproc" ,libxslt)))
6490 (inputs
6491 `(("avahi" ,avahi)
6492 ("docbook-xml" ,docbook-xml-4.2)
6493 ("docbook-xsl" ,docbook-xsl)
6494 ("dbus" ,dbus)
6495 ("elogind" ,elogind)
6496 ("fuse" ,fuse)
6497 ("gcr" ,gcr)
6498 ("glib" ,glib)
6499 ("gnome-online-accounts" ,gnome-online-accounts)
6500 ("libarchive" ,libarchive)
6501 ("libbluray" ,libbluray)
6502 ("libcap" ,libcap)
6503 ("libcdio-paranoia" ,libcdio-paranoia)
6504 ("libgcrypt" ,libgcrypt)
6505 ("libgdata" ,libgdata)
6506 ("libgphoto2" ,libgphoto2)
6507 ("libgudev" ,libgudev)
6508 ("libimobiledevice" ,libimobiledevice)
6509 ("libmtp" ,libmtp)
6510 ("libnfs" ,libnfs)
6511 ("libsecret" ,libsecret)
6512 ("libsmbclient" ,samba)
6513 ("libsoup" ,libsoup)
6514 ("libxml2" ,libxml2)
6515 ("openssh" ,openssh)
6516 ("polkit" ,polkit)
6517 ("udisks" ,udisks)))
6518 ;; CVE-2019-{12447,12448,12449} are fixed in the 1.40.2 release.
6519 (properties '((lint-hidden-cve . ("CVE-2019-12447"
6520 "CVE-2019-12448"
6521 "CVE-2019-12449"))))
6522 (home-page "https://wiki.gnome.org/gvfs/")
6523 (synopsis "Userspace virtual file system for GIO")
6524 (description
6525 "GVFS is a userspace virtual file system designed to work with the I/O
6526 abstraction of GIO. It contains a GIO module that seamlessly adds GVFS support
6527 to all applications using the GIO API. It also supports exposing the GVFS
6528 mounts to non-GIO applications using FUSE.
6529
6530 GVFS comes with a set of backends, including trash support, SFTP, SMB, HTTP,
6531 DAV, and others.")
6532 (license license:lgpl2.0+)))
6533
6534 (define-public gusb
6535 (package
6536 (name "gusb")
6537 (version "0.3.5")
6538 (source (origin
6539 (method git-fetch)
6540 (uri (git-reference
6541 (url "https://github.com/hughsie/libgusb")
6542 (commit version)))
6543 (file-name (git-file-name name version))
6544 (sha256
6545 (base32
6546 "0ifhdqhpyxwsg0z9s1anj7cf5pya5qsqyp5ksh9n7mqwa4lrjkl8"))))
6547 (build-system meson-build-system)
6548 (native-inputs
6549 `(("gobject-introspection" ,gobject-introspection)
6550 ("pkg-config" ,pkg-config)
6551 ("vala" ,vala)
6552 ("gtk-doc" ,gtk-doc)))
6553 (propagated-inputs
6554 ;; Both of these are required by gusb.pc.
6555 `(("glib" ,glib)
6556 ("libusb" ,libusb)))
6557 (arguments
6558 `(#:tests? #f)) ;libusb fails to initialize. Wonder what that is.
6559 (home-page "https://github.com/hughsie/libgusb")
6560 (synopsis "GLib binding for libusb1")
6561 (description
6562 "GUsb is a GObject wrapper for libusb1 that makes it easy to do
6563 asynchronous control, bulk and interrupt transfers with proper cancellation
6564 and integration into a mainloop. This makes it easy to integrate low level
6565 USB transfers with your high-level application or system daemon.")
6566 (license license:lgpl2.1+)))
6567
6568 (define-public simple-scan
6569 (package
6570 (name "simple-scan")
6571 (version "3.38.2")
6572 (source
6573 (origin
6574 (method url-fetch)
6575 (uri (string-append "mirror://gnome/sources/simple-scan/"
6576 (version-major+minor version) "/"
6577 "simple-scan-" version ".tar.xz"))
6578 (sha256
6579 (base32 "02sdkhxgr6i7iy481h4xavgaqd0a5dlsipzwrm4qd242jrr813d8"))))
6580 (build-system meson-build-system)
6581 ;; TODO: Fix icons in home screen, About dialogue, and scan menu.
6582 (arguments
6583 '(#:glib-or-gtk? #t))
6584 (inputs
6585 `(("gtk" ,gtk+)
6586 ("zlib" ,zlib)
6587 ("cairo" ,cairo)
6588 ("colord" ,colord)
6589 ("gdk-pixbuf" ,gdk-pixbuf)
6590 ("gusb" ,gusb)
6591 ("libsane" ,sane-backends)))
6592 (native-inputs
6593 `(("gettext" ,gettext-minimal)
6594 ("itstool" ,itstool)
6595 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
6596 ("pkg-config" ,pkg-config)
6597 ("vala" ,vala)
6598 ("xmllint" ,libxml2)))
6599 (home-page "https://gitlab.gnome.org/GNOME/simple-scan")
6600 (synopsis "Document and image scanner")
6601 (description
6602 "Document Scanner is an easy-to-use application that lets you connect your
6603 scanner and quickly capture images and documents in an appropriate format. It
6604 supports any scanner for which a suitable SANE driver is available, which is
6605 almost all of them.")
6606 (license license:gpl3+)))
6607
6608 (define-public eolie
6609 (package
6610 (name "eolie")
6611 (version "0.9.101")
6612 (source (origin
6613 (method url-fetch)
6614 (uri (string-append "https://adishatz.org/eolie/eolie-"
6615 version ".tar.xz"))
6616 (sha256
6617 (base32
6618 "1v8n21y75abdzsnx5idyd0q6yfb6cd0sqbknlbkwh5fdgvjzyvwn"))))
6619 (build-system meson-build-system)
6620 (arguments
6621 `(#:glib-or-gtk? #t
6622 #:phases
6623 (modify-phases %standard-phases
6624 (add-after 'unpack 'skip-gtk-update-icon-cache
6625 ;; Don't create 'icon-theme.cache'.
6626 (lambda _
6627 (substitute* "meson_post_install.py"
6628 (("gtk-update-icon-cache") "true"))
6629 #t))
6630 (add-after 'wrap 'wrap-more
6631 (lambda* (#:key inputs outputs #:allow-other-keys)
6632 (let* ((out (assoc-ref outputs "out"))
6633 ;; These libraries must be on LD_LIBRARY_PATH.
6634 (libs '("gtkspell3" "webkitgtk" "libsoup" "libsecret"
6635 "atk" "gtk+" "gsettings-desktop-schemas"
6636 "gobject-introspection"))
6637 (path (string-join
6638 (map (lambda (lib)
6639 (string-append (assoc-ref inputs lib) "/lib"))
6640 libs)
6641 ":")))
6642 (wrap-program (string-append out "/bin/eolie")
6643 `("LD_LIBRARY_PATH" ":" prefix (,path))
6644 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
6645 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
6646 #t)))))
6647 (native-inputs
6648 `(("intltool" ,intltool)
6649 ("itstool" ,itstool)
6650 ("pkg-config" ,pkg-config)
6651 ("python" ,python)
6652 ("glib:bin" ,glib "bin")))
6653 (inputs
6654 `(("gobject-introspection" ,gobject-introspection)
6655 ("glib-networking" ,glib-networking)
6656 ("cairo" ,cairo)
6657 ("gtk+" ,gtk+)
6658 ("atk" ,atk) ; propagated by gtk+, but we need it in LD_LIBRARY_PATH
6659 ("python" ,python-wrapper)
6660 ("python-dateutil" ,python-dateutil)
6661 ("python-pyfxa" ,python-pyfxa)
6662 ("python-pygobject" ,python-pygobject)
6663 ("python-pycairo" ,python-pycairo)
6664 ("python-pycrypto" ,python-pycrypto)
6665 ("libsecret" ,libsecret)
6666 ("gtkspell3" ,gtkspell3)
6667 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6668 ("webkitgtk" ,webkitgtk)))
6669 (home-page "https://wiki.gnome.org/Apps/Eolie")
6670 (synopsis "Web browser for GNOME")
6671 (description
6672 "Eolie is a new web browser for GNOME. It features Firefox sync support,
6673 a secret password store, an adblocker, and a modern UI.")
6674 (license license:gpl3+)))
6675
6676 (define-public epiphany
6677 (package
6678 (name "epiphany")
6679 (version "3.34.4")
6680 (source (origin
6681 (method url-fetch)
6682 (uri (string-append "mirror://gnome/sources/epiphany/"
6683 (version-major+minor version) "/"
6684 "epiphany-" version ".tar.xz"))
6685 (sha256
6686 (base32
6687 "13ar3s40cds1rplwbzx0fzigf120w0rydiv05r3k6zpc0zy91qb0"))))
6688
6689 (build-system meson-build-system)
6690 (arguments
6691 '(#:glib-or-gtk? #t
6692 #:phases
6693 (modify-phases %standard-phases
6694 (add-after 'unpack 'skip-gtk-update-icon-cache
6695 ;; Don't create 'icon-theme.cache'.
6696 (lambda _
6697 (substitute* "post_install.py"
6698 (("gtk-update-icon-cache") "true"))
6699 #t))
6700 (add-after 'unpack 'disable-failing-tests
6701 (lambda _
6702 (substitute* "tests/meson.build"
6703 ;; embed_shell fails, because webkitgtk apparently no longer supports
6704 ;; overriding the ftp schema
6705 ;; web_app_utils fails due to missing network access
6706 (("(embed_shell|web_app_utils)_test,")
6707 "find_program('sh'), args: ['-c', 'exit 77'],"))
6708 #t))
6709 (add-before 'check 'pre-check
6710 (lambda _
6711 ;; Tests require a running X server.
6712 (system "Xvfb :1 &")
6713 (setenv "DISPLAY" ":1")
6714 #t)))
6715 #:configure-flags
6716 ;; Otherwise, the RUNPATH will lack the final 'epiphany' path component.
6717 (list (string-append "-Dc_link_args=-Wl,-rpath="
6718 (assoc-ref %outputs "out") "/lib/epiphany"))))
6719 (propagated-inputs
6720 `(("dconf" ,dconf)))
6721 (native-inputs
6722 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6723 ("glib:bin" ,glib "bin") ; for glib-mkenums
6724 ("intltool" ,intltool)
6725 ("itstool" ,itstool)
6726 ("pkg-config" ,pkg-config)
6727 ("xmllint" ,libxml2)
6728 ("xorg-server" ,xorg-server-for-tests)))
6729 (inputs
6730 `(("avahi" ,avahi)
6731 ("gcr" ,gcr)
6732 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg) ; for loading SVG files
6733 ("glib-networking" ,glib-networking)
6734 ("gnome-desktop" ,gnome-desktop)
6735 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6736 ("json-glib" ,json-glib)
6737 ("iso-codes" ,iso-codes)
6738 ("libdazzle" ,libdazzle)
6739 ("libnotify" ,libnotify)
6740 ("libsecret" ,libsecret)
6741 ("libxslt" ,libxslt)
6742 ("nettle" ,nettle) ; for hogweed
6743 ("sqlite" ,sqlite)
6744 ("webkitgtk" ,webkitgtk)))
6745 (home-page "https://wiki.gnome.org/Apps/Web")
6746 (synopsis "GNOME web browser")
6747 (description
6748 "Epiphany is a GNOME web browser targeted at non-technical users. Its
6749 principles are simplicity and standards compliance.")
6750 (license license:gpl2+)))
6751
6752 (define-public d-feet
6753 (package
6754 (name "d-feet")
6755 (version "0.3.14")
6756 (source (origin
6757 (method url-fetch)
6758 (uri (string-append "mirror://gnome/sources/" name "/"
6759 (version-major+minor version) "/"
6760 name "-" version ".tar.xz"))
6761 (sha256
6762 (base32
6763 "1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f"))))
6764 (build-system glib-or-gtk-build-system)
6765 (arguments
6766 '(#:out-of-source? #f ; tests need to run in the source directory.
6767 #:phases
6768 (modify-phases %standard-phases
6769 (add-before
6770 'check 'pre-check
6771 (lambda _
6772 ;; The test suite requires a running X server.
6773 (system "Xvfb :1 &")
6774 (setenv "DISPLAY" ":1")
6775 ;; Don't fail on missing '/etc/machine-id'.
6776 (setenv "DBUS_FATAL_WARNINGS" "0")
6777 ;; tests.py and window.py don't meet E402:
6778 ;; E402 module level import not at top of file
6779 (substitute* "src/tests/Makefile"
6780 (("--ignore=E123") "--ignore=E123,E402"))
6781 #t))
6782 (add-after
6783 'install 'wrap-program
6784 (lambda* (#:key outputs #:allow-other-keys)
6785 (let ((prog (string-append (assoc-ref outputs "out")
6786 "/bin/d-feet")))
6787 (wrap-program prog
6788 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
6789 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
6790 #t))))))
6791 (native-inputs
6792 `(("intltool" ,intltool)
6793 ("itstool" ,itstool)
6794 ("pkg-config" ,pkg-config)
6795 ("python-pep8" ,python-pep8)
6796 ("xmllint" ,libxml2)
6797 ("xorg-server" ,xorg-server-for-tests)))
6798 (inputs
6799 `(("gobject-introspection" ,gobject-introspection)
6800 ("gtk+" ,gtk+)
6801 ("python" ,python-wrapper)
6802 ("hicolor-icon-theme" ,hicolor-icon-theme)
6803 ("python-pygobject" ,python-pygobject)))
6804 (home-page "https://wiki.gnome.org/Apps/DFeet")
6805 (synopsis "D-Bus debugger")
6806 (description
6807 "D-Feet is a D-Bus debugger, which can be used to inspect D-Bus interfaces
6808 of running programs and invoke methods on those interfaces.")
6809 (license license:gpl2+)))
6810
6811 (define-public yelp-xsl
6812 (package
6813 (name "yelp-xsl")
6814 (version "3.34.2")
6815 (source
6816 (origin
6817 (method url-fetch)
6818 (uri
6819 (string-append "mirror://gnome/sources/" name "/"
6820 (version-major+minor version) "/"
6821 name "-" version ".tar.xz"))
6822 (sha256
6823 (base32 "1bdpgkzawhqmw52l6zx8czzg1ndfgcf1p44m2bxjdpqkc4afcgqc"))))
6824 (build-system gnu-build-system)
6825 (native-inputs
6826 `(("gettext-minimal" ,gettext-minimal)
6827 ("itstool" ,itstool)
6828 ("xmllint" ,libxml2)))
6829 (synopsis "XSL stylesheets for Yelp")
6830 (description "Yelp-XSL is a collection of programs and data files to help
6831 you build, maintain, and distribute documentation. It provides XSLT stylesheets
6832 that can be built upon for help viewers and publishing systems. These
6833 stylesheets output JavaScript and CSS content, and reference images
6834 provided by yelp-xsl. It also redistributes copies of the jQuery and
6835 jQuery.Syntax JavaScript libraries.")
6836 (home-page "https://wiki.gnome.org/Apps/Yelp")
6837 (license
6838 (list
6839 ;; XSLT
6840 license:gpl2+
6841 ;; Images
6842 license:lgpl2.1+
6843 ;; JavaScript
6844 license:expat))))
6845
6846 (define-public yelp
6847 (package
6848 (name "yelp")
6849 (version "3.32.2")
6850 (source (origin
6851 (method url-fetch)
6852 (uri (string-append "mirror://gnome/sources/" name "/"
6853 (version-major+minor version) "/"
6854 name "-" version ".tar.xz"))
6855 (sha256
6856 (base32
6857 "0yrl96icmmrxvg7sxl519gzg9qb368cmzgrr9ddh181ignkxzx7f"))))
6858 (build-system glib-or-gtk-build-system)
6859 (native-inputs
6860 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6861 ("intltool" ,intltool)
6862 ("itstool" ,itstool)
6863 ("pkg-config" ,pkg-config)))
6864 (propagated-inputs
6865 `(("dconf" ,dconf)))
6866 (inputs
6867 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6868 ("libxslt" ,libxslt)
6869 ("sqlite" ,sqlite)
6870 ("webkitgtk" ,webkitgtk)
6871 ("yelp-xsl" ,yelp-xsl)))
6872 (home-page "https://wiki.gnome.org/Apps/Yelp")
6873 (synopsis "GNOME help browser")
6874 (description
6875 "Yelp is the help viewer in Gnome. It natively views Mallard, DocBook,
6876 man, info, and HTML documents. It can locate documents according to the
6877 freedesktop.org help system specification.")
6878 (license license:gpl2+)))
6879
6880 (define-public yelp-tools
6881 (package
6882 (name "yelp-tools")
6883 (version "3.32.2")
6884 (source
6885 (origin
6886 (method url-fetch)
6887 (uri
6888 (string-append "mirror://gnome/sources/" name "/"
6889 (version-major+minor version) "/"
6890 name "-" version ".tar.xz"))
6891 (sha256
6892 (base32 "1yg8f5g5wadhmy4yfd9yjhvd8vll4gq4l86ibp0b42qbxnsmcf0q"))))
6893 (build-system gnu-build-system)
6894 (native-inputs
6895 `(("pkg-config" ,pkg-config)))
6896 (inputs
6897 `(("yelp-xsl" ,yelp-xsl)))
6898 (propagated-inputs
6899 ;; Needed by `yelp-build', `yelp-check' or 'yelp.m4'.
6900 `(("itstool" ,itstool)
6901 ("xmllint" ,libxml2)
6902 ("xsltproc" ,libxslt)))
6903 (synopsis "Yelp documentation tools")
6904 (description
6905 "Yelp-tools is a collection of scripts and build utilities to help create,
6906 manage, and publish documentation for Yelp and the web. Most of the heavy
6907 lifting is done by packages like yelp-xsl and itstool. This package just
6908 wraps things up in a developer-friendly way.")
6909 (home-page "https://wiki.gnome.org/Apps/Yelp/Tools")
6910 (license license:gpl2+)))
6911
6912 (define-public libgee
6913 (package
6914 (name "libgee")
6915 (version "0.20.3")
6916 (source (origin
6917 (method url-fetch)
6918 (uri (string-append "mirror://gnome/sources/libgee/"
6919 (version-major+minor version) "/"
6920 "libgee-" version ".tar.xz"))
6921 (sha256
6922 (base32
6923 "1pm525wm11dhwz24m8bpcln9547lmrigl6cxf3qsbg4cr3pyvdfh"))))
6924 (build-system gnu-build-system)
6925 (arguments
6926 `(#:phases
6927 (modify-phases %standard-phases
6928 (add-after 'unpack 'fix-introspection-install-dir
6929 (lambda* (#:key outputs #:allow-other-keys)
6930 (let ((out (assoc-ref outputs "out")))
6931 (substitute* "gee/Makefile.in"
6932 (("@INTROSPECTION_GIRDIR@")
6933 (string-append out "/share/gir-1.0/"))
6934 (("@INTROSPECTION_TYPELIBDIR@")
6935 (string-append out "/lib/girepository-1.0/")))))))))
6936 (native-inputs
6937 `(("glib" ,glib "bin")
6938 ("pkg-config" ,pkg-config)))
6939 (inputs
6940 `(("glib" ,glib)
6941 ("gobject-introspection" ,gobject-introspection)))
6942 (home-page "https://wiki.gnome.org/Projects/Libgee")
6943 (synopsis "GObject collection library")
6944 (description
6945 "Libgee is a utility library providing GObject-based interfaces and
6946 classes for commonly used data structures.")
6947 (license license:lgpl2.1+)))
6948
6949 (define-public gexiv2
6950 (package
6951 (name "gexiv2")
6952 (version "0.12.2")
6953 (source (origin
6954 (method url-fetch)
6955 (uri (string-append "mirror://gnome/sources/" name "/"
6956 (version-major+minor version) "/"
6957 name "-" version ".tar.xz"))
6958 (sha256
6959 (base32
6960 "0k4ljzzz5dwqndw8awvlw3ala8rh3b2rk9i4jzvywc53mi9ba8i3"))))
6961 (build-system meson-build-system)
6962 (native-inputs
6963 `(("gcr" ,gcr)
6964 ("glib" ,glib "bin")
6965 ("pkg-config" ,pkg-config)
6966 ("vala" ,vala)))
6967 (propagated-inputs
6968 ;; Listed in "Requires" section of gexiv2.pc
6969 `(("exiv2" ,exiv2)))
6970 (inputs
6971 `(("glib" ,glib)
6972 ("gobject-introspection" ,gobject-introspection)))
6973 (home-page "https://wiki.gnome.org/Projects/gexiv2")
6974 (synopsis "GObject wrapper around the Exiv2 photo metadata library")
6975 (description
6976 "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library. It
6977 allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
6978 metadata in photo and video files of various formats.")
6979 (license license:gpl2+)))
6980
6981 (define-public shotwell
6982 (package
6983 (name "shotwell")
6984 (version "0.30.11")
6985 (source (origin
6986 (method url-fetch)
6987 (uri (string-append "mirror://gnome/sources/shotwell/"
6988 (version-major+minor version) "/"
6989 "shotwell-" version ".tar.xz"))
6990 (sha256
6991 (base32
6992 "12d26y40kjlv5x8f5g04wff33vh7mdjb8c41ydqbrwdip0jwy2n2"))))
6993 (build-system meson-build-system)
6994 (arguments
6995 '(#:glib-or-gtk? #t
6996 #:phases
6997 (modify-phases %standard-phases
6998 (add-after 'unpack 'skip-gtk-update-icon-cache
6999 (lambda _
7000 (substitute* "build-aux/meson/postinstall.py"
7001 (("gtk-update-icon-cache") (which "true"))
7002 (("update-desktop-database") (which "true")))
7003 #t)))))
7004 (propagated-inputs
7005 `(("dconf" ,dconf)))
7006 (native-inputs
7007 `(("gettext" ,gettext-minimal)
7008 ("glib:bin" ,glib "bin")
7009 ("itstool" ,itstool)
7010 ("pkg-config" ,pkg-config)
7011 ("vala" ,vala)))
7012 (inputs
7013 `(("gcr" ,gcr)
7014 ("gexiv2" ,gexiv2)
7015 ("gst-plugins-base" ,gst-plugins-base)
7016 ("gstreamer" ,gstreamer)
7017 ("json-glib" ,json-glib)
7018 ("libgdata" ,libgdata)
7019 ("libgee" ,libgee)
7020 ("libgphoto2" ,libgphoto2)
7021 ("libgudev" ,libgudev)
7022 ("libraw" ,libraw)
7023 ("libsoup" ,libsoup)
7024 ("libxml2" ,libxml2)
7025 ("sqlite" ,sqlite)
7026 ("webkitgtk" ,webkitgtk)))
7027 (home-page "https://wiki.gnome.org/Apps/Shotwell")
7028 (synopsis "Photo manager for GNOME 3")
7029 (description
7030 "Shotwell is a digital photo manager designed for the GNOME desktop
7031 environment. It allows you to import photos from disk or camera, organize
7032 them by keywords and events, view them in full-window or fullscreen mode, and
7033 share them with others via social networking and more.")
7034 (license license:lgpl2.1+)))
7035
7036 (define-public file-roller
7037 (package
7038 (name "file-roller")
7039 (version "3.38.0")
7040 (source (origin
7041 (method url-fetch)
7042 (uri (string-append "mirror://gnome/sources/file-roller/"
7043 (version-major+minor version) "/"
7044 "file-roller-" version ".tar.xz"))
7045 (sha256
7046 (base32
7047 "06ikvjjcgb8nxabkn2rywy76a1c7s6w8dszaxvaxldbxarp1qgbj"))))
7048 (build-system meson-build-system)
7049 (native-inputs
7050 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7051 ("intltool" ,intltool)
7052 ("itstool" ,itstool)
7053 ("pkg-config" ,pkg-config)
7054 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
7055 ("glib:bin" ,glib "bin")))
7056 ;; TODO: Add libnautilus.
7057 (inputs
7058 `(("gtk+" ,gtk+)
7059 ("gdk-pixbuf" ,gdk-pixbuf)
7060 ("json-glib" ,json-glib)
7061 ("libarchive" ,libarchive)
7062 ("libnotify" ,libnotify)
7063 ("nettle" ,nettle)
7064 ("libxml2" ,libxml2)))
7065 (synopsis "Graphical archive manager for GNOME")
7066 (description "File Roller is an archive manager for the GNOME desktop
7067 environment that allows users to view, unpack, and create compressed archives
7068 such as gzip tarballs.")
7069 (home-page "http://fileroller.sourceforge.net/")
7070 (license license:gpl2+)))
7071
7072 (define-public gnome-session
7073 (package
7074 (name "gnome-session")
7075 (version "3.34.2")
7076 (source (origin
7077 (method url-fetch)
7078 (uri (string-append "mirror://gnome/sources/" name "/"
7079 (version-major+minor version) "/"
7080 name "-" version ".tar.xz"))
7081 (sha256
7082 (base32
7083 "1qgqp97f8k2zi2ydvhds14zsjzfj7cv521r6wx5sw0qacn0p7dwb"))))
7084 (arguments
7085 '(#:glib-or-gtk? #t
7086 #:phases
7087 (modify-phases %standard-phases
7088 (add-before 'configure 'pre-configure
7089 (lambda* (#:key outputs #:allow-other-keys)
7090 ;; Use elogind instead of systemd.
7091 (substitute* "meson.build"
7092 (("libsystemd-login") "libelogind")
7093 (("and libsystemd_daemon_dep.found.*") ","))
7094 (substitute* "gnome-session/gsm-systemd.c"
7095 (("#include <systemd/sd-login.h>")
7096 "#include <elogind/sd-login.h>"))
7097 ;; Remove uses of the systemd daemon.
7098 (substitute* "gnome-session/gsm-autostart-app.c"
7099 (("#ifdef HAVE_SYSTEMD") "#if 0"))
7100 #t))
7101 (add-after 'install 'wrap-gnome-session
7102 (lambda* (#:key inputs outputs #:allow-other-keys)
7103 ;; Make sure 'gnome-session' finds the 'gsettings' program.
7104 (let ((glib (assoc-ref inputs "glib:bin"))
7105 (out (assoc-ref outputs "out")))
7106 (wrap-program (string-append out "/bin/gnome-session")
7107 `("PATH" ":" prefix (,(string-append glib "/bin"))))
7108 #t))))
7109
7110 #:configure-flags
7111 '("-Ddocbook=false" ; FIXME: disabled because of docbook validation error
7112 "-Dman=false" ; FIXME: disabled because of docbook validation error
7113 "-Dsystemd_journal=false")))
7114 (build-system meson-build-system)
7115 (native-inputs
7116 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7117 ("pkg-config" ,pkg-config)
7118 ("intltool" ,intltool)
7119 ("xsltproc" ,libxslt)
7120 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
7121 ("docbook-xsl" ,docbook-xsl)
7122 ("docbook-xml" ,docbook-xml)
7123 ("xmlto" ,xmlto)))
7124 (inputs
7125 `(("elogind" ,elogind)
7126 ("gnome-desktop" ,gnome-desktop)
7127 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7128 ("gtk+" ,gtk+)
7129 ("json-glib" ,json-glib)
7130 ("libsm" ,libsm)
7131 ("libxcomposite" ,libxcomposite)
7132 ("libxtst" ,libxtst)
7133 ("mesa" ,mesa)
7134 ("upower" ,upower)
7135 ("xtrans" ,xtrans)))
7136 (synopsis "Session manager for GNOME")
7137 (description
7138 "This package contains the GNOME session manager, as well as a
7139 configuration program to choose applications starting on login.")
7140 (home-page "https://wiki.gnome.org/Projects/SessionManagement")
7141 (license license:gpl2+)))
7142
7143 (define-public gjs
7144 (package
7145 (name "gjs")
7146 (version "1.58.3")
7147 (source (origin
7148 (method url-fetch)
7149 (uri (string-append "mirror://gnome/sources/" name "/"
7150 (version-major+minor version) "/"
7151 name "-" version ".tar.xz"))
7152 (sha256
7153 (base32
7154 "1bkksx362007zs8c31ydygb29spwa5g5kch1ad2grc2sp53wv7ya"))))
7155 (build-system gnu-build-system)
7156 (arguments
7157 '(#:phases
7158 (modify-phases %standard-phases
7159 (add-before
7160 'check 'pre-check
7161 (lambda _
7162 ;; The test suite requires a running X server.
7163 (system "Xvfb :1 &")
7164 (setenv "DISPLAY" ":1")
7165
7166 ;; For the missing /etc/machine-id.
7167 (setenv "DBUS_FATAL_WARNINGS" "0")
7168
7169 ;; Our mozjs-38 package does not compile the required Intl API
7170 ;; support for these failing tests.
7171 (substitute* "installed-tests/js/testLocale.js"
7172 ((".*toBeDefined.*") "")
7173 ((".*expect\\(datestr\\).*") ""))
7174 (substitute* "installed-tests/scripts/testCommandLine.sh"
7175 (("Valentín") "")
7176 (("☭") ""))
7177 #t)))))
7178 (native-inputs
7179 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
7180 ("pkg-config" ,pkg-config)
7181 ("xmllint" ,libxml2)
7182 ;; For testing
7183 ("dbus-launch" ,dbus)
7184 ("dconf" ,dconf) ; required to properly store settings
7185 ("uuidgen" ,util-linux)
7186 ("xvfb" ,xorg-server-for-tests)))
7187 (propagated-inputs
7188 ;; These are all in the Requires.private field of gjs-1.0.pc.
7189 `(("cairo" ,cairo)
7190 ("gobject-introspection" ,gobject-introspection)
7191 ("mozjs" ,mozjs-60)))
7192 (inputs
7193 `(("gtk+" ,gtk+)
7194 ("readline" ,readline)))
7195 (synopsis "Javascript bindings for GNOME")
7196 (home-page "https://live.gnome.org/Gjs")
7197 (description
7198 "Gjs is a javascript binding for GNOME. It's mainly based on spidermonkey
7199 javascript engine and the GObject introspection framework.")
7200 (license license:gpl2+)))
7201
7202 (define-public gedit
7203 (package
7204 (name "gedit")
7205 (version "3.34.1")
7206 (source (origin
7207 (method url-fetch)
7208 (uri (string-append "mirror://gnome/sources/" name "/"
7209 (version-major+minor version) "/"
7210 name "-" version ".tar.xz"))
7211 (sha256
7212 (base32
7213 "1inm50sdfw63by1lf4f1swb59mpyxlly0g5rdg99j5l3357fzygb"))))
7214 (build-system meson-build-system)
7215 (arguments
7216 `(#:glib-or-gtk? #t
7217 #:configure-flags
7218 ;; Otherwise, the RUNPATH will lack the final path component.
7219 (list (string-append "-Dc_link_args=-Wl,-rpath="
7220 (assoc-ref %outputs "out") "/lib/gedit"))
7221
7222 ;; XXX: Generated .h files are sometimes used before being built.
7223 #:parallel-build? #f
7224
7225 #:phases
7226 (modify-phases %standard-phases
7227 (add-after 'unpack 'skip-gtk-update-icon-cache
7228 ;; Don't create 'icon-theme.cache'.
7229 (lambda _
7230 (substitute* "build-aux/meson/post_install.py"
7231 (("gtk-update-icon-cache") (which "true")))
7232 #t))
7233 (add-after 'unpack 'patch-libgd-fetch
7234 (lambda* (#:key inputs #:allow-other-keys)
7235 (let ((libgd (assoc-ref inputs "libgd")))
7236 ;; Calling git is unnecessary because libgd is fetched as a
7237 ;; native input to this package.
7238 (substitute* "meson.build"
7239 ((".*git.*") ""))
7240 (copy-recursively libgd "subprojects/libgd")
7241 #t)))
7242 (add-after 'install 'wrap-gedit
7243 (lambda* (#:key inputs outputs #:allow-other-keys)
7244 (let ((out (assoc-ref outputs "out"))
7245 (gtksourceview (assoc-ref inputs "gtksourceview"))
7246 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
7247 (python-path (getenv "PYTHONPATH")))
7248 (wrap-program (string-append out "/bin/gedit")
7249 ;; For plugins.
7250 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
7251 `("PYTHONPATH" ":" prefix (,python-path))
7252 ;; For language-specs.
7253 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
7254 "/share")))))
7255 #t)))))
7256 (propagated-inputs
7257 `(("dconf" ,dconf)))
7258 (native-inputs
7259 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7260 ("intltool" ,intltool)
7261 ("itstool" ,itstool)
7262 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
7263 ("gobject-introspection" ,gobject-introspection)
7264 ("libgd"
7265 ,(origin
7266 (method git-fetch)
7267 (uri (git-reference
7268 (url "https://gitlab.gnome.org/GNOME/libgd")
7269 (commit "c7c7ff4e05d3fe82854219091cf116cce6b19de0")))
7270 (file-name (git-file-name "libgd" version))
7271 (sha256
7272 (base32 "16yld0ap7qj1n96h4f2sqkjmibg7xx5xwkqxdfzam2nmyfdlrrrs"))))
7273 ("pkg-config" ,pkg-config)))
7274 (inputs
7275 `(("glib" ,glib)
7276 ("gspell" ,gspell)
7277 ("gtk+" ,gtk+)
7278 ("gtksourceview" ,gtksourceview)
7279 ("libpeas" ,libpeas)
7280 ("libxml2" ,libxml2)
7281 ("iso-codes" ,iso-codes)
7282 ("python-pygobject" ,python-pygobject)
7283 ("python" ,python)
7284 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7285 ("libx11" ,libx11)
7286 ("vala" ,vala)
7287 ("adwaita-icon-theme" ,adwaita-icon-theme)
7288 ("libsoup" ,libsoup)
7289 ("gnome-desktop" ,gnome-desktop)))
7290 (home-page "https://wiki.gnome.org/Apps/Gedit")
7291 (synopsis "GNOME text editor")
7292 (description "While aiming at simplicity and ease of use, gedit is a
7293 powerful general purpose text editor.")
7294 (license license:gpl2+)))
7295
7296 (define-public zenity
7297 (package
7298 (name "zenity")
7299 (version "3.32.0")
7300 (source (origin
7301 (method url-fetch)
7302 (uri (string-append "mirror://gnome/sources/zenity/"
7303 (version-major+minor version) "/"
7304 "zenity-" version ".tar.xz"))
7305 (sha256
7306 (base32
7307 "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7"))))
7308 (build-system gnu-build-system)
7309 (native-inputs
7310 `(("gettext" ,gettext-minimal)
7311 ("itstool" ,itstool)
7312 ("pkg-config" ,pkg-config)))
7313 (inputs
7314 `(("libnotify" ,libnotify)
7315 ("webkitgtk" ,webkitgtk)))
7316 (synopsis "Display graphical dialog boxes from shell scripts")
7317 (home-page "https://www.gnome.org")
7318 (description
7319 "Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you
7320 to display dialog boxes from the commandline and shell scripts.")
7321 (license license:lgpl2.0+)))
7322
7323 (define-public mutter
7324 (package
7325 (name "mutter")
7326 (version "3.34.2")
7327 (source (origin
7328 (method url-fetch)
7329 (uri (string-append "mirror://gnome/sources/" name "/"
7330 (version-major+minor version) "/"
7331 name "-" version ".tar.xz"))
7332 (sha256
7333 (base32
7334 "0b8bz5kvs7rlwvqsg87cf6jhrrj95vgd1l235mjx8rip35ipfvrd"))))
7335 ;; NOTE: Since version 3.21.x, mutter now bundles and exports forked
7336 ;; versions of cogl and clutter. As a result, many of the inputs,
7337 ;; propagated-inputs, and configure flags used in cogl and clutter are
7338 ;; needed here as well.
7339 (build-system meson-build-system)
7340 (arguments
7341 '(;; XXX: All mutter tests fail with the following error:
7342 ;; Settings schema 'org.gnome.mutter' is not installed
7343 #:tests? #f
7344 #:glib-or-gtk? #t
7345 #:configure-flags
7346 ;; TODO: Enable profiler when Sysprof is packaged.
7347 (list "-Dprofiler=false"
7348 ;; Otherwise, the RUNPATH will lack the final path component.
7349 (string-append "-Dc_link_args=-Wl,-rpath="
7350 (assoc-ref %outputs "out") "/lib:"
7351 (assoc-ref %outputs "out") "/lib/mutter-5")
7352
7353 ;; The following flags are needed for the bundled clutter
7354 (string-append "-Dxwayland_path="
7355 (assoc-ref %build-inputs "xorg-server-xwayland")
7356 "/bin/Xwayland")
7357
7358 ;; the remaining flags are needed for the bundled cogl
7359 (string-append "-Dopengl_libname="
7360 (assoc-ref %build-inputs "mesa")
7361 "/lib/libGL.so"))
7362 #:phases (modify-phases %standard-phases
7363 (add-after 'unpack 'fix-build-with-mesa-20
7364 (lambda _
7365 ;; Mimic upstream commit a444a4c5f58ea516ad for
7366 ;; compatibility with Mesa 20. Remove for 3.36.
7367 (substitute* '("src/backends/meta-egl-ext.h"
7368 "src/backends/meta-egl.c"
7369 "src/backends/meta-egl.h")
7370 (("#include <EGL/eglext\\.h>" all)
7371 (string-append all "\n#include <EGL/eglmesaext.h>")))
7372 (substitute* "cogl/cogl/meson.build"
7373 (("#include <EGL/eglext\\.h>" all)
7374 (string-append all "\\n#include <EGL/eglmesaext.h>")))
7375 #t)))))
7376 (native-inputs
7377 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7378 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7379 ("gobject-introspection" ,gobject-introspection)
7380 ("intltool" ,intltool)
7381 ("pkg-config" ,pkg-config)
7382 ("xorg-server" ,xorg-server-for-tests)
7383 ;; For git build
7384 ("autoconf" ,autoconf)
7385 ("automake" ,automake)
7386 ("libtool" ,libtool)))
7387 (propagated-inputs
7388 `(;; libmutter.pc refers to these:
7389 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7390 ("gtk+" ,gtk+)
7391 ;; mutter-clutter-1.0.pc and mutter-cogl-1.0.pc refer to these:
7392 ("atk" ,atk)
7393 ("cairo" ,cairo)
7394 ("gdk-pixbuf" ,gdk-pixbuf)
7395 ("glib" ,glib)
7396 ("json-glib" ,json-glib)
7397 ("libinput" ,libinput)
7398 ("libx11" ,libx11)
7399 ("libxcomposite" ,libxcomposite)
7400 ("libxdamage" ,libxdamage)
7401 ("libxext" ,libxext)
7402 ("libxfixes" ,libxfixes)
7403 ("libxkbcommon" ,libxkbcommon)
7404 ("libxrandr" ,libxrandr)
7405 ("mesa" ,mesa)
7406 ("pango" ,pango)
7407 ("udev" ,eudev)
7408 ("xinput" ,xinput)))
7409 (inputs
7410 `(("elogind" ,elogind)
7411 ("gnome-desktop" ,gnome-desktop)
7412 ("gnome-settings-daemon" ,gnome-settings-daemon)
7413 ("libcanberra-gtk" ,libcanberra)
7414 ("libgudev" ,libgudev)
7415 ("libice" ,libice)
7416 ("libsm" ,libsm)
7417 ("libwacom" ,libwacom)
7418 ("libxkbfile" ,libxkbfile)
7419 ("libxrandr" ,libxrandr)
7420 ("libxtst" ,libxtst)
7421 ("pipewire" ,pipewire)
7422 ("startup-notification" ,startup-notification)
7423 ("upower-glib" ,upower)
7424 ("xkeyboard-config" ,xkeyboard-config)
7425 ("xorg-server-xwayland" ,xorg-server-xwayland)
7426 ("zenity" ,zenity)))
7427 (synopsis "Window and compositing manager")
7428 (home-page "https://www.gnome.org")
7429 (description
7430 "Mutter is a window and compositing manager that displays and manages your
7431 desktop via OpenGL. Mutter combines a sophisticated display engine using the
7432 Clutter toolkit with solid window-management logic inherited from the Metacity
7433 window manager.")
7434 (license license:gpl2+)))
7435
7436 (define-public gnome-online-accounts
7437 (package
7438 (name "gnome-online-accounts")
7439 (version "3.36.0")
7440 (source (origin
7441 (method url-fetch)
7442 (uri (string-append "mirror://gnome/sources/" name "/"
7443 (version-major+minor version) "/"
7444 name "-" version ".tar.xz"))
7445 (sha256
7446 (base32
7447 "0bigfi225g1prnxpb9lcc1i7mdcrkplwb05vilc43jik12cn53qw"))))
7448 (outputs '("out" "lib"))
7449 (build-system glib-or-gtk-build-system)
7450 (arguments
7451 `(#:configure-flags
7452 (list (string-append "--libdir=" (assoc-ref %outputs "out") "/lib"))
7453 #:phases
7454 (modify-phases %standard-phases
7455 (add-before 'configure 'patch-libgoa-output
7456 (lambda* (#:key outputs #:allow-other-keys)
7457 (let ((lib (assoc-ref outputs "lib")))
7458 (substitute* '("src/goa/Makefile.in" "src/goa/goa-1.0.pc.in")
7459 (("@prefix@") lib)
7460 (("@exec_prefix@") lib)
7461 (("@libdir@") (string-append lib "/lib"))
7462 (("@includedir@") (string-append lib "/include"))
7463 (("@datadir@") (string-append lib "/share")))
7464 ;; Make sure gobject-introspection knows about the output
7465 ;; too (see <https://bugs.gnu.org/36535>).
7466 (setenv "outputs" "out lib")
7467 #t))))))
7468 (native-inputs
7469 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7470 ("gobject-introspection" ,gobject-introspection)
7471 ("intltool" ,intltool)
7472 ("pkg-config" ,pkg-config)
7473 ("vala" ,vala)
7474 ("xsltproc" ,libxslt)))
7475 (propagated-inputs
7476 `(("glib" ,glib) ; required by goa-1.0.pc
7477 ("gtk+" ,gtk+))) ; required by goa-backend-1.0.pc
7478 (inputs
7479 `(("docbook-xsl" ,docbook-xsl)
7480 ("json-glib" ,json-glib)
7481 ("libsecret" ,libsecret)
7482 ("rest" ,rest)
7483 ("webkitgtk" ,webkitgtk)))
7484 (synopsis "Single sign-on framework for GNOME")
7485 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineAccounts")
7486 (description
7487 "GNOME Online Accounts provides interfaces so that applications and
7488 libraries in GNOME can access the user's online accounts. It has providers for
7489 Google, ownCloud, Facebook, Flickr, Windows Live, Pocket, Foursquare, Microsoft
7490 Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
7491 (license license:lgpl2.0+)))
7492
7493 (define-public evolution-data-server
7494 (package
7495 (name "evolution-data-server")
7496 (version "3.34.2")
7497 (source (origin
7498 (method url-fetch)
7499 (uri (string-append "mirror://gnome/sources/" name "/"
7500 (version-major+minor version) "/"
7501 name "-" version ".tar.xz"))
7502 (patches (search-patches "evolution-data-server-locales.patch"
7503 "evolution-data-server-libical-compat.patch"
7504 "evolution-data-server-CVE-2020-14928.patch"
7505 "evolution-data-server-CVE-2020-16117.patch"))
7506 (sha256
7507 (base32
7508 "16z85y6hhazcrp5ngw47w4x9r0j8zrj7awv5im58hhp0xs19zf1y"))))
7509 (build-system cmake-build-system)
7510 (arguments
7511 '(#:configure-flags
7512 (let* ((lib (string-append (assoc-ref %outputs "out") "/lib"))
7513 (runpaths (map (lambda (s)
7514 (string-append lib "/evolution-data-server/" s))
7515 '("addressbook-backends" "calendar-backends"
7516 "camel-providers" "credential-modules"
7517 "registry-modules"))))
7518 (list "-DENABLE_UOA=OFF" ;disable Ubuntu Online Accounts support
7519 "-DENABLE_GOOGLE=OFF" ;disable Google Contacts support
7520 "-DENABLE_GOOGLE_AUTH=OFF" ;disable Google authentication
7521 "-DENABLE_VALA_BINDINGS=ON"
7522 (string-append "-DCMAKE_INSTALL_RPATH=" lib ";"
7523 (string-append lib "/evolution-data-server;")
7524 (string-join runpaths ";"))
7525 "-DENABLE_INTROSPECTION=ON")) ;required for Vala bindings
7526 #:phases
7527 (modify-phases %standard-phases
7528 (add-after 'unpack 'disable-failing-tests
7529 (lambda _
7530 ;; tests/book-migration/test-migration.c:160:test_fetch_contacts:
7531 ;; assertion failed (g_slist_length (contacts) == 20): (0 == 20)
7532 (delete-file-recursively "tests/book-migration")
7533 (substitute* "tests/CMakeLists.txt"
7534 (("add_subdirectory\\(book-migration\\)") ""))
7535 #t))
7536 (add-after 'unpack 'patch-paths
7537 (lambda _
7538 (substitute* '("tests/test-server-utils/e-test-server-utils.c"
7539 "tests/libedata-book/data-test-utils.c"
7540 "tests/libedata-book/test-book-cache-utils.c"
7541 "tests/libedata-cal/test-cal-cache-utils.c")
7542 (("/bin/rm") (which "rm")))
7543 #t))
7544 (add-before 'configure 'dont-override-rpath
7545 (lambda _
7546 (substitute* "CMakeLists.txt"
7547 ;; CMakeLists.txt hard-codes runpath to just the libdir.
7548 ;; Remove it so the configure flag is respected.
7549 (("SET\\(CMAKE_INSTALL_RPATH .*") ""))
7550 #t)))))
7551 (native-inputs
7552 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
7553 ("gobject-introspection" ,gobject-introspection)
7554 ("gperf" ,gperf)
7555 ("intltool" ,intltool)
7556 ("pkg-config" ,pkg-config)
7557 ("vala" ,vala)
7558 ("python" ,python-wrapper)))
7559 (propagated-inputs
7560 ;; These are all in the Requires field of .pc files.
7561 `(("gtk+" ,gtk+)
7562 ("libical" ,libical)
7563 ("libsecret" ,libsecret)
7564 ("libsoup" ,libsoup)
7565 ("nss" ,nss)
7566 ("sqlite" ,sqlite)))
7567 (inputs
7568 `(("bdb" ,bdb)
7569 ("gcr" ,gcr)
7570 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
7571 ("json-glib" ,json-glib)
7572 ("libcanberra" ,libcanberra)
7573 ("libgweather" ,libgweather)
7574 ("mit-krb5" ,mit-krb5)
7575 ("openldap" ,openldap)
7576 ("webkitgtk" ,webkitgtk)))
7577 (synopsis "Store address books and calendars")
7578 (home-page "https://wiki.gnome.org/Apps/Evolution")
7579 (description
7580 "This package provides a unified backend for programs that work with
7581 contacts, tasks, and calendar information. It was originally developed for
7582 Evolution (hence the name), but is now used by other packages as well.")
7583 (license license:lgpl2.0)))
7584
7585 (define-public caribou
7586 (package
7587 (name "caribou")
7588 (version "0.4.21")
7589 (source (origin
7590 (method url-fetch)
7591 (uri (string-append "mirror://gnome/sources/" name "/"
7592 (version-major+minor version) "/"
7593 name "-" version ".tar.xz"))
7594 (sha256
7595 (base32
7596 "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
7597 (build-system glib-or-gtk-build-system)
7598 (arguments
7599 '(#:phases
7600 (modify-phases %standard-phases
7601 (add-before
7602 'build 'pre-build
7603 (lambda* (#:key outputs #:allow-other-keys)
7604 (let ((out (assoc-ref outputs "out")))
7605 ;; Use absolute shared library path in Caribou-1.0.typelib.
7606 (substitute* "libcaribou/Makefile"
7607 (("--shared-library=libcaribou.so")
7608 (string-append "--shared-library="
7609 out "/lib/libcaribou.so")))
7610 #t)))
7611 (add-after 'install 'wrap-programs
7612 (lambda* (#:key outputs #:allow-other-keys)
7613 (let* ((out (assoc-ref outputs "out"))
7614 (python-path (getenv "PYTHONPATH"))
7615 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7616 (for-each
7617 (lambda (prog)
7618 (wrap-program prog
7619 `("PYTHONPATH" ":" prefix (,python-path))
7620 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7621 (list (string-append out "/bin/caribou-preferences")
7622 (string-append out "/libexec/antler-keyboard"))))
7623 #t)))))
7624 (native-inputs
7625 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7626 ("gobject-introspection" ,gobject-introspection)
7627 ("intltool" ,intltool)
7628 ("pkg-config" ,pkg-config)
7629 ("python" ,python)
7630 ("vala" ,vala)
7631 ("xsltproc" ,libxslt)))
7632 (propagated-inputs
7633 ;; caribou-1.0.pc refers to all these.
7634 `(("libgee" ,libgee)
7635 ("libxklavier" ,libxklavier)
7636 ("libxtst" ,libxtst)
7637 ("gtk+" ,gtk+)))
7638 (inputs
7639 `(("clutter" ,clutter)
7640 ("dconf" ,dconf)
7641 ("gtk+-2" ,gtk+-2)
7642 ("python-pygobject" ,python-pygobject)))
7643 (synopsis "Text entry and UI navigation application")
7644 (home-page "https://wiki.gnome.org/Projects/Caribou")
7645 (description
7646 "Caribou is an input assistive technology intended for switch and pointer
7647 users.")
7648 (license license:lgpl2.1)))
7649
7650 (define-public network-manager
7651 (package
7652 (name "network-manager")
7653 (version "1.24.0")
7654 (source (origin
7655 (method url-fetch)
7656 (uri (string-append "mirror://gnome/sources/NetworkManager/"
7657 (version-major+minor version) "/"
7658 "NetworkManager-" version ".tar.xz"))
7659 (patches (search-patches "network-manager-plugin-path.patch"))
7660 (sha256
7661 (base32
7662 "06044fl60bjlj7c6rqqfbm5795h61h6yzp7ch392hzcnm46wwhn3"))
7663 (modules '((guix build utils)))
7664 (snippet
7665 '(begin
7666 (substitute* "src/devices/wwan/nm-modem-manager.c"
7667 (("systemd") "elogind"))
7668 #t))))
7669 (build-system meson-build-system)
7670 (outputs '("out"
7671 "doc")) ; 8 MiB of gtk-doc HTML
7672 (arguments
7673 `(#:configure-flags
7674 (let ((out (assoc-ref %outputs "out"))
7675 (dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
7676 "/sbin/dhclient")))
7677 (list
7678 ;; Otherwise, the RUNPATH will lack the final 'NetworkManager' path
7679 ;; component.
7680 (string-append "-Dc_link_args=-Wl,-rpath="
7681 out "/lib:"
7682 out "/lib/NetworkManager/" ,version)
7683 "-Dsystemd_journal=false"
7684 "-Dsession_tracking=elogind"
7685 "-Dsuspend_resume=elogind"
7686 "-Dsystemdsystemunitdir=no"
7687 "-Dsession_tracking_consolekit=false"
7688 "-Ddhcpcd=no"
7689 "-Ddhcpcanon=no"
7690 "-Dcrypto=gnutls"
7691 "-Diwd=true"
7692 "-Dlibaudit=yes"
7693 "-Dqt=false"
7694 "-Ddocs=true"
7695 "--sysconfdir=/etc"
7696 "--localstatedir=/var"
7697 (string-append "-Dudev_dir="
7698 out "/lib/udev")
7699 (string-append "-Ddbus_conf_dir="
7700 out "/etc/dbus-1/system.d")
7701
7702 (string-append "-Ddhclient=" dhclient)))
7703 #:phases
7704 (modify-phases %standard-phases
7705 (add-before 'configure 'pre-configure
7706 (lambda _
7707 ;; These tests try to test aspects of network-manager's
7708 ;; functionality within restricted containers, but they don't
7709 ;; cope with being already in the Guix build jail as that jail
7710 ;; lacks some features that they would like to proxy over (like
7711 ;; a /sys mount).
7712 (substitute* "src/platform/tests/meson.build"
7713 ((".*test-address-linux.*") "")
7714 ((".*test-cleanup-linux.*") "")
7715 ((".*test-link-linux.*") "")
7716 ((".*test-route-linux.*") ""))
7717 (substitute* "src/devices/tests/meson.build"
7718 ((".*test-acd.*") "")
7719 ((".*test-lldp.*") ""))
7720 #t))
7721 (add-after 'unpack 'patch-docbook-xml
7722 (lambda* (#:key inputs #:allow-other-keys)
7723 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
7724 "/xml/dtd/docbook")))
7725 (substitute* (find-files "." ".*\\.(xsl|xml)")
7726 (("http://.*/docbookx\\.dtd")
7727 (string-append xmldoc "/docbookx.dtd")))
7728 #t)))
7729 (add-before 'check 'pre-check
7730 (lambda _
7731 ;; For the missing /etc/machine-id.
7732 (setenv "DBUS_FATAL_WARNINGS" "0")
7733 #t))
7734 (add-before 'install 'no-polkit-magic
7735 ;; Meson ‘magically’ invokes pkexec, which fails (not setuid).
7736 (lambda _
7737 (setenv "PKEXEC_UID" "something")
7738 #t))
7739 (add-after 'install 'move-doc
7740 (lambda* (#:key outputs #:allow-other-keys)
7741 (let ((out (assoc-ref outputs "out"))
7742 (doc (assoc-ref outputs "doc")))
7743 (mkdir-p (string-append doc "/share"))
7744 (for-each (lambda (directory)
7745 (copy-recursively (string-append out directory)
7746 (string-append doc directory))
7747 (delete-file-recursively
7748 (string-append out directory)))
7749 '("/share/doc" "/share/gtk-doc"))
7750 #t))))))
7751 (propagated-inputs
7752 `(("glib" ,glib)))
7753 (native-inputs
7754 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
7755 ("gtk-doc" ,gtk-doc)
7756 ("gobject-introspection" ,gobject-introspection)
7757 ("docbook-xml" ,docbook-xml)
7758 ("docbook-xsl" ,docbook-xsl)
7759 ("intltool" ,intltool)
7760 ("libxslt" ,libxslt)
7761 ("libxml2" ,libxml2)
7762 ("pkg-config" ,pkg-config)
7763 ("vala" ,vala)
7764 ;; For testing.
7765 ("python" ,python-wrapper)
7766 ("python-dbus" ,python-dbus)
7767 ("python-pygobject" ,python-pygobject)))
7768 (inputs
7769 `(("curl" ,curl)
7770 ("cyrus-sasl" ,cyrus-sasl)
7771 ("dbus-glib" ,dbus-glib)
7772 ("dnsmasq" ,dnsmasq)
7773 ("eudev" ,eudev)
7774 ("gnutls" ,gnutls)
7775 ("iptables" ,iptables)
7776 ("isc-dhcp" ,isc-dhcp)
7777 ("iwd" ,iwd) ; wpa_supplicant alternative
7778 ("jansson" ,jansson)
7779 ("libaudit" ,audit)
7780 ("libgcrypt" ,libgcrypt)
7781 ("libgudev" ,libgudev)
7782 ("libndp" ,libndp)
7783 ("libnl" ,libnl)
7784 ("libsoup" ,libsoup)
7785 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)
7786 ("modem-manager" ,modem-manager)
7787 ("newt" ,newt) ;for the 'nmtui' console interface
7788 ("openresolv" ,openresolv) ; alternative resolv.conf manager
7789 ("polkit" ,polkit)
7790 ("ppp" ,ppp)
7791 ("readline" ,readline)
7792 ("util-linux" ,util-linux)
7793 ("elogind" ,elogind)))
7794 (synopsis "Network connection manager")
7795 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
7796 (description
7797 "NetworkManager is a system network service that manages your network
7798 devices and connections, attempting to keep active network connectivity when
7799 available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE
7800 devices, and provides VPN integration with a variety of different VPN
7801 services.")
7802 ;; “This NetworkManager project consists of the daemon, client tools, and
7803 ;; libnm. libnm is licensed LGPL-2.1+, while the rest is licensed under
7804 ;; GPL-2.0+.”
7805 (license (list license:gpl2+
7806 license:lgpl2.1+))
7807 (properties '((upstream-name . "NetworkManager")))))
7808
7809 (define-public network-manager-openvpn
7810 (package
7811 (name "network-manager-openvpn")
7812 (version "1.8.12")
7813 (source (origin
7814 (method url-fetch)
7815 (uri (string-append
7816 "mirror://gnome/sources/NetworkManager-openvpn/"
7817 (version-major+minor version)
7818 "/NetworkManager-openvpn-" version ".tar.xz"))
7819 (sha256
7820 (base32
7821 "062kh4zj7jfbwy4zzcwpq2m457bzbpm3l18s0ysnw3mgia3siz8f"))))
7822 (build-system gnu-build-system)
7823 (arguments
7824 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
7825 #:phases
7826 (modify-phases %standard-phases
7827 (add-after 'configure 'patch-path
7828 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7829 (let* ((ovpn (string-append (assoc-ref inputs "openvpn")
7830 "/sbin/openvpn"))
7831 (modprobe (string-append (assoc-ref inputs "kmod")
7832 "/bin/modprobe"))
7833 (pretty-ovpn (string-append "\"" ovpn "\"")))
7834 (for-each
7835 (lambda (file)
7836 (substitute* file
7837 (("\"/usr/local/sbin/openvpn\"") pretty-ovpn)
7838 (("\"/usr/sbin/openvpn\"") pretty-ovpn)
7839 (("\"/sbin/openvpn\"") pretty-ovpn)
7840 (("/sbin/modprobe") modprobe)))
7841 '("src/nm-openvpn-service.c" "properties/nm-openvpn-editor.c")))
7842 #t)))))
7843 (native-inputs
7844 `(("pkg-config" ,pkg-config)
7845 ("intltool" ,intltool)))
7846 (inputs
7847 `(("gtk+" ,gtk+)
7848 ("kmod" ,kmod)
7849 ("openvpn" ,openvpn)
7850 ("network-manager" ,network-manager)
7851 ("libnma" ,libnma)
7852 ("libsecret" ,libsecret)))
7853 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7854 (synopsis "OpenVPN plug-in for NetworkManager")
7855 (description
7856 "This extension of NetworkManager allows it to take care of connections
7857 to virtual private networks (VPNs) via OpenVPN.")
7858 (license license:gpl2+)
7859 (properties `((upstream-name . "NetworkManager-openvpn")))))
7860
7861 (define-public network-manager-vpnc
7862 (package
7863 (name "network-manager-vpnc")
7864 (version "1.2.6")
7865 (source (origin
7866 (method url-fetch)
7867 (uri (string-append
7868 "mirror://gnome/sources/NetworkManager-vpnc/"
7869 (version-major+minor version)
7870 "/NetworkManager-vpnc-" version ".tar.xz"))
7871 (sha256
7872 (base32
7873 "1js5lwcsqws4klgypfxl4ikmakv7v7xgddij1fj6b0y0qicx0kyy"))))
7874 (build-system gnu-build-system)
7875 (arguments
7876 `(#:configure-flags '("--enable-absolute-paths"
7877 "--localstatedir=/var"
7878 ;; libnm-glib has been removed from network-manager
7879 ;; 1de8383ad9fdfc8f552117e5d109bdfa7005634b
7880 "--with-libnm-glib=no")
7881 #:phases
7882 (modify-phases %standard-phases
7883 (add-after 'configure 'patch-path
7884 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7885 (let* ((vpnc (string-append (assoc-ref inputs "vpnc")
7886 "/sbin/vpnc"))
7887 (modprobe (string-append (assoc-ref inputs "kmod")
7888 "/bin/modprobe"))
7889 (pretty-ovpn (string-append "\"" vpnc "\"")))
7890 (substitute* "src/nm-vpnc-service.c"
7891 (("\"/usr/local/sbin/vpnc\"") pretty-ovpn)
7892 (("\"/usr/sbin/vpnc\"") pretty-ovpn)
7893 (("\"/sbin/vpnc\"") pretty-ovpn)
7894 (("/sbin/modprobe") modprobe)))
7895 #t)))))
7896 (native-inputs
7897 `(("pkg-config" ,pkg-config)
7898 ("intltool" ,intltool)))
7899 (inputs
7900 `(("gtk+" ,gtk+)
7901 ("kmod" ,kmod)
7902 ("vpnc" ,vpnc)
7903 ("network-manager" ,network-manager)
7904 ("libnma" ,libnma)
7905 ("libsecret" ,libsecret)))
7906 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7907 (synopsis "VPNC plug-in for NetworkManager")
7908 (description
7909 "Support for configuring virtual private networks based on VPNC.
7910 Compatible with Cisco VPN concentrators configured to use IPsec.")
7911 (license license:gpl2+)
7912 (properties `((upstream-name . "NetworkManager-vpnc")))))
7913
7914 (define-public network-manager-openconnect
7915 (package
7916 (name "network-manager-openconnect")
7917 (version "1.2.6")
7918 (source (origin
7919 (method url-fetch)
7920 (uri (string-append
7921 "mirror://gnome/sources/NetworkManager-openconnect/"
7922 (version-major+minor version)
7923 "/NetworkManager-openconnect-" version ".tar.xz"))
7924 (sha256
7925 (base32
7926 "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m"))))
7927 (build-system gnu-build-system)
7928 (arguments
7929 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
7930 #:phases
7931 (modify-phases %standard-phases
7932 (add-after 'configure 'patch-path
7933 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7934 (let* ((openconnect (string-append (assoc-ref inputs "openconnect")
7935 "/sbin/openconnect"))
7936 (modprobe (string-append (assoc-ref inputs "kmod")
7937 "/bin/modprobe"))
7938 (pretty-ovpn (string-append "\"" openconnect "\"")))
7939 (substitute* "src/nm-openconnect-service.c"
7940 (("\"/usr(/local)?/s?bin/openconnect\"") pretty-ovpn)
7941 (("/sbin/modprobe") modprobe)))
7942 #t)))))
7943 (native-inputs
7944 `(("intltool" ,intltool)
7945 ("libnma" ,libnma)
7946 ("pkg-config" ,pkg-config)))
7947 (inputs
7948 `(("gcr" ,gcr)
7949 ("gtk+" ,gtk+)
7950 ("kmod" ,kmod)
7951 ("libsecret" ,libsecret)
7952 ("libxml2" ,libxml2)
7953 ("lz4" ,lz4)
7954 ("network-manager" ,network-manager)
7955 ("openconnect" ,openconnect)))
7956 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7957 (synopsis "OpenConnect plug-in for NetworkManager")
7958 (description
7959 "This extension of NetworkManager allows it to take care of connections
7960 to @acronym{VPNs, virtual private networks} via OpenConnect, an open client for
7961 Cisco's AnyConnect SSL VPN.")
7962 (license license:gpl2+)
7963 (properties `((upstream-name . "NetworkManager-openconnect")
7964
7965 ;; The 'etc/dbus-1/system.d/nm-openconnect-service.conf'
7966 ;; file refers to account "nm-openconnect". Specify it here
7967 ;; so that 'network-manager-service-type' creates it.
7968 (user-accounts . ("nm-openconnect"))))))
7969
7970 (define-public mobile-broadband-provider-info
7971 (package
7972 (name "mobile-broadband-provider-info")
7973 (version "20190116")
7974 (source (origin
7975 (method url-fetch)
7976 (uri (string-append
7977 "mirror://gnome/sources/"
7978 "mobile-broadband-provider-info/" version "/"
7979 "mobile-broadband-provider-info-" version ".tar.xz"))
7980 (sha256
7981 (base32
7982 "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"))))
7983 (build-system gnu-build-system)
7984 (arguments
7985 `(#:tests? #f)) ; no tests
7986 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
7987 (synopsis "Database of broadband connection configuration")
7988 (description "Database of broadband connection configuration.")
7989 (license license:public-domain)))
7990
7991 (define-public network-manager-applet
7992 (package
7993 (name "network-manager-applet")
7994 (version "1.20.0")
7995 (source (origin
7996 (method url-fetch)
7997 (uri (string-append "mirror://gnome/sources/network-manager-applet/"
7998 (version-major+minor version) "/"
7999 "network-manager-applet-" version ".tar.xz"))
8000 (sha256
8001 (base32
8002 "0lsjkbv66hn7acl2pg9h6hz4b700zzv4cjwrwjvy7043blw0bcla"))))
8003 (build-system meson-build-system)
8004 (arguments
8005 '(#:glib-or-gtk? #t
8006 #:configure-flags
8007 '("-Dappindicator=yes")))
8008 (native-inputs
8009 `(("intltool" ,intltool)
8010 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
8011 ("gobject-introspection" ,gobject-introspection)
8012 ("gtk-doc" ,gtk-doc)
8013 ("pkg-config" ,pkg-config)))
8014 (propagated-inputs
8015 ;; libnm-gtk.pc refers to all these.
8016 `(("dbus-glib" ,dbus-glib)
8017 ("gtk+" ,gtk+)
8018 ("network-manager" ,network-manager)
8019 ;; nm-applet need by org.gnome.nm-applet.gschema.xml
8020 ("libnma" ,libnma)))
8021 (inputs
8022 `(("gcr" ,gcr)
8023 ("libappindicator" ,libappindicator)
8024 ("libgudev" ,libgudev)
8025 ("libnotify" ,libnotify)
8026 ("libsecret" ,libsecret)
8027 ("libselinux" ,libselinux)
8028 ("jansson" ,jansson) ; for team support
8029 ("modem-manager" ,modem-manager)))
8030 (synopsis "Applet for managing network connections")
8031 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
8032 (description
8033 "This package contains a systray applet for NetworkManager. It displays
8034 the available networks and allows users to easily switch between them.")
8035 (license license:gpl2+)))
8036
8037 (define-public libxml++
8038 (package
8039 (name "libxml++")
8040 (version "3.0.1")
8041 (source (origin
8042 (method url-fetch)
8043 (uri (string-append "mirror://gnome/sources/" name "/"
8044 (version-major+minor version) "/"
8045 name "-" version ".tar.xz"))
8046 (sha256
8047 (base32
8048 "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"))))
8049 (build-system gnu-build-system)
8050 ;; libxml++-3.0.pc refers to all these.
8051 (propagated-inputs
8052 `(("libxml2" ,libxml2)
8053 ("glibmm" ,glibmm)))
8054 (native-inputs
8055 `(("perl" ,perl)
8056 ("pkg-config" ,pkg-config)))
8057 (home-page "http://libxmlplusplus.sourceforge.net/")
8058 (synopsis "C++ wrapper for XML parser library libxml2")
8059 (description
8060 "This package provides a C++ wrapper for the XML parser library
8061 libxml2.")
8062 (license license:lgpl2.1+)))
8063
8064 (define-public libxml++-2
8065 (package
8066 (inherit libxml++)
8067 (name "libxml++")
8068 (version "2.40.1")
8069 (source (origin
8070 (method url-fetch)
8071 (uri (string-append "mirror://gnome/sources/" name "/"
8072 (version-major+minor version) "/"
8073 name "-" version ".tar.xz"))
8074 (sha256
8075 (base32
8076 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
8077
8078 (define-public gdm
8079 (package
8080 (name "gdm")
8081 (version "3.34.1")
8082 (source (origin
8083 (method url-fetch)
8084 (uri (string-append "mirror://gnome/sources/" name "/"
8085 (version-major+minor version) "/"
8086 name "-" version ".tar.xz"))
8087 (sha256
8088 (base32
8089 "1lyqvcwxhwxklbxn4xjswjzr6fhjix6h28mi9ypn34wdm9bzcpg8"))
8090 (patches (search-patches "gdm-default-session.patch"))))
8091 (build-system glib-or-gtk-build-system)
8092 (arguments
8093 '(#:configure-flags
8094 `("--without-plymouth"
8095 "--disable-systemd-journal"
8096
8097 ;; Using --with-initial-vt=7 allows GDM to run alongside TTY 1,
8098 ;; instead of having to replace it (i.e., stopping the mingetty
8099 ;; service for TTY 1 before starting GDM).
8100 "--with-initial-vt=7"
8101
8102 ;; Use '/etc/environment' for locale settings instead of the
8103 ;; systemd-specific '/etc/locale.conf'.
8104 "--with-lang-file=/etc/environment"
8105
8106 ,(string-append "--with-udevdir="
8107 (assoc-ref %outputs "out") "/lib/udev")
8108
8109 "--localstatedir=/var"
8110 ,(string-append "--with-default-path="
8111 (string-join '("/run/setuid-programs"
8112 "/run/current-system/profile/bin"
8113 "/run/current-system/profile/sbin")
8114 ":"))
8115 ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
8116 ;; XDG_DATA_DIRS so that it finds its schemas.
8117 "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
8118 #:phases
8119 (modify-phases %standard-phases
8120 (add-before
8121 'configure 'pre-configure
8122 (lambda* (#:key inputs outputs #:allow-other-keys)
8123 ;; We don't have <systemd/sd-daemon.h>.
8124 (substitute* '("common/gdm-log.c"
8125 "daemon/gdm-server.c"
8126 "daemon/gdm-session-worker.c"
8127 "daemon/gdm-session-worker-job.c")
8128 (("#include <systemd/sd-daemon\\.h>") ""))
8129 ;; Use elogind for sd-login.
8130 (substitute* '("common/gdm-common.c"
8131 "daemon/gdm-local-display-factory.c"
8132 "daemon/gdm-manager.c"
8133 "libgdm/gdm-user-switching.c")
8134 (("#include <systemd/sd-login\\.h>")
8135 "#include <elogind/sd-login.h>"))
8136 ;; Check for elogind.
8137 (substitute* '("configure")
8138 (("libsystemd")
8139 "libelogind"))
8140 ;; Look for system-installed sessions in
8141 ;; /run/current-system/profile/share.
8142 (substitute* '("libgdm/gdm-sessions.c"
8143 "daemon/gdm-session.c"
8144 "daemon/gdm-display.c"
8145 "daemon/gdm-launch-environment.c")
8146 (("DATADIR \"/x")
8147 "\"/run/current-system/profile/share/x")
8148 (("DATADIR \"/wayland")
8149 "\"/run/current-system/profile/share/wayland")
8150 (("DATADIR \"/gnome")
8151 "\"/run/current-system/profile/share/gnome"))
8152 (let ((propagate '("GDM_CUSTOM_CONF"
8153 "GDM_DBUS_DAEMON"
8154 "GDM_X_SERVER"
8155 "GDM_X_SESSION"
8156 ;; XXX: Remove this once GNOME Shell is
8157 ;; a dependency of GDM.
8158 "XDG_DATA_DIRS")))
8159 (substitute* "daemon/gdm-session.c"
8160 (("set_up_session_environment \\(self\\);")
8161 (apply string-append
8162 "set_up_session_environment (self);\n"
8163 (map (lambda (name)
8164 (string-append
8165 "gdm_session_set_environment_variable "
8166 "(self, \"" name "\","
8167 "g_getenv (\"" name "\"));\n"))
8168 propagate)))))
8169 ;; Find the configuration file using an environment variable.
8170 (substitute* '("common/gdm-settings.c")
8171 (("GDM_CUSTOM_CONF")
8172 (string-append "(g_getenv(\"GDM_CUSTOM_CONF\") != NULL"
8173 " ? g_getenv(\"GDM_CUSTOM_CONF\")"
8174 " : GDM_CUSTOM_CONF)")))
8175 ;; Use service-supplied path to X.
8176 (substitute* '("daemon/gdm-server.c")
8177 (("\\(X_SERVER X_SERVER_ARG_FORMAT")
8178 "(\"%s\" X_SERVER_ARG_FORMAT, g_getenv (\"GDM_X_SERVER\")"))
8179 (substitute* '("daemon/gdm-wayland-session.c"
8180 "daemon/gdm-x-session.c")
8181 (("\"dbus-daemon\"")
8182 "g_getenv (\"GDM_DBUS_DAEMON\")")
8183 (("X_SERVER")
8184 "g_getenv (\"GDM_X_SERVER\")")
8185 (("GDMCONFDIR \"/Xsession\"")
8186 "g_getenv (\"GDM_X_SESSION\")"))
8187 ;; Use an absolute path for GNOME Session.
8188 (substitute* "daemon/gdm-launch-environment.c"
8189 (("\"gnome-session\"")
8190 (string-append "\"" (assoc-ref inputs "gnome-session")
8191 "/bin/gnome-session\"")))
8192 ;; Do not automatically select the placeholder session.
8193 (substitute* "daemon/gdm-session.c"
8194 (("!g_str_has_suffix [(]base_name, \"\\.desktop\"[)]")
8195 (string-append "!g_str_has_suffix (base_name, \".desktop\") || "
8196 "(g_strcmp0(search_dirs[i], \""
8197 (assoc-ref outputs "out") "/share/gdm/BuiltInSessions/"
8198 "\") == 0 && "
8199 "g_strcmp0(base_name, \"fail.desktop\") == 0)"))
8200 (("g_error [(]\"GdmSession: no session desktop files installed, aborting\\.\\.\\.\"[)];")
8201 "{ self->fallback_session_name = g_strdup(\"fail\"); goto out; }"))
8202 #t))
8203 ;; GDM requires that there be at least one desktop entry
8204 ;; file. This phase installs a hidden one that simply
8205 ;; fails. This enables users to use GDM with a
8206 ;; '~/.xsession' script with no other desktop entry files.
8207 ;; See <https://bugs.gnu.org/35068>.
8208 (add-after 'install 'install-placeholder-desktop-entry
8209 (lambda* (#:key inputs outputs #:allow-other-keys)
8210 (let* ((out (assoc-ref outputs "out"))
8211 (sessions (string-append out "/share/gdm/BuiltInSessions"))
8212 (fail (string-append sessions "/fail.desktop")))
8213 (mkdir-p sessions)
8214 (with-output-to-file fail
8215 (lambda ()
8216 (for-each
8217 display
8218 '("[Desktop Entry]\n"
8219 "Encoding=UTF-8\n"
8220 "Type=Application\n"
8221 "Name=Fail\n"
8222 "Comment=This session fails immediately.\n"
8223 "NoDisplay=true\n"
8224 "Exec=false\n"))))
8225 #t)))
8226 ;; GDM needs GNOME Session to run these applications. We link
8227 ;; their autostart files in `share/gdm/greeter/autostart'
8228 ;; because GDM explicitly tells GNOME Session to look there.
8229 ;;
8230 ;; XXX: GNOME Shell should be linked here too, but currently
8231 ;; GNOME Shell depends on GDM.
8232 (add-after 'install 'link-autostart-files
8233 (lambda* (#:key inputs outputs #:allow-other-keys)
8234 (let* ((out (assoc-ref outputs "out"))
8235 (autostart (string-append out "/share/gdm/"
8236 "greeter/autostart"))
8237 (settings (assoc-ref inputs "gnome-settings-daemon")))
8238 (mkdir-p autostart)
8239 (with-directory-excursion autostart
8240 (for-each (lambda (desktop)
8241 (symlink desktop (basename desktop)))
8242 (find-files (string-append settings "/etc/xdg"))))
8243 #t))))))
8244 (native-inputs
8245 `(("dconf" ,dconf)
8246 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8247 ("gobject-introspection" ,gobject-introspection)
8248 ("intltool" ,intltool)
8249 ("itstool" ,itstool)
8250 ("pkg-config" ,pkg-config)
8251 ("xmllint" ,libxml2)))
8252 (inputs
8253 `(("accountsservice" ,accountsservice)
8254 ("check" ,check-0.14) ;for testing
8255 ("elogind" ,elogind)
8256 ("gnome-session" ,gnome-session)
8257 ("gnome-settings-daemon" ,gnome-settings-daemon)
8258 ("gtk+" ,gtk+)
8259 ("iso-codes" ,iso-codes)
8260 ("libcanberra" ,libcanberra)
8261 ("linux-pam" ,linux-pam)))
8262 (synopsis "Display manager for GNOME")
8263 (home-page "https://wiki.gnome.org/Projects/GDM/")
8264 (description
8265 "GNOME Display Manager is a system service that is responsible for
8266 providing graphical log-ins and managing local and remote displays.")
8267 (license license:gpl2+)))
8268
8269 (define-public libgtop
8270 (package
8271 (name "libgtop")
8272 (version "2.40.0")
8273 (source (origin
8274 (method url-fetch)
8275 (uri (string-append "mirror://gnome/sources/libgtop/"
8276 (version-major+minor version) "/"
8277 "libgtop-" version ".tar.xz"))
8278 (sha256
8279 (base32
8280 "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq"))))
8281 (build-system gnu-build-system)
8282 (native-inputs
8283 `(("gobject-introspection" ,gobject-introspection)
8284 ("intltool" ,intltool)
8285 ("perl" ,perl)
8286 ("pkg-config" ,pkg-config)))
8287 (propagated-inputs
8288 `(("glib" ,glib))) ; required by libgtop-2.0.pc
8289 (synopsis "Portable system access library")
8290 (home-page "https://www.gnome.org/")
8291 (description
8292 "LibGTop is a library to get system specific data such as CPU and memory
8293 usage and information about running processes.")
8294 (license license:gpl2+)))
8295
8296 (define-public gnome-bluetooth
8297 (package
8298 (name "gnome-bluetooth")
8299 (version "3.34.2")
8300 (source (origin
8301 (method url-fetch)
8302 (uri (string-append "mirror://gnome/sources/" name "/"
8303 (version-major+minor version) "/"
8304 name "-" version ".tar.xz"))
8305 (sha256
8306 (base32
8307 "0lmjvb49vgr4jjplrisv6pi29jsn1q42715i6c5a0p9ad3gawyyv"))))
8308 (build-system meson-build-system)
8309 (native-inputs
8310 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
8311 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
8312 ("gobject-introspection" ,gobject-introspection)
8313 ("intltool" ,intltool)
8314 ("pkg-config" ,pkg-config)
8315 ("xmllint" ,libxml2)))
8316 (propagated-inputs
8317 ;; gnome-bluetooth-1.0.pc refers to all these.
8318 `(("glib" ,glib)
8319 ("gtk+" ,gtk+)))
8320 (inputs
8321 `(("eudev" ,eudev)
8322 ("libcanberra" ,libcanberra)
8323 ("libnotify" ,libnotify)))
8324 (synopsis "GNOME Bluetooth subsystem")
8325 (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
8326 (description
8327 "This package contains tools for managing and manipulating Bluetooth
8328 devices using the GNOME desktop.")
8329 (license license:lgpl2.1+)))
8330
8331 (define-public gnome-control-center
8332 (package
8333 (name "gnome-control-center")
8334 (version "3.34.2")
8335 (source (origin
8336 (method url-fetch)
8337 (uri (string-append "mirror://gnome/sources/" name "/"
8338 (version-major+minor version) "/"
8339 name "-" version ".tar.xz"))
8340 (sha256
8341 (base32
8342 "054igagvmyzpaa5nwzz98gv7bk7l5dwp6g813707132si3szlpx8"))))
8343 (build-system meson-build-system)
8344 (arguments
8345 '(#:glib-or-gtk? #t
8346 #:configure-flags
8347 (list "-Dcheese=false"
8348 (string-append "-Dgnome_session_libexecdir="
8349 (assoc-ref %build-inputs "gnome-session")
8350 "/libexec"))
8351 #:phases
8352 (modify-phases %standard-phases
8353 (add-before 'configure 'patch-paths
8354 (lambda* (#:key inputs #:allow-other-keys)
8355 (let ((libc (assoc-ref inputs "libc"))
8356 (tzdata (assoc-ref inputs "tzdata"))
8357 (libgnomekbd (assoc-ref inputs "libgnomekbd"))
8358 (nm-applet (assoc-ref inputs "network-manager-applet"))
8359 (gnome-desktop (assoc-ref inputs "gnome-desktop")))
8360 (substitute* "panels/datetime/tz.h"
8361 (("/usr/share/zoneinfo/zone.tab")
8362 (string-append tzdata "/share/zoneinfo/zone.tab")))
8363 (substitute* "tests/datetime/test-endianess.c"
8364 (("/usr/share/locale")
8365 (string-append libc "/share/locale")))
8366 (substitute* "panels/region/cc-region-panel.c"
8367 (("\"gkbd-keyboard-display")
8368 (string-append "\"" libgnomekbd
8369 "/bin/gkbd-keyboard-display")))
8370 (substitute* '("panels/network/net-device-wifi.c"
8371 "panels/network/net-device.c"
8372 "panels/network/connection-editor/net-connection-editor.c")
8373 (("\"nm-connection-editor")
8374 (string-append "\"" nm-applet
8375 "/bin/nm-connection-editor")))
8376 (substitute* '("panels/user-accounts/run-passwd.c")
8377 (("/usr/bin/passwd")
8378 "/run/setuid-programs/passwd"))
8379 (substitute* "panels/info/cc-info-overview-panel.c"
8380 (("DATADIR \"/gnome/gnome-version.xml\"")
8381 (string-append "\"" gnome-desktop
8382 "/share/gnome/gnome-version.xml\"")))
8383 #t)))
8384 (add-after 'unpack 'skip-gtk-update-icon-cache
8385 ;; Don't create 'icon-theme.cache'.
8386 (lambda _
8387 (substitute* "build-aux/meson/meson_post_install.py"
8388 (("gtk-update-icon-cache") (which "true")))
8389 #t)))))
8390 (native-inputs
8391 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
8392 ("intltool" ,intltool)
8393 ("pkg-config" ,pkg-config)
8394 ("xsltproc" ,libxslt)
8395 ;; For tests
8396 ("hicolor-icon-theme" ,hicolor-icon-theme)
8397 ("python-dbusmock" ,python-dbusmock)
8398 ("xorg-server" ,xorg-server-for-tests)))
8399 (inputs
8400 `(("accountsservice" ,accountsservice)
8401 ("clutter-gtk" ,clutter-gtk)
8402 ("colord-gtk" ,colord-gtk)
8403 ("cups" ,cups)
8404 ("dconf" ,dconf)
8405 ("docbook-xsl" ,docbook-xsl)
8406 ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
8407 ("gnome-bluetooth" ,gnome-bluetooth)
8408 ("gnome-desktop" ,gnome-desktop)
8409 ("gnome-online-accounts" ,gnome-online-accounts)
8410 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
8411 ("gnome-session" ,gnome-session)
8412 ("gnome-settings-daemon" ,gnome-settings-daemon)
8413 ("grilo" ,grilo)
8414 ("gsound" ,gsound)
8415 ("ibus" ,ibus)
8416 ("libcanberra" ,libcanberra)
8417 ("libgnomekbd" ,libgnomekbd)
8418 ("libgudev" ,libgudev)
8419 ("libgtop" ,libgtop)
8420 ("libnma" ,libnma)
8421 ("libpwquality" ,libpwquality)
8422 ("libsecret" ,libsecret)
8423 ("libsoup" ,libsoup)
8424 ("libxml2" ,libxml2)
8425 ("libwacom" ,libwacom)
8426 ("mesa" ,mesa)
8427 ("mit-krb5" ,mit-krb5)
8428 ("modem-manager" ,modem-manager)
8429 ("network-manager-applet" ,network-manager-applet)
8430 ("polkit" ,polkit)
8431 ("pulseaudio" ,pulseaudio)
8432 ("smbclient" ,samba)
8433 ("tzdata" ,tzdata)
8434 ("udisks" ,udisks)
8435 ("upower" ,upower)))
8436 (synopsis "Utilities to configure the GNOME desktop")
8437 (home-page "https://www.gnome.org/")
8438 (description
8439 "This package contains configuration applets for the GNOME desktop,
8440 allowing to set accessibility configuration, desktop fonts, keyboard and mouse
8441 properties, sound setup, desktop theme and background, user interface
8442 properties, screen resolution, and other GNOME parameters.")
8443 (license license:gpl2+)))
8444
8445 (define-public gnome-shell
8446 (package
8447 (name "gnome-shell")
8448 (version "3.34.5")
8449 (source (origin
8450 (method url-fetch)
8451 (uri (string-append "mirror://gnome/sources/" name "/"
8452 (version-major+minor version) "/"
8453 name "-" version ".tar.xz"))
8454 (sha256
8455 (base32
8456 "0l3mdn7g2c22mdhrqkxvvc1pk2w0v32f2v4a6n1phvaalwcg75nj"))
8457 (patches (search-patches "gnome-shell-CVE-2020-17489.patch"
8458 "gnome-shell-theme.patch"
8459 "gnome-shell-disable-test.patch"))
8460 (modules '((guix build utils)))
8461 (snippet
8462 #~(begin
8463 ;; Copy images for use on the GDM log-in screen.
8464 (copy-file #$(file-append %artwork-repository
8465 "/slim/0.x/background.png")
8466 "data/theme/guix-background.png")
8467 (copy-file #$(file-append %artwork-repository
8468 "/logo/Guix-horizontal-white.svg")
8469 "data/theme/guix-logo.svg")
8470 #t))))
8471 (build-system meson-build-system)
8472 (arguments
8473 `(#:glib-or-gtk? #t
8474 #:disallowed-references ((,glib "bin")
8475 ,inkscape ,libxslt
8476 ,ruby-sass)
8477 #:configure-flags
8478 (list "-Dsystemd=false"
8479 ;; Otherwise, the RUNPATH will lack the final path component.
8480 (string-append "-Dc_link_args=-Wl,-rpath="
8481 (assoc-ref %outputs "out")
8482 "/lib/gnome-shell"))
8483
8484 #:modules ((guix build meson-build-system)
8485 (guix build utils)
8486 (srfi srfi-1))
8487
8488 #:phases
8489 (modify-phases %standard-phases
8490 (add-after 'unpack 'fix-keysdir
8491 (lambda* (#:key outputs #:allow-other-keys)
8492 (let* ((out (assoc-ref outputs "out"))
8493 (keysdir (string-append
8494 out "/share/gnome-control-center/keybindings")))
8495 (substitute* "meson.build"
8496 (("keysdir =.*")
8497 (string-append "keysdir = '" keysdir "'\n")))
8498 #t)))
8499 (add-before 'configure 'convert-logo-to-png
8500 (lambda* (#:key inputs #:allow-other-keys)
8501 ;; Convert the logo from SVG to PNG.
8502 (invoke "inkscape" "--export-png=data/theme/guix-logo.png"
8503 "data/theme/guix-logo.svg")))
8504 (add-before 'configure 'record-absolute-file-names
8505 (lambda* (#:key inputs #:allow-other-keys)
8506 (substitute* "js/misc/ibusManager.js"
8507 (("'ibus-daemon'")
8508 (string-append "'" (assoc-ref inputs "ibus")
8509 "/bin/ibus-daemon'")))
8510 (substitute* "js/ui/status/keyboard.js"
8511 (("'gkbd-keyboard-display'")
8512 (string-append "'" (assoc-ref inputs "libgnomekbd")
8513 "/bin/gkbd-keyboard-display'")))
8514 #t))
8515 (add-before 'check 'pre-check
8516 (lambda* (#:key inputs #:allow-other-keys)
8517 ;; Tests require a running X server.
8518 (system "Xvfb :1 &")
8519 (setenv "DISPLAY" ":1")
8520 #t))
8521 (add-after 'install 'wrap-programs
8522 (lambda* (#:key inputs outputs #:allow-other-keys)
8523 (let ((out (assoc-ref outputs "out"))
8524 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
8525 (python-path (getenv "PYTHONPATH")))
8526 (wrap-program (string-append out "/bin/gnome-shell")
8527 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
8528 ;; FIXME: gnome-shell loads these libraries with unqualified
8529 ;; names only, so they need to be on LD_LIBRARY_PATH. The
8530 ;; alternative might be to patch gnome-shell.
8531 `("LD_LIBRARY_PATH" ":" prefix
8532 ,(map (lambda (pkg)
8533 (string-append (assoc-ref inputs pkg) "/lib"))
8534 '("gdk-pixbuf"
8535 "gnome-bluetooth" "librsvg" "libgweather"))))
8536 (for-each
8537 (lambda (prog)
8538 (wrap-program (string-append out "/bin/" prog)
8539 `("PYTHONPATH" ":" prefix (,python-path))
8540 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
8541 '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
8542 #t)))
8543 (replace 'glib-or-gtk-wrap
8544 (let ((wrap (assoc-ref %standard-phases 'glib-or-gtk-wrap)))
8545 (lambda* (#:key inputs outputs #:allow-other-keys #:rest rest)
8546 ;; By default Inkscape et al. would end up in the XDG_DATA_DIRS
8547 ;; settings of the wrappers created by the 'glib-or-gtk-wrap'
8548 ;; phase. Fix that since we don't need these.
8549 (wrap #:inputs (fold alist-delete inputs
8550 '("inkscape" "intltool" "glib:bin"))
8551 #:outputs outputs)))))))
8552 (native-inputs
8553 `(("asciidoc" ,asciidoc)
8554 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8555 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8556 ("gobject-introspection" ,gobject-introspection)
8557 ("inkscape" ,inkscape)
8558 ("intltool" ,intltool)
8559 ("pkg-config" ,pkg-config)
8560 ("python" ,python)
8561 ("ruby-sass" ,ruby-sass)
8562 ("sassc" ,sassc)
8563 ("xsltproc" ,libxslt)
8564 ;; For tests
8565 ("xorg-server" ,xorg-server-for-tests)))
8566 (inputs
8567 `(("accountsservice" ,accountsservice)
8568 ("caribou" ,caribou)
8569 ("docbook-xsl" ,docbook-xsl)
8570 ("evolution-data-server" ,evolution-data-server)
8571 ("gcr" ,gcr)
8572 ("gdm" ,gdm)
8573 ("gdk-pixbuf" ,gdk-pixbuf+svg)
8574 ("gjs" ,gjs)
8575 ("gnome-autoar" ,gnome-autoar)
8576 ("gnome-bluetooth" ,gnome-bluetooth)
8577 ("gnome-desktop" ,gnome-desktop)
8578 ("gnome-settings-daemon" ,gnome-settings-daemon)
8579 ("gst-plugins-base" ,gst-plugins-base)
8580 ("ibus" ,ibus)
8581 ("libcanberra" ,libcanberra)
8582 ("libcroco" ,libcroco)
8583 ("libgnomekbd" ,libgnomekbd) ;for gkbd-keyboard-display
8584 ("libgweather" ,libgweather)
8585 ("libnma" ,libnma)
8586 ("libsoup" ,libsoup)
8587 ("mesa-headers" ,mesa-headers)
8588 ("mutter" ,mutter)
8589 ("network-manager-applet" ,network-manager-applet)
8590 ("polkit" ,polkit)
8591 ("pulseaudio" ,pulseaudio)
8592 ("python-pygobject" ,python-pygobject)
8593 ("startup-notification" ,startup-notification)
8594 ("telepathy-logger" ,telepathy-logger)
8595 ("upower" ,upower)
8596 ;; XXX: These requirements were added in 3.24, but no mention in NEWS.
8597 ;; Missing propagation? See also: <https://bugs.gnu.org/27264>
8598 ("librsvg" ,librsvg)
8599 ("geoclue" ,geoclue)))
8600 ;; CVE-2019-3820 was fixed before GNOME 3.34 was released, in upstream
8601 ;; commit f0a7395b3006360905ccdc642982f9fc67378927.
8602 (properties '((lint-hidden-cve . ("CVE-2019-3820"))))
8603 (synopsis "Desktop shell for GNOME")
8604 (home-page "https://wiki.gnome.org/Projects/GnomeShell")
8605 (description
8606 "GNOME Shell provides core user interface functions for the GNOME desktop,
8607 like switching to windows and launching applications.")
8608 (license license:gpl2+)))
8609
8610 (define-public gtk-vnc
8611 (package
8612 (name "gtk-vnc")
8613 (version "1.0.0")
8614 (source
8615 (origin
8616 (method url-fetch)
8617 (uri
8618 (string-append "mirror://gnome/sources/" name "/"
8619 (version-major+minor version) "/"
8620 name "-" version ".tar.xz"))
8621 (sha256
8622 (base32 "1060ws037v556rx1qhfrcg02859rscksrzr8fq11himdg4d1y6m8"))))
8623 (build-system meson-build-system)
8624 (arguments
8625 `(#:glib-or-gtk? #t)) ; To wrap binaries and/or compile schemas
8626 (native-inputs
8627 `(("gjs" ,gjs)
8628 ("glib:bin" ,glib "bin")
8629 ("gobject-introspection" ,gobject-introspection)
8630 ("intltool" ,intltool)
8631 ("node" ,node)
8632 ("perl" ,perl)
8633 ("pkg-config" ,pkg-config)
8634 ("python" ,python-wrapper)
8635 ("vala" ,vala)))
8636 (inputs
8637 `(("cairo" ,cairo)
8638 ("gdk-pixbuf" ,gdk-pixbuf+svg)
8639 ("glib" ,glib)
8640 ("gnutls" ,gnutls)
8641 ("libgcrypt" ,libgcrypt)
8642 ("libsasl" ,cyrus-sasl)
8643 ("pulseaudio" ,pulseaudio)
8644 ("x11" ,libx11)
8645 ("zlib" ,zlib)))
8646 (propagated-inputs
8647 `(("gtk+" ,gtk+)))
8648 (synopsis "VNC client viewer widget for GTK+")
8649 (description "GTK-VNC is a project providing client side APIs for the RFB
8650 protocol / VNC remote desktop technology. It is built using coroutines allowing
8651 it to be completely asynchronous while remaining single threaded. It provides a
8652 core C library, and bindings for Python (PyGTK).")
8653 (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
8654 (license license:lgpl2.1+)))
8655
8656 (define-public gnome-autoar
8657 (package
8658 (name "gnome-autoar")
8659 (version "0.3.0")
8660 (source (origin
8661 (method url-fetch)
8662 (uri (string-append "mirror://gnome/sources/" name "/"
8663 (version-major+minor version) "/"
8664 name "-" version ".tar.xz"))
8665 (sha256
8666 (base32
8667 "0ssqckfkyldwld88zizy446y2359rg40lnrcm3sjpjhc2b015hgj"))))
8668 (build-system glib-or-gtk-build-system)
8669 (native-inputs
8670 `(("gobject-introspection" ,gobject-introspection)
8671 ("pkg-config" ,pkg-config)))
8672 (propagated-inputs
8673 `(("libarchive" ,libarchive))) ; Required by gnome-autoar-0.pc
8674 (inputs
8675 `(("gtk+" ,gtk+)))
8676 (synopsis "Archives integration support for GNOME")
8677 (home-page "https://git.gnome.org/browse/gnome-autoar/")
8678 (description
8679 "GNOME Autoar is a library which makes creating and extracting archives
8680 easy, safe, and automatic.")
8681 (license license:lgpl2.1+)))
8682
8683 (define-public tracker
8684 (package
8685 (name "tracker")
8686 (version "2.3.5")
8687 (source (origin
8688 (method url-fetch)
8689 (uri (string-append "mirror://gnome/sources/tracker/"
8690 (version-major+minor version) "/"
8691 "tracker-" version ".tar.xz"))
8692 (sha256
8693 (base32
8694 "1ixxyqjlv7pnl4j8g6b72fkbjvzfspza8y71ppkncry8i6xkr223"))))
8695 (build-system meson-build-system)
8696 (arguments
8697 `(#:glib-or-gtk? #t
8698 #:configure-flags
8699 ;; Otherwise, the RUNPATH will lack the final path component.
8700 (list (string-append "-Dc_link_args=-Wl,-rpath="
8701 (assoc-ref %outputs "out") "/lib:"
8702 (assoc-ref %outputs "out") "/lib/tracker-2.0"))
8703 #:phases
8704 (modify-phases %standard-phases
8705 (add-before 'check 'pre-check
8706 (lambda _
8707 ;; Some tests expect to write to $HOME.
8708 (setenv "HOME" "/tmp")
8709 #t)))))
8710 (native-inputs
8711 `(("glib:bin" ,glib "bin")
8712 ("gobject-introspection" ,gobject-introspection)
8713 ("python-pygobject" ,python-pygobject)
8714 ("intltool" ,intltool)
8715 ("pkg-config" ,pkg-config)
8716 ("vala" ,vala)))
8717 (inputs
8718 `(("dbus" ,dbus)
8719 ("sqlite" ,sqlite)
8720 ("libxml2" ,libxml2)
8721 ("icu4c" ,icu4c) ; libunistring gets miner-miner-fs test to fail.
8722 ("json-glib" ,json-glib)
8723 ("libsoup" ,libsoup)))
8724 (synopsis "Metadata database, indexer and search tool")
8725 (home-page "https://wiki.gnome.org/Projects/Tracker")
8726 (description
8727 "Tracker is a search engine and triplestore for desktop, embedded and mobile.
8728
8729 It is a middleware component aimed at desktop application developers who want
8730 their apps to browse and search user content. It's not designed to be used
8731 directly by desktop users, but it provides a commandline tool named
8732 @command{tracker} for the adventurous.
8733
8734 Tracker allows your application to instantly perform full-text searches across
8735 all documents. This feature is used by the @{emph{search} bar in GNOME Files, for
8736 example. This is achieved by indexing the user's home directory in the
8737 background.
8738
8739 Tracker also allows your application to query and list content that the user
8740 has stored. For example, GNOME Music displays all the music files that are
8741 found by Tracker. This means that GNOME Music doesn't need to maintain a
8742 database of its own.
8743
8744 If you need to go beyond simple searches, Tracker is also a linked data
8745 endpoint and it understands SPARQL. ")
8746 ;; https://gitlab.gnome.org/GNOME/tracker/-/blob/master/COPYING:
8747 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
8748 ;; libstemmer is bsd-3 and the rest is gpl2+.
8749 (license (list license:gpl2+
8750 license:bsd-3
8751 license:lgpl2.1+))))
8752
8753 (define-public tracker-miners
8754 (package
8755 (name "tracker-miners")
8756 (version "2.3.4")
8757 (source (origin
8758 (method url-fetch)
8759 (uri (string-append "mirror://gnome/sources/tracker-miners/"
8760 (version-major+minor version)
8761 "/tracker-miners-" version ".tar.xz"))
8762 (sha256
8763 (base32
8764 "10wy8d8ski52k809p7s6lbw72qmg05bbmhnl00vx4qrbzqyxvc0b"))))
8765 (build-system meson-build-system)
8766 (arguments
8767 `(#:glib-or-gtk? #t
8768 #:configure-flags
8769 (list "-Dminer_rss=false" ; libgrss is required.
8770 ;; Ensure the RUNPATH contains all installed library locations.
8771 (string-append "-Dc_link_args=-Wl,-rpath="
8772 (assoc-ref %outputs "out")
8773 "/lib/tracker-miners-2.0")
8774 ;; TODO: Enable functional tests. Currently, the following error
8775 ;; appears:
8776 ;; Exception: The functional tests require DConf to be the default
8777 ;; GSettings backend. Got GKeyfileSettingsBackend instead.
8778 "-Dfunctional_tests=false")))
8779 (native-inputs
8780 `(("dbus" ,dbus)
8781 ("intltool" ,intltool)
8782 ("glib:bin" ,glib "bin")
8783 ("gobject-introspection" ,gobject-introspection)
8784 ("pkg-config" ,pkg-config)
8785 ("python-pygobject" ,python-pygobject)))
8786 (inputs
8787 `(("exempi" ,exempi)
8788 ("ffmpeg" ,ffmpeg)
8789 ("flac" ,flac)
8790 ("giflib" ,giflib)
8791 ("glib" ,glib)
8792 ("gstreamer" ,gstreamer)
8793 ("icu4c" ,icu4c)
8794 ("libcue" ,libcue)
8795 ("libexif" ,libexif)
8796 ("libgsf" ,libgsf)
8797 ("libgxps" ,libgxps)
8798 ("libiptcdata" ,libiptcdata)
8799 ("libjpeg" ,libjpeg-turbo)
8800 ("libosinfo" ,libosinfo)
8801 ("libpng" ,libpng)
8802 ("libseccomp" ,libseccomp)
8803 ("libtiff" ,libtiff)
8804 ("libvorbis" ,libvorbis)
8805 ("libxml2" ,libxml2)
8806 ("poppler" ,poppler)
8807 ("taglib" ,taglib)
8808 ("totem-pl-parser" ,totem-pl-parser)
8809 ("tracker" ,tracker)
8810 ("upower" ,upower)
8811 ("zlib" ,zlib)))
8812 (synopsis "Metadata database, indexer and search tool")
8813 (home-page "https://wiki.gnome.org/Projects/Tracker")
8814 (description
8815 "Tracker is an advanced framework for first class objects with associated
8816 metadata and tags. It provides a one stop solution for all metadata, tags,
8817 shared object databases, search tools and indexing.")
8818 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
8819 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
8820 (license (list license:gpl2+
8821 license:lgpl2.1+
8822 license:lgpl2.0+))))
8823
8824 (define-public nautilus
8825 (package
8826 (name "nautilus")
8827 (version "3.34.2")
8828 (source (origin
8829 (method url-fetch)
8830 (uri (string-append "mirror://gnome/sources/" name "/"
8831 (version-major+minor version) "/"
8832 name "-" version ".tar.xz"))
8833 (sha256
8834 (base32
8835 "19zqwq4qyyncc5wq3xls0f7rsavnw741k336p2h7kx35p4kf41mv"))))
8836 (build-system meson-build-system)
8837 (arguments
8838 '(#:glib-or-gtk? #t
8839 #:phases
8840 (modify-phases %standard-phases
8841 (add-after 'unpack 'skip-gtk-update-icon-cache
8842 ;; Don't create 'icon-theme.cache'.
8843 (lambda _
8844 (substitute* "build-aux/meson/postinstall.py"
8845 (("gtk-update-icon-cache") "true"))
8846 #t)))
8847 ;; XXX: FAIL: check-nautilus
8848 ;; Settings schema 'org.gnome.nautilus.preferences' is not installed
8849 #:tests? #f))
8850 (native-inputs
8851 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8852 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
8853 ("gobject-introspection" ,gobject-introspection)
8854 ("intltool" ,intltool)
8855 ("pkg-config" ,pkg-config)))
8856 (inputs
8857 `(("dconf" ,dconf)
8858 ("gexiv2" ,gexiv2)
8859 ("gvfs" ,gvfs)
8860 ("exempi" ,exempi)
8861 ("gnome-desktop" ,gnome-desktop)
8862 ("gnome-autoar" ,gnome-autoar)
8863 ("gst-plugins-base" ,gst-plugins-base)
8864 ("libseccomp" ,libseccomp)
8865 ("libselinux" ,libselinux)
8866 ("tracker" ,tracker)
8867 ("tracker-miners" ,tracker-miners)
8868 ;; XXX: gtk+ is required by libnautilus-extension.pc
8869 ;;
8870 ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
8871 ;; package. See:
8872 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
8873 ("gtk+" ,gtk+)
8874 ("libexif" ,libexif)
8875 ("libxml2" ,libxml2)))
8876 (synopsis "File manager for GNOME")
8877 (home-page "https://wiki.gnome.org/Apps/Nautilus")
8878 (description
8879 "Nautilus (Files) is a file manager designed to fit the GNOME desktop
8880 design and behaviour, giving the user a simple way to navigate and manage its
8881 files.")
8882 (license license:gpl2+)))
8883
8884 (define-public baobab
8885 (package
8886 (name "baobab")
8887 (version "3.38.0")
8888 (source (origin
8889 (method url-fetch)
8890 (uri (string-append
8891 "mirror://gnome/sources/" name "/"
8892 (version-major+minor version) "/"
8893 name "-" version ".tar.xz"))
8894 (sha256
8895 (base32
8896 "0ac3fbl15l836yvgw724q4whbkws9v4b6l2xy6bnp0b0g0a6i104"))))
8897 (build-system meson-build-system)
8898 (arguments
8899 '(#:glib-or-gtk? #t))
8900 (native-inputs
8901 `(("intltool" ,intltool)
8902 ("pkg-config" ,pkg-config)
8903 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8904 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8905 ("itstool" ,itstool)
8906 ("xmllint" ,libxml2)
8907 ("glib" ,glib "bin")
8908 ("vala" ,vala)))
8909 (inputs
8910 `(("gtk+" ,gtk+)))
8911 (synopsis "Disk usage analyzer for GNOME")
8912 (description
8913 "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
8914 usage in the GNOME desktop environment. It can easily scan device volumes or
8915 a specific user-requested directory branch (local or remote). Once the scan
8916 is complete it provides a graphical representation of each selected folder.")
8917 (home-page "https://wiki.gnome.org/Apps/Baobab")
8918 (license license:gpl2+)))
8919
8920 (define-public gnome-backgrounds
8921 (package
8922 (name "gnome-backgrounds")
8923 (version "3.34.0")
8924 (source
8925 (origin
8926 (method url-fetch)
8927 (uri (string-append "mirror://gnome/sources/" name "/"
8928 (version-major+minor version) "/"
8929 name "-" version ".tar.xz"))
8930 (sha256
8931 (base32
8932 "0zxlwy55fz7i582hch2wnj8zy1kzikssgaix0l2y41ccp5nzpdy2"))))
8933 (build-system meson-build-system)
8934 (native-inputs
8935 `(("intltool" ,intltool)))
8936 (home-page "https://gitlab.gnome.org/GNOME/gnome-backgrounds")
8937 (synopsis "Background images for the GNOME desktop")
8938 (description
8939 "GNOME backgrounds package contains a collection of graphics files which
8940 can be used as backgrounds in the GNOME Desktop environment. Additionally,
8941 the package creates the proper framework and directory structure so that you
8942 can add your own files to the collection.")
8943 (license (list license:gpl2+
8944 license:cc-by2.0
8945 license:cc-by-sa2.0
8946 license:cc-by-sa3.0))))
8947
8948 (define-public gnome-screenshot
8949 (package
8950 (name "gnome-screenshot")
8951 (version "3.34.0")
8952 (source
8953 (origin
8954 (method url-fetch)
8955 (uri (string-append "mirror://gnome/sources/" name "/"
8956 (version-major+minor version) "/"
8957 name "-" version ".tar.xz"))
8958 (sha256
8959 (base32
8960 "1rmiq890j7gfn5mcz31xy6jfnnxgc17dq67bhn2k9m5ylbvza2n8"))))
8961 (build-system meson-build-system)
8962 (arguments
8963 '(#:phases
8964 (modify-phases %standard-phases
8965 (add-after 'unpack 'skip-gtk-update-icon-cache
8966 ;; Don't create 'icon-theme.cache'.
8967 (lambda _
8968 (substitute* "build-aux/postinstall.py"
8969 (("gtk-update-icon-cache") "true"))
8970 #t)))))
8971 (native-inputs
8972 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8973 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8974 ("intltool" ,intltool)
8975 ("appstream-glib" ,appstream-glib)
8976 ("pkg-config" ,pkg-config)))
8977 (inputs
8978 `(("gtk+" ,gtk+)
8979 ("libcanberra" ,libcanberra)
8980 ("libx11" ,libx11)
8981 ("libxext" ,libxext)))
8982 (home-page "https://gitlab.gnome.org/GNOME/gnome-screenshot")
8983 (synopsis "Take pictures of your screen")
8984 (description
8985 "GNOME Screenshot is a utility used for taking screenshots of the entire
8986 screen, a window or a user defined area of the screen, with optional
8987 beautifying border effects.")
8988 (license license:gpl2+)))
8989
8990 (define-public dconf-editor
8991 (package
8992 (name "dconf-editor")
8993 (version "3.34.2")
8994 (source
8995 (origin
8996 (method url-fetch)
8997 (uri (string-append "mirror://gnome/sources/" name "/"
8998 (version-major+minor version) "/"
8999 name "-" version ".tar.xz"))
9000 (sha256
9001 (base32
9002 "0pwxjada2vaf69ihpjgp9nky54iykvxq63lp1vl8pxjanif2mk6f"))))
9003 (build-system meson-build-system)
9004 (native-inputs
9005 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
9006 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
9007 ("intltool" ,intltool)
9008 ("pkg-config" ,pkg-config)
9009 ("vala" ,vala)))
9010 (inputs
9011 `(("dconf" ,dconf)
9012 ("gtk+" ,gtk+)
9013 ("libxml2" ,libxml2)))
9014 (home-page "https://gitlab.gnome.org/GNOME/dconf-editor")
9015 (synopsis "Graphical editor for GNOME's dconf configuration system")
9016 (description
9017 "Dconf-editor is a graphical tool for browsing and editing the dconf
9018 configuration system for GNOME. It allows users to configure desktop
9019 software that do not provide their own configuration interface.")
9020 (license license:lgpl2.1+)))
9021
9022 (define-public gnome-default-applications
9023 (package
9024 (name "gnome-default-applications")
9025 (version "0")
9026 (build-system trivial-build-system)
9027 (source #f)
9028 (propagated-inputs
9029 `(("nautilus" ,nautilus)
9030 ("evince" ,evince)))
9031 (arguments
9032 `(#:modules ((guix build utils))
9033 #:builder
9034 (begin
9035 (use-modules (guix build utils))
9036 (let* ((out (assoc-ref %outputs "out"))
9037 (apps (string-append out "/share/applications")))
9038 (mkdir-p apps)
9039 (call-with-output-file (string-append apps "/gnome-mimeapps.list")
9040 (lambda (port)
9041 (format port "[Default Applications]\n")
9042 (format port "inode/directory=org.gnome.Nautilus.desktop\n")
9043 (format port "application/pdf=evince.desktop\n")
9044 (format port "application/postscript=evince.desktop\n")))
9045 #t))))
9046 (synopsis "Default MIME type associations for the GNOME desktop")
9047 (description
9048 "Given many installed packages which might handle a given MIME type, a
9049 user running the GNOME desktop probably has some preferences: for example,
9050 that folders be opened by default by the Nautilus file manager, not the Baobab
9051 disk usage analyzer. This package establishes that set of default MIME type
9052 associations for GNOME.")
9053 (license license:gpl3+)
9054 (home-page #f)))
9055
9056 (define-public libgovirt
9057 (package
9058 (name "libgovirt")
9059 (version "0.3.8")
9060 (source (origin
9061 (method url-fetch)
9062 (uri (string-append "mirror://gnome/sources/" name "/"
9063 (version-major+minor version) "/"
9064 name "-" version ".tar.xz"))
9065 (sha256
9066 (base32
9067 "1y0x1wyakj3ya33hgj0w1jkbcn50q21gmn2zyalxysqp55i1ij8x"))))
9068 (build-system glib-or-gtk-build-system)
9069 (native-inputs
9070 `(("gettext" ,gettext-minimal)
9071 ("glib:bin" ,glib "bin")
9072 ("gobject-introspection" ,gobject-introspection)
9073 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9074 ("gtk+:bin" ,gtk+ "bin")
9075 ("pkg-config" ,pkg-config)))
9076 (inputs
9077 `(("glib-networking" ,glib-networking) ; GIO plugin--for the tests
9078 ("librest" ,rest)))
9079 (synopsis "GoVirt Library")
9080 (description "GoVirt is a GObject wrapper for the oVirt REST API.")
9081 (home-page "https://gitlab.gnome.org/GNOME/libgovirt")
9082 (license license:gpl2+)))
9083
9084 (define-public gnome-weather
9085 (package
9086 (name "gnome-weather")
9087 (version "3.34.0")
9088 (source (origin
9089 (method url-fetch)
9090 (uri (string-append "mirror://gnome/sources/" name "/"
9091 (version-major+minor version) "/"
9092 name "-" version ".tar.xz"))
9093 (sha256
9094 (base32
9095 "1g63xzs17i36if923b36k9fwbk0nqa5vz6zh1k6q2axrzhhpx1i4"))))
9096 (build-system meson-build-system)
9097 (native-inputs
9098 `(("gettext" ,gettext-minimal)
9099 ("glib:bin" ,glib "bin")
9100 ("gobject-introspection" ,gobject-introspection)
9101 ("gtk+:bin" ,gtk+ "bin")
9102 ("pkg-config" ,pkg-config)))
9103 (inputs
9104 `( ;("adwaita-icon-theme" ,adwaita-icon-theme)
9105 ("appstream-glib" ,appstream-glib)
9106 ("geoclue" ,geoclue)
9107 ("gdk-pixbuf" ,gdk-pixbuf)
9108 ("gjs" ,gjs)
9109 ("gnome-desktop" ,gnome-desktop)
9110 ("libgweather" ,libgweather)))
9111 (arguments
9112 `(#:glib-or-gtk? #t
9113 #:phases
9114 (modify-phases %standard-phases
9115 (add-after 'install 'fix-desktop-file
9116 ;; FIXME: "gapplication launch org.gnome.Weather" fails for some reason.
9117 ;; See https://issues.guix.gnu.org/issue/39324.
9118 (lambda* (#:key outputs #:allow-other-keys)
9119 (let* ((out (assoc-ref outputs "out"))
9120 (applications (string-append out "/share/applications")))
9121 (substitute* (string-append applications "/org.gnome.Weather.desktop")
9122 (("Exec=.*") "Exec=gnome-weather\n"))
9123 #t)))
9124 (add-after 'install 'wrap
9125 (lambda* (#:key inputs outputs #:allow-other-keys)
9126 (let ((out (assoc-ref outputs "out"))
9127 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
9128 ;; GNOME Weather needs the typelib files of GTK+, Pango etc at runtime.
9129 (wrap-program (string-append out "/bin/gnome-weather")
9130 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
9131 #t))))))
9132 (synopsis "Weather monitoring for GNOME desktop")
9133 (description "GNOME Weather is a small application that allows you to
9134 monitor the current weather conditions for your city, or anywhere in the
9135 world.")
9136 (home-page "https://wiki.gnome.org/Apps/Weather")
9137 (license license:gpl2+)))
9138
9139 (define-public gnome
9140 (package
9141 (name "gnome")
9142 (version (package-version gnome-shell))
9143 (source #f)
9144 (build-system trivial-build-system)
9145 (arguments '(#:builder (begin (mkdir %output) #t)))
9146 (propagated-inputs
9147 ;; TODO: Add or remove packages according to:
9148 ;; <https://calc.disroot.org/2nu6mpf88ynq.html>.
9149 `(
9150 ;; GNOME-Core-OS-Services
9151 ("accountsservice" ,accountsservice)
9152 ("network-manager" ,network-manager)
9153 ("packagekit" ,packagekit)
9154 ("upower" ,upower)
9155 ;; GNOME-Core-Shell
9156 ("adwaita-icon-theme" ,adwaita-icon-theme)
9157 ("gdm" ,gdm)
9158 ("glib-networking" ,glib-networking)
9159 ("gnome-backgrounds" ,gnome-backgrounds)
9160 ("gnome-bluetooth" ,gnome-bluetooth)
9161 ("gnome-color-manager" ,gnome-color-manager)
9162 ("gnome-control-center" ,gnome-control-center)
9163 ("gnome-desktop" ,gnome-desktop)
9164 ("gnome-getting-started-docs" ,gnome-getting-started-docs)
9165 ("gnome-initial-setup" ,gnome-initial-setup)
9166 ("gnome-keyring" ,gnome-keyring)
9167 ("gnome-menus" ,gnome-menus)
9168 ("gnome-session" ,gnome-session)
9169 ("gnome-settings-daemon" ,gnome-settings-daemon)
9170 ("gnome-shell-extensions" ,gnome-shell-extensions)
9171 ("gnome-shell" ,gnome-shell)
9172 ("gnome-themes-extra" ,gnome-themes-extra)
9173 ("gnome-user-docs" ,gnome-user-docs)
9174 ("gnome-user-share" ,gnome-user-share)
9175 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9176 ("gvfs" ,gvfs)
9177 ("mutter" ,mutter)
9178 ("orca" ,orca)
9179 ("rygel" ,rygel)
9180 ("sushi" ,sushi)
9181 ;; GNOME-Core-Utilities
9182 ("baobab" ,baobab)
9183 ("cheese" ,cheese)
9184 ;; XXX: EoG requires librsvg-next, which depends on Rust, which currently
9185 ;; only works on x86_64, so exclude it on other architectures.
9186 ,@(if (string-prefix? "x86_64" (%current-system))
9187 `(("eog" ,eog))
9188 '())
9189 ("epiphany" ,epiphany)
9190 ("evince" ,evince)
9191 ("file-roller" ,file-roller)
9192 ("gedit" ,gedit)
9193 ("gnome-boxes" ,gnome-boxes)
9194 ("gnome-calculator" ,gnome-calculator)
9195 ("gnome-calendar" ,gnome-calendar)
9196 ("gnome-characters" ,gnome-characters)
9197 ("gnome-clocks" ,gnome-clocks)
9198 ("gnome-contacts" ,gnome-contacts)
9199 ("gnome-disk-utility" ,gnome-disk-utility)
9200 ("gnome-font-viewer" ,gnome-font-viewer)
9201 ("gnome-maps" ,gnome-maps)
9202 ; TODO: ("gnome-music" ,gnome-music)
9203 ; TODO: ("gnome-photos" ,gnome-photos)
9204 ("gnome-screenshot" ,gnome-screenshot)
9205 ("gnome-system-monitor" ,gnome-system-monitor)
9206 ("gnome-terminal" ,gnome-terminal)
9207 ("gnome-weather" ,gnome-weather)
9208 ("nautilus" ,nautilus)
9209 ("simple-scan" ,simple-scan)
9210 ("totem" ,totem)
9211 ("yelp" ,yelp)
9212 ;; Others
9213 ("hicolor-icon-theme" ,hicolor-icon-theme)
9214 ("gnome-online-accounts" ,gnome-online-accounts)
9215
9216 ;; Packages not part of GNOME proper but that are needed for a good
9217 ;; experience. See <https://bugs.gnu.org/39646>.
9218 ;; XXX: Find out exactly which ones are needed and why.
9219 ("font-cantarell" ,font-cantarell)
9220 ("font-dejavu" ,font-dejavu)
9221 ("at-spi2-core" ,at-spi2-core)
9222 ("dbus" ,dbus)
9223 ("dconf" ,dconf)
9224 ("desktop-file-utils" ,desktop-file-utils)
9225 ("gnome-default-applications" ,gnome-default-applications)
9226 ("gnome-themes-standard" ,gnome-themes-standard)
9227 ("gst-plugins-base" ,gst-plugins-base)
9228 ("gst-plugins-good" ,gst-plugins-good)
9229 ("gucharmap" ,gucharmap)
9230 ("pinentry-gnome3" ,pinentry-gnome3)
9231 ("pulseaudio" ,pulseaudio)
9232 ("shared-mime-info" ,shared-mime-info)
9233 ("system-config-printer" ,system-config-printer)
9234 ("xdg-user-dirs" ,xdg-user-dirs)
9235 ("yelp" ,yelp)
9236 ("zenity" ,zenity)))
9237 (synopsis "The GNU desktop environment")
9238 (home-page "https://www.gnome.org/")
9239 (description
9240 "GNOME is the graphical desktop for GNU. It includes a wide variety of
9241 applications for browsing the web, editing text and images, creating
9242 documents and diagrams, playing media, scanning, and much more.")
9243 (license license:gpl2+)))
9244
9245 (define-public byzanz
9246 ;; The last stable release of Byzanz was in 2011, but there have been many
9247 ;; useful commits made to the Byzanz repository since then that it would be
9248 ;; silly to use such an old release.
9249 (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
9250 (package
9251 (name "byzanz")
9252 (version (string-append "0.2-1." (string-take commit 7)))
9253 (source (origin
9254 (method git-fetch)
9255 (uri (git-reference
9256 (url "https://git.gnome.org/browse/byzanz")
9257 (commit commit)))
9258 (file-name (string-append name "-" version "-checkout"))
9259 (sha256
9260 (base32
9261 "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
9262 (build-system glib-or-gtk-build-system)
9263 (arguments
9264 '(#:phases
9265 (modify-phases %standard-phases
9266 (add-before 'bootstrap 'build-without-Werror
9267 (lambda _
9268 ;; The build system cleverly detects that we're not building from
9269 ;; a release tarball and turns on -Werror for GCC.
9270 ;; Unsurprisingly, there is a warning during compilation that
9271 ;; causes the build to fail unnecessarily, so we remove the flag.
9272 (substitute* '("configure.ac")
9273 (("-Werror") ""))
9274 #t)))))
9275 (native-inputs
9276 `(("autoconf" ,autoconf)
9277 ("automake" ,automake)
9278 ("gnome-common" ,gnome-common)
9279 ("intltool" ,intltool)
9280 ("libtool" ,libtool)
9281 ("pkg-config" ,pkg-config)
9282 ("which" ,which)))
9283 (inputs
9284 `(("glib" ,glib)
9285 ("gstreamer" ,gstreamer)
9286 ("gst-plugins-base" ,gst-plugins-base)
9287 ("gtk+" ,gtk+)))
9288 (synopsis "Desktop recording program")
9289 (description "Byzanz is a simple desktop recording program with a
9290 command-line interface. It can record part or all of an X display for a
9291 specified duration and save it as a GIF encoded animated image file.")
9292 (home-page "https://git.gnome.org/browse/byzanz")
9293 (license license:gpl2+))))
9294
9295 (define-public authenticator
9296 (package
9297 (name "authenticator")
9298 (version "3.32.2")
9299 (source
9300 (origin
9301 (method git-fetch)
9302 (uri (git-reference
9303 (url "https://gitlab.gnome.org/World/Authenticator")
9304 (commit version)))
9305 (file-name (git-file-name name version))
9306 (sha256
9307 (base32 "1c4r9rnrz5gazrfg0z2rcwax4nscs7z391bcjcl74k6ln3blwzpr"))))
9308 (build-system meson-build-system)
9309 (arguments
9310 `(#:glib-or-gtk? #t
9311 #:phases
9312 (modify-phases %standard-phases
9313 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
9314 (lambda* (#:key inputs outputs #:allow-other-keys)
9315 (let ((prog (string-append (assoc-ref outputs "out")
9316 "/bin/authenticator"))
9317 (pylib (string-append (assoc-ref outputs "out")
9318 "/lib/python"
9319 ,(version-major+minor
9320 (package-version python))
9321 "/site-packages")))
9322 (wrap-program prog
9323 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
9324 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
9325 #t))))))
9326 (native-inputs
9327 `(("desktop-file-utils" ,desktop-file-utils)
9328 ("gettext" ,gettext-minimal)
9329 ("glib:bin" ,glib "bin")
9330 ("gobject-introspection" ,gobject-introspection)
9331 ("gtk+:bin" ,gtk+ "bin")
9332 ("pkg-config" ,pkg-config)))
9333 (inputs
9334 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9335 ("gtk+" ,gtk+)
9336 ("libhandy" ,libhandy-0.0)
9337 ("libsecret" ,libsecret)
9338 ("python-beautifulsoup4" ,python-beautifulsoup4)
9339 ("python-pillow" ,python-pillow)
9340 ("python-pyfavicon" ,python-pyfavicon)
9341 ("python-pygobject" ,python-pygobject)
9342 ("python-pyotp" ,python-pyotp)
9343 ("python-pyzbar" ,python-pyzbar)
9344 ("yoyo-migrations" ,yoyo-migrations)
9345 ("zbar" ,zbar)))
9346 (home-page "https://gitlab.gnome.org/World/Authenticator/")
9347 (synopsis "Two-factor authentication application built for GNOME")
9348 (description
9349 "Authenticator is a two-factor authentication (2FA) application built for
9350 the GNOME desktop environment.
9351
9352 Features:
9353
9354 @itemize
9355 @item QR code scanner
9356 @item Beautiful UI
9357 @item Huge database of more than 560 supported services
9358 @item Keep your PIN tokens secure by locking the application with a password
9359 @item Automatically fetch an image for services using their favicon
9360 @item The possibility to add new services
9361 @end itemize")
9362 (license license:gpl3+)))
9363
9364 (define-public gsound
9365 (package
9366 (name "gsound")
9367 (version "1.0.2")
9368 (source (origin
9369 (method url-fetch)
9370 (uri (string-append "mirror://gnome/sources/" name "/"
9371 (version-major+minor version) "/"
9372 name "-" version ".tar.xz"))
9373 (sha256
9374 (base32
9375 "0lwfwx2c99qrp08pfaj59pks5dphsnxjgrxyadz065d8xqqgza5v"))))
9376 (build-system glib-or-gtk-build-system)
9377 (native-inputs
9378 `(("pkg-config" ,pkg-config)
9379 ("gobject-introspection" ,gobject-introspection)
9380 ("vala" ,vala)))
9381 (inputs
9382 `(("glib" ,glib)
9383 ("libcanberra" ,libcanberra)))
9384 (home-page "https://wiki.gnome.org/Projects/GSound")
9385 (synopsis "GObject wrapper for libcanberra")
9386 (description
9387 "GSound is a small library for playing system sounds. It's designed to be
9388 used via GObject Introspection, and is a thin wrapper around the libcanberra C
9389 library.")
9390 (license license:lgpl2.1+)))
9391
9392 (define-public libzapojit
9393 (package
9394 (name "libzapojit")
9395 (version "0.0.3")
9396 (source (origin
9397 (method url-fetch)
9398 (uri (string-append "mirror://gnome/sources/" name "/"
9399 (version-major+minor version) "/"
9400 name "-" version ".tar.xz"))
9401 (sha256
9402 (base32
9403 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
9404 (build-system gnu-build-system)
9405 (native-inputs
9406 `(("gobject-introspection" ,gobject-introspection)
9407 ("intltool" ,intltool)
9408 ("pkg-config" ,pkg-config)))
9409 (inputs
9410 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9411 ("json-glib" ,json-glib)
9412 ("rest" ,rest)))
9413 (home-page "https://wiki.gnome.org/Projects/Zapojit")
9414 (synopsis "Library for accessing SkyDrive and Hotmail")
9415 (description
9416 "Libzapojit is a GLib-based library for accessing online service APIs of
9417 Microsoft SkyDrive and Hotmail, using their REST protocols.")
9418 (license license:lgpl2.1+)))
9419
9420 (define-public gnome-clocks
9421 (package
9422 (name "gnome-clocks")
9423 (version "3.34.0")
9424 (source (origin
9425 (method url-fetch)
9426 (uri (string-append "mirror://gnome/sources/" name "/"
9427 (version-major+minor version) "/"
9428 name "-" version ".tar.xz"))
9429 (sha256
9430 (base32
9431 "0g7hjk55smhkd09hwa9kag3h5a12l494wj89w9smpdk3ghsmy6b1"))))
9432 (build-system meson-build-system)
9433 (arguments
9434 '(#:glib-or-gtk? #t
9435 #:phases
9436 (modify-phases %standard-phases
9437 (add-after 'unpack 'skip-gtk-update-icon-cache
9438 ;; Don't create 'icon-theme.cache'.
9439 (lambda _
9440 (substitute* "build-aux/post-install.py"
9441 (("gtk-update-icon-cache") "true"))
9442 #t)))))
9443 (native-inputs
9444 `(("vala" ,vala)
9445 ("pkg-config" ,pkg-config)
9446 ("glib" ,glib "bin") ; for glib-compile-resources
9447 ("desktop-file-utils" ,desktop-file-utils)
9448 ("gettext" ,gettext-minimal)
9449 ("itstool" ,itstool)))
9450 (inputs
9451 `(("glib" ,glib)
9452 ("gtk+" ,gtk+)
9453 ("gsound" ,gsound)
9454 ("geoclue" ,geoclue)
9455 ("geocode-glib" ,geocode-glib)
9456 ("libgweather" ,libgweather)
9457 ("gnome-desktop" ,gnome-desktop)))
9458 (home-page "https://wiki.gnome.org/Apps/Clocks")
9459 (synopsis "GNOME's clock application")
9460 (description
9461 "GNOME Clocks is a simple clocks application designed to fit the GNOME
9462 desktop. It supports world clock, stop watch, alarms, and count down timer.")
9463 (license license:gpl3+)))
9464
9465 (define-public gnome-calendar
9466 (package
9467 (name "gnome-calendar")
9468 (version "3.34.2")
9469 (source (origin
9470 (method url-fetch)
9471 (uri (string-append "mirror://gnome/sources/" name "/"
9472 (version-major+minor version) "/"
9473 name "-" version ".tar.xz"))
9474 (sha256
9475 (base32
9476 "1bnmd191044zn2kr6f5vg7sm5q59qf7z652awll1f7s6ahijr8rw"))))
9477 (build-system meson-build-system)
9478 (arguments
9479 '(#:glib-or-gtk? #t
9480 ;; gnome-calendar has to be installed before the tests can be run
9481 ;; https://bugzilla.gnome.org/show_bug.cgi?id=788224
9482 #:tests? #f
9483 #:phases
9484 (modify-phases %standard-phases
9485 (add-after 'unpack 'skip-gtk-update-icon-cache
9486 ;; Don't create 'icon-theme.cache'.
9487 (lambda _
9488 (substitute* "build-aux/meson/meson_post_install.py"
9489 (("gtk-update-icon-cache") "true"))
9490 #t)))))
9491 (native-inputs
9492 `(("gettext" ,gettext-minimal)
9493 ("glib-bin" ,glib "bin") ; For glib-compile-schemas
9494 ("pkg-config" ,pkg-config)))
9495 (inputs
9496 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9497 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9498 ("libdazzle" ,libdazzle)
9499 ("libedataserverui" ,evolution-data-server)
9500 ("libgweather" ,libgweather)
9501 ("geoclue" ,geoclue)))
9502 (propagated-inputs
9503 `(("evolution-data-server" ,evolution-data-server)))
9504 (home-page "https://wiki.gnome.org/Apps/Calendar")
9505 (synopsis "GNOME's calendar application")
9506 (description
9507 "GNOME Calendar is a simple calendar application designed to fit the GNOME
9508 desktop. It supports multiple calendars, month, week and year view.")
9509 (license license:gpl3+)))
9510
9511 (define-public gnome-todo
9512 (package
9513 (name "gnome-todo")
9514 (version "3.28.1")
9515 (source (origin
9516 (method url-fetch)
9517 (uri (string-append "mirror://gnome/sources/" name "/"
9518 (version-major+minor version) "/"
9519 name "-" version ".tar.xz"))
9520 (sha256
9521 (base32
9522 "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"))
9523 (patches
9524 (search-patches "gnome-todo-delete-esource-duplicate.patch"))))
9525 (build-system meson-build-system)
9526 (arguments
9527 '(#:glib-or-gtk? #t
9528 #:phases (modify-phases %standard-phases
9529 (add-after
9530 'install 'wrap-gnome-todo
9531 (lambda* (#:key inputs outputs #:allow-other-keys)
9532 (let ((out (assoc-ref outputs "out"))
9533 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
9534 (python-path (getenv "PYTHONPATH")))
9535 (wrap-program (string-append out "/bin/gnome-todo")
9536 ;; XXX: gi plugins are broken.
9537 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=787212
9538 ;; For plugins.
9539 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
9540 `("PYTHONPATH" ":" prefix (,python-path))))
9541 #t)))))
9542 (native-inputs
9543 `(("gettext" ,gettext-minimal)
9544 ("gobject-introspection" ,gobject-introspection)
9545 ("glib:bin" ,glib "bin") ; For glib-compile-resources
9546 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
9547 ("pkg-config" ,pkg-config)))
9548 (inputs
9549 `(("rest" ,rest) ; For Todoist plugin
9550 ("json-glib" ,json-glib) ; For Todoist plugin
9551 ("libedataserverui" ,evolution-data-server)
9552 ("libical" ,libical)
9553 ("libpeas" ,libpeas)
9554 ("python-pygobject" ,python-pygobject)
9555 ("evolution-data-server" ,evolution-data-server)
9556 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9557 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
9558 (home-page "https://wiki.gnome.org/Apps/Todo")
9559 (synopsis "GNOME's ToDo Application")
9560 (description
9561 "GNOME To Do is a simplistic personal task manager designed to perfectly
9562 fit the GNOME desktop.")
9563 (license license:gpl3+)))
9564
9565 (define-public gnome-dictionary
9566 (package
9567 (name "gnome-dictionary")
9568 (version "3.26.1")
9569 (source (origin
9570 (method url-fetch)
9571 (uri (string-append "mirror://gnome/sources/" name "/"
9572 (version-major+minor version) "/"
9573 name "-" version ".tar.xz"))
9574 (sha256
9575 (base32
9576 "007k2bq8iplg4psdpz074r5d4zxvn4s95qym4rw9hs6giljbrf0n"))))
9577 (build-system meson-build-system)
9578 (arguments '(#:glib-or-gtk? #t
9579 #:phases (modify-phases %standard-phases
9580 (add-after 'unpack 'patch-install-script
9581 (lambda _
9582 ;; This script attempts to compile glib schemas
9583 ;; and create an empty MIME database. We do
9584 ;; that elsewhere, so prevent it from running.
9585 (substitute* "build-aux/post-install.sh"
9586 (("\\[ -z \"\\$DESTDIR\" \\]") "false"))
9587 #t)))))
9588 (native-inputs
9589 `(("glib:bin" ,glib "bin")
9590 ("gobject-introspection" ,gobject-introspection)
9591 ("intltool" ,intltool)
9592 ("itstool" ,itstool)
9593 ("pkg-config" ,pkg-config)
9594 ("xmllint" ,libxml2)))
9595 (inputs
9596 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9597 ("gtk+" ,gtk+)))
9598 (home-page "https://wiki.gnome.org/Apps/Dictionary")
9599 (synopsis "Look up words in dictionary sources")
9600 (description
9601 "GNOME Dictionary can look for the definition or translation of a word in
9602 existing databases over the internet.")
9603 (license license:gpl3+)))
9604
9605 (define-public gnome-tweaks
9606 (package
9607 (name "gnome-tweaks")
9608 (version "3.34.1")
9609 (source (origin
9610 (method url-fetch)
9611 (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
9612 (version-major+minor version) "/"
9613 "gnome-tweaks-" version ".tar.xz"))
9614 (patches
9615 (list (search-patch "gnome-tweaks-search-paths.patch")))
9616 (sha256
9617 (base32
9618 "19y62dj4n5i6v4zpjllxl51dch6ndy8xs45v5aqmmq9xyfrqk5yq"))))
9619 (build-system meson-build-system)
9620 (arguments
9621 `(#:glib-or-gtk? #t
9622 #:configure-flags '("-Dlocalstatedir=/tmp"
9623 "-Dsysconfdir=/tmp")
9624 #:imported-modules ((guix build python-build-system)
9625 ,@%meson-build-system-modules)
9626 #:phases
9627 (modify-phases %standard-phases
9628 (add-after 'unpack 'skip-gtk-update-icon-cache
9629 ;; Don't create 'icon-theme.cache'.
9630 (lambda _
9631 (substitute* "meson-postinstall.py"
9632 (("gtk-update-icon-cache") "true"))
9633 #t))
9634 (add-after 'install 'wrap
9635 (@@ (guix build python-build-system) wrap))
9636 (add-after 'wrap 'wrap-gi-typelib
9637 (lambda* (#:key inputs outputs #:allow-other-keys)
9638 (let ((out (assoc-ref outputs "out"))
9639 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
9640 (wrap-program (string-append out "/bin/gnome-tweaks")
9641 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
9642 #t)))))
9643 (native-inputs
9644 `(("intltool" ,intltool)
9645 ("pkg-config" ,pkg-config)))
9646 (inputs
9647 `(("gnome-desktop" ,gnome-desktop)
9648 ("gtk+" ,gtk+)
9649 ("gobject-introspection" ,gobject-introspection)
9650 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9651 ("libhandy" ,libhandy-0.0)
9652 ("libnotify" ,libnotify)
9653 ("libsoup" ,libsoup)
9654 ("nautilus" ,nautilus)
9655 ("python" ,python)
9656 ("python-pygobject" ,python-pygobject)))
9657 (synopsis "Customize advanced GNOME 3 options")
9658 (home-page "https://wiki.gnome.org/Apps/Tweaks")
9659 (description
9660 "GNOME Tweaks allows adjusting advanced configuration settings in
9661 GNOME 3. This includes things like the fonts used in user interface elements,
9662 alternative user interface themes, changes in window management behavior,
9663 GNOME Shell appearance and extension, etc.")
9664 (license license:gpl3+)))
9665
9666 (define-public gnome-shell-extensions
9667 (package
9668 (name "gnome-shell-extensions")
9669 (version "3.34.2")
9670 (source (origin
9671 (method url-fetch)
9672 (uri (string-append "mirror://gnome/sources/" name "/"
9673 (version-major+minor version) "/"
9674 name "-" version ".tar.xz"))
9675 (sha256
9676 (base32
9677 "1f5l35l3kdkzrv49xmg1sh11vwmgjbg7hx3gb91i39bfl1snxqd1"))))
9678 (build-system meson-build-system)
9679 (arguments
9680 '(#:configure-flags '("-Dextension_set=all")))
9681 (native-inputs
9682 `(("glib:bin" ,glib "bin")
9683 ("intltool" ,intltool)
9684 ("pkg-config" ,pkg-config)))
9685 (propagated-inputs
9686 `(("glib" ,glib)))
9687 (synopsis "Extensions for GNOME Shell")
9688 (description "GNOME Shell extensions modify and extend GNOME Shell
9689 functionality and behavior.")
9690 (home-page "https://extensions.gnome.org/")
9691 (license license:gpl3+)))
9692
9693 (define-public folks
9694 (package
9695 (name "folks")
9696 (version "0.13.1")
9697 (source (origin
9698 (method url-fetch)
9699 (uri (string-append
9700 "mirror://gnome/sources/folks/"
9701 (version-major+minor version) "/"
9702 "folks-" version ".tar.xz"))
9703 (sha256
9704 (base32
9705 "0pda8sx4ap3lyri5fdrnakl29la1zkhwlc9bmnp13qigp1iwdw9x"))))
9706 (build-system meson-build-system)
9707 (arguments
9708 '(#:phases
9709 (modify-phases %standard-phases
9710 (add-after 'unpack 'skip-gtk-update-icon-cache
9711 ;; Don't create 'icon-theme.cache'.
9712 (lambda _
9713 (substitute* "meson_post_install.py"
9714 (("gtk-update-icon-cache") "true"))
9715 #t)))))
9716 (inputs
9717 `(("bdb" ,bdb)
9718 ("dbus-glib" ,dbus-glib)
9719 ("evolution-data-server" ,evolution-data-server)
9720 ("glib" ,glib)
9721 ("libgee" ,libgee)
9722 ("readline" ,readline)
9723 ("telepathy-glib" ,telepathy-glib)))
9724 (native-inputs
9725 `(("glib:bin" ,glib "bin")
9726 ("gobject-introspection" ,gobject-introspection)
9727 ("intltool" ,intltool)
9728 ("pkg-config" ,pkg-config)
9729 ("vala" ,vala)))
9730 (synopsis "Library to aggregate data about people")
9731 (description "Libfolks is a library that aggregates information about people
9732 from multiple sources (e.g., Telepathy connection managers for IM contacts,
9733 Evolution Data Server for local contacts, libsocialweb for web service contacts,
9734 etc.) to create metacontacts. It's written in Vala, which generates C code when
9735 compiled.")
9736 (home-page "https://wiki.gnome.org/Projects/Folks")
9737 (license license:lgpl2.1+)))
9738
9739 (define-public gfbgraph
9740 (package
9741 (name "gfbgraph")
9742 (version "0.2.4")
9743 (source (origin
9744 (method url-fetch)
9745 (uri (string-append
9746 "mirror://gnome/sources/gfbgraph/"
9747 (version-major+minor version) "/"
9748 "gfbgraph-" version ".tar.xz"))
9749 (sha256
9750 (base32
9751 "0yck7dwvjk16a52nafjpi0a39rxwmg0w833brj45acz76lgkjrb0"))))
9752 (build-system glib-or-gtk-build-system)
9753 (arguments
9754 `(#:tests? #f ; tests appear to require the network
9755 #:configure-flags '("--disable-static"
9756 "--enable-gtk-doc"
9757 "--enable-introspection")))
9758 (native-inputs
9759 `(("gobject-introspection" ,gobject-introspection)
9760 ("gtk-doc" ,gtk-doc)
9761 ("pkg-config" ,pkg-config)
9762
9763 ;; The 0.2.4 ‘release’ tarball isn't bootstrapped.
9764 ("autoconf" ,autoconf)
9765 ("automake" ,automake)
9766 ("libtool" ,libtool)
9767 ("which" ,which)))
9768 (inputs
9769 `(("json-glib" ,json-glib)
9770 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9771 ("rest" ,rest)))
9772 (synopsis "GLib/GObject wrapper for the Facebook API")
9773 (description "This library allows you to use the Facebook API from
9774 GLib/GObject code.")
9775 (home-page "https://wiki.gnome.org/Projects/GFBGraph")
9776 (license license:lgpl2.1+)))
9777
9778 (define-public libgnomekbd
9779 (package
9780 (name "libgnomekbd")
9781 (version "3.26.1")
9782 (source (origin
9783 (method url-fetch)
9784 (uri (string-append "mirror://gnome/sources/libgnomekbd/"
9785 (version-major+minor version) "/"
9786 "libgnomekbd-" version ".tar.xz"))
9787 (sha256
9788 (base32
9789 "0y962ykn3rr9gylj0pwpww7bi20lmhvsw6qvxs5bisbn2mih5jpp"))))
9790 (build-system gnu-build-system)
9791 (native-inputs
9792 `(("pkg-config" ,pkg-config)
9793 ("glib" ,glib "bin")
9794 ("intltool" ,intltool)))
9795 (propagated-inputs
9796 ;; Referred to in .h files and .pc.
9797 `(("glib" ,glib)
9798 ("gtk+" ,gtk+)
9799 ("libxklavier" ,libxklavier)))
9800 (home-page "https://www.gnome.org")
9801 (synopsis "GNOME keyboard configuration library")
9802 (description
9803 "Libgnomekbd is a keyboard configuration library for the GNOME desktop
9804 environment, which can notably display keyboard layouts.")
9805 (license license:lgpl2.0+)))
9806
9807 ;;; This package is no longer maintained:
9808 ;;; https://wiki.gnome.org/Attic/LibUnique
9809 ;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
9810 ;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
9811 (define-public libunique
9812 (package
9813 (name "libunique")
9814 (version "3.0.2")
9815 (source (origin
9816 (method url-fetch)
9817 (uri (string-append "mirror://gnome/sources/" name "/"
9818 (version-major+minor version) "/"
9819 name "-" version ".tar.xz"))
9820 (sha256
9821 (base32
9822 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
9823 (build-system glib-or-gtk-build-system)
9824 (arguments
9825 `(#:configure-flags '("--disable-static"
9826 "--disable-dbus" ; use gdbus
9827 "--enable-introspection")))
9828 (native-inputs
9829 `(("pkg-config" ,pkg-config)
9830 ("gobject-introspection" ,gobject-introspection)
9831 ("glib:bin" ,glib "bin")
9832 ("gtk-doc" ,gtk-doc)))
9833 (propagated-inputs
9834 ;; Referred to in .h files and .pc.
9835 `(("gtk+" ,gtk+)))
9836 (home-page "https://wiki.gnome.org/Attic/LibUnique")
9837 (synopsis "Library for writing single instance applications")
9838 (description
9839 "Libunique is a library for writing single instance applications. If you
9840 launch a single instance application twice, the second instance will either just
9841 quit or will send a message to the running instance. Libunique makes it easy to
9842 write this kind of application, by providing a base class, taking care of all
9843 the IPC machinery needed to send messages to a running instance, and also
9844 handling the startup notification side.")
9845 (license license:lgpl2.1+)))
9846
9847 (define-public gnome-calculator
9848 (package
9849 (name "gnome-calculator")
9850 (version "3.34.1")
9851 (source
9852 (origin
9853 (method url-fetch)
9854 (uri (string-append "mirror://gnome/sources/" name "/"
9855 (version-major+minor version) "/"
9856 name "-" version ".tar.xz"))
9857 (sha256
9858 (base32
9859 "0lbh87255zzggqzai6543qg920y52bl4vs5m5h5087ghzg14hlsd"))))
9860 (build-system meson-build-system)
9861 (arguments '(#:glib-or-gtk? #t))
9862 (native-inputs
9863 `(("gettext" ,gettext-minimal)
9864 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
9865 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
9866 ("itstool" ,itstool)
9867 ("vala" ,vala)
9868 ("pkg-config" ,pkg-config)))
9869 (inputs
9870 `(("glib" ,glib)
9871 ("gtksourceview" ,gtksourceview)
9872 ("libgee" ,libgee)
9873 ("libsoup" ,libsoup)
9874 ("libxml2" ,libxml2)
9875 ("mpc" ,mpc)
9876 ("mpfr" ,mpfr)))
9877 (home-page "https://wiki.gnome.org/Apps/Calculator")
9878 (synopsis "Desktop calculator")
9879 (description
9880 "Calculator is an application that solves mathematical equations and
9881 is suitable as a default application in a Desktop environment.")
9882 (license license:gpl3)))
9883
9884 (define-public xpad
9885 (package
9886 (name "xpad")
9887 (version "5.1.0")
9888 (source
9889 (origin
9890 (method url-fetch)
9891 (uri (string-append "https://launchpad.net/xpad/trunk/"
9892 version "/+download/"
9893 name "-" version ".tar.bz2"))
9894 (sha256
9895 (base32
9896 "0l0g5x8g6dwhf5ksnqqrjjsycy57kcvdslkmsr6bl3vrsjd7qml3"))))
9897 (build-system gnu-build-system)
9898 (native-inputs
9899 `(("autoconf" ,autoconf)
9900 ("automake" ,automake)
9901 ("gtk+:bin" ,gtk+ "bin")
9902 ("intltool" ,intltool)
9903 ("pkg-config" ,pkg-config)))
9904 (inputs
9905 `(("gtksourceview" ,gtksourceview-3)
9906 ("libsm" ,libsm)))
9907 (home-page "https://wiki.gnome.org/Apps/Xpad")
9908 (synopsis "Virtual sticky note")
9909 (description
9910 "Xpad is a sticky note that strives to be simple, fault tolerant,
9911 and customizable. Xpad consists of independent pad windows, each is
9912 basically a text box in which notes can be written.")
9913 (license license:gpl3+)))
9914
9915 (define-public gucharmap
9916 (let ((unicode-files
9917 '(("Blocks.txt"
9918 "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1")
9919 ("DerivedAge.txt"
9920 "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6")
9921 ("NamesList.txt"
9922 "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61")
9923 ("Scripts.txt"
9924 "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx")
9925 ("UnicodeData.txt"
9926 "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap")
9927 ("Unihan.zip"
9928 "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"))))
9929 (package
9930 (name "gucharmap")
9931 (version "12.0.1")
9932 (source
9933 (origin
9934 (method url-fetch)
9935 (uri (string-append "mirror://gnome/sources/" name "/"
9936 (version-major+minor version) "/"
9937 name "-" version ".tar.xz"))
9938 (sha256
9939 (base32
9940 "0m915hm2b2d6r3vs1l80rqpssvg78pv8j6nv54yg62kzknnqmpir"))))
9941 (build-system glib-or-gtk-build-system)
9942 (arguments
9943 `(#:modules ((ice-9 match)
9944 (guix build glib-or-gtk-build-system)
9945 (guix build utils))
9946 #:configure-flags
9947 (list "--with-unicode-data=../unicode-data")
9948 #:phases
9949 (modify-phases %standard-phases
9950 (add-after 'unpack 'prepare-unicode-data
9951 (lambda* (#:key inputs #:allow-other-keys)
9952 (mkdir-p "../unicode-data")
9953 (with-directory-excursion "../unicode-data"
9954 (for-each (match-lambda
9955 ((file _)
9956 (install-file (assoc-ref inputs file) ".")))
9957 ',unicode-files))
9958 #t)))))
9959 (native-inputs
9960 `(("desktop-file-utils" ,desktop-file-utils)
9961 ("glib:bin" ,glib "bin") ; for glib-compile-resources.
9962 ("gobject-introspection" ,gobject-introspection)
9963 ("intltool" ,intltool)
9964 ("itstool" ,itstool)
9965 ("pkg-config" ,pkg-config)
9966 ,@(map (match-lambda
9967 ((file hash)
9968 `(,file
9969 ,(origin
9970 (method url-fetch)
9971 (uri (string-append
9972 "http://www.unicode.org/Public/12.0.0/ucd/"
9973 file))
9974 (sha256 (base32 hash))))))
9975 unicode-files)
9976 ("unzip" ,unzip)))
9977 (inputs
9978 `(("gtk+" ,gtk+)
9979 ("xmllint" ,libxml2)))
9980 (home-page "https://wiki.gnome.org/Apps/Gucharmap")
9981 (synopsis "Unicode character picker and font browser")
9982 (description
9983 "This program allows you to browse through all the available Unicode
9984 characters and categories for the installed fonts, and to examine their
9985 detailed properties. It is an easy way to find the character you might
9986 only know by its Unicode name or code point.")
9987 (license license:gpl3+))))
9988
9989 (define-public bluefish
9990 (package
9991 (name "bluefish")
9992 (version "2.2.12")
9993 (source
9994 (origin
9995 (method url-fetch)
9996 (uri (string-append "https://www.bennewitz.com/bluefish/stable/source/"
9997 "bluefish-" version ".tar.gz"))
9998 (sha256
9999 (base32 "09hgxq139kbkjda5y073lqhq1z1x7cx0j80jh77afrqa3y9c53wl"))))
10000 (build-system gnu-build-system)
10001 (native-inputs
10002 `(("desktop-file-utils" ,desktop-file-utils)
10003 ("intltool" ,intltool)
10004 ("pkg-config" ,pkg-config)))
10005 (inputs
10006 `(("enchant" ,enchant)
10007 ("gtk+" ,gtk+)
10008 ("python" ,python-wrapper)
10009 ("xmllint" ,libxml2)
10010 ("gucharmap" ,gucharmap)))
10011 (home-page "http://bluefish.openoffice.nl")
10012 (synopsis "Web development studio")
10013 (description
10014 "Bluefish is an editor aimed at programmers and web developers,
10015 with many options to write web sites, scripts and other code.
10016 Bluefish supports many programming and markup languages.")
10017 (license license:gpl3+)))
10018
10019 (define-public gnome-system-monitor
10020 (package
10021 (name "gnome-system-monitor")
10022 (version "3.32.1")
10023 (source
10024 (origin
10025 (method url-fetch)
10026 (uri (string-append "mirror://gnome/sources/" name "/"
10027 (version-major+minor version) "/"
10028 name "-" version ".tar.xz"))
10029 (sha256
10030 (base32
10031 "1wd43qdgjav6xamq5z5cy8fri5zr01jga3plc9w95gcia0rk3ha8"))))
10032 (build-system meson-build-system)
10033 (arguments
10034 '(#:glib-or-gtk? #t
10035 #:configure-flags '("-Dsystemd=false")))
10036 (native-inputs
10037 `(("glib:bin" ,glib "bin") ; for glib-mkenums.
10038 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
10039 ("intltool" ,intltool)
10040 ("itstool" ,itstool)
10041 ("libgtop" ,libgtop)
10042 ("polkit" ,polkit)
10043 ("pkg-config" ,pkg-config)))
10044 (inputs
10045 `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
10046 ("gtk+" ,gtk+)
10047 ("gtkmm" ,gtkmm)
10048 ("librsvg" ,librsvg)
10049 ("libxml2" ,libxml2)
10050 ("libwnck" ,libwnck)))
10051 (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
10052 (synopsis "Process viewer and system resource monitor for GNOME")
10053 (description
10054 "GNOME System Monitor is a GNOME process viewer and system monitor with
10055 an attractive, easy-to-use interface. It has features, such as a tree view
10056 for process dependencies, icons for processes, the ability to hide processes,
10057 graphical time histories of CPU/memory/swap usage and the ability to
10058 kill/reinice processes.")
10059 (license license:gpl2+)))
10060
10061 (define-public python-pyatspi
10062 (package
10063 (name "python-pyatspi")
10064 (version "2.34.0")
10065 (source (origin
10066 (method url-fetch)
10067 (uri (string-append
10068 "mirror://gnome/sources/pyatspi/"
10069 (version-major+minor version)
10070 "/pyatspi-" version ".tar.xz"))
10071 (sha256
10072 (base32
10073 "0j3f75j0zd6ca8msg7yr19qsfirqkn9fk8pqbjnlhqrpri455g4p"))))
10074 (build-system gnu-build-system)
10075 (arguments
10076 `(#:phases
10077 (modify-phases %standard-phases
10078 (add-before 'build 'fix-atk-load
10079 (lambda _
10080 (substitute* "pyatspi/__init__.py"
10081 (("from gi.repository import Atspi")
10082 "gi.require_version('Gtk', '3.0')
10083 from gi.repository import Gtk
10084 from gi.repository import Atspi"))
10085 #t)))))
10086 (native-inputs
10087 `(("pkg-config" ,pkg-config)))
10088 (inputs
10089 `(("python" ,python)))
10090 (propagated-inputs
10091 `(("python-pygobject" ,python-pygobject)))
10092 (synopsis "Python client bindings for D-Bus AT-SPI")
10093 (home-page "https://wiki.linuxfoundation.org/accessibility\
10094 /atk/at-spi/at-spi_on_d-bus")
10095 (description
10096 "This package includes a python client library for the AT-SPI D-Bus
10097 accessibility infrastructure.")
10098 (license license:lgpl2.0)
10099 (properties '((upstream-name . "pyatspi")))))
10100
10101 (define-public python2-pyatspi
10102 (package
10103 (inherit python-pyatspi)
10104 (name "python2-pyatspi")
10105 (inputs
10106 `(("python" ,python-2)))
10107 (propagated-inputs
10108 `(("python-pygobject" ,python2-pygobject)))))
10109
10110 (define-public orca
10111 (package
10112 (name "orca")
10113 (version "3.34.1")
10114 (source (origin
10115 (method url-fetch)
10116 (uri (string-append
10117 "mirror://gnome/sources/" name "/"
10118 (version-major+minor version) "/"
10119 name "-" version ".tar.xz"))
10120 (sha256
10121 (base32
10122 "1q38n7hyshkiszmn361skxjynxr31lcms7a1iny6d0zlpmh1vnk4"))))
10123 (build-system glib-or-gtk-build-system)
10124 (arguments
10125 '(#:phases
10126 (modify-phases %standard-phases
10127 (add-before 'configure 'qualify-xkbcomp
10128 (lambda* (#:key inputs #:allow-other-keys)
10129 (let ((xkbcomp (string-append
10130 (assoc-ref inputs "xkbcomp") "/bin/xkbcomp")))
10131 (substitute* "src/orca/orca.py"
10132 (("'xkbcomp'") (format #f "'~a'" xkbcomp))))
10133 #t))
10134 (add-after 'install 'wrap-orca
10135 (lambda* (#:key outputs #:allow-other-keys)
10136 (let* ((out (assoc-ref outputs "out"))
10137 (prog (string-append out "/bin/orca")))
10138 (wrap-program prog
10139 `("GI_TYPELIB_PATH" ":" prefix
10140 (,(getenv "GI_TYPELIB_PATH")))
10141 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
10142 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
10143 `("PYTHONPATH" ":" prefix
10144 (,(getenv "PYTHONPATH")))))
10145 #t)))))
10146 (native-inputs
10147 `(("intltool" ,intltool)
10148 ("itstool" ,itstool)
10149 ("pkg-config" ,pkg-config)
10150 ("xmllint" ,libxml2)))
10151 (inputs
10152 `(("at-spi2-atk" ,at-spi2-atk)
10153 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10154 ("gstreamer" ,gstreamer)
10155 ("gst-plugins-base" ,gst-plugins-base)
10156 ("gst-plugins-good" ,gst-plugins-good)
10157 ("gtk+" ,gtk+)
10158 ("python" ,python)
10159 ("python-pygobject" ,python-pygobject)
10160 ("python-pyatspi" ,python-pyatspi)
10161 ("python-speechd" ,speech-dispatcher)
10162 ("xkbcomp" ,xkbcomp)))
10163 (synopsis
10164 "Screen reader for individuals who are blind or visually impaired")
10165 (home-page "https://wiki.gnome.org/Projects/Orca")
10166 (description
10167 "Orca is a screen reader that provides access to the graphical desktop
10168 via speech and refreshable braille. Orca works with applications and toolkits
10169 that support the Assistive Technology Service Provider Interface (AT-SPI).")
10170 (license license:lgpl2.1+)))
10171
10172 (define-public gspell
10173 (package
10174 (name "gspell")
10175 (version "1.8.2")
10176 (source (origin
10177 (method url-fetch)
10178 (uri (string-append "mirror://gnome/sources/" name "/"
10179 (version-major+minor version) "/"
10180 name "-" version ".tar.xz"))
10181 (sha256
10182 (base32
10183 "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
10184 (patches (search-patches "gspell-dash-test.patch"))))
10185 (build-system glib-or-gtk-build-system)
10186 (arguments
10187 '(#:configure-flags (list "--enable-vala")
10188 #:phases
10189 (modify-phases %standard-phases
10190 (add-before 'check 'pre-check
10191 (lambda* (#:key inputs #:allow-other-keys)
10192 ;; Tests require a running X server.
10193 (system "Xvfb :1 &")
10194 (setenv "DISPLAY" ":1")
10195
10196 ;; For the missing /etc/machine-id.
10197 (setenv "DBUS_FATAL_WARNINGS" "0")
10198
10199 ;; Allow Enchant and its Aspell backend to find the en_US
10200 ;; dictionary.
10201 (setenv "ASPELL_DICT_DIR"
10202 (string-append (assoc-ref inputs "aspell-dict-en")
10203 "/lib/aspell"))
10204 #t)))))
10205 (inputs
10206 `(("gtk+" ,gtk+)
10207 ("glib" ,glib)
10208 ("iso-codes" ,iso-codes)))
10209 (native-inputs
10210 `(("glib" ,glib "bin")
10211 ("gobject-introspection" ,gobject-introspection)
10212 ("pkg-config" ,pkg-config)
10213 ("vala" ,vala) ;for VAPI, needed by Geary
10214 ("xmllint" ,libxml2)
10215
10216 ;; For tests.
10217 ("aspell-dict-en" ,aspell-dict-en)
10218 ("xorg-server" ,xorg-server-for-tests)))
10219 (propagated-inputs
10220 `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
10221 (home-page "https://wiki.gnome.org/Projects/gspell")
10222 (synopsis "GNOME's alternative spell checker")
10223 (description
10224 "gspell provides a flexible API to add spell-checking to a GTK+
10225 application. It provides a GObject API, spell-checking to text entries and
10226 text views, and buttons to choose the language.")
10227 (license license:gpl2+)))
10228
10229 (define-public gnome-planner
10230 (package
10231 (name "gnome-planner")
10232 (version "0.14.6")
10233 (source (origin
10234 (method url-fetch)
10235 (uri (string-append "mirror://gnome/sources/planner/"
10236 (version-major+minor version) "/planner-"
10237 version ".tar.xz"))
10238 (sha256
10239 (base32
10240 "15h6ps58giy5r1g66sg1l4xzhjssl362mfny2x09khdqsvk2j38k"))))
10241 (build-system glib-or-gtk-build-system)
10242 (arguments
10243 ;; Disable the Python bindings because the Planner program functions
10244 ;; without them, and (as of 2017-06-13) we have not packaged all of
10245 ;; packages that are necessary for building the Python bindings.
10246 `(#:configure-flags
10247 (list "--disable-python"
10248 ,@(if (string=? "aarch64-linux" (%current-system))
10249 '("--build=aarch64-unknown-linux-gnu")
10250 '()))))
10251 (inputs
10252 `(("libgnomecanvas" ,libgnomecanvas)
10253 ("libgnomeui" ,libgnomeui)
10254 ("libglade" ,libglade)
10255 ("gnome-vfs" ,gnome-vfs)
10256 ("gconf" ,gconf)
10257 ("libxml2" ,libxml2)
10258 ("libxslt" ,libxslt)
10259 ("gtk+" ,gtk+)
10260 ("glib" ,glib)))
10261 (native-inputs
10262 `(("intltool" ,intltool)
10263 ("scrollkeeper" ,scrollkeeper)
10264 ("pkg-config" ,pkg-config)))
10265 (home-page "https://wiki.gnome.org/Apps/Planner")
10266 (synopsis "Project management software for the GNOME desktop")
10267 (description
10268 "GNOME Planner is a project management tool based on the Work Breakdown
10269 Structure (WBS). Its goal is to enable you to easily plan projects. Based on
10270 the resources, tasks, and constraints that you define, Planner generates
10271 various views into a project. For example, Planner can show a Gantt chart of
10272 the project. It can show a detailed summary of tasks including their
10273 duration, cost, and current progress. It can also show a report of resource
10274 utilization that highlights under-utilized and over-utilized resources. These
10275 views can be printed as PDF or PostScript files, or exported to HTML.")
10276 (license license:gpl2+)))
10277
10278 (define-public lollypop
10279 (package
10280 (name "lollypop")
10281 (version "1.4.6")
10282 (source
10283 (origin
10284 (method url-fetch)
10285 (uri (string-append "https://adishatz.org/lollypop/"
10286 "lollypop-" version ".tar.xz"))
10287 (sha256
10288 (base32 "1hlahr50gsagx1ifcdk4yn43xps6w0vqn0gnd6xckfc7qmg1pgq7"))))
10289 (build-system meson-build-system)
10290 (arguments
10291 `(#:imported-modules
10292 (,@%meson-build-system-modules
10293 (guix build python-build-system))
10294 #:modules
10295 ((guix build meson-build-system)
10296 ((guix build python-build-system) #:prefix python:)
10297 (guix build utils))
10298 #:glib-or-gtk? #t
10299 #:tests? #f ; no test suite
10300 #:phases
10301 (modify-phases %standard-phases
10302 (add-after 'install 'wrap-program
10303 (lambda* (#:key outputs #:allow-other-keys)
10304 (let ((out (assoc-ref outputs "out"))
10305 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
10306 (wrap-program (string-append out "/bin/lollypop")
10307 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
10308 #t))
10309 (add-after 'install 'wrap-python
10310 (assoc-ref python:%standard-phases 'wrap)))))
10311 (native-inputs
10312 `(("intltool" ,intltool)
10313 ("itstool" ,itstool)
10314 ("glib:bin" ,glib "bin") ; For glib-compile-resources
10315 ("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
10316 ("pkg-config" ,pkg-config)))
10317 (inputs
10318 `(("glib-networking" ,glib-networking)
10319 ("gobject-introspection" ,gobject-introspection)
10320 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10321 ("gst-plugins-base" ,gst-plugins-base)
10322 ("libnotify" ,libnotify)
10323 ("libsecret" ,libsecret)
10324 ("libhandy" ,libhandy)
10325 ("libsoup" ,libsoup)
10326 ("python" ,python)
10327 ("python-beautifulsoup4" ,python-beautifulsoup4)
10328 ("python-gst" ,python-gst)
10329 ("python-pil" ,python-pillow)
10330 ("python-pycairo" ,python-pycairo)
10331 ("python-pygobject" ,python-pygobject)
10332 ("python-pylast" ,python-pylast)
10333 ("totem-pl-parser" ,totem-pl-parser)
10334 ("webkitgtk" ,webkitgtk)))
10335 (propagated-inputs
10336 `(;; gst-plugins-base is required to start Lollypop,
10337 ;; the others are required to play streaming.
10338 ("gst-plugins-good" ,gst-plugins-good)
10339 ("gst-plugins-ugly" ,gst-plugins-ugly)))
10340 (home-page "https://wiki.gnome.org/Apps/Lollypop")
10341 (synopsis "GNOME music playing application")
10342 (description
10343 "Lollypop is a music player designed to play well with GNOME desktop.
10344 Lollypop plays audio formats such as mp3, mp4, ogg and flac and gets information
10345 from artists and tracks from the web. It also fetches cover artworks
10346 automatically and it can stream songs from online music services and charts.")
10347 (license license:gpl3+)))
10348
10349 (define-public gnome-video-effects
10350 (package
10351 (name "gnome-video-effects")
10352 (version "0.5.0")
10353 (source (origin
10354 (method url-fetch)
10355 (uri (string-append "mirror://gnome/sources/" name "/"
10356 (version-major+minor version) "/" name "-"
10357 version ".tar.xz"))
10358 (sha256
10359 (base32
10360 "1j6h98whgkcxrh30bwvnxvyqxrxchgpdgqhl0j71xz7x72dqxijd"))))
10361 (build-system meson-build-system)
10362 (native-inputs
10363 `(("gettext" ,gettext-minimal)
10364 ("pkg-config" ,pkg-config)))
10365 (home-page "https://wiki.gnome.org/Projects/GnomeVideoEffects")
10366 (synopsis "Video effects for Cheese and other GNOME applications")
10367 (description
10368 "A collection of GStreamer video filters and effects to be used in
10369 photo-booth-like software, such as Cheese.")
10370 (license license:gpl2+)))
10371
10372 (define-public cheese
10373 (package
10374 (name "cheese")
10375 (version "3.38.0")
10376 (source (origin
10377 (method url-fetch)
10378 (uri (string-append "mirror://gnome/sources/" name "/"
10379 (version-major+minor version) "/" name "-"
10380 version ".tar.xz"))
10381 (sha256
10382 (base32
10383 "0vyim2avlgq3a48rgdfz5g21kqk11mfb53b2l883340v88mp7ll8"))))
10384 (arguments
10385 `(#:glib-or-gtk? #t
10386 ;; Tests require GDK.
10387 #:tests? #f
10388 #:phases
10389 (modify-phases %standard-phases
10390 (add-after 'unpack 'skip-gtk-update-icon-cache
10391 (lambda _
10392 ;; Don't create 'icon-theme.cache'
10393 (substitute* "meson_post_install.py"
10394 (("gtk-update-icon-cache") (which "true")))
10395 #t))
10396 (add-after 'unpack 'patch-docbook-xml
10397 (lambda* (#:key inputs #:allow-other-keys)
10398 ;; Avoid a network connection attempt during the build.
10399 (substitute* '("docs/reference/cheese.xml"
10400 "docs/reference/cheese-docs.xml")
10401 (("http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd")
10402 (string-append (assoc-ref inputs "docbook-xml")
10403 "/xml/dtd/docbook/docbookx.dtd")))
10404 #t))
10405 (add-after 'install 'wrap-cheese
10406 (lambda* (#:key inputs outputs #:allow-other-keys)
10407 (let ((out (assoc-ref outputs "out"))
10408 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
10409 (wrap-program (string-append out "/bin/cheese")
10410 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
10411 #t)))))
10412 (build-system meson-build-system)
10413 (native-inputs
10414 `(("docbook-xsl" ,docbook-xsl)
10415 ("docbook-xml" ,docbook-xml-4.3)
10416 ("gettext" ,gettext-minimal)
10417 ("glib:bin" ,glib "bin")
10418 ("gtk-doc" ,gtk-doc)
10419 ("itstool" ,itstool)
10420 ("libxml2" ,libxml2)
10421 ("libxslt" ,libxslt)
10422 ("pkg-config" ,pkg-config)
10423 ("vala" ,vala)))
10424 (propagated-inputs
10425 `(("gnome-video-effects" ,gnome-video-effects)
10426 ("clutter" ,clutter)
10427 ("clutter-gst" ,clutter-gst)
10428 ("clutter-gtk" ,clutter-gtk)
10429 ("libcanberra" ,libcanberra)
10430 ("gdk-pixbuf" ,gdk-pixbuf)
10431 ("glib" ,glib)
10432 ("gstreamer" ,gstreamer)))
10433 (inputs
10434 `(("gnome-desktop" ,gnome-desktop)
10435 ("gobject-introspection" ,gobject-introspection)
10436 ("gst-plugins-base" ,gst-plugins-base)
10437 ("gst-plugins-good" ,gst-plugins-good)
10438 ("gst-plugins-bad" ,gst-plugins-bad)
10439 ("gtk+" ,gtk+)
10440 ("libx11" ,libx11)
10441 ("libxtst" ,libxtst)))
10442 (home-page "https://wiki.gnome.org/Apps/Cheese")
10443 (synopsis "Webcam photo booth software for GNOME")
10444 (description
10445 "Cheese uses your webcam to take photos and videos. Cheese can also
10446 apply fancy special effects and lets you share the fun with others.")
10447 (license license:gpl2+)))
10448
10449 (define-public passwordsafe
10450 (package
10451 (name "passwordsafe")
10452 (version "3.99.2")
10453 (source
10454 (origin
10455 (method git-fetch)
10456 (uri (git-reference
10457 (url "https://gitlab.gnome.org/World/PasswordSafe")
10458 (commit version)))
10459 (file-name (git-file-name name version))
10460 (sha256
10461 (base32 "0pi2l4gwf8paxm858mxrcsk5nr0c0zw5ycax40mghndb6b1qmmhf"))))
10462 (build-system meson-build-system)
10463 (arguments
10464 `(#:glib-or-gtk? #t
10465 #:phases
10466 (modify-phases %standard-phases
10467 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
10468 (lambda* (#:key outputs #:allow-other-keys)
10469 (let ((prog (string-append (assoc-ref outputs "out")
10470 "/bin/gnome-passwordsafe"))
10471 (pylib (string-append (assoc-ref outputs "out")
10472 "/lib/python"
10473 ,(version-major+minor
10474 (package-version python))
10475 "/site-packages")))
10476 (wrap-program prog
10477 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
10478 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
10479 #t))))))
10480 (native-inputs
10481 `(("desktop-file-utils" ,desktop-file-utils)
10482 ("gettext" ,gettext-minimal)
10483 ("glib:bin" ,glib "bin")
10484 ("gobject-introspection" ,gobject-introspection)
10485 ("gtk+:bin" ,gtk+ "bin")
10486 ("pkg-config" ,pkg-config)))
10487 (inputs
10488 `(("glib" ,glib)
10489 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10490 ("gtk+" ,gtk+)
10491 ("libhandy" ,libhandy-0.0)
10492 ("libpwquality" ,libpwquality)
10493 ("python-pygobject" ,python-pygobject)
10494 ("python-pykeepass" ,python-pykeepass)))
10495 (home-page "https://gitlab.gnome.org/World/PasswordSafe")
10496 (synopsis "Password manager for the GNOME desktop")
10497 (description
10498 "Password Safe is a password manager which makes use of the KeePass v4
10499 format. It integrates perfectly with the GNOME desktop and provides an easy
10500 and uncluttered interface for the management of password databases.")
10501 (license license:gpl3+)))
10502
10503 (define-public sound-juicer
10504 (package
10505 (name "sound-juicer")
10506 (version "3.24.0")
10507 (source
10508 (origin
10509 (method url-fetch)
10510 (uri (string-append "mirror://gnome/sources/" name "/"
10511 (version-major+minor version) "/"
10512 name "-" version ".tar.xz"))
10513 (sha256
10514 (base32
10515 "19qg4xv0f9rkq34lragkmhii1llxsa87llbl28i759b0ks4f6sny"))))
10516 (build-system glib-or-gtk-build-system)
10517 (native-inputs
10518 `(("desktop-file-utils" ,desktop-file-utils)
10519 ("intltool" ,intltool)
10520 ("itstool" ,itstool)
10521 ("pkg-config" ,pkg-config)
10522 ("xmllint" ,libxml2)))
10523 (inputs
10524 `(("gtk+" ,gtk+)
10525 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10526 ("gstreamer" ,gstreamer)
10527 ("gst-plugins-base" ,gst-plugins-base)
10528 ("gst-plugins-good" ,gst-plugins-good)
10529 ("iso-codes" ,iso-codes)
10530 ("libbrasero-media3" ,brasero)
10531 ("libcanberra" ,libcanberra)
10532 ("libdiscid" ,libdiscid)
10533 ("libmusicbrainz" ,libmusicbrainz)
10534 ("neon" ,neon)))
10535 (home-page "https://wiki.gnome.org/Apps/SoundJuicer")
10536 (synopsis "Audio music cd ripper")
10537 (description "Sound Juicer extracts audio from compact discs and convert it
10538 into audio files that a personal computer or digital audio player can play.
10539 It supports ripping to any audio codec supported by a GStreamer plugin, such as
10540 mp3, Ogg Vorbis and FLAC")
10541 (license license:gpl2+)))
10542
10543 (define-public soundconverter
10544 (package
10545 (name "soundconverter")
10546 (version "3.0.2")
10547 (source
10548 (origin
10549 (method url-fetch)
10550 (uri (string-append "https://launchpad.net/soundconverter/trunk/"
10551 version "/+download/"
10552 "soundconverter-" version ".tar.xz"))
10553
10554 (sha256
10555 (base32 "1jv8m82hi23ilrgdznlc1jhp2jm8bw1yrw0chh3qw2l0sixvkl11"))))
10556 (build-system glib-or-gtk-build-system)
10557 (arguments
10558 `(#:imported-modules ((guix build python-build-system)
10559 (guix build glib-or-gtk-build-system)
10560 ,@%gnu-build-system-modules)
10561
10562 #:modules ((guix build glib-or-gtk-build-system)
10563 (guix build utils)
10564 ((guix build gnu-build-system) #:prefix gnu:)
10565 ((guix build python-build-system) #:prefix python:))
10566
10567 #:phases
10568 (modify-phases %standard-phases
10569 (add-after 'install 'wrap-soundconverter-for-python
10570 (assoc-ref python:%standard-phases 'wrap))
10571 (add-after 'install 'wrap-soundconverter
10572 (lambda* (#:key inputs outputs #:allow-other-keys)
10573 (let ((out (assoc-ref outputs "out"))
10574 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
10575 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
10576 (wrap-program (string-append out "/bin/soundconverter")
10577 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
10578 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
10579 #t)))))
10580 (native-inputs
10581 `(("intltool" ,intltool)
10582 ("pkg-config" ,pkg-config)
10583 ("glib:bin" ,glib "bin")))
10584 (inputs
10585 `(("gtk+" ,gtk+)
10586 ("python" ,python)
10587 ("python-pygobject" ,python-pygobject)
10588 ("gstreamer" ,gstreamer)
10589 ("gst-plugins-base" ,gst-plugins-base)))
10590 (home-page "https://soundconverter.org/")
10591 (synopsis "Convert between audio formats with a graphical interface")
10592 (description
10593 "SoundConverter supports converting between many audio formats including
10594 Opus, Ogg Vorbis, FLAC and more. It supports parallel conversion, and
10595 configurable file renaming. ")
10596 (license license:gpl3)))
10597
10598 (define-public workrave
10599 (package
10600 (name "workrave")
10601 (version "1.10.42")
10602 (source
10603 (origin
10604 (method git-fetch)
10605 (uri (git-reference
10606 (url "https://github.com/rcaelers/workrave")
10607 (commit (string-append "v" (string-map
10608 (match-lambda (#\. #\_) (chr chr))
10609 version)))))
10610 (file-name (git-file-name name version))
10611 (sha256
10612 (base32 "03i9kk8r1wgrfkkbwikx8wxaw4r4kn62vismr2zdq5g34fkkjh95"))))
10613 (build-system glib-or-gtk-build-system)
10614 (arguments
10615 ;; The only tests are maintainer tests (in po/), which fail.
10616 `(#:tests? #f))
10617 (inputs `(("glib" ,glib)
10618 ("gtk+" ,gtk+)
10619 ("gdk-pixbuf" ,gdk-pixbuf)
10620 ("gtkmm" ,gtkmm)
10621 ("glibmm" ,glibmm)
10622 ("libx11" ,libx11)
10623 ("libxtst" ,libxtst)
10624 ("dconf" ,dconf)
10625 ("libice" ,libice)
10626 ("libsm" ,libsm)
10627 ("libxscrnsaver" ,libxscrnsaver)))
10628 (native-inputs `(("boost" ,boost)
10629 ("pkg-config" ,pkg-config)
10630 ("gettext" ,gettext-minimal)
10631 ("autoconf" ,autoconf)
10632 ("autoconf-archive" , autoconf-archive)
10633 ("automake" ,automake)
10634 ("libtool" ,libtool)
10635 ("intltool" ,intltool)
10636 ("gobject-introspection" ,gobject-introspection)
10637 ("python3" ,python-3)
10638 ("python-jinja2" ,python-jinja2)))
10639 (synopsis "Tool to help prevent repetitive strain injury (RSI)")
10640 (description
10641 "Workrave is a program that assists in the recovery and prevention of
10642 repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
10643 micro-pauses and rest breaks, and restricts you to your daily limit.")
10644 (home-page "http://www.workrave.org")
10645 (license license:gpl3+)))
10646
10647 (define-public ghex
10648 (package
10649 (name "ghex")
10650 (version "3.18.4")
10651 (source (origin
10652 (method url-fetch)
10653 (uri (string-append "mirror://gnome/sources/ghex/"
10654 (version-major+minor version) "/"
10655 "ghex-" version ".tar.xz"))
10656 (sha256
10657 (base32
10658 "1h1pjrr9wynclfykizqd78dbi785wjz6b63p31k87kjvzy8w3nf2"))))
10659 (build-system meson-build-system)
10660 (arguments
10661 '(#:glib-or-gtk? #t
10662 #:phases
10663 (modify-phases %standard-phases
10664 (add-after 'unpack 'skip-gtk-update-icon-cache
10665 ;; Don't create 'icon-theme.cache'.
10666 (lambda _
10667 (substitute* "meson_post_install.py"
10668 (("gtk-update-icon-cache") (which "true")))
10669 #t)))))
10670 (native-inputs
10671 `(("pkg-config" ,pkg-config)
10672 ("glib:bin" ,glib "bin") ; for glib-compile-schemas
10673 ("gnome-common" ,gnome-common)
10674 ("which" ,which)
10675 ("intltool" ,intltool)
10676 ("yelp-tools" ,yelp-tools)
10677 ("desktop-file-utils" ,desktop-file-utils))) ; for 'desktop-file-validate'
10678 (inputs
10679 `(("atk" ,atk)
10680 ("gtk" ,gtk+)))
10681 (synopsis "GNOME hexadecimal editor")
10682 (description "The GHex program can view and edit files in two ways:
10683 hexadecimal or ASCII. It is useful for editing binary files in general.")
10684 (home-page "https://wiki.gnome.org/Apps/Ghex")
10685 (license license:gpl2)))
10686
10687 (define-public libdazzle
10688 (package
10689 (name "libdazzle")
10690 (version "3.37.1")
10691 (source (origin
10692 (method url-fetch)
10693 (uri (string-append "mirror://gnome/sources/libdazzle/"
10694 (version-major+minor version) "/"
10695 "libdazzle-" version ".tar.xz"))
10696 (sha256
10697 (base32
10698 "03r5cr11dc031qa3694bpgm3lajrhiiln67kvl7vjj4q0scf7w7x"))))
10699 (build-system meson-build-system)
10700 (arguments
10701 `(#:phases
10702 (modify-phases %standard-phases
10703 (add-before 'check 'pre-check
10704 (lambda _
10705 ;; Tests require a running X server.
10706 (system "Xvfb :1 &")
10707 (setenv "DISPLAY" ":1")
10708 #t)))))
10709 (native-inputs
10710 `(("glib" ,glib "bin") ; glib-compile-resources
10711 ("pkg-config" ,pkg-config)
10712 ;; For tests.
10713 ("xorg-server" ,xorg-server-for-tests)))
10714 (inputs
10715 `(("glib" ,glib)
10716 ("gobject-introspection" ,gobject-introspection)
10717 ("gtk+" ,gtk+)
10718 ("vala" ,vala)))
10719 (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
10720 (synopsis "Companion library to GObject and Gtk+")
10721 (description "The libdazzle library is a companion library to GObject and
10722 Gtk+. It provides various features that the authors wish were in the
10723 underlying library but cannot for various reasons. In most cases, they are
10724 wildly out of scope for those libraries. In other cases, they are not quite
10725 generic enough to work for everyone.")
10726 (license license:gpl3+)))
10727
10728 (define-public evolution
10729 (package
10730 (name "evolution")
10731 (version "3.34.2")
10732 (source (origin
10733 (method url-fetch)
10734 (uri (string-append "mirror://gnome/sources/evolution/"
10735 (version-major+minor version) "/"
10736 "evolution-" version ".tar.xz"))
10737 (sha256
10738 (base32
10739 "164vy8h432pjglafn8y2ms4gsvk3kbgc63h5qp0mk5dv4smsp29c"))
10740 (patches (search-patches "evolution-CVE-2020-11879.patch"))))
10741 (build-system cmake-build-system)
10742 (arguments
10743 `(#:imported-modules (,@%cmake-build-system-modules
10744 (guix build glib-or-gtk-build-system))
10745 #:modules ((guix build cmake-build-system)
10746 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
10747 (guix build utils))
10748 #:configure-flags
10749 (list "-DENABLE_PST_IMPORT=OFF" ; libpst is not packaged
10750 "-DENABLE_LIBCRYPTUI=OFF") ; libcryptui hasn't seen a release
10751 ; in four years and cannot be built.
10752 #:phases
10753 (modify-phases %standard-phases
10754 ;; The build system attempts to install user interface modules to the
10755 ;; output directory of the "evolution-data-server" package. This
10756 ;; change redirects that change.
10757 (add-after 'unpack 'patch-ui-module-dir
10758 (lambda* (#:key outputs #:allow-other-keys)
10759 (substitute* "src/modules/alarm-notify/CMakeLists.txt"
10760 (("\\$\\{edsuimoduledir\\}")
10761 (string-append (assoc-ref outputs "out")
10762 "/lib/evolution-data-server/ui-modules")))
10763 #t))
10764 (add-after 'install 'glib-or-gtk-compile-schemas
10765 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
10766 (add-after 'install 'glib-or-gtk-wrap
10767 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
10768 (native-inputs
10769 `(("glib" ,glib "bin") ; glib-mkenums
10770 ("pkg-config" ,pkg-config)
10771 ("intltool" ,intltool)
10772 ("itstool" ,itstool)))
10773 (inputs
10774 `(("enchant" ,enchant)
10775 ("evolution-data-server" ,evolution-data-server) ; must be the same version
10776 ("gcr" ,gcr)
10777 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10778 ("gnome-autoar" ,gnome-autoar)
10779 ("gnome-desktop" ,gnome-desktop)
10780 ("gspell" ,gspell)
10781 ("highlight" ,highlight)
10782 ("libcanberra" ,libcanberra)
10783 ("libgweather" ,libgweather)
10784 ("libnotify" ,libnotify)
10785 ("libsoup" ,libsoup)
10786 ("nss" ,nss)
10787 ("openldap" ,openldap)
10788 ("webkitgtk" ,webkitgtk)
10789 ("ytnef" ,ytnef)))
10790 (home-page "https://gitlab.gnome.org/GNOME/evolution")
10791 (synopsis "Manage your email, contacts and schedule")
10792 (description "Evolution is a personal information management application
10793 that provides integrated mail, calendaring and address book
10794 functionality.")
10795 ;; See COPYING for details.
10796 (license (list license:lgpl2.1 license:lgpl3 ; either one of these
10797 license:openldap2.8 ; addressbook/gui/component/openldap-extract.h
10798 license:lgpl2.1+)))) ; smime/lib/*
10799
10800 (define-public gthumb
10801 (package
10802 (name "gthumb")
10803 (version "3.10.2")
10804 (source (origin
10805 (method url-fetch)
10806 (uri (string-append "mirror://gnome/sources/gthumb/"
10807 (version-major+minor version) "/"
10808 "gthumb-" version ".tar.xz"))
10809 (sha256
10810 (base32
10811 "14sw8d37g1lkp44dwsgyxjjsgh5pnpp4wq00mcy9p3rp30lf9spx"))))
10812 (build-system meson-build-system)
10813 (arguments
10814 `(#:glib-or-gtk? #t
10815 #:configure-flags
10816 ;; Ensure the RUNPATH contains all installed library locations.
10817 (list (string-append "-Dc_link_args=-Wl,-rpath="
10818 (assoc-ref %outputs "out")
10819 "/lib/gthumb/extensions")
10820 (string-append "-Dcpp_link_args=-Wl,-rpath="
10821 (assoc-ref %outputs "out")
10822 "/lib/gthumb/extensions"))))
10823 (native-inputs
10824 `(("pkg-config" ,pkg-config)
10825 ("glib:bin" ,glib "bin") ; for glib-compile-resources
10826 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
10827 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
10828 ("intltool" ,intltool)
10829 ("itstool" ,itstool)))
10830 (inputs
10831 `(("exiv2" ,exiv2)
10832 ("gtk" ,gtk+)
10833 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10834 ("gstreamer" ,gstreamer)
10835 ("clutter" ,clutter)
10836 ("clutter-gst" ,clutter-gst)
10837 ("clutter-gtk" ,clutter-gtk)
10838 ("libjpeg" ,libjpeg-turbo)
10839 ("libtiff" ,libtiff)
10840 ("libraw" ,libraw)))
10841 (home-page "https://wiki.gnome.org/Apps/Gthumb")
10842 (synopsis "GNOME image viewer and browser")
10843 (description "GThumb is an image viewer, browser, organizer, editor and
10844 advanced image management tool")
10845 (license license:gpl2+)))
10846
10847 (define-public terminator
10848 (package
10849 (name "terminator")
10850 (version "2.1.0")
10851 (source
10852 (origin
10853 (method url-fetch)
10854 (uri (string-append "https://github.com/gnome-terminator/terminator/"
10855 "releases/download/v" version "/"
10856 name "-" version ".tar.gz"))
10857 (sha256
10858 (base32
10859 "1vap4li2i24l1iz2q4b8wvhj8flamarf18xcmzq5ik2vzcrisbjy"))))
10860 (build-system python-build-system)
10861 (native-inputs
10862 `(("gettext" ,gettext-minimal)
10863 ("glib:bin" ,glib "bin") ; for glib-compile-resources
10864 ("gobject-introspection" ,gobject-introspection)
10865 ("intltool" ,intltool)
10866 ("pkg-config" ,pkg-config)
10867 ("python-psutil" ,python-psutil)
10868 ("python-pytest-runner" ,python-pytest-runner)
10869 ("python-pytest" ,python-pytest)))
10870 (inputs
10871 `(("cairo" ,cairo)
10872 ("dbus-glib" ,dbus-glib)
10873 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10874 ("gtk+" ,gtk+)
10875 ("python" ,python-wrapper)
10876 ("python-dbus" ,python-dbus)
10877 ("python-notify2" ,python-notify2)
10878 ("python-pycairo" ,python-pycairo)
10879 ("python-pygobject" ,python-pygobject)
10880 ("vte" ,vte)))
10881 (propagated-inputs
10882 `(("python-configobj" ,python-configobj)))
10883 (arguments
10884 ;; One test out of 28 fails due to dbus-python and python-notify; skip
10885 ;; tests.
10886 `(#:tests? #f
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 'unpack 'handle-dbus-python
10895 (lambda _
10896 ;; python-dbus cannot be found but it's really there. See
10897 ;; https://github.com/SpotlightKid/jack-select/issues/2
10898 (substitute* "setup.py"
10899 (("'dbus-python',") ""))
10900 #t))
10901 (add-after 'install 'wrap-program
10902 (lambda* (#:key outputs #:allow-other-keys)
10903 (let ((prog (string-append (assoc-ref outputs "out")
10904 "/bin/terminator"))
10905 (pylib (string-append (assoc-ref outputs "out")
10906 "/lib/python"
10907 ,(version-major+minor
10908 (package-version python))
10909 "/site-packages")))
10910 (wrap-program prog
10911 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
10912 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
10913 #t)))
10914 (add-after 'wrap-program 'glib-or-gtk-wrap
10915 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
10916 (home-page "https://gnome-terminator.org/")
10917 (synopsis "Store and run multiple GNOME terminals in one window")
10918 (description
10919 "Terminator allows you to run multiple GNOME terminals in a grid and
10920 tabs, and it supports drag and drop re-ordering of terminals.")
10921 (license license:gpl2)))
10922
10923 (define-public libhandy
10924 (package
10925 (name "libhandy")
10926 (version "1.2.0")
10927 (source
10928 (origin
10929 (method git-fetch)
10930 (uri (git-reference
10931 (url "https://gitlab.gnome.org/GNOME/libhandy")
10932 (commit version)))
10933 (file-name (git-file-name name version))
10934 (sha256
10935 (base32 "1a8wfgm2jd3gcbk1nzhq6f2xq7vkxdc9qky8p9k0za9gqi7xfg4v"))))
10936 (build-system meson-build-system)
10937 (arguments
10938 `(#:configure-flags
10939 '("-Dglade_catalog=enabled"
10940 "-Dgtk_doc=true")
10941 #:phases
10942 (modify-phases %standard-phases
10943 (add-before 'check 'pre-check
10944 (lambda _
10945 ;; Tests require a running X server.
10946 (system "Xvfb :1 &")
10947 (setenv "DISPLAY" ":1")
10948 #t)))))
10949 (inputs
10950 `(("gtk+" ,gtk+)
10951 ("glade" ,glade3)
10952 ("libxml2" ,libxml2)))
10953 (native-inputs
10954 `(("glib:bin" ,glib "bin")
10955 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
10956 ("vala" ,vala)
10957 ("gtk-doc" ,gtk-doc)
10958 ("pkg-config" ,pkg-config)
10959 ("gettext" ,gettext-minimal)
10960
10961 ;; Test suite dependencies.
10962 ("xorg-server" ,xorg-server-for-tests)
10963 ("hicolor-icon-theme" ,hicolor-icon-theme)))
10964 (home-page "https://gitlab.gnome.org/GNOME/libhandy/")
10965 (synopsis "Library full of GTK+ widgets for mobile phones")
10966 (description "The aim of the handy library is to help with developing user
10967 interfaces for mobile devices using GTK+. It provides responsive GTK+ widgets
10968 for usage on small and big screens.")
10969 (license license:lgpl2.1+)))
10970
10971 (define-public libhandy-0.0
10972 (package
10973 (inherit libhandy)
10974 (version "0.0.13")
10975 (source
10976 (origin
10977 (method git-fetch)
10978 (uri (git-reference
10979 (url "https://gitlab.gnome.org/GNOME/libhandy")
10980 (commit (string-append "v" version))))
10981 (file-name (git-file-name "libhandy" version))
10982 (sha256
10983 (base32 "1y23k623sjkldfrdiwfarpchg5mg58smcy1pkgnwfwca15wm1ra5"))))
10984 (arguments
10985 (substitute-keyword-arguments (package-arguments libhandy)
10986 ((#:configure-flags flags)
10987 '(list "-Dglade_catalog=disabled" "-Dgtk_doc=true"))))))
10988
10989 (define-public libgit2-glib
10990 (package
10991 (name "libgit2-glib")
10992 (version "0.99.0.1")
10993 (source (origin
10994 (method url-fetch)
10995 (uri (string-append "mirror://gnome/sources/" name "/"
10996 (version-major+minor version) "/"
10997 name "-" version ".tar.xz"))
10998 (sha256
10999 (base32
11000 "1pmrcnsa7qdda73c3dxf47733mwprmj5ljpw3acxbj6r8k27anp0"))))
11001 (build-system meson-build-system)
11002 (native-inputs
11003 `(("glib:bin" ,glib "bin") ;; For glib-mkenums
11004 ("gobject-introspection" ,gobject-introspection)
11005 ("pkg-config" ,pkg-config)
11006 ("python-pygobject" ,python-pygobject)
11007 ("python-wrapper" ,python-wrapper)
11008 ("vala" ,vala)))
11009 (inputs
11010 `(("glib" ,glib)
11011 ("libssh2" ,libssh2)))
11012 (propagated-inputs
11013 `(;; In Requires of libgit2-glib.pc.
11014 ("libgit2" ,libgit2)))
11015 (synopsis "GLib wrapper around the libgit2 Git access library")
11016 (description "libgit2-glib is a GLib wrapper library around the libgit2 Git
11017 access library. It only implements the core plumbing functions, not really the
11018 higher level porcelain stuff.")
11019 (home-page "https://wiki.gnome.org/Projects/Libgit2-glib")
11020 (license license:gpl2+)))
11021
11022 (define-public gitg
11023 (package
11024 (name "gitg")
11025 (version "3.32.1")
11026 (source (origin
11027 (method url-fetch)
11028 (uri (string-append "mirror://gnome/sources/" name "/"
11029 (version-major+minor version) "/"
11030 name "-" version ".tar.xz"))
11031 (sha256
11032 (base32
11033 "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914"))))
11034 (build-system meson-build-system)
11035 (arguments
11036 `(#:glib-or-gtk? #t
11037 #:phases
11038 (modify-phases %standard-phases
11039 (add-after 'unpack 'disable-post-install-partially
11040 (lambda _
11041 (substitute* "meson_post_install.py"
11042 (("'python'") ; there are no python sources to compile
11043 (string-append "'" (which "true") "'"))
11044 (("gtk-update-icon-cache") (which "true")))
11045 #t))
11046 (add-after 'unpack 'fix-test-sources
11047 (lambda _
11048 (substitute* "tests/libgitg/test-commit.vala"
11049 (("/bin/bash") (which "bash")))
11050 #t))
11051 (add-after 'glib-or-gtk-wrap 'wrap-typelib
11052 (lambda* (#:key outputs #:allow-other-keys)
11053 (let ((prog (string-append (assoc-ref outputs "out")
11054 "/bin/gitg")))
11055 (wrap-program prog
11056 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11057 #t))))))
11058 (inputs
11059 `(("glib" ,glib)
11060 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11061 ("gtk+" ,gtk+)
11062 ("gtkspell3" ,gtkspell3)
11063 ("gtksourceview" ,gtksourceview-3)
11064 ("json-glib" ,json-glib)
11065 ("libdazzle" ,libdazzle)
11066 ("libgee" ,libgee)
11067 ("libgit2-glib" ,libgit2-glib)
11068 ("libpeas" ,libpeas)
11069 ("libsecret" ,libsecret)
11070 ("libsoup" ,libsoup)
11071 ("libxml2" ,libxml2)))
11072 (native-inputs
11073 `(("glib:bin" ,glib "bin")
11074 ("gtk+:bin" ,gtk+ "bin")
11075 ("gobject-introspection" ,gobject-introspection)
11076 ("intltool" ,intltool)
11077 ("pkg-config" ,pkg-config)
11078 ("vala" ,vala)))
11079 (synopsis "Graphical user interface for git")
11080 (description
11081 "gitg is a graphical user interface for git. It aims at being a small,
11082 fast and convenient tool to visualize the history of git repositories.
11083 Besides visualization, gitg also provides several utilities to manage your
11084 repository and commit your work.")
11085 (home-page "https://wiki.gnome.org/Apps/Gitg")
11086 (license license:gpl2+)))
11087
11088 (define-public gamin
11089 (package
11090 (name "gamin")
11091 (version "0.1.10")
11092 (source (origin
11093 (method url-fetch)
11094 (uri (string-append "mirror://gnome/sources/" name "/"
11095 (version-major+minor version) "/"
11096 name "-" version ".tar.bz2"))
11097 (sha256
11098 (base32
11099 "02n1zr9y8q9lyczhcz0nxar1vmf8p2mmbw8kq0v43wg21jr4i6d5"))))
11100 (build-system gnu-build-system)
11101 (arguments
11102 `(#:phases
11103 (modify-phases %standard-phases
11104 (add-after 'unpack 'remove-deprecated-macro
11105 (lambda _
11106 (substitute* '("server/gam_node.c"
11107 "server/gam_subscription.h"
11108 "server/gam_node.h"
11109 "server/gam_subscription.c")
11110 (("G_CONST_RETURN") "const"))
11111 #t)))))
11112 (inputs
11113 `(("glib" ,glib)))
11114 (native-inputs
11115 `(("intltool" ,intltool)
11116 ("pkg-config" ,pkg-config)))
11117 (home-page "https://people.gnome.org/~veillard/gamin/")
11118 (synopsis "File alteration monitor")
11119 (description
11120 "Gamin is a file and directory monitoring system defined to be a subset
11121 of the FAM (File Alteration Monitor) system. This is a service provided by a
11122 library which detects when a file or a directory has been modified.")
11123 (license license:gpl2+)))
11124
11125 (define-public gnome-mahjongg
11126 (package
11127 (name "gnome-mahjongg")
11128 (version "3.35.1")
11129 (source (origin
11130 (method git-fetch)
11131 (uri (git-reference
11132 (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
11133 (commit version)))
11134 (file-name (git-file-name name version))
11135 (sha256
11136 (base32
11137 "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
11138 (build-system meson-build-system)
11139 (arguments
11140 `(#:glib-or-gtk? #t))
11141 (native-inputs
11142 `(("appstream-glib" ,appstream-glib)
11143 ("gettext" ,gettext-minimal)
11144 ("glib:bin" ,glib "bin") ;; For glib-compile-resources
11145 ("gtk+" ,gtk+ "bin") ;; For gtk-update-icon-cache
11146 ("itstool" ,itstool)
11147 ("pkg-config" ,pkg-config)
11148 ("vala" ,vala)))
11149 (propagated-inputs
11150 `(("dconf" ,dconf)))
11151 (inputs
11152 `(("glib" ,glib)
11153 ("gtk+" ,gtk+)
11154 ("librsvg" ,librsvg)))
11155 (synopsis "Mahjongg tile-matching game")
11156 (description "GNOME Mahjongg is a game based on the classic Chinese
11157 tile-matching game Mahjong. It features multiple board layouts, tile themes,
11158 and a high score table.")
11159 (home-page "https://wiki.gnome.org/Apps/Mahjongg")
11160 (license license:gpl2+)))
11161
11162 (define-public gnome-themes-extra
11163 (package
11164 (name "gnome-themes-extra")
11165 (version "3.28")
11166 (source
11167 (origin
11168 (method url-fetch)
11169 (uri (string-append "mirror://gnome/sources/" name "/"
11170 (version-major+minor version) "/" name "-"
11171 version ".tar.xz"))
11172 (sha256
11173 (base32
11174 "06aqg9asq2vqi9wr29bs4v8z2bf4manhbhfghf4nvw01y2zs0jvw"))))
11175 (build-system gnu-build-system)
11176 (arguments
11177 '(#:configure-flags
11178 ;; Don't create 'icon-theme.cache'.
11179 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
11180 (true (string-append coreutils "/bin/true")))
11181 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
11182 (native-inputs
11183 `(("glib:bin" ,glib "bin")
11184 ("intltool" ,intltool)
11185 ("pkg-config" ,pkg-config)))
11186 (inputs
11187 `(("glib" ,glib)
11188 ("gtk+" ,gtk+)
11189 ("gtk+-2" ,gtk+-2)
11190 ("librsvg" ,librsvg)
11191 ("libxml2" ,libxml2)))
11192 (home-page "https://gitlab.gnome.org/GNOME/gnome-themes-extra")
11193 (synopsis "GNOME Extra Themes")
11194 (description "This package provides themes and related elements that don't
11195 really fit in other upstream packages. It offers legacy support for GTK+ 2
11196 versions of Adwaita, Adwaita-dark and HighContrast themes. It also provides
11197 index files needed for Adwaita to be used outside of GNOME.")
11198 (license license:lgpl2.1+)))
11199
11200 (define-public gnote
11201 (package
11202 (name "gnote")
11203 (version "3.38.1")
11204 (source
11205 (origin
11206 (method url-fetch)
11207 (uri (string-append "mirror://gnome/sources/" name "/"
11208 (version-major+minor version) "/"
11209 "gnote-" version ".tar.xz"))
11210 (sha256
11211 (base32 "1adjfjhmsm2d33999khjyzvli6kiz1jlzavn77jhd49kfzhxa9y4"))))
11212 (build-system glib-or-gtk-build-system)
11213 (native-inputs
11214 `(("desktop-file-utils" ,desktop-file-utils)
11215 ("glib:bin" ,glib "bin")
11216 ("gobject-introspection" ,gobject-introspection)
11217 ("intltool" ,intltool)
11218 ("itstool" ,itstool)
11219 ("pkg-config" ,pkg-config)
11220 ("unittest-cpp" ,unittest-cpp))) ;FIXME: not found by pkg-config
11221 (inputs
11222 `(("glibmm" ,glibmm)
11223 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11224 ("gspell" ,gspell)
11225 ("gtk+" ,gtk+)
11226 ("gtkmm" ,gtkmm)
11227 ("libsecret" ,libsecret)
11228 ("libuuid" ,util-linux "lib")
11229 ("libxml2" ,libxml2)
11230 ("libxslt" ,libxslt)))
11231 (synopsis "Note-taking application for the GNOME desktop")
11232 (description
11233 "Gnote is a note-taking application written for the GNOME desktop
11234 environment.")
11235 (home-page "https://wiki.gnome.org/Apps/Gnote")
11236 (license license:gpl3+)))
11237
11238 (define-public polari
11239 (package
11240 (name "polari")
11241 (version "3.36.3")
11242 (source (origin
11243 (method url-fetch)
11244 (uri (string-append "mirror://gnome/sources/polari/"
11245 (version-major+minor version)
11246 "/polari-" version ".tar.xz"))
11247 (sha256
11248 (base32
11249 "0fpmrvhd40yay051bzn4x3gsrzdv42nav0pm5ps0np8wk1z689jg"))))
11250 (build-system meson-build-system)
11251 (arguments
11252 `(#:glib-or-gtk? #t
11253 #:phases
11254 (modify-phases %standard-phases
11255 (add-after 'unpack 'skip-gtk-update-icon-cache
11256 (lambda _
11257 (substitute* "meson/meson-postinstall.sh"
11258 (("gtk-update-icon-cache") (which "true")))
11259 #t))
11260 (add-after 'glib-or-gtk-wrap 'wrap-typelib
11261 (lambda* (#:key outputs #:allow-other-keys)
11262 (let ((prog (string-append (assoc-ref outputs "out")
11263 "/bin/polari")))
11264 (wrap-program prog
11265 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11266 #t))))))
11267 (inputs
11268 `(("glib" ,glib)
11269 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11270 ("gspell" ,gspell)
11271 ("gtk+" ,gtk+)
11272 ("gjs" ,gjs)
11273 ("libsecret" ,libsecret)
11274 ("libsoup" ,libsoup)
11275 ("telepathy-glib" ,telepathy-glib)
11276 ("telepathy-logger" ,telepathy-logger)))
11277 (native-inputs
11278 `(("glib:bin" ,glib "bin")
11279 ("gobject-introspection" ,gobject-introspection)
11280 ("intltool" ,intltool)
11281 ("pkg-config" ,pkg-config)
11282 ("yelp-tools" ,yelp-tools)))
11283 (propagated-inputs
11284 `(("telepathy-idle" ,telepathy-idle)
11285 ("telepathy-mission-control" ,telepathy-mission-control)))
11286 (synopsis "Simple IRC Client")
11287 (description
11288 "Polari is a simple Internet Relay Chat (IRC) client that is designed to
11289 integrate seamlessly with the GNOME desktop.")
11290 (home-page "https://wiki.gnome.org/Apps/Polari")
11291 (license license:gpl2+)))
11292
11293 (define-public gnome-boxes
11294 (package
11295 (name "gnome-boxes")
11296 (version "3.36.6")
11297 (source
11298 (origin
11299 (method url-fetch)
11300 (uri (string-append "mirror://gnome/sources/gnome-boxes/"
11301 (version-major+minor version) "/"
11302 "gnome-boxes-" version ".tar.xz"))
11303 (sha256
11304 (base32 "0c3cw90xqqcpacc2z06ljs0gg8saxizfgjzg9alhpwgz3gl4c5pg"))))
11305 (build-system meson-build-system)
11306 (arguments
11307 '(#:glib-or-gtk? #t
11308 #:configure-flags (list "-Drdp=false"
11309 (string-append "-Dc_link_args=-Wl,-rpath="
11310 (assoc-ref %outputs "out")
11311 "/lib/gnome-boxes"))))
11312 (native-inputs
11313 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
11314 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
11315 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
11316 ("itstool" ,itstool)
11317 ("intltool" ,intltool)
11318 ("vala" ,vala)
11319 ("pkg-config" ,pkg-config)))
11320 (inputs
11321 `(("libarchive" ,libarchive)
11322 ("glib-networking" ,glib-networking) ;for TLS support
11323 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11324 ("gtk" ,gtk+)
11325 ("gtk-vnc" ,gtk-vnc)
11326 ("libosinfo" ,libosinfo)
11327 ("libsecret" ,libsecret)
11328 ("libsoup" ,libsoup)
11329 ("libusb" ,libusb)
11330 ("libvirt" ,libvirt)
11331 ("libvirt-glib" ,libvirt-glib)
11332 ("libxml" ,libxml2)
11333 ("spice-gtk" ,spice-gtk)
11334 ("sparql-query" ,sparql-query)
11335 ("vte" ,vte)
11336 ("webkitgtk" ,webkitgtk)
11337 ("tracker" ,tracker)
11338 ("libgudev" ,libgudev)))
11339 (home-page "https://wiki.gnome.org/Apps/Boxes")
11340 (synopsis "View, access, and manage remote and virtual systems")
11341 (description "GNOME Boxes is a simple application to view, access, and
11342 manage remote and virtual systems. Note that this application requires the
11343 @code{libvirt} and @code{virtlog} daemons to run. Use the command
11344 @command{info '(guix) Virtualization Services'} to learn how to configure
11345 these services on the Guix System.")
11346 (license (list
11347 ;; For data/icons/empty-boxes.png.
11348 license:cc-by2.0
11349 ;; For all others.
11350 license:lgpl2.0+))))
11351
11352 (define-public geary
11353 (package
11354 (name "geary")
11355 (version "3.34.1")
11356 (source (origin
11357 (method git-fetch)
11358 (uri (git-reference
11359 (url "https://gitlab.gnome.org/GNOME/geary")
11360 (commit version)))
11361 (file-name (git-file-name name version))
11362 (sha256
11363 (base32
11364 "01cc921kyh3zxz07biqbdzkjgmdcc36kwjyajm4y382a75cl5zg7"))
11365 (patches (search-patches "geary-CVE-2020-24661.patch"))))
11366 (build-system meson-build-system)
11367 (arguments
11368 `(#:glib-or-gtk? #t
11369 #:phases (modify-phases %standard-phases
11370 (add-after 'unpack 'disable-failing-tests
11371 (lambda _
11372 (substitute* "test/meson.build"
11373 (("test\\('client-tests', geary_test_client_bin\\)")
11374 ""))
11375 #t))
11376 (add-after 'unpack 'disable-postinstall-script
11377 (lambda _
11378 (substitute* "meson.build"
11379 (("meson.add_install_script\\(\
11380 join_paths\\('build-aux', 'post_install.py'\\)\\)")
11381 ""))
11382 #t))
11383 (add-before 'check 'setup-xvfb
11384 (lambda _
11385 (system "Xvfb :1 &")
11386 (setenv "DISPLAY" ":1")
11387 #t)))))
11388 (inputs
11389 `(("enchant" ,enchant)
11390 ("folks" ,folks)
11391 ("gcr" ,gcr)
11392 ("glib" ,glib)
11393 ("gmime" ,gmime-2.6)
11394 ("gnome-online-accounts:lib"
11395 ,gnome-online-accounts "lib")
11396 ("gspell" ,gspell)
11397 ("gtk+" ,gtk+)
11398 ("iso-codes" ,iso-codes)
11399 ("json-glib" ,json-glib)
11400 ("libcanberra" ,libcanberra)
11401 ("libgee" ,libgee)
11402 ("libhandy" ,libhandy-0.0)
11403 ("libpeas" ,libpeas)
11404 ("libsecret" ,libsecret)
11405 ("libunwind" ,libunwind)
11406 ("sqlite" ,sqlite)
11407 ("webkitgtk" ,webkitgtk)
11408 ("ytnef" ,ytnef)))
11409 (native-inputs
11410 `(("appstream-glib" ,appstream-glib)
11411 ("cmake-minimal" ,cmake-minimal)
11412 ("desktop-file-utils" ,desktop-file-utils)
11413 ("gettext" ,gettext-minimal)
11414 ("glib:bin" ,glib "bin")
11415 ("gobject-introspection" ,gobject-introspection)
11416 ("itstool" ,itstool)
11417 ("libarchive" ,libarchive)
11418 ("libxml2" ,libxml2)
11419 ("pkg-config" ,pkg-config)
11420 ("vala" ,vala)
11421 ("xvfb" ,xorg-server-for-tests)))
11422 (synopsis "GNOME email application built around conversations")
11423 (description
11424 "Geary collects related messages together into conversations,
11425 making it easy to find and follow your discussions. Full-text and keyword
11426 search makes it easy to find the email you are looking for. Geary's
11427 full-featured composer lets you send rich, styled text with images, links, and
11428 lists, but also send lightweight, easy to read text messages. Geary
11429 automatically picks up your existing GNOME Online Accounts, and adding more is
11430 easy. Geary has a clean, fast, modern interface that works like you want it
11431 to.")
11432 (home-page "https://wiki.gnome.org/Apps/Geary")
11433 (license (list
11434 ;; geary
11435 license:lgpl2.1+
11436 ;; icons
11437 license:cc-by3.0
11438 license:cc-by-sa3.0
11439 license:public-domain
11440 ;; snowball
11441 license:bsd-2))))
11442
11443 (define-public glabels
11444 (package
11445 (name "glabels")
11446 (version "3.4.1")
11447 (source
11448 (origin
11449 (method url-fetch)
11450 (uri (string-append "mirror://gnome/sources/" name "/"
11451 (version-major+minor version) "/"
11452 "glabels-" version ".tar.xz"))
11453 (sha256
11454 (base32 "0f2rki8i27pkd9r0gz03cdl1g4vnmvp0j49nhxqn275vi8lmgr0q"))))
11455 (build-system glib-or-gtk-build-system)
11456 (native-inputs
11457 `(("gettext" ,gettext-minimal)
11458 ("glib:bin" ,glib "bin")
11459 ("intltool" ,intltool)
11460 ("itstool" ,itstool)
11461 ("pkg-config" ,pkg-config)))
11462 (inputs
11463 `(("gtk+" ,gtk+)
11464 ("librsvg" ,librsvg)
11465 ("libxml2" ,libxml2)))
11466 (home-page "https://glabels.org/")
11467 (synopsis "Program for creating labels and business cards")
11468 (description
11469 "gLabels is a program for creating labels and business cards. It is
11470 designed to work with various laser/ink-jet peel-off label and business
11471 card sheets that you’ll find at most office supply stores.")
11472 (license license:gpl3+)))
11473
11474 ;; Version 3.38.0 is out but requires tepl>=5 which requires glib>=2.64.
11475 (define-public gnome-latex
11476 (package
11477 (name "gnome-latex")
11478 (version "3.36.0")
11479 (source
11480 (origin
11481 (method url-fetch)
11482 (uri (string-append "mirror://gnome/sources/" name "/"
11483 (version-major+minor version) "/"
11484 "gnome-latex-" version ".tar.xz"))
11485 (sha256
11486 (base32 "1869kr1zhcp04mzbi67lwgk497w840dbbc7427i9yh9b9s7j6mqn"))))
11487 (build-system glib-or-gtk-build-system)
11488 (native-inputs
11489 `(("gettext" ,gettext-minimal)
11490 ("glib:bin" ,glib "bin")
11491 ("gobject-introspection" ,gobject-introspection)
11492 ("gtk-doc" ,gtk-doc)
11493 ("intltool" ,intltool)
11494 ("itstool" ,itstool)
11495 ("pkg-config" ,pkg-config)
11496 ("vala" ,vala)))
11497 (inputs
11498 `(("amtk" ,amtk)
11499 ("dconf" ,dconf)
11500 ("glib" ,glib)
11501 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11502 ("gspell" ,gspell)
11503 ("gtk+" ,gtk+)
11504 ("gtksourceview" ,gtksourceview)
11505 ("libgee" ,libgee)
11506 ("tepl" ,tepl)
11507 ("uchardet" ,uchardet)))
11508 (home-page "https://wiki.gnome.org/Apps/GNOME-LaTeX")
11509 (synopsis "LaTeX editor for the GNOME desktop")
11510 (description
11511 "GNOME LaTeX is a LaTeX editor for the GNOME desktop. It has features
11512 such as build tools, completion of LaTeX commands, structure navigation,
11513 symbol tables, document templates, project management, spell-checking, menus
11514 and toolbars.")
11515 (license license:gpl3+)))
11516
11517 (define-public setzer
11518 (package
11519 (name "setzer")
11520 (version "0.4.1")
11521 (source
11522 (origin
11523 (method git-fetch)
11524 (uri (git-reference
11525 (url "https://github.com/cvfosammmm/Setzer")
11526 (commit (string-append "v" version))))
11527 (file-name (git-file-name name version))
11528 (sha256
11529 (base32 "1rcx2c07jg1ij81pnvg3px49hfbjmkagn68d3gp79z3gcajbp2av"))))
11530 (build-system meson-build-system)
11531 (arguments
11532 `(#:glib-or-gtk? #t
11533 #:phases
11534 (modify-phases %standard-phases
11535 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
11536 (lambda* (#:key outputs #:allow-other-keys)
11537 (let ((prog (string-append (assoc-ref outputs "out")
11538 "/bin/setzer"))
11539 (pylib (string-append (assoc-ref outputs "out")
11540 "/lib/python"
11541 ,(version-major+minor
11542 (package-version python))
11543 "/site-packages")))
11544 (wrap-program prog
11545 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
11546 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11547 #t))))))
11548 (native-inputs
11549 `(("desktop-file-utils" ,desktop-file-utils)
11550 ("gettext" ,gettext-minimal)
11551 ("glib:bin" ,glib "bin")
11552 ("gobject-introspection" ,gobject-introspection)
11553 ("gtk+:bin" ,gtk+ "bin")))
11554 (inputs
11555 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11556 ("gspell" ,gspell)
11557 ("gtk+" ,gtk+)
11558 ("gtksourceview" ,gtksourceview)
11559 ("pango" ,pango)
11560 ("poppler" ,poppler)
11561 ("python-pdfminer" ,python-pdfminer-six)
11562 ("python-pycairo" ,python-pycairo)
11563 ("python-pygobject" ,python-pygobject)
11564 ("python-pyxdg" ,python-pyxdg)
11565 ("webkitgtk" ,webkitgtk)
11566 ("xdg-utils" ,xdg-utils)))
11567 (home-page "https://www.cvfosammmm.org/setzer/")
11568 (synopsis "LaTeX editor written in Python with GTK+")
11569 (description
11570 "Setzer is a simple yet full-featured LaTeX editor written in Python with
11571 GTK+. It integrates well with the GNOME desktop environment.")
11572 (license license:gpl3+)))
11573
11574 (define-public libratbag
11575 (package
11576 (name "libratbag")
11577 (version "0.14")
11578 (source
11579 (origin
11580 (method git-fetch)
11581 (uri (git-reference
11582 (url "https://github.com/libratbag/libratbag")
11583 (commit (string-append "v" version))))
11584 (file-name (git-file-name name version))
11585 (sha256
11586 (base32 "1fpwp2sj8mf98bqasq2h8qwgprxi7k3iw33gcfid3d1lbyiacw0x"))))
11587 (build-system meson-build-system)
11588 (arguments
11589 `(#:configure-flags
11590 (list "-Dsystemd=false"
11591 "-Dlogind-provider=elogind")
11592 #:phases
11593 (modify-phases %standard-phases
11594 (add-after 'install 'wrap
11595 (lambda* (#:key inputs outputs #:allow-other-keys)
11596 (let* ((out (assoc-ref outputs "out"))
11597 (site (string-append
11598 "/lib/python"
11599 ,(version-major+minor (package-version python))
11600 "/site-packages"))
11601 (evdev (string-append
11602 (assoc-ref inputs "python-evdev") site))
11603 (pygo (string-append
11604 (assoc-ref inputs "python-pygobject") site))
11605 (python-wrap
11606 `("PYTHONPATH" = (,evdev ,pygo))))
11607 (wrap-program (string-append out "/bin/" "ratbagctl")
11608 python-wrap)
11609 #t))))))
11610 (native-inputs
11611 `(("check" ,check)
11612 ("pkg-config" ,pkg-config)
11613 ("swig" ,swig)
11614 ("valgrind" ,valgrind)))
11615 (inputs
11616 `(("glib" ,glib)
11617 ("json-glib" ,json-glib)
11618 ("libevdev" ,libevdev)
11619 ("libsystemd" ,elogind)
11620 ("libunistring" ,libunistring)
11621 ("python-evdev" ,python-evdev)
11622 ("python-pygobject" ,python-pygobject)
11623 ("udev" ,eudev)))
11624 (home-page "https://github.com/libratbag/libratbag")
11625 (synopsis "DBus daemon and utility for configuring gaming mice")
11626 (description "libratbag provides @command{ratbagd}, a DBus daemon to
11627 configure input devices, mainly gaming mice. The daemon provides a generic
11628 way to access the various features exposed by these mice and abstracts away
11629 hardware-specific and kernel-specific quirks. There is also the
11630 @command{ratbagctl} command line interface for configuring devices.
11631
11632 libratbag currently supports devices from Logitech, Etekcity, GSkill, Roccat,
11633 Steelseries.
11634
11635 The ratbagd DBus service can be enabled by adding the following service to
11636 your operating-system definition:
11637
11638 (simple-service 'ratbagd dbus-root-service-type (list libratbag))")
11639 (license license:expat)))
11640
11641 (define-public piper
11642 (package
11643 (name "piper")
11644 (version "0.5.1")
11645 (source
11646 (origin
11647 (method git-fetch)
11648 (uri (git-reference
11649 (url "https://github.com/libratbag/piper")
11650 (commit version)))
11651 (sha256
11652 (base32 "1nfjnsiwg2rs6gkjsxzhr2708i6di149dgwq3cf6l12rxqpb8arj"))
11653 (file-name (git-file-name name version))))
11654 (build-system meson-build-system)
11655 (native-inputs
11656 `(("gettext" ,gettext-minimal)
11657 ("glib:bin" ,glib "bin")
11658 ("gobject-introspection" ,gobject-introspection)
11659 ("pkg-config" ,pkg-config)
11660 ("python-flake8" ,python-flake8)))
11661 (inputs
11662 `(("adwaita-icon-theme" ,adwaita-icon-theme)
11663 ("gtk" ,gtk+)
11664 ("gtk:bin" ,gtk+ "bin")
11665 ("librsvg" ,librsvg)
11666 ("python-evdev" ,python-evdev)
11667 ("python-lxml" ,python-lxml)
11668 ("python-pycairo" ,python-pycairo)
11669 ("python-pygobject" ,python-pygobject)))
11670 (arguments
11671 `(#:imported-modules ((guix build python-build-system)
11672 ,@%meson-build-system-modules)
11673 #:modules (((guix build python-build-system) #:prefix python:)
11674 (guix build meson-build-system)
11675 (guix build utils))
11676 #:tests? #f ;; The flake8 test fails trying to validate piper.in as code.
11677 #:phases
11678 (modify-phases %standard-phases
11679 (add-after 'unpack 'dont-update-gtk-icon-cache
11680 (lambda _
11681 (substitute* "meson.build"
11682 (("meson.add_install_script('meson_install.sh')") ""))
11683 #t))
11684 ;; TODO: Switch to wrap-script when it is fixed.
11685 (add-after 'install 'wrap-python
11686 (assoc-ref python:%standard-phases 'wrap))
11687 (add-after 'wrap-python 'wrap
11688 (lambda* (#:key outputs #:allow-other-keys)
11689 (wrap-program
11690 (string-append (assoc-ref outputs "out" )"/bin/piper")
11691 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11692 #t)))))
11693 (home-page "https://github.com/libratbag/piper/")
11694 (synopsis "Configure bindings and LEDs on gaming mice")
11695 (description "Piper is a GTK+ application for configuring gaming mice with
11696 onboard configuration for key bindings via libratbag. Piper requires
11697 a @command{ratbagd} daemon running with root privileges. It can be run
11698 manually as root, but is preferably configured as a DBus service that can
11699 launch on demand. This can be configured by enabling the following service,
11700 provided there is a DBus service present:
11701
11702 (simple-service 'ratbagd dbus-root-service-type (list libratbag))")
11703 (license license:gpl2)))
11704
11705 (define-public parlatype
11706 (package
11707 (name "parlatype")
11708 (version "2.1")
11709 (source
11710 (origin
11711 (method git-fetch)
11712 (uri (git-reference
11713 (url "https://github.com/gkarsay/parlatype")
11714 (commit (string-append "v" version))))
11715 (file-name (git-file-name name version))
11716 (sha256
11717 (base32 "1c15ja0rwz3jj8bnqdq0nmqka39iwrhy8krdv2a2x8nl4shfpmv0"))))
11718 (build-system meson-build-system)
11719 (arguments
11720 `(#:glib-or-gtk? #t
11721 #:tests? #f ;require internet access
11722 #:phases
11723 (modify-phases %standard-phases
11724 (add-after 'install 'wrap-parlatype
11725 ;; Add gstreamer plugin provided in this package to system's
11726 ;; plugins.
11727 (lambda* (#:key outputs #:allow-other-keys)
11728 (let* ((out (assoc-ref outputs "out"))
11729 (gst-plugin-path (string-append
11730 out "/lib/gstreamer-1.0/"
11731 ":"
11732 (getenv "GST_PLUGIN_SYSTEM_PATH"))))
11733 (wrap-program (string-append out "/bin/parlatype")
11734 `("GST_PLUGIN_SYSTEM_PATH" ":" = (,gst-plugin-path))))
11735 #t)))))
11736 (native-inputs
11737 `(("appstream-glib" ,appstream-glib)
11738 ("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
11739 ("gettext" ,gettext-minimal)
11740 ("glib" ,glib "bin") ;for glib-compile-resources
11741 ("pkg-config" ,pkg-config)
11742 ("yelp-tools" ,yelp-tools)))
11743 (inputs
11744 `(("gst-plugins-base" ,gst-plugins-base)
11745 ("gst-plugins-good" ,gst-plugins-good)
11746 ("gstreamer" ,gstreamer)
11747 ("gtk+" ,gtk+)
11748 ("pocketsphinx" ,pocketsphinx)
11749 ("pulseaudio" ,pulseaudio)
11750 ("sphinxbase" ,sphinxbase)))
11751 (home-page "http://gkarsay.github.io/parlatype/")
11752 (synopsis "GNOME audio player for transcription")
11753 (description "Parlatype is an audio player for the GNOME desktop
11754 environment. Its main purpose is the manual transcription of spoken
11755 audio files.")
11756 (license license:gpl3+)))
11757
11758 (define-public jsonrpc-glib
11759 (package
11760 (name "jsonrpc-glib")
11761 (version "3.34.0")
11762 (source (origin
11763 (method url-fetch)
11764 (uri (string-append "mirror://gnome/sources/" name "/"
11765 (version-major+minor version) "/"
11766 name "-" version ".tar.xz"))
11767 (sha256
11768 (base32
11769 "0j05x4xv2cp3cbmp30m68z8g4rdw7b030ip4wszyfj9ya15v5kni"))))
11770 (build-system meson-build-system)
11771 (inputs
11772 `(("json-glib" ,json-glib)
11773 ("glib" ,glib)))
11774 (native-inputs
11775 `(("pkg-config" ,pkg-config)
11776 ("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
11777 ("gobject-introspection" ,gobject-introspection)
11778 ("vala" ,vala)))
11779 (home-page "https://gitlab.gnome.org/GNOME/jsonrpc-glib")
11780 (synopsis "JSON-RPC library for GLib")
11781 (description "Jsonrpc-GLib is a library to communicate with JSON-RPC based
11782 peers in either a synchronous or asynchronous fashion. It also allows
11783 communicating using the GVariant serialization format instead of JSON when
11784 both peers support it. You might want that when communicating on a single
11785 host to avoid parser overhead and memory-allocator fragmentation.")
11786 (license license:lgpl2.1+)))
11787
11788 (define-public feedbackd
11789 (package
11790 (name "feedbackd")
11791 (version "0.0.0+git20200527")
11792 (source (origin
11793 (method git-fetch)
11794 (uri (git-reference
11795 (url "https://source.puri.sm/Librem5/feedbackd.git")
11796 (commit (string-append "v" version))))
11797 (file-name (git-file-name name version))
11798 (sha256
11799 (base32
11800 "1wbkzxnqjydfgjvp7vz4ghczcz740zcb1yn90cb6gb5md4n6qx2y"))))
11801 (build-system meson-build-system)
11802 (native-inputs
11803 `(("glib:bin" ,glib "bin")
11804 ("gobject-introspection" ,gobject-introspection)
11805 ("pkg-config" ,pkg-config)
11806 ("vala" ,vala)))
11807 (inputs
11808 `(("dbus" ,dbus)
11809 ("gsound" ,gsound)
11810 ("json-glib" ,json-glib)
11811 ("libgudev" ,libgudev)))
11812 (propagated-inputs
11813 `(("glib" ,glib))) ; in Requires of libfeedback-0.0.pc
11814 (synopsis "Haptic/visual/audio feedback via DBus")
11815 (description "Feedbackd provides a DBus daemon to act on events to provide
11816 haptic, visual and audio feedback. It offers the libfeedbackd library and
11817 GObject introspection bindings.")
11818 (home-page "https://source.puri.sm/Librem5/feedbackd")
11819 (license (list license:lgpl2.1+ ; libfeedbackd
11820 license:lgpl3+)))) ; the rest
11821
11822 (define-public sysprof
11823 (package
11824 (name "sysprof")
11825 (version "3.36.0")
11826 (source
11827 (origin
11828 (method url-fetch)
11829 (uri (string-append "mirror://gnome/sources/sysprof/"
11830 (version-major+minor version) "/"
11831 "sysprof-" version ".tar.xz"))
11832 (sha256
11833 (base32 "024i0gzqnm79rpr4gqxdvcj6gvf82xdlcp2p1k9ikcppmi6xnw46"))))
11834 (build-system meson-build-system)
11835 (arguments
11836 `(#:configure-flags
11837 (list (string-append "-Dsystemdunitdir="
11838 %output
11839 "/share/systemd"))
11840 #:tests? #f ; 3/4 test-model-filter barfs some dbus nonsense
11841 #:phases
11842 (modify-phases %standard-phases
11843 (add-after 'unpack 'patch-install-script
11844 (lambda _
11845 (substitute* "build-aux/meson/post_install.sh"
11846 (("gtk-update-icon-cache") "true")
11847 (("update-desktop-database") "true"))
11848 #t)))))
11849 (inputs
11850 `(("glib" ,glib)
11851 ("gtk+" ,gtk+)
11852 ("libdazzle" ,libdazzle)
11853 ("polkit" ,polkit)))
11854 (native-inputs
11855 `(("gettext" ,gettext-minimal)
11856 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
11857 ("itstool" ,itstool)
11858 ("pkg-config" ,pkg-config)
11859 ("xmllint" ,libxml2)))
11860 ;; This home page is so woefully out of date as to be essentially useless.
11861 ;; (home-page "http://www.sysprof.com")
11862 (home-page "https://wiki.gnome.org/Apps/Sysprof")
11863 (synopsis "System-wide performance profiler for GNU/Linux")
11864 (description
11865 "Sysprof performs detailed, accurate, and fast CPU profiling of an entire
11866 GNU/Linux system including the kernel and all user-space applications. This
11867 helps find the function(s) in which a program spends most of its time.
11868
11869 It uses the kernel's built-in @code{ptrace} feature and handles shared
11870 libraries. Applications do not need to be recompiled--or even restarted.")
11871 (license license:gpl3+)))
11872
11873 (define-public gnome-builder
11874 (package
11875 (name "gnome-builder")
11876 (version "3.36.1")
11877 (source (origin
11878 (method url-fetch)
11879 (uri (string-append "mirror://gnome/sources/" name "/"
11880 (version-major+minor version) "/"
11881 name "-" version ".tar.xz"))
11882 (sha256
11883 (base32
11884 "17pvmd5jypar8dkr6w56hvf7jnq4l1wih2wwgkrv7sblr7rkkar2"))))
11885 (build-system meson-build-system)
11886 (arguments
11887 `(#:configure-flags (list "-Dnetwork_tests=false"
11888 ;; TODO: Enable all plugins...
11889 "-Dplugin_clang=false"
11890 "-Dplugin_flatpak=false"
11891 "-Dplugin_glade=false"
11892 ;; XXX: This one has been shown not to work in
11893 ;; <https://issues.guix.gnu.org/45272>
11894 "-Dplugin_jedi=false"
11895 ;; ... except this one.
11896 "-Dplugin_update_manager=false")
11897 #:phases
11898 (modify-phases %standard-phases
11899 (add-after 'unpack 'patch-meson
11900 (lambda* (#:key inputs #:allow-other-keys)
11901 (substitute* "build-aux/meson/post_install.py"
11902 (("gtk-update-icon-cache") "true")
11903 (("update-desktop-database") "true"))
11904 (substitute* "src/libide/meson.build"
11905 (("/usr/lib")
11906 (string-append (assoc-ref inputs "python-pygobject")
11907 "/lib")))
11908 #t))
11909 (add-after 'configure 'fix-ninja
11910 (lambda _
11911 ;; #43296: meson(?) incorrectly assumes we want to link
11912 ;; this PIE against a static libselinux.
11913 (substitute* "build.ninja"
11914 (("libselinux\\.a") "libselinux.so"))
11915 #t))
11916 (add-before 'check 'pre-check
11917 (lambda _
11918 (system "Xvfb :1 &")
11919 (setenv "DISPLAY" ":1")
11920 #t)))))
11921 (inputs
11922 `(("devhelp" ,devhelp)
11923 ("gspell" ,gspell)
11924 ("gtk+" ,gtk+)
11925 ("json-glib" ,json-glib)
11926 ("jsonrpc-glib" ,jsonrpc-glib)
11927 ("libdazzle" ,libdazzle)
11928 ("libgit2-glib" ,libgit2-glib)
11929 ("libpeas" ,libpeas)
11930 ("python-pygobject" ,python-pygobject)
11931 ("sysprof" ,sysprof)
11932 ("template-glib" ,template-glib)
11933 ("vte" ,vte)
11934 ("webkitgtk" ,webkitgtk)))
11935 (propagated-inputs
11936 `(("gtksourceview" ,gtksourceview))) ;needed for settings
11937 (native-inputs
11938 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
11939 ("glib:bin" ,glib "bin")
11940 ("gettext" ,gettext-minimal)
11941 ("pkg-config" ,pkg-config)
11942 ("vala" ,vala)
11943 ("xorg-server" ,xorg-server-for-tests)))
11944 (home-page "https://wiki.gnome.org/Apps/Builder")
11945 (synopsis "Toolsmith for GNOME-based applications")
11946 (description "Builder aims to be an integrated development
11947 environment (IDE) for writing GNOME-based software. It features fuzzy search,
11948 auto-completion, a mini code map, documentation browsing, Git integration, an
11949 integrated profiler via Sysprof, debugging support, and more.")
11950 (license license:gpl3+)))
11951
11952 (define-public komikku
11953 (package
11954 (name "komikku")
11955 (version "0.26.1")
11956 (source
11957 (origin
11958 (method git-fetch)
11959 (uri (git-reference
11960 (url "https://gitlab.com/valos/Komikku/")
11961 (commit (string-append "v" version))))
11962 (file-name (git-file-name name version))
11963 (sha256
11964 (base32
11965 "1mas409c14p6g0v10w4cf5hsjbs0922h6h9k9pyj9s8y7yi2ikz2"))))
11966 (build-system meson-build-system)
11967 (arguments
11968 `(#:glib-or-gtk? #t
11969 #:phases
11970 (modify-phases %standard-phases
11971 (add-after 'unpack 'patch-sources
11972 (lambda _
11973 (substitute* "komikku/utils.py"
11974 (("from komikku\\.servers import get_servers_list")
11975 ;; code following that line should migrate old databases
11976 ;; but the line itself results in an import error
11977 "return data_dir_path"))))
11978 (add-after 'unpack 'skip-gtk-update-icon-cache
11979 (lambda _
11980 (substitute* "meson_post_install.py"
11981 (("gtk-update-icon-cache") (which "true")))
11982 #t))
11983 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
11984 (lambda* (#:key outputs #:allow-other-keys)
11985 (let ((prog (string-append (assoc-ref outputs "out")
11986 "/bin/komikku")))
11987 (wrap-program prog
11988 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
11989 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11990 #t))))))
11991 (inputs
11992 `(("gtk+" ,gtk+)
11993 ("libhandy" ,libhandy)
11994 ("libnotify" ,libnotify)
11995 ("libsecret" ,libsecret)
11996 ("python-beautifulsoup4" ,python-beautifulsoup4)
11997 ("python-dateparser" ,python-dateparser)
11998 ("python-keyring" ,python-keyring)
11999 ("python-lxml" ,python-lxml)
12000 ("python-magic" ,python-magic)
12001 ("python-pillow" ,python-pillow)
12002 ("python-pure-protobuf" ,python-pure-protobuf)
12003 ("python-pycairo" ,python-pycairo)
12004 ("python-pygobject" ,python-pygobject)
12005 ("python-requests" ,python-requests)
12006 ("python-unidecode" ,python-unidecode)))
12007 (native-inputs
12008 `(("desktop-file-utils" ,desktop-file-utils)
12009 ("gettext" ,gettext-minimal)
12010 ("glib:bin" ,glib "bin")
12011 ("gobject-introspection" ,gobject-introspection)
12012 ("pkg-config" ,pkg-config)))
12013 (home-page "https://gitlab.com/valos/Komikku")
12014 (synopsis "Manga reader for GNOME")
12015 (description "Komikku is an online/offline manga reader for GNOME,
12016 developed with the aim of being used with the Librem 5 phone.")
12017 (license license:gpl3+)))
12018
12019 (define-public libgda
12020 (package
12021 (name "libgda")
12022 (version "5.2.10")
12023 (source
12024 (origin
12025 (method git-fetch)
12026 (uri (git-reference
12027 (url "https://gitlab.gnome.org/GNOME/libgda.git/")
12028 (commit (string-append "LIBGDA_" (string-replace-substring
12029 version "." "_")))))
12030 (file-name (git-file-name name version))
12031 (sha256
12032 (base32 "18rg773gq9v3cdywpmrp12c5xyp97ir9yqjinccpi22sksb1kl8a"))))
12033 (build-system gnu-build-system)
12034 (arguments
12035 `(#:configure-flags '("--enable-vala")
12036 ;; There's a race between check_cnc_lock and check_threaded_cnc
12037 ;; in tests/multi-threading.
12038 #:parallel-tests? #f
12039 #:phases
12040 (modify-phases %standard-phases
12041 (add-after 'unpack 'fix-glade-install
12042 (lambda _
12043 (substitute* "configure.ac"
12044 (("`\\$PKG_CONFIG --variable=catalogdir gladeui-2\\.0`")
12045 "${datadir}/glade/catalogs")
12046 (("`\\$PKG_CONFIG --variable=pixmapdir gladeui-2\\.0`")
12047 "${datadir}/glade/pixmaps"))
12048 #t))
12049 (add-before 'check 'pre-check
12050 (lambda* (#:key inputs #:allow-other-keys)
12051 ;; Tests require a running X server.
12052 (system "Xvfb :1 &")
12053 (setenv "DISPLAY" ":1")
12054 #t))
12055 (add-after 'install 'symlink-glade-module
12056 (lambda* (#:key outputs #:allow-other-keys)
12057 (let* ((shlib "libgda-ui-5.0.so")
12058 (out (assoc-ref outputs "out"))
12059 (out/lib (string-append out "/lib"))
12060 (moduledir (string-append out/lib "/glade/modules")))
12061 (mkdir-p moduledir)
12062 (symlink (string-append out/lib "/" shlib)
12063 (string-append moduledir "/" shlib))
12064 #t))))))
12065 (propagated-inputs
12066 `(("libxml2" ,libxml2))) ; required by libgda-5.0.pc
12067 (inputs
12068 `(("glib" ,glib)
12069 ("glade" ,glade3)
12070 ("gtk+" ,gtk+)
12071 ("libsecret" ,libsecret)
12072 ("libxslt" ,libxslt)
12073 ("openssl" ,openssl)
12074 ("vala" ,vala)))
12075 (native-inputs
12076 `(("autoconf" ,autoconf)
12077 ("autoconf-archive" ,autoconf-archive)
12078 ("automake" ,automake)
12079 ("glib:bin" ,glib "bin")
12080 ("gnome-common" ,gnome-common)
12081 ("gobject-introspection" ,gobject-introspection)
12082 ("gtk-doc" ,gtk-doc)
12083 ("intltool" ,intltool)
12084 ("libtool" ,libtool)
12085 ("pkg-config" ,pkg-config)
12086 ("vala" ,vala)
12087 ("which" ,which)
12088 ("xorg-server" ,xorg-server-for-tests)
12089 ("yelp-tools" ,yelp-tools)))
12090 (home-page "https://gitlab.gnome.org/GNOME/libgda")
12091 (synopsis "Uniform data access")
12092 (description
12093 "GNU Data Access (GDA) is an attempt to provide uniform access to
12094 different kinds of data sources (databases, information servers, mail spools,
12095 etc). It is a complete architecture that provides all you need to access
12096 your data.")
12097 (license license:lgpl2.1+)))
12098
12099 (define-public gtranslator
12100 (package
12101 (name "gtranslator")
12102 (version "3.36.0")
12103 (source (origin
12104 (method url-fetch)
12105 (uri (string-append "mirror://gnome/sources/" name "/"
12106 (version-major+minor version) "/"
12107 name "-" version ".tar.xz"))
12108 (sha256
12109 (base32
12110 "1lxd2nkji4jk8g2xmyc1a1r3ww710ddk91zh9psmx8xlb4xivaid"))))
12111 (build-system meson-build-system)
12112 (inputs
12113 `(("json-glib" ,json-glib)
12114 ("jsonrpc-glib" ,jsonrpc-glib)
12115 ("gettext" ,gettext-minimal)
12116 ("glib" ,glib)
12117 ("gtk+" ,gtk+)
12118 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
12119 ("gspell" ,gspell)
12120 ("libdazzle" ,libdazzle)
12121 ("libgda" ,libgda)
12122 ("libsoup" ,libsoup)))
12123 (native-inputs
12124 `(("glib:bin" ,glib "bin")
12125 ("itstool" ,itstool)
12126 ("pkg-config" ,pkg-config)))
12127 (propagated-inputs
12128 `(("gtksourceview" ,gtksourceview))) ; required for source view
12129 (arguments
12130 `(#:build-type "release"
12131 #:glib-or-gtk? #t
12132 #:phases
12133 (modify-phases %standard-phases
12134 (add-after 'unpack 'skip-gtk-update-icon-cache
12135 (lambda _
12136 (substitute* "build-aux/meson/meson_post_install.py"
12137 (("gtk-update-icon-cache") (which "true")))
12138 #t)))))
12139 (home-page "https://wiki.gnome.org/Apps/Gtranslator")
12140 (synopsis "Translation making program")
12141 (description
12142 "gtranslator is a quite comfortable gettext po/po.gz/(g)mo files editor
12143 for the GNOME 3.x platform with many features. It aims to be a very complete
12144 editing environment for translation issues within the GNU gettext/GNOME desktop
12145 world.")
12146 (license license:gpl3+)))
12147
12148
12149 (define-public ocrfeeder
12150 (package
12151 (name "ocrfeeder")
12152 (version "0.8.3")
12153 (source (origin
12154 (method url-fetch)
12155 (uri (string-append "mirror://gnome/sources/ocrfeeder/"
12156 (version-major+minor version) "/"
12157 "ocrfeeder-" version ".tar.xz"))
12158 (sha256
12159 (base32
12160 "12f5gnq92ffnd5zaj04df7jrnsdz1zn4zcgpbf5p9qnd21i2y529"))))
12161 (build-system gnu-build-system)
12162 (arguments
12163 `(#:phases
12164 (modify-phases %standard-phases
12165 (add-after
12166 'install 'wrap-program
12167 (lambda* (#:key outputs #:allow-other-keys)
12168 (let ((prog (string-append (assoc-ref outputs "out")
12169 "/bin/" "ocrfeeder"))
12170 (pylib (string-append (assoc-ref outputs "out")
12171 "/lib/python"
12172 ,(version-major+minor
12173 (package-version python))
12174 "/site-packages")))
12175 (wrap-program prog
12176 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
12177 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
12178 #t))))))
12179 (native-inputs
12180 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
12181 ("gobject-introspection" ,gobject-introspection)
12182 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
12183 ("intltool" ,intltool)
12184 ("itstool" ,itstool)
12185 ("pkg-config" ,pkg-config)
12186 ("xmllint" ,libxml2)))
12187 (inputs
12188 `(("enchant" ,enchant)
12189 ("glib" ,glib)
12190 ("goocanvas" ,goocanvas)
12191 ("gtk" ,gtk+)
12192 ("gtkspell3" ,gtkspell3)
12193 ("libjpeg" ,libjpeg-turbo)
12194 ("libtiff" ,libtiff)
12195 ("libraw" ,libraw)
12196 ("ocrad" ,ocrad)
12197 ("python" ,python-wrapper)
12198 ("python-pygobject" ,python-pygobject)
12199 ("python-odfpy" ,python-odfpy)
12200 ("python-pillow" ,python-pillow)
12201 ("python-pyenchant" ,python-pyenchant)
12202 ("python-reportlab" ,python-reportlab)
12203 ("python-sane" ,python-sane)
12204 ("sane-backends" ,sane-backends)
12205 ("tesseract-ocr" ,tesseract-ocr)))
12206 (home-page "https://wiki.gnome.org/Apps/OCRFeeder")
12207 (synopsis "Complete OCR Suite")
12208 (description "OCRFeeder is a complete Optical Character Recognition and
12209 Document Analysis and Recognition program.")
12210 (license license:gpl3+)))