gnu: upower: Build from Git sources.
[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, 2021 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 ;;; Copyright © 2021 Trevor Hass <thass@okstate.edu>
62 ;;; Copyright © 2021 Solene Rapenne <solene@perso.pw>
63 ;;;
64 ;;; This file is part of GNU Guix.
65 ;;;
66 ;;; GNU Guix is free software; you can redistribute it and/or modify it
67 ;;; under the terms of the GNU General Public License as published by
68 ;;; the Free Software Foundation; either version 3 of the License, or (at
69 ;;; your option) any later version.
70 ;;;
71 ;;; GNU Guix is distributed in the hope that it will be useful, but
72 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
73 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
74 ;;; GNU General Public License for more details.
75 ;;;
76 ;;; You should have received a copy of the GNU General Public License
77 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
78
79 (define-module (gnu packages gnome)
80 #:use-module (gnu packages)
81 #:use-module (gnu packages admin)
82 #:use-module (gnu packages aidc)
83 #:use-module (gnu packages aspell)
84 #:use-module (gnu packages autotools)
85 #:use-module (gnu packages avahi)
86 #:use-module (gnu packages backup)
87 #:use-module (gnu packages base)
88 #:use-module (gnu packages bash)
89 #:use-module (gnu packages bison)
90 #:use-module (gnu packages boost)
91 #:use-module (gnu packages build-tools)
92 #:use-module (gnu packages calendar)
93 #:use-module (gnu packages cdrom)
94 #:use-module (gnu packages check)
95 #:use-module (gnu packages cmake)
96 #:use-module (gnu packages compression)
97 #:use-module (gnu packages crates-io)
98 #:use-module (gnu packages crates-graphics)
99 #:use-module (gnu packages crates-gtk)
100 #:use-module (gnu packages cups)
101 #:use-module (gnu packages curl)
102 #:use-module (gnu packages cyrus-sasl)
103 #:use-module (gnu packages databases)
104 #:use-module (gnu packages dbm)
105 #:use-module (gnu packages djvu)
106 #:use-module (gnu packages dns)
107 #:use-module (gnu packages docbook)
108 #:use-module (gnu packages documentation)
109 #:use-module (gnu packages enchant)
110 #:use-module (gnu packages flex)
111 #:use-module (gnu packages fonts)
112 #:use-module (gnu packages file-systems)
113 #:use-module (gnu packages fontutils)
114 #:use-module (gnu packages freedesktop)
115 #:use-module (gnu packages game-development)
116 #:use-module (gnu packages gcc)
117 #:use-module (gnu packages gettext)
118 #:use-module (gnu packages ghostscript)
119 #:use-module (gnu packages gimp)
120 #:use-module (gnu packages gl)
121 #:use-module (gnu packages glib)
122 #:use-module (gnu packages gnupg)
123 #:use-module (gnu packages gnuzilla)
124 #:use-module (gnu packages geo)
125 #:use-module (gnu packages gperf)
126 #:use-module (gnu packages graphviz)
127 #:use-module (gnu packages gstreamer)
128 #:use-module (gnu packages gtk)
129 #:use-module (gnu packages guile)
130 #:use-module (gnu packages haskell-xyz)
131 #:use-module (gnu packages ibus)
132 #:use-module (gnu packages icu4c)
133 #:use-module (gnu packages image)
134 #:use-module (gnu packages imagemagick)
135 #:use-module (gnu packages inkscape)
136 #:use-module (gnu packages iso-codes)
137 #:use-module (gnu packages kerberos)
138 #:use-module (gnu packages libcanberra)
139 #:use-module (gnu packages libffi)
140 #:use-module (gnu packages libunistring)
141 #:use-module (gnu packages libunwind)
142 #:use-module (gnu packages libusb)
143 #:use-module (gnu packages linux)
144 #:use-module (gnu packages lirc)
145 #:use-module (gnu packages lua)
146 #:use-module (gnu packages mail)
147 #:use-module (gnu packages mp3)
148 #:use-module (gnu packages multiprecision)
149 #:use-module (gnu packages music)
150 #:use-module (gnu packages ncurses)
151 #:use-module (gnu packages nettle)
152 #:use-module (gnu packages networking)
153 #:use-module (gnu packages ninja)
154 #:use-module (gnu packages node)
155 #:use-module (gnu packages nss)
156 #:use-module (gnu packages ocr)
157 #:use-module (gnu packages openldap)
158 #:use-module (gnu packages package-management)
159 #:use-module (gnu packages password-utils)
160 #:use-module (gnu packages pcre)
161 #:use-module (gnu packages pdf)
162 #:use-module (gnu packages perl)
163 #:use-module (gnu packages photo)
164 #:use-module (gnu packages php)
165 #:use-module (gnu packages pkg-config)
166 #:use-module (gnu packages polkit)
167 #:use-module (gnu packages popt)
168 #:use-module (gnu packages pretty-print)
169 #:use-module (gnu packages protobuf)
170 #:use-module (gnu packages pulseaudio)
171 #:use-module (gnu packages python)
172 #:use-module (gnu packages python-compression)
173 #:use-module (gnu packages python-crypto)
174 #:use-module (gnu packages python-web)
175 #:use-module (gnu packages python-xyz)
176 #:use-module (gnu packages rdesktop)
177 #:use-module (gnu packages rdf)
178 #:use-module (gnu packages readline)
179 #:use-module (gnu packages ruby)
180 #:use-module (gnu packages rust)
181 #:use-module (gnu packages samba)
182 #:use-module (gnu packages scanner)
183 #:use-module (gnu packages sdl)
184 #:use-module (gnu packages search)
185 #:use-module (gnu packages selinux)
186 #:use-module (gnu packages slang)
187 #:use-module (gnu packages speech)
188 #:use-module (gnu packages spice)
189 #:use-module (gnu packages sqlite)
190 #:use-module (gnu packages ssh)
191 #:use-module (gnu packages swig)
192 #:use-module (gnu packages tex)
193 #:use-module (gnu packages time)
194 #:use-module (gnu packages tls)
195 #:use-module (gnu packages valgrind)
196 #:use-module (gnu packages version-control)
197 #:use-module (gnu packages video)
198 #:use-module (gnu packages virtualization)
199 #:use-module (gnu packages vpn)
200 #:use-module (gnu packages web)
201 #:use-module (gnu packages webkit)
202 #:use-module (gnu packages xdisorg)
203 #:use-module (gnu packages xiph)
204 #:use-module (gnu packages xml)
205 #:use-module (gnu packages xorg)
206 #:use-module (gnu artwork)
207 #:use-module (guix build-system cargo)
208 #:use-module (guix build-system cmake)
209 #:use-module (guix build-system glib-or-gtk)
210 #:use-module (guix build-system gnu)
211 #:use-module (guix build-system meson)
212 #:use-module (guix build-system python)
213 #:use-module (guix build-system trivial)
214 #:use-module (guix download)
215 #:use-module (guix git-download)
216 #:use-module ((guix licenses) #:prefix license:)
217 #:use-module (guix packages)
218 #:use-module (guix utils)
219 #:use-module (guix gexp)
220 #:use-module (ice-9 match)
221 #:use-module (srfi srfi-1))
222
223 (define-public gupnp-igd
224 (package
225 (name "gupnp-igd")
226 (version "1.2.0")
227 (source
228 (origin
229 (method url-fetch)
230 (uri
231 (string-append "mirror://gnome/sources/" name "/"
232 (version-major+minor version) "/"
233 name "-" version ".tar.xz"))
234 (sha256
235 (base32 "1q9bw12ibih3yxpha3gm1dabyqg9gx6yxacbh4kxsgm1i84j0lab"))))
236 (build-system meson-build-system)
237 (outputs '("out" "doc"))
238 (arguments
239 `(#:glib-or-gtk? #t ; To wrap binaries and compile schemas
240 #:configure-flags (list "-Dgtk_doc=true")
241 #:phases
242 (modify-phases %standard-phases
243 (add-after 'unpack 'patch-docbook-xml
244 (lambda* (#:key inputs #:allow-other-keys)
245 (with-directory-excursion "doc"
246 (substitute* "gupnp-igd-docs.xml"
247 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
248 (string-append (assoc-ref inputs "docbook-xml-4.1.2")
249 "/xml/dtd/docbook/"))))
250 #t))
251 (add-after 'install 'move-doc
252 (lambda* (#:key outputs #:allow-other-keys)
253 (let* ((out (assoc-ref outputs "out"))
254 (doc (assoc-ref outputs "doc")))
255 (mkdir-p (string-append doc "/share"))
256 (rename-file
257 (string-append out "/share/gtk-doc")
258 (string-append doc "/share/gtk-doc"))
259 #t))))))
260 (native-inputs
261 `(("docbook-xml-4.1.2" ,docbook-xml-4.1.2)
262 ("docbook-xsl" ,docbook-xsl)
263 ("glib:bin" ,glib "bin")
264 ("gobject-introspection" ,gobject-introspection)
265 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
266 ("gtk-doc" ,gtk-doc/stable)
267 ("pkg-config" ,pkg-config)))
268 (propagated-inputs
269 `(("glib" ,glib)
270 ("glib-networking" ,glib-networking)
271 ("gssdp" ,gssdp)
272 ("gupnp" ,gupnp)
273 ("libsoup" ,libsoup)))
274 (synopsis "UPnP IGD for GNOME")
275 (description "GUPnP-IGD is a library to handle UPnP IGD port mapping.")
276 (home-page "https://gitlab.gnome.org/GNOME/gupnp-igd")
277 (license license:lgpl2.1+)))
278
279 (define-public brasero
280 (package
281 (name "brasero")
282 (version "3.12.2")
283 (source (origin
284 (method url-fetch)
285 (uri (string-append "mirror://gnome/sources/brasero/"
286 (version-major+minor version) "/"
287 "brasero-" version ".tar.xz"))
288 (sha256
289 (base32
290 "0h90y674j26rvjahb8cc0w79zx477rb6zaqcj26wzvq8kmpic8k8"))))
291 (build-system glib-or-gtk-build-system)
292 (arguments
293 `(#:configure-flags (list
294 (string-append "--with-girdir="
295 (assoc-ref %outputs "out")
296 "/share/gir-1.0")
297 (string-append "--with-typelibdir="
298 (assoc-ref %outputs "out")
299 "/lib/girepository-1.0"))
300 #:phases
301 (modify-phases %standard-phases
302 (add-before 'configure 'embed-growisofs
303 (lambda* (#:key inputs #:allow-other-keys)
304 (substitute* "plugins/growisofs/burn-growisofs.c"
305 (("\"growisofs") (string-append "\"" (which "growisofs"))))
306 #t)))))
307 (propagated-inputs
308 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
309 (native-inputs
310 `(("intltool" ,intltool)
311 ("itstool" ,itstool)
312 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
313 ("gobject-introspection" ,gobject-introspection)
314 ("pkg-config" ,pkg-config)))
315 (inputs
316 `(("dvd+rw-tools" ,dvd+rw-tools)
317 ("glib" ,glib)
318 ("gnome-doc-utils" ,gnome-doc-utils)
319 ("gstreamer" ,gstreamer)
320 ("gst-plugins-base" ,gst-plugins-base)
321 ("gtk+" ,gtk+)
322 ("libcanberra" ,libcanberra)
323 ("libice" ,libice)
324 ("libnotify" ,libnotify)
325 ("libsm" ,libsm)
326 ("libxml2" ,libxml2)
327 ("totem-pl-parser" ,totem-pl-parser)))
328 (home-page "https://wiki.gnome.org/Apps/Brasero")
329 (synopsis "CD/DVD burning tool for Gnome")
330 (description "Brasero is an application to burn CD/DVD for the Gnome
331 Desktop. It is designed to be as simple as possible and has some unique
332 features to enable users to create their discs easily and quickly.")
333 (license license:gpl2+)))
334
335 (define-public libcloudproviders
336 (package
337 (name "libcloudproviders")
338 (version "0.3.1")
339 (source
340 (origin
341 (method url-fetch)
342 (uri
343 (string-append "mirror://gnome/sources/" name "/"
344 (version-major+minor version) "/"
345 name "-" version ".tar.xz"))
346 (sha256
347 (base32 "0aars24myf6n8b8hm1n12hsgcm54097kpbpm4ba31zp1l4y22qs7"))))
348 (build-system meson-build-system)
349 (outputs '("out" "doc"))
350 (arguments
351 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
352 #:configure-flags
353 (list
354 "-Denable-gtk-doc=true")
355 #:phases
356 (modify-phases %standard-phases
357 (add-after 'install 'move-doc
358 (lambda* (#:key outputs #:allow-other-keys)
359 (let* ((out (assoc-ref outputs "out"))
360 (doc (assoc-ref outputs "doc")))
361 (mkdir-p (string-append doc "/share"))
362 (rename-file
363 (string-append out "/share/gtk-doc")
364 (string-append doc "/share/gtk-doc"))
365 #t))))))
366 (native-inputs
367 `(("glib:bin" ,glib "bin")
368 ("gobject-introspection" ,gobject-introspection)
369 ("gtk-doc" ,gtk-doc/stable)
370 ("pkg-config" ,pkg-config)
371 ("vala" ,vala)))
372 (inputs
373 `(("glib" ,glib)
374 ("glib-networking" ,glib-networking)))
375 (synopsis "Cloudproviders Integration API")
376 (description "Libcloudproviders is a DBus API that allows cloud storage sync
377 clients to expose their services. Clients such as file managers and desktop
378 environments can then provide integrated access to the cloud providers
379 services.")
380 (home-page "https://csorianognome.wordpress.com/2015/07/07/cloud-providers/")
381 (license license:lgpl3+)))
382
383 (define-public libgrss
384 (package
385 (name "libgrss")
386 (version "0.7.0")
387 (source
388 (origin
389 (method url-fetch)
390 (uri
391 (string-append "mirror://gnome/sources/" name "/"
392 (version-major+minor version) "/"
393 name "-" version ".tar.xz"))
394 (sha256
395 (base32 "1nalslgyglvhpva3px06fj6lv5zgfg0qmj0sbxyyl5d963vc02b7"))))
396 (build-system glib-or-gtk-build-system)
397 (outputs '("out" "doc"))
398 (arguments
399 `(#:configure-flags
400 (list
401 "--enable-gtk-doc"
402 (string-append "--with-html-dir="
403 (assoc-ref %outputs "doc")
404 "/share/gtk-doc/html"))
405 #:phases
406 (modify-phases %standard-phases
407 (add-after 'unpack 'patch-docbook-xml
408 (lambda* (#:key inputs #:allow-other-keys)
409 (with-directory-excursion "doc/reference"
410 (substitute* "libgrss-docs.sgml"
411 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
412 (string-append (assoc-ref inputs "docbook-xml")
413 "/xml/dtd/docbook/"))))
414 #t)))))
415 (native-inputs
416 `(("docbook-xml" ,docbook-xml-4.1.2)
417 ("gobject-introspection" ,gobject-introspection)
418 ("gtk-doc" ,gtk-doc/stable)
419 ("pkg-config" ,pkg-config)))
420 (propagated-inputs
421 `(("glib" ,glib)
422 ("libsoup" ,libsoup)
423 ("libxml2" ,libxml2)))
424 (synopsis "Glib library for feeds")
425 (description "LibGRSS is a Glib abstraction to handle feeds in RSS, Atom,
426 and other formats.")
427 (home-page "https://wiki.gnome.org/Projects/Libgrss")
428 (license license:lgpl3+)))
429
430 (define-public gnome-js-common
431 (package
432 (name "gnome-js-common")
433 (version "0.1.2")
434 (source
435 (origin
436 (method url-fetch)
437 (uri
438 (string-append "mirror://gnome/sources/" name "/"
439 (version-major+minor version) "/"
440 name "-" version ".tar.gz"))
441 (sha256
442 (base32 "1zv5b9bcbclzj64xd9kgql4ndmbwvvi6cl937ykw8fp21xgh8z7y"))))
443 (build-system glib-or-gtk-build-system)
444 (arguments
445 `(#:configure-flags
446 (list
447 "--disable-static")))
448 (native-inputs
449 `(("gettext" ,gettext-minimal)
450 ("intltool" ,intltool)
451 ("pkg-config" ,pkg-config)))
452 (synopsis "Common JS Modules")
453 (description "GNOME-JS-Common provides common modules for GNOME JavaScript
454 bindings.")
455 (home-page "https://wiki.gnome.org/Projects/Seed")
456 (license license:gpl3+)))
457
458 (define-public seed
459 (package
460 (name "seed")
461 (version "3.8.1")
462 (source
463 (origin
464 (method url-fetch)
465 (uri
466 (string-append "mirror://gnome/sources/" name "/"
467 (version-major+minor version) "/"
468 name "-" version ".tar.xz"))
469 (sha256
470 (base32 "0cmcxaggcdcy13j27gy8id2qsf2p2sl4bz2mwb9zhv3gzavlvjw0"))
471 (patches
472 (search-patches "seed-webkit.patch"))))
473 (build-system glib-or-gtk-build-system)
474 (outputs '("out" "doc"))
475 (arguments
476 `(#:configure-flags
477 (list
478 "--disable-static"
479 "--enable-xorg-module"
480 (string-append "--with-html-dir="
481 (assoc-ref %outputs "doc")
482 "/share/gtk-doc/html")
483 "--with-webkit=4.0")
484 #:phases
485 (modify-phases %standard-phases
486 ;; The seed-webkit.patch patches configure.ac.
487 ;; So the source files need to be re-bootstrapped.
488 (add-after 'unpack 'trigger-bootstrap
489 (lambda _
490 (for-each delete-file
491 (list
492 "configure"
493 "Makefile.in"))
494 #t))
495 (add-after 'unpack 'patch-tests
496 (lambda* (#:key outputs #:allow-other-keys)
497 (substitute* (find-files "." "\\.js$")
498 (("#!/usr/bin/env seed")
499 (string-append "#!" (getcwd) "/src/seed")))
500 #t))
501 (add-before 'build 'patch-docbook-xml
502 (lambda* (#:key inputs #:allow-other-keys)
503 (with-directory-excursion "doc"
504 (substitute* '("reference/seed-docs.sgml" "modules/book.xml")
505 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
506 (string-append (assoc-ref inputs "docbook-xml")
507 "/xml/dtd/docbook/"))))
508 #t)))))
509 (native-inputs
510 `(("autoconf" ,autoconf)
511 ("automake" ,automake)
512 ("docbook-xml" ,docbook-xml-4.1.2)
513 ("gettext" ,gettext-minimal)
514 ("gobject-introspection" ,gobject-introspection)
515 ("gtk-doc" ,gtk-doc/stable)
516 ("intltool" ,intltool)
517 ("libtool" ,libtool)
518 ("pkg-config" ,pkg-config)))
519 (inputs
520 `(("cairo" ,cairo)
521 ("dbus" ,dbus)
522 ("dbus-glib" ,dbus-glib)
523 ("gnome-js-common" ,gnome-js-common)
524 ("gtk+" ,gtk+)
525 ("gtk+-2" ,gtk+-2)
526 ("libffi" ,libffi)
527 ("libxml2" ,libxml2)
528 ("mpfr" ,mpfr)
529 ("readline" ,readline)
530 ("sqlite" ,sqlite)
531 ("xscrnsaver" ,libxscrnsaver)))
532 (propagated-inputs
533 `(("glib" ,glib)
534 ("webkit" ,webkitgtk)))
535 (synopsis "GObject JavaScriptCore bridge")
536 (description "Seed is a library and interpreter, dynamically bridging
537 (through GObjectIntrospection) the WebKit JavaScriptCore engine, with the
538 GNOME platform. It serves as something which enables you to write standalone
539 applications in JavaScript, or easily enable your application to be extensible
540 in JavaScript.")
541 (home-page "https://wiki.gnome.org/Projects/Seed")
542 (license license:lgpl2.0+)))
543
544 (define-public libdmapsharing
545 (package
546 (name "libdmapsharing")
547 (version "3.9.10")
548 (source
549 (origin
550 (method url-fetch)
551 (uri
552 (string-append "https://www.flyn.org/projects/"
553 name "/" name "-" version ".tar.gz"))
554 (sha256
555 (base32 "152hnddwxv590cn802awv3mn27ixc3s6ac691a7z02d1c5fl45p2"))))
556 (build-system glib-or-gtk-build-system)
557 (outputs '("out" "doc"))
558 (arguments
559 `(#:tests? #f ; Tests require networking.
560 #:configure-flags
561 (list
562 "--disable-static"
563 (string-append "--with-html-dir="
564 (assoc-ref %outputs "doc")
565 "/share/gtk-doc/html"))
566 #:phases
567 (modify-phases %standard-phases
568 (add-after 'unpack 'patch-docbook-xml
569 (lambda* (#:key inputs #:allow-other-keys)
570 (with-directory-excursion "doc"
571 (substitute* "libdmapsharing-4.0-docs.xml"
572 (("http://www.oasis-open.org/docbook/xml/4.3/")
573 (string-append (assoc-ref inputs "docbook-xml")
574 "/xml/dtd/docbook/"))))
575 #t)))))
576 (native-inputs
577 `(("check" ,check)
578 ("docbook-xml" ,docbook-xml-4.3)
579 ("gobject-introspection" ,gobject-introspection)
580 ("pedansee" ,pedansee)
581 ("pkg-config" ,pkg-config)
582 ("vala" ,vala)))
583 (inputs
584 `(("avahi" ,avahi)
585 ("gdk-pixbuf" ,gdk-pixbuf+svg)
586 ("gee" ,libgee)
587 ("gst-plugins-base" ,gst-plugins-base)
588 ("gtk+" ,gtk+)))
589 (propagated-inputs
590 `(("glib" ,glib)
591 ("glib-networking" ,glib-networking)
592 ("gstreamer" ,gstreamer)
593 ("libsoup" ,libsoup)))
594 (synopsis "Media management library")
595 (description "Libdmapsharing is a library which allows programs to access,
596 share and control the playback of media content using DMAP (DAAP, DPAP & DACP).
597 It is written in C using GObject and libsoup.")
598 (home-page "https://launchpad.net/gtx")
599 (license license:lgpl2.1+)))
600
601 (define-public gtx
602 (package
603 (name "gtx")
604 (version "0.2.2")
605 (source
606 (origin
607 (method url-fetch)
608 (uri
609 (string-append "https://launchpad.net/gtx/trunk/"
610 version "/+download/gtx-" version ".tar.gz"))
611 (sha256
612 (base32 "0i4zvn5v4rf0cw3fxylk6j2pyy5lkrswdiw8jdxkys0ph0nan33n"))))
613 (build-system glib-or-gtk-build-system)
614 (outputs '("out" "doc"))
615 (arguments
616 `(#:configure-flags
617 (list
618 "--disable-static"
619 "--enable-gtk-doc"
620 (string-append "--with-html-dir="
621 (assoc-ref %outputs "doc")
622 "/share/gtk-doc/html"))))
623 (native-inputs
624 `(("gobject-introspection" ,gobject-introspection)
625 ("gtk-doc" ,gtk-doc/stable)
626 ("pkg-config" ,pkg-config)))
627 (propagated-inputs
628 `(("glib" ,glib)))
629 (synopsis "GLib Testing Framework")
630 (description "GTX is a small collection of convenience functions intended to
631 enhance the GLib testing framework. With specific emphasis on easing the pain
632 of writing test cases for asynchronous interactions.")
633 (home-page "https://launchpad.net/gtx")
634 (license license:lgpl2.1+)))
635
636 (define-public dee
637 (package
638 (name "dee")
639 (version "1.2.7")
640 (source
641 (origin
642 (method url-fetch)
643 (uri
644 (string-append "https://launchpad.net/dee/1.0/"
645 version "/+download/dee-" version ".tar.gz"))
646 (sha256
647 (base32 "12mzffk0lyd566y46x57jlvb9af152b4dqpasr40zal4wrn37w0v"))
648 (patches
649 (search-patches "dee-vapi.patch"))))
650 (build-system glib-or-gtk-build-system)
651 (outputs '("out" "doc"))
652 (arguments
653 `(#:configure-flags
654 (list
655 "--disable-maintainer-flags"
656 (string-append "--with-pygi-overrides-dir="
657 (assoc-ref %outputs "out")
658 "/lib/python"
659 ,(version-major+minor
660 (package-version python))
661 "/site-packages/gi/overrides")
662 (string-append "--with-html-dir="
663 (assoc-ref %outputs "doc")
664 "/share/gtk-doc/html"))
665 #:phases
666 (modify-phases %standard-phases
667 (add-after 'unpack 'patch-docbook-xml
668 (lambda* (#:key inputs #:allow-other-keys)
669 (with-directory-excursion "doc/reference/dee-1.0"
670 (substitute* "dee-1.0-docs.sgml"
671 (("http://www.oasis-open.org/docbook/xml/4.3/")
672 (string-append (assoc-ref inputs "docbook-xml")
673 "/xml/dtd/docbook/"))))
674 #t))
675 (add-after 'patch-docbook-xml 'disable-failing-tests
676 (lambda _
677 (substitute* "tests/test-icu.c"
678 (("g_test_add \\(DOMAIN\"/Default/AsciiFolder\", Fixture, 0,")
679 "")
680 (("setup, test_ascii_folder, teardown\\);")
681 ""))
682 #t))
683 (add-before 'check 'pre-check
684 (lambda _
685 ;; Tests require a running dbus-daemon.
686 (system "dbus-daemon &")
687 ;; For missing '/etc/machine-id'.
688 (setenv "DBUS_FATAL_WARNINGS" "0")
689 #t)))))
690 (native-inputs
691 `(("dbus" ,dbus)
692 ("dbus-test-runner" ,dbus-test-runner)
693 ("docbook-xml" ,docbook-xml-4.3)
694 ("gobject-introspection" ,gobject-introspection)
695 ("gtk-doc" ,gtk-doc/stable)
696 ;; Would only be required by configure flag "--enable-extended-tests".
697 ;("gtx" ,gtx)
698 ("pkg-config" ,pkg-config)
699 ("pygobject" ,python-pygobject)
700 ("python" ,python-wrapper)
701 ("vala" ,vala)))
702 (inputs
703 `(("icu" ,icu4c)))
704 (propagated-inputs
705 `(("glib" ,glib)))
706 (synopsis "Model to synchronize multiple instances over DBus")
707 (description "Dee is a library that uses DBus to provide objects allowing
708 you to create Model-View-Controller type programs across DBus. It also consists
709 of utility objects which extend DBus allowing for peer-to-peer discoverability
710 of known objects without needing a central registrar.")
711 (home-page "https://launchpad.net/dee")
712 (license
713 ;; Dual-licensed
714 (list
715 license:lgpl3+
716 license:gpl3+))))
717
718 (define-public zeitgeist
719 (package
720 (name "zeitgeist")
721 (version "1.0.3")
722 (source
723 (origin
724 (method git-fetch)
725 (uri
726 (git-reference
727 (url "https://gitlab.freedesktop.org/zeitgeist/zeitgeist.git")
728 (commit
729 (string-append "v" version))))
730 (file-name
731 (git-file-name name version))
732 (sha256
733 (base32 "0y6fyzxl5np4yskcxibd0p03h619w9ir907nhf40h02y0pk1kgkp"))))
734 (build-system glib-or-gtk-build-system)
735 (arguments
736 `(#:configure-flags
737 (list
738 "--enable-explain-queries"
739 "--enable-fts"
740 "--enable-docs")
741 #:phases
742 (modify-phases %standard-phases
743 (add-after 'unpack 'patch-docbook-xml
744 (lambda* (#:key inputs #:allow-other-keys)
745 (with-directory-excursion "doc/libzeitgeist"
746 (substitute* "zeitgeist-gtkdoc-index.sgml"
747 (("http://www.oasis-open.org/docbook/xml/4.3/")
748 (string-append (assoc-ref inputs "docbook-xml")
749 "/xml/dtd/docbook/"))))
750 #t))
751 (add-after 'patch-docbook-xml 'disable-failing-tests
752 (lambda _
753 (substitute* "test/direct/Makefile.am"
754 ((" log-test ")
755 ""))
756 (substitute* "test/c/Makefile.am"
757 ((" test-log ")
758 ""))
759 #t))
760 (add-before 'bootstrap 'remove-autogen-script
761 (lambda _
762 ;; To honor `autoreconf -vif` by build-system.
763 (delete-file "autogen.sh")
764 #t)))))
765 (native-inputs
766 `(("autoconf" ,autoconf)
767 ("automake" ,automake)
768 ("docbook-xml" ,docbook-xml-4.3)
769 ("gettext" ,gettext-minimal)
770 ("gobject-introspection" ,gobject-introspection)
771 ("gtk-doc" ,gtk-doc/stable)
772 ("libtool" ,libtool)
773 ("pkg-config" ,pkg-config)
774 ("vala" ,vala)
775 ("xorg-server-for-tests" ,xorg-server-for-tests)))
776 (inputs
777 `(("dee-icu" ,dee)
778 ("gtk+" ,gtk+)
779 ("json-glib" ,json-glib)
780 ("sqlite" ,sqlite)
781 ("telepathy-glib" ,telepathy-glib)
782 ("python" ,python-wrapper)
783 ("python-rdflib" ,python-rdflib)
784 ("xapian-config" ,xapian)))
785 (propagated-inputs
786 `(("glib" ,glib)))
787 (synopsis "Desktop Activity Logging")
788 (description "Zeitgeist is a service which logs the users’s activities and
789 events, anywhere from files opened to websites visited and conversations. It
790 makes this information readily available for other applications to use. It is
791 able to establish relationships between items based on similarity and usage
792 patterns.")
793 (home-page "https://zeitgeist.freedesktop.org/")
794 (license
795 ;; Dual-licensed
796 (list
797 license:lgpl2.1+
798 license:gpl2+))))
799
800 (define-public gnome-recipes
801 (package
802 (name "gnome-recipes")
803 (version "2.0.4")
804 (source (origin
805 (method git-fetch)
806 (uri (git-reference
807 (url "https://gitlab.gnome.org/GNOME/recipes")
808 (commit version)))
809 (file-name (git-file-name name version))
810 (sha256
811 (base32
812 "1h049mzqnlcfqwrhmzbq3pzzdglvy2bn9fj1p8wql7a60pn8sr32"))))
813 (build-system meson-build-system)
814 (arguments
815 `(#:glib-or-gtk? #t
816 #:phases
817 (modify-phases %standard-phases
818 (add-after 'unpack 'skip-gtk-update-icon-cache
819 (lambda _
820 (substitute* "meson_post_install.py"
821 (("gtk-update-icon-cache") (which "true")))
822 #t))
823 (add-after 'unpack 'unpack-libgd
824 (lambda* (#:key inputs #:allow-other-keys)
825 (let ((libgd (assoc-ref inputs "libgd")))
826 (copy-recursively libgd "subprojects/libgd")
827 #t))))))
828 (inputs
829 `(("glib" ,glib)
830 ("gnome-autoar" ,gnome-autoar)
831 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
832 ("gspell" ,gspell)
833 ("gtk+" ,gtk+)
834 ("json-glib" ,json-glib)
835 ("libcanberra" ,libcanberra)
836 ("libsoup" ,libsoup)
837 ("rest" ,rest)))
838 (native-inputs
839 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
840 ("gettext" ,gettext-minimal)
841 ("glib:bin" ,glib "bin")
842 ("itstool" ,itstool)
843 ("libgd"
844 ,(origin
845 (method git-fetch)
846 (uri (git-reference
847 (url "https://gitlab.gnome.org/GNOME/libgd")
848 (commit "c7c7ff4e05d3fe82854219091cf116cce6b19de0")))
849 (file-name (git-file-name "libgd" version))
850 (sha256
851 (base32 "16yld0ap7qj1n96h4f2sqkjmibg7xx5xwkqxdfzam2nmyfdlrrrs"))))
852 ("pkg-config" ,pkg-config)))
853 (home-page "https://wiki.gnome.org/Apps/Recipes")
854 (synopsis "Discover recipes for preparing food")
855 (description "GNOME Recipes helps you discover what to cook today,
856 tomorrow, the rest of the week and for special occasions.")
857 (license license:gpl3+)))
858
859 (define-public gnome-photos
860 (package
861 (name "gnome-photos")
862 (version "3.34.2")
863 (source
864 (origin
865 (method url-fetch)
866 (uri
867 (string-append "mirror://gnome/sources/" name "/"
868 (version-major+minor version) "/"
869 name "-" version ".tar.xz"))
870 (sha256
871 (base32
872 "06ml5sf8xhpan410msqz085hmfc7082d368pb82yq646y9pcfn9w"))))
873 (build-system meson-build-system)
874 (arguments
875 `(#:glib-or-gtk? #t
876 #:configure-flags
877 (list "-Ddogtail=false" ; Not available
878 ;; Required for RUNPATH validation.
879 (string-append "-Dc_link_args=-Wl,-rpath="
880 (assoc-ref %outputs "out") "/lib/gnome-photos"))
881 #:phases
882 (modify-phases %standard-phases
883 (add-after 'install 'wrap-gnome-photos
884 (lambda* (#:key inputs outputs #:allow-other-keys)
885 (let*
886 ((out (assoc-ref outputs "out")))
887 (wrap-program (string-append out "/bin/gnome-photos")
888 `("GRL_PLUGIN_PATH" = (,(getenv "GRL_PLUGIN_PATH")))))
889 #t)))))
890 (native-inputs
891 `(("dbus" ,dbus)
892 ("desktop-file-utils" ,desktop-file-utils)
893 ("gettext" ,gettext-minimal)
894 ("git" ,git-minimal)
895 ("glib:bin" ,glib "bin")
896 ("gobject-introspection" ,gobject-introspection)
897 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
898 ("gtk+:bin" ,gtk+ "bin")
899 ("itstool" ,itstool)
900 ("pkg-config" ,pkg-config)))
901 (inputs
902 `(("babl" ,babl)
903 ("cairo" ,cairo)
904 ("gdk-pixbuf" ,gdk-pixbuf+svg)
905 ("gegl" ,gegl)
906 ("geocode-glib" ,geocode-glib)
907 ("gexiv2" ,gexiv2)
908 ("gnome-online-accounts" ,gnome-online-accounts)
909 ("gnome-online-miners" ,gnome-online-miners)
910 ("grilo" ,grilo)
911 ("grilo-plugins" ,grilo-plugins)
912 ("gtk+" ,gtk+)
913 ("libdazzle" ,libdazzle)
914 ("libgdata" ,libgdata)
915 ("libgfbgraph" ,gfbgraph)
916 ("libjpeg" ,libjpeg-turbo)
917 ("libpng" ,libpng)
918 ("librest" ,rest)
919 ("pygobject" ,python-pygobject)
920 ("tracker" ,tracker)
921 ("tracker-miners" ,tracker-miners)))
922 (synopsis "Access, organize and share your photos on GNOME desktop")
923 (description "GNOME Photos is a simple and elegant replacement for using a
924 file manager to deal with photos. Enhance, crop and edit in a snap. Seamless
925 cloud integration is offered through GNOME Online Accounts.")
926 (home-page "https://wiki.gnome.org/Apps/Photos")
927 (license license:gpl3+)))
928
929 (define-public gnome-music
930 (package
931 (name "gnome-music")
932 (version "3.34.5")
933 (source
934 (origin
935 (method url-fetch)
936 (uri
937 (string-append "mirror://gnome/sources/" name "/"
938 (version-major+minor version) "/"
939 name "-" version ".tar.xz"))
940 (sha256
941 (base32
942 "1r5sfw5cbd6qqh27lzhblazir0bfi3k7nqppw66qw990isqm5psy"))))
943 (build-system meson-build-system)
944 (arguments
945 `(#:glib-or-gtk? #t
946 #:phases
947 (modify-phases %standard-phases
948 (add-after 'install 'wrap-gnome-music
949 (lambda* (#:key inputs outputs #:allow-other-keys)
950 (let*
951 ((out (assoc-ref outputs "out"))
952 (pylib (string-append out "/lib/python"
953 ,(version-major+minor
954 (package-version python))
955 "/site-packages")))
956 (wrap-program (string-append out "/bin/gnome-music")
957 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))
958 `("GST_PLUGIN_SYSTEM_PATH" = (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
959 `("GRL_PLUGIN_PATH" = (,(getenv "GRL_PLUGIN_PATH")))
960 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))))
961 #t)))))
962 (native-inputs
963 `(("desktop-file-utils" ,desktop-file-utils)
964 ("gettext" ,gettext-minimal)
965 ("glib:bin" ,glib "bin")
966 ("gobject-introspection" ,gobject-introspection)
967 ("gtk+:bin" ,gtk+ "bin")
968 ("itstools" ,itstool)
969 ("pkg-config" ,pkg-config)))
970 (inputs
971 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
972 ("grilo" ,grilo)
973 ("grilo-plugins" ,grilo-plugins)
974 ("gst-plugins-base" ,gst-plugins-base)
975 ("gstreamer" ,gstreamer)
976 ("gvfs" ,gvfs)
977 ("libdazzle" ,libdazzle)
978 ("libmediaart" ,libmediaart)
979 ("libsoup" ,libsoup)
980 ("pycairo" ,python-pycairo)
981 ("pygobject" ,python-pygobject)
982 ("tracker" ,tracker)
983 ("tracker-miners" ,tracker-miners)))
984 (synopsis "Simple music player for GNOME desktop")
985 (description "GNOME Music is the new GNOME music playing application that
986 aims to combine an elegant and immersive browsing experience with simple
987 and straightforward controls.")
988 (home-page "https://wiki.gnome.org/Apps/Music")
989 (license license:gpl2+)))
990
991 (define-public portablexdr
992 (package
993 (name "portablexdr")
994 (version "4.9.1")
995 (source
996 (origin
997 (method url-fetch)
998 (uri
999 (string-append "https://people.redhat.com/~rjones/" name "/files/"
1000 name "-" version ".tar.gz"))
1001 (sha256
1002 (base32
1003 "0b77ipvvi520nv7rr6jb1c3xryhc3m2mywhby7m48kfgag8vvx2w"))))
1004 (build-system gnu-build-system)
1005 (synopsis "External Data Representation Library")
1006 (description "PortableXDR is an implementation of External Data
1007 Representation (XDR) Library. It is a standard data serialization format, for
1008 uses such as computer network protocols. It allows data to be transferred
1009 between different kinds of computer systems.")
1010 (home-page "https://people.redhat.com/~rjones/portablexdr/")
1011 (license
1012 (list
1013 license:gpl2+
1014 license:lgpl2.1+))))
1015
1016 (define-public tepl
1017 (package
1018 (name "tepl")
1019 (version "4.4.0")
1020 (source
1021 (origin
1022 (method url-fetch)
1023 (uri
1024 (string-append "mirror://gnome/sources/" name "/"
1025 (version-major+minor version) "/"
1026 name "-" version ".tar.xz"))
1027 (sha256
1028 (base32
1029 "0mm2z849hnni7597an05mrv0dckrxjngpf2xfa0g5s17i8x6gxp6"))))
1030 (build-system glib-or-gtk-build-system)
1031 (arguments
1032 `(#:tests? #f)) ; FIX-ME: Requires gvfs
1033 (native-inputs
1034 `(("gobject-introspection" ,gobject-introspection)
1035 ("pkg-config" ,pkg-config)))
1036 (inputs
1037 `(("amtk" ,amtk)
1038 ("glib" ,glib)
1039 ("gtk+" ,gtk+)
1040 ("gtksourceview" ,gtksourceview)
1041 ("libxml2" ,libxml2)
1042 ("uchardet" ,uchardet)))
1043 (synopsis "Text editor product line")
1044 (description "Tepl is a library that eases the development of
1045 GtkSourceView-based text editors and IDEs.")
1046 (home-page "https://wiki.gnome.org/Projects/Tepl")
1047 (license license:lgpl2.1+)))
1048
1049 (define-public krb5-auth-dialog
1050 (package
1051 (name "krb5-auth-dialog")
1052 (version "3.26.1")
1053 (source
1054 (origin
1055 (method url-fetch)
1056 (uri
1057 (string-append "mirror://gnome/sources/" name "/"
1058 (version-major+minor version) "/"
1059 name "-" version ".tar.xz"))
1060 (sha256
1061 (base32
1062 "1w91gsvmifqhiam3xqf88i5rk2w6qadjalmbvvamjdc37j0vdc6x"))))
1063 (build-system glib-or-gtk-build-system)
1064 (native-inputs
1065 `(("intltool" ,intltool)
1066 ("itstool" ,itstool)
1067 ("libxml2" ,libxml2)
1068 ("pkg-config" ,pkg-config)
1069 ("python-wrapper" ,python-wrapper)))
1070 (inputs
1071 `(("glib" ,glib)
1072 ("gtk+" ,gtk+)
1073 ("libnotify" ,libnotify)
1074 ("mit-krb5" ,mit-krb5)
1075 ("network-manager" ,network-manager)))
1076 (synopsis "Popup dialogs for Kerberos 5")
1077 (description "krb5-auth-dialog is a simple dialog that monitors Kerberos
1078 tickets, and pops up a dialog when they are about to expire.")
1079 (home-page "https://gitlab.gnome.org/GNOME/krb5-auth-dialog")
1080 (license license:gpl2+)))
1081
1082 (define-public notification-daemon
1083 (package
1084 (name "notification-daemon")
1085 (version "3.20.0")
1086 (source
1087 (origin
1088 (method url-fetch)
1089 (uri
1090 (string-append "mirror://gnome/sources/" name "/"
1091 (version-major+minor version) "/"
1092 name "-" version ".tar.xz"))
1093 (sha256
1094 (base32
1095 "1rgchqi4j2ll7d6a7lgy7id0w9rrkwkgic1096fbm2zx6n7pc4yx"))))
1096 (build-system glib-or-gtk-build-system)
1097 (native-inputs
1098 `(("intltool" ,intltool)
1099 ("pkg-config" ,pkg-config)))
1100 (inputs
1101 `(("glib" ,glib)
1102 ("gtk+" ,gtk+)
1103 ("x11" ,libx11)))
1104 (synopsis "Notification Daemon for GNOME Desktop")
1105 (description "Notification-Daemon is the server implementation of the
1106 freedesktop.org desktop notification specification.")
1107 (home-page "https://wiki.gnome.org/Projects/NotificationDaemon")
1108 (license license:gpl2+)))
1109
1110 (define-public mm-common
1111 (package
1112 (name "mm-common")
1113 (version "1.0.3")
1114 (source (origin
1115 (method url-fetch)
1116 (uri (string-append "mirror://gnome/sources/mm-common/"
1117 (version-major+minor version) "/"
1118 "mm-common-" version ".tar.xz"))
1119 (sha256
1120 (base32
1121 "1x8yvjy0yg17qyhmqws8xh2k8dvzrhpwqz7j1cfwzalrb1i9c5g8"))))
1122 (build-system meson-build-system)
1123 (arguments
1124 `(#:meson ,meson-0.55
1125 #:phases
1126 (modify-phases %standard-phases
1127 (add-after 'unpack 'patch
1128 (lambda* (#:key inputs #:allow-other-keys)
1129 (substitute* "util/mm-common-prepare.in"
1130 (("ln") (string-append (assoc-ref inputs "coreutils")
1131 "/bin/ln"))
1132 (("cp") (string-append (assoc-ref inputs "coreutils")
1133 "/bin/cp"))
1134 (("sed") (string-append (assoc-ref inputs "sed")
1135 "/bin/sed"))
1136 (("cat") (string-append (assoc-ref inputs "coreutils")
1137 "/bin/cat")))
1138 #t)))))
1139 (native-inputs
1140 `(("coreutils" ,coreutils)
1141 ("gettext" ,gettext-minimal)
1142 ("pkg-config" ,pkg-config)
1143 ("sed" ,sed)))
1144 (inputs
1145 `(("python" ,python)))
1146 (synopsis "Module of GNOME C++ bindings")
1147 (description "The mm-common module provides the build infrastructure
1148 and utilities shared among the GNOME C++ binding libraries. Release
1149 archives of mm-common include the Doxygen tag file for the GNU C++
1150 Library reference documentation.")
1151 (home-page "https://gitlab.gnome.org/GNOME/mm-common")
1152 (license license:gpl2+)))
1153
1154 (define-public phodav
1155 (package
1156 (name "phodav")
1157 (version "2.5")
1158 (source (origin
1159 (method url-fetch)
1160 (uri (string-append "mirror://gnome/sources/" name "/"
1161 (version-major+minor version) "/"
1162 name "-" version ".tar.xz"))
1163 (sha256
1164 (base32
1165 "045rdzf8isqmzix12lkz6z073b5qvcqq6ad028advm5gf36skw3i"))))
1166 (build-system meson-build-system)
1167 (arguments
1168 `(#:phases
1169 (modify-phases %standard-phases
1170 (add-before 'check 'start-virtual-dir-server
1171 ;; The same server when started by tests/virtual-dir returns an
1172 ;; unexpected status (4 instead of 200) and fails a test. It is
1173 ;; unclear why starting it manually here makes it pass.
1174 (lambda _
1175 (system "tests/virtual-dir-server &")
1176 #t)))))
1177 (native-inputs
1178 `(("docbook-xml" ,docbook-xml-4.3)
1179 ("gettext" ,gettext-minimal)
1180 ("glib:bin" ,glib "bin")
1181 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1182 ("gtk-doc" ,gtk-doc/stable)
1183 ("pkg-config" ,pkg-config)))
1184 (inputs
1185 `(("avahi" ,avahi)
1186 ("libgudev" ,libgudev)
1187 ("libsoup" ,libsoup)))
1188 (synopsis "WebDav server implementation using libsoup")
1189 (description "PhoDav was initially developed as a file-sharing mechanism for Spice,
1190 but it is generic enough to be reused in other projects,
1191 in particular in the GNOME desktop.")
1192 (home-page "https://wiki.gnome.org/phodav")
1193 (license license:lgpl2.1+)))
1194
1195 (define-public gnome-color-manager
1196 (package
1197 (name "gnome-color-manager")
1198 (version "3.32.0")
1199 (source (origin
1200 (method url-fetch)
1201 (uri (string-append "mirror://gnome/sources/" name "/"
1202 (version-major+minor version) "/"
1203 name "-" version ".tar.xz"))
1204 (sha256
1205 (base32
1206 "1vpxa2zjz3lkq9ldjg0fl65db9s6b4kcs8nyaqfz3jygma7ifg3w"))))
1207 (build-system meson-build-system)
1208 (arguments
1209 `(#:glib-or-gtk? #t
1210 #:phases
1211 (modify-phases %standard-phases
1212 (add-before
1213 'check 'pre-check
1214 (lambda _
1215 ;; Tests require a running X server.
1216 (system "Xvfb :1 &")
1217 (setenv "DISPLAY" ":1")
1218 #t)))))
1219 (native-inputs
1220 `(("desktop-file-utils" ,desktop-file-utils)
1221 ("gettext" ,gettext-minimal)
1222 ("glib:bin" ,glib "bin")
1223 ("gtk+:bin" ,gtk+ "bin")
1224 ("itstool" ,itstool)
1225 ("pkg-config" ,pkg-config)
1226 ("xorg-server" ,xorg-server-for-tests)))
1227 (inputs
1228 `(("adwaita-icon-theme" ,adwaita-icon-theme)
1229 ("appstream-glib" ,appstream-glib)
1230 ("colord-gtk" ,colord-gtk)
1231 ("exiv2" ,exiv2)
1232 ("gnome-desktop" ,gnome-desktop)
1233 ("libcanberra" ,libcanberra)
1234 ("libexif" ,libexif)
1235 ("libtiff" ,libtiff)
1236 ("libxrandr" ,libxrandr)
1237 ("libxtst" ,libxtst)
1238 ("libxxf86vm" ,libxxf86vm)
1239 ("vte" ,vte)
1240 ("xorgproto" ,xorgproto)))
1241 (synopsis "Color profile manager for the GNOME desktop")
1242 (description "GNOME Color Manager is a session framework that makes
1243 it easy to manage, install and generate color profiles
1244 in the GNOME desktop.")
1245 (home-page "https://gitlab.gnome.org/GNOME/gnome-color-manager")
1246 (license license:gpl2+)))
1247
1248 (define-public gnome-online-miners
1249 (package
1250 (name "gnome-online-miners")
1251 (version "3.34.0")
1252 (source (origin
1253 (method url-fetch)
1254 (uri (string-append "mirror://gnome/sources/" name "/"
1255 (version-major+minor version) "/"
1256 name "-" version ".tar.xz"))
1257 (sha256
1258 (base32
1259 "1n2jz9i8a42zwxx5h8j2gdy6q1vyydh4vl00r0al7w8jzdh24p44"))))
1260 (build-system glib-or-gtk-build-system)
1261 (native-inputs
1262 `(("gettext" ,gettext-minimal)
1263 ("glib:bin" ,glib "bin")
1264 ("gobject-introspection" ,gobject-introspection)
1265 ("gtk+:bin" ,gtk+ "bin")
1266 ("pkg-config" ,pkg-config)))
1267 (inputs
1268 `(("gnome-online-accounts" ,gnome-online-accounts)
1269 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1270 ("grilo" ,grilo)
1271 ("libgdata" ,libgdata)
1272 ("libgfbgraph" ,gfbgraph)
1273 ("libzapojit" ,libzapojit)
1274 ("rest" ,rest)
1275 ("tracker" ,tracker)))
1276 (synopsis "Web Crawlers for GNOME")
1277 (description "GNOME Online Miners provides a set of crawlers that
1278 go through your online content and index them locally in Tracker.
1279 It has miners for Facebook, Flickr, Google, ownCloud and SkyDrive.")
1280 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineMiners")
1281 (license license:gpl2+)))
1282
1283 (define-public gssdp
1284 (package
1285 (name "gssdp")
1286 (version "1.2.3")
1287 (source (origin
1288 (method url-fetch)
1289 (uri (string-append "mirror://gnome/sources/" name "/"
1290 (version-major+minor version) "/"
1291 name "-" version ".tar.xz"))
1292 (sha256
1293 (base32
1294 "1s57i8a8wnnxnsfl27cq4503dkdlzbrhry5zpg23sfqfffvdqqx2"))))
1295 (build-system meson-build-system)
1296 (native-inputs
1297 `(("gettext" ,gettext-minimal)
1298 ("glib:bin" ,glib "bin")
1299 ("gobject-introspection" ,gobject-introspection)
1300 ("gtk-doc" ,gtk-doc/stable)
1301 ("pkg-config" ,pkg-config)
1302 ("vala" ,vala)))
1303 (inputs
1304 `(("gtk+" ,gtk+)
1305 ("libsoup" ,libsoup)))
1306 (synopsis "GObject-based API over @acronym{SSDP, Simple Service Discovery
1307 Protocol} for GNOME")
1308 (description "This package provides a library to handle resource discovery
1309 and announcement over @acronym{SSDP, Simple Service Discovery Protocol} and
1310 a debugging tool, @command{gssdp-device-sniffer}.")
1311 (home-page "https://gitlab.gnome.org/GNOME/gssdp")
1312 (license license:lgpl2.0+)))
1313
1314 (define-public gupnp
1315 (package
1316 (name "gupnp")
1317 (version "1.2.4")
1318 (source (origin
1319 (method url-fetch)
1320 (uri (string-append "mirror://gnome/sources/" name "/"
1321 (version-major+minor version) "/"
1322 name "-" version ".tar.xz"))
1323 (sha256
1324 (base32
1325 "1ld7mrpdv9cszmfzh7i19qx4li25j3fr7x1jp38l8phzlmz3187p"))))
1326 (build-system meson-build-system)
1327 (native-inputs
1328 `(("gettext" ,gettext-minimal)
1329 ("glib:bin" ,glib "bin")
1330 ("gobject-introspection" ,gobject-introspection)
1331 ("gtk-doc" ,gtk-doc/stable)
1332 ("pkg-config" ,pkg-config)
1333 ("vala" ,vala)))
1334 (inputs
1335 `(("gssdp" ,gssdp)
1336 ("gtk+" ,gtk+)
1337 ("libsoup" ,libsoup)))
1338 (propagated-inputs
1339 `(;; For ‘org.gnome.system.proxy’.
1340 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
1341 (synopsis "PnP API for GNOME")
1342 (description "This package provides GUPnP, an object-oriented framework
1343 for creating UPnP devices and control points, written in C using
1344 @code{GObject} and @code{libsoup}.")
1345 (home-page "https://gitlab.gnome.org/GNOME/gupnp")
1346 (license license:lgpl2.0+)))
1347
1348 (define-public gupnp-dlna
1349 (package
1350 (name "gupnp-dlna")
1351 (version "0.10.5")
1352 (source (origin
1353 (method url-fetch)
1354 (uri (string-append "mirror://gnome/sources/" name "/"
1355 (version-major+minor version) "/"
1356 name "-" version ".tar.xz"))
1357 (sha256
1358 (base32
1359 "0spzd2saax7w776p5laixdam6d7smyynr9qszhbmq7f14y13cghj"))))
1360 (build-system gnu-build-system)
1361 (native-inputs
1362 `(("gettext" ,gettext-minimal)
1363 ("glib:bin" ,glib "bin")
1364 ("gobject-introspection" ,gobject-introspection)
1365 ("gtk-doc" ,gtk-doc/stable)
1366 ("libxml" ,libxml2)
1367 ("pkg-config" ,pkg-config)
1368 ("vala" ,vala)))
1369 (inputs
1370 `(("gstreamer" ,gstreamer)
1371 ("gupnp" ,gupnp)))
1372 (propagated-inputs
1373 `(("gst-plugins-base" ,gst-plugins-base)
1374 ("gst-plugins-good" ,gst-plugins-good)))
1375 (synopsis "GUPnP DLNA for GNOME")
1376 (description "This package provides a small utility library to
1377 support DLNA-related tasks such as media profile guessing, transcoding to a
1378 given profile, etc. DLNA is a subset of UPnP A/V.")
1379 (home-page "https://gitlab.gnome.org/GNOME/gupnp-dlna")
1380 (license license:lgpl2.0+)))
1381
1382 (define-public gupnp-av
1383 (package
1384 (name "gupnp-av")
1385 (version "0.12.11")
1386 (source (origin
1387 (method url-fetch)
1388 (uri (string-append "mirror://gnome/sources/" name "/"
1389 (version-major+minor version) "/"
1390 name "-" version ".tar.xz"))
1391 (sha256
1392 (base32
1393 "1p3grslwqm9bc8rmpn4l48d7v9s84nina4r9xbd932dbj8acz7b8"))))
1394 (build-system gnu-build-system)
1395 (native-inputs
1396 `(("gettext" ,gettext-minimal)
1397 ("glib:bin" ,glib "bin")
1398 ("gobject-introspection" ,gobject-introspection)
1399 ("gtk-doc" ,gtk-doc/stable)
1400 ("libxml" ,libxml2)
1401 ("pkg-config" ,pkg-config)))
1402 (inputs
1403 `(("gtk+" ,gtk+)
1404 ("gupnp" ,gupnp)))
1405 (synopsis "GUPnP A/V for GNOME")
1406 (description "This package provides a small library for handling
1407 and implementation of UPnP A/V profiles.")
1408 (home-page "https://gitlab.gnome.org/GNOME/gupnp-av")
1409 (license license:lgpl2.0+)))
1410
1411 (define-public libmediaart
1412 (package
1413 (name "libmediaart")
1414 (version "1.9.5")
1415 (source (origin
1416 (method url-fetch)
1417 (uri (string-append "mirror://gnome/sources/" name "/"
1418 (version-major+minor version) "/"
1419 name "-" version ".tar.xz"))
1420 (sha256
1421 (base32
1422 "1mlw1qgj8nkd9ll6b6h54r1gfdy3zp8a8xqz7qfyfaj85jjgbph7"))))
1423 (build-system meson-build-system)
1424 (arguments
1425 `(#:meson ,meson-next))
1426 (native-inputs
1427 `(("glib:bin" ,glib "bin")
1428 ("pkg-config" ,pkg-config)))
1429 (inputs
1430 `(("gdk-pixbuf" ,gdk-pixbuf)
1431 ("gettext" ,gettext-minimal)
1432 ("gobject-introspection" ,gobject-introspection)
1433 ("gtk+:doc" ,gtk+ "doc")
1434 ("vala" ,vala)))
1435 (synopsis "Media art library for the GNOME desktop")
1436 (description
1437 "The libmediaart library is the foundation for media art caching,
1438 extraction, and lookup for applications on the desktop.")
1439 (home-page "https://gitlab.gnome.org/GNOME/libmediaart")
1440 (license license:lgpl2.1+)))
1441
1442 (define-public gnome-initial-setup
1443 (package
1444 (name "gnome-initial-setup")
1445 (version "3.32.1")
1446 (source (origin
1447 (method url-fetch)
1448 (uri (string-append "mirror://gnome/sources/gnome-initial-setup/"
1449 (version-major+minor version)
1450 "/gnome-initial-setup-" version ".tar.xz"))
1451 (sha256
1452 (base32
1453 "1gwhp7dalyc8zsb2pa66cmpdrj2d6drbq5p331sq6zp8ds10k9ry"))))
1454 (build-system meson-build-system)
1455 (arguments
1456 '(#:configure-flags '(;; Enable camera support for user selfie.
1457 "-Dcheese=auto"
1458 "-Dsystemd=false")
1459 #:phases (modify-phases %standard-phases
1460 (add-after 'unpack 'set-gkbd-file-name
1461 (lambda* (#:key inputs #:allow-other-keys)
1462 ;; Allow the "Preview" button in the keyboard layout
1463 ;; selection dialog to display the layout.
1464 (let ((libgnomekbd (assoc-ref inputs "libgnomekbd")))
1465 (substitute* "gnome-initial-setup/pages/keyboard/cc-input-chooser.c"
1466 (("\"gkbd-keyboard-display")
1467 (string-append "\"" libgnomekbd
1468 "/bin/gkbd-keyboard-display")))
1469 #t))))))
1470 (native-inputs
1471 `(("gettext" ,gettext-minimal)
1472 ("glib:bin" ,glib "bin")
1473 ("gobject-introspection" ,gobject-introspection)
1474 ("gtk+:bin" ,gtk+ "bin")
1475 ("pkg-config" ,pkg-config)))
1476 (inputs
1477 `(("accountsservice" ,accountsservice)
1478 ;("adwaita-icon-theme" ,adwaita-icon-theme)
1479 ("gdm" ,gdm)
1480 ("geoclue" ,geoclue)
1481 ("gnome-desktop" ,gnome-desktop)
1482 ("gnome-getting-started-docs" ,gnome-getting-started-docs)
1483 ("gnome-online-accounts" ,gnome-online-accounts)
1484 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1485 ("gstreamer" ,gstreamer)
1486 ("ibus" ,ibus)
1487 ("json-glib" ,json-glib)
1488 ("krb5" ,mit-krb5)
1489 ("libgweather" ,libgweather)
1490 ("libnma" ,libnma)
1491 ("libsecret" ,libsecret)
1492 ("network-manager" ,network-manager)
1493 ("packagekit" ,packagekit)
1494 ("polkit" ,polkit)
1495 ("pwquality" ,libpwquality)
1496 ("rest" ,rest)
1497 ("upower" ,upower)
1498 ("webkitgtk" ,webkitgtk)
1499 ("libgnomekbd" ,libgnomekbd)))
1500 (synopsis "Initial setup wizard for GNOME desktop")
1501 (description "This package provides a set-up wizard when a
1502 user logs into GNOME for the first time. It typically provides a
1503 tour of all gnome components and allows the user to set them up.")
1504 (home-page "https://gitlab.gnome.org/GNOME/gnome-initial-setup")
1505 (license license:gpl2)))
1506
1507 (define-public gnome-user-share
1508 (package
1509 (name "gnome-user-share")
1510 (version "3.33.1")
1511 (source (origin
1512 (method url-fetch)
1513 (uri (string-append "mirror://gnome/sources/" name "/"
1514 (version-major+minor version) "/"
1515 name "-" version ".tar.xz"))
1516 (sha256
1517 (base32
1518 "0lf790pyamdyj7180ils8vizjl8brxcg7jsm1iavfp9ay4wa8mz7"))))
1519 (build-system meson-build-system)
1520 (arguments
1521 `(#:glib-or-gtk? #t
1522 #:configure-flags
1523 `("-Dsystemd=false"
1524 ;; Enable nautilus extension for file sharing.
1525 "-Dnautilus_extension=true")))
1526 (native-inputs
1527 `(("gettext" ,gettext-minimal)
1528 ("glib:bin" ,glib "bin")
1529 ("gobject-introspection" ,gobject-introspection)
1530 ("gtk+:bin" ,gtk+ "bin")
1531 ("pkg-config" ,pkg-config)
1532 ("yelp-tools" ,yelp-tools)))
1533 (inputs
1534 `(("glib" ,glib)
1535 ("gnome-bluetooth" ,gnome-bluetooth)
1536 ("gtk+" ,gtk+)
1537 ("libcanberra" ,libcanberra)
1538 ("libnotify" ,libnotify)
1539 ("nautilus" ,nautilus))) ; For nautilus extension.
1540 (synopsis "File sharing for GNOME desktop")
1541 (description "GNOME User Share is a small package that binds together
1542 various free software projects to bring easy to use user-level file
1543 sharing to the masses.")
1544 (home-page "https://gitlab.gnome.org/GNOME/gnome-user-share")
1545 (license license:gpl2+)))
1546
1547 (define-public sushi
1548 (package
1549 (name "sushi")
1550 (version "3.32.1")
1551 (source (origin
1552 (method url-fetch)
1553 (uri (string-append "mirror://gnome/sources/" name "/"
1554 (version-major+minor version) "/"
1555 name "-" version ".tar.xz"))
1556 (sha256
1557 (base32
1558 "02idvqjk76lii9xyg3b1yz4rw721709bdm5j8ikjym6amcghl0aj"))))
1559 (build-system meson-build-system)
1560 (arguments
1561 `(#:glib-or-gtk? #t
1562 #:phases
1563 (modify-phases %standard-phases
1564 (add-after 'glib-or-gtk-wrap 'wrap-typelib
1565 (lambda* (#:key outputs #:allow-other-keys)
1566 (let ((prog (string-append (assoc-ref outputs "out")
1567 "/bin/sushi")))
1568 ;; Put existing typelibs before sushi's deps, so as to correctly
1569 ;; infer gdk-pixbuf
1570 (wrap-program prog
1571 `("GI_TYPELIB_PATH" suffix (,(getenv "GI_TYPELIB_PATH"))))
1572 #t))))))
1573 (native-inputs
1574 `(("glib:bin" ,glib "bin")
1575 ("gettext" ,gettext-minimal)
1576 ("gobject-introspection" ,gobject-introspection)
1577 ("pkg-config" ,pkg-config)))
1578 (inputs
1579 `(("clutter" ,clutter)
1580 ("clutter-gst" ,clutter-gst)
1581 ("clutter-gtk" ,clutter-gtk)
1582 ("evince" ,evince) ; For file previewing.
1583 ("freetype" ,freetype)
1584 ("gdk-pixbuf" ,gdk-pixbuf)
1585 ("gjs" ,gjs)
1586 ("gst-plugins-base" ,gst-plugins-base)
1587 ("gstreamer" ,gstreamer)
1588 ("gtksourceview" ,gtksourceview-3)
1589 ("harfbuzz" ,harfbuzz)
1590 ("libepoxy" ,libepoxy)
1591 ("libmusicbrainz" ,libmusicbrainz)
1592 ("libxml2" ,libxml2)
1593 ("neon" ,neon)
1594 ("webkitgtk" ,webkitgtk)))
1595 (synopsis "File previewer for the GNOME desktop")
1596 (description "Sushi is a DBus-activated service that allows applications to
1597 preview files on the GNOME desktop.")
1598 (home-page "https://gitlab.gnome.org/GNOME/sushi")
1599 (license license:gpl2+)))
1600
1601 (define-public rygel
1602 (package
1603 (name "rygel")
1604 (version "0.38.3")
1605 (source (origin
1606 (method url-fetch)
1607 (uri (string-append "mirror://gnome/sources/" name "/"
1608 (version-major+minor version) "/"
1609 name "-" version ".tar.xz"))
1610 (sha256
1611 (base32
1612 "003xficqb08r1dgid20i7cn889lbfwrglpx78rjd5nkvgxbimhh8"))))
1613 (build-system gnu-build-system)
1614 (native-inputs
1615 `(("gettext" ,gettext-minimal)
1616 ("gobject-introspection" ,gobject-introspection)
1617 ("gtk-doc" ,gtk-doc/stable)
1618 ("pkg-config" ,pkg-config)
1619 ("vala" ,vala)))
1620 (inputs
1621 `(("gdk-pixbuf" ,gdk-pixbuf)
1622 ("gssdp" ,gssdp)
1623 ("gstreamer" ,gstreamer)
1624 ("gst-plugins-base" ,gst-plugins-base)
1625 ("gtk+" ,gtk+)
1626 ("gupnp" ,gupnp)
1627 ("gupnp-av" ,gupnp-av)
1628 ("gupnp-dlna" ,gupnp-dlna)
1629 ("libgee" ,libgee)
1630 ("libmediaart" ,libmediaart)
1631 ("libsoup" ,libsoup)
1632 ("libxslt" ,libxslt)
1633 ("libunistring" ,libunistring)
1634 ("tracker" ,tracker)))
1635 (synopsis "Share audio, video, and pictures with other devices")
1636 (description
1637 "Rygel is a home media solution (@dfn{UPnP AV MediaServer and
1638 MediaRenderer}) for GNOME that allows you to easily share audio, video, and
1639 pictures, and to control a media player on your home network.
1640
1641 Rygel achieves interoperability with other devices by trying to conform to the
1642 strict requirements of DLNA and by converting media on-the-fly to formats that
1643 client devices can handle.")
1644 (home-page "https://wiki.gnome.org/Projects/Rygel")
1645 (license (list
1646 ;; For logo (data/icons/*).
1647 license:cc-by-sa3.0
1648 ;; For all others.
1649 license:lgpl2.1+))))
1650
1651 (define-public libnma
1652 (package
1653 (name "libnma")
1654 (version "1.8.28")
1655 (source (origin
1656 (method url-fetch)
1657 (uri (string-append "mirror://gnome/sources/" name "/"
1658 (version-major+minor version) "/"
1659 name "-" version ".tar.xz"))
1660 (sha256
1661 (base32
1662 "09mp6k0hfam1vyyv9kcd8j4gb2r58i05ipx2nswb58ris599bxja"))))
1663 (build-system meson-build-system)
1664 (arguments
1665 `(#:phases
1666 (modify-phases %standard-phases
1667 (add-after 'unpack 'patch-docbook-xml
1668 (lambda* (#:key inputs #:allow-other-keys)
1669 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
1670 "/xml/dtd/docbook")))
1671 (substitute* "libnma-docs.xml"
1672 (("http://.*/docbookx\\.dtd")
1673 (string-append xmldoc "/docbookx.dtd")))
1674 #t))))))
1675 (native-inputs
1676 `(("docbook-xml" ,docbook-xml-4.3)
1677 ("gettext" ,gettext-minimal)
1678 ("glib:bin" ,glib "bin")
1679 ("gtk-doc" ,gtk-doc/stable)
1680 ("gobject-introspection" ,gobject-introspection)
1681 ("pkg-config" ,pkg-config)
1682 ("vala" ,vala)))
1683 (inputs
1684 `(("gcr" ,gcr)
1685 ("gtk+" ,gtk+)
1686 ("iso-codes" ,iso-codes)
1687 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)
1688 ("network-manager" ,network-manager)))
1689 (synopsis "Network Manager's applet library")
1690 (description "Libnma is an applet library for Network Manager. It was
1691 initially part of network-manager-applet and has now become a separate
1692 project.")
1693 (home-page "https://gitlab.gnome.org/GNOME/libnma")
1694 ;; Some files carry the "GPL-2.0+" SPDX identifier while others say
1695 ;; "LGPL-2.1+".
1696 (license license:gpl2+)))
1697
1698 (define-public gnome-menus
1699 (package
1700 (name "gnome-menus")
1701 (version "3.32.0")
1702 (source (origin
1703 (method url-fetch)
1704 (uri (string-append "mirror://gnome/sources/gnome-menus/"
1705 (version-major+minor version) "/"
1706 name "-" version ".tar.xz"))
1707 (sha256
1708 (base32
1709 "0x2blzqrapmbsbfzxjcdcpa3vkw9hq5k96h9kvjmy9kl415wcl68"))))
1710 (build-system gnu-build-system)
1711 (native-inputs
1712 `(("gettext" ,gettext-minimal)
1713 ("glib" ,glib)
1714 ("pkg-config" ,pkg-config)))
1715 (synopsis "Menu support for GNOME desktop")
1716 (description "GNOME Menus contains the libgnome-menu library, the layout
1717 configuration files for the GNOME menu, as well as a simple menu editor.")
1718 (home-page "https://gitlab.gnome.org/GNOME/gnome-menus")
1719 (license license:lgpl2.0+)))
1720
1721 (define-public deja-dup
1722 (package
1723 (name "deja-dup")
1724 (version "40.6")
1725 (source (origin
1726 (method url-fetch)
1727 (uri (string-append "https://gitlab.gnome.org/World/deja-dup/-/archive/"
1728 version "/deja-dup-" version ".tar.bz2"))
1729 (sha256
1730 (base32
1731 "0lwazh6crby5wpy9fg6zvwy4plqbhs2f98bm5lbizjdlbh88n5q0"))))
1732 (build-system meson-build-system)
1733 (arguments
1734 `(#:glib-or-gtk? #t
1735 #:configure-flags
1736 (list
1737 ;; Otherwise, the RUNPATH will lack the final path component.
1738 (string-append "-Dc_link_args=-Wl,-rpath="
1739 (assoc-ref %outputs "out") "/lib/deja-dup"))
1740 #:phases
1741 (modify-phases %standard-phases
1742 (add-after 'unpack 'patch-paths
1743 (lambda* (#:key inputs #:allow-other-keys)
1744 (let ((python (assoc-ref inputs "python")))
1745 (substitute* '("libdeja/tools/duplicity/DuplicityInstance.vala"
1746 "libdeja/tests/scripts/instance-error.test")
1747 (("/bin/rm")
1748 (which "rm")))
1749 (substitute* "libdeja/tests/runner.vala"
1750 (("/bin/sh")
1751 (which "sh")))
1752 (substitute* "libdeja/tests/scripts/instance-error.test"
1753 (("`which python3`")
1754 (string-append python "/bin/python3"))))))
1755 (add-after 'unpack 'patch-libgpg-error
1756 (lambda* (#:key inputs #:allow-other-keys)
1757 (let ((libgpg-error (assoc-ref inputs "libgpg-error")))
1758 (substitute* "meson.build"
1759 (("(gpgerror_libs = ).*" _ var)
1760 (format #f "~a '-L~a/lib -lgpg-error'\n" var libgpg-error))))
1761 #t))
1762 (add-after 'unpack 'skip-gtk-update-icon-cache
1763 ;; Don't create 'icon-theme.cache'.
1764 (lambda _
1765 (substitute* "data/post-install.sh"
1766 (("gtk-update-icon-cache") "true"))
1767 #t)))))
1768 (inputs
1769 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1770 ("duplicity" ,duplicity)
1771 ("python" ,python)
1772 ("python-pygobject" ,python-pygobject)
1773 ("gtk+" ,gtk+)
1774 ("json-glib" ,json-glib)
1775 ("libnotify" ,libnotify)
1776 ("libgpg-error" ,libgpg-error)
1777 ("libsecret" ,libsecret)
1778 ("libsoup" ,libsoup)
1779 ("packagekit" ,packagekit)))
1780 (native-inputs
1781 `(("appstream-glib" ,appstream-glib)
1782 ("desktop-file-utils" ,desktop-file-utils)
1783 ("gettext" ,gettext-minimal)
1784 ("glib" ,glib "bin") ; for glib-compile-schemas.
1785 ("gobject-introspection" ,gobject-introspection)
1786 ("itstool" ,itstool)
1787 ("pkg-config" ,pkg-config)
1788 ("vala" ,vala)))
1789 (home-page "https://wiki.gnome.org/Apps/DejaDup")
1790 (synopsis "Simple backup tool, for regular encrypted backups")
1791 (description
1792 "Déjà Dup is a simple backup tool, for regular encrypted backups. It
1793 uses duplicity as the backend, which supports incremental backups and storage
1794 either on a local, or remote machine via a number of methods.")
1795 (license license:gpl3+)))
1796
1797 (define-public gnome-commander
1798 (package
1799 (name "gnome-commander")
1800 (version "1.10.3")
1801 (source
1802 (origin
1803 (method url-fetch)
1804 (uri (string-append "mirror://gnome/sources/" name "/"
1805 (version-major+minor version) "/"
1806 "gnome-commander-" version ".tar.xz"))
1807 (sha256
1808 (base32 "0bis36awb73vhkncq8yr0qlnyaxynqkvmyqbg57ijqwd0m8hh4zg"))))
1809 (build-system glib-or-gtk-build-system)
1810 (native-inputs
1811 `(("desktop-file-utils" ,desktop-file-utils)
1812 ("gcc" ,gcc-8) ;required for -Wcast-function-type
1813 ("gettext" ,gettext-minimal)
1814 ("glib:bin" ,glib "bin")
1815 ("gobject-introspection" ,gobject-introspection)
1816 ("googletest" ,googletest)
1817 ("intltool" ,intltool)
1818 ("itstool" ,itstool)
1819 ("libtool" ,libtool)
1820 ("pkg-config" ,pkg-config)))
1821 (inputs
1822 `(("gconf" ,gconf)
1823 ("gnome-vfs" ,gnome-vfs)
1824 ("gtk+" ,gtk+-2)
1825 ("libxml2" ,libxml2)))
1826 (home-page "https://gcmd.github.io/")
1827 (synopsis "Two-pane graphical file manager for the GNOME desktop")
1828 (description
1829 "GNOME Commander is a two-pane graphical file manager using GNOME
1830 libraries. It aims to fulfill the demands of more advanced users who
1831 like to focus on file management, their work through special applications
1832 and running smart commands.")
1833 (license license:gpl2+)))
1834
1835 (define-public gnome-user-docs
1836 (package
1837 (name "gnome-user-docs")
1838 (version "3.32.3")
1839 (source
1840 (origin
1841 (method url-fetch)
1842 (uri (string-append "mirror://gnome/sources/gnome-user-docs/"
1843 (version-major+minor version)
1844 "/gnome-user-docs-" version ".tar.xz"))
1845 (sha256
1846 (base32 "0dvsl0ldg8rf7yq0r4dv1pn41s7gjgcqp7agkbflkbmhrl6vbhig"))))
1847 (build-system gnu-build-system)
1848 (native-inputs
1849 `(("gettext" ,gettext-minimal)
1850 ("itstool" ,itstool)
1851 ("pkg-config" ,pkg-config)
1852 ("xmllint" ,libxml2)))
1853 (synopsis "User documentation for the GNOME desktop")
1854 (description
1855 "The GNOME User Documentation explains how to use the GNOME desktop and its
1856 components. It covers usage and setup of the core GNOME programs by end-users
1857 and system administrators.")
1858 (home-page "https://live.gnome.org/DocumentationProject")
1859 (license license:cc-by3.0)))
1860
1861 (define-public gnome-getting-started-docs
1862 (package
1863 (name "gnome-getting-started-docs")
1864 (version "3.32.2")
1865 (source
1866 (origin
1867 (method url-fetch)
1868 (uri (string-append "mirror://gnome/sources/gnome-getting-started-docs/"
1869 (version-major+minor version)
1870 "/gnome-getting-started-docs-" version ".tar.xz"))
1871 (sha256
1872 (base32 "1v4k465mlzrhgcdddzs6bmm0yliyrfx6jg3gh0s17a08i0w5rbwq"))))
1873 (build-system gnu-build-system)
1874 (native-inputs
1875 `(("gettext" ,gettext-minimal)
1876 ("itstool" ,itstool)
1877 ("pkg-config" ,pkg-config)
1878 ("xmllint" ,libxml2)))
1879 (synopsis "Help to get new users started with the GNOME desktop")
1880 (description
1881 "The GNOME Getting Started Documentation contains GNOME's intuitive
1882 \"Getting Started\" tour, with video guides, that can be viewed with Yelp.
1883
1884 It is normally used together with @command{gnome-initial-setup}, but is also
1885 useful as a tutorial and users' guide for new or less experienced users.")
1886 (home-page "https://live.gnome.org/DocumentationProject")
1887 (license license:cc-by-sa3.0)))
1888
1889 (define-public dia
1890 ;; This version from GNOME's repository includes fixes for compiling with
1891 ;; recent versions of the build tools. The latest activity on the
1892 ;; pre-GNOME version has been in 2014, while GNOME has continued applying
1893 ;; fixes since.
1894 (let ((commit "3cf7ec4c2e5bca139a7f3e17f9fc9009c237fcc5")
1895 (revision "2"))
1896 (package
1897 (name "dia")
1898 (version (git-version "0.97.3" revision commit))
1899 (source (origin
1900 (method git-fetch)
1901 (uri (git-reference
1902 (url "https://gitlab.gnome.org/GNOME/dia.git/")
1903 (commit commit)))
1904 (file-name (git-file-name name version))
1905 (sha256
1906 (base32
1907 "04r8dspa6nmicrifhi3sh46hqvyy88hzq37xx99q3q1mwsrpmwy8"))))
1908 (build-system meson-build-system)
1909 (inputs
1910 `(("graphene" ,graphene)
1911 ("gtk+" ,gtk+-2)
1912 ("libxml2" ,libxml2)
1913 ("libxslt" ,libxslt)
1914 ("poppler" ,poppler)
1915 ;; Without Python 2, build fails: plug-ins/python/meson.build:4:0:
1916 ;; ERROR: Unknown method "dependency" in object.
1917 ("python-2" ,python-2)))
1918 (native-inputs
1919 `(("appstream-glib" ,appstream-glib)
1920 ("docbook-xsl" ,docbook-xsl)
1921 ("glib" ,glib "bin")
1922 ("intltool" ,intltool)
1923 ("pkg-config" ,pkg-config)))
1924 (home-page "https://wiki.gnome.org/Apps/Dia")
1925 (synopsis "Diagram creation for GNOME")
1926 (description "Dia can be used to draw different types of diagrams, and
1927 includes support for UML static structure diagrams (class diagrams), entity
1928 relationship modeling, and network diagrams. The program supports various file
1929 formats like PNG, SVG, PDF and EPS.")
1930 (license license:gpl2+))))
1931
1932 ;; This is the unstable release, but it is required for the current stable
1933 ;; release of gvfs (1.38.1).
1934 (define-public libgdata
1935 (package
1936 (name "libgdata")
1937 (version "0.17.9")
1938 (source (origin
1939 (method url-fetch)
1940 (uri (string-append "mirror://gnome/sources/" name "/"
1941 (version-major+minor version) "/"
1942 name "-" version ".tar.xz"))
1943 (sha256
1944 (base32
1945 "0fj54yqxdapdppisqm1xcyrpgcichdmipq0a0spzz6009ikzgi45"))))
1946 (build-system gnu-build-system)
1947 (arguments
1948 '(#:phases
1949 (modify-phases %standard-phases
1950 (add-before 'check 'disable-failing-tests
1951 (lambda _
1952 ;; The PicasaWeb API tests fail with gnome-online-accounts@3.24.2.
1953 ;; They have been removed in libgdata 0.17.6, so just do the same.
1954 (substitute* "gdata/tests/Makefile"
1955 (("picasaweb\\$\\(EXEEXT\\) ") ""))
1956 #t)))))
1957 (native-inputs
1958 `(("glib:bin" ,glib "bin")
1959 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1960 ("intltool" ,intltool)
1961 ("pkg-config" ,pkg-config)
1962 ("uhttpmock" ,uhttpmock)))
1963 (inputs
1964 `(("cyrus-sasl" ,cyrus-sasl)
1965 ("glib-networking" ,glib-networking)))
1966 (propagated-inputs
1967 `(("gcr" ,gcr)
1968 ("glib" ,glib)
1969 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1970 ("json-glib" ,json-glib)
1971 ("liboauth" ,liboauth)
1972 ("libsoup" ,libsoup)
1973 ("libxml2" ,libxml2)))
1974 (home-page "https://wiki.gnome.org/Projects/libgdata")
1975 (synopsis "Library for accessing online service APIs")
1976 (description
1977 "libgdata is a GLib-based library for accessing online service APIs using
1978 the GData protocol — most notably, Google's services. It provides APIs to
1979 access the common Google services, and has full asynchronous support.")
1980 (license license:lgpl2.1+)))
1981
1982 (define-public libgxps
1983 (package
1984 (name "libgxps")
1985 (version "0.3.2")
1986 (source (origin
1987 (method url-fetch)
1988 (uri (string-append "mirror://gnome/sources/" name "/"
1989 (version-major+minor version) "/"
1990 name "-" version ".tar.xz"))
1991 (sha256
1992 (base32
1993 "07156nj7yrp3h9zyzx6mjwxwmfijialb4gi5d6dwyp53arr8c9vd"))))
1994 (build-system meson-build-system)
1995 (native-inputs
1996 `(("gobject-introspection" ,gobject-introspection)
1997 ("pkg-config" ,pkg-config)))
1998 (inputs
1999 `(("gtk+" ,gtk+)
2000 ("libjpeg" ,libjpeg-turbo)
2001 ("lcms" ,lcms)
2002 ("libtiff" ,libtiff)))
2003 (propagated-inputs
2004 ;; In Requires of libgxps.pc.
2005 `(("cairo" ,cairo)
2006 ("glib" ,glib)
2007 ("libarchive" ,libarchive)))
2008 (home-page "https://wiki.gnome.org/Projects/libgxps")
2009 (synopsis "GObject-based library for handling and rendering XPS documents")
2010 (description
2011 "libgxps is a GObject-based library for handling and rendering XPS
2012 documents. This package also contains binaries that can convert XPS documents
2013 to other formats.")
2014 (license license:lgpl2.1+)))
2015
2016 (define-public gnome-characters
2017 (package
2018 (name "gnome-characters")
2019 (version "3.30.0")
2020 (source
2021 (origin
2022 (method url-fetch)
2023 (uri (string-append "mirror://gnome/sources/"
2024 "gnome-characters/" (version-major+minor version)
2025 "/gnome-characters-" version ".tar.xz"))
2026 (sha256
2027 (base32
2028 "08cwz39iwgsyyb2wqhb8vfbmh1cwfkgfiy7adp08w7rwqi99x3dp"))))
2029 (build-system meson-build-system)
2030 (arguments
2031 `(#:glib-or-gtk? #t
2032 #:phases (modify-phases %standard-phases
2033 (add-after 'install 'wrap
2034 (lambda* (#:key outputs #:allow-other-keys)
2035 ;; GNOME Characters needs Typelib files from GTK and
2036 ;; gnome-desktop.
2037 (wrap-program (string-append (assoc-ref outputs "out")
2038 "/bin/gnome-characters")
2039 `("GI_TYPELIB_PATH" ":" prefix
2040 (,(getenv "GI_TYPELIB_PATH"))))
2041 #t)))))
2042 (native-inputs
2043 `(("gettext" ,gettext-minimal)
2044 ("glib:bin" ,glib "bin")
2045 ("gtk+:bin" ,gtk+ "bin")
2046 ("pkg-config" ,pkg-config)
2047 ("python" ,python-minimal)))
2048 (inputs
2049 `(("gjs" ,gjs)
2050 ("gtk+" ,gtk+)
2051 ("libunistring" ,libunistring)
2052 ("gnome-desktop" ,gnome-desktop)))
2053 (home-page "https://wiki.gnome.org/Apps/CharacterMap")
2054 (synopsis "Find and insert unusual characters")
2055 (description "Characters is a simple utility application to find
2056 and insert unusual characters. It allows you to quickly find the
2057 character you are looking for by searching for keywords.")
2058 (license license:bsd-3)))
2059
2060 (define-public gnome-common
2061 (package
2062 (name "gnome-common")
2063 (version "3.18.0")
2064 (source
2065 (origin
2066 (method url-fetch)
2067 (uri (string-append "mirror://gnome/sources/" name "/"
2068 (version-major+minor version) "/"
2069 name "-" version ".tar.xz"))
2070 (sha256
2071 (base32
2072 "1kzqi8qvh5p1zncj8msazlmvcwsczjz2hqxp4x2y0mg718vrwmi2"))))
2073 (build-system gnu-build-system)
2074 (home-page "https://www.gnome.org/")
2075 (synopsis "Bootstrap GNOME modules built from Git")
2076 (description "gnome-common contains various files needed to bootstrap
2077 GNOME modules built from Git. It contains a common \"autogen.sh\" script that
2078 can be used to configure a source directory checked out from Git and some
2079 commonly used macros.")
2080 (license license:gpl2+)))
2081
2082 (define-public gnome-contacts
2083 (package
2084 (name "gnome-contacts")
2085 (version "3.34")
2086 (source (origin
2087 (method url-fetch)
2088 (uri (string-append "mirror://gnome/sources/gnome-contacts/"
2089 (version-major+minor version) "/"
2090 name "-" version ".tar.xz"))
2091 (sha256
2092 (base32
2093 "04igc9xvyc4kb5xf5g2missnvyvj9zv5cqxf5k4z7hb0sv42wq4r"))))
2094 (build-system meson-build-system)
2095 (arguments
2096 `(#:configure-flags '("-Dcheese=false")
2097 #:phases
2098 (modify-phases %standard-phases
2099 (add-after 'unpack 'generate-vapis
2100 (lambda* (#:key inputs #:allow-other-keys)
2101 ;; To generate goa's missing .vapi file
2102 (define goa
2103 (assoc-ref inputs "gnome-online-accounts:lib"))
2104
2105 (invoke "vapigen" "--directory=vapi" "--pkg=gio-2.0"
2106 "--library=goa-1.0"
2107 (string-append goa "/share/gir-1.0/Goa-1.0.gir"))
2108 #t))
2109 (add-after 'unpack 'skip-gtk-update-icon-cache
2110 ;; Don't create 'icon-theme.cache'.
2111 (lambda _
2112 (substitute* "build-aux/meson_post_install.py"
2113 (("gtk-update-icon-cache") "true"))
2114 #t)))))
2115 (native-inputs
2116 `(("glib:bin" ,glib "bin")
2117 ("pkg-config" ,pkg-config)))
2118 (inputs
2119 `(("docbook-xml" ,docbook-xml)
2120 ("dockbook-xsl" ,docbook-xsl)
2121 ("evolution-data-server" ,evolution-data-server)
2122 ("gettext" ,gettext-minimal)
2123 ("gnome-desktop" ,gnome-desktop)
2124 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
2125 ("gobject-introspection" ,gobject-introspection)
2126 ("gst-plugins-base" ,gst-plugins-base)
2127 ("gtk+" ,gtk+)
2128 ("libgee" ,libgee)
2129 ("libxslt" ,libxslt)
2130 ("telepathy-glib" ,telepathy-glib)
2131 ("vala" ,vala)))
2132 (propagated-inputs
2133 `(("folks" ,folks)
2134 ("telepathy-mission-control" ,telepathy-mission-control)))
2135 (synopsis "GNOME's integrated address book")
2136 (description
2137 "GNOME Contacts organizes your contact information from online and
2138 offline sources, providing a centralized place for managing your contacts.")
2139 (home-page "https://wiki.gnome.org/Apps/Contacts")
2140 (license license:gpl2+)))
2141
2142 (define-public gnome-desktop
2143 (package
2144 (name "gnome-desktop")
2145 (version "3.34.2")
2146 (source
2147 (origin
2148 (method url-fetch)
2149 (uri (string-append "mirror://gnome/sources/" name "/"
2150 (version-major+minor version) "/"
2151 name "-" version ".tar.xz"))
2152 (sha256
2153 (base32
2154 "1v983xirwp1y6ggz97bh742ak6gff0hxb359dgn37nikjxhvm0a0"))))
2155 (build-system meson-build-system)
2156 (arguments
2157 '(#:phases
2158 (modify-phases %standard-phases
2159 (add-before 'configure 'patch-path
2160 (lambda* (#:key inputs #:allow-other-keys)
2161 (let ((libc (assoc-ref inputs "libc")))
2162 (substitute* "libgnome-desktop/gnome-languages.c"
2163 (("\"locale\"")
2164 (string-append "\"" libc "/bin/locale\"")))
2165 #t)))
2166 (add-before 'configure 'patch-bubblewrap
2167 (lambda* (#:key inputs #:allow-other-keys)
2168 (substitute* "libgnome-desktop/gnome-desktop-thumbnail-script.c"
2169 (("\"bwrap\",")
2170 (string-append "\"" (which "bwrap") "\","))
2171 (("\"--ro-bind\", \"/usr\", \"/usr\",")
2172 (string-append "\"--ro-bind\", \""
2173 (%store-directory)
2174 "\", \""
2175 (%store-directory)
2176 "\","))
2177 (("\"--ro-bind\", \"/etc/ld.so.cache\", \"/etc/ld.so.cache\",") ""))
2178 #t))
2179 (add-before 'check 'pre-check
2180 (lambda* (#:key inputs #:allow-other-keys)
2181 ;; Tests require a running X server and locales.
2182 (system "Xvfb :1 &")
2183 (setenv "DISPLAY" ":1")
2184 (setenv "GUIX_LOCPATH"
2185 (string-append (assoc-ref inputs "glibc-locales")
2186 "/lib/locale"))
2187 #t)))))
2188 (native-inputs
2189 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
2190 ("glibc-locales" ,glibc-locales) ; for tests
2191 ("gobject-introspection" ,gobject-introspection)
2192 ("itstool" ,itstool)
2193 ("intltool" ,intltool)
2194 ("pkg-config" ,pkg-config)
2195 ("xmllint" ,libxml2)
2196 ("xorg-server" ,xorg-server-for-tests)))
2197 (propagated-inputs
2198 ;; Required by gnome-desktop-3.0.pc.
2199 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2200 ("gtk+" ,gtk+)
2201 ("iso-codes" ,iso-codes)
2202 ("libseccomp" ,libseccomp)
2203 ("libx11" ,libx11)
2204 ("xkeyboard-config" ,xkeyboard-config)))
2205 (inputs
2206 `(("gdk-pixbuf" ,gdk-pixbuf)
2207 ("glib" ,glib)
2208 ("bubblewrap" ,bubblewrap)
2209 ("libxext" ,libxext)
2210 ("libxkbfile" ,libxkbfile)
2211 ("libxrandr" ,libxrandr)))
2212 (home-page "https://www.gnome.org/")
2213 (synopsis
2214 "Libgnome-desktop, gnome-about, and desktop-wide documents")
2215 (description
2216 "The libgnome-desktop library provides API shared by several applications
2217 on the desktop, but that cannot live in the platform for various reasons.
2218 There is no API or ABI guarantee, although we are doing our best to provide
2219 stability. Documentation for the API is available with gtk-doc.
2220
2221 The gnome-about program helps find which version of GNOME is installed.")
2222 ; Some bits under the LGPL.
2223 (license license:gpl2+)))
2224
2225 (define-public gnome-doc-utils
2226 (package
2227 (name "gnome-doc-utils")
2228 (version "0.20.10")
2229 (source
2230 (origin
2231 (method url-fetch)
2232 (uri (string-append "mirror://gnome/sources/" name "/"
2233 (version-major+minor version) "/"
2234 name "-" version ".tar.xz"))
2235 (sha256
2236 (base32
2237 "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb"))))
2238 (build-system gnu-build-system)
2239 (native-inputs
2240 `(("intltool" ,intltool)
2241 ("docbook-xml" ,docbook-xml-4.4)
2242 ("python2-libxml2" ,python2-libxml2)
2243 ("libxml2" ,libxml2)
2244 ("libxslt" ,libxslt)
2245 ("pkg-config" ,pkg-config)
2246 ("python-2" ,python-2)))
2247 (home-page "https://wiki.gnome.org/GnomeDocUtils")
2248 (synopsis
2249 "Documentation utilities for the Gnome project")
2250 (description
2251 "Gnome-doc-utils is a collection of documentation utilities for the
2252 Gnome project. It includes xml2po tool which makes it easier to translate
2253 and keep up to date translations of documentation.")
2254 (license license:gpl2+))) ; xslt under lgpl
2255
2256 (define-public gnome-disk-utility
2257 (package
2258 (name "gnome-disk-utility")
2259 (version "3.34.0")
2260 (source (origin
2261 (method url-fetch)
2262 (uri (string-append "mirror://gnome/sources/" name "/"
2263 (version-major+minor version) "/"
2264 name "-" version ".tar.xz"))
2265 (sha256
2266 (base32
2267 "1mb7q90lnlp97dhxhnadhjagcfd12dfqzp0vj9h6b1r61pzhy97y"))))
2268 (build-system meson-build-system)
2269 (arguments
2270 '(#:configure-flags '("-Dlogind=libelogind")
2271 #:phases
2272 (modify-phases %standard-phases
2273 (add-after 'unpack 'skip-gtk-update-icon-cache
2274 ;; Don't create 'icon-theme.cache'.
2275 (lambda _
2276 (substitute* "meson_post_install.py"
2277 (("gtk-update-icon-cache") "true"))
2278 #t)))))
2279 (native-inputs
2280 `(("glib:bin" ,glib "bin")
2281 ("intltool" ,intltool)
2282 ("pkg-config" ,pkg-config)
2283 ("docbook-xml" ,docbook-xml)
2284 ("docbook-xsl" ,docbook-xsl)
2285 ("libxml2" ,libxml2)
2286 ("libxslt" ,libxslt)))
2287 (inputs
2288 `(("elogind" ,elogind)
2289 ("glib" ,glib)
2290 ("appstream-glib" ,appstream-glib)
2291 ("gnome-settings-daemon" ,gnome-settings-daemon)
2292 ("gtk+" ,gtk+)
2293 ("libcanberra" ,libcanberra)
2294 ("libdvdread" ,libdvdread)
2295 ("libnotify" ,libnotify)
2296 ("libpwquality" ,libpwquality)
2297 ("libsecret" ,libsecret)
2298 ("udisks" ,udisks)))
2299 (home-page "https://git.gnome.org/browse/gnome-disk-utility")
2300 (synopsis "Disk management utility for GNOME")
2301 (description "Disk management utility for GNOME.")
2302 (license license:gpl2+)))
2303
2304 (define-public gnome-font-viewer
2305 (package
2306 (name "gnome-font-viewer")
2307 (version "3.30.0")
2308 (source (origin
2309 (method url-fetch)
2310 (uri (string-append "mirror://gnome/sources/gnome-font-viewer/"
2311 (version-major+minor version)
2312 "/gnome-font-viewer-" version ".tar.xz"))
2313 (sha256
2314 (base32
2315 "1wwnx2zrlbd2d6np7m9s78alx6j6ranrnh1g2z6zrv9qcj8rpzz5"))))
2316 (build-system meson-build-system)
2317 (arguments
2318 '(#:phases
2319 (modify-phases %standard-phases
2320 (add-after 'unpack 'patch-post-install-script
2321 (lambda _
2322 (substitute* "meson-postinstall.sh"
2323 (("update-desktop-database") (which "true")))
2324 #t))
2325 (add-after 'install 'patch-thumbnailer
2326 (lambda* (#:key outputs #:allow-other-keys)
2327 (let ((out (assoc-ref outputs "out")))
2328 (substitute*
2329 (string-append
2330 out
2331 "/share/thumbnailers/gnome-font-viewer.thumbnailer")
2332 (("gnome-thumbnail-font")
2333 (string-append out "/bin/gnome-thumbnail-font"))))
2334 #t)))))
2335 (native-inputs
2336 `(("gettext" ,gettext-minimal)
2337 ("glib:bin" ,glib "bin")
2338 ("pkg-config" ,pkg-config)))
2339 (inputs
2340 `(("glib" ,glib)
2341 ("gnome-desktop" ,gnome-desktop)
2342 ("gtk+" ,gtk+)))
2343 (home-page "https://gitlab.gnome.org/GNOME/gnome-font-viewer")
2344 (synopsis "GNOME Fonts")
2345 (description "Application to show you the fonts installed on your computer
2346 for your use as thumbnails. Selecting any thumbnails shows the full view of how
2347 the font would look under various sizes.")
2348 (license license:gpl2+)))
2349
2350 (define-public gcr
2351 (package
2352 (name "gcr")
2353 (version "3.34.0")
2354 (source (origin
2355 (method url-fetch)
2356 (uri (string-append "mirror://gnome/sources/" name "/"
2357 (version-major+minor version) "/"
2358 name "-" version ".tar.xz"))
2359 (sha256
2360 (base32
2361 "0925snsixzkwh49xiayqmj6fcrmklqk8kyy0jkv7m64h9abm1pr9"))))
2362 (build-system gnu-build-system)
2363 (arguments
2364 '(#:phases
2365 (modify-phases %standard-phases
2366 ;; These fail because /var/lib/dbus/machine-id is not present in the
2367 ;; build environment.
2368 (add-after 'unpack 'disable-failing-tests
2369 (lambda _
2370 (substitute* "Makefile.in"
2371 (("[[:blank:]]+test-system-prompt\\$\\(EXEEXT\\)")
2372 ""))
2373 #t))
2374 (add-before 'check 'pre-check
2375 (lambda _
2376 ;; Some tests expect to write to $HOME.
2377 (setenv "HOME" "/tmp")
2378 #t)))))
2379 (inputs
2380 `(("dbus" ,dbus)
2381 ("gnupg" ,gnupg) ;called as a child process during tests
2382 ("libgcrypt" ,libgcrypt)))
2383 (native-inputs
2384 `(("python" ,python-wrapper) ;for tests
2385 ("pkg-config" ,pkg-config)
2386 ("gettext" ,gettext-minimal)
2387 ("glib" ,glib "bin")
2388 ("gobject-introspection" ,gobject-introspection)
2389 ("libxml2" ,libxml2)
2390 ("vala" ,vala)
2391 ("xsltproc" ,libxslt)))
2392 ;; mentioned in gck.pc, gcr.pc and gcr-ui.pc
2393 (propagated-inputs
2394 `(("p11-kit" ,p11-kit)
2395 ("glib" ,glib)
2396 ("gtk+" ,gtk+)))
2397 (home-page "https://www.gnome.org")
2398 (synopsis "Libraries for displaying certificates and accessing key stores")
2399 (description
2400 "The GCR package contains libraries used for displaying certificates and
2401 accessing key stores. It also provides the viewer for crypto files on the
2402 GNOME Desktop.")
2403 (license license:lgpl2.1+)))
2404
2405 (define-public gdl
2406 (package
2407 (name "gdl")
2408 (version "3.34.0")
2409 (source (origin
2410 (method git-fetch)
2411 (uri (git-reference
2412 (url "https://gitlab.gnome.org/GNOME/gdl.git")
2413 (commit (string-append "GDL_" (string-map (match-lambda
2414 (#\. #\_)
2415 (c c))
2416 version)))))
2417 (file-name (git-file-name name version))
2418 (sha256
2419 (base32
2420 "154qcr0x6f68f4q526y87imv0rscmp34n47nk1pp82rsq52h2zna"))))
2421 (build-system gnu-build-system)
2422 (native-inputs
2423 `(("autoconf" ,autoconf)
2424 ("automake" ,automake)
2425 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2426 ("gnome-common" ,gnome-common)
2427 ("gtk-doc" ,gtk-doc/stable)
2428 ("intltool" ,intltool)
2429 ("pkg-config" ,pkg-config)
2430 ("libtool" ,libtool)
2431 ("which" ,which)))
2432 (inputs
2433 `(("libxml2" ,libxml2)))
2434 (propagated-inputs
2435 ;; The gdl-3.0.pc file 'Requires' GTK+.
2436 `(("gtk+" ,gtk+)))
2437 (home-page "https://gitlab.gnome.org/GNOME/gdl/")
2438 (synopsis "GNOME docking library")
2439 (description "This library provides docking features for gtk+.")
2440 (license license:lgpl2.1+)))
2441
2442 ;;; A minimal variant used to break a cycle with Inkscape.
2443 (define-public gdl-minimal
2444 (package/inherit gdl
2445 (name "gdl-minimal")
2446 (arguments
2447 '(#:phases
2448 (modify-phases %standard-phases
2449 (add-after 'unpack 'disable-doc-generation
2450 ;; XXX: There is no easy way to disable generating the
2451 ;; documentation.
2452 (lambda _
2453 (substitute* "configure.in"
2454 (("GTK_DOC_CHECK.*") "")
2455 (("docs/.*") ""))
2456 (substitute* "Makefile.am"
2457 (("gdl docs po") "gdl po"))
2458 #t)))))
2459 (native-inputs (alist-delete "gtk-doc" (package-native-inputs gdl)))))
2460
2461 (define-public libgnome-keyring
2462 (package
2463 (name "libgnome-keyring")
2464 (version "3.12.0")
2465 (source (origin
2466 (method url-fetch)
2467 (uri (string-append "mirror://gnome/sources/" name "/"
2468 (version-major+minor version) "/"
2469 name "-" version ".tar.xz"))
2470 (sha256
2471 (base32
2472 "10vpjhgbjm7z2djy04qakd02qlzpd02xnbfjhk2aqwjzn3xpihf4"))))
2473 (build-system gnu-build-system)
2474 (inputs
2475 `(("libgcrypt" ,libgcrypt)
2476 ("dbus" ,dbus)))
2477 (native-inputs
2478 `(("pkg-config" ,pkg-config)
2479 ("glib" ,glib "bin")
2480 ("intltool" ,intltool)))
2481 (propagated-inputs
2482 ;; Referred to in .h files and .pc.
2483 `(("glib" ,glib)))
2484 (home-page "https://www.gnome.org")
2485 (synopsis "Accessing passwords from the GNOME keyring")
2486 (description
2487 "Client library to access passwords from the GNOME keyring.")
2488
2489 ;; Though a couple of files are LGPLv2.1+.
2490 (license license:lgpl2.0+)))
2491
2492 (define-public gnome-keyring
2493 (package
2494 (name "gnome-keyring")
2495 (version "3.34.0")
2496 (source (origin
2497 (method url-fetch)
2498 (uri (string-append "mirror://gnome/sources/" name "/"
2499 (version-major+minor version) "/"
2500 name "-" version ".tar.xz"))
2501 (sha256
2502 (base32
2503 "0hqrsh5g9q9lm190f0m85q4nki8k4ng7wphl6qbccdry59aakkg9"))))
2504 (build-system gnu-build-system)
2505 (arguments
2506 `(#:tests? #f ;48 of 603 tests fail because /var/lib/dbus/machine-id does
2507 ;not exist
2508 #:configure-flags
2509 (list
2510 (string-append "--with-pkcs11-config="
2511 (assoc-ref %outputs "out") "/share/p11-kit/modules/")
2512 (string-append "--with-pkcs11-modules="
2513 (assoc-ref %outputs "out") "/share/p11-kit/modules/"))
2514 #:phases
2515 (modify-phases %standard-phases
2516 (add-after 'unpack 'fix-/bin/sh-reference
2517 (lambda _
2518 (substitute* "po/Makefile.in.in"
2519 (("/bin/sh") (which "sh")))
2520 #t))
2521 (add-after 'unpack 'fix-docbook
2522 (lambda* (#:key inputs #:allow-other-keys)
2523 (substitute* "docs/Makefile.am"
2524 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
2525 (string-append (assoc-ref inputs "docbook-xsl")
2526 "/xml/xsl/docbook-xsl-"
2527 ,(package-version docbook-xsl)
2528 "/manpages/docbook.xsl")))
2529 (setenv "XML_CATALOG_FILES"
2530 (string-append (assoc-ref inputs "docbook-xml")
2531 "/xml/dtd/docbook/catalog.xml"))
2532 ;; Rerun the whole thing to avoid version mismatch ("This is
2533 ;; Automake 1.15.1, but the definition used by this
2534 ;; AM_INIT_AUTOMAKE comes from Automake 1.15."). Note: we don't
2535 ;; use 'autoreconf' because it insists on running 'libtoolize'.
2536 (invoke "autoconf")
2537 (invoke "aclocal")
2538 (invoke "automake" "-ac"))))))
2539 (inputs
2540 `(("libgcrypt" ,libgcrypt)
2541 ("linux-pam" ,linux-pam)
2542 ("openssh" ,openssh)
2543 ("dbus" ,dbus)
2544 ("gcr" ,gcr)))
2545 (native-inputs
2546 `(("pkg-config" ,pkg-config)
2547 ("glib" ,glib "bin")
2548 ("glib" ,glib) ; for m4 macros
2549 ("python" ,python-2) ;for tests
2550 ("intltool" ,intltool)
2551 ("autoconf" ,autoconf)
2552 ("automake" ,automake)
2553 ("libxslt" ,libxslt) ;for documentation
2554 ("docbook-xml" ,docbook-xml-4.2)
2555 ("docbook-xsl" ,docbook-xsl)))
2556 (propagated-inputs
2557 `(("gcr" ,gcr)))
2558 (home-page "https://www.gnome.org")
2559 (synopsis "Daemon to store passwords and encryption keys")
2560 (description
2561 "gnome-keyring is a program that keeps passwords and other secrets for
2562 users. It is run as a daemon in the session, similar to ssh-agent, and other
2563 applications locate it via an environment variable or D-Bus.
2564
2565 The program can manage several keyrings, each with its own master password,
2566 and there is also a session keyring which is never stored to disk, but
2567 forgotten when the session ends.")
2568 (license license:lgpl2.1+)))
2569
2570 (define-public evince
2571 (package
2572 (name "evince")
2573 (version "3.36.5")
2574 (source (origin
2575 (method url-fetch)
2576 (uri (string-append "mirror://gnome/sources/evince/"
2577 (version-major+minor version) "/"
2578 "evince-" version ".tar.xz"))
2579 (sha256
2580 (base32
2581 "0z79jl0j9xq9wgwkfr0d1w1qrdy4447y8shs407n5srr0vixc3bg"))))
2582 (build-system glib-or-gtk-build-system)
2583 (arguments
2584 `(#:configure-flags '("--disable-nautilus" "--enable-introspection")
2585 #:phases
2586 (modify-phases %standard-phases
2587 (add-before 'install 'skip-gtk-update-icon-cache
2588 ;; Don't create 'icon-theme.cache'.
2589 (lambda _
2590 (substitute* "data/Makefile"
2591 (("gtk-update-icon-cache") "true"))
2592 #t)))))
2593 (inputs
2594 `(("libarchive" ,libarchive)
2595 ("libgxps" ,libgxps)
2596 ("libspectre" ,libspectre)
2597 ("djvulibre" ,djvulibre)
2598 ("ghostscript" ,ghostscript)
2599 ("poppler" ,poppler)
2600 ("libtiff" ,libtiff)
2601 ;; TODO:
2602 ;; Build libkpathsea as a shared library for DVI support.
2603 ;; ("libkpathsea" ,texlive-bin)
2604 ("gnome-desktop" ,gnome-desktop)
2605 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2606 ("gspell" ,gspell)
2607 ("libgnome-keyring" ,libgnome-keyring)
2608 ("adwaita-icon-theme" ,adwaita-icon-theme)
2609 ("gdk-pixbuf" ,gdk-pixbuf)
2610 ("atk" ,atk)
2611 ("pango" ,pango)
2612 ("gtk+" ,gtk+)
2613 ("glib" ,glib)
2614 ("libxml2" ,libxml2)
2615 ("libsm" ,libsm)
2616 ("libice" ,libice)
2617 ("shared-mime-info" ,shared-mime-info)
2618 ("dconf" ,dconf)
2619 ("libcanberra" ,libcanberra)
2620 ("libsecret" ,libsecret)
2621
2622 ;; For tests.
2623 ("dogtail" ,python2-dogtail)))
2624 (native-inputs
2625 `(("itstool" ,itstool)
2626 ("intltool" ,intltool)
2627 ("glib" ,glib "bin")
2628 ("gobject-introspection" ,gobject-introspection)
2629 ("pkg-config" ,pkg-config)
2630 ("xmllint" ,libxml2)))
2631 (home-page "https://www.gnome.org/projects/evince/")
2632 (synopsis "GNOME's document viewer")
2633 (description
2634 "Evince is a document viewer for multiple document formats. It
2635 currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
2636 of Evince is to replace the multiple document viewers that exist
2637 on the GNOME Desktop with a single simple application.")
2638 (license license:gpl2+)))
2639
2640 (define-public gsettings-desktop-schemas
2641 (package
2642 (name "gsettings-desktop-schemas")
2643 (version "3.34.0")
2644 (source
2645 (origin
2646 (method url-fetch)
2647 (uri (string-append "mirror://gnome/sources/" name "/"
2648 (version-major+minor version) "/"
2649 name "-" version ".tar.xz"))
2650 (sha256
2651 (base32
2652 "1bayr76aylawf2fhyjhv9zgk4kpv7ivrrmd80khb0h3h1wk092r8"))))
2653 (build-system meson-build-system)
2654 (arguments
2655 '(#:phases (modify-phases %standard-phases
2656 (add-after 'unpack 'patch-schemas
2657 (lambda* (#:key inputs #:allow-other-keys)
2658 (let ((theme (assoc-ref inputs "gnome-backgrounds")))
2659 (substitute* (find-files "schemas"
2660 "\\.gschema\\.xml\\.in$")
2661 ;; Provide the correct file name of the default GNOME
2662 ;; background, 'adwaita-timed.xml'.
2663 (("@datadir@/backgrounds/gnome")
2664 (string-append theme "/share/backgrounds/gnome"))
2665 ;; Do not reference fonts, that may not exist.
2666 (("'Source Code Pro 10'") "'Monospace 11'"))
2667 #t))))))
2668 (inputs
2669 `(("glib" ,glib)
2670 ("gnome-backgrounds" ,gnome-backgrounds)))
2671 (native-inputs
2672 `(("intltool" ,intltool)
2673 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
2674 ("gobject-introspection" ,gobject-introspection)
2675 ("pkg-config" ,pkg-config)))
2676 (home-page "https://launchpad.net/gsettings-desktop-schemas")
2677 (synopsis
2678 "GNOME settings for various desktop components")
2679 (description
2680 "Gsettings-desktop-schemas contains a collection of GSettings schemas
2681 for settings shared by various components of the GNOME desktop.")
2682 (license license:lgpl2.1+)))
2683
2684 (define-public python-liblarch
2685 (package
2686 (name "python-liblarch")
2687 (version "3.0.1")
2688 (source
2689 (origin
2690 (method git-fetch)
2691 (uri (git-reference
2692 (url "https://github.com/getting-things-gnome/liblarch")
2693 (commit (string-append "v" version))))
2694 (file-name (git-file-name name version))
2695 (sha256
2696 (base32 "0xv2mfvyzipbny3iz8vll77wsqxfwh28xj6bj1ff0l452waph45m"))))
2697 (build-system python-build-system)
2698 (arguments
2699 `(#:phases
2700 (modify-phases %standard-phases
2701 (add-before 'check 'start-xserver
2702 (lambda* (#:key inputs #:allow-other-keys)
2703 (system (format #f "~a/bin/Xvfb :1 &"
2704 (assoc-ref inputs "xorg-server")))
2705 (setenv "DISPLAY" ":1")
2706 #t)))))
2707 (native-inputs
2708 `(("xorg-server" ,xorg-server-for-tests)))
2709 (inputs
2710 `(("gtk+" ,gtk+)))
2711 (propagated-inputs
2712 `(("python-pygobject" ,python-pygobject)))
2713 (home-page "https://wiki.gnome.org/Projects/liblarch")
2714 (synopsis "Library to easily handle complex data structures")
2715 (description
2716 "Liblarch is a Python library built to easily handle data structures such
2717 as lists, trees and acyclic graphs. There's also a GTK binding that will
2718 allow you to use your data structure in a @code{Gtk.Treeview}.
2719
2720 Liblarch support multiple views of one data structure and complex filtering.
2721 That way, you have a clear separation between your data themselves (Model)
2722 and how they are displayed (View).")
2723 (license license:lgpl3+)))
2724
2725 (define-public gtg
2726 (package
2727 (name "gtg")
2728 (version "0.5")
2729 (source
2730 (origin
2731 (method git-fetch)
2732 (uri (git-reference
2733 (url "https://github.com/getting-things-gnome/gtg")
2734 (commit (string-append "v" version))))
2735 (file-name (git-file-name name version))
2736 (sha256
2737 (base32 "0b2slm7kjq6q8c7v4m7aqc8m1ynjxn3bl7445srpv1xc0dilq403"))))
2738 (build-system meson-build-system)
2739 (arguments
2740 `(#:glib-or-gtk? #t
2741 #:phases
2742 (modify-phases %standard-phases
2743 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
2744 (lambda* (#:key outputs #:allow-other-keys)
2745 (let ((prog (string-append (assoc-ref outputs "out")
2746 "/bin/gtg"))
2747 (pylib (string-append (assoc-ref outputs "out")
2748 "/lib/python"
2749 ,(version-major+minor
2750 (package-version python))
2751 "/site-packages")))
2752 (wrap-program prog
2753 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
2754 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
2755 #t))))))
2756 (native-inputs
2757 `(("desktop-file-utils" ,desktop-file-utils)
2758 ("gettext" ,gettext-minimal)
2759 ("glib:bin" ,glib "bin")
2760 ("gobject-introspection" ,gobject-introspection)
2761 ("gtk+:bin" ,gtk+ "bin")
2762 ("pkg-config" ,pkg-config)))
2763 (inputs
2764 `(("gdk-pixbuf" ,gdk-pixbuf+svg)
2765 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2766 ("gtk+" ,gtk+)
2767 ("pango" ,pango)
2768 ("python-dbus" ,python-dbus)
2769 ("python-liblarch" ,python-liblarch)
2770 ("python-lxml" ,python-lxml)
2771 ("python-pycairo" ,python-pycairo)
2772 ("python-pygobject" ,python-pygobject)
2773 ("python-pyxdg" ,python-pyxdg)))
2774 (home-page "https://wiki.gnome.org/Apps/GTG")
2775 (synopsis "Personal organizer for the GNOME desktop")
2776 (description
2777 "Getting Things GNOME! (GTG) is a personal tasks and TODO list items
2778 organizer for the GNOME desktop environment inspired by the Getting Things
2779 Done (GTD) methodology. GTG is designed with flexibility, adaptability,
2780 and ease of use in mind so it can be used as more than just GTD software.
2781 GTG is intended to help you track everything you need to do and need to
2782 know, from small tasks to large projects.")
2783 (license license:gpl3+)))
2784
2785 (define-public icon-naming-utils
2786 (package
2787 (name "icon-naming-utils")
2788 (version "0.8.90")
2789 (source
2790 (origin
2791 (method url-fetch)
2792 (uri (string-append "https://tango.freedesktop.org/releases/icon-naming-utils-"
2793 version ".tar.bz2"))
2794 (sha256
2795 (base32
2796 "1mc3v28fdfqanx3lqx233vcr4glb4c2376k0kx2v91a4vxwqcdxi"))))
2797 (build-system gnu-build-system)
2798 (inputs
2799 `(("perl" ,perl)
2800 ("perl-xml-simple" ,perl-xml-simple)))
2801 (arguments
2802 '(#:phases
2803 (modify-phases %standard-phases
2804 (add-after 'install 'set-load-paths
2805 ;; Tell 'icon-name-mapping' where XML::Simple is.
2806 (lambda* (#:key outputs #:allow-other-keys)
2807 (let* ((out (assoc-ref outputs "out"))
2808 (prog (string-append out "/libexec/icon-name-mapping")))
2809 (wrap-program
2810 prog
2811 `("PERL5LIB" = ,(list (getenv "PERL5LIB")))))
2812 #t)))))
2813 (home-page "http://tango.freedesktop.org/Standard_Icon_Naming_Specification")
2814 (synopsis
2815 "Utility to implement the Freedesktop Icon Naming Specification")
2816 (description
2817 "To help with the transition to the Freedesktop Icon Naming
2818 Specification, the icon naming utility maps the icon names used by the
2819 GNOME and KDE desktops to the icon names proposed in the specification.")
2820 (license license:lgpl2.1+)))
2821
2822 (define-public gnome-icon-theme
2823 (package
2824 (name "gnome-icon-theme")
2825 (version "3.12.0")
2826 (source
2827 (origin
2828 (method url-fetch)
2829 (uri (string-append "mirror://gnome/sources/" name "/"
2830 (version-major+minor version) "/"
2831 name "-" version ".tar.xz"))
2832 (sha256
2833 (base32
2834 "0fjh9qmmgj34zlgxb09231ld7khys562qxbpsjlaplq2j85p57im"))))
2835 (build-system gnu-build-system)
2836 (arguments
2837 '(#:configure-flags
2838 ;; Don't create 'icon-theme.cache'.
2839 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
2840 (true (string-append coreutils "/bin/true")))
2841 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
2842 (native-inputs
2843 `(("icon-naming-utils" ,icon-naming-utils)
2844 ("intltool" ,intltool)
2845 ("pkg-config" ,pkg-config)))
2846 (home-page "https://wiki.gnome.org/Personalization")
2847 (synopsis "GNOME icon theme")
2848 (description "Icons for the GNOME desktop.")
2849 (license license:lgpl3))) ; or Creative Commons BY-SA 3.0
2850
2851 ;; gnome-icon-theme was renamed to adwaita-icon-theme after version 3.12.0.
2852 (define-public adwaita-icon-theme
2853 (package (inherit gnome-icon-theme)
2854 (name "adwaita-icon-theme")
2855 (version "3.34.3")
2856 (source (origin
2857 (method url-fetch)
2858 (uri (string-append "mirror://gnome/sources/" name "/"
2859 (version-major+minor version) "/"
2860 name "-" version ".tar.xz"))
2861 (sha256
2862 (base32
2863 "025rj1fskw1y448hiar4a9icyzpyr242nlh9xhsmyp8jb71dihp7"))))
2864 (native-inputs
2865 `(("gtk-encode-symbolic-svg" ,gtk+ "bin")))))
2866
2867 (define-public tango-icon-theme
2868 (package
2869 (name "tango-icon-theme")
2870 (version "0.8.90")
2871 (source (origin
2872 (method url-fetch)
2873 (uri (string-append "http://tango.freedesktop.org/releases/"
2874 "tango-icon-theme-" version ".tar.bz2"))
2875 (sha256
2876 (base32
2877 "034r9s944b4yikyfgn602yv7s54wdzlq0qfvqh52b9x6kbx08h79"))))
2878 (build-system gnu-build-system)
2879 (native-inputs
2880 `(("icon-naming-utils" ,icon-naming-utils)
2881 ("intltool" ,intltool)
2882 ("imagemagick" ,imagemagick)
2883 ("pkg-config" ,pkg-config)))
2884 (home-page "http://tango-project.org/")
2885 (synopsis "Tango icon theme")
2886 (description "This is an icon theme that follows the Tango visual
2887 guidelines.")
2888 (license license:public-domain)))
2889
2890 (define-public shared-mime-info
2891 (package
2892 (name "shared-mime-info")
2893 (version "1.15")
2894 (source (origin
2895 (method url-fetch)
2896 (uri (string-append
2897 "https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/"
2898 "b27eb88e4155d8fccb8bb3cd12025d5b/shared-mime-info-" version
2899 ".tar.xz"))
2900 (sha256
2901 (base32
2902 "146vynj78wcwdq0ms52jzm1r4m6dzi1rhyh3h4xyb6bw8ckv10pl"))))
2903 (build-system gnu-build-system)
2904 (arguments
2905 ;; The build system appears not to be parallel-safe.
2906 '(#:parallel-build? #f))
2907 (inputs
2908 `(("glib" ,glib)
2909 ("libxml2" ,libxml2)))
2910 (native-inputs
2911 `(("gettext" ,gettext-minimal)
2912 ("itstool" ,itstool)
2913 ("pkg-config" ,pkg-config)))
2914 (home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info")
2915 (synopsis "Database of common MIME types")
2916 (description
2917 "The shared-mime-info package contains the core database of common types
2918 and the update-mime-database command used to extend it. It requires glib2 to
2919 be installed for building the update command. Additionally, it uses intltool
2920 for translations, though this is only a dependency for the maintainers. This
2921 database is translated at Transifex.")
2922 (license license:gpl2+)))
2923
2924 (define-public system-config-printer
2925 (package
2926 (name "system-config-printer")
2927 (version "1.5.15")
2928 (source
2929 (origin
2930 (method url-fetch)
2931 (uri (string-append
2932 "https://github.com/OpenPrinting/system-config-printer/releases/"
2933 "download/v" version
2934 "/system-config-printer-" version ".tar.xz"))
2935 (sha256
2936 (base32 "12d6xx51vizc476zfnsga9q09nflp51ipn6y7lhi9w2v4772dlpv"))))
2937 (build-system glib-or-gtk-build-system)
2938 (arguments
2939 `(#:imported-modules ((guix build python-build-system)
2940 ,@%glib-or-gtk-build-system-modules)
2941 #:phases
2942 (modify-phases %standard-phases
2943 (add-after 'unpack 'patch-Makefile.am
2944 (lambda _
2945 ;; The Makefile generates some scripts, so set a valid shebang
2946 (substitute* "Makefile.am"
2947 (("/bin/bash") (which "bash")))
2948 (delete-file "configure")
2949 #t))
2950 (add-after 'unpack 'patch-docbook-xml
2951 (lambda* (#:key inputs #:allow-other-keys)
2952 ;; Modify the man XML otherwise xmlto tries to access the network
2953 (substitute* "man/system-config-printer.xml"
2954 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
2955 (string-append (assoc-ref inputs "docbook-xml")
2956 "/xml/dtd/docbook/")))
2957 #t))
2958 (add-after 'install 'wrap-for-python
2959 (@@ (guix build python-build-system) wrap))
2960 (add-after 'install 'wrap
2961 (lambda* (#:key outputs #:allow-other-keys)
2962 (let ((out (assoc-ref outputs "out"))
2963 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
2964 (for-each
2965 (lambda (program)
2966 (wrap-program program
2967 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
2968 (map (lambda (name)
2969 (string-append out "/bin/" name))
2970 '("system-config-printer"
2971 "system-config-printer-applet"
2972 "install-printerdriver"
2973 "scp-dbus-service"))))
2974 #t)))))
2975 (inputs
2976 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2977 ("gobject-introspection" ,gobject-introspection)
2978 ("python" ,python)
2979 ("cups" ,cups)
2980 ("gtk+" ,gtk+)
2981 ("python-dbus" ,python-dbus)
2982 ("python-pygobject" ,python-pygobject)
2983 ("python-pycups" ,python-pycups)
2984 ("python-requests" ,python-requests)
2985 ("python-pycairo" ,python-pycairo)
2986 ("libnotify" ,libnotify)
2987 ("packagekit" ,packagekit)))
2988 (native-inputs
2989 `(("pkg-config" ,pkg-config)
2990 ("desktop-file-utils" ,desktop-file-utils)
2991 ("glib" ,glib)
2992 ("autoconf" ,autoconf)
2993 ("automake" ,automake)
2994 ("intltool" ,intltool)
2995 ("xmlto" ,xmlto)
2996 ("docbook-xml" ,docbook-xml-4.1.2)
2997 ("docbook-xsl" ,docbook-xsl)
2998 ("libxml2" ,libxml2)))
2999 (home-page "https://github.com/zdohnal/system-config-printer")
3000 (synopsis "CUPS administration tool")
3001 (description
3002 "system-config-printer is a CUPS administration tool. It's written in
3003 Python using GTK+, and uses the @acronym{IPP, Internet Printing Protocol} when
3004 configuring CUPS.")
3005 (license license:gpl2+)))
3006
3007 (define-public hicolor-icon-theme
3008 (package
3009 (name "hicolor-icon-theme")
3010 (version "0.17")
3011 (source
3012 (origin
3013 (method url-fetch)
3014 (uri (string-append "https://icon-theme.freedesktop.org/releases/"
3015 "hicolor-icon-theme-" version ".tar.xz"))
3016 (sha256
3017 (base32
3018 "1n59i3al3zx6p90ff0l43gzpzmlqnzm6hf5cryxqrlbi48sq8x1i"))))
3019 (build-system gnu-build-system)
3020 (arguments
3021 `(#:tests? #f)) ; no check target
3022 (home-page "https://icon-theme.freedesktop.org/releases/")
3023 (synopsis
3024 "Freedesktop icon theme")
3025 (description
3026 "Freedesktop icon theme.")
3027 (license license:gpl2)))
3028
3029 (define-public libnotify
3030 (package
3031 (name "libnotify")
3032 (version "0.7.9")
3033 (source
3034 (origin
3035 (method url-fetch)
3036 (uri (string-append "mirror://gnome/sources/" name "/"
3037 (version-major+minor version) "/"
3038 name "-" version ".tar.xz"))
3039 (sha256
3040 (base32
3041 "0qa7cx6ra5hwqnxw95b9svgjg5q6ynm8y843iqjszxvds5z53h36"))))
3042 (build-system meson-build-system)
3043 (arguments
3044 `(#:phases
3045 (modify-phases %standard-phases
3046 (add-after 'unpack 'fix-docbook
3047 (lambda* (#:key inputs #:allow-other-keys)
3048 ;; Don't attempt to download XSL schema.
3049 (substitute* "meson.build"
3050 (("http://docbook.sourceforge.net/release/xsl-ns/current\
3051 /manpages/docbook.xsl")
3052 (string-append (assoc-ref inputs "docbook-xsl")
3053 "/xml/xsl/docbook-xsl-"
3054 ,(package-version docbook-xsl)
3055 "/manpages/docbook.xsl")))
3056 #t)))))
3057 (propagated-inputs
3058 `(;; In Requires of libnotify.pc.
3059 ("gdk-pixbuf" ,gdk-pixbuf)
3060 ("glib" ,glib)))
3061 (inputs
3062 `(("gtk+" ,gtk+)
3063 ("libpng" ,libpng)))
3064 (native-inputs
3065 `(("pkg-config" ,pkg-config)
3066 ("glib" ,glib "bin")
3067 ("gobject-introspection" ,gobject-introspection)
3068
3069 ;; For the documentation.
3070 ("gtk-doc" ,gtk-doc/stable)
3071 ("xsltproc" ,libxslt)
3072 ("docbook-xsl" ,docbook-xsl)))
3073 (home-page "https://developer-next.gnome.org/libnotify/")
3074 (synopsis
3075 "GNOME desktop notification library")
3076 (description
3077 "Libnotify is a library that sends desktop notifications to a
3078 notification daemon, as defined in the Desktop Notifications spec. These
3079 notifications can be used to inform the user about an event or display
3080 some form of information without getting in the user's way.")
3081 (license license:lgpl2.1+)))
3082
3083 (define-public libpeas
3084 (package
3085 (name "libpeas")
3086 (version "1.28.0")
3087 (source
3088 (origin
3089 (method url-fetch)
3090 (uri (string-append "mirror://gnome/sources/" name "/"
3091 (version-major+minor version) "/"
3092 name "-" version ".tar.xz"))
3093 (sha256
3094 (base32
3095 "05cb7drn6arc4gi02wgsvzibigi2riz5gnfnmlb0zmbfnj9ikna2"))))
3096 (build-system meson-build-system)
3097 (arguments
3098 '(#:phases
3099 (modify-phases %standard-phases
3100 (add-before 'check 'start-xserver
3101 (lambda* (#:key inputs #:allow-other-keys)
3102 (let ((xorg-server (assoc-ref inputs "xorg-server"))
3103 (disp ":1"))
3104 (setenv "DISPLAY" disp)
3105 ;; Tests require a running X server.
3106 (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp))
3107 #t))))))
3108 (inputs
3109 `(("gtk+" ,gtk+)
3110 ("glade" ,glade3)
3111 ("python" ,python)
3112 ("python-pygobject" ,python-pygobject)))
3113 (native-inputs
3114 `(("pkg-config" ,pkg-config)
3115 ("gettext" ,gettext-minimal)
3116 ("glib:bin" ,glib "bin")
3117 ("gobject-introspection" ,gobject-introspection)
3118 ("xorg-server" ,xorg-server-for-tests)))
3119 (propagated-inputs
3120 ;; The .pc file "Requires" gobject-introspection.
3121 `(("gobject-introspection" ,gobject-introspection)))
3122 (home-page "https://wiki.gnome.org/Libpeas")
3123 (synopsis "GObject plugin system")
3124 (description
3125 "Libpeas is a gobject-based plugin engine, targeted at giving every
3126 application the chance to assume its own extensibility. It also has a set of
3127 features including, but not limited to: multiple extension points; on-demand
3128 (lazy) programming language support for C, Python and JS; simplicity of the
3129 API.")
3130 (license license:lgpl2.0+)))
3131
3132 (define-public gtkglext
3133 (package
3134 (name "gtkglext")
3135 (version "1.2.0")
3136 (source (origin
3137 (method url-fetch)
3138 (uri (string-append "mirror://sourceforge/gtkglext/gtkglext/"
3139 version "/gtkglext-" version ".tar.gz"))
3140 (sha256
3141 (base32 "1ya4d2j2aacr9ii5zj4ac95fjpdvlm2rg79mgnk7yvl1dcy3y1z5"))
3142 (patches (search-patches
3143 "gtkglext-disable-disable-deprecated.patch"))))
3144 (build-system gnu-build-system)
3145 (arguments
3146 `(#:phases
3147 (modify-phases %standard-phases
3148 ;; Fix a collision between a local variable and a definition from
3149 ;; glibc's string.h.
3150 (add-after 'unpack 'fix-collision
3151 (lambda _
3152 (substitute* "gdk/gdkglshapes.c"
3153 ((" index") " triangle_index"))
3154 #t)))))
3155 (inputs `(("gtk+" ,gtk+-2)
3156 ("mesa" ,mesa)
3157 ("glu" ,glu)
3158 ("libx11" ,libx11)
3159 ("libxt" ,libxt)))
3160 (native-inputs `(("pkg-config" ,pkg-config)
3161 ("glib" ,glib "bin")))
3162 (propagated-inputs `(("pangox-compat" ,pangox-compat)))
3163 (home-page "https://projects.gnome.org/gtkglext")
3164 (synopsis "OpenGL extension to GTK+")
3165 (description "GtkGLExt is an OpenGL extension to GTK+. It provides
3166 additional GDK objects which support OpenGL rendering in GTK+ and GtkWidget
3167 API add-ons to make GTK+ widgets OpenGL-capable.")
3168 (license license:lgpl2.1+)))
3169
3170 (define-public glade3
3171 (package
3172 (name "glade")
3173 (version "3.36.0")
3174 (source (origin
3175 (method url-fetch)
3176 (uri (string-append "mirror://gnome/sources/" name "/"
3177 (version-major+minor version) "/"
3178 name "-" version ".tar.xz"))
3179 (sha256
3180 (base32
3181 "023gx8rj51njn8fsb6ma5kz1irjpxi4js0n8rwy22inc4ysldd8r"))))
3182 (build-system glib-or-gtk-build-system)
3183 (arguments
3184 `(#:phases
3185 (modify-phases %standard-phases
3186 (add-before 'configure 'fix-docbook
3187 (lambda* (#:key inputs #:allow-other-keys)
3188 (substitute* "man/Makefile.in"
3189 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
3190 (string-append (assoc-ref inputs "docbook-xsl")
3191 "/xml/xsl/docbook-xsl-"
3192 ,(package-version docbook-xsl)
3193 "/manpages/docbook.xsl")))
3194 #t))
3195 (add-before 'check 'pre-check
3196 (lambda _
3197 (setenv "HOME" "/tmp")
3198 ;; Tests require a running X server.
3199 (system "Xvfb :1 &")
3200 (setenv "DISPLAY" ":1")
3201 #t)))))
3202 (inputs
3203 `(("gtk+" ,gtk+)
3204 ("libxml2" ,libxml2)))
3205 (native-inputs
3206 `(("hicolor-icon-theme" ,hicolor-icon-theme)
3207 ("intltool" ,intltool)
3208 ("itstool" ,itstool)
3209 ("libxslt" ,libxslt) ;for xsltproc
3210 ("docbook-xml" ,docbook-xml-4.2)
3211 ("docbook-xsl" ,docbook-xsl)
3212 ("python" ,python-2)
3213 ("pkg-config" ,pkg-config)
3214 ("xorg-server" ,xorg-server-for-tests)))
3215 (home-page "https://glade.gnome.org")
3216 (synopsis "GTK+ rapid application development tool")
3217 (description "Glade is a rapid application development (RAD) tool to
3218 enable quick & easy development of user interfaces for the GTK+ toolkit and
3219 the GNOME desktop environment.")
3220 (license license:lgpl2.0+)
3221 (native-search-paths (list (search-path-specification
3222 (variable "GLADE_CATALOG_SEARCH_PATH")
3223 (files '("share/glade/catalogs")))
3224 (search-path-specification
3225 (variable "GLADE_MODULE_SEARCH_PATH")
3226 (files '("lib/glade/modules")))))))
3227
3228 (define-public libcroco
3229 (package
3230 (name "libcroco")
3231 (version "0.6.13")
3232 (source (origin
3233 (method url-fetch)
3234 (uri (string-append "mirror://gnome/sources/" name "/"
3235 (version-major+minor version) "/"
3236 name "-" version ".tar.xz"))
3237 (patches (search-patches "libcroco-CVE-2020-12825.patch"))
3238 (sha256
3239 (base32
3240 "1m110rbj5d2raxcdp4iz0qp172284945awrsbdlq99ksmqsc4zkn"))))
3241 (build-system gnu-build-system)
3242 (native-inputs
3243 `(("pkg-config" ,pkg-config)))
3244 (inputs
3245 `(("glib" ,glib)
3246 ("libxml2" ,libxml2)
3247 ("zlib" ,zlib)))
3248 (home-page "https://github.com/GNOME/libcroco")
3249 (synopsis "CSS2 parsing and manipulation library")
3250 (description
3251 "Libcroco is a standalone CSS2 parsing and manipulation library.
3252 The parser provides a low level event driven SAC-like API and a CSS object
3253 model like API. Libcroco provides a CSS2 selection engine and an experimental
3254 XML/CSS rendering engine.")
3255
3256 ;; LGPLv2.1-only.
3257 (license license:lgpl2.1)))
3258
3259 (define-public libgsf
3260 (package
3261 (name "libgsf")
3262 (version "1.14.47")
3263 (source (origin
3264 (method url-fetch)
3265 (uri (string-append "mirror://gnome/sources/" name "/"
3266 (version-major+minor version) "/"
3267 name "-" version ".tar.xz"))
3268 (sha256
3269 (base32
3270 "0kbpp9ksl7977xiga37sk1gdw1r039v6zviqznl7alvvg39yp26i"))))
3271 (build-system gnu-build-system)
3272 (arguments
3273 '(#:configure-flags '("--disable-static")))
3274 (native-inputs
3275 `(("pkg-config" ,pkg-config)
3276 ("gettext" ,gettext-minimal)
3277
3278 ;; For tests.
3279 ("perl" ,perl)
3280 ("perl-xml-parser" ,perl-xml-parser)))
3281 (inputs
3282 `(("zlib" ,zlib)
3283 ("bzip2" ,bzip2)))
3284 (propagated-inputs
3285 `(("gdk-pixbuf" ,gdk-pixbuf)
3286 ("glib" ,glib)
3287 ("libxml2" ,libxml2)))
3288 (home-page "https://www.gnome.org/projects/libgsf")
3289 (synopsis "GNOME's Structured File Library")
3290 (description
3291 "Libgsf aims to provide an efficient extensible I/O abstraction for
3292 dealing with different structured file formats.")
3293
3294 ;; LGPLv2.1-only.
3295 (license license:lgpl2.1)))
3296
3297 (define-public librsvg
3298 (package
3299 (name "librsvg")
3300 (version "2.40.21")
3301 (source (origin
3302 (method url-fetch)
3303 (uri (string-append "mirror://gnome/sources/" name "/"
3304 (version-major+minor version) "/"
3305 name "-" version ".tar.xz"))
3306 (sha256
3307 (base32
3308 "1fljkag2gr7c4k5mn798lgf9903xslz8h51bgvl89nnay42qjqpp"))))
3309 (build-system gnu-build-system)
3310 (arguments
3311 `(#:configure-flags
3312 (list "--disable-static"
3313 "--enable-vala") ; needed for e.g. gnome-mines
3314 #:phases
3315 (modify-phases %standard-phases
3316 (add-before 'configure 'pre-configure
3317 (lambda* (#:key inputs #:allow-other-keys)
3318 (substitute* "gdk-pixbuf-loader/Makefile.in"
3319 ;; By default the gdk-pixbuf loader is installed under
3320 ;; gdk-pixbuf's prefix. Work around that.
3321 (("gdk_pixbuf_moduledir = .*$")
3322 (string-append "gdk_pixbuf_moduledir = "
3323 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
3324 "loaders\n"))
3325 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
3326 (("gdk_pixbuf_cache_file = .*$")
3327 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
3328 #t))
3329 (add-before 'check 'remove-failing-tests
3330 (lambda _
3331 (with-directory-excursion "tests/fixtures/reftests"
3332 (for-each delete-file
3333 '(;; This test fails on i686:
3334 "svg1.1/masking-path-04-b.svg"
3335 ;; This test fails on armhf:
3336 "svg1.1/masking-mask-01-b.svg"
3337 ;; This test fails on aarch64:
3338 "bugs/777834-empty-text-children.svg")))
3339 #t)))))
3340 (native-inputs
3341 `(("pkg-config" ,pkg-config)
3342 ("vala" ,vala)
3343 ("glib" ,glib "bin") ; glib-mkenums, etc.
3344 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
3345 (inputs
3346 `(;; XXX: 1.44 causes some test failures, so we stick with 1.42 for
3347 ;; this ancient version of librsvg.
3348 ("pango" ,pango-1.42)
3349 ("libcroco" ,libcroco)
3350 ("bzip2" ,bzip2)
3351 ("libgsf" ,libgsf)
3352 ("libxml2" ,libxml2)))
3353 (propagated-inputs
3354 ;; librsvg-2.0.pc refers to all of that.
3355 `(("cairo" ,cairo)
3356 ("gdk-pixbuf" ,gdk-pixbuf)
3357 ("glib" ,glib)))
3358 (home-page "https://wiki.gnome.org/LibRsvg")
3359 (synopsis "Render SVG files using Cairo")
3360 (description
3361 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
3362 library.")
3363 (license license:lgpl2.0+)))
3364
3365 (define-public librsvg-next
3366 (package
3367 (name "librsvg")
3368 (version "2.50.3")
3369 (source (origin
3370 (method url-fetch)
3371 (uri (string-append "mirror://gnome/sources/librsvg/"
3372 (version-major+minor version) "/"
3373 "librsvg-" version ".tar.xz"))
3374 (sha256
3375 (base32
3376 "0n79i4wj9hm0d3bbn4xvknq5ylhqs16pvhaqr1rxspx9wfc8lad4"))
3377 (modules '((guix build utils)))
3378 (snippet
3379 '(begin (delete-file-recursively "vendor")
3380 #t))))
3381 (build-system cargo-build-system)
3382 (outputs '("out" "doc"))
3383 (arguments
3384 `(#:install-source? #f
3385 #:modules
3386 ((guix build cargo-build-system)
3387 (guix build utils)
3388 ((guix build gnu-build-system) #:prefix gnu:))
3389 #:cargo-inputs
3390 (("rust-bitflags" ,rust-bitflags-1)
3391 ("rust-cairo-rs" ,rust-cairo-rs-0.8)
3392 ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.9)
3393 ("rust-cast" ,rust-cast-0.2)
3394 ("rust-cssparser" ,rust-cssparser-0.27)
3395 ("rust-data-url" ,rust-data-url-0.1)
3396 ("rust-encoding" ,rust-encoding-0.2)
3397 ("rust-float-cmp" ,rust-float-cmp-0.8)
3398 ("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.8)
3399 ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.9)
3400 ("rust-gio" ,rust-gio-0.8)
3401 ("rust-gio-sys" ,rust-gio-sys-0.9)
3402 ("rust-glib" ,rust-glib-0.9)
3403 ("rust-glib-sys" ,rust-glib-sys-0.9)
3404 ("rust-gobject-sys" ,rust-gobject-sys-0.9)
3405 ("rust-itertools" ,rust-itertools-0.9)
3406 ("rust-language-tags" ,rust-language-tags-0.2)
3407 ("rust-libc" ,rust-libc-0.2)
3408 ("rust-locale-config" ,rust-locale-config-0.3)
3409 ("rust-markup5ever" ,rust-markup5ever-0.10)
3410 ("rust-nalgebra" ,rust-nalgebra-0.21)
3411 ("rust-num-traits" ,rust-num-traits-0.2)
3412 ("rust-once-cell" ,rust-once-cell-1)
3413 ("rust-pkg-config" ,rust-pkg-config-0.3)
3414 ("rust-pango" ,rust-pango-0.8)
3415 ("rust-pango-sys" ,rust-pango-sys-0.9)
3416 ("rust-pangocairo" ,rust-pangocairo-0.9)
3417 ("rust-rayon" ,rust-rayon-1)
3418 ("rust-rctree" ,rust-rctree-0.3)
3419 ("rust-rgb" ,rust-rgb-0.8)
3420 ("rust-regex" ,rust-regex-1)
3421 ("rust-selectors" ,rust-selectors-0.22)
3422 ("rust-string-cache" ,rust-string-cache-0.8)
3423 ("rust-tinyvec" ,rust-tinyvec-0.3)
3424 ("rust-url" ,rust-url-2)
3425 ("rust-xml5ever" ,rust-xml5ever-0.16))
3426 #:cargo-development-inputs
3427 (("rust-assert-cmd" ,rust-assert-cmd-1)
3428 ("rust-cairo-rs" ,rust-cairo-rs-0.8)
3429 ("rust-chrono" ,rust-chrono-0.4)
3430 ("rust-criterion" ,rust-criterion-0.3)
3431 ("rust-float-cmp" ,rust-float-cmp-0.8)
3432 ("rust-lopdf" ,rust-lopdf-0.26)
3433 ("rust-png" ,rust-png-0.16)
3434 ("rust-predicates" ,rust-predicates-1)
3435 ("rust-tempfile" ,rust-tempfile-3))
3436 #:phases
3437 (modify-phases %standard-phases
3438 (add-after 'unpack 'patch-docbook-xml
3439 (lambda* (#:key inputs #:allow-other-keys)
3440 (with-directory-excursion "doc"
3441 (substitute* "rsvg-docs.xml"
3442 (("http://www.oasis-open.org/docbook/xml/4.3/")
3443 (string-append (assoc-ref inputs "docbook-xml")
3444 "/xml/dtd/docbook/"))))
3445 #t))
3446 (add-after 'unpack 'prepare-for-build
3447 (lambda _
3448 ;; In lieu of #:make-flags
3449 (setenv "CC" ,(cc-for-target))
3450 ;; Something about the build environment resists building
3451 ;; successfully with the '--locked' flag.
3452 (substitute* '("Makefile.am" "Makefile.in")
3453 (("--locked") ""))
3454 #t))
3455 (add-before 'configure 'pre-configure
3456 (lambda _
3457 (substitute* "gdk-pixbuf-loader/Makefile.in"
3458 ;; By default the gdk-pixbuf loader is installed under
3459 ;; gdk-pixbuf's prefix. Work around that.
3460 (("gdk_pixbuf_moduledir = .*$")
3461 (string-append "gdk_pixbuf_moduledir = "
3462 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
3463 "loaders\n"))
3464 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
3465 (("gdk_pixbuf_cache_file = .*$")
3466 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
3467 #t))
3468 (add-after 'configure 'gnu-configure
3469 (lambda* (#:key inputs native-inputs outputs #:allow-other-keys)
3470 ((assoc-ref gnu:%standard-phases 'configure)
3471 #:native-inputs native-inputs
3472 #:inputs inputs
3473 #:outputs outputs
3474 #:configure-flags
3475 (list "--disable-static"
3476 "--enable-vala"
3477 (string-append "--with-html-dir="
3478 (assoc-ref %outputs "doc")
3479 "/share/gtk-doc/html")))))
3480 (add-after 'configure 'dont-vendor-self
3481 (lambda* (#:key vendor-dir #:allow-other-keys)
3482 ;; Don't keep the whole tarball in the vendor directory
3483 (delete-file-recursively
3484 (string-append vendor-dir "/" ,name "-" ,version ".tar.xz"))
3485 #t))
3486 (replace 'build
3487 (assoc-ref gnu:%standard-phases 'build))
3488 (add-before 'check 'ignore-failing-tests
3489 ;; stderr=```/tmp/guix-build-.../librsvg-2.50.1/rsvg-convert: line 150: ls: command not found
3490 (lambda _
3491 (substitute* "tests/src/cmdline/rsvg_convert.rs"
3492 (("fn background_color_option_invalid_color_yields_error" all)
3493 (string-append "#[ignore] " all))
3494 (("fn empty_input_yields_error" all)
3495 (string-append "#[ignore] " all))
3496 (("fn empty_svg_yields_error" all)
3497 (string-append "#[ignore] " all))
3498 (("fn env_source_data_epoch_empty" all)
3499 (string-append "#[ignore] " all))
3500 (("fn env_source_data_epoch_no_digits" all)
3501 (string-append "#[ignore] " all))
3502 (("fn env_source_data_epoch_trailing_garbage" all)
3503 (string-append "#[ignore] " all))
3504 (("fn export_id_option_error" all)
3505 (string-append "#[ignore] " all))
3506 (("fn huge_zoom_factor_yields_error" all)
3507 (string-append "#[ignore] " all))
3508 (("fn multiple_input_files_not_allowed_for_png_output" all)
3509 (string-append "#[ignore] " all))
3510 (("fn stylesheet_option_error" all)
3511 (string-append "#[ignore] " all)))
3512 #t))
3513 (replace 'check
3514 (lambda* args
3515 ((assoc-ref gnu:%standard-phases 'check)
3516 #:test-target "check")))
3517 (replace 'install
3518 (assoc-ref gnu:%standard-phases 'install)))))
3519 (native-inputs
3520 `(("docbook-xml" ,docbook-xml-4.3)
3521 ("glib" ,glib "bin")
3522 ("gobject-introspection" ,gobject-introspection)
3523 ("pkg-config" ,pkg-config)
3524 ("python" ,python-wrapper)
3525 ("ruby" ,ruby)
3526 ("vala" ,vala)))
3527 (inputs
3528 `(("bzip2" ,bzip2)
3529 ("fontconfig" ,fontconfig)
3530 ("freetype" ,freetype)
3531 ("harfbuzz" ,harfbuzz)
3532 ("libcroco" ,libcroco)
3533 ("libgsf" ,libgsf)
3534 ("libxml2" ,libxml2)
3535 ("pango" ,pango)))
3536 (propagated-inputs
3537 `(("cairo" ,cairo)
3538 ("gdk-pixbuf" ,gdk-pixbuf)
3539 ("glib" ,glib)))
3540 (synopsis "SVG rendering library")
3541 (description "Librsvg is a library to render SVG images to Cairo surfaces.
3542 GNOME uses this to render SVG icons. Outside of GNOME, other desktop
3543 environments use it for similar purposes. Wikimedia uses it for Wikipedia's SVG
3544 diagrams.")
3545 (home-page "https://wiki.gnome.org/LibRsvg")
3546 (license license:lgpl2.1+)))
3547
3548 (define-public libidl
3549 (package
3550 (name "libidl")
3551 (version "0.8.14")
3552 (source (origin
3553 (method url-fetch)
3554 (uri (string-append "mirror://gnome/sources/libIDL/"
3555 (version-major+minor version) "/"
3556 "libIDL-" version ".tar.bz2"))
3557 (sha256
3558 (base32
3559 "08129my8s9fbrk0vqvnmx6ph4nid744g5vbwphzkaik51664vln5"))))
3560 (build-system gnu-build-system)
3561 (inputs `(("glib" ,glib)))
3562 (native-inputs
3563 `(("pkg-config" ,pkg-config)
3564 ("flex" ,flex)
3565 ("bison" ,bison)))
3566 (home-page "http://freecode.com/projects/libidl")
3567 (synopsis "Create trees of CORBA Interface Definition Language files")
3568 (description "Libidl is a library for creating trees of CORBA Interface
3569 Definition Language (idl) files, which is a specification for defining
3570 portable interfaces. libidl was initially written for orbit (the orb from the
3571 GNOME project, and the primary means of libidl distribution). However, the
3572 functionality was designed to be as reusable and portable as possible.")
3573 (properties `((upstream-name . "libIDL")))
3574 (license license:lgpl2.0+)))
3575
3576
3577 (define-public orbit2
3578 (package
3579 (name "orbit2")
3580 (version "2.14.19")
3581 (source (origin
3582 (method url-fetch)
3583 (uri (let ((upstream-name "ORBit2"))
3584 (string-append "mirror://gnome/sources/" upstream-name "/"
3585 (version-major+minor version) "/"
3586 upstream-name "-" version ".tar.bz2")))
3587 (sha256
3588 (base32
3589 "0l3mhpyym9m5iz09fz0rgiqxl2ym6kpkwpsp1xrr4aa80nlh1jam"))))
3590 (build-system gnu-build-system)
3591 (arguments
3592 `(;; The "timeout-server" test hangs when run in parallel.
3593 #:parallel-tests? #f
3594 #:configure-flags
3595 '(;; We don't need static libraries, plus they don't build reproducibly
3596 ;; (non-deterministic ordering of .o files in the archive.)
3597 "--disable-static"
3598
3599 ;; The programmer kindly gives us a hook to turn off deprecation
3600 ;; warnings ...
3601 "DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
3602 ;; ... which they then completly ignore !!
3603 #:phases
3604 (modify-phases %standard-phases
3605 (add-before 'configure 'ignore-deprecations
3606 (lambda _
3607 (substitute* "linc2/src/Makefile.in"
3608 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3609 #t)))))
3610 (inputs `(("glib" ,glib)
3611 ("libidl" ,libidl)))
3612 (native-inputs
3613 `(("pkg-config" ,pkg-config)))
3614 (home-page "https://projects.gnome.org/orbit2/")
3615 (synopsis "CORBA 2.4-compliant Object Request Broker")
3616 (description "ORBit2 is a CORBA 2.4-compliant Object Request Broker (orb)
3617 featuring mature C, C++ and Python bindings.")
3618 ;; Licence notice is unclear. The Web page simply say "GPL" without giving
3619 ;; a version. SOME of the code files have licence notices for GPLv2+.
3620 ;; The tarball contains files of the text of GPLv2 and LGPLv2.
3621 (license license:gpl2+)
3622 (properties `((upstream-name . "ORBit2")))))
3623
3624
3625 (define-public libbonobo
3626 (package
3627 (name "libbonobo")
3628 (version "2.32.1")
3629 (source (origin
3630 (method url-fetch)
3631 (uri (string-append "mirror://gnome/sources/" name "/"
3632 (version-major+minor version)
3633 "/" name "-" version ".tar.bz2"))
3634 (sha256
3635 (base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))
3636 (patches (search-patches
3637 "libbonobo-activation-test-race.patch"))))
3638 (build-system gnu-build-system)
3639 (arguments
3640 ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
3641 `(#:configure-flags
3642 '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
3643 ;; ... which they then completly ignore !!
3644 #:phases
3645 (modify-phases %standard-phases
3646 (add-before 'configure 'ignore-deprecations
3647 (lambda _
3648 (substitute* "activation-server/Makefile.in"
3649 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3650 #t)))
3651
3652 ;; There's apparently a race condition between the server stub
3653 ;; generation and linking of the example under 'samples/echo' that can
3654 ;; lead do undefined references when building in parallel, as reported
3655 ;; at <https://forums.gentoo.org/viewtopic-t-223376-start-550.html>.
3656 ;; Thus, disable parallel builds.
3657 #:parallel-build? #f))
3658 (inputs `(("popt" ,popt)
3659 ("libxml2" ,libxml2)))
3660 ;; The following are Required by the .pc file
3661 (propagated-inputs
3662 `(("glib" ,glib)
3663 ("orbit2" ,orbit2)))
3664 (native-inputs
3665 `(("intltool" ,intltool)
3666 ("pkg-config" ,pkg-config)
3667 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3668 ("flex" ,flex)
3669 ("bison" ,bison)))
3670 (home-page "https://developer.gnome.org/libbonobo/")
3671 (synopsis "Framework for creating reusable components for use in GNOME applications")
3672 (description "Bonobo is a framework for creating reusable components for
3673 use in GNOME applications, built on top of CORBA.")
3674 ;; Licence not explicitly stated. Source files contain no licence notices.
3675 ;; Tarball contains text of both GPLv2 and LGPLv2
3676 ;; GPLv2 covers both conditions
3677 (license license:gpl2+)))
3678
3679
3680 (define-public gconf
3681 (package
3682 (name "gconf")
3683 (version "3.2.6")
3684 (source (origin
3685 (method url-fetch)
3686 (uri
3687 (let ((upstream-name "GConf"))
3688 (string-append "mirror://gnome/sources/" upstream-name "/"
3689 (version-major+minor version) "/"
3690 upstream-name "-" version ".tar.xz")))
3691 (sha256
3692 (base32 "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr"))))
3693 (build-system gnu-build-system)
3694 (inputs `(("dbus-glib" ,dbus-glib)
3695 ("libxml2" ,libxml2)))
3696 (propagated-inputs `(("glib" ,glib) ; referred to in the .pc file
3697 ("orbit2" ,orbit2)))
3698 (native-inputs
3699 `(("intltool" ,intltool)
3700 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3701 ("pkg-config" ,pkg-config)))
3702 (home-page "https://projects.gnome.org/gconf/")
3703 (synopsis "Store application preferences")
3704 (description "Gconf is a system for storing application preferences. It
3705 is intended for user preferences; not arbitrary data storage.")
3706 (license license:lgpl2.0+)
3707 (properties '((upstream-name . "GConf")))))
3708
3709
3710 (define-public gnome-mime-data
3711 (package
3712 (name "gnome-mime-data")
3713 (version "2.18.0")
3714 (source (origin
3715 (method url-fetch)
3716 (uri (string-append "mirror://gnome/sources/" name "/"
3717 (version-major+minor version) "/"
3718 name "-" version ".tar.bz2"))
3719 (sha256
3720 (base32
3721 "1mvg8glb2a40yilmyabmb7fkbzlqd3i3d31kbkabqnq86xdnn69p"))))
3722 (build-system gnu-build-system)
3723 (native-inputs
3724 `(("perl" ,perl)
3725 ("intltool" ,intltool)))
3726 (arguments
3727 '(#:phases (modify-phases %standard-phases
3728 (add-after 'configure 'use-our-intltool
3729 (lambda _
3730 ;; Do not use the bundled intltool commands, which lack
3731 ;; the "dotless @INC" fixes of our 'intltool' package.
3732 (substitute* (find-files "." "^Makefile$")
3733 (("^INTLTOOL_(EXTRACT|UPDATE|MERGE) = .*$" _ tool)
3734 (string-append "INTLTOOL_" tool " = intltool-"
3735 (string-downcase tool) "\n")))
3736 #t)))))
3737 (home-page "https://www.gnome.org")
3738 (synopsis "Base MIME and Application database for GNOME")
3739 (description "GNOME Mime Data is a module which contains the base MIME
3740 and Application database for GNOME. The data stored by this module is
3741 designed to be accessed through the MIME functions in GnomeVFS.")
3742 (license license:gpl2+)))
3743
3744
3745 (define-public gnome-vfs
3746 (package
3747 (name "gnome-vfs")
3748 (version "2.24.4")
3749 (source (origin
3750 (method url-fetch)
3751 (uri (string-append "mirror://gnome/sources/" name "/"
3752 (version-major+minor version) "/"
3753 name "-" version ".tar.bz2"))
3754 (sha256
3755 (base32
3756 "1ajg8jb8k3snxc7rrgczlh8daxkjidmcv3zr9w809sq4p2sn9pk2"))))
3757 (build-system gnu-build-system)
3758 (arguments
3759 `(#:phases
3760 (modify-phases %standard-phases
3761 (add-before 'configure 'ignore-deprecations
3762 (lambda _
3763 (substitute* '("libgnomevfs/Makefile.in"
3764 "daemon/Makefile.in")
3765 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3766 #t))
3767 (add-before 'configure 'patch-test-async-cancel-to-never-fail
3768 (lambda _
3769 (substitute* "test/test-async-cancel.c"
3770 (("EXIT_FAILURE") "77"))
3771 #t)))))
3772 (inputs `(("libxml2" ,libxml2)
3773 ("dbus-glib" ,dbus-glib)
3774 ("gconf" ,gconf)
3775 ("gnome-mime-data" ,gnome-mime-data)
3776 ("zlib" ,zlib)))
3777 (native-inputs
3778 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3779 ("intltool" ,intltool)
3780 ("pkg-config" ,pkg-config)))
3781 (home-page "https://developer.gnome.org/gnome-vfs/")
3782 (synopsis "Access files and folders in GNOME applications")
3783 (description
3784 "GnomeVFS is the core library used to access files and folders in GNOME
3785 applications. It provides a file system abstraction which allows applications
3786 to access local and remote files with a single consistent API.")
3787 (license license:lgpl2.0+)))
3788
3789
3790
3791 (define-public libgnome
3792 (package
3793 (name "libgnome")
3794 (version "2.32.1")
3795 (source (origin
3796 (method url-fetch)
3797 (uri (string-append "mirror://gnome/sources/" name "/"
3798 (version-major+minor version) "/"
3799 name "-" version ".tar.bz2"))
3800 (sha256
3801 (base32
3802 "197pnq8y0knqjhm2fg4j6hbqqm3qfzfnd0irhwxpk1b4hqb3kimj"))
3803 (patches (search-patches "libgnome-encoding.patch"))))
3804 (build-system gnu-build-system)
3805 (arguments
3806 `(#:phases
3807 (modify-phases %standard-phases
3808 (add-before 'configure 'enable-deprecated
3809 (lambda _
3810 (substitute* "libgnome/Makefile.in"
3811 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
3812 #t)))))
3813 (inputs `(("libxml2" ,libxml2)))
3814 (native-inputs
3815 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3816 ("intltool" ,intltool)
3817 ("pkg-config" ,pkg-config)))
3818 ;; The following are listed as Required in the .pc file
3819 ;; (except for libcanberra -- which seems to be oversight on the part
3820 ;; of the upstream developers -- anything that links against libgnome,
3821 ;; must also link against libcanberra
3822 (propagated-inputs
3823 `(("libcanberra" ,libcanberra)
3824 ("libbonobo" ,libbonobo)
3825 ("gconf" ,gconf)
3826 ("gnome-vfs" ,gnome-vfs)
3827 ("popt" ,popt))) ;gnome-program.h includes popt.h
3828 (home-page "https://developer.gnome.org/libgnome/")
3829 (synopsis "Useful routines for building applications")
3830 (description "The libgnome library provides a number of useful routines
3831 for building modern applications, including session management, activation of
3832 files and URIs, and displaying help.")
3833 (license license:lgpl2.0+)))
3834
3835
3836 (define-public libart-lgpl
3837 (package
3838 (name "libart-lgpl")
3839 (version "2.3.21")
3840 (source (origin
3841 (method url-fetch)
3842 (uri (let ((upstream-name "libart_lgpl"))
3843 (string-append "mirror://gnome/sources/" upstream-name "/"
3844 (version-major+minor version) "/"
3845 upstream-name "-" version ".tar.bz2")))
3846 (sha256
3847 (base32
3848 "1yknfkyzgz9s616is0l9gp5aray0f2ry4dw533jgzj8gq5s1xhgx"))))
3849 (build-system gnu-build-system)
3850 (native-inputs
3851 `(("pkg-config" ,pkg-config)))
3852 (home-page "https://people.gnome.org/~mathieu/libart")
3853 (synopsis "2D drawing library")
3854 (description "Libart is a 2D drawing library intended as a
3855 high-quality vector-based 2D library with antialiasing and alpha composition.")
3856 (license license:lgpl2.0+)))
3857
3858
3859
3860 (define-public libgnomecanvas
3861 (package
3862 (name "libgnomecanvas")
3863 (version "2.30.3")
3864 (source (origin
3865 (method url-fetch)
3866 (uri (string-append "mirror://gnome/sources/" name "/"
3867 (version-major+minor version) "/"
3868 name "-" version ".tar.gz"))
3869 (sha256
3870 (base32
3871 "1nhnq4lfkk8ljkdafscwaggx0h95mq0rxnd7zgqyq0xb6kkqbjm8"))))
3872 (build-system gnu-build-system)
3873 ;; Mentioned as Required in the .pc file
3874 (propagated-inputs `(("libart-lgpl" ,libart-lgpl)
3875 ("gtk+" ,gtk+-2)))
3876 (native-inputs
3877 `(("intltool" ,intltool)
3878 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3879 ("pkg-config" ,pkg-config)))
3880 (home-page "https://developer.gnome.org/libgnomecanvas/")
3881 (synopsis "Flexible widget for creating interactive structured graphics")
3882 (description "The GnomeCanvas widget provides a flexible widget for
3883 creating interactive structured graphics.")
3884 (license license:lgpl2.0+)))
3885
3886 (define-public libgnomecanvasmm
3887 (package
3888 (name "libgnomecanvasmm")
3889 (version "2.26.0")
3890 (source (origin
3891 (method url-fetch)
3892 (uri (string-append "mirror://gnome/sources/" name "/"
3893 (version-major+minor version) "/"
3894 name "-" version ".tar.bz2"))
3895 (sha256
3896 (base32
3897 "0679hcnpam2gkag2i63sm0wdm35gwvzafnz1354mg6j5gzwpfrcr"))))
3898 (build-system gnu-build-system)
3899 (propagated-inputs `(("libgnomecanvas" ,libgnomecanvas)))
3900 (native-inputs
3901 `(("gtkmm-2" ,gtkmm-2)
3902 ("pkg-config" ,pkg-config)))
3903 (home-page "https://gtkmm.org")
3904 (synopsis "C++ bindings to the GNOME Canvas library")
3905 (description "C++ bindings to the GNOME Canvas library.")
3906 (license license:lgpl2.0+)))
3907
3908 (define-public libgnomeui
3909 (package
3910 (name "libgnomeui")
3911 (version "2.24.5")
3912 (source (origin
3913 (method url-fetch)
3914 (uri (string-append "mirror://gnome/sources/" name "/"
3915 (version-major+minor version) "/"
3916 name "-" version ".tar.bz2"))
3917 (patches (search-patches "libgnomeui-utf8.patch"))
3918 (sha256
3919 (base32
3920 "03rwbli76crkjl6gp422wrc9lqpl174k56cp9i96b7l8jlj2yddf"))))
3921 (build-system gnu-build-system)
3922 ;; Mentioned as Required in the .pc file
3923 (propagated-inputs `(("libbonoboui" ,libbonoboui)
3924 ("libgnome" ,libgnome)
3925 ("libgnomecanvas" ,libgnomecanvas)
3926 ("libgnome-keyring" ,libgnome-keyring)))
3927 (inputs `(("libjpeg" ,libjpeg-turbo)
3928 ("popt" ,popt)
3929 ("libbonobo" ,libbonobo)
3930 ("libxml2" ,libxml2)
3931 ("libglade" ,libglade)))
3932 (native-inputs
3933 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
3934 ("intltool" ,intltool)
3935 ("pkg-config" ,pkg-config)))
3936 (home-page "https://developer.gnome.org/libgnomeui/")
3937 (synopsis "Additional widgets for applications")
3938 (description "The libgnomeui library provides additional widgets for
3939 applications. Many of the widgets from libgnomeui have already been
3940 ported to GTK+.")
3941 (license license:lgpl2.0+)))
3942
3943 (define-public libglade
3944 (package
3945 (name "libglade")
3946 (version "2.6.4")
3947 (source (origin
3948 (method url-fetch)
3949 (uri (string-append "mirror://gnome/sources/" name "/"
3950 (version-major+minor version) "/"
3951 name "-" version ".tar.bz2"))
3952 (sha256
3953 (base32
3954 "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4"))))
3955 (build-system gnu-build-system)
3956 (inputs
3957 `(("python" ,python))) ;; needed for the optional libglade-convert program
3958 (propagated-inputs
3959 `(("gtk+-2" ,gtk+-2)
3960 ("libxml2" ,libxml2))) ; required by libglade-2.0.pc
3961 (native-inputs
3962 `(("pkg-config" ,pkg-config)))
3963 (home-page "https://developer.gnome.org/libglade")
3964 (synopsis "Load glade interfaces and access the glade built widgets")
3965 (description "Libglade is a library that provides interfaces for loading
3966 graphical interfaces described in glade files and for accessing the
3967 widgets built in the loading process.")
3968 (license license:gpl2+))) ; This is correct. GPL not LGPL
3969
3970 (define-public libgnomeprint
3971 ;; This library has been deprecated since 2006; see
3972 ;; <https://mail.gnome.org/archives/devel-announce-list/2006-August/msg00005.html>.
3973 (package
3974 (name "libgnomeprint")
3975 (version "2.18.8")
3976 (source (origin
3977 (method url-fetch)
3978 (uri (string-append "mirror://gnome/sources/" name "/"
3979 (version-major+minor version) "/"
3980 name "-" version ".tar.bz2"))
3981 (sha256
3982 (base32
3983 "14cnimvlc7ky22g2snyf4362412k3jk1syjf8b9887q5a63fqd0h"))))
3984 (build-system gnu-build-system)
3985 (inputs
3986 `(("popt" ,popt)
3987 ("libart-lgpl" ,libart-lgpl)
3988 ("gtk+" ,gtk+-2)
3989 ("libxml2" ,libxml2)))
3990 (native-inputs
3991 `(("intltool" ,intltool)
3992 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3993 ("pkg-config" ,pkg-config)))
3994 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
3995 (synopsis "Printing framework for GNOME")
3996 (description
3997 "GNOME-print was a printing framework for GNOME. It has been deprecated
3998 since ca. 2006, when GTK+ itself incorporated printing support.")
3999 (license license:lgpl2.0+)))
4000
4001
4002 (define-public libgnomeprintui
4003 ;; Deprecated; see libgnomeprint.
4004 (package
4005 (name "libgnomeprintui")
4006 (version "2.18.6")
4007 (source (origin
4008 (method url-fetch)
4009 (uri (string-append "mirror://gnome/sources/" name "/"
4010 (version-major+minor version) "/"
4011 name "-" version ".tar.bz2"))
4012 (sha256
4013 (base32
4014 "0spl8vinb5n6n1krnfnr61dwaxidg67h8j94z9p59k2xdsvfashm"))))
4015 (build-system gnu-build-system)
4016 ;; Mentioned as Required in the .pc file
4017 (propagated-inputs `(("libgnomeprint" ,libgnomeprint)))
4018 (inputs `(("gtk+" ,gtk+-2)
4019 ("glib" ,glib)
4020 ("gnome-icon-theme" ,gnome-icon-theme)
4021 ("libgnomecanvas" ,libgnomecanvas)
4022 ("libxml2" ,libxml2)))
4023 (native-inputs
4024 `(("intltool" ,intltool)
4025 ("pkg-config" ,pkg-config)))
4026 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
4027 (synopsis "Printing framework for GNOME")
4028 (description (package-description libgnomeprint))
4029 (license license:lgpl2.0+)))
4030
4031 (define-public libbonoboui
4032 (package
4033 (name "libbonoboui")
4034 (version "2.24.5")
4035 (source (origin
4036 (method url-fetch)
4037 (uri (string-append "mirror://gnome/sources/" name "/"
4038 (version-major+minor version) "/"
4039 name "-" version ".tar.bz2"))
4040 (sha256
4041 (base32
4042 "1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
4043 (build-system gnu-build-system)
4044 (arguments
4045 `(#:phases
4046 (modify-phases %standard-phases
4047 (add-before 'check 'start-xserver
4048 (lambda* (#:key inputs #:allow-other-keys)
4049 (let ((xorg-server (assoc-ref inputs "xorg-server"))
4050 (disp ":1"))
4051
4052 (setenv "HOME" (getcwd))
4053 (setenv "DISPLAY" disp)
4054 ;; There must be a running X server and make check doesn't start one.
4055 ;; Therefore we must do it.
4056 (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))))))
4057 ;; Mentioned as Required by the .pc file
4058 (propagated-inputs `(("libxml2" ,libxml2)))
4059 (inputs
4060 `(("popt" ,popt)
4061 ("pangox-compat" ,pangox-compat)
4062 ("libgnome" ,libgnome)
4063 ("libgnomecanvas" ,libgnomecanvas)
4064 ("libglade" ,libglade)))
4065 (native-inputs
4066 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
4067 ("intltool" ,intltool)
4068 ("xorg-server" ,xorg-server-for-tests) ; For running the tests
4069 ("pkg-config" ,pkg-config)))
4070 (home-page "https://developer.gnome.org/libbonoboui/")
4071 (synopsis "Some user interface controls using Bonobo")
4072 (description "The Bonobo UI library provides a number of user interface
4073 controls using the Bonobo component framework.")
4074 (license license:lgpl2.0+)))
4075
4076 (define-public libwnck
4077 (package
4078 (name "libwnck")
4079 (version "3.32.0")
4080 (source (origin
4081 (method url-fetch)
4082 (uri (string-append "mirror://gnome/sources/" name "/"
4083 (version-major+minor version) "/"
4084 name "-" version ".tar.xz"))
4085 (sha256
4086 (base32
4087 "1jp3p1lnwnwi6fxl2rz3166cmwzwy9vqz896anpwc3wdy9f875cm"))))
4088 (build-system meson-build-system)
4089 (native-inputs
4090 `(("pkg-config" ,pkg-config)
4091 ("glib" ,glib "bin") ; for glib-mkenums
4092 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
4093 ("intltool" ,intltool)))
4094 (propagated-inputs
4095 `(("gtk+" ,gtk+)
4096 ("libxres" ,libxres)
4097 ("startup-notification" ,startup-notification)))
4098 (home-page "https://developer.gnome.org/libwnck/")
4099 (synopsis "Window Navigator Construction Kit")
4100 (description
4101 "Libwnck is the Window Navigator Construction Kit, a library for use in
4102 writing pagers, tasklists, and more generally applications that are dealing
4103 with window management. It tries hard to respect the Extended Window Manager
4104 Hints specification (EWMH).")
4105 (license license:lgpl2.0+)))
4106
4107 ;; stable version for gtk2, required by xfwm4.
4108 (define-public libwnck-2
4109 (package (inherit libwnck)
4110 (name "libwnck")
4111 (version "2.30.7")
4112 (source (origin
4113 (method url-fetch)
4114 (uri (string-append "mirror://gnome/sources/" name "/"
4115 (version-major+minor version) "/"
4116 name "-" version ".tar.xz"))
4117 (sha256
4118 (base32
4119 "15713yl0f8f3p99jzqqfmbicrdswd3vwpx7r3bkf1bgh6d9lvs4b"))))
4120 (build-system gnu-build-system)
4121 (native-inputs
4122 `(("pkg-config" ,pkg-config)
4123 ("intltool" ,intltool)))
4124 (propagated-inputs
4125 `(("gtk+" ,gtk+-2)
4126 ("libxres" ,libxres)
4127 ("startup-notification" ,startup-notification)))))
4128
4129 (define-public goffice
4130 (package
4131 (name "goffice")
4132 (version "0.10.50")
4133 (source (origin
4134 (method url-fetch)
4135 (uri (string-append "mirror://gnome/sources/goffice/"
4136 (version-major+minor version) "/"
4137 "goffice-" version ".tar.xz"))
4138 (sha256
4139 (base32 "1p5zbj7cbcfcxd6l8pnph54p6ah1bwf146y810j4bcq8ggf3sp1c"))))
4140 (build-system gnu-build-system)
4141 (outputs '("out"
4142 "doc")) ; 4.0 MiB of gtk-doc
4143 (arguments
4144 '(#:configure-flags (list (string-append "--with-html-dir="
4145 (assoc-ref %outputs "doc")
4146 "/share/gtk-doc/html"))))
4147 (inputs
4148 `(("gtk+" ,gtk+)
4149 ("libgsf" ,libgsf)
4150 ("librsvg" ,librsvg)
4151 ("libxslt" ,libxslt)
4152 ("libxml2" ,libxml2)))
4153 (native-inputs
4154 `(("intltool" ,intltool)
4155 ("glib" ,glib "bin")
4156 ("pkg-config" ,pkg-config)))
4157 (home-page "https://developer.gnome.org/goffice/")
4158 (synopsis "Document-centric objects and utilities")
4159 (description "A GLib/GTK+ set of document-centric objects and utilities.")
4160 (license
4161 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
4162 ;; Note: NOT LGPL
4163 (list license:gpl2 license:gpl3))))
4164
4165 (define-public goffice-0.8
4166 (package (inherit goffice)
4167 (version "0.8.17")
4168 (source (origin
4169 (method url-fetch)
4170 (uri (string-append "mirror://gnome/sources/" (package-name goffice) "/"
4171 (version-major+minor version) "/"
4172 (package-name goffice) "-" version ".tar.xz"))
4173 (sha256
4174 (base32 "05fvzbs5bin05bbsr4dp79aiva3lnq0a3a40zq55i13vnsz70l0n"))))
4175 (arguments
4176 `(#:phases
4177 (modify-phases %standard-phases
4178 (add-after 'unpack 'fix-pcre-check
4179 (lambda _
4180 ;; Only glib.h can be included directly. See
4181 ;; https://bugzilla.gnome.org/show_bug.cgi?id=670316
4182 (substitute* "configure"
4183 (("glib/gregex\\.h") "glib.h")) #t)))
4184
4185 ,@(package-arguments goffice)))
4186 (propagated-inputs
4187 ;; libgoffice-0.8.pc mentions libgsf-1
4188 `(("libgsf" ,libgsf)))
4189 (inputs
4190 `(("gtk" ,gtk+-2)
4191 ,@(alist-delete "gtk" (package-inputs goffice))))))
4192
4193 (define-public gnumeric
4194 (package
4195 (name "gnumeric")
4196 (version "1.12.50")
4197 (source (origin
4198 (method url-fetch)
4199 (uri (string-append "mirror://gnome/sources/gnumeric/"
4200 (version-major+minor version) "/"
4201 "gnumeric-" version ".tar.xz"))
4202 (sha256
4203 (base32
4204 "1f0lrj5msg80pgjp38jj6rddf352gwddgip7z4lki66n3fx1k23m"))))
4205 (build-system glib-or-gtk-build-system)
4206 (arguments
4207 `(;; The gnumeric developers don't worry much about failing tests.
4208 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
4209 #:tests? #f
4210 #:phases
4211 (modify-phases %standard-phases
4212 (add-before
4213 'configure 'pre-conf
4214 (lambda* (#:key outputs #:allow-other-keys)
4215 ;; Make install tries to write into the directory of goffice
4216 ;; I am informed that this only affects the possibility to embed a
4217 ;; spreadsheet inside an Abiword document. So presumably when we
4218 ;; package Abiword we'll have to refer it to this directory.
4219 (substitute* "configure"
4220 (("^GOFFICE_PLUGINS_DIR=.*")
4221 (string-append "GOFFICE_PLUGINS_DIR="
4222 (assoc-ref outputs "out")
4223 "/goffice/plugins"))))))))
4224 (inputs
4225 `(("glib" ,glib)
4226 ("gtk+" ,gtk+)
4227 ("goffice" ,goffice)
4228 ("libgsf" ,libgsf)
4229 ("librsvg" ,librsvg)
4230 ("libxml2" ,libxml2)
4231 ("libxslt" ,libxslt)
4232 ("python" ,python)
4233 ("python-pygobject" ,python-pygobject)
4234 ("zlib" ,zlib)))
4235 (native-inputs
4236 `(("bison" ,bison)
4237 ("docbook-xml" ,docbook-xml)
4238 ("intltool" ,intltool)
4239 ("itstool" ,itstool)
4240 ("glib:bin" ,glib "bin")
4241 ("pkg-config" ,pkg-config)))
4242 (home-page "http://www.gnumeric.org")
4243 (synopsis "Spreadsheet application")
4244 (description
4245 "GNUmeric is a GNU spreadsheet application, running under GNOME. It is
4246 interoperable with other spreadsheet applications. It has a vast array of
4247 features beyond typical spreadsheet functionality, such as support for linear
4248 and non-linear solvers, statistical analysis, and telecommunication
4249 engineering.")
4250 (license
4251 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
4252 (list license:gpl2 license:gpl3))))
4253
4254 (define-public drawing
4255 (package
4256 (name "drawing")
4257 (version "0.8.1")
4258 (source
4259 (origin
4260 (method git-fetch)
4261 (uri (git-reference
4262 (url "https://github.com/maoschanz/drawing")
4263 (commit version)))
4264 (file-name (git-file-name name version))
4265 (sha256
4266 (base32 "0a65mil9w4iw0h6kncg5d15s302sxfx25fpnkfv9pz54nj3hzghk"))))
4267 (build-system meson-build-system)
4268 (arguments
4269 `(#:glib-or-gtk? #t
4270 #:phases
4271 (modify-phases %standard-phases
4272 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
4273 (lambda* (#:key outputs #:allow-other-keys)
4274 (let ((prog (string-append (assoc-ref outputs "out")
4275 "/bin/drawing"))
4276 (pylib (string-append (assoc-ref outputs "out")
4277 "/lib/python"
4278 ,(version-major+minor
4279 (package-version python))
4280 "/site-packages")))
4281 (wrap-program prog
4282 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
4283 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
4284 #t))))))
4285 (native-inputs
4286 `(("desktop-file-utils" ,desktop-file-utils)
4287 ("gettext" ,gettext-minimal)
4288 ("glib:bin" ,glib "bin")
4289 ("gobject-introspection" ,gobject-introspection)
4290 ("gtk+:bin" ,gtk+ "bin")
4291 ("pkg-config" ,pkg-config)))
4292 (inputs
4293 `(("gdk-pixbuf" ,gdk-pixbuf+svg)
4294 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4295 ("gtk+" ,gtk+)
4296 ("pango" ,pango)
4297 ("python-pycairo" ,python-pycairo)
4298 ("python-pygobject" ,python-pygobject)))
4299 (home-page "https://maoschanz.github.io/drawing/")
4300 (synopsis "Basic image editor for GNOME")
4301 (description
4302 "Drawing is a basic image editor aiming at the GNOME desktop.")
4303 (license license:gpl3+)))
4304
4305 (define-public gnome-themes-standard
4306 (package
4307 (name "gnome-themes-standard")
4308 (version "3.22.3")
4309 (source
4310 (origin
4311 (method url-fetch)
4312 (uri (string-append "mirror://gnome/sources/" name "/"
4313 (version-major+minor version) "/" name "-"
4314 version ".tar.xz"))
4315 (sha256
4316 (base32
4317 "0smmiamrgcgf5sa88bsn8hwmvsyx4gczzs359nwxbkv14b2qgp31"))))
4318 (build-system gnu-build-system)
4319 (arguments
4320 '(#:configure-flags
4321 ;; Don't create 'icon-theme.cache'.
4322 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
4323 (true (string-append coreutils "/bin/true")))
4324 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
4325 (inputs
4326 `(("gtk+" ,gtk+)
4327 ("gtk+-2" ,gtk+-2)
4328 ("librsvg" ,librsvg)
4329 ("libxml2" ,libxml2)
4330 ("glib" ,glib)))
4331 (native-inputs
4332 `(("intltool" ,intltool)
4333 ("glib:bin" ,glib "bin")
4334 ("pkg-config" ,pkg-config)))
4335 (home-page "https://launchpad.net/gnome-themes-standard")
4336 (synopsis "Default GNOME 3 themes")
4337 (description
4338 "The default GNOME 3 themes (Adwaita and some accessibility themes).")
4339 (license license:lgpl2.1+)))
4340
4341 (define-public seahorse
4342 (package
4343 (name "seahorse")
4344 (version "3.36.2")
4345 (source
4346 (origin
4347 (method url-fetch)
4348 (uri (string-append "mirror://gnome/sources/" name "/"
4349 (version-major+minor version) "/" name "-"
4350 version ".tar.xz"))
4351 (sha256
4352 (base32 "16wmxxppgcgfj8zkagcny5af1c81x32ysm9d6j9f2k7bmik21ss5"))))
4353 (build-system meson-build-system)
4354 (arguments
4355 '(#:glib-or-gtk? #t
4356 #:phases
4357 (modify-phases %standard-phases
4358 (add-after 'unpack 'skip-gtk-update-icon-cache
4359 ;; Don't create 'icon-theme.cache'.
4360 (lambda _
4361 (substitute* "build-aux/meson_post_install.py"
4362 (("gtk-update-icon-cache") "true"))
4363 #t)))))
4364 (inputs
4365 `(("gtk+" ,gtk+)
4366 ("gcr" ,gcr)
4367 ("gnupg" ,gnupg)
4368 ("gpgme" ,gpgme)
4369 ("openldap" ,openldap)
4370 ("openssh" ,openssh)
4371 ("avahi" ,avahi)
4372 ("libhandy" ,libhandy-0.0)
4373 ("libpwquality" ,libpwquality)
4374 ("libsecret" ,libsecret)
4375 ("libsoup" ,libsoup)))
4376 (native-inputs
4377 `(("gettext" ,gettext-minimal)
4378 ("glib:bin" ,glib "bin")
4379 ("itstool" ,itstool)
4380 ("pkg-config" ,pkg-config)
4381 ("vala" ,vala)
4382 ("xmllint" ,libxml2)))
4383 (home-page "https://wiki.gnome.org/Apps/Seahorse")
4384 (synopsis "Manage encryption keys and passwords in the GNOME keyring")
4385 (description
4386 "Seahorse is a GNOME application for managing encryption keys and
4387 passwords in the GNOME keyring.")
4388 (license license:gpl2+)))
4389
4390 (define-public vala
4391 (package
4392 (name "vala")
4393 (version "0.46.5")
4394 (source (origin
4395 (method url-fetch)
4396 (uri (string-append "mirror://gnome/sources/" name "/"
4397 (version-major+minor version) "/"
4398 name "-" version ".tar.xz"))
4399 (sha256
4400 (base32
4401 "07fv895sp9wq74b20qig7hic0r4ynrr5pfaqba02r44xb794fy0s"))))
4402 (build-system gnu-build-system)
4403 (arguments
4404 '(#:phases
4405 (modify-phases %standard-phases
4406 (add-before 'check 'pre-check
4407 (lambda _
4408 (setenv "CC" "gcc")
4409 (substitute* "valadoc/tests/testrunner.sh"
4410 (("export PKG_CONFIG_PATH=" m)
4411 (string-append m "$PKG_CONFIG_PATH:")))
4412 ;; For missing '/etc/machine-id'.
4413 (setenv "DBUS_FATAL_WARNINGS" "0")
4414 #t)))))
4415 (native-inputs
4416 `(("pkg-config" ,pkg-config)
4417 ("flex" ,flex)
4418 ("bison" ,bison)
4419 ("xsltproc" ,libxslt)
4420 ("dbus" ,dbus) ; for dbus tests
4421 ("gobject-introspection" ,gobject-introspection))) ; for gir tests
4422 (inputs
4423 `(("graphviz" ,graphviz)))
4424 (propagated-inputs
4425 `(("glib" ,glib))) ; required by libvala-0.40.pc
4426 (home-page "https://wiki.gnome.org/Projects/Vala/")
4427 (synopsis "Compiler for the GObject type system")
4428 (description
4429 "Vala is a programming language that aims to bring modern programming
4430 language features to GNOME developers without imposing any additional runtime
4431 requirements and without using a different ABI compared to applications and
4432 libraries written in C.")
4433 (license license:lgpl2.1+)))
4434
4435 (define-public vala-0.50
4436 (package
4437 (inherit vala)
4438 (version "0.50.2")
4439 (source (origin
4440 (method url-fetch)
4441 (uri (string-append "mirror://gnome/sources/vala/"
4442 (version-major+minor version) "/"
4443 "vala-" version ".tar.xz"))
4444 (sha256
4445 (base32
4446 "1nnf0x6vk0a9p2y6z7jwjfvmlxh3qhj581v381r0y1sxsv35s39c"))))))
4447
4448 (define-public vte
4449 (package
4450 (name "vte")
4451 (version "0.60.3")
4452 (source (origin
4453 (method url-fetch)
4454 (uri (string-append "mirror://gnome/sources/vte/"
4455 (version-major+minor version) "/"
4456 "vte-" version ".tar.xz"))
4457 (sha256
4458 (base32
4459 "0al2v6fn061v4j1wwvppim1q283y2a6s0iyl29hxhmx3h48nxdzy"))))
4460 (build-system meson-build-system)
4461 (arguments
4462 `(#:configure-flags
4463 '("-Dvapi=true"
4464 "-D_systemd=false")))
4465 (native-inputs
4466 `(("pkg-config" ,pkg-config)
4467 ("gettext" ,gettext-minimal)
4468 ("vala" ,vala)
4469 ("gobject-introspection" ,gobject-introspection)
4470 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
4471 ("gperf" ,gperf)
4472 ("xmllint" ,libxml2)))
4473 (propagated-inputs
4474 `(("gtk+" ,gtk+) ; required by vte-2.91.pc
4475 ("gnutls" ,gnutls) ; ditto
4476 ("pcre2" ,pcre2))) ; ditto
4477 (home-page "https://www.gnome.org/")
4478 (synopsis "Virtual Terminal Emulator")
4479 (description
4480 "VTE is a library (libvte) implementing a terminal emulator widget for
4481 GTK+, and a minimal sample application (vte) using that. Vte is mainly used in
4482 gnome-terminal, but can also be used to embed a console/terminal in games,
4483 editors, IDEs, etc.")
4484 (license license:lgpl2.1+)))
4485
4486 (define-public vte-ng
4487 (package
4488 (inherit vte)
4489 (name "vte-ng")
4490 (version "0.58.2.a")
4491 (home-page "https://github.com/thestinger/vte-ng")
4492 (source (origin
4493 (method git-fetch)
4494 (uri (git-reference (url home-page) (commit version)))
4495 (file-name (git-file-name name version))
4496 (sha256
4497 (base32
4498 "0rnm5c6m3abbm81jsfdas0y80z299ny54gr4syn4bfrms3s4g19l"))))
4499 (build-system meson-build-system)
4500 (native-inputs
4501 `(("gtk-doc" ,gtk-doc/stable)
4502 ,@(package-native-inputs vte)))
4503 (arguments
4504 `(#:configure-flags '("-Ddocs=true")))
4505 (synopsis "Enhanced VTE terminal widget")
4506 (description
4507 "VTE is a library (libvte) implementing a terminal emulator widget for
4508 GTK+, this fork provides additional functions exposed for keyboard text
4509 selection and URL hints.")))
4510
4511 ;; Stable version for gtk2, required by gnurobots and lxterminal as of 2020-07.
4512 (define-public vte/gtk+-2
4513 (package (inherit vte)
4514 (name "vte")
4515 (version "0.28.2")
4516 (source (origin
4517 (method url-fetch)
4518 (uri (string-append "mirror://gnome/sources/" name "/"
4519 (version-major+minor version) "/"
4520 name "-" version ".tar.xz"))
4521 (sha256
4522 (base32
4523 "1bmhahkf8wdsra9whd3k5l5z4rv7r58ksr8mshzajgq2ma0hpkw6"))
4524 (patches (search-patches
4525 "vte-CVE-2012-2738-pt1.patch"
4526 "vte-CVE-2012-2738-pt2.patch"))))
4527 (build-system gnu-build-system)
4528 (arguments
4529 '(#:configure-flags '("--disable-python")))
4530 (native-inputs
4531 `(("pkg-config" ,pkg-config)
4532 ("intltool" ,intltool)
4533 ("glib" ,glib "bin"))) ; for glib-genmarshal, etc.
4534 (propagated-inputs
4535 `(("gtk+" ,gtk+-2) ; required by libvte.pc
4536 ("ncurses" ,ncurses))))) ; required by libvte.la
4537
4538 (define-public vinagre
4539 (package
4540 (name "vinagre")
4541 (version "3.22.0")
4542 (source (origin
4543 (method url-fetch)
4544 (uri (string-append "mirror://gnome/sources/" name "/"
4545 (version-major+minor version) "/"
4546 name "-" version ".tar.xz"))
4547 (patches (search-patches "vinagre-newer-freerdp.patch"
4548 "vinagre-newer-rdp-parameters.patch"))
4549 (sha256
4550 (base32
4551 "10jya3jyrm18nbw3v410gbkc7677bqamax44pzgd3j15randn76d"))))
4552 (build-system glib-or-gtk-build-system)
4553 (arguments
4554 ;; Disable -Werror and such, to avoid build failures on compilation
4555 ;; warnings.
4556 '(#:configure-flags '("--enable-compile-warnings=minimum")
4557 #:phases
4558 (modify-phases %standard-phases
4559 (add-before 'install 'skip-gtk-update-icon-cache
4560 (lambda _
4561 ;; Don't create 'icon-theme.cache'
4562 (substitute* (find-files "." "^Makefile$")
4563 (("gtk-update-icon-cache") (which "true")))
4564 #t))
4565 (add-after 'unpack 'patch-configure
4566 (lambda _
4567 (substitute* "configure"
4568 (("freerdp") "freerdp2"))
4569 #t)))))
4570 (native-inputs
4571 `(("pkg-config" ,pkg-config)
4572 ("intltool" ,intltool)
4573 ("itstool" ,itstool)
4574 ("glib-bin" ,glib "bin"))) ;for glib-compile-schemas
4575 (inputs
4576 `(("libxml2" ,libxml2)
4577 ("gtk-vnc" ,gtk-vnc)
4578 ("gnome-keyring" ,gnome-keyring)
4579 ("libsecret" ,libsecret)
4580 ("freerdp" ,freerdp)
4581 ("spice" ,spice)
4582 ("spice-gtk" ,spice-gtk)
4583 ("telepathy-glib" ,telepathy-glib)
4584 ("vte" ,vte)))
4585 (home-page "https://wiki.gnome.org/Apps/Vinagre")
4586 (synopsis "Remote desktop viewer for GNOME")
4587 (description "Vinagre is a remote display client supporting the VNC, SPICE
4588 and RDP protocols.")
4589 (license license:gpl3+)))
4590
4591 (define-public dconf
4592 (package
4593 (name "dconf")
4594 (version "0.36.0")
4595 (source (origin
4596 (method url-fetch)
4597 (uri (string-append
4598 "mirror://gnome/sources/" name "/"
4599 (version-major+minor version) "/"
4600 name "-" version ".tar.xz"))
4601 (sha256
4602 (base32
4603 "0bfs069pjv6lhp7xrzmrhz3876ay2ryqxzc6mlva1hhz34ibprlz"))))
4604 (build-system meson-build-system)
4605 (propagated-inputs
4606 ;; In Requires of dconf.pc.
4607 `(("glib" ,glib)))
4608 (inputs
4609 `(("gtk+" ,gtk+)
4610 ("dbus" ,dbus)))
4611 (native-inputs
4612 `(("bash-completion" ,bash-completion)
4613 ("libxslt" ,libxslt) ;for xsltproc
4614 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
4615 ("docbook-xml" ,docbook-xml-4.2)
4616 ("docbook-xsl" ,docbook-xsl)
4617 ("glib:bin" ,glib "bin")
4618 ("gtk-doc" ,gtk-doc/stable)
4619 ("pkg-config" ,pkg-config)
4620 ("vala" ,vala)))
4621 (arguments
4622 `(#:glib-or-gtk? #t
4623 #:configure-flags '("-Denable-gtk-doc=true")
4624 #:phases (modify-phases %standard-phases
4625 (add-after 'unpack 'increase-test-timeout
4626 (lambda _
4627 ;; On big-memory systems, the engine test may take
4628 ;; much longer than the default of 30 seconds.
4629 (substitute* "tests/meson.build"
4630 (("test\\(unit_test\\[0\\], exe" all)
4631 (string-append all ", timeout : 90")))
4632 #t)))))
4633 (home-page "https://developer.gnome.org/dconf/")
4634 (synopsis "Low-level GNOME configuration system")
4635 (description "Dconf is a low-level configuration system. Its main purpose
4636 is to provide a backend to GSettings on platforms that don't already have
4637 configuration storage systems.")
4638 (license license:lgpl2.1+)))
4639
4640 (define-public json-glib
4641 (package
4642 (name "json-glib")
4643 (version "1.4.4")
4644 (source (origin
4645 (method url-fetch)
4646 (uri (string-append "mirror://gnome/sources/" name "/"
4647 (version-major+minor version) "/"
4648 name "-" version ".tar.xz"))
4649 (sha256
4650 (base32
4651 "0ixwyis47v5bkx6h8a1iqlw3638cxcv57ivxv4gw2gaig51my33j"))))
4652 (build-system meson-build-system)
4653 (native-inputs
4654 `(("gettext" ,gettext-minimal)
4655 ("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
4656 ("gobject-introspection" ,gobject-introspection)
4657 ("pkg-config" ,pkg-config)))
4658 (propagated-inputs
4659 `(("glib" ,glib))) ;according to json-glib-1.0.pc
4660 (home-page "https://wiki.gnome.org/Projects/JsonGlib")
4661 (synopsis "Compiler for the GObject type system")
4662 (description
4663 "JSON-GLib is a C library based on GLib providing serialization and
4664 deserialization support for the JavaScript Object Notation (JSON) format
4665 described by RFC 4627. It provides parser and generator GObject classes and
4666 various wrappers for the complex data types employed by JSON, such as arrays
4667 and objects.")
4668 (license license:lgpl2.1+)))
4669
4670 (define-public libxklavier
4671 (package
4672 (name "libxklavier")
4673 (version "5.4")
4674 (source (origin
4675 ;; Note: There's no tarball at ftp.gnome.org for this version.
4676 (method git-fetch)
4677 (uri (git-reference
4678 (url "https://anongit.freedesktop.org/git/libxklavier")
4679 (commit (string-append "libxklavier-" version))))
4680 (sha256
4681 (base32
4682 "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a"))
4683 (file-name (git-file-name name version))))
4684 (build-system gnu-build-system)
4685 (arguments
4686 '(#:configure-flags
4687 (list (string-append "--with-xkb-base="
4688 (assoc-ref %build-inputs "xkeyboard-config")
4689 "/share/X11/xkb")
4690 "--disable-xmodmap-support")))
4691 (native-inputs
4692 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
4693 ("gobject-introspection" ,gobject-introspection)
4694 ("pkg-config" ,pkg-config)
4695 ("gtk-doc" ,gtk-doc/stable)
4696 ("intltool" ,intltool)
4697 ("which" ,which)
4698 ("autoconf" ,autoconf)
4699 ("automake" ,automake)
4700 ("libtool" ,libtool)))
4701 (propagated-inputs
4702 ;; Required by libxklavier.pc.
4703 `(("glib" ,glib)
4704 ("libxml2" ,libxml2)))
4705 (inputs
4706 `(("iso-codes" ,iso-codes)
4707 ("libxi" ,libxi)
4708 ("libxkbfile" ,libxkbfile)
4709 ("xkbcomp" ,xkbcomp)
4710 ("xkeyboard-config" ,xkeyboard-config)))
4711 (home-page "https://www.freedesktop.org/wiki/Software/LibXklavier/")
4712 (synopsis "High-level API for X Keyboard Extension")
4713 (description
4714 "LibXklavier is a library providing high-level API for X Keyboard
4715 Extension known as XKB. This library is intended to support XFree86 and other
4716 commercial X servers. It is useful for creating XKB-related software (layout
4717 indicators etc).")
4718 (license license:lgpl2.0+)))
4719
4720 (define-public python2-rsvg
4721 ;; XXX: This is actually a subset of gnome-python-desktop.
4722 (package
4723 (name "python2-rsvg")
4724 (version "2.32.0")
4725 (source
4726 (origin
4727 (method url-fetch)
4728 (uri (string-append
4729 "mirror://gnome/sources/gnome-python-desktop/2.32/gnome-python-desktop-"
4730 version ".tar.bz2"))
4731 (sha256
4732 (base32
4733 "1s8f9rns9v7qlwjv9qh9lr8crp88dpzfm45hj47zc3ivpy0dbnq9"))))
4734 (build-system gnu-build-system)
4735 (native-inputs
4736 `(("pkg-config" ,pkg-config)))
4737 (inputs
4738 `(("python" ,python-2)
4739 ("python2-pygtk" ,python2-pygtk)
4740 ("librsvg" ,librsvg)))
4741 (home-page "https://www.gnome.org")
4742 (synopsis "Python bindings to librsvg")
4743 (description
4744 "This package provides Python bindings to librsvg, the SVG rendering
4745 library.")
4746
4747 ;; This is the license of the rsvg bindings. The license of each module
4748 ;; of gnome-python-desktop is given in 'COPYING'.
4749 (license license:lgpl2.1+)))
4750
4751 (define-public glib-networking
4752 (package
4753 (name "glib-networking")
4754 (version "2.62.2")
4755 (source (origin
4756 (method url-fetch)
4757 (uri (string-append "mirror://gnome/sources/glib-networking/"
4758 (version-major+minor version) "/"
4759 "glib-networking-" version ".tar.xz"))
4760 (sha256
4761 (base32
4762 "0i2mw75297ql72h47vyvff3hqa0kcmqybblj52fqrarb0kfbhi06"))))
4763 (build-system meson-build-system)
4764 (arguments
4765 `(#:configure-flags '("-Dlibproxy_support=false")))
4766 (native-inputs
4767 `(("pkg-config" ,pkg-config)
4768 ("intltool" ,intltool)))
4769 (inputs
4770 `(("glib" ,glib)
4771 ("gnutls" ,gnutls)
4772 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
4773 (home-page "https://www.gnome.org")
4774 (synopsis "Network-related GIO modules")
4775 (description
4776 "This package contains various network related extensions for the GIO
4777 library.")
4778 (license license:lgpl2.0+)))
4779
4780 (define-public rest
4781 (package
4782 (name "rest")
4783 (version "0.8.1")
4784 (source (origin
4785 (method url-fetch)
4786 (uri (string-append "mirror://gnome/sources/rest/"
4787 (version-major+minor version) "/"
4788 name "-" version ".tar.xz"))
4789 (sha256
4790 (base32
4791 "1j81bgqmd55s5lxyaxcplym9n6xywcs1cm9wmvafsg2xiv9sl4q5"))))
4792 (build-system gnu-build-system)
4793 (arguments
4794 '(#:tests? #f ; tests require internet connection
4795 #:configure-flags
4796 '("--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt")))
4797 (native-inputs
4798 `(("glib-mkenums" ,glib "bin")
4799 ("gobject-introspection" ,gobject-introspection)
4800 ("pkg-config" ,pkg-config)))
4801 (propagated-inputs
4802 ;; rest-0.7.pc refers to all these.
4803 `(("glib" ,glib)
4804 ("libsoup" ,libsoup)
4805 ("libxml2" ,libxml2)))
4806 (home-page "https://www.gtk.org/")
4807 (synopsis "RESTful web api query library")
4808 (description
4809 "This library was designed to make it easier to access web services that
4810 claim to be \"RESTful\". It includes convenience wrappers for libsoup and
4811 libxml to ease remote use of the RESTful API.")
4812 (license license:lgpl2.1+)))
4813
4814 (define-public libsoup
4815 (package
4816 (name "libsoup")
4817 (version "2.72.0")
4818 (source (origin
4819 (method url-fetch)
4820 (uri (string-append "mirror://gnome/sources/libsoup/"
4821 (version-major+minor version) "/"
4822 "libsoup-" version ".tar.xz"))
4823 (sha256
4824 (base32
4825 "11skbyw2pw32178q3h8pi7xqa41b2x4k6q4k9f75zxmh8s23y30p"))))
4826 (build-system meson-build-system)
4827 (outputs '("out" "doc"))
4828 (arguments
4829 `(#:modules ((guix build utils)
4830 (guix build meson-build-system)
4831 (ice-9 popen))
4832
4833 #:configure-flags '("-Dgtk_doc=true")
4834 #:phases
4835 (modify-phases %standard-phases
4836 (add-after 'unpack 'patch-docbook-xml
4837 (lambda* (#:key inputs #:allow-other-keys)
4838 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
4839 "/xml/dtd/docbook")))
4840 (substitute* (find-files "docs/reference")
4841 (("http://.*/docbookx\\.dtd")
4842 (string-append xmldoc "/docbookx.dtd")))
4843 #t)))
4844 (add-after 'unpack 'adjust-tests
4845 (lambda _
4846 ;; This test fails due to missing /etc/nsswitch.conf
4847 ;; in the build environment.
4848 (substitute* "tests/socket-test.c"
4849 ((".*/sockets/unconnected.*") ""))
4850
4851 ;; These fail because "subdomain.localhost" does not resolve in
4852 ;; the build environment.
4853 (substitute* "tests/hsts-test.c"
4854 ((".*/hsts/basic.*") "")
4855 ((".*/hsts/subdomains.*") "")
4856 ((".*/hsts/superdomain.*") "")
4857 ((".*/hsts/utf8-address.*") ""))
4858 (substitute* "tests/hsts-db-test.c"
4859 ((".*/hsts-db/subdomains.*") ""))
4860
4861 ;; Generate a self-signed certificate that has "localhost" as its
4862 ;; 'dnsName'. Failing to do that, and starting with GnuTLS
4863 ;; 3.5.12, tests such as "ssl-tests" fail:
4864 ;;
4865 ;; ERROR:ssl-test.c:406:do_tls_interaction_test: Unexpected status 6 Unacceptable TLS certificate (expected 200 OK)
4866 ;;
4867 ;; 'certtool' is interactive so we have to pipe it the answers.
4868 ;; Reported at <https://bugzilla.gnome.org/show_bug.cgi?id=784696>.
4869 (let ((pipe (open-output-pipe "certtool --generate-self-signed \
4870 --load-privkey tests/test-key.pem --outfile tests/test-cert.pem")))
4871 (for-each (lambda (line)
4872 (display line pipe)
4873 (newline pipe))
4874 '("" ;Common name
4875 "" ;UID
4876 "Guix" ;Organizational unit name
4877 "GNU" ;Organization name
4878 "" ;Locality name
4879 "" ;State or province
4880 "" ;Country
4881 "" ;subject's domain component (DC)
4882 "" ;E-mail
4883 "" ;serial number
4884 "-1" ;expiration time
4885 "N" ;belong to authority?
4886 "N" ;web client certificate?
4887 "N" ;IPsec IKE?
4888 "Y" ;web server certificate?
4889 "localhost" ;dnsName of subject
4890 "" ;dnsName of subject (end)
4891 "" ;URI of subject
4892 "127.0.0.1" ;IP address of subject
4893 "" ;signing?
4894 "" ;encryption (RSA)?
4895 "" ;data encryption?
4896 "" ;sign OCSP requests?
4897 "" ;sign code?
4898 "" ;time stamping?
4899 "" ;email protection?
4900 "" ;URI of the CRL distribution point
4901 "y" ;above info OK?
4902 ))
4903 (close-pipe pipe))
4904 #t))
4905 (add-after 'install 'move-doc
4906 (lambda* (#:key outputs #:allow-other-keys)
4907 (let ((out (assoc-ref outputs "out"))
4908 (doc (assoc-ref outputs "doc")))
4909 (mkdir-p (string-append doc "/share"))
4910 (copy-recursively (string-append out "/share/gtk-doc")
4911 (string-append doc "/share/gtk-doc"))
4912 (delete-file-recursively (string-append out "/share/gtk-doc"))
4913 #t))))))
4914 (native-inputs
4915 `(("docbook-xml" ,docbook-xml-4.1.2)
4916 ("glib:bin" ,glib "bin") ; for glib-mkenums
4917 ("gobject-introspection" ,gobject-introspection)
4918 ("gtk-doc" ,gtk-doc/stable)
4919 ("intltool" ,intltool)
4920 ("pkg-config" ,pkg-config)
4921 ("python" ,python-wrapper)
4922 ("vala" ,vala)
4923 ("php" ,php)
4924 ("curl" ,curl)
4925 ("gnutls" ,gnutls) ;for 'certtool'
4926 ("httpd" ,httpd)))
4927 (propagated-inputs
4928 ;; libsoup-2.4.pc refers to all of these (except where otherwise noted)
4929 `(("brotli" ,google-brotli)
4930 ("glib" ,glib)
4931 ("glib-networking" ,glib-networking) ; for GIO runtime modules
4932 ("libpsl" ,libpsl)
4933 ("libxml2" ,libxml2)
4934 ("sqlite" ,sqlite)
4935 ("zlib" ,zlib)))
4936 (inputs
4937 `(("mit-krb5" ,mit-krb5)
4938 ("ntlm_auth" ,samba))) ; For ntlm_auth support
4939 (home-page "https://wiki.gnome.org/Projects/libsoup")
4940 (synopsis "GLib-based HTTP Library")
4941 (description
4942 "LibSoup is an HTTP client/server library for GNOME. It uses GObjects
4943 and the GLib main loop, to integrate well with GNOME applications.")
4944 (license license:lgpl2.0+)))
4945
4946
4947 ;;; A minimal version of libsoup used to prevent a cycle with Inkscape.
4948 (define-public libsoup-minimal
4949 (package/inherit libsoup
4950 (name "libsoup-minimal")
4951 (outputs (delete "doc" (package-outputs libsoup)))
4952 (arguments
4953 (substitute-keyword-arguments (package-arguments libsoup)
4954 ((#:configure-flags configure-flags)
4955 `(delete "-Dgtk_doc=true" ,configure-flags))
4956 ((#:phases phases)
4957 `(modify-phases ,phases
4958 (delete 'move-doc)))))
4959 (native-inputs (alist-delete "gtk-doc" (package-native-inputs libsoup)))))
4960
4961 (define-public libsecret
4962 (package
4963 (name "libsecret")
4964 (version "0.20.4")
4965 (source (origin
4966 (method url-fetch)
4967 (uri (string-append
4968 "mirror://gnome/sources/libsecret/"
4969 (version-major+minor version) "/"
4970 "libsecret-" version ".tar.xz"))
4971 (sha256
4972 (base32
4973 "0a4xnfmraxchd9cq5ai66j12jv2vrgjmaaxz25kl031jvda4qnij"))))
4974 (build-system gnu-build-system)
4975 (outputs '("out" "doc"))
4976 (arguments
4977 `(#:tests? #f ; FIXME: Testing hangs.
4978 #:configure-flags
4979 (list (string-append "--with-html-dir="
4980 (assoc-ref %outputs "doc")
4981 "/share/gtk-doc/html"))))
4982 (native-inputs
4983 `(("gettext" ,gettext-minimal)
4984 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
4985 ("gobject-introspection" ,gobject-introspection)
4986 ("pkg-config" ,pkg-config)
4987 ("vala" ,vala)
4988 ("xsltproc" ,libxslt)))
4989 ;; These are needed for the tests.
4990 ;; FIXME: Add gjs once available.
4991 ;("dbus" ,dbus)
4992 ;("python2" ,python-2)
4993 ;("python2-dbus" ,python2-dbus)
4994 ;("python2-pygobject" ,python2-pygobject)
4995 ;("python2-pygobject-2" ,python2-pygobject-2)))
4996 (propagated-inputs
4997 `(("glib" ,glib))) ; required by libsecret-1.pc
4998 (inputs
4999 ;; The ‘build’ phase complains about missing docbook-xml-4.2 but adding it
5000 ;; doesn't seem to affect the build result.
5001 `(("docbook-xsl" ,docbook-xsl)
5002 ("libgcrypt" ,libgcrypt)
5003 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
5004 (home-page "https://wiki.gnome.org/Projects/Libsecret/")
5005 (synopsis "GObject bindings for \"Secret Service\" API")
5006 (description
5007 "Libsecret is a GObject based library for storing and retrieving passwords
5008 and other secrets. It communicates with the \"Secret Service\" using DBus.")
5009 (license license:lgpl2.1+)))
5010
5011 (define-public five-or-more
5012 (package
5013 (name "five-or-more")
5014 (version "3.32.2")
5015 (source
5016 (origin
5017 (method url-fetch)
5018 (uri (string-append "mirror://gnome/sources/five-or-more/"
5019 (version-major+minor version) "/"
5020 "five-or-more-" version ".tar.xz"))
5021 (sha256
5022 (base32 "19pf8wzbf3ciqf2k4bj9sddvyhckfd62x86pnqr6s8h4vn9jc6ii"))))
5023 (build-system meson-build-system)
5024 (arguments
5025 '(#:glib-or-gtk? #t
5026 #:phases
5027 (modify-phases %standard-phases
5028 (add-after 'unpack 'skip-gtk-update-icon-cache
5029 (lambda _
5030 (substitute* "meson_post_install.py"
5031 (("gtk-update-icon-cache") (which "true")))
5032 #t)))))
5033 (native-inputs
5034 `(("pkg-config" ,pkg-config)
5035 ("appstream-glib" ,appstream-glib)
5036 ("desktop-file-utils" ,desktop-file-utils)
5037 ("glib:bin" ,glib "bin") ; for glib-compile-resources
5038 ("intltool" ,intltool)
5039 ("itstool" ,itstool)
5040 ("vala" ,vala)
5041 ("xmllint" ,libxml2)))
5042 (inputs
5043 `(("gtk+" ,gtk+)
5044 ("libgnome-games-support" ,libgnome-games-support)
5045 ("librsvg" ,librsvg)))
5046 (home-page "https://wiki.gnome.org/Apps/Five%20or%20more")
5047 (synopsis "Logic puzzle game")
5048 (description "Five or More is a game where you try to align
5049 five or more objects of the same color and shape causing them to disappear.
5050 On every turn more objects will appear, until the board is full.
5051 Try to last as long as possible.")
5052 (license license:gpl2+)))
5053
5054 (define-public gnome-mines
5055 (package
5056 (name "gnome-mines")
5057 (version "3.36.1")
5058 (source
5059 (origin
5060 (method url-fetch)
5061 (uri (string-append "mirror://gnome/sources/" name "/"
5062 (version-major+minor version) "/"
5063 name "-" version ".tar.xz"))
5064 (sha256
5065 (base32 "0m2680r94nk61imym4x73j03jwfjd8cxm592m5ybiqdfdw6i723i"))))
5066 (build-system meson-build-system)
5067 (arguments
5068 '(#:glib-or-gtk? #t
5069 #:phases
5070 (modify-phases %standard-phases
5071 (add-after 'unpack 'skip-gtk-update-icon-cache
5072 (lambda _
5073 (substitute* "build-aux/meson_post_install.py"
5074 (("gtk-update-icon-cache") (which "true")))
5075 #t)))))
5076 (native-inputs
5077 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
5078 ("pkg-config" ,pkg-config)
5079 ("desktop-file-utils" ,desktop-file-utils)
5080 ("intltool" ,intltool)
5081 ("itstool" ,itstool)
5082 ("vala" ,vala)
5083 ("yelp" ,yelp)
5084 ("appstream-glib" ,appstream-glib)))
5085 (inputs
5086 `(("gtk+" ,gtk+)
5087 ("libgnome-games-support" ,libgnome-games-support)
5088 ("librsvg" ,librsvg)))
5089 (home-page "https://wiki.gnome.org/Apps/Mines")
5090 (synopsis "Minesweeper game")
5091 (description
5092 "Mines (previously gnomine) is a puzzle game where you locate mines
5093 floating in an ocean using only your brain and a little bit of luck.")
5094 (license license:gpl2+)))
5095
5096 (define-public gnome-multi-writer
5097 (package
5098 (name "gnome-multi-writer")
5099 (version "3.35.90")
5100 (source
5101 (origin
5102 (method url-fetch)
5103 (uri (string-append "mirror://gnome/sources/gnome-multi-writer/"
5104 (version-major+minor version) "/"
5105 "gnome-multi-writer-" version ".tar.xz"))
5106 (sha256
5107 (base32
5108 "07vgzjjdrxcp7h73z13h9agafxb4vmqx5i81bcfyw0ilw9kkdzmp"))))
5109 (build-system meson-build-system)
5110 (arguments
5111 '(#:glib-or-gtk? #t
5112 #:phases
5113 (modify-phases %standard-phases
5114 (add-after 'unpack 'skip-post-install
5115 (lambda _
5116 (substitute* "meson.build"
5117 (("meson.add_install_script" &) (string-append "# " &)))
5118 #t)))))
5119 (native-inputs
5120 `(("glib:bin" ,glib "bin")
5121 ("pkg-config" ,pkg-config)))
5122 (inputs
5123 `(("gtk+" ,gtk+)
5124 ("glib" ,glib) ; for gio
5125 ("gusb" ,gusb)
5126 ("udisks" ,udisks)
5127 ("libgudev" ,libgudev)
5128 ("libcanberra" ,libcanberra)
5129 ("polkit" ,polkit)))
5130 (home-page "https://wiki.gnome.org/Apps/MultiWriter")
5131 (synopsis "Write to multiple USB devices at once")
5132 (description
5133 "MultiWriter can be used to write an ISO file to multiple USB devices at
5134 once.")
5135 (license license:gpl2+)))
5136
5137 (define-public gnome-sudoku
5138 (package
5139 (name "gnome-sudoku")
5140 (version "3.34.1")
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 "025y85r4qqardivvwiwhbmgarziykdy224m8zlrq8b79zv82793b"))))
5150 (build-system meson-build-system)
5151 (arguments
5152 '(#:glib-or-gtk? #t
5153 #:phases
5154 (modify-phases %standard-phases
5155 (add-after 'unpack 'skip-gtk-update-icon-cache
5156 (lambda _
5157 (substitute* "build-aux/post_install.py"
5158 (("gtk-update-icon-cache") (which "true")))
5159 #t)))))
5160 (native-inputs
5161 `(("pkg-config" ,pkg-config)
5162 ("desktop-file-utils" ,desktop-file-utils)
5163 ("glib:bin" ,glib "bin") ; for glib-compile-resources
5164 ("intltool" ,intltool)
5165 ("itstool" ,itstool)
5166 ("vala" ,vala)
5167 ("xmllint" ,libxml2)))
5168 (inputs
5169 `(("gtk+" ,gtk+)
5170 ("json-glib" ,json-glib)
5171 ("libgee" ,libgee)
5172 ("librsvg" ,librsvg)
5173 ("qqwing" ,qqwing)))
5174 (home-page "https://wiki.gnome.org/Apps/Sudoku")
5175 (synopsis "Japanese logic game")
5176 (description
5177 "Sudoku is a Japanese logic game that exploded in popularity in 2005.
5178 GNOME Sudoku is meant to have an interface as simple and unobstrusive as
5179 possible while still providing features that make playing difficult Sudoku
5180 more fun.")
5181 (license license:gpl2+)))
5182
5183 (define-public gnome-terminal
5184 (package
5185 (name "gnome-terminal")
5186 (version "3.34.2")
5187 (source
5188 (origin
5189 (method url-fetch)
5190 (uri (string-append "mirror://gnome/sources/" name "/"
5191 (version-major+minor version) "/"
5192 name "-" version ".tar.xz"))
5193 (sha256
5194 (base32
5195 "0gc004f9b5k94gkdanmqjz3wqgnpny0l3nqm8zd19h4f0ps27mrv"))))
5196 (build-system glib-or-gtk-build-system)
5197 (arguments
5198 '(#:configure-flags
5199 (list "--disable-migration" "--disable-search-provider"
5200 "--without-nautilus-extension")
5201 #:phases
5202 (modify-phases %standard-phases
5203 (add-before 'configure 'patch-/bin/true
5204 (lambda _
5205 (substitute* "configure"
5206 (("/bin/true") (which "true"))))))))
5207 (native-inputs
5208 `(("pkg-config" ,pkg-config)
5209 ("desktop-file-utils" ,desktop-file-utils)
5210 ("intltool" ,intltool)
5211 ("itstool" ,itstool)
5212 ("xmllint" ,libxml2)))
5213 (propagated-inputs
5214 `(("dconf" ,dconf)))
5215 (inputs
5216 `(("gtk+" ,gtk+)
5217 ("vte" ,vte)
5218 ("gnutls" ,gnutls)
5219 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5220 ("util-linux" ,util-linux "lib")
5221 ("vala" ,vala)))
5222 (home-page "https://wiki.gnome.org/Apps/Terminal")
5223 (synopsis "Terminal emulator")
5224 (description
5225 "GNOME Terminal is a terminal emulator application for accessing a
5226 UNIX shell environment which can be used to run programs available on
5227 your system.
5228
5229 It supports several profiles, multiple tabs and implements several
5230 keyboard shortcuts.")
5231 (license license:gpl3+)))
5232
5233 (define-public colord
5234 (package
5235 (name "colord")
5236 (version "1.4.5")
5237 (source
5238 (origin
5239 (method url-fetch)
5240 (uri (string-append "https://www.freedesktop.org/software/colord/releases/"
5241 "colord-" version ".tar.xz"))
5242 (sha256
5243 (base32 "05sydi6qqqx1rrqwnga1vbg9srkf89wdcfw5w4p4m7r37m2flx5p"))))
5244 (build-system meson-build-system)
5245 (arguments
5246 '(;; FIXME: One test fails:
5247 ;; /colord/icc-store (in lib/colord/colord-self-test-private):
5248 ;; Incorrect content type for /tmp/colord-vkve/already-exists.icc, got
5249 ;; application/x-zerosize
5250 #:tests? #f
5251 #:glib-or-gtk? #t
5252 #:configure-flags (list "-Dlocalstatedir=/var"
5253 ;; No dep on systemd.
5254 "-Dsystemd=false"
5255 ;; Wants to install to global completion dir;
5256 ;; punt.
5257 "-Dbash_completion=false"
5258 "-Ddaemon_user=colord"
5259 "-Dsane=true"
5260 "-Dvapi=true"
5261 ;; Requires spotread.
5262 "-Dargyllcms_sensor=false"
5263 ;; TODO: Requires docbook2x.
5264 "-Dman=false")
5265 #:phases
5266 (modify-phases %standard-phases
5267 (add-before 'configure 'patch-build-system
5268 (lambda* (#:key outputs #:allow-other-keys)
5269 (substitute* "rules/meson.build"
5270 (("udev.get_pkgconfig_variable\\('udevdir'\\)")
5271 (string-append "'" (assoc-ref outputs "out") "/lib/udev'")))
5272 #t))
5273 (add-before 'configure 'set-sqlite3-file-name
5274 (lambda* (#:key inputs #:allow-other-keys)
5275 ;; "colormgr dump" works by invoking the "sqlite3" command.
5276 ;; Record its absolute file name.
5277 (let ((sqlite (assoc-ref inputs "sqlite")))
5278 (substitute* "client/cd-util.c"
5279 (("\"sqlite3\"")
5280 (string-append "\"" sqlite "/bin/sqlite3\"")))
5281 #t))))))
5282 (native-inputs
5283 `(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
5284 ("gettext" ,gettext-minimal)
5285 ("gobject-introspection" ,gobject-introspection)
5286 ("gtk-doc" ,gtk-doc/stable)
5287 ("pkg-config" ,pkg-config)
5288 ("vala" ,vala)))
5289 (propagated-inputs
5290 ;; colord.pc refers to all these.
5291 `(("glib" ,glib)
5292 ("lcms" ,lcms)
5293 ("udev" ,eudev)))
5294 (inputs
5295 `(("dbus-glib" ,dbus-glib)
5296 ("gusb" ,gusb)
5297 ("libgudev" ,libgudev)
5298 ("libusb" ,libusb)
5299 ("polkit" ,polkit)
5300 ("python" ,python-wrapper)
5301 ("sqlite" ,sqlite)
5302 ("sane-backends" ,sane-backends)))
5303 (home-page "https://www.freedesktop.org/software/colord/")
5304 (synopsis "Color management service")
5305 (description "Colord is a system service that makes it easy to manage,
5306 install and generate color profiles to accurately color manage input and
5307 output devices.")
5308 (license license:gpl2+)))
5309
5310 (define-public geoclue
5311 (package
5312 (name "geoclue")
5313 (version "2.5.7")
5314 (source
5315 (origin
5316 (method url-fetch)
5317 (uri
5318 (string-append "https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/"
5319 version "/geoclue-" version ".tar.bz2"))
5320 (sha256
5321 (base32 "09ww26a76kanldhgwnn5sqy9ly2940k45zpp68spykkv2zjdpivc"))
5322 (patches (search-patches "geoclue-config.patch"))))
5323 (build-system meson-build-system)
5324 (arguments
5325 '(#:configure-flags (list "-Dbus-srv-user=geoclue")))
5326 (native-inputs
5327 `(("pkg-config" ,pkg-config)
5328 ("gobject-introspection" ,gobject-introspection)
5329 ("modem-manager" ,modem-manager)
5330 ("libnotify" ,libnotify)
5331 ("gtk-doc" ,gtk-doc/stable)
5332 ("intltool" ,intltool)))
5333 (inputs
5334 `(("avahi" ,avahi)
5335 ("glib:bin" ,glib "bin")
5336 ("glib-networking" ,glib-networking)
5337 ("json-glib" ,json-glib)
5338 ("libsoup" ,libsoup)))
5339 (home-page "https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home")
5340 (synopsis "Geolocation service")
5341 (description "Geoclue is a D-Bus service that provides location
5342 information. The primary goal of the Geoclue project is to make creating
5343 location-aware applications as simple as possible, while the secondary goal is
5344 to ensure that no application can access location information without explicit
5345 permission from user.")
5346 (license license:gpl2+)))
5347
5348 (define-public geocode-glib
5349 (package
5350 (name "geocode-glib")
5351 (version "3.26.2")
5352 (source (origin
5353 (method url-fetch)
5354 (uri (string-append "mirror://gnome/sources/geocode-glib/"
5355 (version-major+minor version) "/"
5356 "geocode-glib-" version ".tar.xz"))
5357 (sha256
5358 (base32
5359 "1l8g0f13xgkrk335afr9w8k46mziwb2jnyhl07jccl5yl37q9zh1"))))
5360 (build-system meson-build-system)
5361 (arguments
5362 `(#:phases
5363 (modify-phases %standard-phases
5364 ;; The tests require a bunch of locales.
5365 (add-before 'check 'set-locales
5366 (lambda* (#:key inputs #:allow-other-keys)
5367 (setenv "GUIX_LOCPATH"
5368 (string-append (assoc-ref inputs "glibc-locales")
5369 "/lib/locale"))
5370 #t)))))
5371 (native-inputs
5372 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5373 ("glibc-locales" ,glibc-locales) ; for tests
5374 ("gettext" ,gettext-minimal)
5375 ("gobject-introspection" ,gobject-introspection)
5376 ("gtk-doc" ,gtk-doc/stable)
5377 ("pkg-config" ,pkg-config)
5378 ("json-glib" ,json-glib)))
5379 (propagated-inputs
5380 ;; geocode-glib-1.0.pc refers to GIO.
5381 `(("glib" ,glib)))
5382 (inputs
5383 `(("libsoup" ,libsoup)))
5384 (home-page "https://github.com/GNOME/geocode-glib/")
5385 (synopsis "Geocoding and reverse-geocoding library")
5386 (description
5387 "geocode-glib is a convenience library for geocoding (finding longitude,
5388 and latitude from an address) and reverse geocoding (finding an address from
5389 coordinates) using the Nominatim service. geocode-glib caches requests for
5390 faster results and to avoid unnecessary server load.")
5391 (license license:lgpl2.0+)))
5392
5393 (define-public upower
5394 (package
5395 (name "upower")
5396 (version "0.99.11")
5397 (source
5398 (origin
5399 (method git-fetch)
5400 (uri (git-reference
5401 (url "https://gitlab.freedesktop.org/upower/upower")
5402 (commit (string-append "UPOWER_"
5403 (string-map (match-lambda (#\. #\_)
5404 (chr chr))
5405 version)))))
5406 (file-name (git-file-name name version))
5407 (sha256
5408 (base32 "0frs6ywvsz48d0zfviy40h6mj0icfc1q21hn7p99nchps39z85f8"))
5409 (patches (search-patches "upower-builddir.patch"))
5410 (modules '((guix build utils)))
5411 (snippet
5412 '(begin
5413 ;; Upstream commit
5414 ;; <https://cgit.freedesktop.org/upower/commit/?id=18457c99b68786cd729b315723d680e6860d9cfa>
5415 ;; moved 'dbus-1/system.d' from etc/ to share/. However,
5416 ;; 'dbus-configuration-directory' in (gnu services dbus)
5417 ;; expects it in etc/. Thus, move it back to its previous
5418 ;; location.
5419 (substitute* "src/Makefile.am"
5420 (("^dbusconfdir =.*$")
5421 "dbusconfdir = $(sysconfdir)/dbus-1/system.d\n"))
5422 #t))))
5423 (build-system glib-or-gtk-build-system)
5424 (arguments
5425 '(#:phases
5426 (modify-phases %standard-phases
5427 (add-before 'check 'pre-check
5428 (lambda* (#:key inputs #:allow-other-keys)
5429 (let ((umockdev (string-append (assoc-ref inputs "umockdev")
5430 "/lib")))
5431 (setenv "LD_LIBRARY_PATH" umockdev))
5432 #t)))
5433 #:configure-flags (list "--localstatedir=/var"
5434 (string-append "--with-udevrulesdir="
5435 (assoc-ref %outputs "out")
5436 "/lib/udev/rules.d"))))
5437 (native-inputs
5438 `(("autoconf" ,autoconf)
5439 ("automake" ,automake)
5440 ("gobject-introspection" ,gobject-introspection)
5441 ("gtk-doc" ,gtk-doc)
5442 ("intltool" ,intltool)
5443 ("libtool" ,libtool)
5444 ("pkg-config" ,pkg-config)
5445 ("python" ,python)
5446 ("which" ,which) ; for ./autogen.sh
5447
5448 ;; For tests.
5449 ("python-dbus" ,python-dbus)
5450 ("python-dbusmock" ,python-dbusmock)
5451 ("python-pygobject" ,python-pygobject)
5452 ("umockdev" ,umockdev)
5453
5454 ;; For man pages.
5455 ("docbook-xsl" ,docbook-xsl)
5456 ("libxslt" ,libxslt) ; for 'xsltproc'
5457 ("libxml2" ,libxml2))) ; for 'XML_CATALOG_FILES'
5458 (inputs
5459 `(("dbus-glib" ,dbus-glib)
5460 ("libgudev" ,libgudev)
5461 ("libusb" ,libusb)))
5462 (propagated-inputs
5463 ;; In Requires of upower-glib.pc.
5464 `(("glib" ,glib)))
5465 (home-page "https://upower.freedesktop.org/")
5466 (synopsis "System daemon for managing power devices")
5467 (description
5468 "UPower is an abstraction for enumerating power devices,
5469 listening to device events and querying history and statistics. Any
5470 application or service on the system can access the org.freedesktop.UPower
5471 service via the system message bus.")
5472 (license license:gpl2+)))
5473
5474 (define-public libgweather
5475 (package
5476 (name "libgweather")
5477 (version "3.34.0")
5478 (source (origin
5479 (method url-fetch)
5480 (uri (string-append "mirror://gnome/sources/" name "/"
5481 (version-major+minor version) "/"
5482 name "-" version ".tar.xz"))
5483 (sha256
5484 (base32
5485 "1fgiqswkhiaijanml3mb16ajn5aanrk7x6yiwagp9n9rssam6902"))))
5486 (build-system meson-build-system)
5487 (arguments
5488 `(#:tests? #f ; one of two tests requires network access
5489 #:configure-flags
5490 `(,(string-append "-Dzoneinfo_dir="
5491 (assoc-ref %build-inputs "tzdata")
5492 "/share/zoneinfo"))))
5493 (native-inputs
5494 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5495 ("gobject-introspection" ,gobject-introspection)
5496 ("pkg-config" ,pkg-config)
5497 ("vala" ,vala)
5498 ("intltool" ,intltool)))
5499 (propagated-inputs
5500 ;; gweather-3.0.pc refers to GTK+, GDK-Pixbuf, GLib/GObject, libxml, and
5501 ;; libsoup.
5502 `(("gtk+" ,gtk+)
5503 ("gdk-pixbuf" ,gdk-pixbuf)
5504 ("libxml2" ,libxml2)
5505 ("libsoup" ,libsoup)
5506 ("geocode-glib" ,geocode-glib)))
5507 (inputs
5508 `(("tzdata" ,tzdata)))
5509 (home-page "https://wiki.gnome.org/action/show/Projects/LibGWeather")
5510 (synopsis "Location, time zone, and weather library for GNOME")
5511 (description
5512 "libgweather is a library to access weather information from online
5513 services for numerous locations.")
5514 (license license:gpl2+)))
5515
5516 (define-public gnome-settings-daemon
5517 (package
5518 (name "gnome-settings-daemon")
5519 (version "3.34.1")
5520 (source
5521 (origin
5522 (method url-fetch)
5523 (uri (string-append "mirror://gnome/sources/" name "/"
5524 (version-major+minor version) "/"
5525 name "-" version ".tar.xz"))
5526 (sha256
5527 (base32
5528 "07y1gbicz0pbxmdgwrdzyc4byy30wfwpbqgvnx27gnpqmc5s50cr"))
5529 (patches (search-patches "gnome-settings-daemon-gc.patch"))))
5530 (build-system meson-build-system)
5531 (arguments
5532 `(#:glib-or-gtk? #t
5533 #:configure-flags
5534 (list (string-append "-Dudev_dir="
5535 (assoc-ref %outputs "out")
5536 "/lib/udev/rules.d/")
5537 "-Dsystemd=false"
5538 ;; Otherwise, the RUNPATH will lack the final path component.
5539 (string-append "-Dc_link_args=-Wl,-rpath="
5540 (assoc-ref %outputs "out")
5541 "/lib/gnome-settings-daemon-3.0"))
5542
5543 #:phases (modify-phases %standard-phases
5544 (add-before 'configure 'set-baobab-file-name
5545 (lambda* (#:key inputs #:allow-other-keys)
5546 ;; Hard-code the file name of Baobab instead of looking
5547 ;; it up in $PATH. This ensures users get the "Examine"
5548 ;; button in the low disk space notification of GDM even
5549 ;; if they don't have GNOME in their main profile.
5550 (let ((baobab (assoc-ref inputs "baobab")))
5551 (substitute* "plugins/housekeeping/gsd-disk-space.c"
5552 (("g_find_program_in_path \\(DISK_SPACE_ANALYZER\\)")
5553 (string-append "g_strdup (\"" baobab
5554 "/bin/baobab\")")))
5555 #t))))
5556
5557 ;; Color management test can't reach the colord system service.
5558 #:tests? #f))
5559 (native-inputs
5560 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5561 ("pkg-config" ,pkg-config)
5562 ("intltool" ,intltool)
5563 ("xsltproc" ,libxslt)
5564 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
5565 ("docbook-xml" ,docbook-xml-4.2)
5566 ("docbook-xsl" ,docbook-xsl)))
5567 (inputs
5568 `(("alsa-lib" ,alsa-lib)
5569 ("baobab" ,baobab)
5570 ("colord" ,colord)
5571 ("libgudev" ,libgudev)
5572 ("upower" ,upower)
5573 ("polkit" ,polkit)
5574 ("pulseaudio" ,pulseaudio)
5575 ("libcanberra" ,libcanberra)
5576 ("libx11" ,libx11)
5577 ("libxtst" ,libxtst)
5578 ("lcms" ,lcms)
5579 ("libnotify" ,libnotify)
5580 ("geoclue" ,geoclue)
5581 ("geocode-glib" ,geocode-glib)
5582 ("libgweather" ,libgweather)
5583 ("gnome-desktop" ,gnome-desktop)
5584 ("nss" ,nss)
5585 ("cups" ,cups)
5586 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5587 ("libwacom" ,libwacom)
5588 ("librsvg" ,librsvg)
5589 ("xf86-input-wacom" ,xf86-input-wacom)
5590 ("wayland" ,wayland)
5591 ("network-manager" ,network-manager)
5592 ("gcr" ,gcr)
5593 ("modem-manager" ,modem-manager)))
5594 (home-page "https://www.gnome.org")
5595 (synopsis "GNOME settings daemon")
5596 (description
5597 "This package contains the daemon responsible for setting the various
5598 parameters of a GNOME session and the applications that run under it. It
5599 handles settings such keyboard layout, shortcuts, and accessibility, clipboard
5600 settings, themes, mouse settings, and startup of other daemons.")
5601 (license license:gpl2+)))
5602
5603 (define-public totem-pl-parser
5604 (package
5605 (name "totem-pl-parser")
5606 (version "3.26.5")
5607 (source (origin
5608 (method url-fetch)
5609 (uri (string-append "mirror://gnome/sources/totem-pl-parser/"
5610 (version-major+minor version) "/"
5611 "totem-pl-parser-" version ".tar.xz"))
5612 (sha256
5613 (base32
5614 "132jihnf51zs98yjkc6jxyqib4f3dawpjm17g4bj4j78y93dww2k"))))
5615 (build-system meson-build-system)
5616 (arguments
5617 ;; FIXME: Tests require gvfs.
5618 `(#:tests? #f))
5619 (native-inputs
5620 `(("intltool" ,intltool)
5621 ("glib" ,glib "bin")
5622 ("gobject-introspection" ,gobject-introspection)
5623 ("pkg-config" ,pkg-config)))
5624 (propagated-inputs
5625 `(("glib" ,glib)
5626 ("gmime" ,gmime)
5627 ("libarchive" ,libarchive)
5628 ("libgcrypt" ,libgcrypt)
5629 ("libxml2" ,libxml2)))
5630 (inputs
5631 `(("libsoup" ,libsoup)))
5632 (home-page "https://projects.gnome.org/totem")
5633 (synopsis "Library to parse and save media playlists for GNOME")
5634 (description "Totem-pl-parser is a GObjects-based library to parse and save
5635 playlists in a variety of formats.")
5636 (license license:lgpl2.0+)))
5637
5638 (define-public aisleriot
5639 (package
5640 (name "aisleriot")
5641 (version "3.22.9")
5642 (source (origin
5643 (method url-fetch)
5644 (uri (string-append "mirror://gnome/sources/aisleriot/"
5645 (version-major+minor version) "/"
5646 "aisleriot-" version ".tar.xz"))
5647 (sha256
5648 (base32
5649 "0yzdh9cw5cjjgvfh75bihl968czlgfmpmn1z0fdk88sgvpjgzwji"))))
5650 (build-system glib-or-gtk-build-system)
5651 (arguments
5652 '(#:configure-flags
5653 '("--with-platform=gtk-only"
5654 "--with-card-theme-formats=svg")))
5655 (native-inputs
5656 `(("desktop-file-utils" ,desktop-file-utils)
5657 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5658 ("intltool" ,intltool)
5659 ("itstool" ,itstool)
5660 ("pkg-config" ,pkg-config)
5661 ("xmllint" ,libxml2)))
5662 (inputs
5663 `(("gtk+" ,gtk+)
5664 ("guile" ,guile-2.2)
5665 ("libcanberra" ,libcanberra)
5666 ("librsvg" ,librsvg)))
5667 (home-page "https://wiki.gnome.org/Apps/Aisleriot")
5668 (synopsis "Solitaire card games")
5669 (description
5670 "Aisleriot (also known as Solitaire or sol) is a collection of card games
5671 which are easy to play with the aid of a mouse.")
5672 (license license:gpl3+)))
5673
5674 (define-public amtk
5675 (package
5676 (name "amtk")
5677 (version "5.0.2")
5678 (source (origin
5679 (method url-fetch)
5680 (uri (string-append "mirror://gnome/sources/amtk/"
5681 (version-major+minor version) "/"
5682 "amtk-" version ".tar.xz"))
5683 (sha256
5684 (base32
5685 "11jgz2i9wjzv4alrxl1qyxiapb52w7vs5ygfgsw0qgdap8gqkk3i"))))
5686 (build-system gnu-build-system)
5687 (arguments
5688 '(#:configure-flags '("--enable-gtk-doc")))
5689 (native-inputs
5690 `(("gobject-introspection" ,gobject-introspection)
5691 ("glib:bin" ,glib "bin") ; for glib-mkenums
5692 ("gtk-doc" ,gtk-doc/stable)
5693 ("pkg-config" ,pkg-config)))
5694 (inputs
5695 `(("glib" ,glib)
5696 ("gtk+" ,gtk+)))
5697 (home-page "https://wiki.gnome.org/Projects/Amtk")
5698 (synopsis "Actions, Menus and Toolbars Kit for GTK+ applications")
5699 (description
5700 "Amtk is the acronym for @acronym{Amtk, Actions Menus and Toolbars Kit}.
5701 It is a basic GtkUIManager replacement based on GAction. It is suitable for
5702 both a traditional UI or a modern UI with a GtkHeaderBar.")
5703 (license license:lgpl2.1+)))
5704
5705 (define-public devhelp
5706 (package
5707 (name "devhelp")
5708 (version "3.34.0")
5709 (source (origin
5710 (method url-fetch)
5711 (uri (string-append "mirror://gnome/sources/" name "/"
5712 (version-major+minor version) "/"
5713 name "-" version ".tar.xz"))
5714 (sha256
5715 (base32
5716 "0zpmn6fgkgiayvn4diia5df0s6s7dqrdnp3nrvpavsmgn0vhb4pg"))))
5717 (build-system meson-build-system)
5718 (arguments
5719 '(#:glib-or-gtk? #t
5720 #:phases
5721 (modify-phases %standard-phases
5722 (add-after 'unpack 'skip-gtk-update-icon-cache
5723 ;; Don't create 'icon-theme.cache'.
5724 (lambda _
5725 (substitute* "meson_post_install.py"
5726 (("gtk-update-icon-cache") "true"))
5727 #t)))))
5728 (native-inputs
5729 `(("intltool" ,intltool)
5730 ("itstool" ,itstool)
5731 ("gobject-introspection" ,gobject-introspection)
5732 ("glib:bin" ,glib "bin") ; for glib-mkmenus
5733 ("pkg-config" ,pkg-config)))
5734 (inputs
5735 `(("amtk" ,amtk)
5736 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5737 ("webkitgtk" ,webkitgtk)))
5738 (home-page "https://wiki.gnome.org/Apps/Devhelp")
5739 (synopsis "API documentation browser for GNOME")
5740 (description
5741 "Devhelp is an API documentation browser for GTK+ and GNOME. It works
5742 natively with GTK-Doc (the API reference system developed for GTK+ and used
5743 throughout GNOME for API documentation).")
5744 (license license:gpl2+)))
5745
5746 (define-public cogl
5747 (package
5748 (name "cogl")
5749 (version "1.22.8")
5750 (source
5751 (origin
5752 (method url-fetch)
5753 (uri (string-append "mirror://gnome/sources/cogl/"
5754 (version-major+minor version) "/"
5755 "cogl-" version ".tar.xz"))
5756 (sha256
5757 (base32 "0nfph4ai60ncdx7hy6hl1i1cmp761jgnyjfhagzi0iqq36qb41d8"))))
5758 ;; NOTE: mutter exports a bundled fork of cogl, so when making changes to
5759 ;; cogl, corresponding changes may be appropriate in mutter as well.
5760 (build-system gnu-build-system)
5761 (native-inputs
5762 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5763 ("gobject-introspection" ,gobject-introspection)
5764 ("xorg-server" ,xorg-server-for-tests)
5765 ("pkg-config" ,pkg-config)))
5766 (propagated-inputs
5767 `(("glib" ,glib)
5768 ("gdk-pixbuf" ,gdk-pixbuf)
5769 ("libx11" ,libx11)
5770 ("libxext" ,libxext)
5771 ("libxfixes" ,libxfixes)
5772 ("libxdamage" ,libxdamage)
5773 ("libxcomposite" ,libxcomposite)
5774 ("libxrandr" ,libxrandr)))
5775 (inputs
5776 `(("mesa" ,mesa)
5777 ("cairo" ,cairo)
5778 ("pango" ,pango)
5779 ("gstreamer" ,gstreamer)
5780 ("gst-plugins-base" ,gst-plugins-base)
5781 ("wayland" ,wayland)))
5782 (arguments
5783 `(#:disallowed-references (,xorg-server-for-tests)
5784 #:configure-flags (list "--enable-cogl-gst"
5785 "--enable-wayland-egl-platform"
5786 "--enable-wayland-egl-server"
5787
5788 ;; Arrange to pass an absolute file name to
5789 ;; dlopen for libGL.so.
5790 (string-append "--with-gl-libname="
5791 (assoc-ref %build-inputs "mesa")
5792 "/lib/libGL.so"))
5793 #:phases
5794 (modify-phases %standard-phases
5795 (add-after 'unpack 'fix-build-with-mesa-20
5796 (lambda _
5797 ;; Work around a problem with Mesa 20 where some macros used by
5798 ;; Cogl went missing from eglext.h. This can likely be removed
5799 ;; for newer versions of Cogl or Mesa.
5800 ;; https://gitlab.gnome.org/GNOME/cogl/-/merge_requests/19
5801 (substitute* '("configure"
5802 "cogl/winsys/cogl-winsys-egl-kms.c")
5803 (("#include <EGL/eglext.h>" all)
5804 (string-append all "\n#include <EGL/eglmesaext.h>\n")))
5805 #t))
5806 (add-before 'check 'start-xorg-server
5807 (lambda* (#:key tests? inputs #:allow-other-keys)
5808 (if tests?
5809 (begin
5810 ;; The test suite requires a running X server.
5811 (system (format #f "~a/bin/Xvfb :1 +extension GLX &"
5812 (assoc-ref inputs "xorg-server")))
5813 (setenv "DISPLAY" ":1")
5814 #t)
5815 (format #t "test suite not run~%"))
5816 #t)))))
5817 (home-page "https://www.cogl3d.org")
5818 (synopsis "Object oriented GL/GLES Abstraction/Utility Layer")
5819 (description
5820 "Cogl is a small library for using 3D graphics hardware to draw pretty
5821 pictures. The API departs from the flat state machine style of OpenGL and is
5822 designed to make it easy to write orthogonal components that can render
5823 without stepping on each others toes.")
5824 (license (list license:expat ; most of the code
5825 license:bsd-3 ; cogl/cogl-point-in-poly.c
5826 license:sgifreeb2.0 ; cogl-path/tesselator/
5827 license:asl2.0)))) ; examples/android/
5828
5829 (define-public clutter
5830 (package
5831 (name "clutter")
5832 (version "1.26.2")
5833 (source
5834 (origin
5835 (method url-fetch)
5836 (uri (string-append "mirror://gnome/sources/" name "/"
5837 (version-major+minor version) "/"
5838 name "-" version ".tar.xz"))
5839 (sha256
5840 (base32
5841 "0mif1qnrpkgxi43h7pimim6w6zwywa16ixcliw0yjm9hk0a368z7"))))
5842 ;; NOTE: mutter exports a bundled fork of clutter, so when making changes
5843 ;; to clutter, corresponding changes may be appropriate in mutter as well.
5844 (build-system gnu-build-system)
5845 (outputs '("out"
5846 "doc")) ;9 MiB of gtk-doc HTML pages
5847 (native-inputs
5848 `(("glib:bin" ,glib "bin") ; for glib-genmarshal
5849 ("gobject-introspection" ,gobject-introspection)
5850 ("pkg-config" ,pkg-config)
5851 ("xsltproc" ,libxslt)))
5852 (propagated-inputs
5853 `(("cogl" ,cogl)
5854 ("cairo" ,cairo)
5855 ("atk" ,atk)
5856 ("gtk+" ,gtk+)
5857 ("json-glib" ,json-glib)
5858 ("glib" ,glib)
5859 ("libxcomposite" ,libxcomposite)
5860 ("libxdamage" ,libxdamage)
5861 ("libxext" ,libxext)
5862 ("xinput" ,xinput)))
5863 (inputs
5864 `(("libxkbcommon" ,libxkbcommon)
5865 ("udev" ,eudev)))
5866 (arguments
5867 `(#:configure-flags (list "--enable-x11-backend=yes"
5868
5869 ;; This produces share/doc/{clutter,cally}.
5870 (string-append "--with-html-dir="
5871 (assoc-ref %outputs "doc")
5872 "/share/doc"))
5873 ;; XXX FIXME: Get test suite working. It would probably fail in the
5874 ;; same way the cogl tests fail, since clutter is based on cogl.
5875 #:tests? #f))
5876 (home-page "http://www.clutter-project.org")
5877 (synopsis "OpenGL-based interactive canvas library")
5878 (description
5879 "Clutter is an OpenGL-based interactive canvas library, designed for
5880 creating fast, mainly 2D single window applications such as media box UIs,
5881 presentations, kiosk style applications and so on.")
5882 (license license:lgpl2.0+)))
5883
5884 (define-public clutter-gtk
5885 (package
5886 (name "clutter-gtk")
5887 (version "1.8.4")
5888 (source
5889 (origin
5890 (method url-fetch)
5891 (uri (string-append "mirror://gnome/sources/" name "/"
5892 (version-major+minor version) "/"
5893 name "-" version ".tar.xz"))
5894 (sha256
5895 (base32
5896 "01ibniy4ich0fgpam53q252idm7f4fn5xg5qvizcfww90gn9652j"))))
5897 (build-system gnu-build-system)
5898 (native-inputs
5899 `(("pkg-config" ,pkg-config)
5900 ("gobject-introspection" ,gobject-introspection)))
5901 (propagated-inputs
5902 ;; clutter-gtk.pc refers to all these.
5903 `(("clutter" ,clutter)
5904 ("gtk+" ,gtk+)))
5905 (home-page "http://www.clutter-project.org")
5906 (synopsis "OpenGL-based interactive canvas library GTK+ widget")
5907 (description
5908 "Clutter is an OpenGL-based interactive canvas library, designed for
5909 creating fast, mainly 2D single window applications such as media box UIs,
5910 presentations, kiosk style applications and so on.")
5911 (license license:lgpl2.0+)))
5912
5913 (define-public clutter-gst
5914 (package
5915 (name "clutter-gst")
5916 (version "3.0.27")
5917 (source
5918 (origin
5919 (method url-fetch)
5920 (uri (string-append "mirror://gnome/sources/clutter-gst/"
5921 (version-major+minor version) "/"
5922 "clutter-gst-" version ".tar.xz"))
5923 (sha256
5924 (base32 "17czmpl92dzi4h3rn5rishk015yi3jwiw29zv8qan94xcmnbssgy"))))
5925 (build-system gnu-build-system)
5926 (native-inputs
5927 `(("glib:bin" ,glib "bin") ; for glib-mkenums
5928 ("pkg-config" ,pkg-config)
5929 ("gobject-introspection" ,gobject-introspection)))
5930 (inputs
5931 `(("clutter" ,clutter)
5932 ("gstreamer" ,gstreamer)
5933 ("gst-plugins-base" ,gst-plugins-base)))
5934 (home-page "http://www.clutter-project.org")
5935 (synopsis "Integration library for using GStreamer with Clutter")
5936 (description
5937 "Clutter-Gst is an integration library for using GStreamer with Clutter.
5938 It provides a GStreamer sink to upload frames to GL and an actor that
5939 implements the ClutterGstPlayer interface using playbin. Clutter is an
5940 OpenGL-based interactive canvas library.")
5941 (license license:lgpl2.0+)))
5942
5943 (define-public libchamplain
5944 (package
5945 (name "libchamplain")
5946 (version "0.12.16")
5947 (source (origin
5948 (method url-fetch)
5949 (uri (string-append
5950 "mirror://gnome/sources/libchamplain/0.12/libchamplain-"
5951 version ".tar.xz"))
5952 (sha256
5953 (base32
5954 "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja"))))
5955 (build-system gnu-build-system)
5956 (arguments '(#:configure-flags '("--enable-vala")))
5957 (native-inputs
5958 `(("gobject-introspection" ,gobject-introspection)
5959 ("pkg-config" ,pkg-config)
5960 ("vala" ,vala)))
5961 (propagated-inputs
5962 `(("libsoup" ,libsoup)
5963 ("sqlite" ,sqlite)
5964 ("clutter" ,clutter)
5965 ("clutter-gtk" ,clutter-gtk)
5966 ("glib:bin" ,glib "bin") ;glib-mkenums, etc.
5967 ("cairo" ,cairo)
5968 ("gtk+3" ,gtk+)
5969 ("glib" ,glib)))
5970 (home-page "https://projects.gnome.org/libchamplain/")
5971 (synopsis "C library providing a ClutterActor to display maps")
5972 (description
5973 "libchamplain is a C library providing a ClutterActor to display maps.
5974 It also provides a Gtk+ widget to display maps in Gtk+ applications. Python
5975 and Perl bindings are also available. It supports numerous free map sources
5976 such as OpenStreetMap, OpenCycleMap, OpenAerialMap, and Maps for free.")
5977 (license license:lgpl2.1+)))
5978
5979 (define-public gom
5980 (package
5981 (name "gom")
5982 (version "0.3.2")
5983 (source
5984 (origin
5985 (method url-fetch)
5986 (uri (string-append "mirror://gnome/sources/gom/"
5987 (version-major+minor version) "/"
5988 "gom-" version ".tar.xz"))
5989 (sha256
5990 (base32
5991 "1zaqqwwkyiswib3v1v8wafpbifpbpak0nn2kp13pizzn9bwz1s5w"))))
5992 (build-system gnu-build-system)
5993 (native-inputs
5994 `(("intltool" ,intltool)
5995 ("pkg-config" ,pkg-config)
5996 ("gobject-introspection" ,gobject-introspection)))
5997 (inputs
5998 `(("glib" ,glib)
5999 ("gdk-pixbuf" ,gdk-pixbuf)
6000 ("sqlite" ,sqlite)))
6001 ;; XXX TODO: Figure out how to run the test suite.
6002 (arguments `(#:tests? #f))
6003 (home-page "https://wiki.gnome.org/Projects/Gom")
6004 (synopsis "Object mapper from GObjects to SQLite")
6005 (description
6006 "Gom provides an object mapper from GObjects to SQLite. It helps you
6007 write applications that need to store structured data as well as make complex
6008 queries upon that data.")
6009 (license license:lgpl2.1+)))
6010
6011 (define-public libgnome-games-support
6012 (package
6013 (name "libgnome-games-support")
6014 (version "1.7.1")
6015 (source (origin
6016 (method url-fetch)
6017 (uri (string-append "mirror://gnome/sources/libgnome-games-support/"
6018 (version-major+minor version) "/"
6019 "libgnome-games-support-" version ".tar.xz"))
6020 (sha256
6021 (base32
6022 "11g1r3ppb9v8m3anks9gxf7fv1x38vmjiya3lr7zjjv328pb69d6"))))
6023 (build-system meson-build-system)
6024 (arguments
6025 '(#:glib-or-gtk? #t
6026 #:phases
6027 (modify-phases %standard-phases
6028 (add-before 'check 'pre-check
6029 (lambda _
6030 ;; Tests require a writable HOME.
6031 (setenv "HOME" (getcwd))
6032 #t)))))
6033 (native-inputs
6034 `(("intltool" ,intltool)
6035 ("pkg-config" ,pkg-config)
6036 ("vala" ,vala)))
6037 (propagated-inputs
6038 ;; Required by libgnome-games-support-1.0.pc
6039 `(("gtk+" ,gtk+)
6040 ("libgee" ,libgee)))
6041 (home-page "https://www.gnome.org/")
6042 (synopsis "Useful functionality shared among GNOME games")
6043 (description
6044 "libgnome-games-support is a small library intended for internal use by
6045 GNOME Games, but it may be used by others.")
6046 (license license:lgpl3+)))
6047
6048 (define-public gnome-klotski
6049 (package
6050 (name "gnome-klotski")
6051 (version "3.34.0")
6052 (source (origin
6053 (method url-fetch)
6054 (uri (string-append "mirror://gnome/sources/" name "/"
6055 (version-major+minor version) "/"
6056 name "-" version ".tar.xz"))
6057 (sha256
6058 (base32
6059 "0sbx0bzy32lh2c9jp8v7gz788wn9y1la8mr5a7gf7370szsl4d4f"))))
6060 (build-system meson-build-system)
6061 (arguments
6062 '(#:glib-or-gtk? #t
6063 #:phases
6064 (modify-phases %standard-phases
6065 (add-after 'unpack 'skip-gtk-update-icon-cache
6066 ;; Don't create 'icon-theme.cache'.
6067 (lambda _
6068 (substitute* "build-aux/meson_post_install.py"
6069 (("gtk-update-icon-cache") (which "true")))
6070 #t)))))
6071 (native-inputs
6072 `(("desktop-file-utils" ,desktop-file-utils)
6073 ("glib:bin" ,glib "bin") ; for glib-compile-resources
6074 ("intltool" ,intltool)
6075 ("itstool" ,itstool)
6076 ("pkg-config" ,pkg-config)
6077 ("vala" ,vala)
6078 ("xmllint" ,libxml2)))
6079 (inputs
6080 `(("gtk+" ,gtk+)
6081 ("libgnome-games-support" ,libgnome-games-support)
6082 ("librsvg" ,librsvg)))
6083 (home-page "https://wiki.gnome.org/Apps/Klotski")
6084 (synopsis "Sliding block puzzles")
6085 (description
6086 "GNOME Klotski is a set of block sliding puzzles. The objective is to move
6087 the patterned block to the area bordered by green markers. To do so, you will
6088 need to slide other blocks out of the way. Complete each puzzle in as few moves
6089 as possible!")
6090 (license license:gpl2+)))
6091
6092 (define-public grilo
6093 (package
6094 (name "grilo")
6095 (version "0.3.12")
6096 (source
6097 (origin
6098 (method url-fetch)
6099 (uri (string-append "mirror://gnome/sources/grilo/"
6100 (version-major+minor version) "/"
6101 "grilo-" version ".tar.xz"))
6102 (sha256
6103 (base32 "0w8sq5g6g1rg85h53vbll8va70fcp6082mlpmy98aa03444ddyyv"))))
6104 (build-system meson-build-system)
6105 (native-inputs
6106 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
6107 ("intltool" ,intltool)
6108 ("pkg-config" ,pkg-config)
6109 ("gobject-introspection" ,gobject-introspection)
6110 ("gtk-doc" ,gtk-doc/stable)
6111 ("vala" ,vala)))
6112 (inputs
6113 `(("cyrus-sasl" ,cyrus-sasl)
6114 ("glib" ,glib)
6115 ("gtk+" ,gtk+)
6116 ("libxml2" ,libxml2)
6117 ("liboauth" ,liboauth)
6118 ("libsoup" ,libsoup)
6119 ("totem-pl-parser" ,totem-pl-parser)))
6120 (native-search-paths
6121 (list (search-path-specification
6122 (variable "GRL_PLUGIN_PATH")
6123 (files (list (string-append "lib/grilo-"
6124 (version-major+minor version)))))))
6125 (home-page "https://wiki.gnome.org/action/show/Projects/Grilo")
6126 (synopsis "Framework for discovering and browsing media")
6127 (description
6128 "Grilo is a framework focused on making media discovery and browsing easy
6129 for application developers.")
6130 (license license:lgpl2.1+)))
6131
6132 (define-public grilo-plugins
6133 (package
6134 (name "grilo-plugins")
6135 (version "0.3.11")
6136 (source
6137 (origin
6138 (method url-fetch)
6139 (uri (string-append "mirror://gnome/sources/" name "/"
6140 (version-major+minor version) "/"
6141 name "-" version ".tar.xz"))
6142 (sha256
6143 (base32 "0wyd3n5mn7b77hxylkc3f62v01mlavh96901pz342hwrn42ydqnx"))))
6144 (build-system meson-build-system)
6145 (native-inputs
6146 `(("gettext" ,gettext-minimal)
6147 ("glib:bin" ,glib "bin")
6148 ("gtk+:bin" ,gtk+ "bin")
6149 ("itstool" ,itstool)
6150 ("pkg-config" ,pkg-config)))
6151 ;; TODO: ahavi, gstreamer
6152 (inputs
6153 `(("grilo" ,grilo)
6154 ;("gmime" ,gmime) ; unused
6155 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
6156 ("gom" ,gom)
6157 ;("gssdp" ,gssdp) ; unused
6158 ;("gupnp" ,gupnp) ; unused
6159 ;("gupnp-av" ,gupnp-av) ; unused
6160 ("json-glib" ,json-glib)
6161 ("avahi" ,avahi)
6162 ("libgdata" ,libgdata)
6163 ("libmediaart" ,libmediaart)
6164 ;("librest" ,rest) ; unused
6165 ("libsoup" ,libsoup)
6166 ("totam-pl-parser" ,totem-pl-parser)
6167 ("tracker" ,tracker))) ; unused because it's too old
6168 (arguments
6169 `(#:glib-or-gtk? #t
6170 ;;Disable lua-factory as it needs missing dependencies
6171 #:configure-flags '("-Denable-lua-factory=no")))
6172 (home-page "https://live.gnome.org/Grilo")
6173 (synopsis "Plugins for the Grilo media discovery library")
6174 (description
6175 "Grilo is a framework focused on making media discovery and browsing easy
6176 for application developers. This package provides plugins for common media
6177 discovery protocols.")
6178 (license license:lgpl2.1+)))
6179
6180 (define-public totem
6181 (package
6182 (name "totem")
6183 (version "3.38.1")
6184 (source
6185 (origin
6186 (method url-fetch)
6187 (uri (string-append "mirror://gnome/sources/totem/"
6188 (version-major+minor version) "/"
6189 "totem-" version ".tar.xz"))
6190 (sha256
6191 (base32 "02510lvzvxvmpcs64k6sqix8ysl7sihhhwvp0vmfv7521ryczylg"))))
6192 (build-system meson-build-system)
6193 (native-inputs
6194 `(("pkg-config" ,pkg-config)
6195 ("desktop-file-utils" ,desktop-file-utils)
6196 ("gettext" ,gettext-minimal)
6197 ("gobject-introspection" ,gobject-introspection)
6198 ("glib:bin" ,glib "bin") ;for 'glib-mkenums'
6199 ("itstool" ,itstool)
6200 ("xmllint" ,libxml2)
6201 ("xorg-server" ,xorg-server-for-tests)))
6202 (propagated-inputs
6203 `(("dconf" ,dconf)))
6204 (inputs
6205 `(("gtk+" ,gtk+)
6206 ("gdk-pixbuf" ,gdk-pixbuf)
6207 ("atk" ,atk)
6208 ("cairo" ,cairo)
6209 ("dbus-glib" ,dbus-glib)
6210 ("clutter" ,clutter)
6211 ("clutter-gtk" ,clutter-gtk)
6212 ("clutter-gst" ,clutter-gst)
6213 ("xorgproto" ,xorgproto)
6214 ("libxxf86vm" ,libxxf86vm)
6215 ("libxtst" ,libxtst)
6216 ("libxrandr" ,libxrandr)
6217 ("libxml2" ,libxml2)
6218 ("libsoup" ,libsoup)
6219 ("libpeas" ,libpeas)
6220 ("librsvg" ,librsvg)
6221 ("lirc" ,lirc)
6222 ("gnome-desktop" ,gnome-desktop)
6223 ("gstreamer" ,gstreamer)
6224 ("gst-plugins-base" ,gst-plugins-base)
6225 ("gst-plugins-good" ,gst-plugins-good)
6226 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6227 ("adwaita-icon-theme" ,adwaita-icon-theme)
6228 ("python" ,python)
6229 ("python-pygobject" ,python-pygobject)
6230 ("totem-pl-parser" ,totem-pl-parser)
6231 ("grilo" ,grilo)
6232 ("grilo-plugins" ,grilo-plugins)
6233 ("vala" ,vala)))
6234 (arguments
6235 `(#:glib-or-gtk? #t
6236
6237 ;; Disable automatic GStreamer plugin installation via PackageKit and
6238 ;; all that.
6239 #:configure-flags '("-D" "enable-easy-codec-installation=no"
6240
6241 ;; Do not build .a files for the plugins, it's
6242 ;; completely useless. This saves 2 MiB.
6243 "--default-library" "shared")
6244 #:phases
6245 (modify-phases %standard-phases
6246 (add-after 'unpack 'skip-gtk-update-icon-cache
6247 ;; Don't create 'icon-theme.cache'.
6248 (lambda _
6249 (substitute* "meson_post_install.py"
6250 (("gtk-update-icon-cache") "true"))
6251 #t))
6252 (add-before
6253 'install 'disable-cache-generation
6254 (lambda _
6255 (setenv "DESTDIR" "/")
6256 #t))
6257 (add-before
6258 'check 'pre-check
6259 (lambda _
6260 ;; Tests require a running X server.
6261 (system "Xvfb :1 &")
6262 (setenv "DISPLAY" ":1")
6263 #t))
6264 (add-after
6265 'install 'wrap-totem
6266 (lambda* (#:key inputs outputs #:allow-other-keys)
6267 (let ((out (assoc-ref outputs "out"))
6268 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
6269 (grl-plugin-path (getenv "GRL_PLUGIN_PATH")))
6270 (wrap-program (string-append out "/bin/totem")
6271 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
6272 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path)))
6273 (wrap-program (string-append out "/bin/totem-video-thumbnailer")
6274 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
6275 #t)))))
6276 (home-page "https://wiki.gnome.org/Apps/Videos")
6277 (synopsis "Simple media player for GNOME based on GStreamer")
6278 (description "Totem is a simple yet featureful media player for GNOME
6279 which can read a large number of file formats.")
6280 ;; GPL2+ with an exception clause for non-GPL compatible GStreamer plugins
6281 ;; to be used and distributed together with GStreamer and Totem. See
6282 ;; file://COPYING in the source distribution for details.
6283 (license license:gpl2+)))
6284
6285 (define-public rhythmbox
6286 (package
6287 (name "rhythmbox")
6288 (version "3.4.4")
6289 (source (origin
6290 (method url-fetch)
6291 (uri (string-append "mirror://gnome/sources/rhythmbox/"
6292 (version-major+minor version) "/"
6293 "rhythmbox-" version ".tar.xz"))
6294 (sha256
6295 (base32
6296 "142xcvw4l19jyr5i72nbnrihs953pvrrzcbijjn9dxmxszbv03pf"))))
6297 (build-system glib-or-gtk-build-system)
6298 (arguments
6299 `(#:configure-flags
6300 (list "--enable-lirc"
6301 "--enable-python"
6302 "--enable-vala"
6303 "--with-brasero"
6304 "--with-gudev"
6305 "--with-libsecret")
6306 #:phases
6307 (modify-phases %standard-phases
6308 (add-after
6309 'install 'wrap-rhythmbox
6310 (lambda* (#:key inputs outputs #:allow-other-keys)
6311 (let ((out (assoc-ref outputs "out"))
6312 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6313 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
6314 (grl-plugin-path (getenv "GRL_PLUGIN_PATH"))
6315 (python-path (getenv "PYTHONPATH")))
6316 (wrap-program (string-append out "/bin/rhythmbox")
6317 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6318 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
6319 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path))
6320 `("PYTHONPATH" ":" prefix (,python-path))))
6321 #t)))))
6322 (propagated-inputs
6323 `(("dconf" ,dconf)))
6324 (native-inputs
6325 `(("itstool" ,itstool)
6326 ("intltool" ,intltool)
6327 ("glib" ,glib "bin")
6328 ("gobject-introspection" ,gobject-introspection)
6329 ("desktop-file-utils" ,desktop-file-utils)
6330 ("pkg-config" ,pkg-config)
6331 ("xmllint" ,libxml2)))
6332 (inputs
6333 `(("json-glib" ,json-glib)
6334 ("tdb" ,tdb)
6335 ("gnome-desktop" ,gnome-desktop)
6336 ("python" ,python)
6337 ("python-pygobject" ,python2-pygobject)
6338 ("vala" ,vala)
6339 ("gmime" ,gmime)
6340 ("adwaita-icon-theme" ,adwaita-icon-theme)
6341 ("grilo" ,grilo)
6342 ("grilo-plugins" ,grilo-plugins)
6343 ("gstreamer" ,gstreamer)
6344 ("gst-plugins-base" ,gst-plugins-base)
6345 ("gst-plugins-good" ,gst-plugins-good)
6346 ("totem-pl-parser" ,totem-pl-parser)
6347 ("libgudev" ,libgudev)
6348 ;;("libmtp" ,libmtp) FIXME: Not detected
6349 ("libsecret" ,libsecret)
6350 ("libsoup" ,libsoup)
6351 ("libnotify" ,libnotify)
6352 ("libpeas" ,libpeas)
6353 ("lirc" ,lirc)
6354 ;; TODO: clutter* only used by visualizer plugin, which also requires mx
6355 ;;("clutter" ,clutter)
6356 ;;("clutter-gtk" ,clutter-gtk)
6357 ;;("clutter-gst" ,clutter-gst)
6358 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6359 ("atk" ,atk)
6360 ("pango" ,pango)
6361 ("gtk+" ,gtk+)
6362 ;; TODO:
6363 ;; * libgpod
6364 ;; * mx
6365 ("brasero" ,brasero)))
6366 (home-page "https://wiki.gnome.org/Apps/Rhythmbox")
6367 (synopsis "Music player for GNOME")
6368 (description "Rhythmbox is a music playing application for GNOME. It
6369 supports playlists, song ratings, and any codecs installed through gstreamer.")
6370 (license license:gpl2+)))
6371
6372 (define-public eog
6373 (package
6374 (name "eog")
6375 (version "3.34.1")
6376 (source (origin
6377 (method url-fetch)
6378 (uri (string-append "mirror://gnome/sources/" name "/"
6379 (version-major+minor version) "/"
6380 name "-" version ".tar.xz"))
6381 (sha256
6382 (base32
6383 "0b7ld4azs9xbdjsk9b91ywhdzvxgajhndiwiivxjzbr0hjgp7c7x"))))
6384 (build-system meson-build-system)
6385 (arguments
6386 `(#:configure-flags
6387 ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
6388 (list (string-append "-Dc_link_args=-Wl,-rpath="
6389 (assoc-ref %outputs "out") "/lib/eog"))
6390 #:phases
6391 (modify-phases %standard-phases
6392 (add-after 'unpack 'skip-gtk-update-icon-cache
6393 ;; Don't create 'icon-theme.cache'.
6394 (lambda _
6395 (substitute* "meson_post_install.py"
6396 (("gtk-update-icon-cache") "true"))
6397 #t))
6398 (add-after 'install 'wrap-eog
6399 (lambda* (#:key outputs #:allow-other-keys)
6400 (let ((out (assoc-ref outputs "out"))
6401 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
6402 (wrap-program (string-append out "/bin/eog")
6403 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6404 #t)))))
6405 (propagated-inputs
6406 `(("dconf" ,dconf)))
6407 (native-inputs
6408 `(("intltool" ,intltool)
6409 ("itstool" ,itstool)
6410 ("glib" ,glib "bin")
6411 ("gobject-introspection" ,gobject-introspection)
6412 ("pkg-config" ,pkg-config)
6413 ("xmllint" ,libxml2)))
6414 (inputs
6415 `(("gnome-desktop" ,gnome-desktop)
6416 ("shared-mime-info" ,shared-mime-info)
6417 ("adwaita-icon-theme" ,adwaita-icon-theme)
6418 ("exempi" ,exempi)
6419 ("lcms" ,lcms)
6420 ("libexif" ,libexif)
6421 ("libpeas" ,libpeas)
6422 ("libjpeg" ,libjpeg-turbo)
6423 ("librsvg" ,librsvg-next)
6424 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6425 ("gtk+" ,gtk+)))
6426 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
6427 (synopsis "GNOME image viewer")
6428 (description "Eye of GNOME is the GNOME image viewer. It
6429 supports image conversion, rotation, and slideshows.")
6430 (license license:gpl2+)))
6431
6432 (define-public eog-plugins
6433 ;; Note: EOG looks for its plugins (via libpeas) in ~/.local as well as
6434 ;; $DATA/lib/eog/plugins, where DATA is one of the entries in
6435 ;; $XDG_DATA_DIRS. Thus, for EOG to find these, you have to have
6436 ;; 'XDG_DATA_DIRS' appropriately set.
6437 (package
6438 (name "eog-plugins")
6439 (version "3.26.4")
6440 (source (origin
6441 (method url-fetch)
6442 (uri (string-append "mirror://gnome/sources/eog-plugins/"
6443 (version-major+minor version) "/"
6444 "eog-plugins-" version ".tar.xz"))
6445 (sha256
6446 (base32
6447 "0pd7fqa4ciy5844k5s1c6rlsqkk8pxd8cchxjcjhxlsngm9lynnx"))))
6448 (build-system gnu-build-system)
6449 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome/Plugins")
6450 (synopsis "Extensions for the Eye of GNOME image viewer")
6451 (native-inputs
6452 `(("pkg-config" ,pkg-config)
6453 ("gettext" ,gettext-minimal)))
6454 (inputs
6455 `(("eog" ,eog)
6456 ("glib" ,glib)
6457 ("gtk+" ,gtk+)
6458 ("libpeas" ,libpeas)
6459 ("libexif" ,libexif)
6460 ("libchamplain" ,libchamplain)))
6461 (description
6462 "This package provides plugins for the Eye of GNOME (EOG) image viewer,
6463 notably:
6464
6465 @itemize
6466 @item @dfn{EXIF Display}, which displays camera (EXIF) information;
6467 @item @dfn{Map}, which displays a map of where the picture was taken on the
6468 side panel;
6469 @item @dfn{Slideshow Shuffle}, to shuffle images in slideshow mode.
6470 @end itemize\n")
6471
6472 ;; XXX: eog-postasa-plugin-resources.c (which we don't build) contains a
6473 ;; long suspicious byte stream that goes to a
6474 ;; ".gresource.eog_postasa_plugin" ELF section.
6475 (license license:gpl2+)))
6476
6477 (define-public libgudev
6478 (package
6479 (name "libgudev")
6480 (version "232")
6481 (source (origin
6482 (method url-fetch)
6483 (uri (string-append "mirror://gnome/sources/" name "/"
6484 version "/" name "-" version ".tar.xz"))
6485 (sha256
6486 (base32
6487 "0q3qki451zzgdjazlgshsfzbbm0in40lyx7dyrag7kbkqnwv4k7f"))))
6488 (build-system gnu-build-system)
6489 (arguments
6490 '(#:configure-flags
6491 ;; umockdev depends on libgudev.
6492 (list "--disable-umockdev")))
6493 (native-inputs
6494 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6495 ("gobject-introspection" ,gobject-introspection)
6496 ("pkg-config" ,pkg-config)))
6497 (propagated-inputs
6498 `(("glib" ,glib))) ; required by gudev-1.0.pc
6499 (inputs
6500 `(("udev" ,eudev)))
6501 (home-page "https://wiki.gnome.org/Projects/libgudev")
6502 (synopsis "GObject bindings for libudev")
6503 (description
6504 "This library provides GObject bindings for libudev. It was originally
6505 part of udev-extras, then udev, then systemd. It's now a project on its own.")
6506 (license license:lgpl2.1+)))
6507
6508 (define-public gvfs
6509 (package
6510 (name "gvfs")
6511 (version "1.40.2")
6512 (source (origin
6513 (method url-fetch)
6514 (uri (string-append "mirror://gnome/sources/gvfs/"
6515 (version-major+minor version) "/"
6516 "gvfs-" version ".tar.xz"))
6517 (sha256
6518 (base32
6519 "07lpcfric3h0302n9b1pwa38mjb76r9s98kg2867y2d1qvzfivxx"))
6520 ;; This patch may be removed when upgrading to version 1.46.x.
6521 (patches
6522 (search-patches "gvfs-add-support-for-libplist-2.2.patch"))))
6523 (build-system meson-build-system)
6524 (arguments
6525 '(#:glib-or-gtk? #t
6526 #:configure-flags
6527 (list "-Dsystemduserunitdir=no"
6528 "-Dtmpfilesdir=no"
6529 ;; Otherwise, the RUNPATH will lack the final path component.
6530 (string-append "-Dc_link_args=-Wl,-rpath="
6531 (assoc-ref %outputs "out") "/lib/gvfs"))))
6532 (native-inputs
6533 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6534 ("gettext" ,gettext-minimal)
6535 ("gtk-doc" ,gtk-doc/stable)
6536 ("pkg-config" ,pkg-config)
6537 ("xsltproc" ,libxslt)))
6538 (inputs
6539 `(("avahi" ,avahi)
6540 ("docbook-xml" ,docbook-xml-4.2)
6541 ("docbook-xsl" ,docbook-xsl)
6542 ("dbus" ,dbus)
6543 ("elogind" ,elogind)
6544 ("fuse" ,fuse)
6545 ("gcr" ,gcr)
6546 ("glib" ,glib)
6547 ("gnome-online-accounts" ,gnome-online-accounts)
6548 ("libarchive" ,libarchive)
6549 ("libbluray" ,libbluray)
6550 ("libcap" ,libcap)
6551 ("libcdio-paranoia" ,libcdio-paranoia)
6552 ("libgcrypt" ,libgcrypt)
6553 ("libgdata" ,libgdata)
6554 ("libgphoto2" ,libgphoto2)
6555 ("libgudev" ,libgudev)
6556 ("libimobiledevice" ,libimobiledevice)
6557 ("libmtp" ,libmtp)
6558 ("libnfs" ,libnfs)
6559 ("libsecret" ,libsecret)
6560 ("libsmbclient" ,samba)
6561 ("libsoup" ,libsoup)
6562 ("libxml2" ,libxml2)
6563 ("openssh" ,openssh)
6564 ("polkit" ,polkit)
6565 ("udisks" ,udisks)))
6566 ;; CVE-2019-{12447,12448,12449} are fixed in the 1.40.2 release.
6567 (properties '((lint-hidden-cve . ("CVE-2019-12447"
6568 "CVE-2019-12448"
6569 "CVE-2019-12449"))))
6570 (home-page "https://wiki.gnome.org/gvfs/")
6571 (synopsis "Userspace virtual file system for GIO")
6572 (description
6573 "GVFS is a userspace virtual file system designed to work with the I/O
6574 abstraction of GIO. It contains a GIO module that seamlessly adds GVFS support
6575 to all applications using the GIO API. It also supports exposing the GVFS
6576 mounts to non-GIO applications using FUSE.
6577
6578 GVFS comes with a set of backends, including trash support, SFTP, SMB, HTTP,
6579 DAV, and others.")
6580 (license license:lgpl2.0+)))
6581
6582 (define-public gusb
6583 (package
6584 (name "gusb")
6585 (version "0.3.5")
6586 (source (origin
6587 (method git-fetch)
6588 (uri (git-reference
6589 (url "https://github.com/hughsie/libgusb")
6590 (commit version)))
6591 (file-name (git-file-name name version))
6592 (sha256
6593 (base32
6594 "0ifhdqhpyxwsg0z9s1anj7cf5pya5qsqyp5ksh9n7mqwa4lrjkl8"))))
6595 (build-system meson-build-system)
6596 (native-inputs
6597 `(("gobject-introspection" ,gobject-introspection)
6598 ("pkg-config" ,pkg-config)
6599 ("vala" ,vala)
6600 ("gtk-doc" ,gtk-doc/stable)))
6601 (propagated-inputs
6602 ;; Both of these are required by gusb.pc.
6603 `(("glib" ,glib)
6604 ("libusb" ,libusb)))
6605 (arguments
6606 `(#:tests? #f)) ;libusb fails to initialize. Wonder what that is.
6607 (home-page "https://github.com/hughsie/libgusb")
6608 (synopsis "GLib binding for libusb1")
6609 (description
6610 "GUsb is a GObject wrapper for libusb1 that makes it easy to do
6611 asynchronous control, bulk and interrupt transfers with proper cancellation
6612 and integration into a mainloop. This makes it easy to integrate low level
6613 USB transfers with your high-level application or system daemon.")
6614 (license license:lgpl2.1+)))
6615
6616 (define-public simple-scan
6617 (package
6618 (name "simple-scan")
6619 (version "3.38.2")
6620 (source
6621 (origin
6622 (method url-fetch)
6623 (uri (string-append "mirror://gnome/sources/simple-scan/"
6624 (version-major+minor version) "/"
6625 "simple-scan-" version ".tar.xz"))
6626 (sha256
6627 (base32 "02sdkhxgr6i7iy481h4xavgaqd0a5dlsipzwrm4qd242jrr813d8"))))
6628 (build-system meson-build-system)
6629 ;; TODO: Fix icons in home screen, About dialogue, and scan menu.
6630 (arguments
6631 '(#:glib-or-gtk? #t))
6632 (inputs
6633 `(("gtk" ,gtk+)
6634 ("zlib" ,zlib)
6635 ("cairo" ,cairo)
6636 ("colord" ,colord)
6637 ("gdk-pixbuf" ,gdk-pixbuf)
6638 ("gusb" ,gusb)
6639 ("libsane" ,sane-backends)))
6640 (native-inputs
6641 `(("gettext" ,gettext-minimal)
6642 ("itstool" ,itstool)
6643 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
6644 ("pkg-config" ,pkg-config)
6645 ("vala" ,vala)
6646 ("xmllint" ,libxml2)))
6647 (home-page "https://gitlab.gnome.org/GNOME/simple-scan")
6648 (synopsis "Document and image scanner")
6649 (description
6650 "Document Scanner is an easy-to-use application that lets you connect your
6651 scanner and quickly capture images and documents in an appropriate format. It
6652 supports any scanner for which a suitable SANE driver is available, which is
6653 almost all of them.")
6654 (license license:gpl3+)))
6655
6656 (define-public eolie
6657 (package
6658 (name "eolie")
6659 (version "0.9.101")
6660 (source (origin
6661 (method url-fetch)
6662 (uri (string-append "https://adishatz.org/eolie/eolie-"
6663 version ".tar.xz"))
6664 (sha256
6665 (base32
6666 "1v8n21y75abdzsnx5idyd0q6yfb6cd0sqbknlbkwh5fdgvjzyvwn"))))
6667 (build-system meson-build-system)
6668 (arguments
6669 `(#:glib-or-gtk? #t
6670 #:phases
6671 (modify-phases %standard-phases
6672 (add-after 'unpack 'skip-gtk-update-icon-cache
6673 ;; Don't create 'icon-theme.cache'.
6674 (lambda _
6675 (substitute* "meson_post_install.py"
6676 (("gtk-update-icon-cache") "true"))
6677 #t))
6678 (add-after 'wrap 'wrap-more
6679 (lambda* (#:key inputs outputs #:allow-other-keys)
6680 (let* ((out (assoc-ref outputs "out"))
6681 ;; These libraries must be on LD_LIBRARY_PATH.
6682 (libs '("gtkspell3" "webkitgtk" "libsoup" "libsecret"
6683 "atk" "gtk+" "gsettings-desktop-schemas"
6684 "gobject-introspection"))
6685 (path (string-join
6686 (map (lambda (lib)
6687 (string-append (assoc-ref inputs lib) "/lib"))
6688 libs)
6689 ":")))
6690 (wrap-program (string-append out "/bin/eolie")
6691 `("LD_LIBRARY_PATH" ":" prefix (,path))
6692 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
6693 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
6694 #t)))))
6695 (native-inputs
6696 `(("intltool" ,intltool)
6697 ("itstool" ,itstool)
6698 ("pkg-config" ,pkg-config)
6699 ("python" ,python)
6700 ("glib:bin" ,glib "bin")))
6701 (inputs
6702 `(("gobject-introspection" ,gobject-introspection)
6703 ("glib-networking" ,glib-networking)
6704 ("cairo" ,cairo)
6705 ("gtk+" ,gtk+)
6706 ("atk" ,atk) ; propagated by gtk+, but we need it in LD_LIBRARY_PATH
6707 ("python" ,python-wrapper)
6708 ("python-dateutil" ,python-dateutil)
6709 ("python-pyfxa" ,python-pyfxa)
6710 ("python-pygobject" ,python-pygobject)
6711 ("python-pycairo" ,python-pycairo)
6712 ("python-pycrypto" ,python-pycrypto)
6713 ("libhandy" ,libhandy)
6714 ("libsecret" ,libsecret)
6715 ("gtkspell3" ,gtkspell3)
6716 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6717 ("gnome-settings-daemon" ,gnome-settings-daemon) ; desktop-schemas are not enough
6718 ("webkitgtk" ,webkitgtk)))
6719 (home-page "https://wiki.gnome.org/Apps/Eolie")
6720 (synopsis "Web browser for GNOME")
6721 (description
6722 "Eolie is a new web browser for GNOME. It features Firefox sync support,
6723 a secret password store, an adblocker, and a modern UI.")
6724 (license license:gpl3+)))
6725
6726 (define-public epiphany
6727 (package
6728 (name "epiphany")
6729 (version "3.34.4")
6730 (source (origin
6731 (method url-fetch)
6732 (uri (string-append "mirror://gnome/sources/epiphany/"
6733 (version-major+minor version) "/"
6734 "epiphany-" version ".tar.xz"))
6735 (sha256
6736 (base32
6737 "13ar3s40cds1rplwbzx0fzigf120w0rydiv05r3k6zpc0zy91qb0"))))
6738
6739 (build-system meson-build-system)
6740 (arguments
6741 '(#:glib-or-gtk? #t
6742 #:phases
6743 (modify-phases %standard-phases
6744 (add-after 'unpack 'skip-gtk-update-icon-cache
6745 ;; Don't create 'icon-theme.cache'.
6746 (lambda _
6747 (substitute* "post_install.py"
6748 (("gtk-update-icon-cache") "true"))
6749 #t))
6750 (add-after 'unpack 'disable-failing-tests
6751 (lambda _
6752 (substitute* "tests/meson.build"
6753 ;; embed_shell fails, because webkitgtk apparently no longer supports
6754 ;; overriding the ftp schema
6755 ;; web_app_utils fails due to missing network access
6756 (("(embed_shell|web_app_utils)_test,")
6757 "find_program('sh'), args: ['-c', 'exit 77'],"))
6758 #t))
6759 (add-before 'check 'pre-check
6760 (lambda _
6761 ;; Tests require a running X server.
6762 (system "Xvfb :1 &")
6763 (setenv "DISPLAY" ":1")
6764 #t)))
6765 #:configure-flags
6766 ;; Otherwise, the RUNPATH will lack the final 'epiphany' path component.
6767 (list (string-append "-Dc_link_args=-Wl,-rpath="
6768 (assoc-ref %outputs "out") "/lib/epiphany"))))
6769 (propagated-inputs
6770 `(("dconf" ,dconf)))
6771 (native-inputs
6772 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6773 ("glib:bin" ,glib "bin") ; for glib-mkenums
6774 ("intltool" ,intltool)
6775 ("itstool" ,itstool)
6776 ("pkg-config" ,pkg-config)
6777 ("xmllint" ,libxml2)
6778 ("xorg-server" ,xorg-server-for-tests)))
6779 (inputs
6780 `(("avahi" ,avahi)
6781 ("gcr" ,gcr)
6782 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg) ; for loading SVG files
6783 ("glib-networking" ,glib-networking)
6784 ("gnome-desktop" ,gnome-desktop)
6785 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6786 ("json-glib" ,json-glib)
6787 ("iso-codes" ,iso-codes)
6788 ("libdazzle" ,libdazzle)
6789 ("libnotify" ,libnotify)
6790 ("libsecret" ,libsecret)
6791 ("libxslt" ,libxslt)
6792 ("nettle" ,nettle) ; for hogweed
6793 ("sqlite" ,sqlite)
6794 ("webkitgtk" ,webkitgtk)))
6795 (home-page "https://wiki.gnome.org/Apps/Web")
6796 (synopsis "GNOME web browser")
6797 (description
6798 "Epiphany is a GNOME web browser targeted at non-technical users. Its
6799 principles are simplicity and standards compliance.")
6800 (license license:gpl2+)))
6801
6802 (define-public d-feet
6803 (package
6804 (name "d-feet")
6805 (version "0.3.14")
6806 (source (origin
6807 (method url-fetch)
6808 (uri (string-append "mirror://gnome/sources/" name "/"
6809 (version-major+minor version) "/"
6810 name "-" version ".tar.xz"))
6811 (sha256
6812 (base32
6813 "1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f"))))
6814 (build-system glib-or-gtk-build-system)
6815 (arguments
6816 '(#:out-of-source? #f ; tests need to run in the source directory.
6817 #:phases
6818 (modify-phases %standard-phases
6819 (add-before
6820 'check 'pre-check
6821 (lambda _
6822 ;; The test suite requires a running X server.
6823 (system "Xvfb :1 &")
6824 (setenv "DISPLAY" ":1")
6825 ;; Don't fail on missing '/etc/machine-id'.
6826 (setenv "DBUS_FATAL_WARNINGS" "0")
6827 ;; tests.py and window.py don't meet E402:
6828 ;; E402 module level import not at top of file
6829 (substitute* "src/tests/Makefile"
6830 (("--ignore=E123") "--ignore=E123,E402"))
6831 #t))
6832 (add-after
6833 'install 'wrap-program
6834 (lambda* (#:key outputs #:allow-other-keys)
6835 (let ((prog (string-append (assoc-ref outputs "out")
6836 "/bin/d-feet")))
6837 (wrap-program prog
6838 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
6839 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
6840 #t))))))
6841 (native-inputs
6842 `(("intltool" ,intltool)
6843 ("itstool" ,itstool)
6844 ("pkg-config" ,pkg-config)
6845 ("python-pep8" ,python-pep8)
6846 ("xmllint" ,libxml2)
6847 ("xorg-server" ,xorg-server-for-tests)))
6848 (inputs
6849 `(("gobject-introspection" ,gobject-introspection)
6850 ("gtk+" ,gtk+)
6851 ("python" ,python-wrapper)
6852 ("hicolor-icon-theme" ,hicolor-icon-theme)
6853 ("python-pygobject" ,python-pygobject)))
6854 (home-page "https://wiki.gnome.org/Apps/DFeet")
6855 (synopsis "D-Bus debugger")
6856 (description
6857 "D-Feet is a D-Bus debugger, which can be used to inspect D-Bus interfaces
6858 of running programs and invoke methods on those interfaces.")
6859 (license license:gpl2+)))
6860
6861 (define-public yelp-xsl
6862 (package
6863 (name "yelp-xsl")
6864 (version "3.34.2")
6865 (source
6866 (origin
6867 (method url-fetch)
6868 (uri
6869 (string-append "mirror://gnome/sources/" name "/"
6870 (version-major+minor version) "/"
6871 name "-" version ".tar.xz"))
6872 (sha256
6873 (base32 "1bdpgkzawhqmw52l6zx8czzg1ndfgcf1p44m2bxjdpqkc4afcgqc"))))
6874 (build-system gnu-build-system)
6875 (native-inputs
6876 `(("gettext-minimal" ,gettext-minimal)
6877 ("itstool" ,itstool)
6878 ("xmllint" ,libxml2)))
6879 (synopsis "XSL stylesheets for Yelp")
6880 (description "Yelp-XSL is a collection of programs and data files to help
6881 you build, maintain, and distribute documentation. It provides XSLT stylesheets
6882 that can be built upon for help viewers and publishing systems. These
6883 stylesheets output JavaScript and CSS content, and reference images
6884 provided by yelp-xsl. It also redistributes copies of the jQuery and
6885 jQuery.Syntax JavaScript libraries.")
6886 (home-page "https://wiki.gnome.org/Apps/Yelp")
6887 (license
6888 (list
6889 ;; XSLT
6890 license:gpl2+
6891 ;; Images
6892 license:lgpl2.1+
6893 ;; JavaScript
6894 license:expat))))
6895
6896 (define-public yelp
6897 (package
6898 (name "yelp")
6899 (version "3.32.2")
6900 (source (origin
6901 (method url-fetch)
6902 (uri (string-append "mirror://gnome/sources/" name "/"
6903 (version-major+minor version) "/"
6904 name "-" version ".tar.xz"))
6905 (sha256
6906 (base32
6907 "0yrl96icmmrxvg7sxl519gzg9qb368cmzgrr9ddh181ignkxzx7f"))))
6908 (build-system glib-or-gtk-build-system)
6909 (native-inputs
6910 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
6911 ("intltool" ,intltool)
6912 ("itstool" ,itstool)
6913 ("pkg-config" ,pkg-config)))
6914 (propagated-inputs
6915 `(("dconf" ,dconf)))
6916 (inputs
6917 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6918 ("libxslt" ,libxslt)
6919 ("sqlite" ,sqlite)
6920 ("webkitgtk" ,webkitgtk)
6921 ("yelp-xsl" ,yelp-xsl)))
6922 (home-page "https://wiki.gnome.org/Apps/Yelp")
6923 (synopsis "GNOME help browser")
6924 (description
6925 "Yelp is the help viewer in Gnome. It natively views Mallard, DocBook,
6926 man, info, and HTML documents. It can locate documents according to the
6927 freedesktop.org help system specification.")
6928 (license license:gpl2+)))
6929
6930 (define-public yelp-tools
6931 (package
6932 (name "yelp-tools")
6933 (version "3.32.2")
6934 (source
6935 (origin
6936 (method url-fetch)
6937 (uri
6938 (string-append "mirror://gnome/sources/" name "/"
6939 (version-major+minor version) "/"
6940 name "-" version ".tar.xz"))
6941 (sha256
6942 (base32 "1yg8f5g5wadhmy4yfd9yjhvd8vll4gq4l86ibp0b42qbxnsmcf0q"))))
6943 (build-system gnu-build-system)
6944 (native-inputs
6945 `(("pkg-config" ,pkg-config)))
6946 (inputs
6947 `(("yelp-xsl" ,yelp-xsl)))
6948 (propagated-inputs
6949 ;; Needed by `yelp-build', `yelp-check' or 'yelp.m4'.
6950 `(("itstool" ,itstool)
6951 ("xmllint" ,libxml2)
6952 ("xsltproc" ,libxslt)))
6953 (synopsis "Yelp documentation tools")
6954 (description
6955 "Yelp-tools is a collection of scripts and build utilities to help create,
6956 manage, and publish documentation for Yelp and the web. Most of the heavy
6957 lifting is done by packages like yelp-xsl and itstool. This package just
6958 wraps things up in a developer-friendly way.")
6959 (home-page "https://wiki.gnome.org/Apps/Yelp/Tools")
6960 (license license:gpl2+)))
6961
6962 (define-public libgee
6963 (package
6964 (name "libgee")
6965 (version "0.20.3")
6966 (source (origin
6967 (method url-fetch)
6968 (uri (string-append "mirror://gnome/sources/libgee/"
6969 (version-major+minor version) "/"
6970 "libgee-" version ".tar.xz"))
6971 (sha256
6972 (base32
6973 "1pm525wm11dhwz24m8bpcln9547lmrigl6cxf3qsbg4cr3pyvdfh"))))
6974 (build-system gnu-build-system)
6975 (arguments
6976 `(#:phases
6977 (modify-phases %standard-phases
6978 (add-after 'unpack 'fix-introspection-install-dir
6979 (lambda* (#:key outputs #:allow-other-keys)
6980 (let ((out (assoc-ref outputs "out")))
6981 (substitute* "gee/Makefile.in"
6982 (("@INTROSPECTION_GIRDIR@")
6983 (string-append out "/share/gir-1.0/"))
6984 (("@INTROSPECTION_TYPELIBDIR@")
6985 (string-append out "/lib/girepository-1.0/")))))))))
6986 (native-inputs
6987 `(("glib" ,glib "bin")
6988 ("pkg-config" ,pkg-config)))
6989 (inputs
6990 `(("glib" ,glib)
6991 ("gobject-introspection" ,gobject-introspection)))
6992 (home-page "https://wiki.gnome.org/Projects/Libgee")
6993 (synopsis "GObject collection library")
6994 (description
6995 "Libgee is a utility library providing GObject-based interfaces and
6996 classes for commonly used data structures.")
6997 (license license:lgpl2.1+)))
6998
6999 (define-public gexiv2
7000 (package
7001 (name "gexiv2")
7002 (version "0.12.2")
7003 (source (origin
7004 (method url-fetch)
7005 (uri (string-append "mirror://gnome/sources/" name "/"
7006 (version-major+minor version) "/"
7007 name "-" version ".tar.xz"))
7008 (sha256
7009 (base32
7010 "0k4ljzzz5dwqndw8awvlw3ala8rh3b2rk9i4jzvywc53mi9ba8i3"))))
7011 (build-system meson-build-system)
7012 (native-inputs
7013 `(("gcr" ,gcr)
7014 ("glib" ,glib "bin")
7015 ("pkg-config" ,pkg-config)
7016 ("vala" ,vala)))
7017 (propagated-inputs
7018 ;; Listed in "Requires" section of gexiv2.pc
7019 `(("exiv2" ,exiv2)))
7020 (inputs
7021 `(("glib" ,glib)
7022 ("gobject-introspection" ,gobject-introspection)))
7023 (home-page "https://wiki.gnome.org/Projects/gexiv2")
7024 (synopsis "GObject wrapper around the Exiv2 photo metadata library")
7025 (description
7026 "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library. It
7027 allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
7028 metadata in photo and video files of various formats.")
7029 (license license:gpl2+)))
7030
7031 (define-public shotwell
7032 (package
7033 (name "shotwell")
7034 (version "0.30.12")
7035 (source (origin
7036 (method url-fetch)
7037 (uri (string-append "mirror://gnome/sources/shotwell/"
7038 (version-major+minor version) "/"
7039 "shotwell-" version ".tar.xz"))
7040 (sha256
7041 (base32
7042 "1h5crjq59lqi8f8mdkadzi8pc3i9i2ik4lsx2nrhzq486fzdfhw6"))))
7043 (build-system meson-build-system)
7044 (arguments
7045 '(#:glib-or-gtk? #t
7046 #:phases
7047 (modify-phases %standard-phases
7048 (add-after 'unpack 'skip-gtk-update-icon-cache
7049 (lambda _
7050 (substitute* "build-aux/meson/postinstall.py"
7051 (("gtk-update-icon-cache") (which "true"))
7052 (("update-desktop-database") (which "true")))
7053 #t)))))
7054 (propagated-inputs
7055 `(("dconf" ,dconf)))
7056 (native-inputs
7057 `(("gettext" ,gettext-minimal)
7058 ("glib:bin" ,glib "bin")
7059 ("itstool" ,itstool)
7060 ("pkg-config" ,pkg-config)
7061 ("vala" ,vala)))
7062 (inputs
7063 `(("gcr" ,gcr)
7064 ("gexiv2" ,gexiv2)
7065 ("gst-plugins-base" ,gst-plugins-base)
7066 ("gstreamer" ,gstreamer)
7067 ("json-glib" ,json-glib)
7068 ("libgdata" ,libgdata)
7069 ("libgee" ,libgee)
7070 ("libgphoto2" ,libgphoto2)
7071 ("libgudev" ,libgudev)
7072 ("libraw" ,libraw)
7073 ("libsoup" ,libsoup)
7074 ("libxml2" ,libxml2)
7075 ("sqlite" ,sqlite)
7076 ("webkitgtk" ,webkitgtk)))
7077 (home-page "https://wiki.gnome.org/Apps/Shotwell")
7078 (synopsis "Photo manager for GNOME 3")
7079 (description
7080 "Shotwell is a digital photo manager designed for the GNOME desktop
7081 environment. It allows you to import photos from disk or camera, organize
7082 them by keywords and events, view them in full-window or fullscreen mode, and
7083 share them with others via social networking and more.")
7084 (license license:lgpl2.1+)))
7085
7086 (define-public file-roller
7087 (package
7088 (name "file-roller")
7089 (version "3.38.0")
7090 (source (origin
7091 (method url-fetch)
7092 (uri (string-append "mirror://gnome/sources/file-roller/"
7093 (version-major+minor version) "/"
7094 "file-roller-" version ".tar.xz"))
7095 (sha256
7096 (base32
7097 "06ikvjjcgb8nxabkn2rywy76a1c7s6w8dszaxvaxldbxarp1qgbj"))))
7098 (build-system meson-build-system)
7099 (native-inputs
7100 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7101 ("intltool" ,intltool)
7102 ("itstool" ,itstool)
7103 ("pkg-config" ,pkg-config)
7104 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
7105 ("glib:bin" ,glib "bin")))
7106 ;; TODO: Add libnautilus.
7107 (inputs
7108 `(("gtk+" ,gtk+)
7109 ("gdk-pixbuf" ,gdk-pixbuf)
7110 ("json-glib" ,json-glib)
7111 ("libarchive" ,libarchive)
7112 ("libnotify" ,libnotify)
7113 ("nettle" ,nettle)
7114 ("libxml2" ,libxml2)))
7115 (synopsis "Graphical archive manager for GNOME")
7116 (description "File Roller is an archive manager for the GNOME desktop
7117 environment that allows users to view, unpack, and create compressed archives
7118 such as gzip tarballs.")
7119 (home-page "http://fileroller.sourceforge.net/")
7120 (license license:gpl2+)))
7121
7122 (define-public gnome-session
7123 (package
7124 (name "gnome-session")
7125 (version "3.34.2")
7126 (source (origin
7127 (method url-fetch)
7128 (uri (string-append "mirror://gnome/sources/" name "/"
7129 (version-major+minor version) "/"
7130 name "-" version ".tar.xz"))
7131 (sha256
7132 (base32
7133 "1qgqp97f8k2zi2ydvhds14zsjzfj7cv521r6wx5sw0qacn0p7dwb"))))
7134 (arguments
7135 '(#:glib-or-gtk? #t
7136 #:phases
7137 (modify-phases %standard-phases
7138 (add-before 'configure 'pre-configure
7139 (lambda* (#:key outputs #:allow-other-keys)
7140 ;; Use elogind instead of systemd.
7141 (substitute* "meson.build"
7142 (("libsystemd-login") "libelogind")
7143 (("and libsystemd_daemon_dep.found.*") ","))
7144 (substitute* "gnome-session/gsm-systemd.c"
7145 (("#include <systemd/sd-login.h>")
7146 "#include <elogind/sd-login.h>"))
7147 ;; Remove uses of the systemd daemon.
7148 (substitute* "gnome-session/gsm-autostart-app.c"
7149 (("#ifdef HAVE_SYSTEMD") "#if 0"))
7150 #t))
7151 (add-after 'install 'wrap-gnome-session
7152 (lambda* (#:key inputs outputs #:allow-other-keys)
7153 ;; Make sure 'gnome-session' finds the 'gsettings' program.
7154 (let ((glib (assoc-ref inputs "glib:bin"))
7155 (out (assoc-ref outputs "out")))
7156 (wrap-program (string-append out "/bin/gnome-session")
7157 `("PATH" ":" prefix (,(string-append glib "/bin"))))
7158 #t))))
7159
7160 #:configure-flags
7161 '("-Ddocbook=false" ; FIXME: disabled because of docbook validation error
7162 "-Dman=false" ; FIXME: disabled because of docbook validation error
7163 "-Dsystemd_journal=false")))
7164 (build-system meson-build-system)
7165 (native-inputs
7166 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7167 ("pkg-config" ,pkg-config)
7168 ("intltool" ,intltool)
7169 ("xsltproc" ,libxslt)
7170 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
7171 ("docbook-xsl" ,docbook-xsl)
7172 ("docbook-xml" ,docbook-xml)
7173 ("xmlto" ,xmlto)))
7174 (inputs
7175 `(("elogind" ,elogind)
7176 ("gnome-desktop" ,gnome-desktop)
7177 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7178 ("gtk+" ,gtk+)
7179 ("json-glib" ,json-glib)
7180 ("libsm" ,libsm)
7181 ("libxcomposite" ,libxcomposite)
7182 ("libxtst" ,libxtst)
7183 ("mesa" ,mesa)
7184 ("upower" ,upower)
7185 ("xtrans" ,xtrans)))
7186 (synopsis "Session manager for GNOME")
7187 (description
7188 "This package contains the GNOME session manager, as well as a
7189 configuration program to choose applications starting on login.")
7190 (home-page "https://wiki.gnome.org/Projects/SessionManagement")
7191 (license license:gpl2+)))
7192
7193 (define-public gjs
7194 (package
7195 (name "gjs")
7196 (version "1.58.3")
7197 (source (origin
7198 (method url-fetch)
7199 (uri (string-append "mirror://gnome/sources/" name "/"
7200 (version-major+minor version) "/"
7201 name "-" version ".tar.xz"))
7202 (sha256
7203 (base32
7204 "1bkksx362007zs8c31ydygb29spwa5g5kch1ad2grc2sp53wv7ya"))))
7205 (build-system gnu-build-system)
7206 (arguments
7207 '(#:phases
7208 (modify-phases %standard-phases
7209 (add-before
7210 'check 'pre-check
7211 (lambda _
7212 ;; The test suite requires a running X server.
7213 (system "Xvfb :1 &")
7214 (setenv "DISPLAY" ":1")
7215
7216 ;; For the missing /etc/machine-id.
7217 (setenv "DBUS_FATAL_WARNINGS" "0")
7218
7219 ;; Our mozjs-38 package does not compile the required Intl API
7220 ;; support for these failing tests.
7221 (substitute* "installed-tests/js/testLocale.js"
7222 ((".*toBeDefined.*") "")
7223 ((".*expect\\(datestr\\).*") ""))
7224 (substitute* "installed-tests/scripts/testCommandLine.sh"
7225 (("Valentín") "")
7226 (("☭") ""))
7227 #t)))))
7228 (native-inputs
7229 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
7230 ("pkg-config" ,pkg-config)
7231 ("xmllint" ,libxml2)
7232 ;; For testing
7233 ("dbus-launch" ,dbus)
7234 ("dconf" ,dconf) ; required to properly store settings
7235 ("uuidgen" ,util-linux)
7236 ("xvfb" ,xorg-server-for-tests)))
7237 (propagated-inputs
7238 ;; These are all in the Requires.private field of gjs-1.0.pc.
7239 `(("cairo" ,cairo)
7240 ("gobject-introspection" ,gobject-introspection)
7241 ("mozjs" ,mozjs-60)))
7242 (inputs
7243 `(("gtk+" ,gtk+)
7244 ("readline" ,readline)))
7245 (synopsis "Javascript bindings for GNOME")
7246 (home-page "https://live.gnome.org/Gjs")
7247 (description
7248 "Gjs is a javascript binding for GNOME. It's mainly based on spidermonkey
7249 javascript engine and the GObject introspection framework.")
7250 (license license:gpl2+)))
7251
7252 (define-public gedit
7253 (package
7254 (name "gedit")
7255 (version "3.34.1")
7256 (source (origin
7257 (method url-fetch)
7258 (uri (string-append "mirror://gnome/sources/" name "/"
7259 (version-major+minor version) "/"
7260 name "-" version ".tar.xz"))
7261 (sha256
7262 (base32
7263 "1inm50sdfw63by1lf4f1swb59mpyxlly0g5rdg99j5l3357fzygb"))))
7264 (build-system meson-build-system)
7265 (arguments
7266 `(#:glib-or-gtk? #t
7267 #:configure-flags
7268 ;; Otherwise, the RUNPATH will lack the final path component.
7269 (list (string-append "-Dc_link_args=-Wl,-rpath="
7270 (assoc-ref %outputs "out") "/lib/gedit"))
7271
7272 ;; XXX: Generated .h files are sometimes used before being built.
7273 #:parallel-build? #f
7274
7275 #:phases
7276 (modify-phases %standard-phases
7277 (add-after 'unpack 'skip-gtk-update-icon-cache
7278 ;; Don't create 'icon-theme.cache'.
7279 (lambda _
7280 (substitute* "build-aux/meson/post_install.py"
7281 (("gtk-update-icon-cache") (which "true")))
7282 #t))
7283 (add-after 'unpack 'patch-libgd-fetch
7284 (lambda* (#:key inputs #:allow-other-keys)
7285 (let ((libgd (assoc-ref inputs "libgd")))
7286 ;; Calling git is unnecessary because libgd is fetched as a
7287 ;; native input to this package.
7288 (substitute* "meson.build"
7289 ((".*git.*") ""))
7290 (copy-recursively libgd "subprojects/libgd")
7291 #t)))
7292 (add-after 'install 'wrap-gedit
7293 (lambda* (#:key inputs outputs #:allow-other-keys)
7294 (let ((out (assoc-ref outputs "out"))
7295 (gtksourceview (assoc-ref inputs "gtksourceview"))
7296 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
7297 (python-path (getenv "PYTHONPATH")))
7298 (wrap-program (string-append out "/bin/gedit")
7299 ;; For plugins.
7300 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
7301 `("PYTHONPATH" ":" prefix (,python-path))
7302 ;; For language-specs.
7303 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
7304 "/share")))))
7305 #t)))))
7306 (propagated-inputs
7307 `(("dconf" ,dconf)))
7308 (native-inputs
7309 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7310 ("intltool" ,intltool)
7311 ("itstool" ,itstool)
7312 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
7313 ("gobject-introspection" ,gobject-introspection)
7314 ("libgd"
7315 ,(origin
7316 (method git-fetch)
7317 (uri (git-reference
7318 (url "https://gitlab.gnome.org/GNOME/libgd")
7319 (commit "c7c7ff4e05d3fe82854219091cf116cce6b19de0")))
7320 (file-name (git-file-name "libgd" version))
7321 (sha256
7322 (base32 "16yld0ap7qj1n96h4f2sqkjmibg7xx5xwkqxdfzam2nmyfdlrrrs"))))
7323 ("pkg-config" ,pkg-config)))
7324 (inputs
7325 `(("glib" ,glib)
7326 ("gspell" ,gspell)
7327 ("gtk+" ,gtk+)
7328 ("gtksourceview" ,gtksourceview)
7329 ("libpeas" ,libpeas)
7330 ("libxml2" ,libxml2)
7331 ("iso-codes" ,iso-codes)
7332 ("python-pygobject" ,python-pygobject)
7333 ("python" ,python)
7334 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7335 ("libx11" ,libx11)
7336 ("vala" ,vala)
7337 ("adwaita-icon-theme" ,adwaita-icon-theme)
7338 ("libsoup" ,libsoup)
7339 ("gnome-desktop" ,gnome-desktop)))
7340 (home-page "https://wiki.gnome.org/Apps/Gedit")
7341 (synopsis "GNOME text editor")
7342 (description "While aiming at simplicity and ease of use, gedit is a
7343 powerful general purpose text editor.")
7344 (license license:gpl2+)))
7345
7346 (define-public zenity
7347 (package
7348 (name "zenity")
7349 (version "3.32.0")
7350 (source (origin
7351 (method url-fetch)
7352 (uri (string-append "mirror://gnome/sources/zenity/"
7353 (version-major+minor version) "/"
7354 "zenity-" version ".tar.xz"))
7355 (sha256
7356 (base32
7357 "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7"))))
7358 (build-system gnu-build-system)
7359 (native-inputs
7360 `(("gettext" ,gettext-minimal)
7361 ("itstool" ,itstool)
7362 ("pkg-config" ,pkg-config)))
7363 (inputs
7364 `(("libnotify" ,libnotify)
7365 ("webkitgtk" ,webkitgtk)))
7366 (synopsis "Display graphical dialog boxes from shell scripts")
7367 (home-page "https://www.gnome.org")
7368 (description
7369 "Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you
7370 to display dialog boxes from the commandline and shell scripts.")
7371 (license license:lgpl2.0+)))
7372
7373 (define-public mutter
7374 (package
7375 (name "mutter")
7376 (version "3.34.2")
7377 (source (origin
7378 (method url-fetch)
7379 (uri (string-append "mirror://gnome/sources/" name "/"
7380 (version-major+minor version) "/"
7381 name "-" version ".tar.xz"))
7382 (sha256
7383 (base32
7384 "0b8bz5kvs7rlwvqsg87cf6jhrrj95vgd1l235mjx8rip35ipfvrd"))))
7385 ;; NOTE: Since version 3.21.x, mutter now bundles and exports forked
7386 ;; versions of cogl and clutter. As a result, many of the inputs,
7387 ;; propagated-inputs, and configure flags used in cogl and clutter are
7388 ;; needed here as well.
7389 (build-system meson-build-system)
7390 (arguments
7391 '(;; XXX: All mutter tests fail with the following error:
7392 ;; Settings schema 'org.gnome.mutter' is not installed
7393 #:tests? #f
7394 #:glib-or-gtk? #t
7395 #:configure-flags
7396 ;; TODO: Enable profiler when Sysprof is packaged.
7397 (list "-Dprofiler=false"
7398 ;; Otherwise, the RUNPATH will lack the final path component.
7399 (string-append "-Dc_link_args=-Wl,-rpath="
7400 (assoc-ref %outputs "out") "/lib:"
7401 (assoc-ref %outputs "out") "/lib/mutter-5")
7402
7403 ;; The following flags are needed for the bundled clutter
7404 (string-append "-Dxwayland_path="
7405 (assoc-ref %build-inputs "xorg-server-xwayland")
7406 "/bin/Xwayland")
7407
7408 ;; the remaining flags are needed for the bundled cogl
7409 (string-append "-Dopengl_libname="
7410 (assoc-ref %build-inputs "mesa")
7411 "/lib/libGL.so"))
7412 #:phases (modify-phases %standard-phases
7413 (add-after 'unpack 'fix-build-with-mesa-20
7414 (lambda _
7415 ;; Mimic upstream commit a444a4c5f58ea516ad for
7416 ;; compatibility with Mesa 20. Remove for 3.36.
7417 (substitute* '("src/backends/meta-egl-ext.h"
7418 "src/backends/meta-egl.c"
7419 "src/backends/meta-egl.h")
7420 (("#include <EGL/eglext\\.h>" all)
7421 (string-append all "\n#include <EGL/eglmesaext.h>")))
7422 (substitute* "cogl/cogl/meson.build"
7423 (("#include <EGL/eglext\\.h>" all)
7424 (string-append all "\\n#include <EGL/eglmesaext.h>")))
7425 #t)))))
7426 (native-inputs
7427 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7428 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7429 ("gobject-introspection" ,gobject-introspection)
7430 ("intltool" ,intltool)
7431 ("pkg-config" ,pkg-config)
7432 ("xorg-server" ,xorg-server-for-tests)
7433 ;; For git build
7434 ("autoconf" ,autoconf)
7435 ("automake" ,automake)
7436 ("libtool" ,libtool)))
7437 (propagated-inputs
7438 `(;; libmutter.pc refers to these:
7439 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7440 ("gtk+" ,gtk+)
7441 ;; mutter-clutter-1.0.pc and mutter-cogl-1.0.pc refer to these:
7442 ("atk" ,atk)
7443 ("cairo" ,cairo)
7444 ("gdk-pixbuf" ,gdk-pixbuf)
7445 ("glib" ,glib)
7446 ("json-glib" ,json-glib)
7447 ("libinput" ,libinput)
7448 ("libx11" ,libx11)
7449 ("libxcomposite" ,libxcomposite)
7450 ("libxdamage" ,libxdamage)
7451 ("libxext" ,libxext)
7452 ("libxfixes" ,libxfixes)
7453 ("libxkbcommon" ,libxkbcommon)
7454 ("libxrandr" ,libxrandr)
7455 ("mesa" ,mesa)
7456 ("pango" ,pango)
7457 ("udev" ,eudev)
7458 ("xinput" ,xinput)))
7459 (inputs
7460 `(("elogind" ,elogind)
7461 ("gnome-desktop" ,gnome-desktop)
7462 ("gnome-settings-daemon" ,gnome-settings-daemon)
7463 ("libcanberra-gtk" ,libcanberra)
7464 ("libgudev" ,libgudev)
7465 ("libice" ,libice)
7466 ("libsm" ,libsm)
7467 ("libwacom" ,libwacom)
7468 ("libxkbfile" ,libxkbfile)
7469 ("libxrandr" ,libxrandr)
7470 ("libxtst" ,libxtst)
7471 ("pipewire" ,pipewire)
7472 ("startup-notification" ,startup-notification)
7473 ("upower-glib" ,upower)
7474 ("xkeyboard-config" ,xkeyboard-config)
7475 ("xorg-server-xwayland" ,xorg-server-xwayland)
7476 ("zenity" ,zenity)))
7477 (synopsis "Window and compositing manager")
7478 (home-page "https://www.gnome.org")
7479 (description
7480 "Mutter is a window and compositing manager that displays and manages your
7481 desktop via OpenGL. Mutter combines a sophisticated display engine using the
7482 Clutter toolkit with solid window-management logic inherited from the Metacity
7483 window manager.")
7484 (license license:gpl2+)))
7485
7486 (define-public gnome-online-accounts
7487 (package
7488 (name "gnome-online-accounts")
7489 (version "3.36.0")
7490 (source (origin
7491 (method url-fetch)
7492 (uri (string-append "mirror://gnome/sources/" name "/"
7493 (version-major+minor version) "/"
7494 name "-" version ".tar.xz"))
7495 (sha256
7496 (base32
7497 "0bigfi225g1prnxpb9lcc1i7mdcrkplwb05vilc43jik12cn53qw"))))
7498 (outputs '("out" "lib"))
7499 (build-system glib-or-gtk-build-system)
7500 (arguments
7501 `(#:configure-flags
7502 (list (string-append "--libdir=" (assoc-ref %outputs "out") "/lib"))
7503 #:phases
7504 (modify-phases %standard-phases
7505 (add-before 'configure 'patch-libgoa-output
7506 (lambda* (#:key outputs #:allow-other-keys)
7507 (let ((lib (assoc-ref outputs "lib")))
7508 (substitute* '("src/goa/Makefile.in" "src/goa/goa-1.0.pc.in")
7509 (("@prefix@") lib)
7510 (("@exec_prefix@") lib)
7511 (("@libdir@") (string-append lib "/lib"))
7512 (("@includedir@") (string-append lib "/include"))
7513 (("@datadir@") (string-append lib "/share")))
7514 ;; Make sure gobject-introspection knows about the output
7515 ;; too (see <https://bugs.gnu.org/36535>).
7516 (setenv "outputs" "out lib")
7517 #t))))))
7518 (native-inputs
7519 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7520 ("gobject-introspection" ,gobject-introspection)
7521 ("intltool" ,intltool)
7522 ("pkg-config" ,pkg-config)
7523 ("vala" ,vala)
7524 ("xsltproc" ,libxslt)))
7525 (propagated-inputs
7526 `(("glib" ,glib) ; required by goa-1.0.pc
7527 ("gtk+" ,gtk+))) ; required by goa-backend-1.0.pc
7528 (inputs
7529 `(("docbook-xsl" ,docbook-xsl)
7530 ("json-glib" ,json-glib)
7531 ("libsecret" ,libsecret)
7532 ("rest" ,rest)
7533 ("webkitgtk" ,webkitgtk)))
7534 (synopsis "Single sign-on framework for GNOME")
7535 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineAccounts")
7536 (description
7537 "GNOME Online Accounts provides interfaces so that applications and
7538 libraries in GNOME can access the user's online accounts. It has providers for
7539 Google, ownCloud, Facebook, Flickr, Windows Live, Pocket, Foursquare, Microsoft
7540 Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
7541 (license license:lgpl2.0+)))
7542
7543 (define-public evolution-data-server
7544 (package
7545 (name "evolution-data-server")
7546 (version "3.34.2")
7547 (source (origin
7548 (method url-fetch)
7549 (uri (string-append "mirror://gnome/sources/" name "/"
7550 (version-major+minor version) "/"
7551 name "-" version ".tar.xz"))
7552 (patches (search-patches "evolution-data-server-locales.patch"
7553 "evolution-data-server-libical-compat.patch"
7554 "evolution-data-server-CVE-2020-14928.patch"
7555 "evolution-data-server-CVE-2020-16117.patch"))
7556 (sha256
7557 (base32
7558 "16z85y6hhazcrp5ngw47w4x9r0j8zrj7awv5im58hhp0xs19zf1y"))))
7559 (build-system cmake-build-system)
7560 (arguments
7561 '(#:configure-flags
7562 (let* ((lib (string-append (assoc-ref %outputs "out") "/lib"))
7563 (runpaths (map (lambda (s)
7564 (string-append lib "/evolution-data-server/" s))
7565 '("addressbook-backends" "calendar-backends"
7566 "camel-providers" "credential-modules"
7567 "registry-modules"))))
7568 (list "-DENABLE_UOA=OFF" ;disable Ubuntu Online Accounts support
7569 "-DENABLE_GOOGLE=OFF" ;disable Google Contacts support
7570 "-DENABLE_GOOGLE_AUTH=OFF" ;disable Google authentication
7571 "-DENABLE_VALA_BINDINGS=ON"
7572 (string-append "-DCMAKE_INSTALL_RPATH=" lib ";"
7573 (string-append lib "/evolution-data-server;")
7574 (string-join runpaths ";"))
7575 "-DENABLE_INTROSPECTION=ON")) ;required for Vala bindings
7576 #:phases
7577 (modify-phases %standard-phases
7578 (add-after 'unpack 'disable-failing-tests
7579 (lambda _
7580 ;; tests/book-migration/test-migration.c:160:test_fetch_contacts:
7581 ;; assertion failed (g_slist_length (contacts) == 20): (0 == 20)
7582 (delete-file-recursively "tests/book-migration")
7583 (substitute* "tests/CMakeLists.txt"
7584 (("add_subdirectory\\(book-migration\\)") ""))
7585 #t))
7586 (add-after 'unpack 'patch-paths
7587 (lambda _
7588 (substitute* '("tests/test-server-utils/e-test-server-utils.c"
7589 "tests/libedata-book/data-test-utils.c"
7590 "tests/libedata-book/test-book-cache-utils.c"
7591 "tests/libedata-cal/test-cal-cache-utils.c")
7592 (("/bin/rm") (which "rm")))
7593 #t))
7594 (add-before 'configure 'dont-override-rpath
7595 (lambda _
7596 (substitute* "CMakeLists.txt"
7597 ;; CMakeLists.txt hard-codes runpath to just the libdir.
7598 ;; Remove it so the configure flag is respected.
7599 (("SET\\(CMAKE_INSTALL_RPATH .*") ""))
7600 #t)))))
7601 (native-inputs
7602 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
7603 ("gobject-introspection" ,gobject-introspection)
7604 ("gperf" ,gperf)
7605 ("intltool" ,intltool)
7606 ("pkg-config" ,pkg-config)
7607 ("vala" ,vala)
7608 ("python" ,python-wrapper)))
7609 (propagated-inputs
7610 ;; These are all in the Requires field of .pc files.
7611 `(("gtk+" ,gtk+)
7612 ("libical" ,libical)
7613 ("libsecret" ,libsecret)
7614 ("libsoup" ,libsoup)
7615 ("nss" ,nss)
7616 ("sqlite" ,sqlite)))
7617 (inputs
7618 `(("bdb" ,bdb)
7619 ("gcr" ,gcr)
7620 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
7621 ("json-glib" ,json-glib)
7622 ("libcanberra" ,libcanberra)
7623 ("libgweather" ,libgweather)
7624 ("mit-krb5" ,mit-krb5)
7625 ("openldap" ,openldap)
7626 ("webkitgtk" ,webkitgtk)))
7627 (synopsis "Store address books and calendars")
7628 (home-page "https://wiki.gnome.org/Apps/Evolution")
7629 (description
7630 "This package provides a unified backend for programs that work with
7631 contacts, tasks, and calendar information. It was originally developed for
7632 Evolution (hence the name), but is now used by other packages as well.")
7633 (license license:lgpl2.0)))
7634
7635 (define-public caribou
7636 (package
7637 (name "caribou")
7638 (version "0.4.21")
7639 (source (origin
7640 (method url-fetch)
7641 (uri (string-append "mirror://gnome/sources/" name "/"
7642 (version-major+minor version) "/"
7643 name "-" version ".tar.xz"))
7644 (sha256
7645 (base32
7646 "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
7647 (build-system glib-or-gtk-build-system)
7648 (arguments
7649 '(#:phases
7650 (modify-phases %standard-phases
7651 (add-before
7652 'build 'pre-build
7653 (lambda* (#:key outputs #:allow-other-keys)
7654 (let ((out (assoc-ref outputs "out")))
7655 ;; Use absolute shared library path in Caribou-1.0.typelib.
7656 (substitute* "libcaribou/Makefile"
7657 (("--shared-library=libcaribou.so")
7658 (string-append "--shared-library="
7659 out "/lib/libcaribou.so")))
7660 #t)))
7661 (add-after 'install 'wrap-programs
7662 (lambda* (#:key outputs #:allow-other-keys)
7663 (let* ((out (assoc-ref outputs "out"))
7664 (python-path (getenv "PYTHONPATH"))
7665 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7666 (for-each
7667 (lambda (prog)
7668 (wrap-program prog
7669 `("PYTHONPATH" ":" prefix (,python-path))
7670 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7671 (list (string-append out "/bin/caribou-preferences")
7672 (string-append out "/libexec/antler-keyboard"))))
7673 #t)))))
7674 (native-inputs
7675 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
7676 ("gobject-introspection" ,gobject-introspection)
7677 ("intltool" ,intltool)
7678 ("pkg-config" ,pkg-config)
7679 ("python" ,python)
7680 ("vala" ,vala)
7681 ("xsltproc" ,libxslt)))
7682 (propagated-inputs
7683 ;; caribou-1.0.pc refers to all these.
7684 `(("libgee" ,libgee)
7685 ("libxklavier" ,libxklavier)
7686 ("libxtst" ,libxtst)
7687 ("gtk+" ,gtk+)))
7688 (inputs
7689 `(("clutter" ,clutter)
7690 ("dconf" ,dconf)
7691 ("gtk+-2" ,gtk+-2)
7692 ("python-pygobject" ,python-pygobject)))
7693 (synopsis "Text entry and UI navigation application")
7694 (home-page "https://wiki.gnome.org/Projects/Caribou")
7695 (description
7696 "Caribou is an input assistive technology intended for switch and pointer
7697 users.")
7698 (license license:lgpl2.1)))
7699
7700 (define-public network-manager
7701 (package
7702 (name "network-manager")
7703 (version "1.24.0")
7704 (source (origin
7705 (method url-fetch)
7706 (uri (string-append "mirror://gnome/sources/NetworkManager/"
7707 (version-major+minor version) "/"
7708 "NetworkManager-" version ".tar.xz"))
7709 (patches (search-patches "network-manager-plugin-path.patch"))
7710 (sha256
7711 (base32
7712 "06044fl60bjlj7c6rqqfbm5795h61h6yzp7ch392hzcnm46wwhn3"))
7713 (modules '((guix build utils)))
7714 (snippet
7715 '(begin
7716 (substitute* "src/devices/wwan/nm-modem-manager.c"
7717 (("systemd") "elogind"))
7718 #t))))
7719 (build-system meson-build-system)
7720 (outputs '("out"
7721 "doc")) ; 8 MiB of gtk-doc HTML
7722 (arguments
7723 `(#:configure-flags
7724 (let ((out (assoc-ref %outputs "out"))
7725 (dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
7726 "/sbin/dhclient")))
7727 (list
7728 ;; Otherwise, the RUNPATH will lack the final 'NetworkManager' path
7729 ;; component.
7730 (string-append "-Dc_link_args=-Wl,-rpath="
7731 out "/lib:"
7732 out "/lib/NetworkManager/" ,version)
7733 "-Dsystemd_journal=false"
7734 "-Dsession_tracking=elogind"
7735 "-Dsuspend_resume=elogind"
7736 "-Dsystemdsystemunitdir=no"
7737 "-Dsession_tracking_consolekit=false"
7738 "-Ddhcpcd=no"
7739 "-Ddhcpcanon=no"
7740 "-Dcrypto=gnutls"
7741 "-Diwd=true"
7742 "-Dlibaudit=yes"
7743 "-Dqt=false"
7744 "-Ddocs=true"
7745 "--sysconfdir=/etc"
7746 "--localstatedir=/var"
7747 (string-append "-Dudev_dir="
7748 out "/lib/udev")
7749 (string-append "-Ddbus_conf_dir="
7750 out "/etc/dbus-1/system.d")
7751
7752 (string-append "-Ddhclient=" dhclient)))
7753 #:phases
7754 (modify-phases %standard-phases
7755 (add-before 'configure 'pre-configure
7756 (lambda _
7757 ;; These tests try to test aspects of network-manager's
7758 ;; functionality within restricted containers, but they don't
7759 ;; cope with being already in the Guix build jail as that jail
7760 ;; lacks some features that they would like to proxy over (like
7761 ;; a /sys mount).
7762 (substitute* "src/platform/tests/meson.build"
7763 ((".*test-address-linux.*") "")
7764 ((".*test-cleanup-linux.*") "")
7765 ((".*test-link-linux.*") "")
7766 ((".*test-route-linux.*") ""))
7767 (substitute* "src/devices/tests/meson.build"
7768 ((".*test-acd.*") "")
7769 ((".*test-lldp.*") ""))
7770 #t))
7771 (add-after 'unpack 'patch-docbook-xml
7772 (lambda* (#:key inputs #:allow-other-keys)
7773 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
7774 "/xml/dtd/docbook")))
7775 (substitute* (find-files "." ".*\\.(xsl|xml)")
7776 (("http://.*/docbookx\\.dtd")
7777 (string-append xmldoc "/docbookx.dtd")))
7778 #t)))
7779 (add-before 'check 'pre-check
7780 (lambda _
7781 ;; For the missing /etc/machine-id.
7782 (setenv "DBUS_FATAL_WARNINGS" "0")
7783 #t))
7784 (add-before 'install 'no-polkit-magic
7785 ;; Meson ‘magically’ invokes pkexec, which fails (not setuid).
7786 (lambda _
7787 (setenv "PKEXEC_UID" "something")
7788 #t))
7789 (add-after 'install 'move-doc
7790 (lambda* (#:key outputs #:allow-other-keys)
7791 (let ((out (assoc-ref outputs "out"))
7792 (doc (assoc-ref outputs "doc")))
7793 (mkdir-p (string-append doc "/share"))
7794 (for-each (lambda (directory)
7795 (copy-recursively (string-append out directory)
7796 (string-append doc directory))
7797 (delete-file-recursively
7798 (string-append out directory)))
7799 '("/share/doc" "/share/gtk-doc"))
7800 #t))))))
7801 (propagated-inputs
7802 `(("glib" ,glib)))
7803 (native-inputs
7804 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
7805 ("gtk-doc" ,gtk-doc/stable)
7806 ("gobject-introspection" ,gobject-introspection)
7807 ("docbook-xml" ,docbook-xml)
7808 ("docbook-xsl" ,docbook-xsl)
7809 ("intltool" ,intltool)
7810 ("libxslt" ,libxslt)
7811 ("libxml2" ,libxml2)
7812 ("pkg-config" ,pkg-config)
7813 ("vala" ,vala)
7814 ;; For testing.
7815 ("python" ,python-wrapper)
7816 ("python-dbus" ,python-dbus)
7817 ("python-pygobject" ,python-pygobject)))
7818 (inputs
7819 `(("curl" ,curl)
7820 ("cyrus-sasl" ,cyrus-sasl)
7821 ("dbus-glib" ,dbus-glib)
7822 ("dnsmasq" ,dnsmasq)
7823 ("eudev" ,eudev)
7824 ("gnutls" ,gnutls)
7825 ("iptables" ,iptables)
7826 ("isc-dhcp" ,isc-dhcp)
7827 ("iwd" ,iwd) ; wpa_supplicant alternative
7828 ("jansson" ,jansson)
7829 ("libaudit" ,audit)
7830 ("libgcrypt" ,libgcrypt)
7831 ("libgudev" ,libgudev)
7832 ("libndp" ,libndp)
7833 ("libnl" ,libnl)
7834 ("libsoup" ,libsoup)
7835 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)
7836 ("modem-manager" ,modem-manager)
7837 ("newt" ,newt) ;for the 'nmtui' console interface
7838 ("openresolv" ,openresolv) ; alternative resolv.conf manager
7839 ("polkit" ,polkit)
7840 ("ppp" ,ppp)
7841 ("readline" ,readline)
7842 ("util-linux" ,util-linux)
7843 ("elogind" ,elogind)))
7844 (synopsis "Network connection manager")
7845 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
7846 (description
7847 "NetworkManager is a system network service that manages your network
7848 devices and connections, attempting to keep active network connectivity when
7849 available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE
7850 devices, and provides VPN integration with a variety of different VPN
7851 services.")
7852 ;; “This NetworkManager project consists of the daemon, client tools, and
7853 ;; libnm. libnm is licensed LGPL-2.1+, while the rest is licensed under
7854 ;; GPL-2.0+.”
7855 (license (list license:gpl2+
7856 license:lgpl2.1+))
7857 (properties '((upstream-name . "NetworkManager")))))
7858
7859 (define-public network-manager-openvpn
7860 (package
7861 (name "network-manager-openvpn")
7862 (version "1.8.12")
7863 (source (origin
7864 (method url-fetch)
7865 (uri (string-append
7866 "mirror://gnome/sources/NetworkManager-openvpn/"
7867 (version-major+minor version)
7868 "/NetworkManager-openvpn-" version ".tar.xz"))
7869 (sha256
7870 (base32
7871 "062kh4zj7jfbwy4zzcwpq2m457bzbpm3l18s0ysnw3mgia3siz8f"))))
7872 (build-system gnu-build-system)
7873 (arguments
7874 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
7875 #:phases
7876 (modify-phases %standard-phases
7877 (add-after 'configure 'patch-path
7878 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7879 (let* ((ovpn (string-append (assoc-ref inputs "openvpn")
7880 "/sbin/openvpn"))
7881 (modprobe (string-append (assoc-ref inputs "kmod")
7882 "/bin/modprobe"))
7883 (pretty-ovpn (string-append "\"" ovpn "\"")))
7884 (for-each
7885 (lambda (file)
7886 (substitute* file
7887 (("\"/usr/local/sbin/openvpn\"") pretty-ovpn)
7888 (("\"/usr/sbin/openvpn\"") pretty-ovpn)
7889 (("\"/sbin/openvpn\"") pretty-ovpn)
7890 (("/sbin/modprobe") modprobe)))
7891 '("src/nm-openvpn-service.c" "properties/nm-openvpn-editor.c")))
7892 #t)))))
7893 (native-inputs
7894 `(("pkg-config" ,pkg-config)
7895 ("intltool" ,intltool)))
7896 (inputs
7897 `(("gtk+" ,gtk+)
7898 ("kmod" ,kmod)
7899 ("openvpn" ,openvpn)
7900 ("network-manager" ,network-manager)
7901 ("libnma" ,libnma)
7902 ("libsecret" ,libsecret)))
7903 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7904 (synopsis "OpenVPN plug-in for NetworkManager")
7905 (description
7906 "This extension of NetworkManager allows it to take care of connections
7907 to virtual private networks (VPNs) via OpenVPN.")
7908 (license license:gpl2+)
7909 (properties `((upstream-name . "NetworkManager-openvpn")))))
7910
7911 (define-public network-manager-vpnc
7912 (package
7913 (name "network-manager-vpnc")
7914 (version "1.2.6")
7915 (source (origin
7916 (method url-fetch)
7917 (uri (string-append
7918 "mirror://gnome/sources/NetworkManager-vpnc/"
7919 (version-major+minor version)
7920 "/NetworkManager-vpnc-" version ".tar.xz"))
7921 (sha256
7922 (base32
7923 "1js5lwcsqws4klgypfxl4ikmakv7v7xgddij1fj6b0y0qicx0kyy"))))
7924 (build-system gnu-build-system)
7925 (arguments
7926 `(#:configure-flags '("--enable-absolute-paths"
7927 "--localstatedir=/var"
7928 ;; libnm-glib has been removed from network-manager
7929 ;; 1de8383ad9fdfc8f552117e5d109bdfa7005634b
7930 "--with-libnm-glib=no")
7931 #:phases
7932 (modify-phases %standard-phases
7933 (add-after 'configure 'patch-path
7934 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7935 (let* ((vpnc (string-append (assoc-ref inputs "vpnc")
7936 "/sbin/vpnc"))
7937 (modprobe (string-append (assoc-ref inputs "kmod")
7938 "/bin/modprobe"))
7939 (pretty-ovpn (string-append "\"" vpnc "\"")))
7940 (substitute* "src/nm-vpnc-service.c"
7941 (("\"/usr/local/sbin/vpnc\"") pretty-ovpn)
7942 (("\"/usr/sbin/vpnc\"") pretty-ovpn)
7943 (("\"/sbin/vpnc\"") pretty-ovpn)
7944 (("/sbin/modprobe") modprobe)))
7945 #t)))))
7946 (native-inputs
7947 `(("pkg-config" ,pkg-config)
7948 ("intltool" ,intltool)))
7949 (inputs
7950 `(("gtk+" ,gtk+)
7951 ("kmod" ,kmod)
7952 ("vpnc" ,vpnc)
7953 ("network-manager" ,network-manager)
7954 ("libnma" ,libnma)
7955 ("libsecret" ,libsecret)))
7956 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
7957 (synopsis "VPNC plug-in for NetworkManager")
7958 (description
7959 "Support for configuring virtual private networks based on VPNC.
7960 Compatible with Cisco VPN concentrators configured to use IPsec.")
7961 (license license:gpl2+)
7962 (properties `((upstream-name . "NetworkManager-vpnc")))))
7963
7964 (define-public network-manager-openconnect
7965 (package
7966 (name "network-manager-openconnect")
7967 (version "1.2.6")
7968 (source (origin
7969 (method url-fetch)
7970 (uri (string-append
7971 "mirror://gnome/sources/NetworkManager-openconnect/"
7972 (version-major+minor version)
7973 "/NetworkManager-openconnect-" version ".tar.xz"))
7974 (sha256
7975 (base32
7976 "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m"))))
7977 (build-system gnu-build-system)
7978 (arguments
7979 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
7980 #:phases
7981 (modify-phases %standard-phases
7982 (add-after 'configure 'patch-path
7983 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
7984 (let* ((openconnect (string-append (assoc-ref inputs "openconnect")
7985 "/sbin/openconnect"))
7986 (modprobe (string-append (assoc-ref inputs "kmod")
7987 "/bin/modprobe"))
7988 (pretty-ovpn (string-append "\"" openconnect "\"")))
7989 (substitute* "src/nm-openconnect-service.c"
7990 (("\"/usr(/local)?/s?bin/openconnect\"") pretty-ovpn)
7991 (("/sbin/modprobe") modprobe)))
7992 #t)))))
7993 (native-inputs
7994 `(("intltool" ,intltool)
7995 ("libnma" ,libnma)
7996 ("pkg-config" ,pkg-config)))
7997 (inputs
7998 `(("gcr" ,gcr)
7999 ("gtk+" ,gtk+)
8000 ("kmod" ,kmod)
8001 ("libsecret" ,libsecret)
8002 ("libxml2" ,libxml2)
8003 ("lz4" ,lz4)
8004 ("network-manager" ,network-manager)
8005 ("openconnect" ,openconnect)))
8006 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
8007 (synopsis "OpenConnect plug-in for NetworkManager")
8008 (description
8009 "This extension of NetworkManager allows it to take care of connections
8010 to @acronym{VPNs, virtual private networks} via OpenConnect, an open client for
8011 Cisco's AnyConnect SSL VPN.")
8012 (license license:gpl2+)
8013 (properties `((upstream-name . "NetworkManager-openconnect")
8014
8015 ;; The 'etc/dbus-1/system.d/nm-openconnect-service.conf'
8016 ;; file refers to account "nm-openconnect". Specify it here
8017 ;; so that 'network-manager-service-type' creates it.
8018 (user-accounts . ("nm-openconnect"))))))
8019
8020 (define-public mobile-broadband-provider-info
8021 (package
8022 (name "mobile-broadband-provider-info")
8023 (version "20190116")
8024 (source (origin
8025 (method url-fetch)
8026 (uri (string-append
8027 "mirror://gnome/sources/"
8028 "mobile-broadband-provider-info/" version "/"
8029 "mobile-broadband-provider-info-" version ".tar.xz"))
8030 (sha256
8031 (base32
8032 "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"))))
8033 (build-system gnu-build-system)
8034 (arguments
8035 `(#:tests? #f)) ; no tests
8036 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
8037 (synopsis "Database of broadband connection configuration")
8038 (description "Database of broadband connection configuration.")
8039 (license license:public-domain)))
8040
8041 (define-public network-manager-applet
8042 (package
8043 (name "network-manager-applet")
8044 (version "1.20.0")
8045 (source (origin
8046 (method url-fetch)
8047 (uri (string-append "mirror://gnome/sources/network-manager-applet/"
8048 (version-major+minor version) "/"
8049 "network-manager-applet-" version ".tar.xz"))
8050 (sha256
8051 (base32
8052 "0lsjkbv66hn7acl2pg9h6hz4b700zzv4cjwrwjvy7043blw0bcla"))))
8053 (build-system meson-build-system)
8054 (arguments
8055 '(#:glib-or-gtk? #t
8056 #:configure-flags
8057 '("-Dappindicator=yes")))
8058 (native-inputs
8059 `(("intltool" ,intltool)
8060 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
8061 ("gobject-introspection" ,gobject-introspection)
8062 ("gtk-doc" ,gtk-doc/stable)
8063 ("pkg-config" ,pkg-config)))
8064 (propagated-inputs
8065 ;; libnm-gtk.pc refers to all these.
8066 `(("dbus-glib" ,dbus-glib)
8067 ("gtk+" ,gtk+)
8068 ("network-manager" ,network-manager)
8069 ;; nm-applet need by org.gnome.nm-applet.gschema.xml
8070 ("libnma" ,libnma)))
8071 (inputs
8072 `(("gcr" ,gcr)
8073 ("libappindicator" ,libappindicator)
8074 ("libgudev" ,libgudev)
8075 ("libnotify" ,libnotify)
8076 ("libsecret" ,libsecret)
8077 ("libselinux" ,libselinux)
8078 ("jansson" ,jansson) ; for team support
8079 ("modem-manager" ,modem-manager)))
8080 (synopsis "Applet for managing network connections")
8081 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
8082 (description
8083 "This package contains a systray applet for NetworkManager. It displays
8084 the available networks and allows users to easily switch between them.")
8085 (license license:gpl2+)))
8086
8087 (define-public libxml++
8088 (package
8089 (name "libxml++")
8090 (version "3.0.1")
8091 (source (origin
8092 (method url-fetch)
8093 (uri (string-append "mirror://gnome/sources/" name "/"
8094 (version-major+minor version) "/"
8095 name "-" version ".tar.xz"))
8096 (sha256
8097 (base32
8098 "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"))))
8099 (build-system gnu-build-system)
8100 ;; libxml++-3.0.pc refers to all these.
8101 (propagated-inputs
8102 `(("libxml2" ,libxml2)
8103 ("glibmm" ,glibmm)))
8104 (native-inputs
8105 `(("perl" ,perl)
8106 ("pkg-config" ,pkg-config)))
8107 (home-page "http://libxmlplusplus.sourceforge.net/")
8108 (synopsis "C++ wrapper for XML parser library libxml2")
8109 (description
8110 "This package provides a C++ wrapper for the XML parser library
8111 libxml2.")
8112 (license license:lgpl2.1+)))
8113
8114 (define-public libxml++-2
8115 (package
8116 (inherit libxml++)
8117 (name "libxml++")
8118 (version "2.40.1")
8119 (source (origin
8120 (method url-fetch)
8121 (uri (string-append "mirror://gnome/sources/" name "/"
8122 (version-major+minor version) "/"
8123 name "-" version ".tar.xz"))
8124 (sha256
8125 (base32
8126 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
8127
8128 (define-public gdm
8129 (package
8130 (name "gdm")
8131 (version "3.34.1")
8132 (source (origin
8133 (method url-fetch)
8134 (uri (string-append "mirror://gnome/sources/" name "/"
8135 (version-major+minor version) "/"
8136 name "-" version ".tar.xz"))
8137 (sha256
8138 (base32
8139 "1lyqvcwxhwxklbxn4xjswjzr6fhjix6h28mi9ypn34wdm9bzcpg8"))
8140 (patches (search-patches "gdm-default-session.patch"))))
8141 (build-system glib-or-gtk-build-system)
8142 (arguments
8143 '(#:configure-flags
8144 `("--without-plymouth"
8145 "--disable-systemd-journal"
8146
8147 ;; Using --with-initial-vt=7 allows GDM to run alongside TTY 1,
8148 ;; instead of having to replace it (i.e., stopping the mingetty
8149 ;; service for TTY 1 before starting GDM).
8150 "--with-initial-vt=7"
8151
8152 ;; Use '/etc/environment' for locale settings instead of the
8153 ;; systemd-specific '/etc/locale.conf'.
8154 "--with-lang-file=/etc/environment"
8155
8156 ,(string-append "--with-udevdir="
8157 (assoc-ref %outputs "out") "/lib/udev")
8158
8159 "--localstatedir=/var"
8160 ,(string-append "--with-default-path="
8161 (string-join '("/run/setuid-programs"
8162 "/run/current-system/profile/bin"
8163 "/run/current-system/profile/sbin")
8164 ":"))
8165 ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
8166 ;; XDG_DATA_DIRS so that it finds its schemas.
8167 "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
8168 #:phases
8169 (modify-phases %standard-phases
8170 (add-before
8171 'configure 'pre-configure
8172 (lambda* (#:key inputs outputs #:allow-other-keys)
8173 ;; We don't have <systemd/sd-daemon.h>.
8174 (substitute* '("common/gdm-log.c"
8175 "daemon/gdm-server.c"
8176 "daemon/gdm-session-worker.c"
8177 "daemon/gdm-session-worker-job.c")
8178 (("#include <systemd/sd-daemon\\.h>") ""))
8179 ;; Use elogind for sd-login.
8180 (substitute* '("common/gdm-common.c"
8181 "daemon/gdm-local-display-factory.c"
8182 "daemon/gdm-manager.c"
8183 "libgdm/gdm-user-switching.c")
8184 (("#include <systemd/sd-login\\.h>")
8185 "#include <elogind/sd-login.h>"))
8186 ;; Check for elogind.
8187 (substitute* '("configure")
8188 (("libsystemd")
8189 "libelogind"))
8190 ;; Look for system-installed sessions in
8191 ;; /run/current-system/profile/share.
8192 (substitute* '("libgdm/gdm-sessions.c"
8193 "daemon/gdm-session.c"
8194 "daemon/gdm-display.c"
8195 "daemon/gdm-launch-environment.c")
8196 (("DATADIR \"/x")
8197 "\"/run/current-system/profile/share/x")
8198 (("DATADIR \"/wayland")
8199 "\"/run/current-system/profile/share/wayland")
8200 (("DATADIR \"/gnome")
8201 "\"/run/current-system/profile/share/gnome"))
8202 (let ((propagate '("GDM_CUSTOM_CONF"
8203 "GDM_DBUS_DAEMON"
8204 "GDM_X_SERVER"
8205 "GDM_X_SESSION"
8206 ;; XXX: Remove this once GNOME Shell is
8207 ;; a dependency of GDM.
8208 "XDG_DATA_DIRS")))
8209 (substitute* "daemon/gdm-session.c"
8210 (("set_up_session_environment \\(self\\);")
8211 (apply string-append
8212 "set_up_session_environment (self);\n"
8213 (map (lambda (name)
8214 (string-append
8215 "gdm_session_set_environment_variable "
8216 "(self, \"" name "\","
8217 "g_getenv (\"" name "\"));\n"))
8218 propagate)))))
8219 ;; Find the configuration file using an environment variable.
8220 (substitute* '("common/gdm-settings.c")
8221 (("GDM_CUSTOM_CONF")
8222 (string-append "(g_getenv(\"GDM_CUSTOM_CONF\") != NULL"
8223 " ? g_getenv(\"GDM_CUSTOM_CONF\")"
8224 " : GDM_CUSTOM_CONF)")))
8225 ;; Use service-supplied path to X.
8226 (substitute* '("daemon/gdm-server.c")
8227 (("\\(X_SERVER X_SERVER_ARG_FORMAT")
8228 "(\"%s\" X_SERVER_ARG_FORMAT, g_getenv (\"GDM_X_SERVER\")"))
8229 (substitute* '("daemon/gdm-wayland-session.c"
8230 "daemon/gdm-x-session.c")
8231 (("\"dbus-daemon\"")
8232 "g_getenv (\"GDM_DBUS_DAEMON\")")
8233 (("X_SERVER")
8234 "g_getenv (\"GDM_X_SERVER\")")
8235 (("GDMCONFDIR \"/Xsession\"")
8236 "g_getenv (\"GDM_X_SESSION\")"))
8237 ;; Use an absolute path for GNOME Session.
8238 (substitute* "daemon/gdm-launch-environment.c"
8239 (("\"gnome-session\"")
8240 (string-append "\"" (assoc-ref inputs "gnome-session")
8241 "/bin/gnome-session\"")))
8242 ;; Do not automatically select the placeholder session.
8243 (substitute* "daemon/gdm-session.c"
8244 (("!g_str_has_suffix [(]base_name, \"\\.desktop\"[)]")
8245 (string-append "!g_str_has_suffix (base_name, \".desktop\") || "
8246 "(g_strcmp0(search_dirs[i], \""
8247 (assoc-ref outputs "out") "/share/gdm/BuiltInSessions/"
8248 "\") == 0 && "
8249 "g_strcmp0(base_name, \"fail.desktop\") == 0)"))
8250 (("g_error [(]\"GdmSession: no session desktop files installed, aborting\\.\\.\\.\"[)];")
8251 "{ self->fallback_session_name = g_strdup(\"fail\"); goto out; }"))
8252 #t))
8253 ;; GDM requires that there be at least one desktop entry
8254 ;; file. This phase installs a hidden one that simply
8255 ;; fails. This enables users to use GDM with a
8256 ;; '~/.xsession' script with no other desktop entry files.
8257 ;; See <https://bugs.gnu.org/35068>.
8258 (add-after 'install 'install-placeholder-desktop-entry
8259 (lambda* (#:key inputs outputs #:allow-other-keys)
8260 (let* ((out (assoc-ref outputs "out"))
8261 (sessions (string-append out "/share/gdm/BuiltInSessions"))
8262 (fail (string-append sessions "/fail.desktop")))
8263 (mkdir-p sessions)
8264 (with-output-to-file fail
8265 (lambda ()
8266 (for-each
8267 display
8268 '("[Desktop Entry]\n"
8269 "Encoding=UTF-8\n"
8270 "Type=Application\n"
8271 "Name=Fail\n"
8272 "Comment=This session fails immediately.\n"
8273 "NoDisplay=true\n"
8274 "Exec=false\n"))))
8275 #t)))
8276 ;; GDM needs GNOME Session to run these applications. We link
8277 ;; their autostart files in `share/gdm/greeter/autostart'
8278 ;; because GDM explicitly tells GNOME Session to look there.
8279 ;;
8280 ;; XXX: GNOME Shell should be linked here too, but currently
8281 ;; GNOME Shell depends on GDM.
8282 (add-after 'install 'link-autostart-files
8283 (lambda* (#:key inputs outputs #:allow-other-keys)
8284 (let* ((out (assoc-ref outputs "out"))
8285 (autostart (string-append out "/share/gdm/"
8286 "greeter/autostart"))
8287 (settings (assoc-ref inputs "gnome-settings-daemon")))
8288 (mkdir-p autostart)
8289 (with-directory-excursion autostart
8290 (for-each (lambda (desktop)
8291 (symlink desktop (basename desktop)))
8292 (find-files (string-append settings "/etc/xdg"))))
8293 #t))))))
8294 (native-inputs
8295 `(("dconf" ,dconf)
8296 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8297 ("gobject-introspection" ,gobject-introspection)
8298 ("intltool" ,intltool)
8299 ("itstool" ,itstool)
8300 ("pkg-config" ,pkg-config)
8301 ("xmllint" ,libxml2)))
8302 (inputs
8303 `(("accountsservice" ,accountsservice)
8304 ("check" ,check-0.14) ;for testing
8305 ("elogind" ,elogind)
8306 ("gnome-session" ,gnome-session)
8307 ("gnome-settings-daemon" ,gnome-settings-daemon)
8308 ("gtk+" ,gtk+)
8309 ("iso-codes" ,iso-codes)
8310 ("libcanberra" ,libcanberra)
8311 ("linux-pam" ,linux-pam)))
8312 (synopsis "Display manager for GNOME")
8313 (home-page "https://wiki.gnome.org/Projects/GDM/")
8314 (description
8315 "GNOME Display Manager is a system service that is responsible for
8316 providing graphical log-ins and managing local and remote displays.")
8317 (license license:gpl2+)))
8318
8319 (define-public libgtop
8320 (package
8321 (name "libgtop")
8322 (version "2.40.0")
8323 (source (origin
8324 (method url-fetch)
8325 (uri (string-append "mirror://gnome/sources/libgtop/"
8326 (version-major+minor version) "/"
8327 "libgtop-" version ".tar.xz"))
8328 (sha256
8329 (base32
8330 "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq"))))
8331 (build-system gnu-build-system)
8332 (native-inputs
8333 `(("gobject-introspection" ,gobject-introspection)
8334 ("intltool" ,intltool)
8335 ("perl" ,perl)
8336 ("pkg-config" ,pkg-config)))
8337 (propagated-inputs
8338 `(("glib" ,glib))) ; required by libgtop-2.0.pc
8339 (synopsis "Portable system access library")
8340 (home-page "https://www.gnome.org/")
8341 (description
8342 "LibGTop is a library to get system specific data such as CPU and memory
8343 usage and information about running processes.")
8344 (license license:gpl2+)))
8345
8346 (define-public gnome-bluetooth
8347 (package
8348 (name "gnome-bluetooth")
8349 (version "3.34.2")
8350 (source (origin
8351 (method url-fetch)
8352 (uri (string-append "mirror://gnome/sources/" name "/"
8353 (version-major+minor version) "/"
8354 name "-" version ".tar.xz"))
8355 (sha256
8356 (base32
8357 "0lmjvb49vgr4jjplrisv6pi29jsn1q42715i6c5a0p9ad3gawyyv"))))
8358 (build-system meson-build-system)
8359 (native-inputs
8360 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
8361 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
8362 ("gobject-introspection" ,gobject-introspection)
8363 ("intltool" ,intltool)
8364 ("pkg-config" ,pkg-config)
8365 ("xmllint" ,libxml2)))
8366 (propagated-inputs
8367 ;; gnome-bluetooth-1.0.pc refers to all these.
8368 `(("glib" ,glib)
8369 ("gtk+" ,gtk+)))
8370 (inputs
8371 `(("eudev" ,eudev)
8372 ("libcanberra" ,libcanberra)
8373 ("libnotify" ,libnotify)))
8374 (synopsis "GNOME Bluetooth subsystem")
8375 (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
8376 (description
8377 "This package contains tools for managing and manipulating Bluetooth
8378 devices using the GNOME desktop.")
8379 (license license:lgpl2.1+)))
8380
8381 (define-public gnome-control-center
8382 (package
8383 (name "gnome-control-center")
8384 (version "3.34.2")
8385 (source (origin
8386 (method url-fetch)
8387 (uri (string-append "mirror://gnome/sources/" name "/"
8388 (version-major+minor version) "/"
8389 name "-" version ".tar.xz"))
8390 (sha256
8391 (base32
8392 "054igagvmyzpaa5nwzz98gv7bk7l5dwp6g813707132si3szlpx8"))))
8393 (build-system meson-build-system)
8394 (arguments
8395 '(#:glib-or-gtk? #t
8396 #:configure-flags
8397 (list "-Dcheese=false"
8398 (string-append "-Dgnome_session_libexecdir="
8399 (assoc-ref %build-inputs "gnome-session")
8400 "/libexec"))
8401 #:phases
8402 (modify-phases %standard-phases
8403 (add-before 'configure 'patch-paths
8404 (lambda* (#:key inputs #:allow-other-keys)
8405 (let ((libc (assoc-ref inputs "libc"))
8406 (tzdata (assoc-ref inputs "tzdata"))
8407 (libgnomekbd (assoc-ref inputs "libgnomekbd"))
8408 (nm-applet (assoc-ref inputs "network-manager-applet"))
8409 (gnome-desktop (assoc-ref inputs "gnome-desktop")))
8410 (substitute* "panels/datetime/tz.h"
8411 (("/usr/share/zoneinfo/zone.tab")
8412 (string-append tzdata "/share/zoneinfo/zone.tab")))
8413 (substitute* "tests/datetime/test-endianess.c"
8414 (("/usr/share/locale")
8415 (string-append libc "/share/locale")))
8416 (substitute* "panels/region/cc-region-panel.c"
8417 (("\"gkbd-keyboard-display")
8418 (string-append "\"" libgnomekbd
8419 "/bin/gkbd-keyboard-display")))
8420 (substitute* '("panels/network/net-device-wifi.c"
8421 "panels/network/net-device.c"
8422 "panels/network/connection-editor/net-connection-editor.c")
8423 (("\"nm-connection-editor")
8424 (string-append "\"" nm-applet
8425 "/bin/nm-connection-editor")))
8426 (substitute* '("panels/user-accounts/run-passwd.c")
8427 (("/usr/bin/passwd")
8428 "/run/setuid-programs/passwd"))
8429 (substitute* "panels/info/cc-info-overview-panel.c"
8430 (("DATADIR \"/gnome/gnome-version.xml\"")
8431 (string-append "\"" gnome-desktop
8432 "/share/gnome/gnome-version.xml\"")))
8433 #t)))
8434 (add-after 'unpack 'skip-gtk-update-icon-cache
8435 ;; Don't create 'icon-theme.cache'.
8436 (lambda _
8437 (substitute* "build-aux/meson/meson_post_install.py"
8438 (("gtk-update-icon-cache") (which "true")))
8439 #t)))))
8440 (native-inputs
8441 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
8442 ("intltool" ,intltool)
8443 ("pkg-config" ,pkg-config)
8444 ("xsltproc" ,libxslt)
8445 ;; For tests
8446 ("hicolor-icon-theme" ,hicolor-icon-theme)
8447 ("python-dbusmock" ,python-dbusmock)
8448 ("xorg-server" ,xorg-server-for-tests)))
8449 (inputs
8450 `(("accountsservice" ,accountsservice)
8451 ("clutter-gtk" ,clutter-gtk)
8452 ("colord-gtk" ,colord-gtk)
8453 ("cups" ,cups)
8454 ("dconf" ,dconf)
8455 ("docbook-xsl" ,docbook-xsl)
8456 ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
8457 ("gnome-bluetooth" ,gnome-bluetooth)
8458 ("gnome-desktop" ,gnome-desktop)
8459 ("gnome-online-accounts" ,gnome-online-accounts)
8460 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
8461 ("gnome-session" ,gnome-session)
8462 ("gnome-settings-daemon" ,gnome-settings-daemon)
8463 ("grilo" ,grilo)
8464 ("gsound" ,gsound)
8465 ("ibus" ,ibus)
8466 ("libcanberra" ,libcanberra)
8467 ("libgnomekbd" ,libgnomekbd)
8468 ("libgudev" ,libgudev)
8469 ("libgtop" ,libgtop)
8470 ("libnma" ,libnma)
8471 ("libpwquality" ,libpwquality)
8472 ("libsecret" ,libsecret)
8473 ("libsoup" ,libsoup)
8474 ("libxml2" ,libxml2)
8475 ("libwacom" ,libwacom)
8476 ("mesa" ,mesa)
8477 ("mit-krb5" ,mit-krb5)
8478 ("modem-manager" ,modem-manager)
8479 ("network-manager-applet" ,network-manager-applet)
8480 ("polkit" ,polkit)
8481 ("pulseaudio" ,pulseaudio)
8482 ("smbclient" ,samba)
8483 ("tzdata" ,tzdata)
8484 ("udisks" ,udisks)
8485 ("upower" ,upower)))
8486 (synopsis "Utilities to configure the GNOME desktop")
8487 (home-page "https://www.gnome.org/")
8488 (description
8489 "This package contains configuration applets for the GNOME desktop,
8490 allowing to set accessibility configuration, desktop fonts, keyboard and mouse
8491 properties, sound setup, desktop theme and background, user interface
8492 properties, screen resolution, and other GNOME parameters.")
8493 (license license:gpl2+)))
8494
8495 (define-public gnome-shell
8496 (package
8497 (name "gnome-shell")
8498 (version "3.34.5")
8499 (source (origin
8500 (method url-fetch)
8501 (uri (string-append "mirror://gnome/sources/" name "/"
8502 (version-major+minor version) "/"
8503 name "-" version ".tar.xz"))
8504 (sha256
8505 (base32
8506 "0l3mdn7g2c22mdhrqkxvvc1pk2w0v32f2v4a6n1phvaalwcg75nj"))
8507 (patches (search-patches "gnome-shell-CVE-2020-17489.patch"
8508 "gnome-shell-theme.patch"
8509 "gnome-shell-disable-test.patch"))
8510 (modules '((guix build utils)))
8511 (snippet
8512 #~(begin
8513 ;; Copy images for use on the GDM log-in screen.
8514 (copy-file #$(file-append %artwork-repository
8515 "/slim/0.x/background.png")
8516 "data/theme/guix-background.png")
8517 (copy-file #$(file-append %artwork-repository
8518 "/logo/Guix-horizontal-white.svg")
8519 "data/theme/guix-logo.svg")
8520 #t))))
8521 (build-system meson-build-system)
8522 (arguments
8523 `(#:glib-or-gtk? #t
8524 #:disallowed-references ((,glib "bin")
8525 ,inkscape ,libxslt
8526 ,ruby-sass)
8527 #:configure-flags
8528 (list "-Dsystemd=false"
8529 ;; Otherwise, the RUNPATH will lack the final path component.
8530 (string-append "-Dc_link_args=-Wl,-rpath="
8531 (assoc-ref %outputs "out")
8532 "/lib/gnome-shell"))
8533
8534 #:modules ((guix build meson-build-system)
8535 (guix build utils)
8536 (srfi srfi-1))
8537
8538 #:phases
8539 (modify-phases %standard-phases
8540 (add-after 'unpack 'fix-keysdir
8541 (lambda* (#:key outputs #:allow-other-keys)
8542 (let* ((out (assoc-ref outputs "out"))
8543 (keysdir (string-append
8544 out "/share/gnome-control-center/keybindings")))
8545 (substitute* "meson.build"
8546 (("keysdir =.*")
8547 (string-append "keysdir = '" keysdir "'\n")))
8548 #t)))
8549 (add-before 'configure 'convert-logo-to-png
8550 (lambda* (#:key inputs #:allow-other-keys)
8551 ;; Convert the logo from SVG to PNG.
8552 (invoke "inkscape" "--export-png=data/theme/guix-logo.png"
8553 "data/theme/guix-logo.svg")))
8554 (add-before 'configure 'record-absolute-file-names
8555 (lambda* (#:key inputs #:allow-other-keys)
8556 (substitute* "js/misc/ibusManager.js"
8557 (("'ibus-daemon'")
8558 (string-append "'" (assoc-ref inputs "ibus")
8559 "/bin/ibus-daemon'")))
8560 (substitute* "js/ui/status/keyboard.js"
8561 (("'gkbd-keyboard-display'")
8562 (string-append "'" (assoc-ref inputs "libgnomekbd")
8563 "/bin/gkbd-keyboard-display'")))
8564 #t))
8565 (add-before 'check 'pre-check
8566 (lambda* (#:key inputs #:allow-other-keys)
8567 ;; Tests require a running X server.
8568 (system "Xvfb :1 &")
8569 (setenv "DISPLAY" ":1")
8570 #t))
8571 (add-after 'install 'wrap-programs
8572 (lambda* (#:key inputs outputs #:allow-other-keys)
8573 (let ((out (assoc-ref outputs "out"))
8574 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
8575 (python-path (getenv "PYTHONPATH")))
8576 (wrap-program (string-append out "/bin/gnome-shell")
8577 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
8578 ;; FIXME: gnome-shell loads these libraries with unqualified
8579 ;; names only, so they need to be on LD_LIBRARY_PATH. The
8580 ;; alternative might be to patch gnome-shell.
8581 `("LD_LIBRARY_PATH" ":" prefix
8582 ,(map (lambda (pkg)
8583 (string-append (assoc-ref inputs pkg) "/lib"))
8584 '("gdk-pixbuf"
8585 "gnome-bluetooth" "librsvg" "libgweather"))))
8586 (for-each
8587 (lambda (prog)
8588 (wrap-program (string-append out "/bin/" prog)
8589 `("PYTHONPATH" ":" prefix (,python-path))
8590 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
8591 '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
8592 #t)))
8593 (replace 'glib-or-gtk-wrap
8594 (let ((wrap (assoc-ref %standard-phases 'glib-or-gtk-wrap)))
8595 (lambda* (#:key inputs outputs #:allow-other-keys #:rest rest)
8596 ;; By default Inkscape et al. would end up in the XDG_DATA_DIRS
8597 ;; settings of the wrappers created by the 'glib-or-gtk-wrap'
8598 ;; phase. Fix that since we don't need these.
8599 (wrap #:inputs (fold alist-delete inputs
8600 '("inkscape" "intltool" "glib:bin"))
8601 #:outputs outputs)))))))
8602 (native-inputs
8603 `(("asciidoc" ,asciidoc)
8604 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8605 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8606 ("gobject-introspection" ,gobject-introspection)
8607 ("inkscape" ,inkscape)
8608 ("intltool" ,intltool)
8609 ("pkg-config" ,pkg-config)
8610 ("python" ,python)
8611 ("ruby-sass" ,ruby-sass)
8612 ("sassc" ,sassc)
8613 ("xsltproc" ,libxslt)
8614 ;; For tests
8615 ("xorg-server" ,xorg-server-for-tests)))
8616 (inputs
8617 `(("accountsservice" ,accountsservice)
8618 ("caribou" ,caribou)
8619 ("docbook-xsl" ,docbook-xsl)
8620 ("evolution-data-server" ,evolution-data-server)
8621 ("gcr" ,gcr)
8622 ("gdm" ,gdm)
8623 ("gdk-pixbuf" ,gdk-pixbuf+svg)
8624 ("gjs" ,gjs)
8625 ("gnome-autoar" ,gnome-autoar)
8626 ("gnome-bluetooth" ,gnome-bluetooth)
8627 ("gnome-desktop" ,gnome-desktop)
8628 ("gnome-settings-daemon" ,gnome-settings-daemon)
8629 ("gst-plugins-base" ,gst-plugins-base)
8630 ("ibus" ,ibus)
8631 ("libcanberra" ,libcanberra)
8632 ("libcroco" ,libcroco)
8633 ("libgnomekbd" ,libgnomekbd) ;for gkbd-keyboard-display
8634 ("libgweather" ,libgweather)
8635 ("libnma" ,libnma)
8636 ("libsoup" ,libsoup)
8637 ("mesa-headers" ,mesa-headers)
8638 ("mutter" ,mutter)
8639 ("network-manager-applet" ,network-manager-applet)
8640 ("polkit" ,polkit)
8641 ("pulseaudio" ,pulseaudio)
8642 ("python-pygobject" ,python-pygobject)
8643 ("startup-notification" ,startup-notification)
8644 ("telepathy-logger" ,telepathy-logger)
8645 ("upower" ,upower)
8646 ;; XXX: These requirements were added in 3.24, but no mention in NEWS.
8647 ;; Missing propagation? See also: <https://bugs.gnu.org/27264>
8648 ("librsvg" ,librsvg)
8649 ("geoclue" ,geoclue)))
8650 ;; CVE-2019-3820 was fixed before GNOME 3.34 was released, in upstream
8651 ;; commit f0a7395b3006360905ccdc642982f9fc67378927.
8652 (properties '((lint-hidden-cve . ("CVE-2019-3820"))))
8653 (synopsis "Desktop shell for GNOME")
8654 (home-page "https://wiki.gnome.org/Projects/GnomeShell")
8655 (description
8656 "GNOME Shell provides core user interface functions for the GNOME desktop,
8657 like switching to windows and launching applications.")
8658 (license license:gpl2+)))
8659
8660 (define-public gtk-vnc
8661 (package
8662 (name "gtk-vnc")
8663 (version "1.0.0")
8664 (source
8665 (origin
8666 (method url-fetch)
8667 (uri
8668 (string-append "mirror://gnome/sources/" name "/"
8669 (version-major+minor version) "/"
8670 name "-" version ".tar.xz"))
8671 (sha256
8672 (base32 "1060ws037v556rx1qhfrcg02859rscksrzr8fq11himdg4d1y6m8"))))
8673 (build-system meson-build-system)
8674 (arguments
8675 `(#:glib-or-gtk? #t)) ; To wrap binaries and/or compile schemas
8676 (native-inputs
8677 `(("gjs" ,gjs)
8678 ("glib:bin" ,glib "bin")
8679 ("gobject-introspection" ,gobject-introspection)
8680 ("intltool" ,intltool)
8681 ("node" ,node)
8682 ("perl" ,perl)
8683 ("pkg-config" ,pkg-config)
8684 ("python" ,python-wrapper)
8685 ("vala" ,vala)))
8686 (inputs
8687 `(("cairo" ,cairo)
8688 ("gdk-pixbuf" ,gdk-pixbuf+svg)
8689 ("glib" ,glib)
8690 ("gnutls" ,gnutls)
8691 ("libgcrypt" ,libgcrypt)
8692 ("libsasl" ,cyrus-sasl)
8693 ("pulseaudio" ,pulseaudio)
8694 ("x11" ,libx11)
8695 ("zlib" ,zlib)))
8696 (propagated-inputs
8697 `(("gtk+" ,gtk+)))
8698 (synopsis "VNC client viewer widget for GTK+")
8699 (description "GTK-VNC is a project providing client side APIs for the RFB
8700 protocol / VNC remote desktop technology. It is built using coroutines allowing
8701 it to be completely asynchronous while remaining single threaded. It provides a
8702 core C library, and bindings for Python (PyGTK).")
8703 (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
8704 (license license:lgpl2.1+)))
8705
8706 (define-public gnome-autoar
8707 (package
8708 (name "gnome-autoar")
8709 (version "0.3.3")
8710 (source (origin
8711 (method url-fetch)
8712 (uri (string-append "mirror://gnome/sources/" name "/"
8713 (version-major+minor version) "/"
8714 name "-" version ".tar.xz"))
8715 (sha256
8716 (base32
8717 "012w7rhhpxvlrnnhqy01vwzg1wxqpy8jbqgizn47wnip7bvh0917"))))
8718 (build-system glib-or-gtk-build-system)
8719 (native-inputs
8720 `(("gobject-introspection" ,gobject-introspection)
8721 ("pkg-config" ,pkg-config)))
8722 (propagated-inputs
8723 `(("libarchive" ,libarchive))) ; Required by gnome-autoar-0.pc
8724 (inputs
8725 `(("gtk+" ,gtk+)))
8726 (synopsis "Archives integration support for GNOME")
8727 (home-page "https://git.gnome.org/browse/gnome-autoar/")
8728 (description
8729 "GNOME Autoar is a library which makes creating and extracting archives
8730 easy, safe, and automatic.")
8731 (license license:lgpl2.1+)))
8732
8733 (define-public tracker
8734 (package
8735 (name "tracker")
8736 (version "2.3.5")
8737 (source (origin
8738 (method url-fetch)
8739 (uri (string-append "mirror://gnome/sources/tracker/"
8740 (version-major+minor version) "/"
8741 "tracker-" version ".tar.xz"))
8742 (sha256
8743 (base32
8744 "1ixxyqjlv7pnl4j8g6b72fkbjvzfspza8y71ppkncry8i6xkr223"))))
8745 (build-system meson-build-system)
8746 (arguments
8747 `(#:glib-or-gtk? #t
8748 #:configure-flags
8749 ;; Otherwise, the RUNPATH will lack the final path component.
8750 (list (string-append "-Dc_link_args=-Wl,-rpath="
8751 (assoc-ref %outputs "out") "/lib:"
8752 (assoc-ref %outputs "out") "/lib/tracker-2.0"))
8753 #:phases
8754 (modify-phases %standard-phases
8755 (add-before 'check 'pre-check
8756 (lambda _
8757 ;; Some tests expect to write to $HOME.
8758 (setenv "HOME" "/tmp")
8759 #t)))))
8760 (native-inputs
8761 `(("glib:bin" ,glib "bin")
8762 ("gobject-introspection" ,gobject-introspection)
8763 ("python-pygobject" ,python-pygobject)
8764 ("intltool" ,intltool)
8765 ("pkg-config" ,pkg-config)
8766 ("vala" ,vala)))
8767 (inputs
8768 `(("dbus" ,dbus)
8769 ("sqlite" ,sqlite)
8770 ("libxml2" ,libxml2)
8771 ("icu4c" ,icu4c) ; libunistring gets miner-miner-fs test to fail.
8772 ("json-glib" ,json-glib)
8773 ("libsoup" ,libsoup)))
8774 (synopsis "Metadata database, indexer and search tool")
8775 (home-page "https://wiki.gnome.org/Projects/Tracker")
8776 (description
8777 "Tracker is a search engine and triplestore for desktop, embedded and mobile.
8778
8779 It is a middleware component aimed at desktop application developers who want
8780 their apps to browse and search user content. It's not designed to be used
8781 directly by desktop users, but it provides a commandline tool named
8782 @command{tracker} for the adventurous.
8783
8784 Tracker allows your application to instantly perform full-text searches across
8785 all documents. This feature is used by the @{emph{search} bar in GNOME Files, for
8786 example. This is achieved by indexing the user's home directory in the
8787 background.
8788
8789 Tracker also allows your application to query and list content that the user
8790 has stored. For example, GNOME Music displays all the music files that are
8791 found by Tracker. This means that GNOME Music doesn't need to maintain a
8792 database of its own.
8793
8794 If you need to go beyond simple searches, Tracker is also a linked data
8795 endpoint and it understands SPARQL. ")
8796 ;; https://gitlab.gnome.org/GNOME/tracker/-/blob/master/COPYING:
8797 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
8798 ;; libstemmer is bsd-3 and the rest is gpl2+.
8799 (license (list license:gpl2+
8800 license:bsd-3
8801 license:lgpl2.1+))))
8802
8803 (define-public tracker-miners
8804 (package
8805 (name "tracker-miners")
8806 (version "2.3.4")
8807 (source (origin
8808 (method url-fetch)
8809 (uri (string-append "mirror://gnome/sources/tracker-miners/"
8810 (version-major+minor version)
8811 "/tracker-miners-" version ".tar.xz"))
8812 (sha256
8813 (base32
8814 "10wy8d8ski52k809p7s6lbw72qmg05bbmhnl00vx4qrbzqyxvc0b"))))
8815 (build-system meson-build-system)
8816 (arguments
8817 `(#:glib-or-gtk? #t
8818 #:configure-flags
8819 (list "-Dminer_rss=false" ; libgrss is required.
8820 ;; Ensure the RUNPATH contains all installed library locations.
8821 (string-append "-Dc_link_args=-Wl,-rpath="
8822 (assoc-ref %outputs "out")
8823 "/lib/tracker-miners-2.0")
8824 ;; TODO: Enable functional tests. Currently, the following error
8825 ;; appears:
8826 ;; Exception: The functional tests require DConf to be the default
8827 ;; GSettings backend. Got GKeyfileSettingsBackend instead.
8828 "-Dfunctional_tests=false")))
8829 (native-inputs
8830 `(("dbus" ,dbus)
8831 ("intltool" ,intltool)
8832 ("glib:bin" ,glib "bin")
8833 ("gobject-introspection" ,gobject-introspection)
8834 ("pkg-config" ,pkg-config)
8835 ("python-pygobject" ,python-pygobject)))
8836 (inputs
8837 `(("exempi" ,exempi)
8838 ("ffmpeg" ,ffmpeg)
8839 ("flac" ,flac)
8840 ("giflib" ,giflib)
8841 ("glib" ,glib)
8842 ("gstreamer" ,gstreamer)
8843 ("icu4c" ,icu4c)
8844 ("libcue" ,libcue)
8845 ("libexif" ,libexif)
8846 ("libgsf" ,libgsf)
8847 ("libgxps" ,libgxps)
8848 ("libiptcdata" ,libiptcdata)
8849 ("libjpeg" ,libjpeg-turbo)
8850 ("libosinfo" ,libosinfo)
8851 ("libpng" ,libpng)
8852 ("libseccomp" ,libseccomp)
8853 ("libtiff" ,libtiff)
8854 ("libvorbis" ,libvorbis)
8855 ("libxml2" ,libxml2)
8856 ("poppler" ,poppler)
8857 ("taglib" ,taglib)
8858 ("totem-pl-parser" ,totem-pl-parser)
8859 ("tracker" ,tracker)
8860 ("upower" ,upower)
8861 ("zlib" ,zlib)))
8862 (synopsis "Metadata database, indexer and search tool")
8863 (home-page "https://wiki.gnome.org/Projects/Tracker")
8864 (description
8865 "Tracker is an advanced framework for first class objects with associated
8866 metadata and tags. It provides a one stop solution for all metadata, tags,
8867 shared object databases, search tools and indexing.")
8868 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
8869 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
8870 (license (list license:gpl2+
8871 license:lgpl2.1+
8872 license:lgpl2.0+))))
8873
8874 (define-public nautilus
8875 (package
8876 (name "nautilus")
8877 (version "3.34.2")
8878 (source (origin
8879 (method url-fetch)
8880 (uri (string-append "mirror://gnome/sources/" name "/"
8881 (version-major+minor version) "/"
8882 name "-" version ".tar.xz"))
8883 (sha256
8884 (base32
8885 "19zqwq4qyyncc5wq3xls0f7rsavnw741k336p2h7kx35p4kf41mv"))))
8886 (build-system meson-build-system)
8887 (arguments
8888 '(#:glib-or-gtk? #t
8889 #:phases
8890 (modify-phases %standard-phases
8891 (add-after 'unpack 'skip-gtk-update-icon-cache
8892 ;; Don't create 'icon-theme.cache'.
8893 (lambda _
8894 (substitute* "build-aux/meson/postinstall.py"
8895 (("gtk-update-icon-cache") "true"))
8896 #t)))
8897 ;; XXX: FAIL: check-nautilus
8898 ;; Settings schema 'org.gnome.nautilus.preferences' is not installed
8899 #:tests? #f))
8900 (native-inputs
8901 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8902 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
8903 ("gobject-introspection" ,gobject-introspection)
8904 ("intltool" ,intltool)
8905 ("pkg-config" ,pkg-config)))
8906 (inputs
8907 `(("dconf" ,dconf)
8908 ("gexiv2" ,gexiv2)
8909 ("gvfs" ,gvfs)
8910 ("exempi" ,exempi)
8911 ("gnome-desktop" ,gnome-desktop)
8912 ("gnome-autoar" ,gnome-autoar)
8913 ("gst-plugins-base" ,gst-plugins-base)
8914 ("libseccomp" ,libseccomp)
8915 ("libselinux" ,libselinux)
8916 ("tracker" ,tracker)
8917 ("tracker-miners" ,tracker-miners)
8918 ;; XXX: gtk+ is required by libnautilus-extension.pc
8919 ;;
8920 ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
8921 ;; package. See:
8922 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
8923 ("gtk+" ,gtk+)
8924 ("libexif" ,libexif)
8925 ("libxml2" ,libxml2)))
8926 (synopsis "File manager for GNOME")
8927 (home-page "https://wiki.gnome.org/Apps/Nautilus")
8928 (description
8929 "Nautilus (Files) is a file manager designed to fit the GNOME desktop
8930 design and behaviour, giving the user a simple way to navigate and manage its
8931 files.")
8932 (license license:gpl2+)))
8933
8934 (define-public baobab
8935 (package
8936 (name "baobab")
8937 (version "3.38.0")
8938 (source (origin
8939 (method url-fetch)
8940 (uri (string-append
8941 "mirror://gnome/sources/" name "/"
8942 (version-major+minor version) "/"
8943 name "-" version ".tar.xz"))
8944 (sha256
8945 (base32
8946 "0ac3fbl15l836yvgw724q4whbkws9v4b6l2xy6bnp0b0g0a6i104"))))
8947 (build-system meson-build-system)
8948 (arguments
8949 '(#:glib-or-gtk? #t))
8950 (native-inputs
8951 `(("intltool" ,intltool)
8952 ("pkg-config" ,pkg-config)
8953 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8954 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8955 ("itstool" ,itstool)
8956 ("xmllint" ,libxml2)
8957 ("glib" ,glib "bin")
8958 ("vala" ,vala)))
8959 (inputs
8960 `(("gtk+" ,gtk+)))
8961 (synopsis "Disk usage analyzer for GNOME")
8962 (description
8963 "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
8964 usage in the GNOME desktop environment. It can easily scan device volumes or
8965 a specific user-requested directory branch (local or remote). Once the scan
8966 is complete it provides a graphical representation of each selected folder.")
8967 (home-page "https://wiki.gnome.org/Apps/Baobab")
8968 (license license:gpl2+)))
8969
8970 (define-public gnome-backgrounds
8971 (package
8972 (name "gnome-backgrounds")
8973 (version "3.34.0")
8974 (source
8975 (origin
8976 (method url-fetch)
8977 (uri (string-append "mirror://gnome/sources/" name "/"
8978 (version-major+minor version) "/"
8979 name "-" version ".tar.xz"))
8980 (sha256
8981 (base32
8982 "0zxlwy55fz7i582hch2wnj8zy1kzikssgaix0l2y41ccp5nzpdy2"))))
8983 (build-system meson-build-system)
8984 (native-inputs
8985 `(("intltool" ,intltool)))
8986 (home-page "https://gitlab.gnome.org/GNOME/gnome-backgrounds")
8987 (synopsis "Background images for the GNOME desktop")
8988 (description
8989 "GNOME backgrounds package contains a collection of graphics files which
8990 can be used as backgrounds in the GNOME Desktop environment. Additionally,
8991 the package creates the proper framework and directory structure so that you
8992 can add your own files to the collection.")
8993 (license (list license:gpl2+
8994 license:cc-by2.0
8995 license:cc-by-sa2.0
8996 license:cc-by-sa3.0))))
8997
8998 (define-public gnome-screenshot
8999 (package
9000 (name "gnome-screenshot")
9001 (version "3.34.0")
9002 (source
9003 (origin
9004 (method url-fetch)
9005 (uri (string-append "mirror://gnome/sources/" name "/"
9006 (version-major+minor version) "/"
9007 name "-" version ".tar.xz"))
9008 (sha256
9009 (base32
9010 "1rmiq890j7gfn5mcz31xy6jfnnxgc17dq67bhn2k9m5ylbvza2n8"))))
9011 (build-system meson-build-system)
9012 (arguments
9013 '(#:phases
9014 (modify-phases %standard-phases
9015 (add-after 'unpack 'skip-gtk-update-icon-cache
9016 ;; Don't create 'icon-theme.cache'.
9017 (lambda _
9018 (substitute* "build-aux/postinstall.py"
9019 (("gtk-update-icon-cache") "true"))
9020 #t)))))
9021 (native-inputs
9022 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
9023 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
9024 ("intltool" ,intltool)
9025 ("appstream-glib" ,appstream-glib)
9026 ("pkg-config" ,pkg-config)))
9027 (inputs
9028 `(("gtk+" ,gtk+)
9029 ("libcanberra" ,libcanberra)
9030 ("libx11" ,libx11)
9031 ("libxext" ,libxext)))
9032 (home-page "https://gitlab.gnome.org/GNOME/gnome-screenshot")
9033 (synopsis "Take pictures of your screen")
9034 (description
9035 "GNOME Screenshot is a utility used for taking screenshots of the entire
9036 screen, a window or a user defined area of the screen, with optional
9037 beautifying border effects.")
9038 (license license:gpl2+)))
9039
9040 (define-public dconf-editor
9041 (package
9042 (name "dconf-editor")
9043 (version "3.34.2")
9044 (source
9045 (origin
9046 (method url-fetch)
9047 (uri (string-append "mirror://gnome/sources/" name "/"
9048 (version-major+minor version) "/"
9049 name "-" version ".tar.xz"))
9050 (sha256
9051 (base32
9052 "0pwxjada2vaf69ihpjgp9nky54iykvxq63lp1vl8pxjanif2mk6f"))))
9053 (build-system meson-build-system)
9054 (native-inputs
9055 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
9056 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
9057 ("intltool" ,intltool)
9058 ("pkg-config" ,pkg-config)
9059 ("vala" ,vala)))
9060 (inputs
9061 `(("dconf" ,dconf)
9062 ("gtk+" ,gtk+)
9063 ("libxml2" ,libxml2)))
9064 (home-page "https://gitlab.gnome.org/GNOME/dconf-editor")
9065 (synopsis "Graphical editor for GNOME's dconf configuration system")
9066 (description
9067 "Dconf-editor is a graphical tool for browsing and editing the dconf
9068 configuration system for GNOME. It allows users to configure desktop
9069 software that do not provide their own configuration interface.")
9070 (license license:lgpl2.1+)))
9071
9072 (define-public gnome-default-applications
9073 (package
9074 (name "gnome-default-applications")
9075 (version "0")
9076 (build-system trivial-build-system)
9077 (source #f)
9078 (propagated-inputs
9079 `(("nautilus" ,nautilus)
9080 ("evince" ,evince)))
9081 (arguments
9082 `(#:modules ((guix build utils))
9083 #:builder
9084 (begin
9085 (use-modules (guix build utils))
9086 (let* ((out (assoc-ref %outputs "out"))
9087 (apps (string-append out "/share/applications")))
9088 (mkdir-p apps)
9089 (call-with-output-file (string-append apps "/gnome-mimeapps.list")
9090 (lambda (port)
9091 (format port "[Default Applications]\n")
9092 (format port "inode/directory=org.gnome.Nautilus.desktop\n")
9093 (format port "application/pdf=evince.desktop\n")
9094 (format port "application/postscript=evince.desktop\n")))
9095 #t))))
9096 (synopsis "Default MIME type associations for the GNOME desktop")
9097 (description
9098 "Given many installed packages which might handle a given MIME type, a
9099 user running the GNOME desktop probably has some preferences: for example,
9100 that folders be opened by default by the Nautilus file manager, not the Baobab
9101 disk usage analyzer. This package establishes that set of default MIME type
9102 associations for GNOME.")
9103 (license license:gpl3+)
9104 (home-page #f)))
9105
9106 (define-public libgovirt
9107 (package
9108 (name "libgovirt")
9109 (version "0.3.8")
9110 (source (origin
9111 (method url-fetch)
9112 (uri (string-append "mirror://gnome/sources/" name "/"
9113 (version-major+minor version) "/"
9114 name "-" version ".tar.xz"))
9115 (sha256
9116 (base32
9117 "1y0x1wyakj3ya33hgj0w1jkbcn50q21gmn2zyalxysqp55i1ij8x"))))
9118 (build-system glib-or-gtk-build-system)
9119 (native-inputs
9120 `(("gettext" ,gettext-minimal)
9121 ("glib:bin" ,glib "bin")
9122 ("gobject-introspection" ,gobject-introspection)
9123 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9124 ("gtk+:bin" ,gtk+ "bin")
9125 ("pkg-config" ,pkg-config)))
9126 (inputs
9127 `(("glib-networking" ,glib-networking) ; GIO plugin--for the tests
9128 ("librest" ,rest)))
9129 (synopsis "GoVirt Library")
9130 (description "GoVirt is a GObject wrapper for the oVirt REST API.")
9131 (home-page "https://gitlab.gnome.org/GNOME/libgovirt")
9132 (license license:gpl2+)))
9133
9134 (define-public gnome-weather
9135 (package
9136 (name "gnome-weather")
9137 (version "3.34.0")
9138 (source (origin
9139 (method url-fetch)
9140 (uri (string-append "mirror://gnome/sources/" name "/"
9141 (version-major+minor version) "/"
9142 name "-" version ".tar.xz"))
9143 (sha256
9144 (base32
9145 "1g63xzs17i36if923b36k9fwbk0nqa5vz6zh1k6q2axrzhhpx1i4"))))
9146 (build-system meson-build-system)
9147 (native-inputs
9148 `(("gettext" ,gettext-minimal)
9149 ("glib:bin" ,glib "bin")
9150 ("gobject-introspection" ,gobject-introspection)
9151 ("gtk+:bin" ,gtk+ "bin")
9152 ("pkg-config" ,pkg-config)))
9153 (inputs
9154 `( ;("adwaita-icon-theme" ,adwaita-icon-theme)
9155 ("appstream-glib" ,appstream-glib)
9156 ("geoclue" ,geoclue)
9157 ("gdk-pixbuf" ,gdk-pixbuf)
9158 ("gjs" ,gjs)
9159 ("gnome-desktop" ,gnome-desktop)
9160 ("libgweather" ,libgweather)))
9161 (arguments
9162 `(#:glib-or-gtk? #t
9163 #:phases
9164 (modify-phases %standard-phases
9165 (add-after 'install 'fix-desktop-file
9166 ;; FIXME: "gapplication launch org.gnome.Weather" fails for some reason.
9167 ;; See https://issues.guix.gnu.org/issue/39324.
9168 (lambda* (#:key outputs #:allow-other-keys)
9169 (let* ((out (assoc-ref outputs "out"))
9170 (applications (string-append out "/share/applications")))
9171 (substitute* (string-append applications "/org.gnome.Weather.desktop")
9172 (("Exec=.*") "Exec=gnome-weather\n"))
9173 #t)))
9174 (add-after 'install 'wrap
9175 (lambda* (#:key inputs outputs #:allow-other-keys)
9176 (let ((out (assoc-ref outputs "out"))
9177 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
9178 ;; GNOME Weather needs the typelib files of GTK+, Pango etc at runtime.
9179 (wrap-program (string-append out "/bin/gnome-weather")
9180 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
9181 #t))))))
9182 (synopsis "Weather monitoring for GNOME desktop")
9183 (description "GNOME Weather is a small application that allows you to
9184 monitor the current weather conditions for your city, or anywhere in the
9185 world.")
9186 (home-page "https://wiki.gnome.org/Apps/Weather")
9187 (license license:gpl2+)))
9188
9189 (define-public gnome
9190 (package
9191 (name "gnome")
9192 (version (package-version gnome-shell))
9193 (source #f)
9194 (build-system trivial-build-system)
9195 (arguments '(#:builder (begin (mkdir %output) #t)))
9196 (propagated-inputs
9197 ;; TODO: Add or remove packages according to:
9198 ;; <https://calc.disroot.org/2nu6mpf88ynq.html>.
9199 `(
9200 ;; GNOME-Core-OS-Services
9201 ("accountsservice" ,accountsservice)
9202 ("network-manager" ,network-manager)
9203 ("packagekit" ,packagekit)
9204 ("upower" ,upower)
9205 ;; GNOME-Core-Shell
9206 ("adwaita-icon-theme" ,adwaita-icon-theme)
9207 ("gdm" ,gdm)
9208 ("glib-networking" ,glib-networking)
9209 ("gnome-backgrounds" ,gnome-backgrounds)
9210 ("gnome-bluetooth" ,gnome-bluetooth)
9211 ("gnome-color-manager" ,gnome-color-manager)
9212 ("gnome-control-center" ,gnome-control-center)
9213 ("gnome-desktop" ,gnome-desktop)
9214 ("gnome-getting-started-docs" ,gnome-getting-started-docs)
9215 ("gnome-initial-setup" ,gnome-initial-setup)
9216 ("gnome-keyring" ,gnome-keyring)
9217 ("gnome-menus" ,gnome-menus)
9218 ("gnome-session" ,gnome-session)
9219 ("gnome-settings-daemon" ,gnome-settings-daemon)
9220 ("gnome-shell-extensions" ,gnome-shell-extensions)
9221 ("gnome-shell" ,gnome-shell)
9222 ("gnome-themes-extra" ,gnome-themes-extra)
9223 ("gnome-user-docs" ,gnome-user-docs)
9224 ("gnome-user-share" ,gnome-user-share)
9225 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9226 ("gvfs" ,gvfs)
9227 ("mutter" ,mutter)
9228 ("orca" ,orca)
9229 ("rygel" ,rygel)
9230 ("sushi" ,sushi)
9231 ;; GNOME-Core-Utilities
9232 ("baobab" ,baobab)
9233 ("cheese" ,cheese)
9234 ;; XXX: EoG requires librsvg-next, which depends on Rust, which currently
9235 ;; only works on x86_64, so exclude it on other architectures.
9236 ,@(if (string-prefix? "x86_64" (%current-system))
9237 `(("eog" ,eog))
9238 '())
9239 ("epiphany" ,epiphany)
9240 ("evince" ,evince)
9241 ("file-roller" ,file-roller)
9242 ("gedit" ,gedit)
9243 ("gnome-boxes" ,gnome-boxes)
9244 ("gnome-calculator" ,gnome-calculator)
9245 ("gnome-calendar" ,gnome-calendar)
9246 ("gnome-characters" ,gnome-characters)
9247 ("gnome-clocks" ,gnome-clocks)
9248 ("gnome-contacts" ,gnome-contacts)
9249 ("gnome-disk-utility" ,gnome-disk-utility)
9250 ("gnome-font-viewer" ,gnome-font-viewer)
9251 ("gnome-maps" ,gnome-maps)
9252 ; TODO: ("gnome-music" ,gnome-music)
9253 ; TODO: ("gnome-photos" ,gnome-photos)
9254 ("gnome-screenshot" ,gnome-screenshot)
9255 ("gnome-system-monitor" ,gnome-system-monitor)
9256 ("gnome-terminal" ,gnome-terminal)
9257 ("gnome-weather" ,gnome-weather)
9258 ("nautilus" ,nautilus)
9259 ("simple-scan" ,simple-scan)
9260 ("totem" ,totem)
9261 ("yelp" ,yelp)
9262 ;; Others
9263 ("hicolor-icon-theme" ,hicolor-icon-theme)
9264 ("gnome-online-accounts" ,gnome-online-accounts)
9265
9266 ;; Packages not part of GNOME proper but that are needed for a good
9267 ;; experience. See <https://bugs.gnu.org/39646>.
9268 ;; XXX: Find out exactly which ones are needed and why.
9269 ("font-cantarell" ,font-cantarell)
9270 ("font-dejavu" ,font-dejavu)
9271 ("at-spi2-core" ,at-spi2-core)
9272 ("dbus" ,dbus)
9273 ("dconf" ,dconf)
9274 ("desktop-file-utils" ,desktop-file-utils)
9275 ("gnome-default-applications" ,gnome-default-applications)
9276 ("gnome-themes-standard" ,gnome-themes-standard)
9277 ("gst-plugins-base" ,gst-plugins-base)
9278 ("gst-plugins-good" ,gst-plugins-good)
9279 ("gucharmap" ,gucharmap)
9280 ("pinentry-gnome3" ,pinentry-gnome3)
9281 ("pulseaudio" ,pulseaudio)
9282 ("shared-mime-info" ,shared-mime-info)
9283 ("system-config-printer" ,system-config-printer)
9284 ("xdg-user-dirs" ,xdg-user-dirs)
9285 ("yelp" ,yelp)
9286 ("zenity" ,zenity)))
9287 (synopsis "The GNU desktop environment")
9288 (home-page "https://www.gnome.org/")
9289 (description
9290 "GNOME is the graphical desktop for GNU. It includes a wide variety of
9291 applications for browsing the web, editing text and images, creating
9292 documents and diagrams, playing media, scanning, and much more.")
9293 (license license:gpl2+)))
9294
9295 (define-public byzanz
9296 ;; The last stable release of Byzanz was in 2011, but there have been many
9297 ;; useful commits made to the Byzanz repository since then that it would be
9298 ;; silly to use such an old release.
9299 (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
9300 (package
9301 (name "byzanz")
9302 (version (string-append "0.2-1." (string-take commit 7)))
9303 (source (origin
9304 (method git-fetch)
9305 (uri (git-reference
9306 (url "https://git.gnome.org/browse/byzanz")
9307 (commit commit)))
9308 (file-name (string-append name "-" version "-checkout"))
9309 (sha256
9310 (base32
9311 "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
9312 (build-system glib-or-gtk-build-system)
9313 (arguments
9314 '(#:phases
9315 (modify-phases %standard-phases
9316 (add-before 'bootstrap 'build-without-Werror
9317 (lambda _
9318 ;; The build system cleverly detects that we're not building from
9319 ;; a release tarball and turns on -Werror for GCC.
9320 ;; Unsurprisingly, there is a warning during compilation that
9321 ;; causes the build to fail unnecessarily, so we remove the flag.
9322 (substitute* '("configure.ac")
9323 (("-Werror") ""))
9324 #t)))))
9325 (native-inputs
9326 `(("autoconf" ,autoconf)
9327 ("automake" ,automake)
9328 ("gnome-common" ,gnome-common)
9329 ("intltool" ,intltool)
9330 ("libtool" ,libtool)
9331 ("pkg-config" ,pkg-config)
9332 ("which" ,which)))
9333 (inputs
9334 `(("glib" ,glib)
9335 ("gstreamer" ,gstreamer)
9336 ("gst-plugins-base" ,gst-plugins-base)
9337 ("gtk+" ,gtk+)))
9338 (synopsis "Desktop recording program")
9339 (description "Byzanz is a simple desktop recording program with a
9340 command-line interface. It can record part or all of an X display for a
9341 specified duration and save it as a GIF encoded animated image file.")
9342 (home-page "https://git.gnome.org/browse/byzanz")
9343 (license license:gpl2+))))
9344
9345 (define-public authenticator
9346 (package
9347 (name "authenticator")
9348 (version "3.32.2")
9349 (source
9350 (origin
9351 (method git-fetch)
9352 (uri (git-reference
9353 (url "https://gitlab.gnome.org/World/Authenticator")
9354 (commit version)))
9355 (file-name (git-file-name name version))
9356 (sha256
9357 (base32 "1c4r9rnrz5gazrfg0z2rcwax4nscs7z391bcjcl74k6ln3blwzpr"))))
9358 (build-system meson-build-system)
9359 (arguments
9360 `(#:glib-or-gtk? #t
9361 #:phases
9362 (modify-phases %standard-phases
9363 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
9364 (lambda* (#:key inputs outputs #:allow-other-keys)
9365 (let ((prog (string-append (assoc-ref outputs "out")
9366 "/bin/authenticator"))
9367 (pylib (string-append (assoc-ref outputs "out")
9368 "/lib/python"
9369 ,(version-major+minor
9370 (package-version python))
9371 "/site-packages")))
9372 (wrap-program prog
9373 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
9374 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
9375 #t))))))
9376 (native-inputs
9377 `(("desktop-file-utils" ,desktop-file-utils)
9378 ("gettext" ,gettext-minimal)
9379 ("glib:bin" ,glib "bin")
9380 ("gobject-introspection" ,gobject-introspection)
9381 ("gtk+:bin" ,gtk+ "bin")
9382 ("pkg-config" ,pkg-config)))
9383 (inputs
9384 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9385 ("gtk+" ,gtk+)
9386 ("libhandy" ,libhandy-0.0)
9387 ("libsecret" ,libsecret)
9388 ("python-beautifulsoup4" ,python-beautifulsoup4)
9389 ("python-pillow" ,python-pillow)
9390 ("python-pyfavicon" ,python-pyfavicon)
9391 ("python-pygobject" ,python-pygobject)
9392 ("python-pyotp" ,python-pyotp)
9393 ("python-pyzbar" ,python-pyzbar)
9394 ("yoyo-migrations" ,yoyo-migrations)
9395 ("zbar" ,zbar)))
9396 (home-page "https://gitlab.gnome.org/World/Authenticator/")
9397 (synopsis "Two-factor authentication application built for GNOME")
9398 (description
9399 "Authenticator is a two-factor authentication (2FA) application built for
9400 the GNOME desktop environment.
9401
9402 Features:
9403
9404 @itemize
9405 @item QR code scanner
9406 @item Beautiful UI
9407 @item Huge database of more than 560 supported services
9408 @item Keep your PIN tokens secure by locking the application with a password
9409 @item Automatically fetch an image for services using their favicon
9410 @item The possibility to add new services
9411 @end itemize")
9412 (license license:gpl3+)))
9413
9414 (define-public gsound
9415 (package
9416 (name "gsound")
9417 (version "1.0.2")
9418 (source (origin
9419 (method url-fetch)
9420 (uri (string-append "mirror://gnome/sources/" name "/"
9421 (version-major+minor version) "/"
9422 name "-" version ".tar.xz"))
9423 (sha256
9424 (base32
9425 "0lwfwx2c99qrp08pfaj59pks5dphsnxjgrxyadz065d8xqqgza5v"))))
9426 (build-system glib-or-gtk-build-system)
9427 (native-inputs
9428 `(("pkg-config" ,pkg-config)
9429 ("gobject-introspection" ,gobject-introspection)
9430 ("vala" ,vala)))
9431 (inputs
9432 `(("glib" ,glib)
9433 ("libcanberra" ,libcanberra)))
9434 (home-page "https://wiki.gnome.org/Projects/GSound")
9435 (synopsis "GObject wrapper for libcanberra")
9436 (description
9437 "GSound is a small library for playing system sounds. It's designed to be
9438 used via GObject Introspection, and is a thin wrapper around the libcanberra C
9439 library.")
9440 (license license:lgpl2.1+)))
9441
9442 (define-public libzapojit
9443 (package
9444 (name "libzapojit")
9445 (version "0.0.3")
9446 (source (origin
9447 (method url-fetch)
9448 (uri (string-append "mirror://gnome/sources/" name "/"
9449 (version-major+minor version) "/"
9450 name "-" version ".tar.xz"))
9451 (sha256
9452 (base32
9453 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
9454 (build-system gnu-build-system)
9455 (native-inputs
9456 `(("gobject-introspection" ,gobject-introspection)
9457 ("intltool" ,intltool)
9458 ("pkg-config" ,pkg-config)))
9459 (inputs
9460 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9461 ("json-glib" ,json-glib)
9462 ("rest" ,rest)))
9463 (home-page "https://wiki.gnome.org/Projects/Zapojit")
9464 (synopsis "Library for accessing SkyDrive and Hotmail")
9465 (description
9466 "Libzapojit is a GLib-based library for accessing online service APIs of
9467 Microsoft SkyDrive and Hotmail, using their REST protocols.")
9468 (license license:lgpl2.1+)))
9469
9470 (define-public gnome-clocks
9471 (package
9472 (name "gnome-clocks")
9473 (version "3.34.0")
9474 (source (origin
9475 (method url-fetch)
9476 (uri (string-append "mirror://gnome/sources/" name "/"
9477 (version-major+minor version) "/"
9478 name "-" version ".tar.xz"))
9479 (sha256
9480 (base32
9481 "0g7hjk55smhkd09hwa9kag3h5a12l494wj89w9smpdk3ghsmy6b1"))))
9482 (build-system meson-build-system)
9483 (arguments
9484 '(#:glib-or-gtk? #t
9485 #:phases
9486 (modify-phases %standard-phases
9487 (add-after 'unpack 'skip-gtk-update-icon-cache
9488 ;; Don't create 'icon-theme.cache'.
9489 (lambda _
9490 (substitute* "build-aux/post-install.py"
9491 (("gtk-update-icon-cache") "true"))
9492 #t)))))
9493 (native-inputs
9494 `(("vala" ,vala)
9495 ("pkg-config" ,pkg-config)
9496 ("glib" ,glib "bin") ; for glib-compile-resources
9497 ("desktop-file-utils" ,desktop-file-utils)
9498 ("gettext" ,gettext-minimal)
9499 ("itstool" ,itstool)))
9500 (inputs
9501 `(("glib" ,glib)
9502 ("gtk+" ,gtk+)
9503 ("gsound" ,gsound)
9504 ("geoclue" ,geoclue)
9505 ("geocode-glib" ,geocode-glib)
9506 ("libgweather" ,libgweather)
9507 ("gnome-desktop" ,gnome-desktop)))
9508 (home-page "https://wiki.gnome.org/Apps/Clocks")
9509 (synopsis "GNOME's clock application")
9510 (description
9511 "GNOME Clocks is a simple clocks application designed to fit the GNOME
9512 desktop. It supports world clock, stop watch, alarms, and count down timer.")
9513 (license license:gpl3+)))
9514
9515 (define-public gnome-calendar
9516 (package
9517 (name "gnome-calendar")
9518 (version "3.34.2")
9519 (source (origin
9520 (method url-fetch)
9521 (uri (string-append "mirror://gnome/sources/" name "/"
9522 (version-major+minor version) "/"
9523 name "-" version ".tar.xz"))
9524 (sha256
9525 (base32
9526 "1bnmd191044zn2kr6f5vg7sm5q59qf7z652awll1f7s6ahijr8rw"))))
9527 (build-system meson-build-system)
9528 (arguments
9529 '(#:glib-or-gtk? #t
9530 ;; gnome-calendar has to be installed before the tests can be run
9531 ;; https://bugzilla.gnome.org/show_bug.cgi?id=788224
9532 #:tests? #f
9533 #:phases
9534 (modify-phases %standard-phases
9535 (add-after 'unpack 'skip-gtk-update-icon-cache
9536 ;; Don't create 'icon-theme.cache'.
9537 (lambda _
9538 (substitute* "build-aux/meson/meson_post_install.py"
9539 (("gtk-update-icon-cache") "true"))
9540 #t)))))
9541 (native-inputs
9542 `(("gettext" ,gettext-minimal)
9543 ("glib-bin" ,glib "bin") ; For glib-compile-schemas
9544 ("pkg-config" ,pkg-config)))
9545 (inputs
9546 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9547 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9548 ("libdazzle" ,libdazzle)
9549 ("libedataserverui" ,evolution-data-server)
9550 ("libgweather" ,libgweather)
9551 ("geoclue" ,geoclue)))
9552 (propagated-inputs
9553 `(("evolution-data-server" ,evolution-data-server)))
9554 (home-page "https://wiki.gnome.org/Apps/Calendar")
9555 (synopsis "GNOME's calendar application")
9556 (description
9557 "GNOME Calendar is a simple calendar application designed to fit the GNOME
9558 desktop. It supports multiple calendars, month, week and year view.")
9559 (license license:gpl3+)))
9560
9561 (define-public gnome-todo
9562 (package
9563 (name "gnome-todo")
9564 (version "3.28.1")
9565 (source (origin
9566 (method url-fetch)
9567 (uri (string-append "mirror://gnome/sources/" name "/"
9568 (version-major+minor version) "/"
9569 name "-" version ".tar.xz"))
9570 (sha256
9571 (base32
9572 "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"))
9573 (patches
9574 (search-patches "gnome-todo-delete-esource-duplicate.patch"))))
9575 (build-system meson-build-system)
9576 (arguments
9577 '(#:glib-or-gtk? #t
9578 #:phases (modify-phases %standard-phases
9579 (add-after
9580 'install 'wrap-gnome-todo
9581 (lambda* (#:key inputs outputs #:allow-other-keys)
9582 (let ((out (assoc-ref outputs "out"))
9583 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
9584 (python-path (getenv "PYTHONPATH")))
9585 (wrap-program (string-append out "/bin/gnome-todo")
9586 ;; XXX: gi plugins are broken.
9587 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=787212
9588 ;; For plugins.
9589 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
9590 `("PYTHONPATH" ":" prefix (,python-path))))
9591 #t)))))
9592 (native-inputs
9593 `(("gettext" ,gettext-minimal)
9594 ("gobject-introspection" ,gobject-introspection)
9595 ("glib:bin" ,glib "bin") ; For glib-compile-resources
9596 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
9597 ("pkg-config" ,pkg-config)))
9598 (inputs
9599 `(("rest" ,rest) ; For Todoist plugin
9600 ("json-glib" ,json-glib) ; For Todoist plugin
9601 ("libedataserverui" ,evolution-data-server)
9602 ("libical" ,libical)
9603 ("libpeas" ,libpeas)
9604 ("python-pygobject" ,python-pygobject)
9605 ("evolution-data-server" ,evolution-data-server)
9606 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9607 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
9608 (home-page "https://wiki.gnome.org/Apps/Todo")
9609 (synopsis "GNOME's ToDo Application")
9610 (description
9611 "GNOME To Do is a simplistic personal task manager designed to perfectly
9612 fit the GNOME desktop.")
9613 (license license:gpl3+)))
9614
9615 (define-public gnome-dictionary
9616 (package
9617 (name "gnome-dictionary")
9618 (version "3.26.1")
9619 (source (origin
9620 (method url-fetch)
9621 (uri (string-append "mirror://gnome/sources/" name "/"
9622 (version-major+minor version) "/"
9623 name "-" version ".tar.xz"))
9624 (sha256
9625 (base32
9626 "007k2bq8iplg4psdpz074r5d4zxvn4s95qym4rw9hs6giljbrf0n"))))
9627 (build-system meson-build-system)
9628 (arguments '(#:glib-or-gtk? #t
9629 #:phases (modify-phases %standard-phases
9630 (add-after 'unpack 'patch-install-script
9631 (lambda _
9632 ;; This script attempts to compile glib schemas
9633 ;; and create an empty MIME database. We do
9634 ;; that elsewhere, so prevent it from running.
9635 (substitute* "build-aux/post-install.sh"
9636 (("\\[ -z \"\\$DESTDIR\" \\]") "false"))
9637 #t)))))
9638 (native-inputs
9639 `(("glib:bin" ,glib "bin")
9640 ("gobject-introspection" ,gobject-introspection)
9641 ("intltool" ,intltool)
9642 ("itstool" ,itstool)
9643 ("pkg-config" ,pkg-config)
9644 ("xmllint" ,libxml2)))
9645 (inputs
9646 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9647 ("gtk+" ,gtk+)))
9648 (home-page "https://wiki.gnome.org/Apps/Dictionary")
9649 (synopsis "Look up words in dictionary sources")
9650 (description
9651 "GNOME Dictionary can look for the definition or translation of a word in
9652 existing databases over the internet.")
9653 (license license:gpl3+)))
9654
9655 (define-public gnome-tweaks
9656 (package
9657 (name "gnome-tweaks")
9658 (version "3.34.1")
9659 (source (origin
9660 (method url-fetch)
9661 (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
9662 (version-major+minor version) "/"
9663 "gnome-tweaks-" version ".tar.xz"))
9664 (patches
9665 (list (search-patch "gnome-tweaks-search-paths.patch")))
9666 (sha256
9667 (base32
9668 "19y62dj4n5i6v4zpjllxl51dch6ndy8xs45v5aqmmq9xyfrqk5yq"))))
9669 (build-system meson-build-system)
9670 (arguments
9671 `(#:glib-or-gtk? #t
9672 #:configure-flags '("-Dlocalstatedir=/tmp"
9673 "-Dsysconfdir=/tmp")
9674 #:imported-modules ((guix build python-build-system)
9675 ,@%meson-build-system-modules)
9676 #:phases
9677 (modify-phases %standard-phases
9678 (add-after 'unpack 'skip-gtk-update-icon-cache
9679 ;; Don't create 'icon-theme.cache'.
9680 (lambda _
9681 (substitute* "meson-postinstall.py"
9682 (("gtk-update-icon-cache") "true"))
9683 #t))
9684 (add-after 'install 'wrap
9685 (@@ (guix build python-build-system) wrap))
9686 (add-after 'wrap 'wrap-gi-typelib
9687 (lambda* (#:key inputs outputs #:allow-other-keys)
9688 (let ((out (assoc-ref outputs "out"))
9689 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
9690 (wrap-program (string-append out "/bin/gnome-tweaks")
9691 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
9692 #t)))))
9693 (native-inputs
9694 `(("intltool" ,intltool)
9695 ("pkg-config" ,pkg-config)))
9696 (inputs
9697 `(("gnome-desktop" ,gnome-desktop)
9698 ("gtk+" ,gtk+)
9699 ("gobject-introspection" ,gobject-introspection)
9700 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9701 ("libhandy" ,libhandy-0.0)
9702 ("libnotify" ,libnotify)
9703 ("libsoup" ,libsoup)
9704 ("nautilus" ,nautilus)
9705 ("python" ,python)
9706 ("python-pygobject" ,python-pygobject)))
9707 (synopsis "Customize advanced GNOME 3 options")
9708 (home-page "https://wiki.gnome.org/Apps/Tweaks")
9709 (description
9710 "GNOME Tweaks allows adjusting advanced configuration settings in
9711 GNOME 3. This includes things like the fonts used in user interface elements,
9712 alternative user interface themes, changes in window management behavior,
9713 GNOME Shell appearance and extension, etc.")
9714 (license license:gpl3+)))
9715
9716 (define-public gnome-shell-extensions
9717 (package
9718 (name "gnome-shell-extensions")
9719 (version "3.34.2")
9720 (source (origin
9721 (method url-fetch)
9722 (uri (string-append "mirror://gnome/sources/" name "/"
9723 (version-major+minor version) "/"
9724 name "-" version ".tar.xz"))
9725 (sha256
9726 (base32
9727 "1f5l35l3kdkzrv49xmg1sh11vwmgjbg7hx3gb91i39bfl1snxqd1"))))
9728 (build-system meson-build-system)
9729 (arguments
9730 '(#:configure-flags '("-Dextension_set=all")))
9731 (native-inputs
9732 `(("glib:bin" ,glib "bin")
9733 ("intltool" ,intltool)
9734 ("pkg-config" ,pkg-config)))
9735 (propagated-inputs
9736 `(("glib" ,glib)))
9737 (synopsis "Extensions for GNOME Shell")
9738 (description "GNOME Shell extensions modify and extend GNOME Shell
9739 functionality and behavior.")
9740 (home-page "https://extensions.gnome.org/")
9741 (license license:gpl3+)))
9742
9743 (define-public folks
9744 (package
9745 (name "folks")
9746 (version "0.13.1")
9747 (source (origin
9748 (method url-fetch)
9749 (uri (string-append
9750 "mirror://gnome/sources/folks/"
9751 (version-major+minor version) "/"
9752 "folks-" version ".tar.xz"))
9753 (sha256
9754 (base32
9755 "0pda8sx4ap3lyri5fdrnakl29la1zkhwlc9bmnp13qigp1iwdw9x"))))
9756 (build-system meson-build-system)
9757 (arguments
9758 '(#:phases
9759 (modify-phases %standard-phases
9760 (add-after 'unpack 'skip-gtk-update-icon-cache
9761 ;; Don't create 'icon-theme.cache'.
9762 (lambda _
9763 (substitute* "meson_post_install.py"
9764 (("gtk-update-icon-cache") "true"))
9765 #t)))))
9766 (inputs
9767 `(("bdb" ,bdb)
9768 ("dbus-glib" ,dbus-glib)
9769 ("evolution-data-server" ,evolution-data-server)
9770 ("glib" ,glib)
9771 ("libgee" ,libgee)
9772 ("readline" ,readline)
9773 ("telepathy-glib" ,telepathy-glib)))
9774 (native-inputs
9775 `(("glib:bin" ,glib "bin")
9776 ("gobject-introspection" ,gobject-introspection)
9777 ("intltool" ,intltool)
9778 ("pkg-config" ,pkg-config)
9779 ("vala" ,vala)))
9780 (synopsis "Library to aggregate data about people")
9781 (description "Libfolks is a library that aggregates information about people
9782 from multiple sources (e.g., Telepathy connection managers for IM contacts,
9783 Evolution Data Server for local contacts, libsocialweb for web service contacts,
9784 etc.) to create metacontacts. It's written in Vala, which generates C code when
9785 compiled.")
9786 (home-page "https://wiki.gnome.org/Projects/Folks")
9787 (license license:lgpl2.1+)))
9788
9789 (define-public gfbgraph
9790 (package
9791 (name "gfbgraph")
9792 (version "0.2.4")
9793 (source (origin
9794 (method url-fetch)
9795 (uri (string-append
9796 "mirror://gnome/sources/gfbgraph/"
9797 (version-major+minor version) "/"
9798 "gfbgraph-" version ".tar.xz"))
9799 (sha256
9800 (base32
9801 "0yck7dwvjk16a52nafjpi0a39rxwmg0w833brj45acz76lgkjrb0"))))
9802 (build-system glib-or-gtk-build-system)
9803 (arguments
9804 `(#:tests? #f ; tests appear to require the network
9805 #:configure-flags '("--disable-static"
9806 "--enable-gtk-doc"
9807 "--enable-introspection")))
9808 (native-inputs
9809 `(("gobject-introspection" ,gobject-introspection)
9810 ("gtk-doc" ,gtk-doc/stable)
9811 ("pkg-config" ,pkg-config)
9812
9813 ;; The 0.2.4 ‘release’ tarball isn't bootstrapped.
9814 ("autoconf" ,autoconf)
9815 ("automake" ,automake)
9816 ("libtool" ,libtool)
9817 ("which" ,which)))
9818 (inputs
9819 `(("json-glib" ,json-glib)
9820 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
9821 ("rest" ,rest)))
9822 (synopsis "GLib/GObject wrapper for the Facebook API")
9823 (description "This library allows you to use the Facebook API from
9824 GLib/GObject code.")
9825 (home-page "https://wiki.gnome.org/Projects/GFBGraph")
9826 (license license:lgpl2.1+)))
9827
9828 (define-public libgnomekbd
9829 (package
9830 (name "libgnomekbd")
9831 (version "3.26.1")
9832 (source (origin
9833 (method url-fetch)
9834 (uri (string-append "mirror://gnome/sources/libgnomekbd/"
9835 (version-major+minor version) "/"
9836 "libgnomekbd-" version ".tar.xz"))
9837 (sha256
9838 (base32
9839 "0y962ykn3rr9gylj0pwpww7bi20lmhvsw6qvxs5bisbn2mih5jpp"))))
9840 (build-system gnu-build-system)
9841 (native-inputs
9842 `(("pkg-config" ,pkg-config)
9843 ("glib" ,glib "bin")
9844 ("intltool" ,intltool)))
9845 (propagated-inputs
9846 ;; Referred to in .h files and .pc.
9847 `(("glib" ,glib)
9848 ("gtk+" ,gtk+)
9849 ("libxklavier" ,libxklavier)))
9850 (home-page "https://www.gnome.org")
9851 (synopsis "GNOME keyboard configuration library")
9852 (description
9853 "Libgnomekbd is a keyboard configuration library for the GNOME desktop
9854 environment, which can notably display keyboard layouts.")
9855 (license license:lgpl2.0+)))
9856
9857 ;;; This package is no longer maintained:
9858 ;;; https://wiki.gnome.org/Attic/LibUnique
9859 ;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
9860 ;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
9861 (define-public libunique
9862 (package
9863 (name "libunique")
9864 (version "3.0.2")
9865 (source (origin
9866 (method url-fetch)
9867 (uri (string-append "mirror://gnome/sources/" name "/"
9868 (version-major+minor version) "/"
9869 name "-" version ".tar.xz"))
9870 (sha256
9871 (base32
9872 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
9873 (build-system glib-or-gtk-build-system)
9874 (arguments
9875 `(#:configure-flags '("--disable-static"
9876 "--disable-dbus" ; use gdbus
9877 "--enable-introspection")))
9878 (native-inputs
9879 `(("pkg-config" ,pkg-config)
9880 ("gobject-introspection" ,gobject-introspection)
9881 ("glib:bin" ,glib "bin")
9882 ("gtk-doc" ,gtk-doc/stable)))
9883 (propagated-inputs
9884 ;; Referred to in .h files and .pc.
9885 `(("gtk+" ,gtk+)))
9886 (home-page "https://wiki.gnome.org/Attic/LibUnique")
9887 (synopsis "Library for writing single instance applications")
9888 (description
9889 "Libunique is a library for writing single instance applications. If you
9890 launch a single instance application twice, the second instance will either just
9891 quit or will send a message to the running instance. Libunique makes it easy to
9892 write this kind of application, by providing a base class, taking care of all
9893 the IPC machinery needed to send messages to a running instance, and also
9894 handling the startup notification side.")
9895 (license license:lgpl2.1+)))
9896
9897 (define-public gnome-calculator
9898 (package
9899 (name "gnome-calculator")
9900 (version "3.34.1")
9901 (source
9902 (origin
9903 (method url-fetch)
9904 (uri (string-append "mirror://gnome/sources/" name "/"
9905 (version-major+minor version) "/"
9906 name "-" version ".tar.xz"))
9907 (sha256
9908 (base32
9909 "0lbh87255zzggqzai6543qg920y52bl4vs5m5h5087ghzg14hlsd"))))
9910 (build-system meson-build-system)
9911 (arguments '(#:glib-or-gtk? #t))
9912 (native-inputs
9913 `(("gettext" ,gettext-minimal)
9914 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
9915 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
9916 ("itstool" ,itstool)
9917 ("vala" ,vala)
9918 ("pkg-config" ,pkg-config)))
9919 (inputs
9920 `(("glib" ,glib)
9921 ("gtksourceview" ,gtksourceview)
9922 ("libgee" ,libgee)
9923 ("libsoup" ,libsoup)
9924 ("libxml2" ,libxml2)
9925 ("mpc" ,mpc)
9926 ("mpfr" ,mpfr)))
9927 (home-page "https://wiki.gnome.org/Apps/Calculator")
9928 (synopsis "Desktop calculator")
9929 (description
9930 "Calculator is an application that solves mathematical equations and
9931 is suitable as a default application in a Desktop environment.")
9932 (license license:gpl3)))
9933
9934 (define-public xpad
9935 (package
9936 (name "xpad")
9937 (version "5.1.0")
9938 (source
9939 (origin
9940 (method url-fetch)
9941 (uri (string-append "https://launchpad.net/xpad/trunk/"
9942 version "/+download/"
9943 name "-" version ".tar.bz2"))
9944 (sha256
9945 (base32
9946 "0l0g5x8g6dwhf5ksnqqrjjsycy57kcvdslkmsr6bl3vrsjd7qml3"))))
9947 (build-system gnu-build-system)
9948 (native-inputs
9949 `(("autoconf" ,autoconf)
9950 ("automake" ,automake)
9951 ("gtk+:bin" ,gtk+ "bin")
9952 ("intltool" ,intltool)
9953 ("pkg-config" ,pkg-config)))
9954 (inputs
9955 `(("gtksourceview" ,gtksourceview-3)
9956 ("libsm" ,libsm)))
9957 (home-page "https://wiki.gnome.org/Apps/Xpad")
9958 (synopsis "Virtual sticky note")
9959 (description
9960 "Xpad is a sticky note that strives to be simple, fault tolerant,
9961 and customizable. Xpad consists of independent pad windows, each is
9962 basically a text box in which notes can be written.")
9963 (license license:gpl3+)))
9964
9965 (define-public gucharmap
9966 (let ((unicode-files
9967 '(("Blocks.txt"
9968 "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1")
9969 ("DerivedAge.txt"
9970 "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6")
9971 ("NamesList.txt"
9972 "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61")
9973 ("Scripts.txt"
9974 "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx")
9975 ("UnicodeData.txt"
9976 "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap")
9977 ("Unihan.zip"
9978 "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"))))
9979 (package
9980 (name "gucharmap")
9981 (version "12.0.1")
9982 (source
9983 (origin
9984 (method url-fetch)
9985 (uri (string-append "mirror://gnome/sources/" name "/"
9986 (version-major+minor version) "/"
9987 name "-" version ".tar.xz"))
9988 (sha256
9989 (base32
9990 "0m915hm2b2d6r3vs1l80rqpssvg78pv8j6nv54yg62kzknnqmpir"))))
9991 (build-system glib-or-gtk-build-system)
9992 (arguments
9993 `(#:modules ((ice-9 match)
9994 (guix build glib-or-gtk-build-system)
9995 (guix build utils))
9996 #:configure-flags
9997 (list "--with-unicode-data=../unicode-data")
9998 #:phases
9999 (modify-phases %standard-phases
10000 (add-after 'unpack 'prepare-unicode-data
10001 (lambda* (#:key inputs #:allow-other-keys)
10002 (mkdir-p "../unicode-data")
10003 (with-directory-excursion "../unicode-data"
10004 (for-each (match-lambda
10005 ((file _)
10006 (install-file (assoc-ref inputs file) ".")))
10007 ',unicode-files))
10008 #t)))))
10009 (native-inputs
10010 `(("desktop-file-utils" ,desktop-file-utils)
10011 ("glib:bin" ,glib "bin") ; for glib-compile-resources.
10012 ("gobject-introspection" ,gobject-introspection)
10013 ("intltool" ,intltool)
10014 ("itstool" ,itstool)
10015 ("pkg-config" ,pkg-config)
10016 ,@(map (match-lambda
10017 ((file hash)
10018 `(,file
10019 ,(origin
10020 (method url-fetch)
10021 (uri (string-append
10022 "http://www.unicode.org/Public/12.0.0/ucd/"
10023 file))
10024 (sha256 (base32 hash))))))
10025 unicode-files)
10026 ("unzip" ,unzip)))
10027 (inputs
10028 `(("gtk+" ,gtk+)
10029 ("xmllint" ,libxml2)))
10030 (home-page "https://wiki.gnome.org/Apps/Gucharmap")
10031 (synopsis "Unicode character picker and font browser")
10032 (description
10033 "This program allows you to browse through all the available Unicode
10034 characters and categories for the installed fonts, and to examine their
10035 detailed properties. It is an easy way to find the character you might
10036 only know by its Unicode name or code point.")
10037 (license license:gpl3+))))
10038
10039 (define-public bluefish
10040 (package
10041 (name "bluefish")
10042 (version "2.2.12")
10043 (source
10044 (origin
10045 (method url-fetch)
10046 (uri (string-append "https://www.bennewitz.com/bluefish/stable/source/"
10047 "bluefish-" version ".tar.gz"))
10048 (sha256
10049 (base32 "09hgxq139kbkjda5y073lqhq1z1x7cx0j80jh77afrqa3y9c53wl"))))
10050 (build-system gnu-build-system)
10051 (native-inputs
10052 `(("desktop-file-utils" ,desktop-file-utils)
10053 ("intltool" ,intltool)
10054 ("pkg-config" ,pkg-config)))
10055 (inputs
10056 `(("enchant" ,enchant)
10057 ("gtk+" ,gtk+)
10058 ("python" ,python-wrapper)
10059 ("xmllint" ,libxml2)
10060 ("gucharmap" ,gucharmap)))
10061 (home-page "http://bluefish.openoffice.nl")
10062 (synopsis "Web development studio")
10063 (description
10064 "Bluefish is an editor aimed at programmers and web developers,
10065 with many options to write web sites, scripts and other code.
10066 Bluefish supports many programming and markup languages.")
10067 (license license:gpl3+)))
10068
10069 (define-public gnome-system-monitor
10070 (package
10071 (name "gnome-system-monitor")
10072 (version "3.32.1")
10073 (source
10074 (origin
10075 (method url-fetch)
10076 (uri (string-append "mirror://gnome/sources/" name "/"
10077 (version-major+minor version) "/"
10078 name "-" version ".tar.xz"))
10079 (sha256
10080 (base32
10081 "1wd43qdgjav6xamq5z5cy8fri5zr01jga3plc9w95gcia0rk3ha8"))))
10082 (build-system meson-build-system)
10083 (arguments
10084 '(#:glib-or-gtk? #t
10085 #:configure-flags '("-Dsystemd=false")))
10086 (native-inputs
10087 `(("glib:bin" ,glib "bin") ; for glib-mkenums.
10088 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
10089 ("intltool" ,intltool)
10090 ("itstool" ,itstool)
10091 ("libgtop" ,libgtop)
10092 ("polkit" ,polkit)
10093 ("pkg-config" ,pkg-config)))
10094 (inputs
10095 `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
10096 ("gtk+" ,gtk+)
10097 ("gtkmm" ,gtkmm)
10098 ("librsvg" ,librsvg)
10099 ("libxml2" ,libxml2)
10100 ("libwnck" ,libwnck)))
10101 (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
10102 (synopsis "Process viewer and system resource monitor for GNOME")
10103 (description
10104 "GNOME System Monitor is a GNOME process viewer and system monitor with
10105 an attractive, easy-to-use interface. It has features, such as a tree view
10106 for process dependencies, icons for processes, the ability to hide processes,
10107 graphical time histories of CPU/memory/swap usage and the ability to
10108 kill/reinice processes.")
10109 (license license:gpl2+)))
10110
10111 (define-public python-pyatspi
10112 (package
10113 (name "python-pyatspi")
10114 (version "2.34.0")
10115 (source (origin
10116 (method url-fetch)
10117 (uri (string-append
10118 "mirror://gnome/sources/pyatspi/"
10119 (version-major+minor version)
10120 "/pyatspi-" version ".tar.xz"))
10121 (sha256
10122 (base32
10123 "0j3f75j0zd6ca8msg7yr19qsfirqkn9fk8pqbjnlhqrpri455g4p"))))
10124 (build-system gnu-build-system)
10125 (arguments
10126 `(#:phases
10127 (modify-phases %standard-phases
10128 (add-before 'build 'fix-atk-load
10129 (lambda _
10130 (substitute* "pyatspi/__init__.py"
10131 (("from gi.repository import Atspi")
10132 "gi.require_version('Gtk', '3.0')
10133 from gi.repository import Gtk
10134 from gi.repository import Atspi"))
10135 #t)))))
10136 (native-inputs
10137 `(("pkg-config" ,pkg-config)))
10138 (inputs
10139 `(("python" ,python)))
10140 (propagated-inputs
10141 `(("python-pygobject" ,python-pygobject)))
10142 (synopsis "Python client bindings for D-Bus AT-SPI")
10143 (home-page "https://wiki.linuxfoundation.org/accessibility\
10144 /atk/at-spi/at-spi_on_d-bus")
10145 (description
10146 "This package includes a python client library for the AT-SPI D-Bus
10147 accessibility infrastructure.")
10148 (license license:lgpl2.0)
10149 (properties '((upstream-name . "pyatspi")))))
10150
10151 (define-public python2-pyatspi
10152 (package/inherit python-pyatspi
10153 (name "python2-pyatspi")
10154 (inputs
10155 `(("python" ,python-2)))
10156 (propagated-inputs
10157 `(("python-pygobject" ,python2-pygobject)))))
10158
10159 (define-public orca
10160 (package
10161 (name "orca")
10162 (version "3.34.1")
10163 (source (origin
10164 (method url-fetch)
10165 (uri (string-append
10166 "mirror://gnome/sources/" name "/"
10167 (version-major+minor version) "/"
10168 name "-" version ".tar.xz"))
10169 (sha256
10170 (base32
10171 "1q38n7hyshkiszmn361skxjynxr31lcms7a1iny6d0zlpmh1vnk4"))))
10172 (build-system glib-or-gtk-build-system)
10173 (arguments
10174 '(#:phases
10175 (modify-phases %standard-phases
10176 (add-before 'configure 'qualify-xkbcomp
10177 (lambda* (#:key inputs #:allow-other-keys)
10178 (let ((xkbcomp (string-append
10179 (assoc-ref inputs "xkbcomp") "/bin/xkbcomp")))
10180 (substitute* "src/orca/orca.py"
10181 (("'xkbcomp'") (format #f "'~a'" xkbcomp))))
10182 #t))
10183 (add-after 'install 'wrap-orca
10184 (lambda* (#:key outputs #:allow-other-keys)
10185 (let* ((out (assoc-ref outputs "out"))
10186 (prog (string-append out "/bin/orca")))
10187 (wrap-program prog
10188 `("GI_TYPELIB_PATH" ":" prefix
10189 (,(getenv "GI_TYPELIB_PATH")))
10190 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
10191 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
10192 `("PYTHONPATH" ":" prefix
10193 (,(getenv "PYTHONPATH")))))
10194 #t)))))
10195 (native-inputs
10196 `(("intltool" ,intltool)
10197 ("itstool" ,itstool)
10198 ("pkg-config" ,pkg-config)
10199 ("xmllint" ,libxml2)))
10200 (inputs
10201 `(("at-spi2-atk" ,at-spi2-atk)
10202 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10203 ("gstreamer" ,gstreamer)
10204 ("gst-plugins-base" ,gst-plugins-base)
10205 ("gst-plugins-good" ,gst-plugins-good)
10206 ("gtk+" ,gtk+)
10207 ("python" ,python)
10208 ("python-pygobject" ,python-pygobject)
10209 ("python-pyatspi" ,python-pyatspi)
10210 ("python-speechd" ,speech-dispatcher)
10211 ("xkbcomp" ,xkbcomp)))
10212 (synopsis
10213 "Screen reader for individuals who are blind or visually impaired")
10214 (home-page "https://wiki.gnome.org/Projects/Orca")
10215 (description
10216 "Orca is a screen reader that provides access to the graphical desktop
10217 via speech and refreshable braille. Orca works with applications and toolkits
10218 that support the Assistive Technology Service Provider Interface (AT-SPI).")
10219 (license license:lgpl2.1+)))
10220
10221 (define-public gspell
10222 (package
10223 (name "gspell")
10224 (version "1.8.2")
10225 (source (origin
10226 (method url-fetch)
10227 (uri (string-append "mirror://gnome/sources/" name "/"
10228 (version-major+minor version) "/"
10229 name "-" version ".tar.xz"))
10230 (sha256
10231 (base32
10232 "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
10233 (patches (search-patches "gspell-dash-test.patch"))))
10234 (build-system glib-or-gtk-build-system)
10235 (arguments
10236 '(#:configure-flags (list "--enable-vala")
10237 #:phases
10238 (modify-phases %standard-phases
10239 (add-before 'check 'pre-check
10240 (lambda* (#:key inputs #:allow-other-keys)
10241 ;; Tests require a running X server.
10242 (system "Xvfb :1 &")
10243 (setenv "DISPLAY" ":1")
10244
10245 ;; For the missing /etc/machine-id.
10246 (setenv "DBUS_FATAL_WARNINGS" "0")
10247
10248 ;; Allow Enchant and its Aspell backend to find the en_US
10249 ;; dictionary.
10250 (setenv "ASPELL_DICT_DIR"
10251 (string-append (assoc-ref inputs "aspell-dict-en")
10252 "/lib/aspell"))
10253 #t)))))
10254 (inputs
10255 `(("gtk+" ,gtk+)
10256 ("glib" ,glib)
10257 ("iso-codes" ,iso-codes)))
10258 (native-inputs
10259 `(("glib" ,glib "bin")
10260 ("gobject-introspection" ,gobject-introspection)
10261 ("pkg-config" ,pkg-config)
10262 ("vala" ,vala) ;for VAPI, needed by Geary
10263 ("xmllint" ,libxml2)
10264
10265 ;; For tests.
10266 ("aspell-dict-en" ,aspell-dict-en)
10267 ("xorg-server" ,xorg-server-for-tests)))
10268 (propagated-inputs
10269 `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
10270 (home-page "https://wiki.gnome.org/Projects/gspell")
10271 (synopsis "GNOME's alternative spell checker")
10272 (description
10273 "gspell provides a flexible API to add spell-checking to a GTK+
10274 application. It provides a GObject API, spell-checking to text entries and
10275 text views, and buttons to choose the language.")
10276 (license license:gpl2+)))
10277
10278 (define-public gnome-planner
10279 (package
10280 (name "gnome-planner")
10281 (version "0.14.6")
10282 (source (origin
10283 (method url-fetch)
10284 (uri (string-append "mirror://gnome/sources/planner/"
10285 (version-major+minor version) "/planner-"
10286 version ".tar.xz"))
10287 (sha256
10288 (base32
10289 "15h6ps58giy5r1g66sg1l4xzhjssl362mfny2x09khdqsvk2j38k"))))
10290 (build-system glib-or-gtk-build-system)
10291 (arguments
10292 ;; Disable the Python bindings because the Planner program functions
10293 ;; without them, and (as of 2017-06-13) we have not packaged all of
10294 ;; packages that are necessary for building the Python bindings.
10295 `(#:configure-flags
10296 (list "--disable-python"
10297 ,@(if (string=? "aarch64-linux" (%current-system))
10298 '("--build=aarch64-unknown-linux-gnu")
10299 '()))))
10300 (inputs
10301 `(("libgnomecanvas" ,libgnomecanvas)
10302 ("libgnomeui" ,libgnomeui)
10303 ("libglade" ,libglade)
10304 ("gnome-vfs" ,gnome-vfs)
10305 ("gconf" ,gconf)
10306 ("libxml2" ,libxml2)
10307 ("libxslt" ,libxslt)
10308 ("gtk+" ,gtk+)
10309 ("glib" ,glib)))
10310 (native-inputs
10311 `(("intltool" ,intltool)
10312 ("scrollkeeper" ,scrollkeeper)
10313 ("pkg-config" ,pkg-config)))
10314 (home-page "https://wiki.gnome.org/Apps/Planner")
10315 (synopsis "Project management software for the GNOME desktop")
10316 (description
10317 "GNOME Planner is a project management tool based on the Work Breakdown
10318 Structure (WBS). Its goal is to enable you to easily plan projects. Based on
10319 the resources, tasks, and constraints that you define, Planner generates
10320 various views into a project. For example, Planner can show a Gantt chart of
10321 the project. It can show a detailed summary of tasks including their
10322 duration, cost, and current progress. It can also show a report of resource
10323 utilization that highlights under-utilized and over-utilized resources. These
10324 views can be printed as PDF or PostScript files, or exported to HTML.")
10325 (license license:gpl2+)))
10326
10327 (define-public lollypop
10328 (package
10329 (name "lollypop")
10330 (version "1.4.6")
10331 (source
10332 (origin
10333 (method url-fetch)
10334 (uri (string-append "https://adishatz.org/lollypop/"
10335 "lollypop-" version ".tar.xz"))
10336 (sha256
10337 (base32 "1hlahr50gsagx1ifcdk4yn43xps6w0vqn0gnd6xckfc7qmg1pgq7"))))
10338 (build-system meson-build-system)
10339 (arguments
10340 `(#:imported-modules
10341 (,@%meson-build-system-modules
10342 (guix build python-build-system))
10343 #:modules
10344 ((guix build meson-build-system)
10345 ((guix build python-build-system) #:prefix python:)
10346 (guix build utils))
10347 #:glib-or-gtk? #t
10348 #:tests? #f ; no test suite
10349 #:phases
10350 (modify-phases %standard-phases
10351 (add-after 'install 'wrap-program
10352 (lambda* (#:key outputs #:allow-other-keys)
10353 (let ((out (assoc-ref outputs "out"))
10354 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
10355 (wrap-program (string-append out "/bin/lollypop")
10356 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
10357 #t))
10358 (add-after 'install 'wrap-python
10359 (assoc-ref python:%standard-phases 'wrap)))))
10360 (native-inputs
10361 `(("intltool" ,intltool)
10362 ("itstool" ,itstool)
10363 ("glib:bin" ,glib "bin") ; For glib-compile-resources
10364 ("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
10365 ("pkg-config" ,pkg-config)))
10366 (inputs
10367 `(("glib-networking" ,glib-networking)
10368 ("gobject-introspection" ,gobject-introspection)
10369 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10370 ("gst-plugins-base" ,gst-plugins-base)
10371 ("libnotify" ,libnotify)
10372 ("libsecret" ,libsecret)
10373 ("libhandy" ,libhandy)
10374 ("libsoup" ,libsoup)
10375 ("python" ,python)
10376 ("python-beautifulsoup4" ,python-beautifulsoup4)
10377 ("python-gst" ,python-gst)
10378 ("python-pil" ,python-pillow)
10379 ("python-pycairo" ,python-pycairo)
10380 ("python-pygobject" ,python-pygobject)
10381 ("python-pylast" ,python-pylast)
10382 ("totem-pl-parser" ,totem-pl-parser)
10383 ("webkitgtk" ,webkitgtk)))
10384 (propagated-inputs
10385 `(;; gst-plugins-base is required to start Lollypop,
10386 ;; the others are required to play streaming.
10387 ("gst-plugins-good" ,gst-plugins-good)
10388 ("gst-plugins-ugly" ,gst-plugins-ugly)))
10389 (home-page "https://wiki.gnome.org/Apps/Lollypop")
10390 (synopsis "GNOME music playing application")
10391 (description
10392 "Lollypop is a music player designed to play well with GNOME desktop.
10393 Lollypop plays audio formats such as mp3, mp4, ogg and flac and gets information
10394 from artists and tracks from the web. It also fetches cover artworks
10395 automatically and it can stream songs from online music services and charts.")
10396 (license license:gpl3+)))
10397
10398 (define-public gnome-video-effects
10399 (package
10400 (name "gnome-video-effects")
10401 (version "0.5.0")
10402 (source (origin
10403 (method url-fetch)
10404 (uri (string-append "mirror://gnome/sources/" name "/"
10405 (version-major+minor version) "/" name "-"
10406 version ".tar.xz"))
10407 (sha256
10408 (base32
10409 "1j6h98whgkcxrh30bwvnxvyqxrxchgpdgqhl0j71xz7x72dqxijd"))))
10410 (build-system meson-build-system)
10411 (native-inputs
10412 `(("gettext" ,gettext-minimal)
10413 ("pkg-config" ,pkg-config)))
10414 (home-page "https://wiki.gnome.org/Projects/GnomeVideoEffects")
10415 (synopsis "Video effects for Cheese and other GNOME applications")
10416 (description
10417 "A collection of GStreamer video filters and effects to be used in
10418 photo-booth-like software, such as Cheese.")
10419 (license license:gpl2+)))
10420
10421 (define-public cheese
10422 (package
10423 (name "cheese")
10424 (version "3.38.0")
10425 (source (origin
10426 (method url-fetch)
10427 (uri (string-append "mirror://gnome/sources/" name "/"
10428 (version-major+minor version) "/" name "-"
10429 version ".tar.xz"))
10430 (sha256
10431 (base32
10432 "0vyim2avlgq3a48rgdfz5g21kqk11mfb53b2l883340v88mp7ll8"))))
10433 (arguments
10434 `(#:glib-or-gtk? #t
10435 ;; Tests require GDK.
10436 #:tests? #f
10437 #:phases
10438 (modify-phases %standard-phases
10439 (add-after 'unpack 'skip-gtk-update-icon-cache
10440 (lambda _
10441 ;; Don't create 'icon-theme.cache'
10442 (substitute* "meson_post_install.py"
10443 (("gtk-update-icon-cache") (which "true")))
10444 #t))
10445 (add-after 'unpack 'patch-docbook-xml
10446 (lambda* (#:key inputs #:allow-other-keys)
10447 ;; Avoid a network connection attempt during the build.
10448 (substitute* '("docs/reference/cheese.xml"
10449 "docs/reference/cheese-docs.xml")
10450 (("http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd")
10451 (string-append (assoc-ref inputs "docbook-xml")
10452 "/xml/dtd/docbook/docbookx.dtd")))
10453 #t))
10454 (add-after 'install 'wrap-cheese
10455 (lambda* (#:key inputs outputs #:allow-other-keys)
10456 (let ((out (assoc-ref outputs "out"))
10457 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
10458 (wrap-program (string-append out "/bin/cheese")
10459 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
10460 #t)))))
10461 (build-system meson-build-system)
10462 (native-inputs
10463 `(("docbook-xsl" ,docbook-xsl)
10464 ("docbook-xml" ,docbook-xml-4.3)
10465 ("gettext" ,gettext-minimal)
10466 ("glib:bin" ,glib "bin")
10467 ("gtk-doc" ,gtk-doc/stable)
10468 ("itstool" ,itstool)
10469 ("libxml2" ,libxml2)
10470 ("libxslt" ,libxslt)
10471 ("pkg-config" ,pkg-config)
10472 ("vala" ,vala)))
10473 (propagated-inputs
10474 `(("gnome-video-effects" ,gnome-video-effects)
10475 ("clutter" ,clutter)
10476 ("clutter-gst" ,clutter-gst)
10477 ("clutter-gtk" ,clutter-gtk)
10478 ("libcanberra" ,libcanberra)
10479 ("gdk-pixbuf" ,gdk-pixbuf)
10480 ("glib" ,glib)
10481 ("gstreamer" ,gstreamer)))
10482 (inputs
10483 `(("gnome-desktop" ,gnome-desktop)
10484 ("gobject-introspection" ,gobject-introspection)
10485 ("gst-plugins-base" ,gst-plugins-base)
10486 ("gst-plugins-good" ,gst-plugins-good)
10487 ("gst-plugins-bad" ,gst-plugins-bad)
10488 ("gtk+" ,gtk+)
10489 ("libx11" ,libx11)
10490 ("libxtst" ,libxtst)))
10491 (home-page "https://wiki.gnome.org/Apps/Cheese")
10492 (synopsis "Webcam photo booth software for GNOME")
10493 (description
10494 "Cheese uses your webcam to take photos and videos. Cheese can also
10495 apply fancy special effects and lets you share the fun with others.")
10496 (license license:gpl2+)))
10497
10498 (define-public passwordsafe
10499 (package
10500 (name "passwordsafe")
10501 (version "5.0")
10502 (source
10503 (origin
10504 (method git-fetch)
10505 (uri (git-reference
10506 (url "https://gitlab.gnome.org/World/PasswordSafe")
10507 (commit version)))
10508 (file-name (git-file-name name version))
10509 (sha256
10510 (base32 "1xh64bbg10gnfzlck5jvqy2zk6hbk9cyqgv85xc9kbdvs8n4lhgh"))))
10511 (build-system meson-build-system)
10512 (arguments
10513 `(#:glib-or-gtk? #t
10514 #:phases
10515 (modify-phases %standard-phases
10516 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
10517 (lambda* (#:key outputs #:allow-other-keys)
10518 (let ((prog (string-append (assoc-ref outputs "out")
10519 "/bin/gnome-passwordsafe"))
10520 (pylib (string-append (assoc-ref outputs "out")
10521 "/lib/python"
10522 ,(version-major+minor
10523 (package-version python))
10524 "/site-packages")))
10525 (wrap-program prog
10526 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
10527 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
10528 #t))))))
10529 (native-inputs
10530 `(("desktop-file-utils" ,desktop-file-utils)
10531 ("gettext" ,gettext-minimal)
10532 ("glib:bin" ,glib "bin")
10533 ("gobject-introspection" ,gobject-introspection)
10534 ("gtk+:bin" ,gtk+ "bin")
10535 ("pkg-config" ,pkg-config)))
10536 (inputs
10537 `(("glib" ,glib)
10538 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10539 ("gtk+" ,gtk+)
10540 ("libhandy" ,libhandy)
10541 ("libpwquality" ,libpwquality)
10542 ("python-pygobject" ,python-pygobject)
10543 ("python-pykeepass" ,python-pykeepass)))
10544 (home-page "https://gitlab.gnome.org/World/PasswordSafe")
10545 (synopsis "Password manager for the GNOME desktop")
10546 (description
10547 "Password Safe is a password manager which makes use of the KeePass v4
10548 format. It integrates perfectly with the GNOME desktop and provides an easy
10549 and uncluttered interface for the management of password databases.")
10550 (license license:gpl3+)))
10551
10552 (define-public sound-juicer
10553 (package
10554 (name "sound-juicer")
10555 (version "3.24.0")
10556 (source
10557 (origin
10558 (method url-fetch)
10559 (uri (string-append "mirror://gnome/sources/" name "/"
10560 (version-major+minor version) "/"
10561 name "-" version ".tar.xz"))
10562 (sha256
10563 (base32
10564 "19qg4xv0f9rkq34lragkmhii1llxsa87llbl28i759b0ks4f6sny"))))
10565 (build-system glib-or-gtk-build-system)
10566 (native-inputs
10567 `(("desktop-file-utils" ,desktop-file-utils)
10568 ("intltool" ,intltool)
10569 ("itstool" ,itstool)
10570 ("pkg-config" ,pkg-config)
10571 ("xmllint" ,libxml2)))
10572 (inputs
10573 `(("gtk+" ,gtk+)
10574 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10575 ("gstreamer" ,gstreamer)
10576 ("gst-plugins-base" ,gst-plugins-base)
10577 ("gst-plugins-good" ,gst-plugins-good)
10578 ("iso-codes" ,iso-codes)
10579 ("libbrasero-media3" ,brasero)
10580 ("libcanberra" ,libcanberra)
10581 ("libdiscid" ,libdiscid)
10582 ("libmusicbrainz" ,libmusicbrainz)
10583 ("neon" ,neon)))
10584 (home-page "https://wiki.gnome.org/Apps/SoundJuicer")
10585 (synopsis "Audio music cd ripper")
10586 (description "Sound Juicer extracts audio from compact discs and convert it
10587 into audio files that a personal computer or digital audio player can play.
10588 It supports ripping to any audio codec supported by a GStreamer plugin, such as
10589 mp3, Ogg Vorbis and FLAC")
10590 (license license:gpl2+)))
10591
10592 (define-public soundconverter
10593 (package
10594 (name "soundconverter")
10595 (version "3.0.2")
10596 (source
10597 (origin
10598 (method url-fetch)
10599 (uri (string-append "https://launchpad.net/soundconverter/trunk/"
10600 version "/+download/"
10601 "soundconverter-" version ".tar.xz"))
10602
10603 (sha256
10604 (base32 "1jv8m82hi23ilrgdznlc1jhp2jm8bw1yrw0chh3qw2l0sixvkl11"))))
10605 (build-system glib-or-gtk-build-system)
10606 (arguments
10607 `(#:imported-modules ((guix build python-build-system)
10608 (guix build glib-or-gtk-build-system)
10609 ,@%gnu-build-system-modules)
10610
10611 #:modules ((guix build glib-or-gtk-build-system)
10612 (guix build utils)
10613 ((guix build gnu-build-system) #:prefix gnu:)
10614 ((guix build python-build-system) #:prefix python:))
10615
10616 #:phases
10617 (modify-phases %standard-phases
10618 (add-after 'install 'wrap-soundconverter-for-python
10619 (assoc-ref python:%standard-phases 'wrap))
10620 (add-after 'install 'wrap-soundconverter
10621 (lambda* (#:key inputs outputs #:allow-other-keys)
10622 (let ((out (assoc-ref outputs "out"))
10623 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
10624 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
10625 (wrap-program (string-append out "/bin/soundconverter")
10626 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
10627 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
10628 #t)))))
10629 (native-inputs
10630 `(("intltool" ,intltool)
10631 ("pkg-config" ,pkg-config)
10632 ("glib:bin" ,glib "bin")))
10633 (inputs
10634 `(("gtk+" ,gtk+)
10635 ("python" ,python)
10636 ("python-pygobject" ,python-pygobject)
10637 ("gstreamer" ,gstreamer)
10638 ("gst-plugins-base" ,gst-plugins-base)))
10639 (home-page "https://soundconverter.org/")
10640 (synopsis "Convert between audio formats with a graphical interface")
10641 (description
10642 "SoundConverter supports converting between many audio formats including
10643 Opus, Ogg Vorbis, FLAC and more. It supports parallel conversion, and
10644 configurable file renaming. ")
10645 (license license:gpl3)))
10646
10647 (define-public workrave
10648 (package
10649 (name "workrave")
10650 (version "1.10.43")
10651 (source
10652 (origin
10653 (method git-fetch)
10654 (uri (git-reference
10655 (url "https://github.com/rcaelers/workrave")
10656 (commit (string-append "v" (string-map
10657 (match-lambda (#\. #\_) (chr chr))
10658 version)))))
10659 (file-name (git-file-name name version))
10660 (sha256
10661 (base32 "1baa9qjzd4b3q1zy5vhvyrx0hyz17mk237373ca48647897kw4cr"))))
10662 (build-system glib-or-gtk-build-system)
10663 (arguments
10664 ;; The only tests are maintainer tests (in po/), which fail.
10665 `(#:tests? #f))
10666 (inputs `(("glib" ,glib)
10667 ("gtk+" ,gtk+)
10668 ("gdk-pixbuf" ,gdk-pixbuf)
10669 ("gtkmm" ,gtkmm)
10670 ("glibmm" ,glibmm)
10671 ("libx11" ,libx11)
10672 ("libxtst" ,libxtst)
10673 ("dconf" ,dconf)
10674 ("libice" ,libice)
10675 ("libsm" ,libsm)
10676 ("libxscrnsaver" ,libxscrnsaver)))
10677 (native-inputs `(("boost" ,boost)
10678 ("pkg-config" ,pkg-config)
10679 ("gettext" ,gettext-minimal)
10680 ("autoconf" ,autoconf)
10681 ("autoconf-archive" , autoconf-archive)
10682 ("automake" ,automake)
10683 ("libtool" ,libtool)
10684 ("intltool" ,intltool)
10685 ("gobject-introspection" ,gobject-introspection)
10686 ("python3" ,python-3)
10687 ("python-jinja2" ,python-jinja2)))
10688 (synopsis "Tool to help prevent repetitive strain injury (RSI)")
10689 (description
10690 "Workrave is a program that assists in the recovery and prevention of
10691 repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
10692 micro-pauses and rest breaks, and restricts you to your daily limit.")
10693 (home-page "http://www.workrave.org")
10694 (license license:gpl3+)))
10695
10696 (define-public ghex
10697 (package
10698 (name "ghex")
10699 (version "3.18.4")
10700 (source (origin
10701 (method url-fetch)
10702 (uri (string-append "mirror://gnome/sources/ghex/"
10703 (version-major+minor version) "/"
10704 "ghex-" version ".tar.xz"))
10705 (sha256
10706 (base32
10707 "1h1pjrr9wynclfykizqd78dbi785wjz6b63p31k87kjvzy8w3nf2"))))
10708 (build-system meson-build-system)
10709 (arguments
10710 '(#:glib-or-gtk? #t
10711 #:phases
10712 (modify-phases %standard-phases
10713 (add-after 'unpack 'skip-gtk-update-icon-cache
10714 ;; Don't create 'icon-theme.cache'.
10715 (lambda _
10716 (substitute* "meson_post_install.py"
10717 (("gtk-update-icon-cache") (which "true")))
10718 #t)))))
10719 (native-inputs
10720 `(("pkg-config" ,pkg-config)
10721 ("glib:bin" ,glib "bin") ; for glib-compile-schemas
10722 ("gnome-common" ,gnome-common)
10723 ("which" ,which)
10724 ("intltool" ,intltool)
10725 ("yelp-tools" ,yelp-tools)
10726 ("desktop-file-utils" ,desktop-file-utils))) ; for 'desktop-file-validate'
10727 (inputs
10728 `(("atk" ,atk)
10729 ("gtk" ,gtk+)))
10730 (synopsis "GNOME hexadecimal editor")
10731 (description "The GHex program can view and edit files in two ways:
10732 hexadecimal or ASCII. It is useful for editing binary files in general.")
10733 (home-page "https://wiki.gnome.org/Apps/Ghex")
10734 (license license:gpl2)))
10735
10736 (define-public libdazzle
10737 (package
10738 (name "libdazzle")
10739 (version "3.37.1")
10740 (source (origin
10741 (method url-fetch)
10742 (uri (string-append "mirror://gnome/sources/libdazzle/"
10743 (version-major+minor version) "/"
10744 "libdazzle-" version ".tar.xz"))
10745 (sha256
10746 (base32
10747 "03r5cr11dc031qa3694bpgm3lajrhiiln67kvl7vjj4q0scf7w7x"))))
10748 (build-system meson-build-system)
10749 (arguments
10750 `(#:phases
10751 (modify-phases %standard-phases
10752 (add-before 'check 'pre-check
10753 (lambda _
10754 ;; Tests require a running X server.
10755 (system "Xvfb :1 &")
10756 (setenv "DISPLAY" ":1")
10757 #t)))))
10758 (native-inputs
10759 `(("glib" ,glib "bin") ; glib-compile-resources
10760 ("pkg-config" ,pkg-config)
10761 ;; For tests.
10762 ("xorg-server" ,xorg-server-for-tests)))
10763 (inputs
10764 `(("glib" ,glib)
10765 ("gobject-introspection" ,gobject-introspection)
10766 ("gtk+" ,gtk+)
10767 ("vala" ,vala)))
10768 (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
10769 (synopsis "Companion library to GObject and Gtk+")
10770 (description "The libdazzle library is a companion library to GObject and
10771 Gtk+. It provides various features that the authors wish were in the
10772 underlying library but cannot for various reasons. In most cases, they are
10773 wildly out of scope for those libraries. In other cases, they are not quite
10774 generic enough to work for everyone.")
10775 (license license:gpl3+)))
10776
10777 (define-public evolution
10778 (package
10779 (name "evolution")
10780 (version "3.34.2")
10781 (source (origin
10782 (method url-fetch)
10783 (uri (string-append "mirror://gnome/sources/evolution/"
10784 (version-major+minor version) "/"
10785 "evolution-" version ".tar.xz"))
10786 (sha256
10787 (base32
10788 "164vy8h432pjglafn8y2ms4gsvk3kbgc63h5qp0mk5dv4smsp29c"))
10789 (patches (search-patches "evolution-CVE-2020-11879.patch"))))
10790 (build-system cmake-build-system)
10791 (arguments
10792 `(#:imported-modules (,@%cmake-build-system-modules
10793 (guix build glib-or-gtk-build-system))
10794 #:modules ((guix build cmake-build-system)
10795 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
10796 (guix build utils))
10797 #:configure-flags
10798 (list "-DENABLE_PST_IMPORT=OFF" ; libpst is not packaged
10799 "-DENABLE_LIBCRYPTUI=OFF") ; libcryptui hasn't seen a release
10800 ; in four years and cannot be built.
10801 #:phases
10802 (modify-phases %standard-phases
10803 ;; The build system attempts to install user interface modules to the
10804 ;; output directory of the "evolution-data-server" package. This
10805 ;; change redirects that change.
10806 (add-after 'unpack 'patch-ui-module-dir
10807 (lambda* (#:key outputs #:allow-other-keys)
10808 (substitute* "src/modules/alarm-notify/CMakeLists.txt"
10809 (("\\$\\{edsuimoduledir\\}")
10810 (string-append (assoc-ref outputs "out")
10811 "/lib/evolution-data-server/ui-modules")))
10812 #t))
10813 (add-after 'install 'glib-or-gtk-compile-schemas
10814 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
10815 (add-after 'install 'glib-or-gtk-wrap
10816 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
10817 (native-inputs
10818 `(("glib" ,glib "bin") ; glib-mkenums
10819 ("pkg-config" ,pkg-config)
10820 ("intltool" ,intltool)
10821 ("itstool" ,itstool)))
10822 (inputs
10823 `(("enchant" ,enchant)
10824 ("evolution-data-server" ,evolution-data-server) ; must be the same version
10825 ("gcr" ,gcr)
10826 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10827 ("gnome-autoar" ,gnome-autoar)
10828 ("gnome-desktop" ,gnome-desktop)
10829 ("gspell" ,gspell)
10830 ("highlight" ,highlight)
10831 ("libcanberra" ,libcanberra)
10832 ("libgweather" ,libgweather)
10833 ("libnotify" ,libnotify)
10834 ("libsoup" ,libsoup)
10835 ("nss" ,nss)
10836 ("openldap" ,openldap)
10837 ("webkitgtk" ,webkitgtk)
10838 ("ytnef" ,ytnef)))
10839 (home-page "https://gitlab.gnome.org/GNOME/evolution")
10840 (synopsis "Manage your email, contacts and schedule")
10841 (description "Evolution is a personal information management application
10842 that provides integrated mail, calendaring and address book
10843 functionality.")
10844 ;; See COPYING for details.
10845 (license (list license:lgpl2.1 license:lgpl3 ; either one of these
10846 license:openldap2.8 ; addressbook/gui/component/openldap-extract.h
10847 license:lgpl2.1+)))) ; smime/lib/*
10848
10849 (define-public gthumb
10850 (package
10851 (name "gthumb")
10852 (version "3.10.3")
10853 (source (origin
10854 (method url-fetch)
10855 (uri (string-append "mirror://gnome/sources/gthumb/"
10856 (version-major+minor version) "/"
10857 "gthumb-" version ".tar.xz"))
10858 (sha256
10859 (base32
10860 "04n2sgasc03kiczyzkq362pjilj12hq2r5qj07lynqr9rivkzdys"))))
10861 (build-system meson-build-system)
10862 (arguments
10863 `(#:glib-or-gtk? #t
10864 #:configure-flags
10865 ;; Ensure the RUNPATH contains all installed library locations.
10866 (list (string-append "-Dc_link_args=-Wl,-rpath="
10867 (assoc-ref %outputs "out")
10868 "/lib/gthumb/extensions")
10869 (string-append "-Dcpp_link_args=-Wl,-rpath="
10870 (assoc-ref %outputs "out")
10871 "/lib/gthumb/extensions"))))
10872 (native-inputs
10873 `(("pkg-config" ,pkg-config)
10874 ("glib:bin" ,glib "bin") ; for glib-compile-resources
10875 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
10876 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
10877 ("intltool" ,intltool)
10878 ("itstool" ,itstool)))
10879 (inputs
10880 `(("exiv2" ,exiv2)
10881 ("gtk" ,gtk+)
10882 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10883 ("gstreamer" ,gstreamer)
10884 ("clutter" ,clutter)
10885 ("clutter-gst" ,clutter-gst)
10886 ("clutter-gtk" ,clutter-gtk)
10887 ("libjpeg" ,libjpeg-turbo)
10888 ("libtiff" ,libtiff)
10889 ("libraw" ,libraw)))
10890 (home-page "https://wiki.gnome.org/Apps/Gthumb")
10891 (synopsis "GNOME image viewer and browser")
10892 (description "GThumb is an image viewer, browser, organizer, editor and
10893 advanced image management tool")
10894 (license license:gpl2+)))
10895
10896 (define-public terminator
10897 (package
10898 (name "terminator")
10899 (version "2.1.1")
10900 (source
10901 (origin
10902 (method url-fetch)
10903 (uri (string-append "https://github.com/gnome-terminator/terminator/"
10904 "releases/download/v" version "/"
10905 name "-" version ".tar.gz"))
10906 (sha256
10907 (base32 "0xdgmam7ghnxw6g38a4gjw3kk3rhga8c66lns18k928jlr9fmddw"))))
10908 (build-system python-build-system)
10909 (native-inputs
10910 `(("gettext" ,gettext-minimal)
10911 ("glib:bin" ,glib "bin") ; for glib-compile-resources
10912 ("gobject-introspection" ,gobject-introspection)
10913 ("intltool" ,intltool)
10914 ("pkg-config" ,pkg-config)
10915 ("python-psutil" ,python-psutil)
10916 ("python-pytest-runner" ,python-pytest-runner)
10917 ("python-pytest" ,python-pytest)))
10918 (inputs
10919 `(("cairo" ,cairo)
10920 ("dbus-glib" ,dbus-glib)
10921 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
10922 ("gtk+" ,gtk+)
10923 ("python" ,python-wrapper)
10924 ("python-dbus" ,python-dbus)
10925 ("python-notify2" ,python-notify2)
10926 ("python-pycairo" ,python-pycairo)
10927 ("python-pygobject" ,python-pygobject)
10928 ("vte" ,vte)))
10929 (propagated-inputs
10930 `(("python-configobj" ,python-configobj)))
10931 (arguments
10932 ;; One test out of 28 fails due to dbus-python and python-notify; skip
10933 ;; tests.
10934 `(#:tests? #f
10935 #:imported-modules ((guix build glib-or-gtk-build-system)
10936 ,@%python-build-system-modules)
10937 #:modules ((guix build python-build-system)
10938 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
10939 (guix build utils))
10940 #:phases
10941 (modify-phases %standard-phases
10942 (add-after 'unpack 'handle-dbus-python
10943 (lambda _
10944 ;; python-dbus cannot be found but it's really there. See
10945 ;; https://github.com/SpotlightKid/jack-select/issues/2
10946 (substitute* "setup.py"
10947 (("'dbus-python',") ""))
10948 #t))
10949 (add-after 'install 'wrap-program
10950 (lambda* (#:key outputs #:allow-other-keys)
10951 (let ((prog (string-append (assoc-ref outputs "out")
10952 "/bin/terminator"))
10953 (pylib (string-append (assoc-ref outputs "out")
10954 "/lib/python"
10955 ,(version-major+minor
10956 (package-version python))
10957 "/site-packages")))
10958 (wrap-program prog
10959 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
10960 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
10961 #t)))
10962 (add-after 'wrap-program 'glib-or-gtk-wrap
10963 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
10964 (home-page "https://gnome-terminator.org/")
10965 (synopsis "Store and run multiple GNOME terminals in one window")
10966 (description
10967 "Terminator allows you to run multiple GNOME terminals in a grid and
10968 tabs, and it supports drag and drop re-ordering of terminals.")
10969 (license license:gpl2)))
10970
10971 (define-public libhandy
10972 (package
10973 (name "libhandy")
10974 (version "1.2.2")
10975 (source
10976 (origin
10977 (method git-fetch)
10978 (uri (git-reference
10979 (url "https://gitlab.gnome.org/GNOME/libhandy")
10980 (commit version)))
10981 (file-name (git-file-name name version))
10982 (sha256
10983 (base32 "0345x7gif6yjm95y62lww71lj84wfwsr2p32r3iww8shavb8scyk"))))
10984 (build-system meson-build-system)
10985 (arguments
10986 `(#:configure-flags
10987 '("-Dglade_catalog=enabled"
10988 "-Dgtk_doc=true")
10989 #:phases
10990 (modify-phases %standard-phases
10991 (add-before 'check 'pre-check
10992 (lambda _
10993 ;; Tests require a running X server.
10994 (system "Xvfb :1 &")
10995 (setenv "DISPLAY" ":1")
10996 #t)))))
10997 (inputs
10998 `(("gtk+" ,gtk+)
10999 ("glade" ,glade3)
11000 ("libxml2" ,libxml2)))
11001 (native-inputs
11002 `(("glib:bin" ,glib "bin")
11003 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
11004 ("vala" ,vala)
11005 ("gtk-doc" ,gtk-doc/stable)
11006 ("pkg-config" ,pkg-config)
11007 ("gettext" ,gettext-minimal)
11008
11009 ;; Test suite dependencies.
11010 ("xorg-server" ,xorg-server-for-tests)
11011 ("hicolor-icon-theme" ,hicolor-icon-theme)))
11012 (home-page "https://gitlab.gnome.org/GNOME/libhandy/")
11013 (synopsis "Library full of GTK+ widgets for mobile phones")
11014 (description "The aim of the handy library is to help with developing user
11015 interfaces for mobile devices using GTK+. It provides responsive GTK+ widgets
11016 for usage on small and big screens.")
11017 (license license:lgpl2.1+)))
11018
11019 (define-public libhandy-0.0
11020 (package
11021 (inherit libhandy)
11022 (version "0.0.13")
11023 (source
11024 (origin
11025 (method git-fetch)
11026 (uri (git-reference
11027 (url "https://gitlab.gnome.org/GNOME/libhandy")
11028 (commit (string-append "v" version))))
11029 (file-name (git-file-name "libhandy" version))
11030 (sha256
11031 (base32 "1y23k623sjkldfrdiwfarpchg5mg58smcy1pkgnwfwca15wm1ra5"))))
11032 (arguments
11033 (substitute-keyword-arguments (package-arguments libhandy)
11034 ((#:configure-flags flags)
11035 '(list "-Dglade_catalog=disabled" "-Dgtk_doc=true"))))))
11036
11037 (define-public libgit2-glib
11038 (package
11039 (name "libgit2-glib")
11040 (version "0.99.0.1")
11041 (source (origin
11042 (method url-fetch)
11043 (uri (string-append "mirror://gnome/sources/" name "/"
11044 (version-major+minor version) "/"
11045 name "-" version ".tar.xz"))
11046 (sha256
11047 (base32
11048 "1pmrcnsa7qdda73c3dxf47733mwprmj5ljpw3acxbj6r8k27anp0"))))
11049 (build-system meson-build-system)
11050 (native-inputs
11051 `(("glib:bin" ,glib "bin") ;; For glib-mkenums
11052 ("gobject-introspection" ,gobject-introspection)
11053 ("pkg-config" ,pkg-config)
11054 ("python-pygobject" ,python-pygobject)
11055 ("python-wrapper" ,python-wrapper)
11056 ("vala" ,vala)))
11057 (inputs
11058 `(("glib" ,glib)
11059 ("libssh2" ,libssh2)))
11060 (propagated-inputs
11061 `(;; In Requires of libgit2-glib.pc.
11062 ("libgit2" ,libgit2)))
11063 (synopsis "GLib wrapper around the libgit2 Git access library")
11064 (description "libgit2-glib is a GLib wrapper library around the libgit2 Git
11065 access library. It only implements the core plumbing functions, not really the
11066 higher level porcelain stuff.")
11067 (home-page "https://wiki.gnome.org/Projects/Libgit2-glib")
11068 (license license:gpl2+)))
11069
11070 (define-public gitg
11071 (package
11072 (name "gitg")
11073 (version "3.32.1")
11074 (source (origin
11075 (method url-fetch)
11076 (uri (string-append "mirror://gnome/sources/" name "/"
11077 (version-major+minor version) "/"
11078 name "-" version ".tar.xz"))
11079 (sha256
11080 (base32
11081 "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914"))))
11082 (build-system meson-build-system)
11083 (arguments
11084 `(#:glib-or-gtk? #t
11085 #:phases
11086 (modify-phases %standard-phases
11087 (add-after 'unpack 'disable-post-install-partially
11088 (lambda _
11089 (substitute* "meson_post_install.py"
11090 (("'python'") ; there are no python sources to compile
11091 (string-append "'" (which "true") "'"))
11092 (("gtk-update-icon-cache") (which "true")))
11093 #t))
11094 (add-after 'unpack 'fix-test-sources
11095 (lambda _
11096 (substitute* "tests/libgitg/test-commit.vala"
11097 (("/bin/bash") (which "bash")))
11098 #t))
11099 (add-after 'glib-or-gtk-wrap 'wrap-typelib
11100 (lambda* (#:key outputs #:allow-other-keys)
11101 (let ((prog (string-append (assoc-ref outputs "out")
11102 "/bin/gitg")))
11103 (wrap-program prog
11104 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11105 #t))))))
11106 (inputs
11107 `(("glib" ,glib)
11108 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11109 ("gtk+" ,gtk+)
11110 ("gtkspell3" ,gtkspell3)
11111 ("gtksourceview" ,gtksourceview-3)
11112 ("json-glib" ,json-glib)
11113 ("libdazzle" ,libdazzle)
11114 ("libgee" ,libgee)
11115 ("libgit2-glib" ,libgit2-glib)
11116 ("libpeas" ,libpeas)
11117 ("libsecret" ,libsecret)
11118 ("libsoup" ,libsoup)
11119 ("libxml2" ,libxml2)))
11120 (native-inputs
11121 `(("glib:bin" ,glib "bin")
11122 ("gtk+:bin" ,gtk+ "bin")
11123 ("gobject-introspection" ,gobject-introspection)
11124 ("intltool" ,intltool)
11125 ("pkg-config" ,pkg-config)
11126 ("vala" ,vala)))
11127 (synopsis "Graphical user interface for git")
11128 (description
11129 "gitg is a graphical user interface for git. It aims at being a small,
11130 fast and convenient tool to visualize the history of git repositories.
11131 Besides visualization, gitg also provides several utilities to manage your
11132 repository and commit your work.")
11133 (home-page "https://wiki.gnome.org/Apps/Gitg")
11134 (license license:gpl2+)))
11135
11136 (define-public gamin
11137 (package
11138 (name "gamin")
11139 (version "0.1.10")
11140 (source (origin
11141 (method url-fetch)
11142 (uri (string-append "mirror://gnome/sources/" name "/"
11143 (version-major+minor version) "/"
11144 name "-" version ".tar.bz2"))
11145 (sha256
11146 (base32
11147 "02n1zr9y8q9lyczhcz0nxar1vmf8p2mmbw8kq0v43wg21jr4i6d5"))))
11148 (build-system gnu-build-system)
11149 (arguments
11150 `(#:phases
11151 (modify-phases %standard-phases
11152 (add-after 'unpack 'remove-deprecated-macro
11153 (lambda _
11154 (substitute* '("server/gam_node.c"
11155 "server/gam_subscription.h"
11156 "server/gam_node.h"
11157 "server/gam_subscription.c")
11158 (("G_CONST_RETURN") "const"))
11159 #t)))))
11160 (inputs
11161 `(("glib" ,glib)))
11162 (native-inputs
11163 `(("intltool" ,intltool)
11164 ("pkg-config" ,pkg-config)))
11165 (home-page "https://people.gnome.org/~veillard/gamin/")
11166 (synopsis "File alteration monitor")
11167 (description
11168 "Gamin is a file and directory monitoring system defined to be a subset
11169 of the FAM (File Alteration Monitor) system. This is a service provided by a
11170 library which detects when a file or a directory has been modified.")
11171 (license license:gpl2+)))
11172
11173 (define-public gnome-mahjongg
11174 (package
11175 (name "gnome-mahjongg")
11176 (version "3.35.1")
11177 (source (origin
11178 (method git-fetch)
11179 (uri (git-reference
11180 (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
11181 (commit version)))
11182 (file-name (git-file-name name version))
11183 (sha256
11184 (base32
11185 "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
11186 (build-system meson-build-system)
11187 (arguments
11188 `(#:glib-or-gtk? #t))
11189 (native-inputs
11190 `(("appstream-glib" ,appstream-glib)
11191 ("gettext" ,gettext-minimal)
11192 ("glib:bin" ,glib "bin") ;; For glib-compile-resources
11193 ("gtk+" ,gtk+ "bin") ;; For gtk-update-icon-cache
11194 ("itstool" ,itstool)
11195 ("pkg-config" ,pkg-config)
11196 ("vala" ,vala)))
11197 (propagated-inputs
11198 `(("dconf" ,dconf)))
11199 (inputs
11200 `(("glib" ,glib)
11201 ("gtk+" ,gtk+)
11202 ("librsvg" ,librsvg)))
11203 (synopsis "Mahjongg tile-matching game")
11204 (description "GNOME Mahjongg is a game based on the classic Chinese
11205 tile-matching game Mahjong. It features multiple board layouts, tile themes,
11206 and a high score table.")
11207 (home-page "https://wiki.gnome.org/Apps/Mahjongg")
11208 (license license:gpl2+)))
11209
11210 (define-public gnome-themes-extra
11211 (package
11212 (name "gnome-themes-extra")
11213 (version "3.28")
11214 (source
11215 (origin
11216 (method url-fetch)
11217 (uri (string-append "mirror://gnome/sources/" name "/"
11218 (version-major+minor version) "/" name "-"
11219 version ".tar.xz"))
11220 (sha256
11221 (base32
11222 "06aqg9asq2vqi9wr29bs4v8z2bf4manhbhfghf4nvw01y2zs0jvw"))))
11223 (build-system gnu-build-system)
11224 (arguments
11225 '(#:configure-flags
11226 ;; Don't create 'icon-theme.cache'.
11227 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
11228 (true (string-append coreutils "/bin/true")))
11229 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
11230 (native-inputs
11231 `(("glib:bin" ,glib "bin")
11232 ("intltool" ,intltool)
11233 ("pkg-config" ,pkg-config)))
11234 (inputs
11235 `(("glib" ,glib)
11236 ("gtk+" ,gtk+)
11237 ("gtk+-2" ,gtk+-2)
11238 ("librsvg" ,librsvg)
11239 ("libxml2" ,libxml2)))
11240 (home-page "https://gitlab.gnome.org/GNOME/gnome-themes-extra")
11241 (synopsis "GNOME Extra Themes")
11242 (description "This package provides themes and related elements that don't
11243 really fit in other upstream packages. It offers legacy support for GTK+ 2
11244 versions of Adwaita, Adwaita-dark and HighContrast themes. It also provides
11245 index files needed for Adwaita to be used outside of GNOME.")
11246 (license license:lgpl2.1+)))
11247
11248 (define-public gnote
11249 (package
11250 (name "gnote")
11251 (version "3.38.1")
11252 (source
11253 (origin
11254 (method url-fetch)
11255 (uri (string-append "mirror://gnome/sources/" name "/"
11256 (version-major+minor version) "/"
11257 "gnote-" version ".tar.xz"))
11258 (sha256
11259 (base32 "1adjfjhmsm2d33999khjyzvli6kiz1jlzavn77jhd49kfzhxa9y4"))))
11260 (build-system glib-or-gtk-build-system)
11261 (native-inputs
11262 `(("desktop-file-utils" ,desktop-file-utils)
11263 ("glib:bin" ,glib "bin")
11264 ("gobject-introspection" ,gobject-introspection)
11265 ("intltool" ,intltool)
11266 ("itstool" ,itstool)
11267 ("pkg-config" ,pkg-config)
11268 ("unittest-cpp" ,unittest-cpp))) ;FIXME: not found by pkg-config
11269 (inputs
11270 `(("glibmm" ,glibmm)
11271 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11272 ("gspell" ,gspell)
11273 ("gtk+" ,gtk+)
11274 ("gtkmm" ,gtkmm)
11275 ("libsecret" ,libsecret)
11276 ("libuuid" ,util-linux "lib")
11277 ("libxml2" ,libxml2)
11278 ("libxslt" ,libxslt)))
11279 (synopsis "Note-taking application for the GNOME desktop")
11280 (description
11281 "Gnote is a note-taking application written for the GNOME desktop
11282 environment.")
11283 (home-page "https://wiki.gnome.org/Apps/Gnote")
11284 (license license:gpl3+)))
11285
11286 (define-public polari
11287 (package
11288 (name "polari")
11289 (version "3.36.3")
11290 (source (origin
11291 (method url-fetch)
11292 (uri (string-append "mirror://gnome/sources/polari/"
11293 (version-major+minor version)
11294 "/polari-" version ".tar.xz"))
11295 (sha256
11296 (base32
11297 "0fpmrvhd40yay051bzn4x3gsrzdv42nav0pm5ps0np8wk1z689jg"))))
11298 (build-system meson-build-system)
11299 (arguments
11300 `(#:glib-or-gtk? #t
11301 #:phases
11302 (modify-phases %standard-phases
11303 (add-after 'unpack 'skip-gtk-update-icon-cache
11304 (lambda _
11305 (substitute* "meson/meson-postinstall.sh"
11306 (("gtk-update-icon-cache") (which "true")))
11307 #t))
11308 (add-after 'glib-or-gtk-wrap 'wrap-typelib
11309 (lambda* (#:key outputs #:allow-other-keys)
11310 (let ((prog (string-append (assoc-ref outputs "out")
11311 "/bin/polari")))
11312 (wrap-program prog
11313 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11314 #t))))))
11315 (inputs
11316 `(("glib" ,glib)
11317 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11318 ("gspell" ,gspell)
11319 ("gtk+" ,gtk+)
11320 ("gjs" ,gjs)
11321 ("libsecret" ,libsecret)
11322 ("libsoup" ,libsoup)
11323 ("telepathy-glib" ,telepathy-glib)
11324 ("telepathy-logger" ,telepathy-logger)))
11325 (native-inputs
11326 `(("glib:bin" ,glib "bin")
11327 ("gobject-introspection" ,gobject-introspection)
11328 ("intltool" ,intltool)
11329 ("pkg-config" ,pkg-config)
11330 ("yelp-tools" ,yelp-tools)))
11331 (propagated-inputs
11332 `(("telepathy-idle" ,telepathy-idle)
11333 ("telepathy-mission-control" ,telepathy-mission-control)))
11334 (synopsis "Simple IRC Client")
11335 (description
11336 "Polari is a simple Internet Relay Chat (IRC) client that is designed to
11337 integrate seamlessly with the GNOME desktop.")
11338 (home-page "https://wiki.gnome.org/Apps/Polari")
11339 (license license:gpl2+)))
11340
11341 (define-public gnome-boxes
11342 (package
11343 (name "gnome-boxes")
11344 (version "3.36.6")
11345 (source
11346 (origin
11347 (method url-fetch)
11348 (uri (string-append "mirror://gnome/sources/gnome-boxes/"
11349 (version-major+minor version) "/"
11350 "gnome-boxes-" version ".tar.xz"))
11351 (sha256
11352 (base32 "0c3cw90xqqcpacc2z06ljs0gg8saxizfgjzg9alhpwgz3gl4c5pg"))))
11353 (build-system meson-build-system)
11354 (arguments
11355 '(#:glib-or-gtk? #t
11356 #:configure-flags (list "-Drdp=false"
11357 (string-append "-Dc_link_args=-Wl,-rpath="
11358 (assoc-ref %outputs "out")
11359 "/lib/gnome-boxes"))))
11360 (native-inputs
11361 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
11362 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
11363 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
11364 ("itstool" ,itstool)
11365 ("intltool" ,intltool)
11366 ("vala" ,vala)
11367 ("pkg-config" ,pkg-config)))
11368 (inputs
11369 `(("libarchive" ,libarchive)
11370 ("glib-networking" ,glib-networking) ;for TLS support
11371 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11372 ("gtk" ,gtk+)
11373 ("gtk-vnc" ,gtk-vnc)
11374 ("libosinfo" ,libosinfo)
11375 ("libsecret" ,libsecret)
11376 ("libsoup" ,libsoup)
11377 ("libusb" ,libusb)
11378 ("libvirt" ,libvirt)
11379 ("libvirt-glib" ,libvirt-glib)
11380 ("libxml" ,libxml2)
11381 ("spice-gtk" ,spice-gtk)
11382 ("sparql-query" ,sparql-query)
11383 ("vte" ,vte)
11384 ("webkitgtk" ,webkitgtk)
11385 ("tracker" ,tracker)
11386 ("libgudev" ,libgudev)))
11387 (home-page "https://wiki.gnome.org/Apps/Boxes")
11388 (synopsis "View, access, and manage remote and virtual systems")
11389 (description "GNOME Boxes is a simple application to view, access, and
11390 manage remote and virtual systems. Note that this application requires the
11391 @code{libvirt} and @code{virtlog} daemons to run. Use the command
11392 @command{info '(guix) Virtualization Services'} to learn how to configure
11393 these services on the Guix System.")
11394 (license (list
11395 ;; For data/icons/empty-boxes.png.
11396 license:cc-by2.0
11397 ;; For all others.
11398 license:lgpl2.0+))))
11399
11400 (define-public geary
11401 (package
11402 (name "geary")
11403 (version "3.34.1")
11404 (source (origin
11405 (method git-fetch)
11406 (uri (git-reference
11407 (url "https://gitlab.gnome.org/GNOME/geary")
11408 (commit version)))
11409 (file-name (git-file-name name version))
11410 (sha256
11411 (base32
11412 "01cc921kyh3zxz07biqbdzkjgmdcc36kwjyajm4y382a75cl5zg7"))
11413 (patches (search-patches "geary-CVE-2020-24661.patch"))))
11414 (build-system meson-build-system)
11415 (arguments
11416 `(#:glib-or-gtk? #t
11417 #:phases (modify-phases %standard-phases
11418 (add-after 'unpack 'disable-failing-tests
11419 (lambda _
11420 (substitute* "test/meson.build"
11421 (("test\\('client-tests', geary_test_client_bin\\)")
11422 ""))
11423 #t))
11424 (add-after 'unpack 'disable-postinstall-script
11425 (lambda _
11426 (substitute* "meson.build"
11427 (("meson.add_install_script\\(\
11428 join_paths\\('build-aux', 'post_install.py'\\)\\)")
11429 ""))
11430 #t))
11431 (add-before 'check 'setup-xvfb
11432 (lambda _
11433 (system "Xvfb :1 &")
11434 (setenv "DISPLAY" ":1")
11435 #t)))))
11436 (inputs
11437 `(("enchant" ,enchant)
11438 ("folks" ,folks)
11439 ("gcr" ,gcr)
11440 ("glib" ,glib)
11441 ("gmime" ,gmime-2.6)
11442 ("gnome-online-accounts:lib"
11443 ,gnome-online-accounts "lib")
11444 ("gspell" ,gspell)
11445 ("gtk+" ,gtk+)
11446 ("iso-codes" ,iso-codes)
11447 ("json-glib" ,json-glib)
11448 ("libcanberra" ,libcanberra)
11449 ("libgee" ,libgee)
11450 ("libhandy" ,libhandy-0.0)
11451 ("libpeas" ,libpeas)
11452 ("libsecret" ,libsecret)
11453 ("libunwind" ,libunwind)
11454 ("sqlite" ,sqlite)
11455 ("webkitgtk" ,webkitgtk)
11456 ("ytnef" ,ytnef)))
11457 (native-inputs
11458 `(("appstream-glib" ,appstream-glib)
11459 ("cmake-minimal" ,cmake-minimal)
11460 ("desktop-file-utils" ,desktop-file-utils)
11461 ("gettext" ,gettext-minimal)
11462 ("glib:bin" ,glib "bin")
11463 ("gobject-introspection" ,gobject-introspection)
11464 ("itstool" ,itstool)
11465 ("libarchive" ,libarchive)
11466 ("libxml2" ,libxml2)
11467 ("pkg-config" ,pkg-config)
11468 ("vala" ,vala)
11469 ("xvfb" ,xorg-server-for-tests)))
11470 (synopsis "GNOME email application built around conversations")
11471 (description
11472 "Geary collects related messages together into conversations,
11473 making it easy to find and follow your discussions. Full-text and keyword
11474 search makes it easy to find the email you are looking for. Geary's
11475 full-featured composer lets you send rich, styled text with images, links, and
11476 lists, but also send lightweight, easy to read text messages. Geary
11477 automatically picks up your existing GNOME Online Accounts, and adding more is
11478 easy. Geary has a clean, fast, modern interface that works like you want it
11479 to.")
11480 (home-page "https://wiki.gnome.org/Apps/Geary")
11481 (license (list
11482 ;; geary
11483 license:lgpl2.1+
11484 ;; icons
11485 license:cc-by3.0
11486 license:cc-by-sa3.0
11487 license:public-domain
11488 ;; snowball
11489 license:bsd-2))))
11490
11491 (define-public glabels
11492 (package
11493 (name "glabels")
11494 (version "3.4.1")
11495 (source
11496 (origin
11497 (method url-fetch)
11498 (uri (string-append "mirror://gnome/sources/" name "/"
11499 (version-major+minor version) "/"
11500 "glabels-" version ".tar.xz"))
11501 (sha256
11502 (base32 "0f2rki8i27pkd9r0gz03cdl1g4vnmvp0j49nhxqn275vi8lmgr0q"))))
11503 (build-system glib-or-gtk-build-system)
11504 (native-inputs
11505 `(("gettext" ,gettext-minimal)
11506 ("glib:bin" ,glib "bin")
11507 ("intltool" ,intltool)
11508 ("itstool" ,itstool)
11509 ("pkg-config" ,pkg-config)))
11510 (inputs
11511 `(("gtk+" ,gtk+)
11512 ("librsvg" ,librsvg)
11513 ("libxml2" ,libxml2)))
11514 (home-page "https://glabels.org/")
11515 (synopsis "Program for creating labels and business cards")
11516 (description
11517 "gLabels is a program for creating labels and business cards. It is
11518 designed to work with various laser/ink-jet peel-off label and business
11519 card sheets that you’ll find at most office supply stores.")
11520 (license license:gpl3+)))
11521
11522 ;; Version 3.38.0 is out but requires tepl>=5 which requires glib>=2.64.
11523 (define-public gnome-latex
11524 (package
11525 (name "gnome-latex")
11526 (version "3.36.0")
11527 (source
11528 (origin
11529 (method url-fetch)
11530 (uri (string-append "mirror://gnome/sources/" name "/"
11531 (version-major+minor version) "/"
11532 "gnome-latex-" version ".tar.xz"))
11533 (sha256
11534 (base32 "1869kr1zhcp04mzbi67lwgk497w840dbbc7427i9yh9b9s7j6mqn"))))
11535 (build-system glib-or-gtk-build-system)
11536 (native-inputs
11537 `(("gettext" ,gettext-minimal)
11538 ("glib:bin" ,glib "bin")
11539 ("gobject-introspection" ,gobject-introspection)
11540 ("gtk-doc" ,gtk-doc/stable)
11541 ("intltool" ,intltool)
11542 ("itstool" ,itstool)
11543 ("pkg-config" ,pkg-config)
11544 ("vala" ,vala)))
11545 (inputs
11546 `(("amtk" ,amtk)
11547 ("dconf" ,dconf)
11548 ("glib" ,glib)
11549 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11550 ("gspell" ,gspell)
11551 ("gtk+" ,gtk+)
11552 ("gtksourceview" ,gtksourceview)
11553 ("libgee" ,libgee)
11554 ("tepl" ,tepl)
11555 ("uchardet" ,uchardet)))
11556 (home-page "https://wiki.gnome.org/Apps/GNOME-LaTeX")
11557 (synopsis "LaTeX editor for the GNOME desktop")
11558 (description
11559 "GNOME LaTeX is a LaTeX editor for the GNOME desktop. It has features
11560 such as build tools, completion of LaTeX commands, structure navigation,
11561 symbol tables, document templates, project management, spell-checking, menus
11562 and toolbars.")
11563 (license license:gpl3+)))
11564
11565 (define-public setzer
11566 (package
11567 (name "setzer")
11568 (version "0.4.1")
11569 (source
11570 (origin
11571 (method git-fetch)
11572 (uri (git-reference
11573 (url "https://github.com/cvfosammmm/Setzer")
11574 (commit (string-append "v" version))))
11575 (file-name (git-file-name name version))
11576 (sha256
11577 (base32 "1rcx2c07jg1ij81pnvg3px49hfbjmkagn68d3gp79z3gcajbp2av"))))
11578 (build-system meson-build-system)
11579 (arguments
11580 `(#:glib-or-gtk? #t
11581 #:phases
11582 (modify-phases %standard-phases
11583 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
11584 (lambda* (#:key outputs #:allow-other-keys)
11585 (let ((prog (string-append (assoc-ref outputs "out")
11586 "/bin/setzer"))
11587 (pylib (string-append (assoc-ref outputs "out")
11588 "/lib/python"
11589 ,(version-major+minor
11590 (package-version python))
11591 "/site-packages")))
11592 (wrap-program prog
11593 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
11594 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11595 #t))))))
11596 (native-inputs
11597 `(("desktop-file-utils" ,desktop-file-utils)
11598 ("gettext" ,gettext-minimal)
11599 ("glib:bin" ,glib "bin")
11600 ("gobject-introspection" ,gobject-introspection)
11601 ("gtk+:bin" ,gtk+ "bin")))
11602 (inputs
11603 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
11604 ("gspell" ,gspell)
11605 ("gtk+" ,gtk+)
11606 ("gtksourceview" ,gtksourceview)
11607 ("pango" ,pango)
11608 ("poppler" ,poppler)
11609 ("python-pdfminer" ,python-pdfminer-six)
11610 ("python-pycairo" ,python-pycairo)
11611 ("python-pygobject" ,python-pygobject)
11612 ("python-pyxdg" ,python-pyxdg)
11613 ("webkitgtk" ,webkitgtk)
11614 ("xdg-utils" ,xdg-utils)))
11615 (home-page "https://www.cvfosammmm.org/setzer/")
11616 (synopsis "LaTeX editor written in Python with GTK+")
11617 (description
11618 "Setzer is a simple yet full-featured LaTeX editor written in Python with
11619 GTK+. It integrates well with the GNOME desktop environment.")
11620 (license license:gpl3+)))
11621
11622 (define-public apostrophe
11623 (package
11624 (name "apostrophe")
11625 (version "2.4")
11626 (source (origin
11627 (method git-fetch)
11628 (uri (git-reference
11629 (url "https://gitlab.gnome.org/somas/apostrophe")
11630 (commit (string-append "v" version))))
11631 (file-name (git-file-name name version))
11632 (sha256
11633 (base32
11634 "1qzy3zhi18wf42m034s8kcmx9gl05j620x3hf6rnycq2fvy7g4gz"))))
11635 (build-system meson-build-system)
11636 (arguments
11637 `(#:glib-or-gtk? #t
11638 #:phases
11639 (modify-phases %standard-phases
11640 (add-after 'unpack 'patch-meson
11641 (lambda _
11642 (substitute* "build-aux/meson_post_install.py"
11643 (("gtk-update-icon-cache") "true"))
11644 #t))
11645 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
11646 (lambda* (#:key inputs outputs #:allow-other-keys)
11647 (let ((prog (string-append (assoc-ref outputs "out")
11648 "/bin/apostrophe"))
11649 (pylib (string-append (assoc-ref outputs "out")
11650 "/lib/python"
11651 ,(version-major+minor
11652 (package-version python))
11653 "/site-packages")))
11654 (wrap-program prog
11655 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
11656 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))
11657 `("PATH" prefix (,(string-append (assoc-ref inputs "pandoc")
11658 "/bin"))))
11659 #t))))))
11660 (inputs
11661 `(("glib" ,glib)
11662 ("gobject-introspection" ,gobject-introspection)
11663 ("gspell" ,gspell)
11664 ("gtk+" ,gtk+)
11665 ("libhandy" ,libhandy)
11666 ("pandoc" ,pandoc)
11667 ("python-chardet" ,python-chardet)
11668 ("python-levenshtein" ,python-levenshtein)
11669 ("python-regex" ,python-regex)
11670 ("python-pycairo" ,python-pycairo)
11671 ("python-pygobject" ,python-pygobject)
11672 ("python-pyenchant" ,python-pyenchant)
11673 ("python-pypandoc" ,python-pypandoc)
11674 ("webkitgtk" ,webkitgtk)))
11675 (native-inputs
11676 `(("gettext" ,gettext-minimal)
11677 ("glib:bin" ,glib "bin")
11678 ("pkg-config" ,pkg-config)))
11679 (home-page "https://gitlab.gnome.org/somas/apostrophe")
11680 (synopsis "Markdown editor written in Python with GTK+")
11681 (description "Apostrophe is a GTK+ based distraction free Markdown editor.
11682 It uses pandoc as back-end for parsing Markdown.")
11683 (license license:gpl3)))
11684
11685 (define-public libratbag
11686 (package
11687 (name "libratbag")
11688 (version "0.14")
11689 (source
11690 (origin
11691 (method git-fetch)
11692 (uri (git-reference
11693 (url "https://github.com/libratbag/libratbag")
11694 (commit (string-append "v" version))))
11695 (file-name (git-file-name name version))
11696 (sha256
11697 (base32 "1fpwp2sj8mf98bqasq2h8qwgprxi7k3iw33gcfid3d1lbyiacw0x"))))
11698 (build-system meson-build-system)
11699 (arguments
11700 `(#:configure-flags
11701 (list "-Dsystemd=false"
11702 "-Dlogind-provider=elogind")
11703 #:phases
11704 (modify-phases %standard-phases
11705 (add-after 'install 'wrap
11706 (lambda* (#:key inputs outputs #:allow-other-keys)
11707 (let* ((out (assoc-ref outputs "out"))
11708 (site (string-append
11709 "/lib/python"
11710 ,(version-major+minor (package-version python))
11711 "/site-packages"))
11712 (evdev (string-append
11713 (assoc-ref inputs "python-evdev") site))
11714 (pygo (string-append
11715 (assoc-ref inputs "python-pygobject") site))
11716 (python-wrap
11717 `("PYTHONPATH" = (,evdev ,pygo))))
11718 (wrap-program (string-append out "/bin/" "ratbagctl")
11719 python-wrap)
11720 #t))))))
11721 (native-inputs
11722 `(("check" ,check)
11723 ("pkg-config" ,pkg-config)
11724 ("swig" ,swig)
11725 ("valgrind" ,valgrind)))
11726 (inputs
11727 `(("glib" ,glib)
11728 ("json-glib" ,json-glib)
11729 ("libevdev" ,libevdev)
11730 ("libsystemd" ,elogind)
11731 ("libunistring" ,libunistring)
11732 ("python-evdev" ,python-evdev)
11733 ("python-pygobject" ,python-pygobject)
11734 ("udev" ,eudev)))
11735 (home-page "https://github.com/libratbag/libratbag")
11736 (synopsis "DBus daemon and utility for configuring gaming mice")
11737 (description "libratbag provides @command{ratbagd}, a DBus daemon to
11738 configure input devices, mainly gaming mice. The daemon provides a generic
11739 way to access the various features exposed by these mice and abstracts away
11740 hardware-specific and kernel-specific quirks. There is also the
11741 @command{ratbagctl} command line interface for configuring devices.
11742
11743 libratbag currently supports devices from Logitech, Etekcity, GSkill, Roccat,
11744 Steelseries.
11745
11746 The ratbagd DBus service can be enabled by adding the following service to
11747 your operating-system definition:
11748
11749 (simple-service 'ratbagd dbus-root-service-type (list libratbag))")
11750 (license license:expat)))
11751
11752 (define-public piper
11753 (package
11754 (name "piper")
11755 (version "0.5.1")
11756 (source
11757 (origin
11758 (method git-fetch)
11759 (uri (git-reference
11760 (url "https://github.com/libratbag/piper")
11761 (commit version)))
11762 (sha256
11763 (base32 "1nfjnsiwg2rs6gkjsxzhr2708i6di149dgwq3cf6l12rxqpb8arj"))
11764 (file-name (git-file-name name version))))
11765 (build-system meson-build-system)
11766 (native-inputs
11767 `(("gettext" ,gettext-minimal)
11768 ("glib:bin" ,glib "bin")
11769 ("gobject-introspection" ,gobject-introspection)
11770 ("pkg-config" ,pkg-config)
11771 ("python-flake8" ,python-flake8)))
11772 (inputs
11773 `(("adwaita-icon-theme" ,adwaita-icon-theme)
11774 ("gtk" ,gtk+)
11775 ("gtk:bin" ,gtk+ "bin")
11776 ("librsvg" ,librsvg)
11777 ("python-evdev" ,python-evdev)
11778 ("python-lxml" ,python-lxml)
11779 ("python-pycairo" ,python-pycairo)
11780 ("python-pygobject" ,python-pygobject)))
11781 (arguments
11782 `(#:imported-modules ((guix build python-build-system)
11783 ,@%meson-build-system-modules)
11784 #:modules (((guix build python-build-system) #:prefix python:)
11785 (guix build meson-build-system)
11786 (guix build utils))
11787 #:tests? #f ;; The flake8 test fails trying to validate piper.in as code.
11788 #:phases
11789 (modify-phases %standard-phases
11790 (add-after 'unpack 'dont-update-gtk-icon-cache
11791 (lambda _
11792 (substitute* "meson.build"
11793 (("meson.add_install_script('meson_install.sh')") ""))
11794 #t))
11795 ;; TODO: Switch to wrap-script when it is fixed.
11796 (add-after 'install 'wrap-python
11797 (assoc-ref python:%standard-phases 'wrap))
11798 (add-after 'wrap-python 'wrap
11799 (lambda* (#:key outputs #:allow-other-keys)
11800 (wrap-program
11801 (string-append (assoc-ref outputs "out" )"/bin/piper")
11802 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
11803 #t)))))
11804 (home-page "https://github.com/libratbag/piper/")
11805 (synopsis "Configure bindings and LEDs on gaming mice")
11806 (description "Piper is a GTK+ application for configuring gaming mice with
11807 onboard configuration for key bindings via libratbag. Piper requires
11808 a @command{ratbagd} daemon running with root privileges. It can be run
11809 manually as root, but is preferably configured as a DBus service that can
11810 launch on demand. This can be configured by enabling the following service,
11811 provided there is a DBus service present:
11812
11813 (simple-service 'ratbagd dbus-root-service-type (list libratbag))")
11814 (license license:gpl2)))
11815
11816 (define-public parlatype
11817 (package
11818 (name "parlatype")
11819 (version "2.1")
11820 (source
11821 (origin
11822 (method git-fetch)
11823 (uri (git-reference
11824 (url "https://github.com/gkarsay/parlatype")
11825 (commit (string-append "v" version))))
11826 (file-name (git-file-name name version))
11827 (sha256
11828 (base32 "1c15ja0rwz3jj8bnqdq0nmqka39iwrhy8krdv2a2x8nl4shfpmv0"))))
11829 (build-system meson-build-system)
11830 (arguments
11831 `(#:glib-or-gtk? #t
11832 #:tests? #f ;require internet access
11833 #:phases
11834 (modify-phases %standard-phases
11835 (add-after 'install 'wrap-parlatype
11836 ;; Add gstreamer plugin provided in this package to system's
11837 ;; plugins.
11838 (lambda* (#:key outputs #:allow-other-keys)
11839 (let* ((out (assoc-ref outputs "out"))
11840 (gst-plugin-path (string-append
11841 out "/lib/gstreamer-1.0/"
11842 ":"
11843 (getenv "GST_PLUGIN_SYSTEM_PATH"))))
11844 (wrap-program (string-append out "/bin/parlatype")
11845 `("GST_PLUGIN_SYSTEM_PATH" ":" = (,gst-plugin-path))))
11846 #t)))))
11847 (native-inputs
11848 `(("appstream-glib" ,appstream-glib)
11849 ("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
11850 ("gettext" ,gettext-minimal)
11851 ("glib" ,glib "bin") ;for glib-compile-resources
11852 ("pkg-config" ,pkg-config)
11853 ("yelp-tools" ,yelp-tools)))
11854 (inputs
11855 `(("gst-plugins-base" ,gst-plugins-base)
11856 ("gst-plugins-good" ,gst-plugins-good)
11857 ("gstreamer" ,gstreamer)
11858 ("gtk+" ,gtk+)
11859 ("pocketsphinx" ,pocketsphinx)
11860 ("pulseaudio" ,pulseaudio)
11861 ("sphinxbase" ,sphinxbase)))
11862 (home-page "http://gkarsay.github.io/parlatype/")
11863 (synopsis "GNOME audio player for transcription")
11864 (description "Parlatype is an audio player for the GNOME desktop
11865 environment. Its main purpose is the manual transcription of spoken
11866 audio files.")
11867 (license license:gpl3+)))
11868
11869 (define-public jsonrpc-glib
11870 (package
11871 (name "jsonrpc-glib")
11872 (version "3.34.0")
11873 (source (origin
11874 (method url-fetch)
11875 (uri (string-append "mirror://gnome/sources/" name "/"
11876 (version-major+minor version) "/"
11877 name "-" version ".tar.xz"))
11878 (sha256
11879 (base32
11880 "0j05x4xv2cp3cbmp30m68z8g4rdw7b030ip4wszyfj9ya15v5kni"))))
11881 (build-system meson-build-system)
11882 (inputs
11883 `(("json-glib" ,json-glib)
11884 ("glib" ,glib)))
11885 (native-inputs
11886 `(("pkg-config" ,pkg-config)
11887 ("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
11888 ("gobject-introspection" ,gobject-introspection)
11889 ("vala" ,vala)))
11890 (home-page "https://gitlab.gnome.org/GNOME/jsonrpc-glib")
11891 (synopsis "JSON-RPC library for GLib")
11892 (description "Jsonrpc-GLib is a library to communicate with JSON-RPC based
11893 peers in either a synchronous or asynchronous fashion. It also allows
11894 communicating using the GVariant serialization format instead of JSON when
11895 both peers support it. You might want that when communicating on a single
11896 host to avoid parser overhead and memory-allocator fragmentation.")
11897 (license license:lgpl2.1+)))
11898
11899 (define-public feedbackd
11900 (package
11901 (name "feedbackd")
11902 (version "0.0.0+git20200527")
11903 (source (origin
11904 (method git-fetch)
11905 (uri (git-reference
11906 (url "https://source.puri.sm/Librem5/feedbackd.git")
11907 (commit (string-append "v" version))))
11908 (file-name (git-file-name name version))
11909 (sha256
11910 (base32
11911 "1wbkzxnqjydfgjvp7vz4ghczcz740zcb1yn90cb6gb5md4n6qx2y"))))
11912 (build-system meson-build-system)
11913 (native-inputs
11914 `(("glib:bin" ,glib "bin")
11915 ("gobject-introspection" ,gobject-introspection)
11916 ("pkg-config" ,pkg-config)
11917 ("vala" ,vala)))
11918 (inputs
11919 `(("dbus" ,dbus)
11920 ("gsound" ,gsound)
11921 ("json-glib" ,json-glib)
11922 ("libgudev" ,libgudev)))
11923 (propagated-inputs
11924 `(("glib" ,glib))) ; in Requires of libfeedback-0.0.pc
11925 (synopsis "Haptic/visual/audio feedback via DBus")
11926 (description "Feedbackd provides a DBus daemon to act on events to provide
11927 haptic, visual and audio feedback. It offers the libfeedbackd library and
11928 GObject introspection bindings.")
11929 (home-page "https://source.puri.sm/Librem5/feedbackd")
11930 (license (list license:lgpl2.1+ ; libfeedbackd
11931 license:lgpl3+)))) ; the rest
11932
11933 (define-public sysprof
11934 (package
11935 (name "sysprof")
11936 (version "3.36.0")
11937 (source
11938 (origin
11939 (method url-fetch)
11940 (uri (string-append "mirror://gnome/sources/sysprof/"
11941 (version-major+minor version) "/"
11942 "sysprof-" version ".tar.xz"))
11943 (sha256
11944 (base32 "024i0gzqnm79rpr4gqxdvcj6gvf82xdlcp2p1k9ikcppmi6xnw46"))))
11945 (build-system meson-build-system)
11946 (arguments
11947 `(#:configure-flags
11948 (list (string-append "-Dsystemdunitdir="
11949 %output
11950 "/share/systemd"))
11951 #:tests? #f ; 3/4 test-model-filter barfs some dbus nonsense
11952 #:phases
11953 (modify-phases %standard-phases
11954 (add-after 'unpack 'patch-install-script
11955 (lambda _
11956 (substitute* "build-aux/meson/post_install.sh"
11957 (("gtk-update-icon-cache") "true")
11958 (("update-desktop-database") "true"))
11959 #t)))))
11960 (inputs
11961 `(("glib" ,glib)
11962 ("gtk+" ,gtk+)
11963 ("libdazzle" ,libdazzle)
11964 ("polkit" ,polkit)))
11965 (native-inputs
11966 `(("gettext" ,gettext-minimal)
11967 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
11968 ("itstool" ,itstool)
11969 ("pkg-config" ,pkg-config)
11970 ("xmllint" ,libxml2)))
11971 ;; This home page is so woefully out of date as to be essentially useless.
11972 ;; (home-page "http://www.sysprof.com")
11973 (home-page "https://wiki.gnome.org/Apps/Sysprof")
11974 (synopsis "System-wide performance profiler for GNU/Linux")
11975 (description
11976 "Sysprof performs detailed, accurate, and fast CPU profiling of an entire
11977 GNU/Linux system including the kernel and all user-space applications. This
11978 helps find the function(s) in which a program spends most of its time.
11979
11980 It uses the kernel's built-in @code{ptrace} feature and handles shared
11981 libraries. Applications do not need to be recompiled--or even restarted.")
11982 (license license:gpl3+)))
11983
11984 (define-public gnome-builder
11985 (package
11986 (name "gnome-builder")
11987 (version "3.36.1")
11988 (source (origin
11989 (method url-fetch)
11990 (uri (string-append "mirror://gnome/sources/" name "/"
11991 (version-major+minor version) "/"
11992 name "-" version ".tar.xz"))
11993 (sha256
11994 (base32
11995 "17pvmd5jypar8dkr6w56hvf7jnq4l1wih2wwgkrv7sblr7rkkar2"))))
11996 (build-system meson-build-system)
11997 (arguments
11998 `(#:configure-flags (list "-Dnetwork_tests=false"
11999 ;; TODO: Enable all plugins...
12000 "-Dplugin_clang=false"
12001 "-Dplugin_flatpak=false"
12002 "-Dplugin_glade=false"
12003 ;; XXX: This one has been shown not to work in
12004 ;; <https://issues.guix.gnu.org/45272>
12005 "-Dplugin_jedi=false"
12006 ;; ... except this one.
12007 "-Dplugin_update_manager=false")
12008 #:phases
12009 (modify-phases %standard-phases
12010 (add-after 'unpack 'patch-meson
12011 (lambda* (#:key inputs #:allow-other-keys)
12012 (substitute* "build-aux/meson/post_install.py"
12013 (("gtk-update-icon-cache") "true")
12014 (("update-desktop-database") "true"))
12015 (substitute* "src/libide/meson.build"
12016 (("/usr/lib")
12017 (string-append (assoc-ref inputs "python-pygobject")
12018 "/lib")))
12019 #t))
12020 (add-after 'configure 'fix-ninja
12021 (lambda _
12022 ;; #43296: meson(?) incorrectly assumes we want to link
12023 ;; this PIE against a static libselinux.
12024 (substitute* "build.ninja"
12025 (("libselinux\\.a") "libselinux.so"))
12026 #t))
12027 (add-before 'check 'pre-check
12028 (lambda _
12029 (system "Xvfb :1 &")
12030 (setenv "DISPLAY" ":1")
12031 #t)))))
12032 (inputs
12033 `(("devhelp" ,devhelp)
12034 ("gspell" ,gspell)
12035 ("gtk+" ,gtk+)
12036 ("json-glib" ,json-glib)
12037 ("jsonrpc-glib" ,jsonrpc-glib)
12038 ("libdazzle" ,libdazzle)
12039 ("libgit2-glib" ,libgit2-glib)
12040 ("libpeas" ,libpeas)
12041 ("python-pygobject" ,python-pygobject)
12042 ("sysprof" ,sysprof)
12043 ("template-glib" ,template-glib)
12044 ("vte" ,vte)
12045 ("webkitgtk" ,webkitgtk)))
12046 (propagated-inputs
12047 `(("gtksourceview" ,gtksourceview))) ;needed for settings
12048 (native-inputs
12049 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
12050 ("glib:bin" ,glib "bin")
12051 ("gettext" ,gettext-minimal)
12052 ("pkg-config" ,pkg-config)
12053 ("vala" ,vala)
12054 ("xorg-server" ,xorg-server-for-tests)))
12055 (home-page "https://wiki.gnome.org/Apps/Builder")
12056 (synopsis "Toolsmith for GNOME-based applications")
12057 (description "Builder aims to be an integrated development
12058 environment (IDE) for writing GNOME-based software. It features fuzzy search,
12059 auto-completion, a mini code map, documentation browsing, Git integration, an
12060 integrated profiler via Sysprof, debugging support, and more.")
12061 (license license:gpl3+)))
12062
12063 (define-public komikku
12064 (package
12065 (name "komikku")
12066 (version "0.29.2")
12067 (source
12068 (origin
12069 (method git-fetch)
12070 (uri (git-reference
12071 (url "https://gitlab.com/valos/Komikku/")
12072 (commit (string-append "v" version))))
12073 (file-name (git-file-name name version))
12074 (sha256
12075 (base32
12076 "0g1whk0y3k1cy6ix20gz226ww1vzpb9hinn5d24z6j38mdgqqa5l"))))
12077 (build-system meson-build-system)
12078 (arguments
12079 `(#:glib-or-gtk? #t
12080 #:phases
12081 (modify-phases %standard-phases
12082 (add-after 'unpack 'patch-sources
12083 (lambda _
12084 (substitute* "komikku/utils.py"
12085 (("from komikku\\.servers import get_servers_list")
12086 ;; code following that line should migrate old databases
12087 ;; but the line itself results in an import error
12088 "return data_dir_path"))))
12089 (add-after 'unpack 'skip-gtk-update-icon-cache
12090 (lambda _
12091 (substitute* "meson_post_install.py"
12092 (("gtk-update-icon-cache") (which "true")))
12093 #t))
12094 (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
12095 (lambda* (#:key outputs #:allow-other-keys)
12096 (let ((prog (string-append (assoc-ref outputs "out")
12097 "/bin/komikku")))
12098 (wrap-program prog
12099 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
12100 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
12101 #t))))))
12102 (inputs
12103 `(("gtk+" ,gtk+)
12104 ("libhandy" ,libhandy)
12105 ("libnotify" ,libnotify)
12106 ("libsecret" ,libsecret)
12107 ("python-beautifulsoup4" ,python-beautifulsoup4)
12108 ("python-brotli" ,python-brotli)
12109 ("python-cloudscraper" ,python-cloudscraper)
12110 ("python-dateparser" ,python-dateparser)
12111 ("python-keyring" ,python-keyring)
12112 ("python-lxml" ,python-lxml)
12113 ("python-magic" ,python-magic)
12114 ("python-pillow" ,python-pillow)
12115 ("python-pure-protobuf" ,python-pure-protobuf)
12116 ("python-pycairo" ,python-pycairo)
12117 ("python-pygobject" ,python-pygobject)
12118 ("python-requests" ,python-requests)
12119 ("python-unidecode" ,python-unidecode)
12120 ("webkitgtk" ,webkitgtk)))
12121 (native-inputs
12122 `(("desktop-file-utils" ,desktop-file-utils)
12123 ("gettext" ,gettext-minimal)
12124 ("glib:bin" ,glib "bin")
12125 ("gobject-introspection" ,gobject-introspection)
12126 ("pkg-config" ,pkg-config)))
12127 (home-page "https://gitlab.com/valos/Komikku")
12128 (synopsis "Manga reader for GNOME")
12129 (description "Komikku is an online/offline manga reader for GNOME,
12130 developed with the aim of being used with the Librem 5 phone.")
12131 (license license:gpl3+)))
12132
12133 (define-public libgda
12134 (package
12135 (name "libgda")
12136 (version "5.2.10")
12137 (source
12138 (origin
12139 (method git-fetch)
12140 (uri (git-reference
12141 (url "https://gitlab.gnome.org/GNOME/libgda.git/")
12142 (commit (string-append "LIBGDA_" (string-replace-substring
12143 version "." "_")))))
12144 (file-name (git-file-name name version))
12145 (sha256
12146 (base32 "18rg773gq9v3cdywpmrp12c5xyp97ir9yqjinccpi22sksb1kl8a"))))
12147 (build-system gnu-build-system)
12148 (arguments
12149 `(#:configure-flags '("--enable-vala")
12150 ;; There's a race between check_cnc_lock and check_threaded_cnc
12151 ;; in tests/multi-threading.
12152 #:parallel-tests? #f
12153 #:phases
12154 (modify-phases %standard-phases
12155 (add-after 'unpack 'fix-glade-install
12156 (lambda _
12157 (substitute* "configure.ac"
12158 (("`\\$PKG_CONFIG --variable=catalogdir gladeui-2\\.0`")
12159 "${datadir}/glade/catalogs")
12160 (("`\\$PKG_CONFIG --variable=pixmapdir gladeui-2\\.0`")
12161 "${datadir}/glade/pixmaps"))
12162 #t))
12163 (add-before 'check 'pre-check
12164 (lambda* (#:key inputs #:allow-other-keys)
12165 ;; Tests require a running X server.
12166 (system "Xvfb :1 &")
12167 (setenv "DISPLAY" ":1")
12168 #t))
12169 (add-after 'install 'symlink-glade-module
12170 (lambda* (#:key outputs #:allow-other-keys)
12171 (let* ((shlib "libgda-ui-5.0.so")
12172 (out (assoc-ref outputs "out"))
12173 (out/lib (string-append out "/lib"))
12174 (moduledir (string-append out/lib "/glade/modules")))
12175 (mkdir-p moduledir)
12176 (symlink (string-append out/lib "/" shlib)
12177 (string-append moduledir "/" shlib))
12178 #t))))))
12179 (propagated-inputs
12180 `(("libxml2" ,libxml2))) ; required by libgda-5.0.pc
12181 (inputs
12182 `(("glib" ,glib)
12183 ("glade" ,glade3)
12184 ("gtk+" ,gtk+)
12185 ("libsecret" ,libsecret)
12186 ("libxslt" ,libxslt)
12187 ("openssl" ,openssl)
12188 ("vala" ,vala)))
12189 (native-inputs
12190 `(("autoconf" ,autoconf)
12191 ("autoconf-archive" ,autoconf-archive)
12192 ("automake" ,automake)
12193 ("glib:bin" ,glib "bin")
12194 ("gnome-common" ,gnome-common)
12195 ("gobject-introspection" ,gobject-introspection)
12196 ("gtk-doc" ,gtk-doc/stable)
12197 ("intltool" ,intltool)
12198 ("libtool" ,libtool)
12199 ("pkg-config" ,pkg-config)
12200 ("vala" ,vala)
12201 ("which" ,which)
12202 ("xorg-server" ,xorg-server-for-tests)
12203 ("yelp-tools" ,yelp-tools)))
12204 (home-page "https://gitlab.gnome.org/GNOME/libgda")
12205 (synopsis "Uniform data access")
12206 (description
12207 "GNU Data Access (GDA) is an attempt to provide uniform access to
12208 different kinds of data sources (databases, information servers, mail spools,
12209 etc). It is a complete architecture that provides all you need to access
12210 your data.")
12211 (license license:lgpl2.1+)))
12212
12213 (define-public gtranslator
12214 (package
12215 (name "gtranslator")
12216 (version "3.36.0")
12217 (source (origin
12218 (method url-fetch)
12219 (uri (string-append "mirror://gnome/sources/" name "/"
12220 (version-major+minor version) "/"
12221 name "-" version ".tar.xz"))
12222 (sha256
12223 (base32
12224 "1lxd2nkji4jk8g2xmyc1a1r3ww710ddk91zh9psmx8xlb4xivaid"))))
12225 (build-system meson-build-system)
12226 (inputs
12227 `(("json-glib" ,json-glib)
12228 ("jsonrpc-glib" ,jsonrpc-glib)
12229 ("gettext" ,gettext-minimal)
12230 ("glib" ,glib)
12231 ("gtk+" ,gtk+)
12232 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
12233 ("gspell" ,gspell)
12234 ("libdazzle" ,libdazzle)
12235 ("libgda" ,libgda)
12236 ("libsoup" ,libsoup)))
12237 (native-inputs
12238 `(("glib:bin" ,glib "bin")
12239 ("itstool" ,itstool)
12240 ("pkg-config" ,pkg-config)))
12241 (propagated-inputs
12242 `(("gtksourceview" ,gtksourceview))) ; required for source view
12243 (arguments
12244 `(#:build-type "release"
12245 #:glib-or-gtk? #t
12246 #:phases
12247 (modify-phases %standard-phases
12248 (add-after 'unpack 'skip-gtk-update-icon-cache
12249 (lambda _
12250 (substitute* "build-aux/meson/meson_post_install.py"
12251 (("gtk-update-icon-cache") (which "true")))
12252 #t)))))
12253 (home-page "https://wiki.gnome.org/Apps/Gtranslator")
12254 (synopsis "Translation making program")
12255 (description
12256 "gtranslator is a quite comfortable gettext po/po.gz/(g)mo files editor
12257 for the GNOME 3.x platform with many features. It aims to be a very complete
12258 editing environment for translation issues within the GNU gettext/GNOME desktop
12259 world.")
12260 (license license:gpl3+)))
12261
12262
12263 (define-public ocrfeeder
12264 (package
12265 (name "ocrfeeder")
12266 (version "0.8.3")
12267 (source (origin
12268 (method url-fetch)
12269 (uri (string-append "mirror://gnome/sources/ocrfeeder/"
12270 (version-major+minor version) "/"
12271 "ocrfeeder-" version ".tar.xz"))
12272 (sha256
12273 (base32
12274 "12f5gnq92ffnd5zaj04df7jrnsdz1zn4zcgpbf5p9qnd21i2y529"))))
12275 (build-system gnu-build-system)
12276 (arguments
12277 `(#:phases
12278 (modify-phases %standard-phases
12279 (add-after
12280 'install 'wrap-program
12281 (lambda* (#:key outputs #:allow-other-keys)
12282 (let ((prog (string-append (assoc-ref outputs "out")
12283 "/bin/" "ocrfeeder"))
12284 (pylib (string-append (assoc-ref outputs "out")
12285 "/lib/python"
12286 ,(version-major+minor
12287 (package-version python))
12288 "/site-packages")))
12289 (wrap-program prog
12290 `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
12291 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
12292 #t))))))
12293 (native-inputs
12294 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
12295 ("gobject-introspection" ,gobject-introspection)
12296 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
12297 ("intltool" ,intltool)
12298 ("itstool" ,itstool)
12299 ("pkg-config" ,pkg-config)
12300 ("xmllint" ,libxml2)))
12301 (inputs
12302 `(("enchant" ,enchant)
12303 ("glib" ,glib)
12304 ("goocanvas" ,goocanvas)
12305 ("gtk" ,gtk+)
12306 ("gtkspell3" ,gtkspell3)
12307 ("libjpeg" ,libjpeg-turbo)
12308 ("libtiff" ,libtiff)
12309 ("libraw" ,libraw)
12310 ("ocrad" ,ocrad)
12311 ("python" ,python-wrapper)
12312 ("python-pygobject" ,python-pygobject)
12313 ("python-odfpy" ,python-odfpy)
12314 ("python-pillow" ,python-pillow)
12315 ("python-pyenchant" ,python-pyenchant)
12316 ("python-reportlab" ,python-reportlab)
12317 ("python-sane" ,python-sane)
12318 ("sane-backends" ,sane-backends)
12319 ("tesseract-ocr" ,tesseract-ocr)))
12320 (home-page "https://wiki.gnome.org/Apps/OCRFeeder")
12321 (synopsis "Complete OCR Suite")
12322 (description "OCRFeeder is a complete Optical Character Recognition and
12323 Document Analysis and Recognition program.")
12324 (license license:gpl3+)))