gnu: rust-streaming-stats-0.2: Update to 0.2.3.
[jackhill/guix/guix.git] / gnu / packages / gnome.scm
CommitLineData
995b7261 1;;; GNU Guix --- Functional package management for GNU
109da1c0 2;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
5dc6d5ce 3;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
29a7c98a 4;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
7108425c 5;;; Copyright © 2014, 2016 Eric Bavier <bavier@member.fsf.org>
58d32305 6;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
8b877545 7;;; Copyright © 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
7aab13f1 8;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
63ad9b80 9;;; Copyright © 2015, 2017 Andy Wingo <wingo@igalia.com>
1e7464a9 10;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
7d3bb433 11;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
64a153bd 12;;; Copyright © 2015, 2016, 2017, 2018 Mark H Weaver <mhw@netris.org>
293ff8b2 13;;; Copyright © 2015 David Thompson <davet@gnu.org>
e19cb895 14;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
35e2d0cf 15;;; Copyright © 2016, 2017, 2018 Rene Saavedra <pacoon@protonmail.com>
3c697ffd 16;;; Copyright © 2016 Jochem Raat <jchmrt@riseup.net>
03be9874 17;;; Copyright © 2016, 2017, 2019 Kei Kebreau <kkebreau@posteo.net>
277a7d82 18;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
a56be436 19;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
e19f9c24 20;;; Copyright © 2016, 2018 Leo Famulari <leo@famulari.name>
71d9b980 21;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
47956fa0 22;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
e5e1df4d 23;;; Copyright © 2016 David Craven <david@craven.ch>
ac631328 24;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
cce0da5e 25;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
d04687dc 26;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com>
3c5dbd2b 27;;; Copyright © 2017, 2018 nee <nee-git@hidamari.blue>
d1d739fa 28;;; Copyright © 2017 Chris Marusich <cmmarusich@gmail.com>
1d3fcf94 29;;; Copyright © 2017 Mohammed Sadiq <sadiq@sadiqpk.org>
dcfa0acd 30;;; Copyright © 2017 Brendan Tildesley <mail@brendan.scot>
0438f1d8 31;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
4e3fdeb7 32;;; Copyright © 2018 Jovany Leandro G.C <bit4bit@riseup.net>
2eee7ee3 33;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
a18f8eaf 34;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
e57c2adb 35;;; Copyright © 2018, 2019 Timothy Sample <samplet@ngyro.com>
8caa4589 36;;; Copyright © 2019 Danny Milosavljevic <dannym@scratchpost.org>
f2d56e39 37;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
3e9c80b2 38;;; Copyright © 2019 Florian Pelz <pelzflorian@pelzflorian.de>
a7a31827 39;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
633422b0 40;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
213315d4 41;;; Copyright © 2019 Jonathan Frederickson <jonathan@terracrypt.net>
4690e3a4 42;;; Copyright © 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
50e96d25 43;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
93beace0 44;;; Copyright © 2019 David Wilson <david@daviwil.com>
d36fa50f 45;;; Copyright © 2019, 2020 Raghav Gururajan <raghavgururajan@disroot.org>
f6501b9f 46;;; Copyright © 2019 Jonathan Brielmaier <jonathan.brielmaier@web.de>
26ba3f07 47;;; Copyright © 2019 Leo Prikler <leo.prikler@student.tugraz.at>
fa01e10d 48;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
995b7261
AE
49;;;
50;;; This file is part of GNU Guix.
51;;;
52;;; GNU Guix is free software; you can redistribute it and/or modify it
53;;; under the terms of the GNU General Public License as published by
54;;; the Free Software Foundation; either version 3 of the License, or (at
55;;; your option) any later version.
56;;;
57;;; GNU Guix is distributed in the hope that it will be useful, but
58;;; WITHOUT ANY WARRANTY; without even the implied warranty of
59;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
60;;; GNU General Public License for more details.
61;;;
62;;; You should have received a copy of the GNU General Public License
63;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
64
65(define-module (gnu packages gnome)
ed19903d 66 #:use-module (gnu packages)
ba5dd105 67 #:use-module (gnu packages admin)
411ba511 68 #:use-module (gnu packages aspell)
75016d07 69 #:use-module (gnu packages autotools)
7b212526 70 #:use-module (gnu packages avahi)
b29909b4 71 #:use-module (gnu packages backup)
6a180f6f 72 #:use-module (gnu packages base)
1e33331c 73 #:use-module (gnu packages bash)
5698b8b8 74 #:use-module (gnu packages bison)
aa51d92c 75 #:use-module (gnu packages boost)
5fc9b6c1 76 #:use-module (gnu packages build-tools)
df217748 77 #:use-module (gnu packages calendar)
b29909b4 78 #:use-module (gnu packages cdrom)
df12f04a 79 #:use-module (gnu packages check)
d61a894b 80 #:use-module (gnu packages cmake)
b29909b4 81 #:use-module (gnu packages compression)
8f523eb9 82 #:use-module (gnu packages crates-io)
23a22af6 83 #:use-module (gnu packages cups)
6e1bb642 84 #:use-module (gnu packages curl)
c3f29bc9 85 #:use-module (gnu packages cyrus-sasl)
6e1bb642 86 #:use-module (gnu packages databases)
255d1bbe 87 #:use-module (gnu packages dbm)
c769cf9f 88 #:use-module (gnu packages djvu)
ba5dd105 89 #:use-module (gnu packages dns)
b4ce6300 90 #:use-module (gnu packages docbook)
b29909b4 91 #:use-module (gnu packages documentation)
329d731b 92 #:use-module (gnu packages enchant)
b29909b4
TGR
93 #:use-module (gnu packages flex)
94 #:use-module (gnu packages fonts)
e762d943 95 #:use-module (gnu packages file-systems)
a56be436 96 #:use-module (gnu packages fontutils)
b29909b4 97 #:use-module (gnu packages freedesktop)
dfc407f3 98 #:use-module (gnu packages game-development)
fed5a689 99 #:use-module (gnu packages gettext)
b29909b4
TGR
100 #:use-module (gnu packages ghostscript)
101 #:use-module (gnu packages gl)
995b7261 102 #:use-module (gnu packages glib)
c1354b90 103 #:use-module (gnu packages gnupg)
23a22af6 104 #:use-module (gnu packages gnuzilla)
8d8c6bff 105 #:use-module (gnu packages geo)
b29909b4
TGR
106 #:use-module (gnu packages gperf)
107 #:use-module (gnu packages graphviz)
85f5dc19 108 #:use-module (gnu packages gstreamer)
d9c1a22b 109 #:use-module (gnu packages gtk)
6b888eff 110 #:use-module (gnu packages guile)
b645146f 111 #:use-module (gnu packages ibus)
03be9874 112 #:use-module (gnu packages icu4c)
b29909b4
TGR
113 #:use-module (gnu packages image)
114 #:use-module (gnu packages imagemagick)
115 #:use-module (gnu packages inkscape)
9cc98f8a 116 #:use-module (gnu packages iso-codes)
b29909b4 117 #:use-module (gnu packages kerberos)
85f5dc19 118 #:use-module (gnu packages libcanberra)
b64e217f 119 #:use-module (gnu packages libunistring)
75016d07 120 #:use-module (gnu packages libusb)
b29909b4 121 #:use-module (gnu packages linux)
4e3fc547 122 #:use-module (gnu packages lirc)
7b212526 123 #:use-module (gnu packages lua)
b29909b4 124 #:use-module (gnu packages mail)
03be9874 125 #:use-module (gnu packages mp3)
b29909b4 126 #:use-module (gnu packages multiprecision)
64fce637 127 #:use-module (gnu packages music)
b29909b4
TGR
128 #:use-module (gnu packages ncurses)
129 #:use-module (gnu packages nettle)
ba5dd105 130 #:use-module (gnu packages networking)
5fc9b6c1 131 #:use-module (gnu packages ninja)
aff0cce9 132 #:use-module (gnu packages nss)
b29909b4 133 #:use-module (gnu packages openldap)
b645146f 134 #:use-module (gnu packages password-utils)
de1215e2 135 #:use-module (gnu packages pcre)
b29909b4 136 #:use-module (gnu packages pdf)
27477d2d 137 #:use-module (gnu packages perl)
f70d8383 138 #:use-module (gnu packages photo)
995b7261 139 #:use-module (gnu packages pkg-config)
b29909b4
TGR
140 #:use-module (gnu packages polkit)
141 #:use-module (gnu packages popt)
7d3bb433 142 #:use-module (gnu packages pretty-print)
23a22af6 143 #:use-module (gnu packages pulseaudio)
995b7261 144 #:use-module (gnu packages python)
00014781
RW
145 #:use-module (gnu packages python-crypto)
146 #:use-module (gnu packages python-web)
44d10b1f 147 #:use-module (gnu packages python-xyz)
cce0da5e 148 #:use-module (gnu packages rdesktop)
b29909b4 149 #:use-module (gnu packages readline)
a76d0f03 150 #:use-module (gnu packages ruby)
ec47c07d 151 #:use-module (gnu packages rust)
b29909b4 152 #:use-module (gnu packages samba)
75016d07 153 #:use-module (gnu packages scanner)
240cee8a 154 #:use-module (gnu packages selinux)
c27e02bf 155 #:use-module (gnu packages slang)
b29909b4
TGR
156 #:use-module (gnu packages speech)
157 #:use-module (gnu packages spice)
cd0322a3 158 #:use-module (gnu packages sqlite)
4a1bf090 159 #:use-module (gnu packages ssh)
8f9ac901 160 #:use-module (gnu packages tex)
33dc54b0 161 #:use-module (gnu packages time)
a7fd7b68 162 #:use-module (gnu packages tls)
3c5dbd2b 163 #:use-module (gnu packages version-control)
b29909b4 164 #:use-module (gnu packages video)
59132b80 165 #:use-module (gnu packages virtualization)
f2b96b3a 166 #:use-module (gnu packages vpn)
a18f8eaf 167 #:use-module (gnu packages web)
b29909b4
TGR
168 #:use-module (gnu packages webkit)
169 #:use-module (gnu packages xdisorg)
170 #:use-module (gnu packages xiph)
171 #:use-module (gnu packages xml)
d633f2f6 172 #:use-module (gnu packages xorg)
a76d0f03 173 #:use-module (gnu artwork)
8f523eb9 174 #:use-module (guix build-system cargo)
b29909b4
TGR
175 #:use-module (guix build-system cmake)
176 #:use-module (guix build-system glib-or-gtk)
177 #:use-module (guix build-system gnu)
178 #:use-module (guix build-system meson)
08be02be 179 #:use-module (guix build-system python)
b29909b4
TGR
180 #:use-module (guix build-system trivial)
181 #:use-module (guix download)
182 #:use-module (guix git-download)
183 #:use-module ((guix licenses) #:prefix license:)
184 #:use-module (guix packages)
185 #:use-module (guix utils)
a76d0f03 186 #:use-module (guix gexp)
8f523eb9
EF
187 #:use-module (guix monads)
188 #:use-module (guix store)
4e3fdeb7 189 #:use-module (ice-9 match)
c024ae36 190 #:use-module (srfi srfi-1))
85f5dc19
AE
191
192(define-public brasero
193 (package
194 (name "brasero")
e2bf423a 195 (version "3.12.2")
85f5dc19
AE
196 (source (origin
197 (method url-fetch)
d1df7554 198 (uri (string-append "mirror://gnome/sources/brasero/"
e8627cd9 199 (version-major+minor version) "/"
d1df7554 200 "brasero-" version ".tar.xz"))
85f5dc19
AE
201 (sha256
202 (base32
e2bf423a 203 "0h90y674j26rvjahb8cc0w79zx477rb6zaqcj26wzvq8kmpic8k8"))))
1c40e3b7 204 (build-system glib-or-gtk-build-system)
e8627cd9
DH
205 (arguments
206 `(#:configure-flags (list
207 (string-append "--with-girdir="
208 (assoc-ref %outputs "out")
209 "/share/gir-1.0")
210 (string-append "--with-typelibdir="
211 (assoc-ref %outputs "out")
ce426deb
TD
212 "/lib/girepository-1.0"))
213 #:phases
214 (modify-phases %standard-phases
215 (add-before 'configure 'embed-growisofs
216 (lambda* (#:key inputs #:allow-other-keys)
217 (substitute* "plugins/growisofs/burn-growisofs.c"
218 (("\"growisofs") (string-append "\"" (which "growisofs"))))
e2bf423a 219 #t)))))
85f5dc19
AE
220 (propagated-inputs
221 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
9cc98f8a
CR
222 (native-inputs
223 `(("intltool" ,intltool)
ba549e17 224 ("itstool" ,itstool)
426adbe8 225 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
e8627cd9 226 ("gobject-introspection" ,gobject-introspection)
9cc98f8a 227 ("pkg-config" ,pkg-config)))
85f5dc19 228 (inputs
ce426deb
TD
229 `(("dvd+rw-tools" ,dvd+rw-tools)
230 ("glib" ,glib)
85f5dc19
AE
231 ("gnome-doc-utils" ,gnome-doc-utils)
232 ("gstreamer" ,gstreamer)
233 ("gst-plugins-base" ,gst-plugins-base)
234 ("gtk+" ,gtk+)
85f5dc19
AE
235 ("libcanberra" ,libcanberra)
236 ("libice" ,libice)
237 ("libnotify" ,libnotify)
238 ("libsm" ,libsm)
e8627cd9 239 ("libxml2" ,libxml2)
e8627cd9 240 ("totem-pl-parser" ,totem-pl-parser)))
fb9399e9 241 (home-page "https://wiki.gnome.org/Apps/Brasero")
85f5dc19
AE
242 (synopsis "CD/DVD burning tool for Gnome")
243 (description "Brasero is an application to burn CD/DVD for the Gnome
244Desktop. It is designed to be as simple as possible and has some unique
245features to enable users to create their discs easily and quickly.")
1dd26275 246 (license license:gpl2+)))
995b7261 247
29ae18db
RG
248(define-public gnome-color-manager
249 (package
250 (name "gnome-color-manager")
251 (version "3.32.0")
252 (source (origin
253 (method url-fetch)
254 (uri (string-append "mirror://gnome/sources/" name "/"
255 (version-major+minor version) "/"
256 name "-" version ".tar.xz"))
257 (sha256
258 (base32
259 "1vpxa2zjz3lkq9ldjg0fl65db9s6b4kcs8nyaqfz3jygma7ifg3w"))))
260 (build-system meson-build-system)
261 (arguments
262 `(#:glib-or-gtk? #t
263 #:phases
264 (modify-phases %standard-phases
265 (add-before
266 'check 'pre-check
267 (lambda _
268 ;; Tests require a running X server.
269 (system "Xvfb :1 &")
270 (setenv "DISPLAY" ":1")
271 #t)))))
272 (native-inputs
273 `(("desktop-file-utils" ,desktop-file-utils)
274 ("gettext" ,gettext-minimal)
275 ("glib:bin" ,glib "bin")
276 ("gtk+:bin" ,gtk+ "bin")
277 ("itstool" ,itstool)
278 ("pkg-config" ,pkg-config)
279 ("xorg-server" ,xorg-server-for-tests)))
280 (inputs
281 `(("adwaita-icon-theme" ,adwaita-icon-theme)
282 ("appstream-glib" ,appstream-glib)
283 ("colord-gtk" ,colord-gtk)
284 ("exiv2" ,exiv2)
285 ("gnome-desktop" ,gnome-desktop)
286 ("libcanberra" ,libcanberra)
287 ("libexif" ,libexif)
288 ("libtiff" ,libtiff)
289 ("libxrandr" ,libxrandr)
290 ("libxtst" ,libxtst)
291 ("libxxf86vm" ,libxxf86vm)
292 ("vte" ,vte)
293 ("xorgproto" ,xorgproto)))
294 (synopsis "Color profile manager for the GNOME desktop")
295 (description "GNOME Color Manager is a session framework that makes
296it easy to manage, install and generate color profiles
297in the GNOME desktop.")
298 (home-page "https://gitlab.gnome.org/GNOME/gnome-color-manager")
7bd000d1 299 (license license:gpl2+)))
29ae18db 300
e05471a1
RG
301(define-public gnome-online-miners
302 (package
303 (name "gnome-online-miners")
304 (version "3.30.0")
305 (source (origin
306 (method url-fetch)
307 (uri (string-append "mirror://gnome/sources/" name "/"
308 (version-major+minor version) "/"
309 name "-" version ".tar.xz"))
310 (sha256
311 (base32
312 "0pjamwwzn5wqgihyss357dyl2q70r0bngnqmwsqawchx5f9aja9c"))))
313 (build-system glib-or-gtk-build-system)
314 (native-inputs
315 `(("gettext" ,gettext-minimal)
316 ("glib:bin" ,glib "bin")
29ae18db 317 ("gobject-introspection" ,gobject-introspection)
e05471a1
RG
318 ("gtk+:bin" ,gtk+ "bin")
319 ("pkg-config" ,pkg-config)))
320 (inputs
321 `(("gnome-online-accounts" ,gnome-online-accounts)
322 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
e05471a1
RG
323 ("grilo" ,grilo)
324 ("libgdata" ,libgdata)
325 ("libgfbgraph" ,gfbgraph)
326 ("libzapojit" ,libzapojit)
327 ("rest" ,rest)
328 ("tracker" ,tracker)))
329 (synopsis "Web Crawlers for GNOME")
330 (description "GNOME Online Miners provides a set of crawlers that
331go through your online content and index them locally in Tracker.
332It has miners for Facebook, Flickr, Google, ownCloud and SkyDrive.")
333 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineMiners")
7bd000d1 334 (license license:gpl2+)))
e05471a1 335
e2aed29c
RG
336(define-public gssdp
337 (package
338 (name "gssdp")
339 (version "1.2.2")
340 (source (origin
341 (method url-fetch)
342 (uri (string-append "mirror://gnome/sources/" name "/"
343 (version-major+minor version) "/"
344 name "-" version ".tar.xz"))
345 (sha256
346 (base32
347 "195hi10vrsvh6i927mm6rm1ld5sxah3h5sr3bsjm90vb8lxrxfya"))))
348 (build-system meson-build-system)
349 (native-inputs
350 `(("gettext" ,gettext-minimal)
351 ("glib:bin" ,glib "bin")
352 ("gobject-introspection" ,gobject-introspection)
353 ("gtk-doc" ,gtk-doc)
354 ("pkg-config" ,pkg-config)
355 ("vala" ,vala)))
356 (inputs
357 `(("gtk+" ,gtk+)
358 ("libsoup" ,libsoup)))
359 (synopsis "GObject-based API over @acronym{SSDP, Simple Service Discovery
360Protocol} for GNOME")
361 (description "This package provides a library to handle resource discovery
362and announcement over @acronym{SSDP, Simple Service Discovery Protocol} and
363a debugging tool, @command{gssdp-device-sniffer}.")
364 (home-page "https://gitlab.gnome.org/GNOME/gssdp")
365 (license license:lgpl2.0+)))
366
291a85b2
RG
367(define-public gupnp
368 (package
369 (name "gupnp")
370 (version "1.2.2")
371 (source (origin
372 (method url-fetch)
373 (uri (string-append "mirror://gnome/sources/" name "/"
374 (version-major+minor version) "/"
375 name "-" version ".tar.xz"))
376 (sha256
377 (base32
378 "12cr3isww4zl0d4himpd2fhl2wmy3jh8sbxp4snp51sw7savv04s"))))
379 (build-system meson-build-system)
380 (native-inputs
381 `(("gettext" ,gettext-minimal)
382 ("glib:bin" ,glib "bin")
383 ("gobject-introspection" ,gobject-introspection)
384 ("gtk-doc" ,gtk-doc)
385 ("pkg-config" ,pkg-config)
386 ("vala" ,vala)))
387 (inputs
388 `(("gssdp" ,gssdp)
389 ("gtk+" ,gtk+)
390 ("libsoup" ,libsoup)))
391 (synopsis "PnP API for GNOME")
392 (description "This package provides GUPnP, an object-oriented framework
393for creating UPnP devices and control points, written in C using
394@code{GObject} and @code{libsoup}.")
395 (home-page "https://gitlab.gnome.org/GNOME/gupnp")
396 (license license:lgpl2.0+)))
397
747d7fe4
RG
398(define-public gupnp-dlna
399 (package
400 (name "gupnp-dlna")
401 (version "0.10.5")
402 (source (origin
403 (method url-fetch)
404 (uri (string-append "mirror://gnome/sources/" name "/"
405 (version-major+minor version) "/"
406 name "-" version ".tar.xz"))
407 (sha256
408 (base32
409 "0spzd2saax7w776p5laixdam6d7smyynr9qszhbmq7f14y13cghj"))))
410 (build-system gnu-build-system)
411 (native-inputs
412 `(("gettext" ,gettext-minimal)
413 ("glib:bin" ,glib "bin")
414 ("gobject-introspection" ,gobject-introspection)
415 ("gtk-doc" ,gtk-doc)
416 ("libxml" ,libxml2)
417 ("pkg-config" ,pkg-config)
418 ("vala" ,vala)))
419 (inputs
420 `(("gstreamer" ,gstreamer)
421 ("gupnp" ,gupnp)))
422 (propagated-inputs
423 `(("gst-plugins-base" ,gst-plugins-base)
424 ("gst-plugins-good" ,gst-plugins-good)))
425 (synopsis "GUPnP DLNA for GNOME")
426 (description "This package provides a small utility library to
427support DLNA-related tasks such as media profile guessing, transcoding to a
428given profile, etc. DLNA is a subset of UPnP A/V.")
429 (home-page "https://gitlab.gnome.org/GNOME/gupnp-dlna")
430 (license license:lgpl2.0+)))
431
1b4cb628
RG
432(define-public gupnp-av
433 (package
434 (name "gupnp-av")
435 (version "0.12.11")
436 (source (origin
437 (method url-fetch)
438 (uri (string-append "mirror://gnome/sources/" name "/"
439 (version-major+minor version) "/"
440 name "-" version ".tar.xz"))
441 (sha256
442 (base32
443 "1p3grslwqm9bc8rmpn4l48d7v9s84nina4r9xbd932dbj8acz7b8"))))
444 (build-system gnu-build-system)
445 (native-inputs
446 `(("gettext" ,gettext-minimal)
447 ("glib:bin" ,glib "bin")
448 ("gobject-introspection" ,gobject-introspection)
449 ("gtk-doc" ,gtk-doc)
450 ("libxml" ,libxml2)
451 ("pkg-config" ,pkg-config)))
452 (inputs
453 `(("gtk+" ,gtk+)
454 ("gupnp" ,gupnp)))
455 (synopsis "GUPnP A/V for GNOME")
456 (description "This package provides a small library for handling
457and implementation of UPnP A/V profiles.")
458 (home-page "https://gitlab.gnome.org/GNOME/gupnp-av")
459 (license license:lgpl2.0+)))
460
02ebbca8
RG
461(define-public libmediaart
462 (package
463 (name "libmediaart")
464 (version "1.9.4")
465 (source (origin
466 (method url-fetch)
467 (uri (string-append "mirror://gnome/sources/" name "/"
468 (version-major+minor version) "/"
469 name "-" version ".tar.xz"))
470 (sha256
471 (base32
472 "0gc10imyabk57ar54m0qzms0x9dnmkymhkzyk8w1aj3y4lby0yx5"))))
473 (build-system gnu-build-system)
474 (native-inputs
475 `(("glib:bin" ,glib "bin")
476 ("pkg-config" ,pkg-config)))
477 (inputs
478 `(("gdk-pixbuf" ,gdk-pixbuf)
479 ("gettext" ,gettext-minimal)
480 ("gobject-introspection" ,gobject-introspection)
481 ("gtk+:doc", gtk+ "doc")
482 ("vala" ,vala)))
483 (synopsis "Media art library for the GNOME desktop")
484 (description
485 "The libmediaart library is the foundation for media art caching,
486extraction, and lookup for applications on the desktop.")
487 (home-page "https://gitlab.gnome.org/GNOME/libmediaart")
488 (license license:lgpl2.1+)))
489
a26680eb
RG
490(define-public gnome-initial-setup
491 (package
492 (name "gnome-initial-setup")
493 (version "3.32.1")
494 (source (origin
495 (method url-fetch)
496 (uri (string-append "mirror://gnome/sources/gnome-initial-setup/"
497 (version-major+minor version)
498 "/gnome-initial-setup-" version ".tar.xz"))
499 (sha256
500 (base32
501 "1gwhp7dalyc8zsb2pa66cmpdrj2d6drbq5p331sq6zp8ds10k9ry"))))
502 (build-system meson-build-system)
503 (arguments
a65cc579
DM
504 '(#:configure-flags '(;; Enable camera support for user selfie.
505 "-Dcheese=auto"
506 "-Dsystemd=false")))
a26680eb
RG
507 (native-inputs
508 `(("gettext" ,gettext-minimal)
509 ("glib:bin" ,glib "bin")
510 ("gobject-introspection" ,gobject-introspection)
511 ("gtk+:bin" ,gtk+ "bin")
512 ("pkg-config" ,pkg-config)))
513 (inputs
514 `(("accountsservice" ,accountsservice)
515 ;("adwaita-icon-theme" ,adwaita-icon-theme)
516 ("gdm" ,gdm)
517 ("geoclue" ,geoclue)
518 ("gnome-desktop" ,gnome-desktop)
519 ("gnome-getting-started-docs" ,gnome-getting-started-docs)
520 ("gnome-online-accounts" ,gnome-online-accounts)
521 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
522 ("gstreamer" ,gstreamer)
523 ("ibus" ,ibus)
524 ("json-glib" ,json-glib)
525 ("krb5" ,mit-krb5)
526 ("libgweather" ,libgweather)
527 ("libsecret" ,libsecret)
528 ("network-manager" ,network-manager)
529 ("network-manager-applet" ,network-manager-applet)
530 ("packagekit" ,packagekit)
531 ("polkit" ,polkit)
532 ("pwquality" ,libpwquality)
533 ("rest" ,rest)
534 ("upower" ,upower)
535 ("webkitgtk" ,webkitgtk)))
536 (synopsis "Initial setup wizard for GNOME desktop")
a65cc579
DM
537 (description "This package provides a set-up wizard when a
538user logs into GNOME for the first time. It typically provides a
539tour of all gnome components and allows the user to set them up.")
a26680eb
RG
540 (home-page "https://gitlab.gnome.org/GNOME/gnome-initial-setup")
541 (license license:gpl2)))
542
b5f01392
RG
543(define-public gnome-user-share
544 (package
545 (name "gnome-user-share")
546 (version "3.33.1")
547 (source (origin
548 (method url-fetch)
549 (uri (string-append "mirror://gnome/sources/" name "/"
550 (version-major+minor version) "/"
551 name "-" version ".tar.xz"))
552 (sha256
553 (base32
554 "0lf790pyamdyj7180ils8vizjl8brxcg7jsm1iavfp9ay4wa8mz7"))))
555 (build-system meson-build-system)
556 (arguments
557 `(#:glib-or-gtk? #t
558 #:configure-flags
559 `("-Dsystemd=false"
560 ;; Enable nautilus extension for file sharing.
561 "-Dnautilus_extension=true")))
562 (native-inputs
563 `(("gettext" ,gettext-minimal)
564 ("glib:bin" ,glib "bin")
565 ("gobject-introspection" ,gobject-introspection)
566 ("gtk+:bin" ,gtk+ "bin")
567 ("pkg-config" ,pkg-config)
568 ("yelp-tools" ,yelp-tools)))
569 (inputs
570 `(("glib" ,glib)
571 ("gnome-bluetooth" ,gnome-bluetooth)
572 ("gtk+" ,gtk+)
573 ("libcanberra" ,libcanberra)
574 ("libnotify" ,libnotify)
575 ("nautilus" ,nautilus))) ; For nautilus extension.
576 (synopsis "File sharing for GNOME desktop")
577 (description "GNOME User Share is a small package that binds together
578various free software projects to bring easy to use user-level file
579sharing to the masses.")
580 (home-page "https://gitlab.gnome.org/GNOME/gnome-user-share")
2aeca24b 581 (license license:gpl2+)))
b5f01392 582
04b201bb
RG
583(define-public sushi
584 (package
585 (name "sushi")
586 (version "3.32.1")
587 (source (origin
588 (method url-fetch)
589 (uri (string-append "mirror://gnome/sources/" name "/"
590 (version-major+minor version) "/"
591 name "-" version ".tar.xz"))
592 (sha256
593 (base32
594 "02idvqjk76lii9xyg3b1yz4rw721709bdm5j8ikjym6amcghl0aj"))))
595 (build-system meson-build-system)
596 (arguments
597 `(#:glib-or-gtk? #t
598 #:phases
599 (modify-phases %standard-phases
600 (add-after 'glib-or-gtk-wrap 'wrap-typelib
601 (lambda* (#:key outputs #:allow-other-keys)
602 (let ((prog (string-append (assoc-ref outputs "out")
603 "/bin/sushi")))
604 ;; Put existing typelibs before sushi's deps, so as to correctly
605 ;; infer gdk-pixbuf
606 (wrap-program prog
607 `("GI_TYPELIB_PATH" suffix (,(getenv "GI_TYPELIB_PATH"))))
608 #t))))))
609 (native-inputs
610 `(("glib:bin" ,glib "bin")
611 ("gettext" ,gettext-minimal)
612 ("gobject-introspection" ,gobject-introspection)
613 ("pkg-config" ,pkg-config)))
614 (inputs
615 `(("clutter" ,clutter)
616 ("clutter-gst" ,clutter-gst)
617 ("clutter-gtk" ,clutter-gtk)
618 ("evince" ,evince) ; For file previewing.
619 ("freetype" ,freetype)
620 ("gdk-pixbuf" ,gdk-pixbuf)
621 ("gjs" ,gjs)
622 ("gst-plugins-base" ,gst-plugins-base)
623 ("gstreamer" ,gstreamer)
624 ("gtksourceview" ,gtksourceview-3)
625 ("harfbuzz" ,harfbuzz)
626 ("libepoxy" ,libepoxy)
627 ("libmusicbrainz" ,libmusicbrainz)
628 ("libxml2" ,libxml2)
629 ("neon" ,neon)
630 ("webkitgtk" ,webkitgtk)))
631 (synopsis "File previewer for the GNOME desktop")
632 (description "Sushi is a DBus-activated service that allows applications to
633preview files on the GNOME desktop.")
634 (home-page "https://gitlab.gnome.org/GNOME/sushi")
635 (license license:gpl2+)))
636
89af0902
RG
637(define-public rygel
638 (package
639 (name "rygel")
640 (version "0.38.3")
641 (source (origin
642 (method url-fetch)
643 (uri (string-append "mirror://gnome/sources/" name "/"
644 (version-major+minor version) "/"
645 name "-" version ".tar.xz"))
646 (sha256
647 (base32
648 "003xficqb08r1dgid20i7cn889lbfwrglpx78rjd5nkvgxbimhh8"))))
649 (build-system gnu-build-system)
650 (native-inputs
651 `(("gettext" ,gettext-minimal)
652 ("gobject-introspection" ,gobject-introspection)
653 ("gtk-doc" ,gtk-doc)
654 ("pkg-config" ,pkg-config)
655 ("vala" ,vala)))
656 (inputs
657 `(("gdk-pixbuf" ,gdk-pixbuf)
658 ("gssdp" ,gssdp)
659 ("gstreamer" ,gstreamer)
660 ("gst-plugins-base" ,gst-plugins-base)
661 ("gtk+" ,gtk+)
662 ("gupnp" ,gupnp)
663 ("gupnp-av" ,gupnp-av)
664 ("gupnp-dlna" ,gupnp-dlna)
665 ("libgee" ,libgee)
666 ("libmediaart" ,libmediaart)
667 ("libsoup" ,libsoup)
668 ("libxslt" ,libxslt)
669 ("libunistring" ,libunistring)
670 ("tracker" ,tracker)))
671 (synopsis "Share audio, video, and pictures with other devices")
672 (description
673 "Rygel is a home media solution (@dfn{UPnP AV MediaServer and
674MediaRenderer}) for GNOME that allows you to easily share audio, video, and
675pictures, and to control a media player on your home network.
676
677Rygel achieves interoperability with other devices by trying to conform to the
678strict requirements of DLNA and by converting media on-the-fly to formats that
679client devices can handle.")
680 (home-page "https://wiki.gnome.org/Projects/Rygel")
681 (license (list
682 ;; For logo (data/icons/*).
683 license:cc-by-sa3.0
684 ;; For all others.
685 license:lgpl2.1+))))
686
47e87093
RG
687(define-public libnma
688 (package
689 (name "libnma")
690 (version "1.8.26")
691 (source (origin
692 (method url-fetch)
693 (uri (string-append "mirror://gnome/sources/" name "/"
694 (version-major+minor version) "/"
695 name "-" version ".tar.xz"))
696 (sha256
697 (base32
698 "1w9lld38risnk1krknfwln24kabdxnj274pyz4jhndphwigrshaf"))))
699 (build-system meson-build-system)
700 (arguments
701 `(#:glib-or-gtk? #t))
702 (native-inputs
703 `(("gettext" ,gettext-minimal)
704 ("glib:bin" ,glib "bin")
705 ("gtk-doc" ,gtk-doc)
706 ("gobject-introspection" ,gobject-introspection)
707 ("pkg-config" ,pkg-config)))
708 (inputs
709 `(("adwaita-icon-theme" ,adwaita-icon-theme)
710 ("gcr" ,gcr)
711 ("gtk+" ,gtk+)
712 ("iso-codes" ,iso-codes)
713 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)
714 ("network-manager" ,network-manager)))
715 (synopsis "Network Manager's applet library")
716 (description "Libnma is an applet library for Network Manager. It was
717initially part of network-manager-applet and has now become a separate
718project.")
719 (home-page "https://gitlab.gnome.org/GNOME/libnma")
720
721 ;; Some files carry the "GPL-2.0+" SPDX identifier while others say
722 ;; "LGPL-2.1+".
723 (license license:gpl2+)))
724
30416265
RG
725(define-public gnome-menus
726 (package
727 (name "gnome-menus")
728 (version "3.32.0")
729 (source (origin
730 (method url-fetch)
731 (uri (string-append "mirror://gnome/sources/gnome-menus/"
732 (version-major+minor version) "/"
733 name "-" version ".tar.xz"))
734 (sha256
735 (base32
736 "0x2blzqrapmbsbfzxjcdcpa3vkw9hq5k96h9kvjmy9kl415wcl68"))))
737 (build-system gnu-build-system)
738 (native-inputs
739 `(("gettext" ,gettext-minimal)
740 ("glib" ,glib)
741 ("pkg-config" ,pkg-config)))
742 (synopsis "Menu support for GNOME desktop")
743 (description "GNOME Menus contains the libgnome-menu library, the layout
744configuration files for the GNOME menu, as well as a simple menu editor.")
745 (home-page "https://gitlab.gnome.org/GNOME/gnome-menus")
7bd000d1 746 (license license:lgpl2.0+)))
30416265 747
d61a894b
CB
748(define-public deja-dup
749 (package
750 (name "deja-dup")
751 (version "34.3")
752 (source (origin
753 (method url-fetch)
754 (uri "https://launchpadlibrarian.net/295170991/deja-dup-34.3.tar.xz")
755 (sha256
756 (base32
757 "1xqcr61hpbahbla7gdjn4ngjfz7w6f57y7f5pkb77yk05f60j2n9"))
758 (patches
759 (search-patches "deja-dup-use-ref-keyword-for-iter.patch"))))
760 (build-system glib-or-gtk-build-system)
761 (arguments
762 `(#:modules ((guix build gnu-build-system)
763 ((guix build cmake-build-system) #:prefix cmake:)
764 (guix build glib-or-gtk-build-system)
765 (guix build utils))
766 #:imported-modules (,@%glib-or-gtk-build-system-modules
767 (guix build cmake-build-system))
768 #:test-target "test"
769 #:configure-flags (list (string-append
770 "-DCMAKE_INSTALL_FULL_DATADIR=" %output)
771 (string-append
772 "-DCMAKE_INSTALL_LIBEXECDIR=" %output))
773 #:phases
774 (modify-phases %standard-phases
775 (add-after 'unpack 'patch-lockfile-deletion
776 (lambda rest
777 (substitute* "libdeja/tools/duplicity/DuplicityInstance.vala"
778 (("/bin/rm")
779 (which "rm")))))
780 (replace 'configure
781 (assoc-ref cmake:%standard-phases 'configure))
782 (delete 'check) ;; Fails due to issues with DBus
783 (add-after 'install 'wrap-deja-dup
784 (lambda* (#:key inputs outputs #:allow-other-keys)
785 (let ((python (assoc-ref inputs "python"))
786 (python-path (getenv "PYTHONPATH"))
787 (duplicity (assoc-ref inputs "duplicity"))
788 (out (assoc-ref outputs "out")))
789 (for-each
790 (lambda (program)
791 (wrap-program program
792 `("PATH" ":" prefix (,(string-append python "/bin")
793 ,(string-append duplicity "/bin"))))
794 (wrap-program program
795 `("PYTHONPATH" ":" prefix (,python-path))))
796
797 (find-files (string-append out "/bin")))
798 #t))))))
799 (inputs
800 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
801 ("gobject-introspection" ,gobject-introspection)
802 ("duplicity" ,duplicity)
61506fe5 803 ("python" ,python-2)
d61a894b
CB
804 ("python-pygobject" ,python2-pygobject)
805 ("gtk+" ,gtk+)
806 ("libnotify" ,libnotify)
807 ("libpeas" ,libpeas)
808 ("libsecret" ,libsecret)
809 ("packagekit" ,packagekit)))
810 (native-inputs
811 `(("pkg-config" ,pkg-config)
812 ("vala" ,vala)
813 ("gettext" ,gettext-minimal)
814 ("itstool" ,itstool)
815 ("intltool" ,intltool)
c69959f0 816 ("cmake" ,cmake-minimal)))
d61a894b
CB
817 (home-page "https://launchpad.net/deja-dup")
818 (synopsis "Simple backup tool, for regular encrypted backups")
819 (description
820 "Déjà Dup is a simple backup tool, for regular encrypted backups. It
821uses duplicity as the backend, which supports incremental backups and storage
822either on a local, or remote machine via a number of methods.")
823 (license license:gpl3+)))
824
823b77fb
RG
825(define-public gnome-user-docs
826 (package
827 (name "gnome-user-docs")
828 (version "3.32.3")
829 (source
830 (origin
831 (method url-fetch)
832 (uri (string-append "mirror://gnome/sources/gnome-user-docs/"
833 (version-major+minor version)
834 "/gnome-user-docs-" version ".tar.xz"))
835 (sha256
836 (base32 "0dvsl0ldg8rf7yq0r4dv1pn41s7gjgcqp7agkbflkbmhrl6vbhig"))))
837 (build-system gnu-build-system)
838 (native-inputs
839 `(("gettext" ,gettext-minimal)
840 ("itstool" ,itstool)
841 ("pkg-config" ,pkg-config)
842 ("xmllint" ,libxml2)))
843 (synopsis "User documentation for the GNOME desktop")
844 (description
845 "The GNOME User Documentation explains how to use the GNOME desktop and its
846components. It covers usage and setup of the core GNOME programs by end-users
847and system administrators.")
848 (home-page "https://live.gnome.org/DocumentationProject")
849 (license license:cc-by3.0)))
850
be93299d
RG
851(define-public gnome-getting-started-docs
852 (package
853 (name "gnome-getting-started-docs")
854 (version "3.32.2")
855 (source
856 (origin
857 (method url-fetch)
858 (uri (string-append "mirror://gnome/sources/gnome-getting-started-docs/"
859 (version-major+minor version)
860 "/gnome-getting-started-docs-" version ".tar.xz"))
861 (sha256
862 (base32 "1v4k465mlzrhgcdddzs6bmm0yliyrfx6jg3gh0s17a08i0w5rbwq"))))
863 (build-system gnu-build-system)
864 (native-inputs
865 `(("gettext" ,gettext-minimal)
866 ("itstool" ,itstool)
867 ("pkg-config" ,pkg-config)
868 ("xmllint" ,libxml2)))
869 (synopsis "Help to get new users started with the GNOME desktop")
870 (description
871 "The GNOME Getting Started Documentation contains GNOME's intuitive
872\"Getting Started\" tour, with video guides, that can be viewed with Yelp.
873
874It is normally used together with @command{gnome-initial-setup}, but is also
875useful as a tutorial and users' guide for new or less experienced users.")
876 (home-page "https://live.gnome.org/DocumentationProject")
877 (license license:cc-by-sa3.0)))
878
a56be436
RJ
879(define-public dia
880 ;; This version from GNOME's repository includes fixes for compiling with
881 ;; recent versions of the build tools. The latest activity on the
882 ;; pre-GNOME version has been in 2014, while GNOME has continued applying
883 ;; fixes in 2016.
884 (let ((commit "fbc306168edab63db80b904956117cbbdc514ee4"))
885 (package
886 (name "dia")
914c8cdf 887 (version (git-version "0.97.3" "1" commit))
a56be436
RJ
888 (source (origin
889 (method git-fetch)
890 (uri (git-reference
914c8cdf 891 (url "https://gitlab.gnome.org/GNOME/dia.git/")
a56be436 892 (commit commit)))
914c8cdf 893 (file-name (git-file-name name version))
a56be436
RJ
894 (sha256
895 (base32
896 "1b4bba0k8ph4cwgw8xjglss0p6n111bpd5app67lrq79mp0ad06l"))))
897 (build-system gnu-build-system)
898 (inputs
a315afa3 899 `(("freetype" ,freetype)
a56be436
RJ
900 ("gdk-pixbuf" ,gdk-pixbuf)
901 ("gtk+" ,gtk+-2)
a315afa3 902 ("libart-lgpl" ,libart-lgpl)
a56be436 903 ("libxml2" ,libxml2)
a315afa3 904 ("pango" ,pango)))
a56be436 905 (native-inputs
a315afa3 906 `(("autoconf" ,autoconf)
a56be436 907 ("automake" ,automake)
a315afa3
EF
908 ("intltool" ,intltool)
909 ("glib" ,glib "bin")
a56be436
RJ
910 ("libtool" ,libtool)
911 ("perl" ,perl)
a315afa3 912 ("pkg-config" ,pkg-config)
a56be436
RJ
913 ("python-wrapper" ,python-wrapper)))
914 (arguments
915 `(#:phases
916 (modify-phases %standard-phases
4b3e91de 917 (add-before 'bootstrap 'dont-configure-during-bootstrap
a56be436 918 (lambda _
4b3e91de
EF
919 (setenv "NOCONFIGURE" "true")
920 #t)))))
a56be436
RJ
921 (home-page "https://wiki.gnome.org/Apps/Dia")
922 (synopsis "Diagram creation for GNOME")
923 (description "Dia can be used to draw different types of diagrams, and
924includes support for UML static structure diagrams (class diagrams), entity
925relationship modeling, and network diagrams. The program supports various file
926formats like PNG, SVG, PDF and EPS.")
927 (license license:gpl2+))))
928
d0b19e44
RW
929;; This is the unstable release, but it is required for the current stable
930;; release of gvfs (1.38.1).
adc5cb1b
KK
931(define-public libgdata
932 (package
933 (name "libgdata")
d0b19e44 934 (version "0.17.9")
adc5cb1b
KK
935 (source (origin
936 (method url-fetch)
937 (uri (string-append "mirror://gnome/sources/" name "/"
938 (version-major+minor version) "/"
939 name "-" version ".tar.xz"))
940 (sha256
941 (base32
d0b19e44 942 "0fj54yqxdapdppisqm1xcyrpgcichdmipq0a0spzz6009ikzgi45"))))
adc5cb1b
KK
943 (build-system gnu-build-system)
944 (arguments
945 '(#:phases
946 (modify-phases %standard-phases
448052b7
TGR
947 (add-before 'check 'disable-failing-tests
948 (lambda _
949 ;; The PicasaWeb API tests fail with gnome-online-accounts@3.24.2.
950 ;; They have been removed in libgdata 0.17.6, so just do the same.
951 (substitute* "gdata/tests/Makefile"
952 (("picasaweb\\$\\(EXEEXT\\) ") ""))
adc5cb1b
KK
953 #t)))))
954 (native-inputs
955 `(("glib:bin" ,glib "bin")
956 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
957 ("intltool" ,intltool)
958 ("pkg-config" ,pkg-config)
959 ("uhttpmock" ,uhttpmock)))
960 (inputs
961 `(("cyrus-sasl" ,cyrus-sasl)
d0b19e44 962 ("glib-networking" ,glib-networking)))
adc5cb1b
KK
963 (propagated-inputs
964 `(("gcr" ,gcr)
d0b19e44 965 ("glib" ,glib)
14c297fd 966 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
d0b19e44 967 ("json-glib" ,json-glib)
adc5cb1b 968 ("liboauth" ,liboauth)
d0b19e44 969 ("libsoup" ,libsoup)
adc5cb1b
KK
970 ("libxml2" ,libxml2)))
971 (home-page "https://wiki.gnome.org/Projects/libgdata")
972 (synopsis "Library for accessing online service APIs")
973 (description
974 "libgdata is a GLib-based library for accessing online service APIs using
975the GData protocol — most notably, Google's services. It provides APIs to
976access the common Google services, and has full asynchronous support.")
977 (license license:lgpl2.1+)))
978
94e10cf4
KK
979(define-public libgxps
980 (package
981 (name "libgxps")
66470a5a 982 (version "0.3.1")
94e10cf4
KK
983 (source (origin
984 (method url-fetch)
7f10628c 985 (uri (string-append "mirror://gnome/sources/" name "/"
94e10cf4
KK
986 (version-major+minor version) "/"
987 name "-" version ".tar.xz"))
988 (sha256
989 (base32
66470a5a 990 "157s4c9gjjss6yd7qp7n4q6s72gz1k4ilsx4xjvp357azk49z4qs"))))
b6b3e512 991 (build-system meson-build-system)
94e10cf4
KK
992 (native-inputs
993 `(("gobject-introspection" ,gobject-introspection)
994 ("pkg-config" ,pkg-config)))
995 (inputs
c8d62d93 996 `(("gtk+" ,gtk+)
b6b3e512 997 ("libjpeg" ,libjpeg-turbo)
94e10cf4 998 ("lcms" ,lcms)
0a6e9e13 999 ("libtiff" ,libtiff)))
c8d62d93
MB
1000 (propagated-inputs
1001 ;; In Requires of libgxps.pc.
1002 `(("cairo" ,cairo)
1003 ("glib" ,glib)
1004 ("libarchive" ,libarchive)))
94e10cf4
KK
1005 (home-page "https://wiki.gnome.org/Projects/libgxps")
1006 (synopsis "GObject-based library for handling and rendering XPS documents")
1007 (description
1008 "libgxps is a GObject-based library for handling and rendering XPS
1009documents. This package also contains binaries that can convert XPS documents
1010to other formats.")
1011 (license license:lgpl2.1+)))
1012
4e09f57a
RG
1013(define-public gnome-characters
1014 (package
1015 (name "gnome-characters")
1016 (version "3.30.0")
1017 (source
1018 (origin
1019 (method url-fetch)
1020 (uri (string-append "mirror://gnome/sources/"
1021 "gnome-characters/" (version-major+minor version)
1022 "/gnome-characters-" version ".tar.xz"))
1023 (sha256
1024 (base32
1025 "08cwz39iwgsyyb2wqhb8vfbmh1cwfkgfiy7adp08w7rwqi99x3dp"))))
1026 (build-system meson-build-system)
5757c641 1027 (arguments
1028 `(#:glib-or-gtk? #t
1029 #:phases (modify-phases %standard-phases
1030 (add-after 'install 'wrap
1031 (lambda* (#:key outputs #:allow-other-keys)
1032 ;; GNOME Characters needs Typelib files from GTK and
1033 ;; gnome-desktop.
1034 (wrap-program (string-append (assoc-ref outputs "out")
1035 "/bin/gnome-characters")
1036 `("GI_TYPELIB_PATH" ":" prefix
1037 (,(getenv "GI_TYPELIB_PATH"))))
1038 #t)))))
4e09f57a
RG
1039 (native-inputs
1040 `(("gettext" ,gettext-minimal)
1041 ("glib:bin" ,glib "bin")
1042 ("gtk+:bin" ,gtk+ "bin")
1043 ("pkg-config" ,pkg-config)
1044 ("python" ,python-minimal)))
1045 (inputs
1046 `(("gjs" ,gjs)
1047 ("gtk+" ,gtk+)
5757c641 1048 ("libunistring" ,libunistring)
1049 ("gnome-desktop" ,gnome-desktop)))
4e09f57a
RG
1050 (home-page "https://wiki.gnome.org/Apps/CharacterMap")
1051 (synopsis "Find and insert unusual characters")
1052 (description "Characters is a simple utility application to find
1053and insert unusual characters. It allows you to quickly find the
1054character you are looking for by searching for keywords.")
1055 (license license:bsd-3)))
1056
7aab13f1
ML
1057(define-public gnome-common
1058 (package
1059 (name "gnome-common")
af83490d 1060 (version "3.18.0")
7aab13f1
ML
1061 (source
1062 (origin
1063 (method url-fetch)
1064 (uri (string-append "mirror://gnome/sources/" name "/"
1065 (version-major+minor version) "/"
1066 name "-" version ".tar.xz"))
1067 (sha256
1068 (base32
af83490d 1069 "1kzqi8qvh5p1zncj8msazlmvcwsczjz2hqxp4x2y0mg718vrwmi2"))))
7aab13f1
ML
1070 (build-system gnu-build-system)
1071 (home-page "https://www.gnome.org/")
1072 (synopsis "Bootstrap GNOME modules built from Git")
1073 (description "gnome-common contains various files needed to bootstrap
1074GNOME modules built from Git. It contains a common \"autogen.sh\" script that
1075can be used to configure a source directory checked out from Git and some
1076commonly used macros.")
1077 (license license:gpl2+)))
1078
4e868d22
RG
1079(define-public gnome-contacts
1080 (package
1081 (name "gnome-contacts")
6a6138b2 1082 (version "3.32.1")
4e868d22
RG
1083 (source (origin
1084 (method url-fetch)
1085 (uri (string-append "mirror://gnome/sources/gnome-contacts/"
1086 (version-major+minor version) "/"
1087 name "-" version ".tar.xz"))
1088 (sha256
1089 (base32
6a6138b2 1090 "17g1gh8yj58cfpdx69h2szivlbjgvv982kmhnkkh0i5bwj0zs2yy"))))
4e868d22
RG
1091 (build-system meson-build-system)
1092 (arguments
1093 `(#:phases
1094 (modify-phases %standard-phases
1095 (add-after 'unpack 'generate-vapis
1096 (lambda* (#:key inputs #:allow-other-keys)
1097 ;; To generate goa's missing .vapi file
1098 (define goa
1099 (assoc-ref inputs "gnome-online-accounts:lib"))
1100
1101 (invoke "vapigen" "--directory=vapi" "--pkg=gio-2.0"
1102 "--library=goa-1.0"
1103 (string-append goa "/share/gir-1.0/Goa-1.0.gir"))
1104 #t)))))
1105 (native-inputs
1106 `(("glib:bin" ,glib "bin")
1107 ("gtk+:bin" ,gtk+ "bin")
1108 ("pkg-config" ,pkg-config)))
1109 (inputs
1110 `(("cheese" ,cheese)
1111 ("docbook-xml" ,docbook-xml)
1112 ("dockbook-xsl" ,docbook-xsl)
1113 ("evolution-data-server" ,evolution-data-server)
1114 ("gettext" ,gettext-minimal)
1115 ("gnome-desktop" ,gnome-desktop)
1116 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
1117 ("gobject-introspection" ,gobject-introspection)
1118 ("gst-plugins-base" ,gst-plugins-base)
1119 ("gtk+" ,gtk+)
1120 ("libgee" ,libgee)
1121 ("libxslt" ,libxslt)
1122 ("telepathy-glib" ,telepathy-glib)
1123 ("vala" ,vala)))
1124 (propagated-inputs
1125 `(("folks", folks)
1126 ("telepathy-mission-control" ,telepathy-mission-control)))
1127 (synopsis "GNOME's integrated address book")
1128 (description
1129 "GNOME Contacts organizes your contact information from online and
1130offline sources, providing a centralized place for managing your contacts.")
1131 (home-page "https://wiki.gnome.org/Apps/Contacts")
1132 (license license:gpl2+)))
1133
9cc98f8a
CR
1134(define-public gnome-desktop
1135 (package
1136 (name "gnome-desktop")
e8a26caa 1137 (version "3.32.2")
9cc98f8a
CR
1138 (source
1139 (origin
1140 (method url-fetch)
b38e45d8
EB
1141 (uri (string-append "mirror://gnome/sources/" name "/"
1142 (version-major+minor version) "/"
9cc98f8a
CR
1143 name "-" version ".tar.xz"))
1144 (sha256
1145 (base32
e8a26caa
KK
1146 "0bidx4626x7k2myv6f64qv4fzmxv8v475wibiz19kj8hjfr737q9"))))
1147 (build-system meson-build-system)
a0fe7c06
CB
1148 (arguments
1149 '(#:phases
1150 (modify-phases %standard-phases
1151 (add-before 'configure 'patch-path
1152 (lambda* (#:key inputs #:allow-other-keys)
1153 (let ((libc (assoc-ref inputs "libc")))
1154 (substitute* "libgnome-desktop/gnome-languages.c"
1155 (("\"locale\"")
1156 (string-append "\"" libc "/bin/locale\"")))
e8a26caa
KK
1157 #t)))
1158 (add-before 'check 'pre-check
1159 (lambda* (#:key inputs #:allow-other-keys)
1160 ;; Tests require a running X server and locales.
1161 (system "Xvfb :1 &")
1162 (setenv "DISPLAY" ":1")
1163 (setenv "GUIX_LOCPATH"
1164 (string-append (assoc-ref inputs "glibc-locales")
1165 "/lib/locale"))
1166 #t)))))
9cc98f8a 1167 (native-inputs
e8a26caa
KK
1168 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
1169 ("glibc-locales" ,glibc-locales) ; for tests
1170 ("gobject-introspection" ,gobject-introspection)
a8340482 1171 ("itstool" ,itstool)
bcb354ad
SB
1172 ("intltool" ,intltool)
1173 ("pkg-config" ,pkg-config)
e8a26caa
KK
1174 ("xmllint" ,libxml2)
1175 ("xorg-server" ,xorg-server-for-tests)))
a8340482
SB
1176 (propagated-inputs
1177 ;; Required by gnome-desktop-3.0.pc.
1178 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
e8a26caa 1179 ("gtk+" ,gtk+)
9cc98f8a 1180 ("iso-codes" ,iso-codes)
9863ce20 1181 ("libseccomp" ,libseccomp)
9cc98f8a 1182 ("libx11" ,libx11)
e8a26caa
KK
1183 ("xkeyboard-config" ,xkeyboard-config)))
1184 (inputs
1185 `(("gdk-pixbuf" ,gdk-pixbuf)
1186 ("glib" ,glib)
9cc98f8a
CR
1187 ("libxext" ,libxext)
1188 ("libxkbfile" ,libxkbfile)
e8a26caa 1189 ("libxrandr" ,libxrandr)))
9cc98f8a
CR
1190 (home-page "https://www.gnome.org/")
1191 (synopsis
35b9e423 1192 "Libgnome-desktop, gnome-about, and desktop-wide documents")
9cc98f8a
CR
1193 (description
1194 "The libgnome-desktop library provides API shared by several applications
35b9e423
EB
1195on the desktop, but that cannot live in the platform for various reasons.
1196There is no API or ABI guarantee, although we are doing our best to provide
1197stability. Documentation for the API is available with gtk-doc.
9cc98f8a
CR
1198
1199The gnome-about program helps find which version of GNOME is installed.")
1200 ; Some bits under the LGPL.
1dd26275 1201 (license license:gpl2+)))
9cc98f8a 1202
995b7261
AE
1203(define-public gnome-doc-utils
1204 (package
1205 (name "gnome-doc-utils")
1206 (version "0.20.10")
1207 (source
1208 (origin
1209 (method url-fetch)
b38e45d8
EB
1210 (uri (string-append "mirror://gnome/sources/" name "/"
1211 (version-major+minor version) "/"
995b7261
AE
1212 name "-" version ".tar.xz"))
1213 (sha256
1214 (base32
1215 "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb"))))
1216 (build-system gnu-build-system)
c4c4cc05 1217 (native-inputs
995b7261 1218 `(("intltool" ,intltool)
b4ce6300 1219 ("docbook-xml" ,docbook-xml-4.4)
d80b0d4a 1220 ("python2-libxml2" ,python2-libxml2)
995b7261
AE
1221 ("libxml2" ,libxml2)
1222 ("libxslt" ,libxslt)
1223 ("pkg-config" ,pkg-config)
1224 ("python-2" ,python-2)))
995b7261
AE
1225 (home-page "https://wiki.gnome.org/GnomeDocUtils")
1226 (synopsis
1227 "Documentation utilities for the Gnome project")
1228 (description
1229 "Gnome-doc-utils is a collection of documentation utilities for the
1230Gnome project. It includes xml2po tool which makes it easier to translate
1231and keep up to date translations of documentation.")
1dd26275 1232 (license license:gpl2+))) ; xslt under lgpl
d9c1a22b 1233
6c4f7022
DC
1234(define-public gnome-disk-utility
1235 (package
1236 (name "gnome-disk-utility")
e106d0a6 1237 (version "3.32.1")
6c4f7022
DC
1238 (source (origin
1239 (method url-fetch)
1240 (uri (string-append "mirror://gnome/sources/" name "/"
1241 (version-major+minor version) "/"
1242 name "-" version ".tar.xz"))
1243 (sha256
1244 (base32
e106d0a6 1245 "08vwbji9m1nhjjdiyhhaqi8cncys7i89b4bpy095f8475v8y05bg"))))
4b9a65bf 1246 (build-system meson-build-system)
321c73c3
EF
1247 (arguments
1248 '(#:phases
1249 (modify-phases %standard-phases
1250 (add-after 'unpack 'skip-gtk-update-icon-cache
1251 ;; Don't create 'icon-theme.cache'.
1252 (lambda _
1253 (substitute* "meson_post_install.py"
1254 (("gtk-update-icon-cache") "true"))
1255 #t)))))
6c4f7022
DC
1256 (native-inputs
1257 `(("glib:bin" ,glib "bin")
1258 ("intltool" ,intltool)
1259 ("pkg-config" ,pkg-config)
1260 ("docbook-xml" ,docbook-xml)
1261 ("docbook-xsl" ,docbook-xsl)
1262 ("libxml2" ,libxml2)
1263 ("libxslt" ,libxslt)))
1264 (inputs
1265 `(("glib" ,glib)
1266 ("appstream-glib" ,appstream-glib)
1267 ("gnome-settings-daemon" ,gnome-settings-daemon)
1268 ("gtk+" ,gtk+)
1269 ("libcanberra" ,libcanberra)
1270 ("libdvdread" ,libdvdread)
1271 ("libnotify" ,libnotify)
1272 ("libpwquality" ,libpwquality)
1273 ("libsecret" ,libsecret)
1274 ("udisks" ,udisks)))
1275 (home-page "https://git.gnome.org/browse/gnome-disk-utility")
1276 (synopsis "Disk management utility for GNOME")
1277 (description "Disk management utility for GNOME.")
1278 (license license:gpl2+)))
1279
3d217317
RG
1280(define-public gnome-font-viewer
1281 (package
1282 (name "gnome-font-viewer")
1283 (version "3.30.0")
1284 (source (origin
1285 (method url-fetch)
1286 (uri (string-append "mirror://gnome/sources/gnome-font-viewer/"
1287 (version-major+minor version)
1288 "/gnome-font-viewer-" version ".tar.xz"))
1289 (sha256
1290 (base32
1291 "1wwnx2zrlbd2d6np7m9s78alx6j6ranrnh1g2z6zrv9qcj8rpzz5"))))
1292 (build-system meson-build-system)
1293 (arguments
1294 '(#:phases
1295 (modify-phases %standard-phases
1296 (add-after 'unpack 'patch-post-install-script
1297 (lambda _
1298 (substitute* "meson-postinstall.sh"
1299 (("update-desktop-database") (which "true")))
1300 #t)))))
1301 (native-inputs
1302 `(("gettext" ,gettext-minimal)
1303 ("glib:bin" ,glib "bin")
1304 ("pkg-config" ,pkg-config)))
1305 (inputs
1306 `(("glib" ,glib)
1307 ("gnome-desktop" ,gnome-desktop)
1308 ("gtk+" ,gtk+)))
1309 (home-page "https://gitlab.gnome.org/GNOME/gnome-font-viewer")
1310 (synopsis "GNOME Fonts")
1311 (description "Application to show you the fonts installed on your computer
1312for your use as thumbnails. Selecting any thumbnails shows the full view of how
1313the font would look under various sizes.")
1314 (license license:gpl2+)))
1315
8ff49011
RW
1316(define-public gcr
1317 (package
1318 (name "gcr")
bea6b829 1319 (version "3.28.1")
8ff49011 1320 (source (origin
0daf0efb
RW
1321 (method url-fetch)
1322 (uri (string-append "mirror://gnome/sources/" name "/"
1323 (version-major+minor version) "/"
1324 name "-" version ".tar.xz"))
1325 (sha256
1326 (base32
bea6b829 1327 "12qn7mcmxb45lz1gq3s3b34rimiyrrshkrpvxdw1fc0w26i4l84m"))
03ecf85a
MB
1328 (patches
1329 (list
1330 ;; This patch solves an ordering issue that showed up when
1331 ;; running the test suite against newer Glib 2.60. See
1332 ;; <https://gitlab.gnome.org/GNOME/gcr/merge_requests/9>.
1333 (origin
1334 (method url-fetch)
1335 (uri (string-append "https://gitlab.gnome.org/GNOME/gcr/commit/"
1336 "45d637578d7643ff96c0183ac267497a0b4c6344.diff"))
1337 (file-name "gcr-hashtable-ordering.patch")
1338 (sha256
1339 (base32
1340 "1vsqiys8fsm1f1vvds783wwf7zwi5v282rhsai8jrsm6x7h79gbi")))))))
8ff49011
RW
1341 (build-system gnu-build-system)
1342 (arguments
0daf0efb
RW
1343 '(#:phases
1344 (modify-phases %standard-phases
1345 ;; These fail because /var/lib/dbus/machine-id is not present in the
1346 ;; build environment.
1347 (add-after 'unpack 'disable-failing-tests
1348 (lambda _
1349 (substitute* "gcr/test-system-prompt.c"
1350 (("g_test_add") "//")
1351 (("return.*") "return 0;"))
1352 #t))
1353 (add-before 'check 'pre-check
1354 (lambda _
1355 ;; Some tests expect to write to $HOME.
1356 (setenv "HOME" "/tmp")
1357 #t)))))
8ff49011
RW
1358 (inputs
1359 `(("dbus" ,dbus)
0daf0efb 1360 ("gnupg" ,gnupg) ;called as a child process during tests
8ff49011
RW
1361 ("libgcrypt" ,libgcrypt)))
1362 (native-inputs
0daf0efb 1363 `(("python" ,python-2) ;for tests
8ff49011
RW
1364 ("pkg-config" ,pkg-config)
1365 ("glib" ,glib "bin")
2af4f5b0
SB
1366 ("gobject-introspection" ,gobject-introspection)
1367 ("intltool" ,intltool)
0daf0efb 1368 ("libxml2" ,libxml2)
bea6b829 1369 ("vala" ,vala)
2af4f5b0 1370 ("xsltproc" ,libxslt)))
8ff49011
RW
1371 ;; mentioned in gck.pc, gcr.pc and gcr-ui.pc
1372 (propagated-inputs
1373 `(("p11-kit" ,p11-kit)
1374 ("glib" ,glib)
1375 ("gtk+" ,gtk+)))
f032d0be 1376 (home-page "https://www.gnome.org")
8ff49011
RW
1377 (synopsis "Libraries for displaying certificates and accessing key stores")
1378 (description
1379 "The GCR package contains libraries used for displaying certificates and
1380accessing key stores. It also provides the viewer for crypto files on the
1381GNOME Desktop.")
1382 (license license:lgpl2.1+)))
1383
c1354b90
LC
1384(define-public libgnome-keyring
1385 (package
1386 (name "libgnome-keyring")
5e8aec2c 1387 (version "3.12.0")
c1354b90
LC
1388 (source (origin
1389 (method url-fetch)
b38e45d8
EB
1390 (uri (string-append "mirror://gnome/sources/" name "/"
1391 (version-major+minor version) "/"
1392 name "-" version ".tar.xz"))
c1354b90
LC
1393 (sha256
1394 (base32
5e8aec2c 1395 "10vpjhgbjm7z2djy04qakd02qlzpd02xnbfjhk2aqwjzn3xpihf4"))))
c1354b90 1396 (build-system gnu-build-system)
c1354b90 1397 (inputs
c4c4cc05 1398 `(("libgcrypt" ,libgcrypt)
c1354b90 1399 ("dbus" ,dbus)))
c4c4cc05
JD
1400 (native-inputs
1401 `(("pkg-config" ,pkg-config)
426adbe8 1402 ("glib" ,glib "bin")
c4c4cc05 1403 ("intltool" ,intltool)))
c1354b90
LC
1404 (propagated-inputs
1405 ;; Referred to in .h files and .pc.
1406 `(("glib" ,glib)))
f032d0be 1407 (home-page "https://www.gnome.org")
c1354b90
LC
1408 (synopsis "Accessing passwords from the GNOME keyring")
1409 (description
1410 "Client library to access passwords from the GNOME keyring.")
1411
1412 ;; Though a couple of files are LGPLv2.1+.
1dd26275 1413 (license license:lgpl2.0+)))
c1354b90 1414
e99a3d6f
RW
1415(define-public gnome-keyring
1416 (package
1417 (name "gnome-keyring")
ab35cc6e 1418 (version "3.28.2")
e99a3d6f
RW
1419 (source (origin
1420 (method url-fetch)
1421 (uri (string-append "mirror://gnome/sources/" name "/"
1422 (version-major+minor version) "/"
1423 name "-" version ".tar.xz"))
1424 (sha256
1425 (base32
ab35cc6e 1426 "0sk4las4ji8wv9nx8mldzqccmpmkvvr9pdwv9imj26r10xyin5w1"))))
e99a3d6f
RW
1427 (build-system gnu-build-system)
1428 (arguments
1429 `(#:tests? #f ;48 of 603 tests fail because /var/lib/dbus/machine-id does
1430 ;not exist
1431 #:configure-flags
1432 (list
1433 (string-append "--with-pkcs11-config="
1434 (assoc-ref %outputs "out") "/share/p11-kit/modules/")
1435 (string-append "--with-pkcs11-modules="
1436 (assoc-ref %outputs "out") "/share/p11-kit/modules/"))
1437 #:phases
1438 (modify-phases %standard-phases
ab35cc6e
RW
1439 (add-after 'unpack 'fix-/bin/sh-reference
1440 (lambda _
1441 (substitute* "po/Makefile.in.in"
1442 (("/bin/sh") (which "sh")))
1443 #t))
5120f24f
RW
1444 (add-after 'unpack 'fix-docbook
1445 (lambda* (#:key inputs #:allow-other-keys)
1446 (substitute* "docs/Makefile.am"
1447 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1448 (string-append (assoc-ref inputs "docbook-xsl")
1449 "/xml/xsl/docbook-xsl-"
1450 ,(package-version docbook-xsl)
1451 "/manpages/docbook.xsl")))
1452 (setenv "XML_CATALOG_FILES"
1453 (string-append (assoc-ref inputs "docbook-xml")
1454 "/xml/dtd/docbook/catalog.xml"))
1455 ;; Rerun the whole thing to avoid version mismatch ("This is
1456 ;; Automake 1.15.1, but the definition used by this
1457 ;; AM_INIT_AUTOMAKE comes from Automake 1.15."). Note: we don't
1458 ;; use 'autoreconf' because it insists on running 'libtoolize'.
1459 (invoke "autoconf")
1460 (invoke "aclocal")
1461 (invoke "automake" "-ac"))))))
e99a3d6f
RW
1462 (inputs
1463 `(("libgcrypt" ,libgcrypt)
1a0b2d82 1464 ("linux-pam" ,linux-pam)
ab35cc6e 1465 ("openssh" ,openssh)
e99a3d6f
RW
1466 ("dbus" ,dbus)
1467 ("gcr" ,gcr)))
1468 (native-inputs
1469 `(("pkg-config" ,pkg-config)
1470 ("glib" ,glib "bin")
5120f24f 1471 ("glib" ,glib) ; for m4 macros
e99a3d6f
RW
1472 ("python" ,python-2) ;for tests
1473 ("intltool" ,intltool)
1474 ("autoconf" ,autoconf)
1475 ("automake" ,automake)
1476 ("libxslt" ,libxslt) ;for documentation
1477 ("docbook-xml" ,docbook-xml-4.2)
1478 ("docbook-xsl" ,docbook-xsl)))
f032d0be 1479 (home-page "https://www.gnome.org")
e99a3d6f
RW
1480 (synopsis "Daemon to store passwords and encryption keys")
1481 (description
1482 "gnome-keyring is a program that keeps passwords and other secrets for
1483users. It is run as a daemon in the session, similar to ssh-agent, and other
1484applications locate it via an environment variable or D-Bus.
1485
1486The program can manage several keyrings, each with its own master password,
1487and there is also a session keyring which is never stored to disk, but
1488forgotten when the session ends.")
1489 (license license:lgpl2.1+)))
1490
c1354b90
LC
1491(define-public evince
1492 (package
1493 (name "evince")
936d5642 1494 (version "3.34.2")
c1354b90
LC
1495 (source (origin
1496 (method url-fetch)
ac631328 1497 (uri (string-append "mirror://gnome/sources/evince/"
b38e45d8 1498 (version-major+minor version) "/"
ac631328 1499 "evince-" version ".tar.xz"))
c1354b90
LC
1500 (sha256
1501 (base32
936d5642 1502 "05q6v9lssd21623mnj2p49clj9v9csw9kay7n4nklki025grbh1w"))))
121de2e1 1503 (build-system glib-or-gtk-build-system)
c1354b90 1504 (arguments
169b8f77 1505 `(#:configure-flags '("--disable-nautilus" "--enable-introspection")
554b2dac
SB
1506 #:phases
1507 (modify-phases %standard-phases
1508 (add-before 'install 'skip-gtk-update-icon-cache
1509 ;; Don't create 'icon-theme.cache'.
1510 (lambda _
1511 (substitute* "data/Makefile"
1512 (("gtk-update-icon-cache") "true"))
1513 #t)))))
c1354b90 1514 (inputs
9a096881
KK
1515 `(("libarchive" ,libarchive)
1516 ("libgxps" ,libgxps)
1517 ("libspectre" ,libspectre)
c769cf9f 1518 ("djvulibre" ,djvulibre)
c1354b90
LC
1519 ("ghostscript" ,ghostscript)
1520 ("poppler" ,poppler)
c769cf9f
SB
1521 ("libtiff" ,libtiff)
1522 ;; TODO:
c769cf9f
SB
1523 ;; Build libkpathsea as a shared library for DVI support.
1524 ;; ("libkpathsea" ,texlive-bin)
1525 ("gnome-desktop" ,gnome-desktop)
c1354b90 1526 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2dfc16d1 1527 ("gspell" ,gspell)
c1354b90 1528 ("libgnome-keyring" ,libgnome-keyring)
c769cf9f 1529 ("adwaita-icon-theme" ,adwaita-icon-theme)
c1354b90
LC
1530 ("gdk-pixbuf" ,gdk-pixbuf)
1531 ("atk" ,atk)
1532 ("pango" ,pango)
1533 ("gtk+" ,gtk+)
1534 ("glib" ,glib)
1535 ("libxml2" ,libxml2)
c1354b90
LC
1536 ("libsm" ,libsm)
1537 ("libice" ,libice)
96e42467 1538 ("shared-mime-info" ,shared-mime-info)
3d243e9c
FB
1539 ("dconf" ,dconf)
1540 ("libcanberra" ,libcanberra)
c769cf9f 1541 ("libsecret" ,libsecret)
a271096b 1542
c1354b90
LC
1543 ;; For tests.
1544 ("dogtail" ,python2-dogtail)))
96e42467 1545 (native-inputs
bcb354ad
SB
1546 `(("itstool" ,itstool)
1547 ("intltool" ,intltool)
426adbe8 1548 ("glib" ,glib "bin")
169b8f77 1549 ("gobject-introspection" ,gobject-introspection)
bcb354ad
SB
1550 ("pkg-config" ,pkg-config)
1551 ("xmllint" ,libxml2)))
c1354b90 1552 (home-page
f032d0be 1553 "https://www.gnome.org/projects/evince/")
c1354b90
LC
1554 (synopsis "GNOME's document viewer")
1555 (description
1556 "Evince is a document viewer for multiple document formats. It
1557currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
1558of Evince is to replace the multiple document viewers that exist
96e42467 1559on the GNOME Desktop with a single simple application.")
1dd26275 1560 (license license:gpl2+)))
c1354b90 1561
22e32e69
AE
1562(define-public gsettings-desktop-schemas
1563 (package
1564 (name "gsettings-desktop-schemas")
c900dabd 1565 (version "3.32.0")
22e32e69
AE
1566 (source
1567 (origin
1568 (method url-fetch)
1569 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1570 (version-major+minor version) "/"
22e32e69
AE
1571 name "-" version ".tar.xz"))
1572 (sha256
1573 (base32
c900dabd
KK
1574 "0d8a6479vappgplq5crdr3ah0ykqcr3fw533wkx9v1a8lnrv8n9d"))))
1575 (build-system meson-build-system)
65209ffa
LC
1576 (arguments
1577 '(#:phases (modify-phases %standard-phases
1578 (add-after 'unpack 'set-adwaita-theme-file-name
1579 (lambda* (#:key inputs #:allow-other-keys)
1580 ;; Provide the correct file name of the default GNOME
1581 ;; background, 'adwaita-timed.xml'.
1582 (let ((theme (assoc-ref inputs "gnome-backgrounds")))
1583 (substitute* (find-files "schemas"
1584 "\\.gschema\\.xml\\.in$")
1585 (("@datadir@/backgrounds/gnome")
1586 (string-append theme "/share/backgrounds/gnome")))
1587 #t))))))
22e32e69 1588 (inputs
65209ffa
LC
1589 `(("glib" ,glib)
1590 ("gnome-backgrounds" ,gnome-backgrounds)))
c4c4cc05
JD
1591 (native-inputs
1592 `(("intltool" ,intltool)
426adbe8 1593 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
7211944a 1594 ("gobject-introspection" ,gobject-introspection)
22e32e69
AE
1595 ("pkg-config" ,pkg-config)))
1596 (home-page "https://launchpad.net/gsettings-desktop-schemas")
1597 (synopsis
1598 "GNOME settings for various desktop components")
1599 (description
1600 "Gsettings-desktop-schemas contains a collection of GSettings schemas
1601for settings shared by various components of the GNOME desktop.")
1dd26275 1602 (license license:lgpl2.1+)))
22e32e69 1603
27477d2d
AE
1604(define-public icon-naming-utils
1605 (package
1606 (name "icon-naming-utils")
1607 (version "0.8.90")
1608 (source
1609 (origin
1610 (method url-fetch)
5cc3096c 1611 (uri (string-append "https://tango.freedesktop.org/releases/icon-naming-utils-"
27477d2d
AE
1612 version ".tar.bz2"))
1613 (sha256
1614 (base32
1615 "1mc3v28fdfqanx3lqx233vcr4glb4c2376k0kx2v91a4vxwqcdxi"))))
1616 (build-system gnu-build-system)
1617 (inputs
1618 `(("perl" ,perl)
1619 ("perl-xml-simple" ,perl-xml-simple)))
f4e97277
SB
1620 (arguments
1621 '(#:phases
dc1d3cde
KK
1622 (modify-phases %standard-phases
1623 (add-after 'install 'set-load-paths
1624 ;; Tell 'icon-name-mapping' where XML::Simple is.
1625 (lambda* (#:key outputs #:allow-other-keys)
1626 (let* ((out (assoc-ref outputs "out"))
1627 (prog (string-append out "/libexec/icon-name-mapping")))
1628 (wrap-program
1629 prog
1630 `("PERL5LIB" = ,(list (getenv "PERL5LIB")))))
1631 #t)))))
27477d2d
AE
1632 (home-page "http://tango.freedesktop.org/Standard_Icon_Naming_Specification")
1633 (synopsis
1634 "Utility to implement the Freedesktop Icon Naming Specification")
1635 (description
1636 "To help with the transition to the Freedesktop Icon Naming
1637Specification, the icon naming utility maps the icon names used by the
1638GNOME and KDE desktops to the icon names proposed in the specification.")
1dd26275 1639 (license license:lgpl2.1+)))
27477d2d 1640
7d3f3651
AE
1641(define-public gnome-icon-theme
1642 (package
1643 (name "gnome-icon-theme")
b32f58dd 1644 (version "3.12.0")
7d3f3651
AE
1645 (source
1646 (origin
1647 (method url-fetch)
1648 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1649 (version-major+minor version) "/"
7d3f3651
AE
1650 name "-" version ".tar.xz"))
1651 (sha256
1652 (base32
b32f58dd 1653 "0fjh9qmmgj34zlgxb09231ld7khys562qxbpsjlaplq2j85p57im"))))
7d3f3651 1654 (build-system gnu-build-system)
5613c27d
SB
1655 (arguments
1656 '(#:configure-flags
1657 ;; Don't create 'icon-theme.cache'.
1658 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
1659 (true (string-append coreutils "/bin/true")))
1660 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
c4c4cc05 1661 (native-inputs
5613c27d 1662 `(("icon-naming-utils" ,icon-naming-utils)
73b6cf42
SB
1663 ("intltool" ,intltool)
1664 ("pkg-config" ,pkg-config)))
5c610d4f
KK
1665 (home-page "https://wiki.gnome.org/Personalization")
1666 (synopsis "GNOME icon theme")
1667 (description "Icons for the GNOME desktop.")
1dd26275 1668 (license license:lgpl3))) ; or Creative Commons BY-SA 3.0
7d3f3651 1669
14eeefa2
SB
1670;; gnome-icon-theme was renamed to adwaita-icon-theme after version 3.12.0.
1671(define-public adwaita-icon-theme
1672 (package (inherit gnome-icon-theme)
1673 (name "adwaita-icon-theme")
9be59d7f 1674 (version "3.32.0")
14eeefa2
SB
1675 (source (origin
1676 (method url-fetch)
1677 (uri (string-append "mirror://gnome/sources/" name "/"
1678 (version-major+minor version) "/"
1679 name "-" version ".tar.xz"))
1680 (sha256
1681 (base32
9be59d7f 1682 "11ij35na8nisvxx3qh527iz33h6z2q1a7iinqyp7p65v0zjbd3b9"))))
5613c27d
SB
1683 (native-inputs
1684 `(("gtk-encode-symbolic-svg" ,gtk+ "bin")))))
14eeefa2 1685
ae792dba
RW
1686(define-public tango-icon-theme
1687 (package
1688 (name "tango-icon-theme")
1689 (version "0.8.90")
1690 (source (origin
1691 (method url-fetch)
1692 (uri (string-append "http://tango.freedesktop.org/releases/"
1693 "tango-icon-theme-" version ".tar.bz2"))
1694 (sha256
1695 (base32
1696 "034r9s944b4yikyfgn602yv7s54wdzlq0qfvqh52b9x6kbx08h79"))))
1697 (build-system gnu-build-system)
1698 (native-inputs
1699 `(("icon-naming-utils" ,icon-naming-utils)
1700 ("intltool" ,intltool)
1701 ("imagemagick" ,imagemagick)
1702 ("pkg-config" ,pkg-config)))
1703 (home-page "http://tango-project.org/")
1704 (synopsis "Tango icon theme")
1705 (description "This is an icon theme that follows the Tango visual
1706guidelines.")
1707 (license license:public-domain)))
1708
9167f8e6
LC
1709(define-public shared-mime-info
1710 (package
1711 (name "shared-mime-info")
18138ab9 1712 (version "1.10")
9167f8e6
LC
1713 (source (origin
1714 (method url-fetch)
5cc3096c 1715 (uri (string-append "https://freedesktop.org/~hadess/"
b38e45d8 1716 "shared-mime-info-" version ".tar.xz"))
9167f8e6
LC
1717 (sha256
1718 (base32
18138ab9 1719 "1gxyvwym3xgpmp262gfn8jg5sla6k5hy6m6dmy6grgiq90xsh9f6"))))
9167f8e6
LC
1720 (build-system gnu-build-system)
1721 (arguments
1722 ;; The build system appears not to be parallel-safe.
1723 '(#:parallel-build? #f))
1724 (inputs
1725 `(("glib" ,glib)
c4c4cc05 1726 ("libxml2" ,libxml2)))
9167f8e6 1727 (native-inputs
c4c4cc05
JD
1728 `(("intltool" ,intltool)
1729 ("pkg-config" ,pkg-config)))
57e7d748 1730 (home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info")
9167f8e6
LC
1731 (synopsis "Database of common MIME types")
1732 (description
1733 "The shared-mime-info package contains the core database of common types
1734and the update-mime-database command used to extend it. It requires glib2 to
1735be installed for building the update command. Additionally, it uses intltool
1736for translations, though this is only a dependency for the maintainers. This
1737database is translated at Transifex.")
1dd26275 1738 (license license:gpl2+)))
9167f8e6 1739
dd1fcddc
CB
1740(define-public system-config-printer
1741 (package
1742 (name "system-config-printer")
fa01e10d 1743 (version "1.5.12")
a5643044
TGR
1744 (source
1745 (origin
1746 (method url-fetch)
1747 (uri (string-append
1748 "https://github.com/OpenPrinting/system-config-printer/releases/"
1749 "download/" version
1750 "/system-config-printer-" version ".tar.xz"))
1751 (sha256
fa01e10d 1752 (base32 "050yrx1vfh9f001qsn06y1jcidxq0ymxr64kxykasr0zzryp25kb"))))
dd1fcddc
CB
1753 (build-system glib-or-gtk-build-system)
1754 (arguments
1755 `(#:imported-modules ((guix build python-build-system)
1756 ,@%glib-or-gtk-build-system-modules)
1757 #:phases
1758 (modify-phases %standard-phases
1759 (add-after 'unpack 'patch-Makefile.am
1760 (lambda _
1761 ;; The Makefile generates some scripts, so set a valid shebang
1762 (substitute* "Makefile.am"
1763 (("/bin/bash") (which "bash")))
1764 (delete-file "configure")
1765 #t))
1766 (add-after 'unpack 'patch-docbook-xml
1767 (lambda* (#:key inputs #:allow-other-keys)
1768 ;; Modify the man XML otherwise xmlto tries to access the network
1769 (substitute* "man/system-config-printer.xml"
1770 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
1771 (string-append (assoc-ref inputs "docbook-xml")
1772 "/xml/dtd/docbook/")))
1773 #t))
1774 (add-after 'install 'wrap-for-python
1775 (@@ (guix build python-build-system) wrap))
1776 (add-after 'install 'wrap
1777 (lambda* (#:key outputs #:allow-other-keys)
1778 (let ((out (assoc-ref outputs "out"))
1779 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
1780 (for-each
1781 (lambda (program)
1782 (wrap-program program
1783 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
1784 (map (lambda (name)
1785 (string-append out "/bin/" name))
1786 '("system-config-printer"
1787 "system-config-printer-applet"
1788 "install-printerdriver"
1789 "scp-dbus-service"))))
1790 #t)))))
1791 (inputs
1792 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1793 ("gobject-introspection" ,gobject-introspection)
1794 ("python" ,python)
1795 ("cups" ,cups)
1796 ("python-dbus" ,python-dbus)
1797 ("python-pygobject" ,python-pygobject)
1798 ("python-pycups" ,python-pycups)
1799 ("python-requests" ,python-requests)
1800 ("python-pycairo" ,python-pycairo)
1801 ("libnotify" ,libnotify)
1802 ("packagekit" ,packagekit)))
1803 (native-inputs
1804 `(("pkg-config" ,pkg-config)
1805 ("desktop-file-utils" ,desktop-file-utils)
1806 ("glib" ,glib)
1807 ("autoconf" ,autoconf)
1808 ("automake" ,automake)
1809 ("intltool" ,intltool)
1810 ("xmlto" ,xmlto)
1811 ("docbook-xml" ,docbook-xml-4.1.2)
1812 ("docbook-xsl" ,docbook-xsl)
1813 ("libxml2" ,libxml2)))
1814 (home-page "https://github.com/zdohnal/system-config-printer")
1815 (synopsis "CUPS administration tool")
1816 (description
1817 "system-config-printer is a CUPS administration tool. It's written in
1818Python using GTK+, and uses the @acronym{IPP, Internet Printing Protocol} when
1819configuring CUPS.")
1820 (license license:gpl2+)))
1821
bef4dd92
AE
1822(define-public hicolor-icon-theme
1823 (package
1824 (name "hicolor-icon-theme")
851cb6dd 1825 (version "0.17")
bef4dd92
AE
1826 (source
1827 (origin
1828 (method url-fetch)
5cc3096c 1829 (uri (string-append "https://icon-theme.freedesktop.org/releases/"
b62a0070 1830 "hicolor-icon-theme-" version ".tar.xz"))
bef4dd92
AE
1831 (sha256
1832 (base32
851cb6dd 1833 "1n59i3al3zx6p90ff0l43gzpzmlqnzm6hf5cryxqrlbi48sq8x1i"))))
bef4dd92
AE
1834 (build-system gnu-build-system)
1835 (arguments
1836 `(#:tests? #f)) ; no check target
57e7d748 1837 (home-page "https://icon-theme.freedesktop.org/releases/")
bef4dd92
AE
1838 (synopsis
1839 "Freedesktop icon theme")
1840 (description
1841 "Freedesktop icon theme.")
1dd26275 1842 (license license:gpl2)))
bef4dd92 1843
d9c1a22b
AE
1844(define-public libnotify
1845 (package
1846 (name "libnotify")
195bfa68 1847 (version "0.7.7")
d9c1a22b
AE
1848 (source
1849 (origin
1850 (method url-fetch)
1851 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1852 (version-major+minor version) "/"
d9c1a22b
AE
1853 name "-" version ".tar.xz"))
1854 (sha256
1855 (base32
195bfa68 1856 "017wgq9n00hx39n0hm784zn18hl721hbaijda868cm96bcqwxd4w"))))
d9c1a22b 1857 (build-system gnu-build-system)
6acf6cec
MB
1858 (arguments
1859 `(#:configure-flags '("--disable-static")))
7ef08efa
UK
1860 (propagated-inputs
1861 `(;; In Requires of libnotify.pc.
1862 ("gdk-pixbuf" ,gdk-pixbuf)
1863 ("glib" ,glib)))
d9c1a22b 1864 (inputs
7ef08efa 1865 `(("gtk+" ,gtk+)
c4c4cc05
JD
1866 ("libpng" ,libpng)))
1867 (native-inputs
426adbe8 1868 `(("pkg-config" ,pkg-config)
277a7d82
JN
1869 ("glib" ,glib "bin")
1870 ("gobject-introspection" ,gobject-introspection)))
d9c1a22b
AE
1871 (home-page "https://developer-next.gnome.org/libnotify/")
1872 (synopsis
1873 "GNOME desktop notification library")
1874 (description
1875 "Libnotify is a library that sends desktop notifications to a
35b9e423 1876notification daemon, as defined in the Desktop Notifications spec. These
d9c1a22b
AE
1877notifications can be used to inform the user about an event or display
1878some form of information without getting in the user's way.")
1dd26275 1879 (license license:lgpl2.1+)))
7a8605ce
CR
1880
1881(define-public libpeas
1882 (package
1883 (name "libpeas")
f2d56e39 1884 (version "1.24.1")
7a8605ce
CR
1885 (source
1886 (origin
1887 (method url-fetch)
1888 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1889 (version-major+minor version) "/"
7a8605ce
CR
1890 name "-" version ".tar.xz"))
1891 (sha256
1892 (base32
f2d56e39
MB
1893 "1162dr7smmfb02czmhshr0f93hqj7w0nw29bys5lzfvwarxcyflw"))))
1894 (build-system meson-build-system)
1895 (arguments
1896 '(#:phases
1897 (modify-phases %standard-phases
1898 (add-before 'check 'start-xserver
1899 (lambda* (#:key inputs #:allow-other-keys)
1900 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1901 (disp ":1"))
1902 (setenv "DISPLAY" disp)
1903 ;; Tests require a running X server.
1904 (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp))
1905 #t))))))
7a8605ce 1906 (inputs
2ed6522a
SB
1907 `(("gtk+" ,gtk+)
1908 ("glade" ,glade3)
2ed6522a
SB
1909 ("python" ,python)
1910 ("python-pygobject" ,python-pygobject)))
141aed80
LC
1911 (native-inputs
1912 `(("pkg-config" ,pkg-config)
f2d56e39 1913 ("gettext" ,gettext-minimal)
93622993 1914 ("glib:bin" ,glib "bin")
141aed80 1915 ("gobject-introspection" ,gobject-introspection)
f2d56e39 1916 ("xorg-server" ,xorg-server-for-tests)))
55b7bbd8
LC
1917 (propagated-inputs
1918 ;; The .pc file "Requires" gobject-introspection.
1919 `(("gobject-introspection" ,gobject-introspection)))
7a8605ce
CR
1920 (home-page "https://wiki.gnome.org/Libpeas")
1921 (synopsis "GObject plugin system")
1922 (description
d1e4ad1b
TGR
1923 "Libpeas is a gobject-based plugin engine, targeted at giving every
1924application the chance to assume its own extensibility. It also has a set of
1925features including, but not limited to: multiple extension points; on-demand
1926(lazy) programming language support for C, Python and JS; simplicity of the
1927API.")
1dd26275 1928 (license license:lgpl2.0+)))
ed19903d
JD
1929
1930(define-public gtkglext
1931 (package
1932 (name "gtkglext")
1933 (version "1.2.0")
1934 (source (origin
1935 (method url-fetch)
0f971a04 1936 (uri (string-append "mirror://sourceforge/gtkglext/gtkglext/"
ed19903d
JD
1937 version "/gtkglext-" version ".tar.gz"))
1938 (sha256
1939 (base32 "1ya4d2j2aacr9ii5zj4ac95fjpdvlm2rg79mgnk7yvl1dcy3y1z5"))
fc1adab1
AK
1940 (patches (search-patches
1941 "gtkglext-disable-disable-deprecated.patch"))))
ed19903d 1942 (build-system gnu-build-system)
14e2f61a
RW
1943 (arguments
1944 `(#:phases
1945 (modify-phases %standard-phases
1946 ;; Fix a collision between a local variable and a definition from
1947 ;; glibc's string.h.
1948 (add-after 'unpack 'fix-collision
1949 (lambda _
1950 (substitute* "gdk/gdkglshapes.c"
1951 ((" index") " triangle_index"))
1952 #t)))))
ed19903d
JD
1953 (inputs `(("gtk+" ,gtk+-2)
1954 ("mesa" ,mesa)
cc8b02f4 1955 ("glu" ,glu)
ed19903d
JD
1956 ("libx11" ,libx11)
1957 ("libxt" ,libxt)))
426adbe8
LC
1958 (native-inputs `(("pkg-config" ,pkg-config)
1959 ("glib" ,glib "bin")))
a83b6a06 1960 (propagated-inputs `(("pangox-compat" ,pangox-compat)))
ed19903d 1961 (home-page "https://projects.gnome.org/gtkglext")
9e771e3b 1962 (synopsis "OpenGL extension to GTK+")
35b9e423 1963 (description "GtkGLExt is an OpenGL extension to GTK+. It provides
ed19903d
JD
1964additional GDK objects which support OpenGL rendering in GTK+ and GtkWidget
1965API add-ons to make GTK+ widgets OpenGL-capable.")
1dd26275 1966 (license license:lgpl2.1+)))
3600420e
JD
1967
1968(define-public glade3
1969 (package
1970 (name "glade")
c6571adb 1971 (version "3.22.1")
b38e45d8
EB
1972 (source (origin
1973 (method url-fetch)
1974 (uri (string-append "mirror://gnome/sources/" name "/"
1975 (version-major+minor version) "/"
f5ca44b8 1976 name "-" version ".tar.xz"))
3600420e 1977 (sha256
f714d9fe 1978 (base32
c6571adb 1979 "16p38xavpid51qfy0s26n0n21f9ws1w9k5s65bzh1w7ay8p9my6z"))))
6983ba56 1980 (build-system glib-or-gtk-build-system)
f5ca44b8
RW
1981 (arguments
1982 `(#:tests? #f ; needs X, GL, and software rendering
1983 #:phases
1984 (modify-phases %standard-phases
1985 (add-before 'configure 'fix-docbook
1986 (lambda* (#:key inputs #:allow-other-keys)
1987 (substitute* "man/Makefile.in"
1988 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1989 (string-append (assoc-ref inputs "docbook-xsl")
1990 "/xml/xsl/docbook-xsl-"
1991 ,(package-version docbook-xsl)
1992 "/manpages/docbook.xsl")))
1993 #t)))))
3600420e 1994 (inputs
f5ca44b8 1995 `(("gtk+" ,gtk+)
3600420e
JD
1996 ("libxml2" ,libxml2)))
1997 (native-inputs
1998 `(("intltool" ,intltool)
f5ca44b8
RW
1999 ("itstool" ,itstool)
2000 ("libxslt" ,libxslt) ;for xsltproc
2001 ("docbook-xml" ,docbook-xml-4.2)
2002 ("docbook-xsl" ,docbook-xsl)
2003 ("python" ,python-2)
3600420e
JD
2004 ("pkg-config" ,pkg-config)))
2005 (home-page "https://glade.gnome.org")
2006 (synopsis "GTK+ rapid application development tool")
2007 (description "Glade is a rapid application development (RAD) tool to
2008enable quick & easy development of user interfaces for the GTK+ toolkit and
2009the GNOME desktop environment.")
1dd26275
LC
2010 (license license:lgpl2.0+)))
2011
2012(define-public libcroco
2013 (package
2014 (name "libcroco")
8bdacad2 2015 (version "0.6.13")
1dd26275
LC
2016 (source (origin
2017 (method url-fetch)
b38e45d8
EB
2018 (uri (string-append "mirror://gnome/sources/" name "/"
2019 (version-major+minor version) "/"
2020 name "-" version ".tar.xz"))
1dd26275
LC
2021 (sha256
2022 (base32
8bdacad2 2023 "1m110rbj5d2raxcdp4iz0qp172284945awrsbdlq99ksmqsc4zkn"))))
1dd26275
LC
2024 (build-system gnu-build-system)
2025 (native-inputs
2026 `(("pkg-config" ,pkg-config)))
2027 (inputs
2028 `(("glib" ,glib)
2029 ("libxml2" ,libxml2)
2030 ("zlib" ,zlib)))
2031 (home-page "https://github.com/GNOME/libcroco")
2032 (synopsis "CSS2 parsing and manipulation library")
2033 (description
2034 "Libcroco is a standalone CSS2 parsing and manipulation library.
2035The parser provides a low level event driven SAC-like API and a CSS object
2036model like API. Libcroco provides a CSS2 selection engine and an experimental
2037XML/CSS rendering engine.")
2038
2039 ;; LGPLv2.1-only.
2040 (license license:lgpl2.1)))
25178594
LC
2041
2042(define-public libgsf
2043 (package
2044 (name "libgsf")
8d1644a1 2045 (version "1.14.46")
25178594
LC
2046 (source (origin
2047 (method url-fetch)
b38e45d8
EB
2048 (uri (string-append "mirror://gnome/sources/" name "/"
2049 (version-major+minor version) "/"
2050 name "-" version ".tar.xz"))
25178594
LC
2051 (sha256
2052 (base32
8d1644a1 2053 "0bddmlzg719sjhlbzqlhb7chwk93qc7g68m2r9r8xz112jdradpa"))))
25178594
LC
2054 (build-system gnu-build-system)
2055 (native-inputs
2056 `(("intltool" ,intltool)
2057 ("pkg-config" ,pkg-config)))
2058 (inputs
2059 `(("python" ,python)
2060 ("zlib" ,zlib)
2061 ("bzip2" ,bzip2)))
2062 (propagated-inputs
2063 `(("gdk-pixbuf" ,gdk-pixbuf)
2064 ("glib" ,glib)
2065 ("libxml2" ,libxml2)))
f032d0be 2066 (home-page "https://www.gnome.org/projects/libgsf")
25178594
LC
2067 (synopsis "GNOME's Structured File Library")
2068 (description
2069 "Libgsf aims to provide an efficient extensible I/O abstraction for
2070dealing with different structured file formats.")
2071
2072 ;; LGPLv2.1-only.
2073 (license license:lgpl2.1)))
63016e7c
LC
2074
2075(define-public librsvg
f67417a1
MB
2076 (package
2077 (name "librsvg")
2078 (version "2.40.20")
2079 (source (origin
2080 (method url-fetch)
2081 (uri (string-append "mirror://gnome/sources/" name "/"
2082 (version-major+minor version) "/"
2083 name "-" version ".tar.xz"))
2084 (sha256
2085 (base32
2086 "0ay9himvw1l1swcf3h1312d2iqzfl65kpbfgiyfykgvq7cydvx6g"))))
2087 (build-system gnu-build-system)
2088 (arguments
2089 `(#:configure-flags
2090 (list "--disable-static"
2091 "--enable-vala") ; needed for e.g. gnome-mines
2092 #:phases
2093 (modify-phases %standard-phases
2094 (add-before 'configure 'pre-configure
2095 (lambda* (#:key inputs #:allow-other-keys)
2096 (substitute* "gdk-pixbuf-loader/Makefile.in"
2097 ;; By default the gdk-pixbuf loader is installed under
2098 ;; gdk-pixbuf's prefix. Work around that.
2099 (("gdk_pixbuf_moduledir = .*$")
2100 (string-append "gdk_pixbuf_moduledir = "
2101 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
2102 "loaders\n"))
2103 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
2104 (("gdk_pixbuf_cache_file = .*$")
2105 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
2106 #t))
2107 (add-before 'check 'remove-failing-tests
2108 (lambda _
2109 (with-directory-excursion "tests/fixtures/reftests"
2110 (for-each delete-file
2111 '(;; This test fails on i686:
2112 "svg1.1/masking-path-04-b.svg"
2113 ;; This test fails on armhf:
2114 "svg1.1/masking-mask-01-b.svg"
2115 ;; This test fails on aarch64:
2116 "bugs/777834-empty-text-children.svg")))
2117 #t)))))
2118 (native-inputs
2119 `(("pkg-config" ,pkg-config)
2120 ("vala" ,vala)
2121 ("glib" ,glib "bin") ; glib-mkenums, etc.
2122 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
2123 (inputs
2124 `(("pango" ,pango)
2125 ("libcroco" ,libcroco)
2126 ("bzip2" ,bzip2)
2127 ("libgsf" ,libgsf)
2128 ("libxml2" ,libxml2)))
2129 (propagated-inputs
2130 ;; librsvg-2.0.pc refers to all of that.
2131 `(("cairo" ,cairo)
2132 ("gdk-pixbuf" ,gdk-pixbuf)
2133 ("glib" ,glib)))
2134 (home-page "https://wiki.gnome.org/LibRsvg")
2135 (synopsis "Render SVG files using Cairo")
2136 (description
2137 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
2138library.")
2139 (license license:lgpl2.0+)))
2140
8f523eb9
EF
2141(define* (computed-origin-method gexp-promise hash-algo hash
2142 #:optional (name "source")
2143 #:key (system (%current-system))
2144 (guile (default-guile)))
2145 "Return a derivation that executes the G-expression that results
2146from forcing GEXP-PROMISE."
2147 (mlet %store-monad ((guile (package->derivation guile system)))
2148 (gexp->derivation (or name "computed-origin")
2149 (force gexp-promise)
2150 #:graft? #f ;nothing to graft
2151 #:system system
2152 #:guile-for-build guile)))
2153
2154(define librsvg-next-source
2155 (let* ((version "2.46.3")
2156 (upstream-source (origin
2157 (method url-fetch)
2158 (uri (string-append "mirror://gnome/sources/librsvg/"
2159 (version-major+minor version) "/"
2160 "librsvg-" version ".tar.xz"))
2161 (sha256
2162 (base32
2163 "1s3a96i7f4pynjwxxvhysp4b6r7kyi8nasdxfyi62hc7gm34d3kn")))))
2164 (origin
2165 (method computed-origin-method)
2166 (file-name (string-append "librsvg-" version ".tar.xz"))
2167 (sha256 #f)
2168 (uri
2169 (delay
2170 (with-imported-modules '((guix build utils))
2171 #~(begin
2172 (use-modules (guix build utils))
2173 (set-path-environment-variable
2174 "PATH" '("bin")
2175 (list "/tmp"
2176 #+(canonical-package xz)
2177 #+(canonical-package gzip)
2178 #+(canonical-package tar)))
2179 (invoke "tar" "xvf" #+upstream-source)
2180 (with-directory-excursion (string-append "librsvg-" #$version)
91f0c790
JS
2181 ;; The following crate(s) are needed in addition to the ones replaced:
2182 (begin
2183 (invoke
2184 "tar" "xvf" #+(package-source rust-autocfg-0.1) "-C" "vendor"))
8f523eb9
EF
2185 (for-each
2186 (lambda (crate)
2187 (delete-file-recursively (string-append "vendor/" (car crate)))
2188 (invoke "tar" "xvf" (cdr crate) "-C" "vendor"))
393d7214 2189 '(("aho-corasick" . #+(package-source rust-aho-corasick-0.7))
8f523eb9 2190;; alga 0.9
e19cb895
EF
2191 ("approx" . #+(package-source rust-approx-0.3))
2192 ("arrayvec" . #+(package-source rust-arrayvec-0.4))
8f523eb9 2193 ("atty" . #+(package-source rust-atty-0.2))
91f0c790 2194 ("autocfg" . #+(package-source rust-autocfg-1.0))
8f523eb9
EF
2195 ("bitflags" . #+(package-source rust-bitflags-1))
2196;; block 0.1
e19cb895
EF
2197 ("bstr" . #+(package-source rust-bstr-0.2))
2198 ("byteorder" . #+(package-source rust-byteorder-1.3))
8f523eb9
EF
2199;; cairo-rs 0.7
2200;; cairo-sys-rs 0.9
e19cb895 2201 ("cast" . #+(package-source rust-cast-0.2))
8f523eb9
EF
2202 ("cfg-if" . #+(package-source rust-cfg-if-0.1))
2203 ("clap" . #+(package-source rust-clap-2))
e19cb895
EF
2204 ("cloudabi" . #+(package-source rust-cloudabi-0.0))
2205 ("criterion" . #+(package-source rust-criterion-0.2))
2206 ("criterion-plot" . #+(package-source rust-criterion-plot-0.3))
393d7214
JS
2207 ("crossbeam-deque" . #+(package-source rust-crossbeam-deque-0.7))
2208 ("crossbeam-epoch" . #+(package-source rust-crossbeam-epoch-0.8))
2209 ("crossbeam-queue" . #+(package-source rust-crossbeam-queue-0.2))
2210 ("crossbeam-utils" . #+(package-source rust-crossbeam-utils-0.7))
8f523eb9
EF
2211;; cssparser 0.25
2212;; cssparser-macros 0.3
e19cb895
EF
2213 ("csv" . #+(package-source rust-csv-1.1))
2214 ("csv-core" . #+(package-source rust-csv-core-0.1))
8f523eb9
EF
2215;; data-url 0.1
2216;; downcast-rs 1.0
2217 ("dtoa" . #+(package-source rust-dtoa-0.4))
2218;; dtoa-short 0.3
e19cb895
EF
2219 ("either" . #+(package-source rust-either-1.5))
2220 ("encoding" . #+(package-source rust-encoding-0.2))
2221 ("encoding-index-japanese" . #+(package-source rust-encoding-index-japanese-1.20141219))
2222 ("encoding-index-korean" . #+(package-source rust-encoding-index-korean-1.20141219))
2223 ("encoding-index-simpchinese" . #+(package-source rust-encoding-index-simpchinese-1.20141219))
2224 ("encoding-index-singlebyte" . #+(package-source rust-encoding-index-singlebyte-1.20141219))
2225 ("encoding-index-tradchinese" . #+(package-source rust-encoding-index-tradchinese-1.20141219))
2226 ("encoding_index_tests" . #+(package-source rust-encoding-index-tests-0.1))
8f523eb9
EF
2227;; float-cmp 0.5
2228;; fragile 0.3
e19cb895
EF
2229 ("fuchsia-cprng" . #+(package-source rust-fuchsia-cprng-0.1))
2230 ("futf" . #+(package-source rust-futf-0.1))
8f523eb9
EF
2231;; gdk-pixbuf 0.7
2232;; gdk-pixbuf-sys 0.9
e19cb895 2233 ("generic-array" . #+(package-source rust-generic-array-0.12))
8f523eb9
EF
2234;; gio 0.7
2235;; gio-sys 0.9
2236;; glib 0.8
2237;; glib-sys 0.9
2238;; gobject-sys 0.9
393d7214 2239 ("idna" . #+(package-source rust-idna-0.2))
e19cb895 2240 ("itertools" . #+(package-source rust-itertools-0.8))
8f523eb9 2241 ("itoa" . #+(package-source rust-itoa-0.4))
e19cb895 2242 ("language-tags" . #+(package-source rust-language-tags-0.2))
21c8ec75 2243 ("lazy_static" . #+(package-source rust-lazy-static-1))
8f523eb9 2244 ("libc" . #+(package-source rust-libc-0.2))
91f0c790 2245 ("libm" . #+(package-source rust-libm-0.1))
8f523eb9
EF
2246;; locale_config 0.3
2247 ("log" . #+(package-source rust-log-0.4))
e19cb895 2248 ("mac" . #+(package-source rust-mac-0.1))
8f523eb9
EF
2249;; malloc_buf 0.0
2250;; markup5ever 0.9
e19cb895 2251 ("matches" . #+(package-source rust-matches-0.1))
8f523eb9 2252;; matrixmultiply 0.2
393d7214
JS
2253 ("memchr" . #+(package-source rust-memchr-2.2))
2254 ("memoffset" . #+(package-source rust-memoffset-0.5))
8f523eb9 2255;; nalgebra 0.18
e19cb895 2256 ("new_debug_unreachable" . #+(package-source rust-new-debug-unreachable-1.0))
8f523eb9 2257 ("nodrop" . #+(package-source rust-nodrop-0.1))
e19cb895 2258 ("num-complex" . #+(package-source rust-num-complex-0.2))
8f523eb9
EF
2259 ("num-integer" . #+(package-source rust-num-integer-0.1))
2260;; num-rational 0.2
2261 ("num-traits" . #+(package-source rust-num-traits-0.2))
2262 ("num_cpus" . #+(package-source rust-num-cpus-1.10))
2263;; objc 0.2
2264;; objc-foundation 0.1
2265;; objc_id 0.1
2266;; pango 0.7
2267;; pango-sys 0.9
2268;; pangocairo 0.8
2269;; pangocairo-sys 0.10
2270 ("percent-encoding" . #+(package-source rust-percent-encoding-2.1))
e19cb895
EF
2271 ("phf" . #+(package-source rust-phf-0.7))
2272 ("phf_codegen" . #+(package-source rust-phf-codegen-0.7))
2273 ("phf_generator" . #+(package-source rust-phf-generator-0.7))
2274 ("phf_shared" . #+(package-source rust-phf-shared-0.7))
2275 ("pkg-config" . #+(package-source rust-pkg-config-0.3))
2276 ("precomputed-hash" . #+(package-source rust-precomputed-hash-0.1))
8f523eb9
EF
2277 ("proc-macro2" . #+(package-source rust-proc-macro2-1.0))
2278;; procedural-masquerade 0.1
2279 ("quote" . #+(package-source rust-quote-1.0))
e19cb895 2280 ("rand" . #+(package-source rust-rand-0.6))
8f523eb9
EF
2281 ("rand_chacha" . #+(package-source rust-rand-chacha-0.1))
2282 ("rand_core-0.3.1" . #+(package-source rust-rand-core-0.3))
2283 ("rand_core" . #+(package-source rust-rand-core-0.4))
2284 ("rand_hc" . #+(package-source rust-rand-hc-0.1))
2285 ("rand_isaac" . #+(package-source rust-rand-isaac-0.1))
2286 ("rand_jitter" . #+(package-source rust-rand-jitter-0.1))
2287 ("rand_os" . #+(package-source rust-rand-os-0.1))
2288 ("rand_pcg" . #+(package-source rust-rand-pcg-0.1))
2289 ("rand_xorshift" . #+(package-source rust-rand-xorshift-0.1))
393d7214 2290 ("rand_xoshiro" . #+(package-source rust-rand-xoshiro-0.1))
e19cb895 2291;; rawpointer 0.2
393d7214
JS
2292 ("rayon" . #+(package-source rust-rayon-1.3))
2293 ("rayon-core" . #+(package-source rust-rayon-core-1.7))
8f523eb9
EF
2294;; rctree 0.3
2295 ("rdrand" . #+(package-source rust-rdrand-0.4))
393d7214 2296 ("regex" . #+(package-source rust-regex-1.3))
e19cb895 2297 ("regex-automata" . #+(package-source rust-regex-automata-0.1))
393d7214 2298 ("regex-syntax" . #+(package-source rust-regex-syntax-0.6))
e19cb895 2299 ("rustc_version" . #+(package-source rust-rustc-version-0.2))
8f523eb9
EF
2300 ("ryu" . #+(package-source rust-ryu-1.0))
2301 ("same-file" . #+(package-source rust-same-file-1.0))
2302 ("scopeguard" . #+(package-source rust-scopeguard-1.0))
e19cb895
EF
2303 ("semver" . #+(package-source rust-semver-0.9))
2304 ("semver-parser" . #+(package-source rust-semver-parser-0.7))
8f523eb9
EF
2305 ("serde" . #+(package-source rust-serde-1.0))
2306 ("serde_derive" . #+(package-source rust-serde-derive-1.0))
2307 ("serde_json" . #+(package-source rust-serde-json-1.0))
e19cb895
EF
2308 ("siphasher" . #+(package-source rust-siphasher-0.2))
2309 ("smallvec" . #+(package-source rust-smallvec-0.6))
2310 ("string_cache" . #+(package-source rust-string-cache-0.7))
2311 ;("string_cache_codegen" . #+(package-source rust-string-cache-codegen-0.4))
2312 ("string_cache_shared" . #+(package-source rust-string-cache-shared-0.3))
8f523eb9 2313 ("syn" . #+(package-source rust-syn-1.0))
e19cb895 2314 ("tendril" . #+(package-source rust-tendril-0.4))
8f523eb9 2315 ("textwrap" . #+(package-source rust-textwrap-0.11))
393d7214 2316 ("thread_local" . #+(package-source rust-thread-local-1.0))
e19cb895
EF
2317 ("tinytemplate" . #+(package-source rust-tinytemplate-1.0))
2318 ("typenum" . #+(package-source rust-typenum-1.10))
2319 ("unicode-bidi" . #+(package-source rust-unicode-bidi-0.3))
2320 ("unicode-normalization" . #+(package-source rust-unicode-normalization-0.1))
8f523eb9
EF
2321 ("unicode-width" . #+(package-source rust-unicode-width-0.1))
2322 ("unicode-xid" . #+(package-source rust-unicode-xid-0.2))
393d7214 2323 ("url" . #+(package-source rust-url-2.1))
e19cb895 2324 ("utf-8" . #+(package-source rust-utf-8-0.7))
8f523eb9
EF
2325 ("walkdir" . #+(package-source rust-walkdir-2.2))
2326 ("winapi" . #+(package-source rust-winapi-0.3))
e19cb895 2327 ("winapi-i686-pc-windows-gnu" . #+(package-source rust-winapi-i686-pc-windows-gnu-0.4))
8f523eb9 2328 ("winapi-util" . #+(package-source rust-winapi-util-0.1))
e19cb895 2329 ("winapi-x86_64-pc-windows-gnu" . #+(package-source rust-winapi-x86-64-pc-windows-gnu-0.4))
8f523eb9
EF
2330;; xml-rs 0.8
2331 )))
2332 (format #t "Replacing vendored crates in the tarball and repacking ...~%")
2333 (force-output)
2334 (invoke "tar" "cfa" #$output
2335 ;; Avoid non-determinism in the archive. We set the
2336 ;; mtime of files in the archive to early 1980 because
2337 ;; the build process fails if the mtime of source
2338 ;; files is pre-1980, due to the creation of zip
2339 ;; archives.
2340 "--mtime=@315619200" ; 1980-01-02 UTC
2341 "--owner=root:0"
2342 "--group=root:0"
2343 "--sort=name"
2344 (string-append "librsvg-" #$version))
2345 #t)))))))
2346
f67417a1 2347(define-public librsvg-next
63016e7c
LC
2348 (package
2349 (name "librsvg")
cf9dad6c 2350 (version "2.46.3")
8f523eb9 2351 (source librsvg-next-source)
63016e7c
LC
2352 (build-system gnu-build-system)
2353 (arguments
d953418a
RW
2354 `(#:configure-flags
2355 (list "--disable-static"
2356 "--enable-vala") ; needed for e.g. gnome-mines
7e0f4cb1 2357 #:make-flags '("CC=gcc")
8f523eb9 2358 #:imported-modules ,%cargo-utils-modules ;for `generate-all-checksums'
ec47c07d 2359 #:phases
b6239e45 2360 (modify-phases %standard-phases
8f523eb9 2361 (add-after 'configure 'patch-cargo-checksums
ec47c07d 2362 (lambda _
8f523eb9
EF
2363 (use-modules (guix build cargo-utils))
2364 (substitute* "librsvg/Cargo.toml"
2365 (("bitflags .*") "bitflags = \"1\"\n")) ; 1.2 is vendored
b665a246 2366 (generate-all-checksums "vendor")
8f523eb9
EF
2367 (delete-file "Cargo.lock")
2368 (invoke "cargo" "generate-lockfile")))
b6239e45
EF
2369 (add-before 'configure 'pre-configure
2370 (lambda* (#:key inputs #:allow-other-keys)
2371 (substitute* "gdk-pixbuf-loader/Makefile.in"
2372 ;; By default the gdk-pixbuf loader is installed under
2373 ;; gdk-pixbuf's prefix. Work around that.
2374 (("gdk_pixbuf_moduledir = .*$")
2375 (string-append "gdk_pixbuf_moduledir = "
2376 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
2377 "loaders\n"))
2378 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
2379 (("gdk_pixbuf_cache_file = .*$")
2380 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
2381 #t))
ec47c07d 2382 (add-before 'check 'remove-failing-tests
b6239e45 2383 (lambda _
64a153bd
MW
2384 (with-directory-excursion "tests/fixtures/reftests"
2385 (for-each delete-file
ec47c07d
MB
2386 '(;; The images produced by these tests differ slightly
2387 ;; from their reference counterparts due to differences
2388 ;; in the build environment (missing fonts, etc). See
2389 ;; <tests/README.md> for details.
2390 ;; These fail on x86_64.
2391 "svg1.1/coords-viewattr-02-b.svg"
2392 "svg1.1/filters-composite-04-f.svg"
2393 "svg1.1/filters-image-01-b.svg"
2394 "svg1.1/filters-conv-02-f.svg"
2395 "svg1.1/filters-conv-04-f.svg"
2396 ;; This test fails on i686:
64a153bd 2397 "svg1.1/masking-path-04-b.svg"
64a153bd
MW
2398 ;; This test fails on armhf:
2399 "svg1.1/masking-mask-01-b.svg"
64a153bd 2400 ;; This test fails on aarch64:
ec47c07d 2401 "bugs/777834-empty-text-children.svg")))
b6239e45 2402 #t)))))
63016e7c
LC
2403 (native-inputs
2404 `(("pkg-config" ,pkg-config)
64855281
MB
2405 ;; This is the minimum supported Rust version in Librsvg 2.46.
2406 ("rust" ,rust-1.34)
2407 ("cargo" ,rust-1.34 "cargo")
d953418a 2408 ("vala" ,vala)
44add1ce 2409 ("glib" ,glib "bin") ; glib-mkenums, etc.
63016e7c
LC
2410 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
2411 (inputs
2412 `(("pango" ,pango)
2413 ("libcroco" ,libcroco)
2414 ("bzip2" ,bzip2)
2415 ("libgsf" ,libgsf)
2416 ("libxml2" ,libxml2)))
2417 (propagated-inputs
2418 ;; librsvg-2.0.pc refers to all of that.
2419 `(("cairo" ,cairo)
2420 ("gdk-pixbuf" ,gdk-pixbuf)
2421 ("glib" ,glib)))
2422 (home-page "https://wiki.gnome.org/LibRsvg")
2423 (synopsis "Render SVG files using Cairo")
2424 (description
35b9e423 2425 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
63016e7c 2426library.")
cf9dad6c 2427 (license license:lgpl2.1+)))
5698b8b8
JD
2428
2429(define-public libidl
2430 (package
2431 (name "libidl")
2432 (version "0.8.14")
2433 (source (origin
2434 (method url-fetch)
80a06e62
EF
2435 (uri (string-append "mirror://gnome/sources/libIDL/"
2436 (version-major+minor version) "/"
2437 "libIDL-" version ".tar.bz2"))
5698b8b8
JD
2438 (sha256
2439 (base32
2440 "08129my8s9fbrk0vqvnmx6ph4nid744g5vbwphzkaik51664vln5"))))
2441 (build-system gnu-build-system)
2442 (inputs `(("glib" ,glib)))
2443 (native-inputs
2444 `(("pkg-config" ,pkg-config)
b3546174 2445 ("flex" ,flex)
5698b8b8
JD
2446 ("bison" ,bison)))
2447 (home-page "http://freecode.com/projects/libidl")
2448 (synopsis "Create trees of CORBA Interface Definition Language files")
35b9e423 2449 (description "Libidl is a library for creating trees of CORBA Interface
5698b8b8
JD
2450Definition Language (idl) files, which is a specification for defining
2451portable interfaces. libidl was initially written for orbit (the orb from the
35b9e423 2452GNOME project, and the primary means of libidl distribution). However, the
2e6ecc5c 2453functionality was designed to be as reusable and portable as possible.")
ef2c55bb 2454 (properties `((upstream-name . "libIDL")))
5698b8b8
JD
2455 (license license:lgpl2.0+)))
2456
2457
2458(define-public orbit2
2459 (package
2460 (name "orbit2")
2461 (version "2.14.19")
2462 (source (origin
2463 (method url-fetch)
2e6ecc5c 2464 (uri (let ((upstream-name "ORBit2"))
a124bbd2 2465 (string-append "mirror://gnome/sources/" upstream-name "/"
b38e45d8
EB
2466 (version-major+minor version) "/"
2467 upstream-name "-" version ".tar.bz2")))
5698b8b8 2468 (sha256
a124bbd2
SB
2469 (base32
2470 "0l3mhpyym9m5iz09fz0rgiqxl2ym6kpkwpsp1xrr4aa80nlh1jam"))))
5698b8b8
JD
2471 (build-system gnu-build-system)
2472 (arguments
a124bbd2 2473 `(#:configure-flags
8aad2e32
LC
2474 '(;; We don't need static libraries, plus they don't build reproducibly
2475 ;; (non-deterministic ordering of .o files in the archive.)
2476 "--disable-static"
2477
2478 ;; The programmer kindly gives us a hook to turn off deprecation
2479 ;; warnings ...
2480 "DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
a124bbd2
SB
2481 ;; ... which they then completly ignore !!
2482 #:phases
dc1d3cde
KK
2483 (modify-phases %standard-phases
2484 (add-before 'configure 'ignore-deprecations
2485 (lambda _
2486 (substitute* "linc2/src/Makefile.in"
2487 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
2488 #t)))))
5698b8b8
JD
2489 (inputs `(("glib" ,glib)
2490 ("libidl" ,libidl)))
2491 (native-inputs
2492 `(("pkg-config" ,pkg-config)))
2493 (home-page "https://projects.gnome.org/orbit2/")
2494 (synopsis "CORBA 2.4-compliant Object Request Broker")
35b9e423 2495 (description "ORBit2 is a CORBA 2.4-compliant Object Request Broker (orb)
2e6ecc5c 2496featuring mature C, C++ and Python bindings.")
a124bbd2
SB
2497 ;; Licence notice is unclear. The Web page simply say "GPL" without giving
2498 ;; a version. SOME of the code files have licence notices for GPLv2+.
2499 ;; The tarball contains files of the text of GPLv2 and LGPLv2.
892307ae
LC
2500 (license license:gpl2+)
2501 (properties `((upstream-name . "ORBit2")))))
5698b8b8
JD
2502
2503
2504(define-public libbonobo
2505 (package
2506 (name "libbonobo")
2507 (version "2.32.1")
2508 (source (origin
2509 (method url-fetch)
5becd025 2510 (uri (string-append "mirror://gnome/sources/" name "/"
29a7c98a 2511 (version-major+minor version)
5becd025 2512 "/" name "-" version ".tar.bz2"))
5698b8b8 2513 (sha256
f1fc45a9 2514 (base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))
fc1adab1
AK
2515 (patches (search-patches
2516 "libbonobo-activation-test-race.patch"))))
5698b8b8
JD
2517 (build-system gnu-build-system)
2518 (arguments
2519 ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
5becd025
EB
2520 `(#:configure-flags
2521 '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
2522 ;; ... which they then completly ignore !!
2523 #:phases
dc1d3cde
KK
2524 (modify-phases %standard-phases
2525 (add-before 'configure 'ignore-deprecations
2526 (lambda _
2527 (substitute* "activation-server/Makefile.in"
2528 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
994b5b1d
LC
2529 #t)))
2530
2531 ;; There's apparently a race condition between the server stub
2532 ;; generation and linking of the example under 'samples/echo' that can
2533 ;; lead do undefined references when building in parallel, as reported
2534 ;; at <https://forums.gentoo.org/viewtopic-t-223376-start-550.html>.
2535 ;; Thus, disable parallel builds.
2536 #:parallel-build? #f))
5698b8b8
JD
2537 (inputs `(("popt" ,popt)
2538 ("libxml2" ,libxml2)))
2539 ;; The following are Required by the .pc file
44add1ce 2540 (propagated-inputs
5698b8b8
JD
2541 `(("glib" ,glib)
2542 ("orbit2" ,orbit2)))
2543 (native-inputs
2544 `(("intltool" ,intltool)
2545 ("pkg-config" ,pkg-config)
221ed17a 2546 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
2547 ("flex" ,flex)
2548 ("bison" ,bison)))
2549 (home-page "https://developer.gnome.org/libbonobo/")
2550 (synopsis "Framework for creating reusable components for use in GNOME applications")
2551 (description "Bonobo is a framework for creating reusable components for
2e6ecc5c 2552use in GNOME applications, built on top of CORBA.")
5698b8b8
JD
2553 ;; Licence not explicitly stated. Source files contain no licence notices.
2554 ;; Tarball contains text of both GPLv2 and LGPLv2
2555 ;; GPLv2 covers both conditions
2556 (license license:gpl2+)))
2557
2558
2559(define-public gconf
2560 (package
2561 (name "gconf")
2562 (version "3.2.6")
2563 (source (origin
2564 (method url-fetch)
a124bbd2
SB
2565 (uri
2566 (let ((upstream-name "GConf"))
2567 (string-append "mirror://gnome/sources/" upstream-name "/"
b38e45d8
EB
2568 (version-major+minor version) "/"
2569 upstream-name "-" version ".tar.xz")))
5698b8b8
JD
2570 (sha256
2571 (base32 "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr"))))
2572 (build-system gnu-build-system)
2e88d113 2573 (inputs `(("dbus-glib" ,dbus-glib)
5698b8b8 2574 ("libxml2" ,libxml2)))
2e6ecc5c
AE
2575 (propagated-inputs `(("glib" ,glib) ; referred to in the .pc file
2576 ("orbit2" ,orbit2)))
5698b8b8
JD
2577 (native-inputs
2578 `(("intltool" ,intltool)
221ed17a 2579 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
2580 ("pkg-config" ,pkg-config)))
2581 (home-page "https://projects.gnome.org/gconf/")
35b9e423
EB
2582 (synopsis "Store application preferences")
2583 (description "Gconf is a system for storing application preferences. It
2584is intended for user preferences; not arbitrary data storage.")
29d2f451
LC
2585 (license license:lgpl2.0+)
2586 (properties '((upstream-name . "GConf")))))
5698b8b8
JD
2587
2588
2589(define-public gnome-mime-data
2590 (package
2591 (name "gnome-mime-data")
2592 (version "2.18.0")
2593 (source (origin
2594 (method url-fetch)
b38e45d8
EB
2595 (uri (string-append "mirror://gnome/sources/" name "/"
2596 (version-major+minor version) "/"
2597 name "-" version ".tar.bz2"))
5698b8b8
JD
2598 (sha256
2599 (base32
2600 "1mvg8glb2a40yilmyabmb7fkbzlqd3i3d31kbkabqnq86xdnn69p"))))
2601 (build-system gnu-build-system)
2602 (native-inputs
2603 `(("perl" ,perl)
2604 ("intltool" ,intltool)))
3e6add96
LC
2605 (arguments
2606 '(#:phases (modify-phases %standard-phases
2607 (add-after 'configure 'use-our-intltool
2608 (lambda _
2609 ;; Do not use the bundled intltool commands, which lack
2610 ;; the "dotless @INC" fixes of our 'intltool' package.
2611 (substitute* (find-files "." "^Makefile$")
2612 (("^INTLTOOL_(EXTRACT|UPDATE|MERGE) = .*$" _ tool)
2613 (string-append "INTLTOOL_" tool " = intltool-"
2614 (string-downcase tool) "\n")))
2615 #t)))))
f032d0be 2616 (home-page "https://www.gnome.org")
35b9e423 2617 (synopsis "Base MIME and Application database for GNOME")
5698b8b8
JD
2618 (description "GNOME Mime Data is a module which contains the base MIME
2619and Application database for GNOME. The data stored by this module is
2620designed to be accessed through the MIME functions in GnomeVFS.")
2621 (license license:gpl2+)))
2622
2623
2624(define-public gnome-vfs
2625 (package
2626 (name "gnome-vfs")
2627 (version "2.24.4")
2628 (source (origin
2629 (method url-fetch)
b38e45d8
EB
2630 (uri (string-append "mirror://gnome/sources/" name "/"
2631 (version-major+minor version) "/"
2632 name "-" version ".tar.bz2"))
5698b8b8 2633 (sha256
9e12bc34
MW
2634 (base32
2635 "1ajg8jb8k3snxc7rrgczlh8daxkjidmcv3zr9w809sq4p2sn9pk2"))))
5698b8b8
JD
2636 (build-system gnu-build-system)
2637 (arguments
db5127d8 2638 `(#:phases
dc1d3cde
KK
2639 (modify-phases %standard-phases
2640 (add-before 'configure 'ignore-deprecations
2641 (lambda _
2642 (substitute* '("libgnomevfs/Makefile.in"
2643 "daemon/Makefile.in")
2644 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
2645 #t))
2646 (add-before 'configure 'patch-test-async-cancel-to-never-fail
2647 (lambda _
2648 (substitute* "test/test-async-cancel.c"
2649 (("EXIT_FAILURE") "77"))
2650 #t)))))
2e6ecc5c 2651 (inputs `(("libxml2" ,libxml2)
5698b8b8 2652 ("dbus-glib" ,dbus-glib)
5698b8b8
JD
2653 ("gconf" ,gconf)
2654 ("gnome-mime-data" ,gnome-mime-data)
2655 ("zlib" ,zlib)))
2656 (native-inputs
221ed17a
EB
2657 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
2658 ("intltool" ,intltool)
5698b8b8
JD
2659 ("pkg-config" ,pkg-config)))
2660 (home-page "https://developer.gnome.org/gnome-vfs/")
35b9e423 2661 (synopsis "Access files and folders in GNOME applications")
9e12bc34
MW
2662 (description
2663 "GnomeVFS is the core library used to access files and folders in GNOME
2664applications. It provides a file system abstraction which allows applications
2665to access local and remote files with a single consistent API.")
5698b8b8
JD
2666 (license license:lgpl2.0+)))
2667
2668
2669
2670(define-public libgnome
2671 (package
2672 (name "libgnome")
2673 (version "2.32.1")
2674 (source (origin
2675 (method url-fetch)
b38e45d8
EB
2676 (uri (string-append "mirror://gnome/sources/" name "/"
2677 (version-major+minor version) "/"
2678 name "-" version ".tar.bz2"))
5698b8b8
JD
2679 (sha256
2680 (base32
17c3eea7
LC
2681 "197pnq8y0knqjhm2fg4j6hbqqm3qfzfnd0irhwxpk1b4hqb3kimj"))
2682 (patches (search-patches "libgnome-encoding.patch"))))
5698b8b8
JD
2683 (build-system gnu-build-system)
2684 (arguments
2685 `(#:phases
dc1d3cde
KK
2686 (modify-phases %standard-phases
2687 (add-before 'configure 'enable-deprecated
2688 (lambda _
2689 (substitute* "libgnome/Makefile.in"
2690 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
2691 #t)))))
25338e9f 2692 (inputs `(("libxml2" ,libxml2)))
5698b8b8 2693 (native-inputs
221ed17a
EB
2694 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
2695 ("intltool" ,intltool)
5698b8b8
JD
2696 ("pkg-config" ,pkg-config)))
2697 ;; The following are listed as Required in the .pc file
2698 ;; (except for libcanberra -- which seems to be oversight on the part
2699 ;; of the upstream developers -- anything that links against libgnome,
2700 ;; must also link against libcanberra
2701 (propagated-inputs
2702 `(("libcanberra" ,libcanberra)
2703 ("libbonobo" ,libbonobo)
2704 ("gconf" ,gconf)
a640d3d5
LC
2705 ("gnome-vfs" ,gnome-vfs)
2706 ("popt" ,popt))) ;gnome-program.h includes popt.h
5698b8b8
JD
2707 (home-page "https://developer.gnome.org/libgnome/")
2708 (synopsis "Useful routines for building applications")
2709 (description "The libgnome library provides a number of useful routines
2710for building modern applications, including session management, activation of
2711files and URIs, and displaying help.")
2712 (license license:lgpl2.0+)))
2713
2714
2715(define-public libart-lgpl
2716 (package
2717 (name "libart-lgpl")
76c9b6aa 2718 (version "2.3.21")
5698b8b8
JD
2719 (source (origin
2720 (method url-fetch)
2721 (uri (let ((upstream-name "libart_lgpl"))
b38e45d8
EB
2722 (string-append "mirror://gnome/sources/" upstream-name "/"
2723 (version-major+minor version) "/"
2724 upstream-name "-" version ".tar.bz2")))
5698b8b8
JD
2725 (sha256
2726 (base32
76c9b6aa 2727 "1yknfkyzgz9s616is0l9gp5aray0f2ry4dw533jgzj8gq5s1xhgx"))))
5698b8b8
JD
2728 (build-system gnu-build-system)
2729 (native-inputs
2730 `(("pkg-config" ,pkg-config)))
2731 (home-page "https://people.gnome.org/~mathieu/libart")
2732 (synopsis "2D drawing library")
2e6ecc5c 2733 (description "Libart is a 2D drawing library intended as a
5698b8b8
JD
2734high-quality vector-based 2D library with antialiasing and alpha composition.")
2735 (license license:lgpl2.0+)))
2736
2737
2738
2739(define-public libgnomecanvas
2740 (package
2741 (name "libgnomecanvas")
2742 (version "2.30.3")
2743 (source (origin
2744 (method url-fetch)
b38e45d8
EB
2745 (uri (string-append "mirror://gnome/sources/" name "/"
2746 (version-major+minor version) "/"
2747 name "-" version ".tar.gz"))
5698b8b8
JD
2748 (sha256
2749 (base32
2750 "1nhnq4lfkk8ljkdafscwaggx0h95mq0rxnd7zgqyq0xb6kkqbjm8"))))
2751 (build-system gnu-build-system)
2752 ;; Mentioned as Required in the .pc file
2753 (propagated-inputs `(("libart-lgpl" ,libart-lgpl)
2754 ("gtk+" ,gtk+-2)))
2755 (native-inputs
2756 `(("intltool" ,intltool)
221ed17a 2757 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
2758 ("pkg-config" ,pkg-config)))
2759 (home-page "https://developer.gnome.org/libgnomecanvas/")
2760 (synopsis "Flexible widget for creating interactive structured graphics")
2761 (description "The GnomeCanvas widget provides a flexible widget for
2762creating interactive structured graphics.")
2763 (license license:lgpl2.0+)))
2764
eadc734e
RW
2765(define-public libgnomecanvasmm
2766 (package
2767 (name "libgnomecanvasmm")
2768 (version "2.26.0")
2769 (source (origin
2770 (method url-fetch)
2771 (uri (string-append "mirror://gnome/sources/" name "/"
2772 (version-major+minor version) "/"
2773 name "-" version ".tar.bz2"))
2774 (sha256
2775 (base32
2776 "0679hcnpam2gkag2i63sm0wdm35gwvzafnz1354mg6j5gzwpfrcr"))))
2777 (build-system gnu-build-system)
2778 (propagated-inputs `(("libgnomecanvas" ,libgnomecanvas)))
2779 (native-inputs
2780 `(("gtkmm-2" ,gtkmm-2)
2781 ("pkg-config" ,pkg-config)))
8e933cb3 2782 (home-page "https://gtkmm.org")
eadc734e
RW
2783 (synopsis "C++ bindings to the GNOME Canvas library")
2784 (description "C++ bindings to the GNOME Canvas library.")
2785 (license license:lgpl2.0+)))
2786
5698b8b8
JD
2787(define-public libgnomeui
2788 (package
2789 (name "libgnomeui")
2790 (version "2.24.5")
2791 (source (origin
2792 (method url-fetch)
b38e45d8
EB
2793 (uri (string-append "mirror://gnome/sources/" name "/"
2794 (version-major+minor version) "/"
2795 name "-" version ".tar.bz2"))
8fa1872a 2796 (patches (search-patches "libgnomeui-utf8.patch"))
5698b8b8
JD
2797 (sha256
2798 (base32
2799 "03rwbli76crkjl6gp422wrc9lqpl174k56cp9i96b7l8jlj2yddf"))))
2800 (build-system gnu-build-system)
2801 ;; Mentioned as Required in the .pc file
0a38a497
AE
2802 (propagated-inputs `(("libbonoboui" ,libbonoboui)
2803 ("libgnome" ,libgnome)
2804 ("libgnomecanvas" ,libgnomecanvas)
5698b8b8 2805 ("libgnome-keyring" ,libgnome-keyring)))
0a38a497 2806 (inputs `(("libjpeg" ,libjpeg)
5698b8b8
JD
2807 ("popt" ,popt)
2808 ("libbonobo" ,libbonobo)
2809 ("libxml2" ,libxml2)
2810 ("libglade" ,libglade)))
2811 (native-inputs
221ed17a
EB
2812 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
2813 ("intltool" ,intltool)
5698b8b8
JD
2814 ("pkg-config" ,pkg-config)))
2815 (home-page "https://developer.gnome.org/libgnomeui/")
2816 (synopsis "Additional widgets for applications")
35b9e423 2817 (description "The libgnomeui library provides additional widgets for
e881752c
AK
2818applications. Many of the widgets from libgnomeui have already been
2819ported to GTK+.")
5698b8b8
JD
2820 (license license:lgpl2.0+)))
2821
2822(define-public libglade
2823 (package
2824 (name "libglade")
2825 (version "2.6.4")
2826 (source (origin
2827 (method url-fetch)
b38e45d8
EB
2828 (uri (string-append "mirror://gnome/sources/" name "/"
2829 (version-major+minor version) "/"
2830 name "-" version ".tar.bz2"))
5698b8b8
JD
2831 (sha256
2832 (base32
2833 "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4"))))
2834 (build-system gnu-build-system)
2835 (inputs
92dcc23d
AE
2836 `(("python" ,python))) ;; needed for the optional libglade-convert program
2837 (propagated-inputs
5698b8b8 2838 `(("gtk+-2" ,gtk+-2)
92dcc23d 2839 ("libxml2" ,libxml2))) ; required by libglade-2.0.pc
5698b8b8
JD
2840 (native-inputs
2841 `(("pkg-config" ,pkg-config)))
2842 (home-page "https://developer.gnome.org/libglade")
35b9e423
EB
2843 (synopsis "Load glade interfaces and access the glade built widgets")
2844 (description "Libglade is a library that provides interfaces for loading
5698b8b8
JD
2845graphical interfaces described in glade files and for accessing the
2846widgets built in the loading process.")
2847 (license license:gpl2+))) ; This is correct. GPL not LGPL
2848
2849(define-public libgnomeprint
eb497b66
LC
2850 ;; This library has been deprecated since 2006; see
2851 ;; <https://mail.gnome.org/archives/devel-announce-list/2006-August/msg00005.html>.
5698b8b8
JD
2852 (package
2853 (name "libgnomeprint")
d19db454 2854 (version "2.18.8")
5698b8b8
JD
2855 (source (origin
2856 (method url-fetch)
b38e45d8
EB
2857 (uri (string-append "mirror://gnome/sources/" name "/"
2858 (version-major+minor version) "/"
2859 name "-" version ".tar.bz2"))
5698b8b8
JD
2860 (sha256
2861 (base32
d19db454 2862 "14cnimvlc7ky22g2snyf4362412k3jk1syjf8b9887q5a63fqd0h"))))
5698b8b8
JD
2863 (build-system gnu-build-system)
2864 (inputs
2865 `(("popt" ,popt)
2866 ("libart-lgpl" ,libart-lgpl)
2867 ("gtk+" ,gtk+-2)
44add1ce 2868 ("libxml2" ,libxml2)))
5698b8b8
JD
2869 (native-inputs
2870 `(("intltool" ,intltool)
221ed17a 2871 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
2872 ("pkg-config" ,pkg-config)))
2873 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
35b9e423 2874 (synopsis "Printing framework for GNOME")
eb497b66
LC
2875 (description
2876 "GNOME-print was a printing framework for GNOME. It has been deprecated
2877since ca. 2006, when GTK+ itself incorporated printing support.")
5698b8b8
JD
2878 (license license:lgpl2.0+)))
2879
2880
2881(define-public libgnomeprintui
eb497b66 2882 ;; Deprecated; see libgnomeprint.
5698b8b8
JD
2883 (package
2884 (name "libgnomeprintui")
36053d7f 2885 (version "2.18.6")
5698b8b8
JD
2886 (source (origin
2887 (method url-fetch)
b38e45d8
EB
2888 (uri (string-append "mirror://gnome/sources/" name "/"
2889 (version-major+minor version) "/"
2890 name "-" version ".tar.bz2"))
5698b8b8
JD
2891 (sha256
2892 (base32
36053d7f 2893 "0spl8vinb5n6n1krnfnr61dwaxidg67h8j94z9p59k2xdsvfashm"))))
5698b8b8
JD
2894 (build-system gnu-build-system)
2895 ;; Mentioned as Required in the .pc file
2896 (propagated-inputs `(("libgnomeprint" ,libgnomeprint)))
2897 (inputs `(("gtk+" ,gtk+-2)
2898 ("glib" ,glib)
2899 ("gnome-icon-theme" ,gnome-icon-theme)
2900 ("libgnomecanvas" ,libgnomecanvas)
2e6ecc5c 2901 ("libxml2" ,libxml2)))
5698b8b8
JD
2902 (native-inputs
2903 `(("intltool" ,intltool)
2904 ("pkg-config" ,pkg-config)))
2905 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
2906 (synopsis "Printing framework for GNOME")
eb497b66 2907 (description (package-description libgnomeprint))
5698b8b8
JD
2908 (license license:lgpl2.0+)))
2909
5698b8b8
JD
2910(define-public libbonoboui
2911 (package
2912 (name "libbonoboui")
2913 (version "2.24.5")
2914 (source (origin
2915 (method url-fetch)
b38e45d8
EB
2916 (uri (string-append "mirror://gnome/sources/" name "/"
2917 (version-major+minor version) "/"
2918 name "-" version ".tar.bz2"))
5698b8b8
JD
2919 (sha256
2920 (base32
2921 "1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
2922 (build-system gnu-build-system)
2923 (arguments
2924 `(#:phases
dc1d3cde
KK
2925 (modify-phases %standard-phases
2926 (add-before 'check 'start-xserver
2927 (lambda* (#:key inputs #:allow-other-keys)
2928 (let ((xorg-server (assoc-ref inputs "xorg-server"))
2929 (disp ":1"))
2930
2931 (setenv "HOME" (getcwd))
2932 (setenv "DISPLAY" disp)
2933 ;; There must be a running X server and make check doesn't start one.
2934 ;; Therefore we must do it.
2935 (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))))))
5698b8b8
JD
2936 ;; Mentioned as Required by the .pc file
2937 (propagated-inputs `(("libxml2" ,libxml2)))
2938 (inputs
2939 `(("popt" ,popt)
2940 ("pangox-compat" ,pangox-compat)
2941 ("libgnome" ,libgnome)
2942 ("libgnomecanvas" ,libgnomecanvas)
2943 ("libglade" ,libglade)))
2944 (native-inputs
221ed17a
EB
2945 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
2946 ("intltool" ,intltool)
ff337525 2947 ("xorg-server" ,xorg-server-for-tests) ; For running the tests
5698b8b8
JD
2948 ("pkg-config" ,pkg-config)))
2949 (home-page "https://developer.gnome.org/libbonoboui/")
2950 (synopsis "Some user interface controls using Bonobo")
2951 (description "The Bonobo UI library provides a number of user interface
2952controls using the Bonobo component framework.")
2953 (license license:lgpl2.0+)))
2954
fecbf86e
SB
2955(define-public libwnck
2956 (package
2957 (name "libwnck")
d3b40696 2958 (version "3.32.0")
fecbf86e
SB
2959 (source (origin
2960 (method url-fetch)
2961 (uri (string-append "mirror://gnome/sources/" name "/"
2962 (version-major+minor version) "/"
2963 name "-" version ".tar.xz"))
2964 (sha256
ad9b8987 2965 (base32
d3b40696
KK
2966 "1jp3p1lnwnwi6fxl2rz3166cmwzwy9vqz896anpwc3wdy9f875cm"))))
2967 (build-system meson-build-system)
fecbf86e
SB
2968 (native-inputs
2969 `(("pkg-config" ,pkg-config)
d3b40696
KK
2970 ("glib" ,glib "bin") ; for glib-mkenums
2971 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
fecbf86e
SB
2972 ("intltool" ,intltool)))
2973 (propagated-inputs
427476d5
SB
2974 `(("gtk+" ,gtk+)
2975 ("libxres" ,libxres)
2976 ("startup-notification" ,startup-notification)))
fecbf86e
SB
2977 (home-page "https://developer.gnome.org/libwnck/")
2978 (synopsis "Window Navigator Construction Kit")
2979 (description
2980 "Libwnck is the Window Navigator Construction Kit, a library for use in
2981writing pagers, tasklists, and more generally applications that are dealing
2982with window management. It tries hard to respect the Extended Window Manager
2983Hints specification (EWMH).")
2984 (license license:lgpl2.0+)))
2985
2986;; stable version for gtk2, required by xfwm4.
dbb7a081 2987(define-public libwnck-2
fecbf86e
SB
2988 (package (inherit libwnck)
2989 (name "libwnck")
2990 (version "2.30.7")
2991 (source (origin
2992 (method url-fetch)
2993 (uri (string-append "mirror://gnome/sources/" name "/"
2994 (version-major+minor version) "/"
2995 name "-" version ".tar.xz"))
2996 (sha256
2997 (base32
2998 "15713yl0f8f3p99jzqqfmbicrdswd3vwpx7r3bkf1bgh6d9lvs4b"))))
ba7fed8e
MÁAV
2999 (build-system gnu-build-system)
3000 (native-inputs
3001 `(("pkg-config" ,pkg-config)
3002 ("intltool" ,intltool)))
fecbf86e 3003 (propagated-inputs
427476d5
SB
3004 `(("gtk+" ,gtk+-2)
3005 ("libxres" ,libxres)
3006 ("startup-notification" ,startup-notification)))))
b804c61e
JD
3007
3008(define-public goffice
3009 (package
3010 (name "goffice")
09abffcc 3011 (version "0.10.46")
b804c61e
JD
3012 (source (origin
3013 (method url-fetch)
16243f0b 3014 (uri (string-append "mirror://gnome/sources/goffice/"
b38e45d8 3015 (version-major+minor version) "/"
16243f0b 3016 "goffice-" version ".tar.xz"))
b804c61e 3017 (sha256
09abffcc 3018 (base32 "1a8kba36zwzr0ilafc0d1nsxxma1qibviiifd0jhbxp180x6v385"))))
b804c61e 3019 (build-system gnu-build-system)
72a06d3e 3020 (outputs '("out"
355420c6 3021 "doc")) ; 4.0 MiB of gtk-doc
72a06d3e
LC
3022 (arguments
3023 '(#:configure-flags (list (string-append "--with-html-dir="
3024 (assoc-ref %outputs "doc")
3025 "/share/gtk-doc/html"))))
b804c61e
JD
3026 (inputs
3027 `(("gtk+" ,gtk+)
3028 ("libgsf" ,libgsf)
3029 ("librsvg" ,librsvg)
3030 ("libxslt" ,libxslt)
3031 ("libxml2" ,libxml2)))
3032 (native-inputs
3033 `(("intltool" ,intltool)
f280cdb1 3034 ("glib" ,glib "bin")
b804c61e
JD
3035 ("pkg-config" ,pkg-config)))
3036 (home-page "https://developer.gnome.org/goffice/")
3037 (synopsis "Document-centric objects and utilities")
3038 (description "A GLib/GTK+ set of document-centric objects and utilities.")
2e6ecc5c 3039 (license
b804c61e
JD
3040 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
3041 ;; Note: NOT LGPL
3042 (list license:gpl2 license:gpl3))))
3043
c024ae36
RW
3044(define-public goffice-0.8
3045 (package (inherit goffice)
3046 (version "0.8.17")
3047 (source (origin
3048 (method url-fetch)
3049 (uri (string-append "mirror://gnome/sources/" (package-name goffice) "/"
3050 (version-major+minor version) "/"
3051 (package-name goffice) "-" version ".tar.xz"))
3052 (sha256
3053 (base32 "05fvzbs5bin05bbsr4dp79aiva3lnq0a3a40zq55i13vnsz70l0n"))))
3054 (arguments
3055 `(#:phases
dc1d3cde
KK
3056 (modify-phases %standard-phases
3057 (add-after 'unpack 'fix-pcre-check
3058 (lambda _
3059 ;; Only glib.h can be included directly. See
3060 ;; https://bugzilla.gnome.org/show_bug.cgi?id=670316
3061 (substitute* "configure"
3062 (("glib/gregex\\.h") "glib.h")) #t)))
72a06d3e
LC
3063
3064 ,@(package-arguments goffice)))
c024ae36
RW
3065 (propagated-inputs
3066 ;; libgoffice-0.8.pc mentions libgsf-1
3067 `(("libgsf" ,libgsf)))
3068 (inputs
3069 `(("gtk" ,gtk+-2)
3070 ,@(alist-delete "gtk" (package-inputs goffice))))))
3071
b804c61e
JD
3072(define-public gnumeric
3073 (package
3074 (name "gnumeric")
f0517b5d 3075 (version "1.12.46")
b804c61e
JD
3076 (source (origin
3077 (method url-fetch)
b7fd0217 3078 (uri (string-append "mirror://gnome/sources/gnumeric/"
b38e45d8 3079 (version-major+minor version) "/"
b7fd0217 3080 "gnumeric-" version ".tar.xz"))
b804c61e
JD
3081 (sha256
3082 (base32
f0517b5d 3083 "1qdmw2dp7rmq8fmjapgwaks7ajh270wm6kyvlxlzwbgmg8vngp4z"))))
bd1b1e05 3084 (build-system glib-or-gtk-build-system)
b804c61e
JD
3085 (arguments
3086 `(;; The gnumeric developers don't worry much about failing tests.
3087 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
2e6ecc5c 3088 #:tests? #f
b804c61e 3089 #:phases
7bcbd40d
EF
3090 (modify-phases %standard-phases
3091 (add-before
3092 'configure 'pre-conf
3093 (lambda* (#:key outputs #:allow-other-keys)
3094 ;; Make install tries to write into the directory of goffice
3095 ;; I am informed that this only affects the possibility to embed a
3096 ;; spreadsheet inside an Abiword document. So presumably when we
3097 ;; package Abiword we'll have to refer it to this directory.
3098 (substitute* "configure"
3099 (("^GOFFICE_PLUGINS_DIR=.*")
3100 (string-append "GOFFICE_PLUGINS_DIR="
3101 (assoc-ref outputs "out")
3102 "/goffice/plugins"))))))))
b804c61e
JD
3103 (inputs
3104 `(("glib" ,glib)
3105 ("gtk+" ,gtk+)
3106 ("goffice" ,goffice)
3107 ("libgsf" ,libgsf)
7bcbd40d 3108 ("librsvg" ,librsvg)
b804c61e 3109 ("libxml2" ,libxml2)
7bcbd40d 3110 ("libxslt" ,libxslt)
2e4c5457 3111 ("python" ,python-2)
6983ba56 3112 ("python2-pygobject" ,python2-pygobject)
b804c61e
JD
3113 ("zlib" ,zlib)))
3114 (native-inputs
6983ba56 3115 `(("bison" ,bison)
1ed398d1 3116 ("docbook-xml" ,docbook-xml)
6983ba56 3117 ("intltool" ,intltool)
3a2efbc8 3118 ("itstool" ,itstool/fixed) ;see <https://bugs.gnu.org/37468>
b9663471 3119 ("glib:bin" ,glib "bin")
b804c61e
JD
3120 ("pkg-config" ,pkg-config)))
3121 (home-page "http://www.gnumeric.org")
66672a45
LC
3122 (synopsis "Spreadsheet application")
3123 (description
3124 "GNUmeric is a GNU spreadsheet application, running under GNOME. It is
3125interoperable with other spreadsheet applications. It has a vast array of
3126features beyond typical spreadsheet functionality, such as support for linear
3127and non-linear solvers, statistical analysis, and telecommunication
3128engineering.")
3129 (license
b804c61e
JD
3130 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
3131 (list license:gpl2 license:gpl3))))
6f885c05
FB
3132
3133(define-public gnome-themes-standard
3134 (package
3135 (name "gnome-themes-standard")
0b7b8fb0 3136 (version "3.22.3")
6f885c05
FB
3137 (source
3138 (origin
3139 (method url-fetch)
2e6ecc5c 3140 (uri (string-append "mirror://gnome/sources/" name "/"
6f885c05
FB
3141 (version-major+minor version) "/" name "-"
3142 version ".tar.xz"))
3143 (sha256
3144 (base32
0b7b8fb0 3145 "0smmiamrgcgf5sa88bsn8hwmvsyx4gczzs359nwxbkv14b2qgp31"))))
6f885c05 3146 (build-system gnu-build-system)
8ac70c7f
SB
3147 (arguments
3148 '(#:configure-flags
3149 ;; Don't create 'icon-theme.cache'.
3150 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
3151 (true (string-append coreutils "/bin/true")))
3152 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
6f885c05
FB
3153 (inputs
3154 `(("gtk+" ,gtk+)
3155 ("gtk+-2" ,gtk+-2)
3156 ("librsvg" ,librsvg)
3157 ("libxml2" ,libxml2)
3158 ("glib" ,glib)))
3159 (native-inputs
3160 `(("intltool" ,intltool)
3161 ("glib:bin" ,glib "bin")
3162 ("pkg-config" ,pkg-config)))
6f885c05
FB
3163 (home-page "https://launchpad.net/gnome-themes-standard")
3164 (synopsis "Default GNOME 3 themes")
3165 (description
3166 "The default GNOME 3 themes (Adwaita and some accessibility themes).")
3167 (license license:lgpl2.1+)))
5a659a48 3168
df90c701
RW
3169(define-public seahorse
3170 (package
3171 (name "seahorse")
bcea3c11 3172 (version "3.32.2")
df90c701
RW
3173 (source
3174 (origin
3175 (method url-fetch)
3176 (uri (string-append "mirror://gnome/sources/" name "/"
3177 (version-major+minor version) "/" name "-"
3178 version ".tar.xz"))
3179 (sha256
3180 (base32
bcea3c11 3181 "0d8zdzmlz7fjv9xl20zl4ckidf465mvdjnbpxy3k08y9iw423q4x"))
af561664
MÁAV
3182 (patches (search-patches
3183 "seahorse-gkr-use-0-on-empty-flags.patch"))))
3184 (build-system meson-build-system)
3185 (arguments
bcea3c11
KK
3186 '(#:glib-or-gtk? #t
3187 #:phases
af561664
MÁAV
3188 (modify-phases %standard-phases
3189 (add-after 'unpack 'skip-gtk-update-icon-cache
3190 ;; Don't create 'icon-theme.cache'.
3191 (lambda _
3192 (substitute* "build-aux/meson_post_install.py"
3193 (("gtk-update-icon-cache") "true"))
3194 #t)))))
df90c701
RW
3195 (inputs
3196 `(("gtk+" ,gtk+)
3197 ("gcr" ,gcr)
34b979b9 3198 ("gnupg" ,gnupg)
df90c701 3199 ("gpgme" ,gpgme)
34b979b9 3200 ("openldap" ,openldap)
4a1bf090 3201 ("openssh" ,openssh)
af561664 3202 ("avahi" ,avahi)
bcea3c11 3203 ("libpwquality" ,libpwquality)
34b979b9
EF
3204 ("libsecret" ,libsecret)
3205 ("libsoup" ,libsoup)))
df90c701 3206 (native-inputs
af561664 3207 `(("gettext" ,gettext-minimal)
df90c701
RW
3208 ("glib:bin" ,glib "bin")
3209 ("itstool" ,itstool)
bcb354ad 3210 ("pkg-config" ,pkg-config)
af561664 3211 ("vala" ,vala)
bcb354ad 3212 ("xmllint" ,libxml2)))
bcea3c11 3213 (home-page "https://wiki.gnome.org/Apps/Seahorse")
df90c701
RW
3214 (synopsis "Manage encryption keys and passwords in the GNOME keyring")
3215 (description
3216 "Seahorse is a GNOME application for managing encryption keys and
3217passwords in the GNOME keyring.")
3218 (license license:gpl2+)))
3219
5a659a48
SB
3220(define-public vala
3221 (package
3222 (name "vala")
2d6872f6 3223 (version "0.44.5")
5a659a48
SB
3224 (source (origin
3225 (method url-fetch)
3226 (uri (string-append "mirror://gnome/sources/" name "/"
3227 (version-major+minor version) "/"
3228 name "-" version ".tar.xz"))
3229 (sha256
3230 (base32
2d6872f6 3231 "0zy2kfcvhikczfzhk5l7pkw6mvn3d6vw8cv7g08iah85p22q33xv"))))
5a659a48 3232 (build-system gnu-build-system)
1ea90625
SB
3233 (arguments
3234 '(#:phases
3235 (modify-phases %standard-phases
f4925a4f 3236 (add-before 'check 'pre-check
1ea90625
SB
3237 (lambda _
3238 (setenv "CC" "gcc")
8839b6be
RW
3239 (substitute* "valadoc/tests/testrunner.sh"
3240 (("export PKG_CONFIG_PATH=" m)
3241 (string-append m "$PKG_CONFIG_PATH:")))
f4925a4f
SB
3242 ;; For missing '/etc/machine-id'.
3243 (setenv "DBUS_FATAL_WARNINGS" "0")
8839b6be 3244 #t)))))
5a659a48
SB
3245 (native-inputs
3246 `(("pkg-config" ,pkg-config)
3247 ("flex" ,flex)
3248 ("bison" ,bison)
3249 ("xsltproc" ,libxslt)
3250 ("dbus" ,dbus) ; for dbus tests
3251 ("gobject-introspection" ,gobject-introspection))) ; for gir tests
8839b6be
RW
3252 (inputs
3253 `(("graphviz" ,graphviz)))
5a659a48 3254 (propagated-inputs
8839b6be 3255 `(("glib" ,glib))) ; required by libvala-0.40.pc
f032d0be 3256 (home-page "https://live.gnome.org/Vala/")
5a659a48
SB
3257 (synopsis "Compiler for the GObject type system")
3258 (description
3259 "Vala is a programming language that aims to bring modern programming
3260language features to GNOME developers without imposing any additional runtime
3261requirements and without using a different ABI compared to applications and
3262libraries written in C.")
3263 (license license:lgpl2.1+)))
ea57378f
SB
3264
3265(define-public vte
3266 (package
3267 (name "vte")
68c47474 3268 (version "0.58.3")
ea57378f
SB
3269 (source (origin
3270 (method url-fetch)
ac87ffb8 3271 (uri (string-append "mirror://gnome/sources/vte/"
ea57378f 3272 (version-major+minor version) "/"
ac87ffb8 3273 "vte-" version ".tar.xz"))
ea57378f
SB
3274 (sha256
3275 (base32
68c47474
TGR
3276 "0xa9ipwic4jnhhbzlnqbhssz10xkzv61cpkl1ammc6mdq95bbp12"))))
3277 (build-system meson-build-system)
ea57378f
SB
3278 (native-inputs
3279 `(("pkg-config" ,pkg-config)
3280 ("intltool" ,intltool)
3281 ("vala" ,vala)
3282 ("gobject-introspection" ,gobject-introspection)
68c47474 3283 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
73f0e1ab 3284 ("gperf" ,gperf)
ea57378f
SB
3285 ("xmllint" ,libxml2)))
3286 (propagated-inputs
68c47474
TGR
3287 `(("gtk+" ,gtk+) ; required by vte-2.91.pc
3288 ("gnutls" ,gnutls) ; ditto
3289 ("pcre2" ,pcre2))) ; ditto
f032d0be 3290 (home-page "https://www.gnome.org/")
ea57378f
SB
3291 (synopsis "Virtual Terminal Emulator")
3292 (description
3293 "VTE is a library (libvte) implementing a terminal emulator widget for
3294GTK+, and a minimal sample application (vte) using that. Vte is mainly used in
3295gnome-terminal, but can also be used to embed a console/terminal in games,
3296editors, IDEs, etc.")
3297 (license license:lgpl2.1+)))
3298
c44fb4df
MO
3299(define-public vte-ng
3300 (package
3301 (inherit vte)
3302 (name "vte-ng")
24f4fcbe 3303 (version "0.58.2.a")
afd90f8d 3304 (home-page "https://github.com/thestinger/vte-ng")
6bc00737
MB
3305 (source (origin
3306 (method git-fetch)
3307 (uri (git-reference (url home-page) (commit version)))
3308 (file-name (git-file-name name version))
3309 (sha256
3310 (base32
24f4fcbe
MB
3311 "0rnm5c6m3abbm81jsfdas0y80z299ny54gr4syn4bfrms3s4g19l"))))
3312 (build-system meson-build-system)
c44fb4df
MO
3313 (native-inputs
3314 `(("gtk-doc" ,gtk-doc)
c44fb4df 3315 ,@(package-native-inputs vte)))
c44fb4df 3316 (arguments
24f4fcbe 3317 `(#:configure-flags '("-Ddocs=true")))
c44fb4df
MO
3318 (synopsis "Enhanced VTE terminal widget")
3319 (description
3320 "VTE is a library (libvte) implementing a terminal emulator widget for
3321GTK+, this fork provides additional functions exposed for keyboard text
3322selection and URL hints.")))
3323
2776d72c
EF
3324;; provides vte 2.90, required for some terminal emulators
3325;; tilda bug: https://github.com/lanoxx/tilda/issues/94
3326;; pantheon-terminal bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788021
3327;; roxterm bug: http://sourceforge.net/p/roxterm/bugs/107/
3328;; pantheon-terminal, roxterm are not currently packaged
3329(define-public vte-0.36
3330 (package (inherit vte)
3331 (name "vte")
3332 (version "0.36.5")
3333 (source (origin
3334 (method url-fetch)
3335 (uri (string-append "mirror://gnome/sources/" name "/"
3336 (version-major+minor version) "/"
3337 name "-" version ".tar.xz"))
3338 (sha256
3339 (base32
3340 "1psfnqsmxx4qzc55qwvb8jai824ix4pqcdqhgxk0g2zh82bcxhn2"))))
3341 (propagated-inputs
3342 `(("gtk" ,gtk+)
3343 ("ncurses" ,ncurses)))))
3344
ea57378f
SB
3345;; stable version for gtk2, required by xfce4-terminal.
3346(define-public vte/gtk+-2
3347 (package (inherit vte)
3348 (name "vte")
3349 (version "0.28.2")
3350 (source (origin
3351 (method url-fetch)
3352 (uri (string-append "mirror://gnome/sources/" name "/"
3353 (version-major+minor version) "/"
3354 name "-" version ".tar.xz"))
3355 (sha256
3356 (base32
7d48938a
EF
3357 "1bmhahkf8wdsra9whd3k5l5z4rv7r58ksr8mshzajgq2ma0hpkw6"))
3358 (patches (search-patches
3359 "vte-CVE-2012-2738-pt1.patch"
3360 "vte-CVE-2012-2738-pt2.patch"))))
8eebde74 3361 (build-system gnu-build-system)
ea57378f
SB
3362 (arguments
3363 '(#:configure-flags '("--disable-python")))
3364 (native-inputs
3365 `(("pkg-config" ,pkg-config)
3366 ("intltool" ,intltool)
3367 ("glib" ,glib "bin"))) ; for glib-genmarshal, etc.
3368 (propagated-inputs
3369 `(("gtk+" ,gtk+-2) ; required by libvte.pc
3370 ("ncurses" ,ncurses))))) ; required by libvte.la
b47e1b20 3371
cce0da5e
TD
3372(define-public vinagre
3373 (package
3374 (name "vinagre")
3375 (version "3.22.0")
3376 (source (origin
3377 (method url-fetch)
3378 (uri (string-append "mirror://gnome/sources/" name "/"
3379 (version-major+minor version) "/"
3380 name "-" version ".tar.xz"))
684f97f8
EF
3381 (patches (search-patches "vinagre-newer-freerdp.patch"
3382 "vinagre-newer-rdp-parameters.patch"))
cce0da5e
TD
3383 (sha256
3384 (base32
3385 "10jya3jyrm18nbw3v410gbkc7677bqamax44pzgd3j15randn76d"))))
3386 (build-system glib-or-gtk-build-system)
684f97f8 3387 (arguments
7f486d25
MC
3388 ;; Disable -Werror and such, to avoid build failures on compilation
3389 ;; warnings.
3390 '(#:configure-flags '("--enable-compile-warnings=minimum")
3391 #:phases
684f97f8 3392 (modify-phases %standard-phases
1839768c
EF
3393 (add-before 'install 'skip-gtk-update-icon-cache
3394 (lambda _
3395 ;; Don't create 'icon-theme.cache'
3396 (substitute* (find-files "." "^Makefile$")
3397 (("gtk-update-icon-cache") (which "true")))
3398 #t))
684f97f8
EF
3399 (add-after 'unpack 'patch-configure
3400 (lambda _
3401 (substitute* "configure"
3402 (("freerdp") "freerdp2"))
3403 #t)))))
cce0da5e
TD
3404 (native-inputs
3405 `(("pkg-config" ,pkg-config)
3406 ("intltool" ,intltool)
3407 ("itstool" ,itstool)
1839768c 3408 ("glib-bin" ,glib "bin"))) ;for glib-compile-schemas
cce0da5e
TD
3409 (inputs
3410 `(("libxml2" ,libxml2)
3411 ("gtk-vnc" ,gtk-vnc)
3412 ("gnome-keyring" ,gnome-keyring)
3413 ("libsecret" ,libsecret)
3414 ("freerdp" ,freerdp)
3415 ("spice" ,spice)
3416 ("spice-gtk" ,spice-gtk)
3417 ("telepathy-glib" ,telepathy-glib)
3418 ("vte" ,vte)))
cce0da5e
TD
3419 (home-page "https://wiki.gnome.org/Apps/Vinagre")
3420 (synopsis "Remote desktop viewer for GNOME")
3421 (description "Vinagre is a remote display client supporting the VNC, SPICE
3422and RDP protocols.")
3423 (license license:gpl3+)))
3424
b47e1b20
FB
3425(define-public dconf
3426 (package
3427 (name "dconf")
1e33331c 3428 (version "0.32.0")
b47e1b20
FB
3429 (source (origin
3430 (method url-fetch)
3431 (uri (string-append
2e6ecc5c 3432 "mirror://gnome/sources/" name "/"
b47e1b20
FB
3433 (version-major+minor version) "/"
3434 name "-" version ".tar.xz"))
3435 (sha256
f05c809f 3436 (base32
1e33331c 3437 "1azz4hb9z76yxn34yrrsiib3iqz5z4vpwn5q7cncp55w365ygg38"))))
35fa923d 3438 (build-system meson-build-system)
bc036f4c
MB
3439 (propagated-inputs
3440 ;; In Requires of dconf.pc.
3441 `(("glib" ,glib)))
b47e1b20
FB
3442 (inputs
3443 `(("gtk+" ,gtk+)
bc036f4c 3444 ("dbus" ,dbus)))
b47e1b20 3445 (native-inputs
1e33331c
MB
3446 `(("bash-completion" ,bash-completion)
3447 ("libxslt" ,libxslt) ;for xsltproc
bc036f4c 3448 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
b47e1b20
FB
3449 ("docbook-xml" ,docbook-xml-4.2)
3450 ("docbook-xsl" ,docbook-xsl)
35fa923d 3451 ("glib:bin" ,glib "bin")
03676d6f 3452 ("gtk-doc" ,gtk-doc)
35fa923d
MB
3453 ("pkg-config" ,pkg-config)
3454 ("vala" ,vala)))
b47e1b20
FB
3455 (arguments
3456 `(#:tests? #f ; To contact dbus it needs to load /var/lib/dbus/machine-id
3457 ; or /etc/machine-id.
35fa923d
MB
3458 #:glib-or-gtk? #t
3459 #:configure-flags '("-Denable-gtk-doc=true")))
b47e1b20
FB
3460 (home-page "https://developer.gnome.org/dconf")
3461 (synopsis "Low-level GNOME configuration system")
3462 (description "Dconf is a low-level configuration system. Its main purpose
3463is to provide a backend to GSettings on platforms that don't already have
3464configuration storage systems.")
e20e6b40 3465 (license license:lgpl2.1+)))
109da1c0
AE
3466
3467(define-public json-glib
3468 (package
3469 (name "json-glib")
4115e8ea 3470 (version "1.4.4")
109da1c0
AE
3471 (source (origin
3472 (method url-fetch)
3473 (uri (string-append "mirror://gnome/sources/" name "/"
3474 (version-major+minor version) "/"
3475 name "-" version ".tar.xz"))
3476 (sha256
3477 (base32
4115e8ea 3478 "0ixwyis47v5bkx6h8a1iqlw3638cxcv57ivxv4gw2gaig51my33j"))))
98afa184 3479 (build-system meson-build-system)
109da1c0 3480 (native-inputs
98afa184
MB
3481 `(("gettext" ,gettext-minimal)
3482 ("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
109da1c0
AE
3483 ("gobject-introspection" ,gobject-introspection)
3484 ("pkg-config" ,pkg-config)))
3485 (propagated-inputs
88c6b580 3486 `(("glib" ,glib))) ;according to json-glib-1.0.pc
109da1c0
AE
3487 (home-page "https://wiki.gnome.org/Projects/JsonGlib")
3488 (synopsis "Compiler for the GObject type system")
7c125ce0
AK
3489 (description
3490 "JSON-GLib is a C library based on GLib providing serialization and
3491deserialization support for the JavaScript Object Notation (JSON) format
3492described by RFC 4627. It provides parser and generator GObject classes and
3493various wrappers for the complex data types employed by JSON, such as arrays
3494and objects.")
109da1c0 3495 (license license:lgpl2.1+)))
6f96a359
SB
3496
3497(define-public libxklavier
3498 (package
3499 (name "libxklavier")
5f39050b 3500 (version "5.4")
6f96a359 3501 (source (origin
5f39050b 3502 ;; Note: There's no tarball at ftp.gnome.org for this version.
3503 (method git-fetch)
3504 (uri (git-reference
3505 (url "https://anongit.freedesktop.org/git/libxklavier")
3506 (commit (string-append "libxklavier-" version))))
6f96a359
SB
3507 (sha256
3508 (base32
5f39050b 3509 "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a"))
3510 (file-name (git-file-name name version))))
6f96a359
SB
3511 (build-system gnu-build-system)
3512 (arguments
5f39050b 3513 '(#:phases
3514 (modify-phases %standard-phases
3515 (add-after 'unpack 'no-configure
3516 (lambda* _
3517 (setenv "NOCONFIGURE" "1")
3518 #t)))
3519 #:configure-flags
6f96a359
SB
3520 (list (string-append "--with-xkb-base="
3521 (assoc-ref %build-inputs "xkeyboard-config")
5f39050b 3522 "/share/X11/xkb")
3523 "--disable-xmodmap-support")))
6f96a359
SB
3524 (native-inputs
3525 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
3526 ("gobject-introspection" ,gobject-introspection)
5f39050b 3527 ("pkg-config" ,pkg-config)
3528 ("gtk-doc" ,gtk-doc)
3529 ("intltool" ,intltool)
3530 ("which" ,which)
3531 ("autoconf" ,autoconf)
3532 ("automake" ,automake)
3533 ("libtool" ,libtool)))
6f96a359
SB
3534 (propagated-inputs
3535 ;; Required by libxklavier.pc.
3536 `(("glib" ,glib)
3537 ("libxml2" ,libxml2)))
3538 (inputs
3539 `(("iso-codes" ,iso-codes)
3540 ("libxi" ,libxi)
3541 ("libxkbfile" ,libxkbfile)
3542 ("xkbcomp" ,xkbcomp)
3543 ("xkeyboard-config" ,xkeyboard-config)))
57e7d748 3544 (home-page "https://www.freedesktop.org/wiki/Software/LibXklavier/")
6f96a359
SB
3545 (synopsis "High-level API for X Keyboard Extension")
3546 (description
3547 "LibXklavier is a library providing high-level API for X Keyboard
e881752c
AK
3548Extension known as XKB. This library is intended to support XFree86 and other
3549commercial X servers. It is useful for creating XKB-related software (layout
6f96a359
SB
3550indicators etc).")
3551 (license license:lgpl2.0+)))
619936a4
LC
3552
3553(define-public python2-rsvg
3554 ;; XXX: This is actually a subset of gnome-python-desktop.
3555 (package
3556 (name "python2-rsvg")
3557 (version "2.32.0")
3558 (source
3559 (origin
3560 (method url-fetch)
3561 (uri (string-append
3562 "mirror://gnome/sources/gnome-python-desktop/2.32/gnome-python-desktop-"
3563 version ".tar.bz2"))
3564 (sha256
3565 (base32
3566 "1s8f9rns9v7qlwjv9qh9lr8crp88dpzfm45hj47zc3ivpy0dbnq9"))))
3567 (build-system gnu-build-system)
3568 (native-inputs
3569 `(("pkg-config" ,pkg-config)))
3570 (inputs
3571 `(("python" ,python-2)
3572 ("python2-pygtk" ,python2-pygtk)
3573 ("librsvg" ,librsvg)))
f032d0be 3574 (home-page "https://www.gnome.org")
619936a4
LC
3575 (synopsis "Python bindings to librsvg")
3576 (description
3ad75446 3577 "This package provides Python bindings to librsvg, the SVG rendering
619936a4
LC
3578library.")
3579
3580 ;; This is the license of the rsvg bindings. The license of each module
3581 ;; of gnome-python-desktop is given in 'COPYING'.
3582 (license license:lgpl2.1+)))
a31a6d22 3583
f2ca414a
SB
3584(define-public glib-networking
3585 (package
3586 (name "glib-networking")
0d75c64d 3587 (version "2.60.3")
f2ca414a
SB
3588 (source (origin
3589 (method url-fetch)
3590 (uri (string-append "mirror://gnome/sources/glib-networking/"
3591 (version-major+minor version) "/"
fb8fe1e8 3592 "glib-networking-" version ".tar.xz"))
f2ca414a
SB
3593 (sha256
3594 (base32
0d75c64d 3595 "1mfw44qpmwvz6yzj8c6spx6z357wrmkk15byrkc5byagd82860fm"))))
65211552 3596 (build-system meson-build-system)
f2ca414a 3597 (arguments
0d75c64d 3598 `(#:configure-flags '("-Dlibproxy_support=false")))
f2ca414a
SB
3599 (native-inputs
3600 `(("pkg-config" ,pkg-config)
3601 ("intltool" ,intltool)))
3602 (inputs
3603 `(("glib" ,glib)
3604 ("gnutls" ,gnutls)
4b8f1313 3605 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
f032d0be 3606 (home-page "https://www.gnome.org")
f2ca414a
SB
3607 (synopsis "Network-related GIO modules")
3608 (description
3609 "This package contains various network related extensions for the GIO
3610library.")
3611 (license license:lgpl2.0+)))
3612
ca649680 3613(define-public rest
4510b2da 3614 (package
ca649680 3615 (name "rest")
a4194d16 3616 (version "0.8.1")
4510b2da
SB
3617 (source (origin
3618 (method url-fetch)
3619 (uri (string-append "mirror://gnome/sources/rest/"
ca649680
SB
3620 (version-major+minor version) "/"
3621 name "-" version ".tar.xz"))
4510b2da
SB
3622 (sha256
3623 (base32
a4194d16 3624 "1j81bgqmd55s5lxyaxcplym9n6xywcs1cm9wmvafsg2xiv9sl4q5"))))
4510b2da
SB
3625 (build-system gnu-build-system)
3626 (arguments
3627 '(#:tests? #f ; tests require internet connection
3628 #:configure-flags
3629 '("--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt")))
3630 (native-inputs
3631 `(("glib-mkenums" ,glib "bin")
3632 ("gobject-introspection" ,gobject-introspection)
3633 ("pkg-config" ,pkg-config)))
3634 (propagated-inputs
3635 ;; rest-0.7.pc refers to all these.
3636 `(("glib" ,glib)
3637 ("libsoup" ,libsoup)
3638 ("libxml2" ,libxml2)))
24d6cc1d 3639 (home-page "https://www.gtk.org/")
4510b2da
SB
3640 (synopsis "RESTful web api query library")
3641 (description
3642 "This library was designed to make it easier to access web services that
3643claim to be \"RESTful\". It includes convenience wrappers for libsoup and
3644libxml to ease remote use of the RESTful API.")
3645 (license license:lgpl2.1+)))
3646
6e1bb642
SB
3647(define-public libsoup
3648 (package
3649 (name "libsoup")
9ae87870 3650 (version "2.68.3")
6e1bb642
SB
3651 (source (origin
3652 (method url-fetch)
3653 (uri (string-append "mirror://gnome/sources/libsoup/"
3654 (version-major+minor version) "/"
c1b79b36 3655 "libsoup-" version ".tar.xz"))
6e1bb642
SB
3656 (sha256
3657 (base32
9ae87870 3658 "1yxs0ax4rq3g0lgkbv7mz497rqj16iyyizddyc13gzxh6n7b0jsk"))))
eccaa8bf 3659 (build-system meson-build-system)
6e1bb642
SB
3660 (outputs '("out" "doc"))
3661 (arguments
2deb146f 3662 `(#:modules ((guix build utils)
eccaa8bf 3663 (guix build meson-build-system)
2deb146f
LC
3664 (ice-9 popen))
3665
f8026a79 3666 #:configure-flags '("-Dgtk_doc=true")
6e1bb642
SB
3667 #:phases
3668 (modify-phases %standard-phases
eccaa8bf 3669 (add-after 'unpack 'adjust-tests
26c228f9 3670 (lambda _
eccaa8bf
MB
3671 ;; This test fails due to missing /etc/nsswitch.conf
3672 ;; in the build environment.
26c228f9
LC
3673 (substitute* "tests/socket-test.c"
3674 ((".*/sockets/unconnected.*") ""))
2deb146f 3675
f8026a79
MB
3676 ;; These fail because "subdomain.localhost" does not resolve in
3677 ;; the build environment.
3678 (substitute* "tests/hsts-test.c"
3679 ((".*/hsts/basic.*") "")
3680 ((".*/hsts/subdomains.*") "")
3681 ((".*/hsts/superdomain.*") "")
3682 ((".*/hsts/utf8-address.*") ""))
3683 (substitute* "tests/hsts-db-test.c"
3684 ((".*/hsts-db/subdomains.*") ""))
3685
2deb146f
LC
3686 ;; Generate a self-signed certificate that has "localhost" as its
3687 ;; 'dnsName'. Failing to do that, and starting with GnuTLS
3688 ;; 3.5.12, tests such as "ssl-tests" fail:
3689 ;;
3690 ;; ERROR:ssl-test.c:406:do_tls_interaction_test: Unexpected status 6 Unacceptable TLS certificate (expected 200 OK)
3691 ;;
3692 ;; 'certtool' is interactive so we have to pipe it the answers.
3693 ;; Reported at <https://bugzilla.gnome.org/show_bug.cgi?id=784696>.
3694 (let ((pipe (open-output-pipe "certtool --generate-self-signed \
3695 --load-privkey tests/test-key.pem --outfile tests/test-cert.pem")))
3696 (for-each (lambda (line)
3697 (display line pipe)
3698 (newline pipe))
3699 '("" ;Common name
3700 "" ;UID
3701 "Guix" ;Organizational unit name
3702 "GNU" ;Organization name
3703 "" ;Locality name
3704 "" ;State or province
3705 "" ;Country
3706 "" ;subject's domain component (DC)
3707 "" ;E-mail
3708 "" ;serial number
3709 "-1" ;expiration time
3710 "N" ;belong to authority?
3711 "N" ;web client certificate?
3712 "N" ;IPsec IKE?
3713 "Y" ;web server certificate?
3714 "localhost" ;dnsName of subject
3715 "" ;dnsName of subject (end)
3716 "" ;URI of subject
3717 "127.0.0.1" ;IP address of subject
3718 "" ;signing?
06f5bc4e
MB
3719 "" ;encryption (RSA)?
3720 "" ;data encryption?
2deb146f
LC
3721 "" ;sign OCSP requests?
3722 "" ;sign code?
3723 "" ;time stamping?
3724 "" ;email protection?
3725 "" ;URI of the CRL distribution point
3726 "y" ;above info OK?
3727 ))
3728 (close-pipe pipe))
26c228f9 3729 #t))
eccaa8bf
MB
3730 (add-after 'install 'move-doc
3731 (lambda* (#:key outputs #:allow-other-keys)
3732 (let ((out (assoc-ref outputs "out"))
3733 (doc (assoc-ref outputs "doc")))
3734 (mkdir-p (string-append doc "/share"))
3735 (copy-recursively (string-append out "/share/gtk-doc")
3736 (string-append doc "/share/gtk-doc"))
3737 (delete-file-recursively (string-append out "/share/gtk-doc"))
3738 #t))))))
6e1bb642 3739 (native-inputs
26c228f9 3740 `(("glib:bin" ,glib "bin") ; for glib-mkenums
6e1bb642 3741 ("gobject-introspection" ,gobject-introspection)
eccaa8bf 3742 ("gtk-doc" ,gtk-doc)
6e1bb642
SB
3743 ("intltool" ,intltool)
3744 ("pkg-config" ,pkg-config)
3745 ("python" ,python-wrapper)
fd730590 3746 ("vala" ,vala)
6e1bb642
SB
3747 ;; These are needed for the tests.
3748 ;; FIXME: Add PHP once available.
3749 ("curl" ,curl)
2deb146f 3750 ("gnutls" ,gnutls) ;for 'certtool'
6e1bb642
SB
3751 ("httpd" ,httpd)))
3752 (propagated-inputs
3753 ;; libsoup-2.4.pc refers to all these.
f8026a79
MB
3754 `(("brotli" ,google-brotli)
3755 ("glib" ,glib)
249846bf 3756 ("libpsl" ,libpsl)
eccaa8bf 3757 ("libxml2" ,libxml2)
f8026a79
MB
3758 ("sqlite" ,sqlite)
3759 ("zlib" ,zlib)))
eccaa8bf
MB
3760 (inputs
3761 `(("glib-networking" ,glib-networking)
3762 ("mit-krb5" ,mit-krb5)))
6e1bb642
SB
3763 (home-page "https://live.gnome.org/LibSoup/")
3764 (synopsis "GLib-based HTTP Library")
3765 (description
3766 "LibSoup is an HTTP client/server library for GNOME. It uses GObjects
3767and the GLib main loop, to integrate well with GNOME applications.")
3768 (license license:lgpl2.0+)))
3769
bba229a3
SB
3770(define-public libsecret
3771 (package
3772 (name "libsecret")
b243d2f7 3773 (version "0.19.1")
bba229a3
SB
3774 (source (origin
3775 (method url-fetch)
3776 (uri (string-append
896dcbc7
EF
3777 "mirror://gnome/sources/libsecret/"
3778 (version-major+minor version) "/"
0ada4e29 3779 "libsecret-" version ".tar.xz"))
bba229a3
SB
3780 (sha256
3781 (base32
b243d2f7 3782 "0fhflcsr70b1pps2pcvqcbdhip2ny5am9nbm634f4sj5g40y30w5"))))
bba229a3
SB
3783 (build-system gnu-build-system)
3784 (outputs '("out" "doc"))
3785 (arguments
3786 `(#:tests? #f ; FIXME: Testing hangs.
bba229a3
SB
3787 #:configure-flags
3788 (list (string-append "--with-html-dir="
3789 (assoc-ref %outputs "doc")
3790 "/share/gtk-doc/html"))))
3791 (native-inputs
c06ef010
MB
3792 `(("gettext" ,gettext-minimal)
3793 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
bba229a3 3794 ("gobject-introspection" ,gobject-introspection)
bba229a3
SB
3795 ("pkg-config" ,pkg-config)
3796 ("vala" ,vala)
3797 ("xsltproc" ,libxslt)))
3798 ;; These are needed for the tests.
3799 ;; FIXME: Add gjs once available.
3800 ;("dbus" ,dbus)
3801 ;("python2" ,python-2)
3802 ;("python2-dbus" ,python2-dbus)
3803 ;("python2-pygobject" ,python2-pygobject)
3804 ;("python2-pygobject-2" ,python2-pygobject-2)))
3805 (propagated-inputs
3806 `(("glib" ,glib))) ; required by libsecret-1.pc
3807 (inputs
3808 `(("docbook-xsl" ,docbook-xsl)
3809 ("libgcrypt" ,libgcrypt)
3810 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
3811 (home-page "https://wiki.gnome.org/Projects/Libsecret/")
3812 (synopsis "GObject bindings for \"Secret Service\" API")
3813 (description
3814 "Libsecret is a GObject based library for storing and retrieving passwords
3815and other secrets. It communicates with the \"Secret Service\" using DBus.")
3816 (license license:lgpl2.1+)))
3817
b6821ee0 3818(define-public five-or-more
3819 (package
3820 (name "five-or-more")
d9795e93 3821 (version "3.32.0")
b6821ee0 3822 (source
3823 (origin
3824 (method url-fetch)
3825 (uri (string-append "mirror://gnome/sources/" name "/"
3826 (version-major+minor version) "/"
3827 name "-" version ".tar.xz"))
3828 (sha256
3829 (base32
d9795e93
KK
3830 "0v52i22ygv6y4zqs8nyb1qmacmj9whhqrw7qss6vn7by4nsikhrn"))))
3831 (build-system meson-build-system)
3832 (arguments
3833 '(#:glib-or-gtk? #t
3834 #:phases
3835 (modify-phases %standard-phases
3836 (add-after 'unpack 'skip-gtk-update-icon-cache
3837 (lambda _
3838 (substitute* "meson_post_install.py"
3839 (("gtk-update-icon-cache") (which "true")))
3840 #t)))))
b6821ee0 3841 (native-inputs
3842 `(("pkg-config" ,pkg-config)
d9795e93 3843 ("appstream-glib" ,appstream-glib)
b6821ee0 3844 ("desktop-file-utils" ,desktop-file-utils)
d9795e93 3845 ("glib:bin" ,glib "bin") ; for glib-compile-resources
b6821ee0 3846 ("intltool" ,intltool)
3847 ("itstool" ,itstool)
d9795e93 3848 ("vala" ,vala)
b6821ee0 3849 ("xmllint" ,libxml2)))
3850 (inputs
3851 `(("gtk+" ,gtk+)
d9795e93 3852 ("libgnome-games-support" ,libgnome-games-support)
b6821ee0 3853 ("librsvg" ,librsvg)))
3854 (home-page "https://wiki.gnome.org/Apps/Five%20or%20more")
3855 (synopsis "Logic puzzle game")
3856 (description "Five or More is a game where you try to align
3857 five or more objects of the same color and shape causing them to disappear.
3858 On every turn more objects will appear, until the board is full.
3859 Try to last as long as possible.")
3860 (license license:gpl2+)))
3861
a31a6d22
SB
3862(define-public gnome-mines
3863 (package
3864 (name "gnome-mines")
2d817e41 3865 (version "3.32.2")
a31a6d22
SB
3866 (source
3867 (origin
3868 (method url-fetch)
3869 (uri (string-append "mirror://gnome/sources/" name "/"
3870 (version-major+minor version) "/"
3871 name "-" version ".tar.xz"))
3872 (sha256
3873 (base32
2d817e41 3874 "1nv966wkp2rqxzcdb76bwlbzpjqadcaqzrnkxpzwnvjjr167yx8g"))))
8c0fab36 3875 (build-system meson-build-system)
a31a6d22 3876 (arguments
2d817e41
KK
3877 '(#:glib-or-gtk? #t
3878 #:phases
a31a6d22 3879 (modify-phases %standard-phases
2d817e41
KK
3880 (add-after 'unpack 'skip-gtk-update-icon-cache
3881 (lambda _
3882 (substitute* "build-aux/meson_post_install.py"
3883 (("gtk-update-icon-cache") (which "true")))
3884 #t)))))
a31a6d22 3885 (native-inputs
8c0fab36
RW
3886 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
3887 ("pkg-config" ,pkg-config)
a31a6d22
SB
3888 ("desktop-file-utils" ,desktop-file-utils)
3889 ("intltool" ,intltool)
bcb354ad 3890 ("itstool" ,itstool)
8c0fab36
RW
3891 ("vala" ,vala)
3892 ("yelp" ,yelp)
3893 ("appstream-glib" ,appstream-glib)))
a31a6d22
SB
3894 (inputs
3895 `(("gtk+" ,gtk+)
73992962 3896 ("libgnome-games-support" ,libgnome-games-support)
a31a6d22
SB
3897 ("librsvg" ,librsvg)))
3898 (home-page "https://wiki.gnome.org/Apps/Mines")
3899 (synopsis "Minesweeper game")
3900 (description
3901 "Mines (previously gnomine) is a puzzle game where you locate mines
3902floating in an ocean using only your brain and a little bit of luck.")
3903 (license license:gpl2+)))
88f70665 3904
dfc407f3
KY
3905(define-public gnome-sudoku
3906 (package
3907 (name "gnome-sudoku")
7dc728c4 3908 (version "3.32.0")
dfc407f3
KY
3909 (source
3910 (origin
3911 (method url-fetch)
3912 (uri (string-append "mirror://gnome/sources/" name "/"
3913 (version-major+minor version) "/"
3914 name "-" version ".tar.xz"))
3915 (sha256
3916 (base32
7dc728c4
KK
3917 "1wwdjflw1lbx3cv6gvqcgp5jnjkrq37ld6mjbjj03g3vr90qaf0l"))))
3918 (build-system meson-build-system)
3919 (arguments
3920 '(#:glib-or-gtk? #t
3921 #:phases
3922 (modify-phases %standard-phases
3923 (add-after 'unpack 'skip-gtk-update-icon-cache
3924 (lambda _
3925 (substitute* "build-aux/post_install.py"
3926 (("gtk-update-icon-cache") (which "true")))
3927 #t)))))
dfc407f3
KY
3928 (native-inputs
3929 `(("pkg-config" ,pkg-config)
3930 ("desktop-file-utils" ,desktop-file-utils)
7dc728c4 3931 ("glib:bin" ,glib "bin") ; for glib-compile-resources
dfc407f3
KY
3932 ("intltool" ,intltool)
3933 ("itstool" ,itstool)
7dc728c4 3934 ("vala" ,vala)
dfc407f3
KY
3935 ("xmllint" ,libxml2)))
3936 (inputs
3937 `(("gtk+" ,gtk+)
3938 ("json-glib" ,json-glib)
3939 ("libgee" ,libgee)
3940 ("librsvg" ,librsvg)
3941 ("qqwing" ,qqwing)))
3942 (home-page "https://wiki.gnome.org/Apps/Sudoku")
3943 (synopsis "Japanese logic game")
3944 (description
3945 "Sudoku is a Japanese logic game that exploded in popularity in 2005.
3946GNOME Sudoku is meant to have an interface as simple and unobstrusive as
3947possible while still providing features that make playing difficult Sudoku
3948more fun.")
3949 (license license:gpl2+)))
3950
88f70665
AW
3951(define-public gnome-terminal
3952 (package
3953 (name "gnome-terminal")
7dee3942 3954 (version "3.32.2")
88f70665
AW
3955 (source
3956 (origin
3957 (method url-fetch)
3958 (uri (string-append "mirror://gnome/sources/" name "/"
3959 (version-major+minor version) "/"
3960 name "-" version ".tar.xz"))
3961 (sha256
3962 (base32
7dee3942 3963 "0shhpnagasyp1kxgjczfrivcxbgrrl3y8lzvp1z101m67h4jp6km"))))
88f70665
AW
3964 (build-system glib-or-gtk-build-system)
3965 (arguments
3966 '(#:configure-flags
3967 (list "--disable-migration" "--disable-search-provider"
3968 "--without-nautilus-extension")
3969 #:phases
3970 (modify-phases %standard-phases
3a4de6b2 3971 (add-before 'configure 'patch-/bin/true
88f70665
AW
3972 (lambda _
3973 (substitute* "configure"
3974 (("/bin/true") (which "true"))))))))
3975 (native-inputs
3976 `(("pkg-config" ,pkg-config)
3977 ("desktop-file-utils" ,desktop-file-utils)
3978 ("intltool" ,intltool)
bcb354ad
SB
3979 ("itstool" ,itstool)
3980 ("xmllint" ,libxml2)))
68702167
MW
3981 (propagated-inputs
3982 `(("dconf" ,dconf)))
88f70665
AW
3983 (inputs
3984 `(("gtk+" ,gtk+)
3985 ("vte" ,vte)
3986 ("gnutls" ,gnutls)
88f70665
AW
3987 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3988 ("util-linux" ,util-linux)
3989 ("vala" ,vala)))
3990 (home-page "https://wiki.gnome.org/Apps/Terminal")
3991 (synopsis "Terminal emulator")
3992 (description
3993 "GNOME Terminal is a terminal emulator application for accessing a
3994UNIX shell environment which can be used to run programs available on
3995your system.
3996
3997It supports several profiles, multiple tabs and implements several
3998keyboard shortcuts.")
3999 (license license:gpl3+)))
75016d07
AW
4000
4001(define-public colord
4002 (package
4003 (name "colord")
f98be942 4004 (version "1.4.4")
75016d07
AW
4005 (source
4006 (origin
4007 (method url-fetch)
5cc3096c 4008 (uri (string-append "https://www.freedesktop.org/software/colord/releases/"
d21778aa 4009 "colord-" version ".tar.xz"))
75016d07 4010 (sha256
f98be942 4011 (base32 "19f0938fr7nvvm3jr263dlknaq7md40zrac2npfyz25zc00yh3ws"))))
a68544a8 4012 (build-system meson-build-system)
75016d07 4013 (arguments
a68544a8
RW
4014 '(;; FIXME: One test fails:
4015 ;; /colord/icc-store (in lib/colord/colord-self-test-private):
4016 ;; Incorrect content type for /tmp/colord-vkve/already-exists.icc, got
4017 ;; application/x-zerosize
75016d07 4018 #:tests? #f
a68544a8
RW
4019 #:glib-or-gtk? #t
4020 #:configure-flags (list "-Dlocalstatedir=/var"
75016d07 4021 ;; No dep on systemd.
a68544a8 4022 "-Dsystemd=false"
75016d07
AW
4023 ;; Wants to install to global completion dir;
4024 ;; punt.
a68544a8 4025 "-Dbash_completion=false"
a68544a8
RW
4026 "-Ddaemon_user=colord"
4027 "-Dsane=true"
dac26e22 4028 "-Dvapi=true"
6f20e2dc 4029 ;; Requires spotread.
a68544a8 4030 "-Dargyllcms_sensor=false"
6f20e2dc 4031 ;; TODO: Requires docbook2x.
a68544a8 4032 "-Dman=false")
75016d07
AW
4033 #:phases
4034 (modify-phases %standard-phases
a68544a8
RW
4035 (add-before 'configure 'patch-build-system
4036 (lambda* (#:key outputs #:allow-other-keys)
4037 (substitute* "rules/meson.build"
4038 (("udev.get_pkgconfig_variable\\('udevdir'\\)")
4039 (string-append "'" (assoc-ref outputs "out") "/lib/udev'")))
2a1f3e3f
LC
4040 #t))
4041 (add-before 'configure 'set-sqlite3-file-name
4042 (lambda* (#:key inputs #:allow-other-keys)
4043 ;; "colormgr dump" works by invoking the "sqlite3" command.
4044 ;; Record its absolute file name.
4045 (let ((sqlite (assoc-ref inputs "sqlite")))
4046 (substitute* "client/cd-util.c"
4047 (("\"sqlite3\"")
4048 (string-append "\"" sqlite "/bin/sqlite3\"")))
4049 #t))))))
75016d07 4050 (native-inputs
6f20e2dc 4051 `(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
2536027c 4052 ("gettext" ,gettext-minimal)
75016d07 4053 ("gobject-introspection" ,gobject-introspection)
a68544a8 4054 ("gtk-doc" ,gtk-doc)
dac26e22
TGR
4055 ("pkg-config" ,pkg-config)
4056 ("vala" ,vala)))
65cb2d61
SB
4057 (propagated-inputs
4058 ;; colord.pc refers to all these.
4059 `(("glib" ,glib)
6f20e2dc
TGR
4060 ("lcms" ,lcms)
4061 ("udev" ,eudev)))
75016d07 4062 (inputs
65cb2d61 4063 `(("dbus-glib" ,dbus-glib)
a68544a8 4064 ("gusb" ,gusb)
80c7dd1a 4065 ("libgudev" ,libgudev)
75016d07 4066 ("libusb" ,libusb)
75016d07 4067 ("polkit" ,polkit)
a68544a8 4068 ("python" ,python-wrapper)
6f20e2dc 4069 ("sqlite" ,sqlite)
4c928743 4070 ("sane-backends" ,sane-backends)))
57e7d748 4071 (home-page "https://www.freedesktop.org/software/colord/")
75016d07
AW
4072 (synopsis "Color management service")
4073 (description "Colord is a system service that makes it easy to manage,
4074install and generate color profiles to accurately color manage input and
4075output devices.")
4076 (license license:gpl2+)))
7b2abd00
AW
4077
4078(define-public geoclue
4079 (package
4080 (name "geoclue")
50e96d25 4081 (version "2.5.5")
7b2abd00
AW
4082 (source
4083 (origin
4084 (method url-fetch)
50e96d25
MB
4085 (uri
4086 (string-append "https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/"
4087 version "/geoclue-" version ".tar.bz2"))
7b2abd00
AW
4088 (sha256
4089 (base32
50e96d25 4090 "1b7jqrsn4x7mxjxj8hvb2dl2cmhrpb9vibs4rvkkanky5nsx3sai"))
fc1adab1 4091 (patches (search-patches "geoclue-config.patch"))))
50e96d25 4092 (build-system meson-build-system)
7b2abd00 4093 (arguments
50e96d25 4094 '(#:configure-flags (list "-Dbus-srv-user=geoclue")))
7b2abd00
AW
4095 (native-inputs
4096 `(("pkg-config" ,pkg-config)
758798a9 4097 ("gobject-introspection" ,gobject-introspection)
50e96d25
MB
4098 ("modem-manager" ,modem-manager)
4099 ("libnotify" ,libnotify)
4100 ("gtk-doc", gtk-doc)
7b2abd00
AW
4101 ("intltool" ,intltool)))
4102 (inputs
54e911bc 4103 `(("avahi" ,avahi)
50e96d25
MB
4104 ("glib:bin" ,glib "bin")
4105 ("glib-networking" ,glib-networking)
7b2abd00
AW
4106 ("json-glib" ,json-glib)
4107 ("libsoup" ,libsoup)))
50e96d25 4108 (home-page "https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home")
7b2abd00
AW
4109 (synopsis "Geolocation service")
4110 (description "Geoclue is a D-Bus service that provides location
4111information. The primary goal of the Geoclue project is to make creating
4112location-aware applications as simple as possible, while the secondary goal is
4113to ensure that no application can access location information without explicit
e881752c 4114permission from user.")
7b2abd00 4115 (license license:gpl2+)))
2bfe7437
AW
4116
4117(define-public geocode-glib
4118 (package
4119 (name "geocode-glib")
65de725f 4120 (version "3.26.1")
2bfe7437
AW
4121 (source (origin
4122 (method url-fetch)
4123 (uri (string-append "mirror://gnome/sources/geocode-glib/"
4124 (version-major+minor version) "/"
d485cdc0 4125 "geocode-glib-" version ".tar.xz"))
2bfe7437
AW
4126 (sha256
4127 (base32
65de725f 4128 "076ydfpyc4n5c9dbqmf26i4pilfi5jpw6cjcgrbgrjbndavnmajv"))))
a7dd0c02 4129 (build-system meson-build-system)
2bfe7437 4130 (arguments
a7dd0c02
RW
4131 `(#:phases
4132 (modify-phases %standard-phases
4133 ;; The tests require a bunch of locales.
4134 (add-before 'check 'set-locales
4135 (lambda* (#:key inputs #:allow-other-keys)
4136 (setenv "GUIX_LOCPATH"
4137 (string-append (assoc-ref inputs "glibc-locales")
4138 "/lib/locale"))
4139 #t)))))
2bfe7437
AW
4140 (native-inputs
4141 `(("glib:bin" ,glib "bin") ; for glib-mkenums
a7dd0c02
RW
4142 ("glibc-locales" ,glibc-locales) ; for tests
4143 ("gettext" ,gettext-minimal)
2bfe7437 4144 ("gobject-introspection" ,gobject-introspection)
a7dd0c02 4145 ("gtk-doc" ,gtk-doc)
2bfe7437
AW
4146 ("pkg-config" ,pkg-config)
4147 ("json-glib" ,json-glib)))
4148 (propagated-inputs
4149 ;; geocode-glib-1.0.pc refers to GIO.
4150 `(("glib" ,glib)))
4151 (inputs
4152 `(("libsoup" ,libsoup)))
4153 (home-page "https://github.com/GNOME/geocode-glib/")
4154 (synopsis "Geocoding and reverse-geocoding library")
4155 (description
4156 "geocode-glib is a convenience library for geocoding (finding longitude,
4157and latitude from an address) and reverse geocoding (finding an address from
4158coordinates) using the Nominatim service. geocode-glib caches requests for
4159faster results and to avoid unnecessary server load.")
4160 (license license:lgpl2.0+)))
a1d5bb0e
AW
4161
4162(define-public upower
4163 (package
4164 (name "upower")
df45af90 4165 (version "0.99.11")
a1d5bb0e
AW
4166 (source (origin
4167 (method url-fetch)
df45af90 4168 (uri (string-append "https://upower.freedesktop.org/releases/"
9ec54965 4169 "upower-" version ".tar.xz"))
a1d5bb0e
AW
4170 (sha256
4171 (base32
df45af90 4172 "1vxxvmz2cxb1qy6ibszaz5bskqdy9nd9fxspj9fv3gfmrjzzzdb4"))
5dc6d5ce
LC
4173 (patches (search-patches "upower-builddir.patch"))
4174 (modules '((guix build utils)))
4175 (snippet
4176 '(begin
4177 ;; Upstream commit
4178 ;; <https://cgit.freedesktop.org/upower/commit/?id=18457c99b68786cd729b315723d680e6860d9cfa>
4179 ;; moved 'dbus-1/system.d' from etc/ to share/. However,
4180 ;; 'dbus-configuration-directory' in (gnu services dbus)
4181 ;; expects it in etc/. Thus, move it back to its previous
4182 ;; location.
4183 (substitute* "src/Makefile.in"
4184 (("^dbusconfdir =.*$")
4185 "dbusconfdir = $(sysconfdir)/dbus-1/system.d\n"))
4186 #t))))
a1d5bb0e
AW
4187 (build-system glib-or-gtk-build-system)
4188 (arguments
4189 '( ;; The tests want to contact the system bus, which can't be done in the
4190 ;; build environment. The integration test can run, but the last of
4191 ;; the up-self-tests doesn't. Disable tests for now.
4192 #:tests? #f
4193 #:configure-flags (list "--localstatedir=/var"
4194 (string-append "--with-udevrulesdir="
4195 (assoc-ref %outputs "out")
9ec54965 4196 "/lib/udev/rules.d"))))
a1d5bb0e 4197 (native-inputs
ebeabe2d
SB
4198 `(("gobject-introspection" ,gobject-introspection)
4199 ("pkg-config" ,pkg-config)
a1d5bb0e 4200 ("intltool" ,intltool)
55409295
LC
4201 ("python" ,python)
4202
4203 ;; For man pages.
4204 ("libxslt" ,libxslt) ;for 'xsltproc'
4205 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
4206 ("docbook-xsl" ,docbook-xsl)))
a1d5bb0e 4207 (inputs
ea226291
SB
4208 `(("dbus-glib" ,dbus-glib)
4209 ("libgudev" ,libgudev)
a1d5bb0e 4210 ("libusb" ,libusb)))
d7a503fc
MB
4211 (propagated-inputs
4212 ;; In Requires of upower-glib.pc.
4213 `(("glib" ,glib)))
57e7d748 4214 (home-page "https://upower.freedesktop.org/")
a1d5bb0e
AW
4215 (synopsis "System daemon for managing power devices")
4216 (description
4217 "UPower is an abstraction for enumerating power devices,
4218listening to device events and querying history and statistics. Any
4219application or service on the system can access the org.freedesktop.UPower
4220service via the system message bus.")
4221 (license license:gpl2+)))
6a180f6f
AW
4222
4223(define-public libgweather
4224 (package
4225 (name "libgweather")
794ce8ea 4226 (version "3.28.3")
6a180f6f
AW
4227 (source (origin
4228 (method url-fetch)
4229 (uri (string-append "mirror://gnome/sources/" name "/"
4230 (version-major+minor version) "/"
4231 name "-" version ".tar.xz"))
4232 (sha256
4233 (base32
794ce8ea 4234 "1xz60h59zgyk61y2wwzm0xlqav72i668g7v0x7rh9idz240hxls5"))))
cf6cbc34 4235 (build-system meson-build-system)
6a180f6f 4236 (arguments
cf6cbc34
RW
4237 `(#:tests? #f ; one of two tests requires network access
4238 #:configure-flags
4239 `(,(string-append "-Dzoneinfo_dir="
b6072e6b 4240 (assoc-ref %build-inputs "tzdata")
cf6cbc34 4241 "/share/zoneinfo"))))
6a180f6f
AW
4242 (native-inputs
4243 `(("glib:bin" ,glib "bin") ; for glib-mkenums
b6072e6b 4244 ("gobject-introspection" ,gobject-introspection)
6a180f6f 4245 ("pkg-config" ,pkg-config)
1d3fcf94 4246 ("vala" ,vala)
6a180f6f
AW
4247 ("intltool" ,intltool)))
4248 (propagated-inputs
4249 ;; gweather-3.0.pc refers to GTK+, GDK-Pixbuf, GLib/GObject, libxml, and
4250 ;; libsoup.
4251 `(("gtk+" ,gtk+)
4252 ("gdk-pixbuf" ,gdk-pixbuf)
4253 ("libxml2" ,libxml2)
cf6cbc34 4254 ("libsoup" ,libsoup)
6a180f6f 4255 ("geocode-glib" ,geocode-glib)))
cf6cbc34
RW
4256 (inputs
4257 `(("tzdata" ,tzdata)))
6a180f6f
AW
4258 (home-page "https://wiki.gnome.org/action/show/Projects/LibGWeather")
4259 (synopsis "Location, time zone, and weather library for GNOME")
4260 (description
4261 "libgweather is a library to access weather information from online
4262services for numerous locations.")
4263 (license license:gpl2+)))
23a22af6
AW
4264
4265(define-public gnome-settings-daemon
4266 (package
4267 (name "gnome-settings-daemon")
4be0719f 4268 (version "3.32.1")
23a22af6
AW
4269 (source
4270 (origin
4271 (method url-fetch)
4272 (uri (string-append "mirror://gnome/sources/" name "/"
4273 (version-major+minor version) "/"
4274 name "-" version ".tar.xz"))
4275 (sha256
4276 (base32
4be0719f 4277 "02d0s0g2mmqfib44r3sf0499r08p61s8l2ndsjssbam1bi7x2dks"))))
e644f9fa 4278 (build-system meson-build-system)
23a22af6 4279 (arguments
e644f9fa
RW
4280 `(#:glib-or-gtk? #t
4281 #:configure-flags
4282 (list (string-append "-Dudev_dir="
4283 (assoc-ref %outputs "out")
4d0e085b
RW
4284 "/lib/udev/rules.d/")
4285 ;; Otherwise, the RUNPATH will lack the final path component.
4286 (string-append "-Dc_link_args=-Wl,-rpath="
4287 (assoc-ref %outputs "out")
4288 "/lib/gnome-settings-daemon-3.0"))
e644f9fa 4289 ;; Color management test can't reach the colord system service.
23a22af6
AW
4290 #:tests? #f))
4291 (native-inputs
e644f9fa
RW
4292 `(("glib:bin" ,glib "bin") ; for glib-mkenums
4293 ("pkg-config" ,pkg-config)
23a22af6
AW
4294 ("intltool" ,intltool)
4295 ("xsltproc" ,libxslt)
4296 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
4297 ("docbook-xml" ,docbook-xml-4.2)
4298 ("docbook-xsl" ,docbook-xsl)))
4299 (inputs
e644f9fa
RW
4300 `(("alsa-lib" ,alsa-lib)
4301 ("colord" ,colord)
ea226291 4302 ("libgudev" ,libgudev)
23a22af6
AW
4303 ("upower" ,upower)
4304 ("polkit" ,polkit)
4305 ("pulseaudio" ,pulseaudio)
4306 ("libcanberra" ,libcanberra)
4307 ("libx11" ,libx11)
4308 ("libxtst" ,libxtst)
4309 ("lcms" ,lcms)
4310 ("libnotify" ,libnotify)
4311 ("geoclue" ,geoclue)
4312 ("geocode-glib" ,geocode-glib)
4313 ("libgweather" ,libgweather)
4314 ("gnome-desktop" ,gnome-desktop)
4315 ("nss" ,nss)
4316 ("cups" ,cups)
ec2b1921
AW
4317 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4318 ("libwacom" ,libwacom)
4319 ("librsvg" ,librsvg)
eee7878f 4320 ("xf86-input-wacom" ,xf86-input-wacom)
e644f9fa 4321 ("wayland" ,wayland)
eee7878f 4322 ("network-manager" ,network-manager)))
f032d0be 4323 (home-page "https://www.gnome.org")
23a22af6
AW
4324 (synopsis "GNOME settings daemon")
4325 (description
4326 "This package contains the daemon responsible for setting the various
4327parameters of a GNOME session and the applications that run under it. It
4328handles settings such keyboard layout, shortcuts, and accessibility, clipboard
4329settings, themes, mouse settings, and startup of other daemons.")
4330 (license license:gpl2+)))
1e7464a9
DH
4331
4332(define-public totem-pl-parser
4333 (package
4334 (name "totem-pl-parser")
77425f04 4335 (version "3.26.3")
1e7464a9
DH
4336 (source (origin
4337 (method url-fetch)
e980cbe9
MW
4338 (uri (string-append "mirror://gnome/sources/totem-pl-parser/"
4339 (version-major+minor version) "/"
1e7464a9
DH
4340 "totem-pl-parser-" version ".tar.xz"))
4341 (sha256
4342 (base32
77425f04 4343 "13a45py2j1r9967zgww8kd24bn2fhycd4m3kzr90sxx9l2w03z8f"))))
1e9b19dd 4344 (build-system meson-build-system)
1e7464a9
DH
4345 (arguments
4346 ;; FIXME: Tests require gvfs.
4347 `(#:tests? #f))
4348 (native-inputs
4349 `(("intltool" ,intltool)
4350 ("glib" ,glib "bin")
4d6d8281 4351 ("gobject-introspection" ,gobject-introspection)
1e7464a9 4352 ("pkg-config" ,pkg-config)))
22a6ad6a 4353 (propagated-inputs
1e7464a9
DH
4354 `(("glib" ,glib)
4355 ("gmime" ,gmime)
1e9b19dd
RW
4356 ("libarchive" ,libarchive)
4357 ("libgcrypt" ,libgcrypt)
22a6ad6a
MW
4358 ("libxml2" ,libxml2)))
4359 (inputs
0a6e9e13 4360 `(("libsoup" ,libsoup)))
1e7464a9
DH
4361 (home-page "https://projects.gnome.org/totem")
4362 (synopsis "Library to parse and save media playlists for GNOME")
4363 (description "Totem-pl-parser is a GObjects-based library to parse and save
4364playlists in a variety of formats.")
4365 (license license:lgpl2.0+)))
4366
6b888eff
SB
4367(define-public aisleriot
4368 (package
4369 (name "aisleriot")
36ed9b46 4370 (version "3.22.9")
6b888eff
SB
4371 (source (origin
4372 (method url-fetch)
e43f622a 4373 (uri (string-append "mirror://gnome/sources/aisleriot/"
6b888eff 4374 (version-major+minor version) "/"
e43f622a 4375 "aisleriot-" version ".tar.xz"))
6b888eff
SB
4376 (sha256
4377 (base32
36ed9b46 4378 "0yzdh9cw5cjjgvfh75bihl968czlgfmpmn1z0fdk88sgvpjgzwji"))))
6b888eff
SB
4379 (build-system glib-or-gtk-build-system)
4380 (arguments
4381 '(#:configure-flags
4382 '("--with-platform=gtk-only"
4383 "--with-card-theme-formats=svg")))
4384 (native-inputs
4385 `(("desktop-file-utils" ,desktop-file-utils)
4386 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
4387 ("intltool" ,intltool)
4388 ("itstool" ,itstool)
4389 ("pkg-config" ,pkg-config)
4390 ("xmllint" ,libxml2)))
4391 (inputs
4392 `(("gtk+" ,gtk+)
226e57d6 4393 ("guile" ,guile-2.2)
6b888eff
SB
4394 ("libcanberra" ,libcanberra)
4395 ("librsvg" ,librsvg)))
4396 (home-page "https://wiki.gnome.org/Apps/Aisleriot")
4397 (synopsis "Solitaire card games")
4398 (description
4399 "Aisleriot (also known as Solitaire or sol) is a collection of card games
4400which are easy to play with the aid of a mouse.")
4401 (license license:gpl3+)))
4a79e256 4402
f828d05b
KK
4403(define-public amtk
4404 (package
4405 (name "amtk")
09c4e43f 4406 (version "5.0.1")
f828d05b
KK
4407 (source (origin
4408 (method url-fetch)
bf92ba6b 4409 (uri (string-append "mirror://gnome/sources/amtk/"
f828d05b 4410 (version-major+minor version) "/"
bf92ba6b 4411 "amtk-" version ".tar.xz"))
f828d05b
KK
4412 (sha256
4413 (base32
09c4e43f 4414 "09yy95w1s83c43mh9vha1jbb780yighf5pd2j0ygjmc68sjg871d"))))
f828d05b
KK
4415 (build-system gnu-build-system)
4416 (arguments
4417 '(#:configure-flags '("--enable-gtk-doc")))
4418 (native-inputs
4419 `(("gobject-introspection" ,gobject-introspection)
09c4e43f 4420 ("glib:bin" ,glib "bin") ; for glib-mkenums
f828d05b
KK
4421 ("gtk-doc" ,gtk-doc)
4422 ("pkg-config" ,pkg-config)))
4423 (inputs
4424 `(("glib" ,glib)
4425 ("gtk+" ,gtk+)))
4426 (home-page "https://wiki.gnome.org/Projects/Amtk")
4427 (synopsis "Actions, Menus and Toolbars Kit for GTK+ applications")
4428 (description
4429 "Amtk is the acronym for @acronym{Amtk, Actions Menus and Toolbars Kit}.
4430It is a basic GtkUIManager replacement based on GAction. It is suitable for
4431both a traditional UI or a modern UI with a GtkHeaderBar.")
4432 (license license:lgpl2.1+)))
4433
4a79e256
SB
4434(define-public devhelp
4435 (package
4436 (name "devhelp")
20db7a3d 4437 (version "3.32.0")
4a79e256
SB
4438 (source (origin
4439 (method url-fetch)
4440 (uri (string-append "mirror://gnome/sources/" name "/"
4441 (version-major+minor version) "/"
4442 name "-" version ".tar.xz"))
4443 (sha256
4444 (base32
20db7a3d 4445 "06sa83zggk29wcg75fl3gqh0rmi7cd3gsbk09a2z23r7vpy7xanq"))))
11d28bd9 4446 (build-system meson-build-system)
35407f94 4447 (arguments
20db7a3d
KK
4448 '(#:glib-or-gtk? #t
4449 #:phases
35407f94
EF
4450 (modify-phases %standard-phases
4451 (add-after 'unpack 'skip-gtk-update-icon-cache
4452 ;; Don't create 'icon-theme.cache'.
4453 (lambda _
4454 (substitute* "meson_post_install.py"
4455 (("gtk-update-icon-cache") "true"))
4456 #t)))))
4a79e256
SB
4457 (native-inputs
4458 `(("intltool" ,intltool)
5dd12afc 4459 ("itstool" ,itstool)
11d28bd9
KK
4460 ("gobject-introspection" ,gobject-introspection)
4461 ("glib:bin" ,glib "bin") ; for glib-mkmenus
4a79e256
SB
4462 ("pkg-config" ,pkg-config)))
4463 (inputs
11d28bd9
KK
4464 `(("amtk" ,amtk)
4465 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4a79e256
SB
4466 ("webkitgtk" ,webkitgtk)))
4467 (home-page "https://wiki.gnome.org/Apps/Devhelp")
4468 (synopsis "API documentation browser for GNOME")
4469 (description
4470 "Devhelp is an API documentation browser for GTK+ and GNOME. It works
4471natively with GTK-Doc (the API reference system developed for GTK+ and used
4472throughout GNOME for API documentation).")
4473 (license license:gpl2+)))
ba421ab7
MW
4474
4475(define-public cogl
4476 (package
4477 (name "cogl")
54c69ae1 4478 (version "1.22.4")
ba421ab7
MW
4479 (source
4480 (origin
4481 (method url-fetch)
5754f0cf 4482 (uri (string-append "mirror://gnome/sources/cogl/"
ba421ab7 4483 (version-major+minor version) "/"
5754f0cf 4484 "cogl-" version ".tar.xz"))
ba421ab7 4485 (sha256
54c69ae1 4486 (base32 "1q0drs82a8f6glg1v29bb6g2nf15fw0rvdx3d0rgcgfarfaby5sj"))))
a88d5a0c
MW
4487 ;; NOTE: mutter exports a bundled fork of cogl, so when making changes to
4488 ;; cogl, corresponding changes may be appropriate in mutter as well.
ba421ab7
MW
4489 (build-system gnu-build-system)
4490 (native-inputs
4491 `(("glib:bin" ,glib "bin") ; for glib-mkenums
4492 ("gobject-introspection" ,gobject-introspection)
4493 ;;("xorg-server" ,xorg-server) ; for the test suite
4494 ("pkg-config" ,pkg-config)))
4495 (propagated-inputs
4496 `(("glib" ,glib)
4497 ("gdk-pixbuf" ,gdk-pixbuf)
4498 ("libx11" ,libx11)
4499 ("libxext" ,libxext)
4500 ("libxfixes" ,libxfixes)
4501 ("libxdamage" ,libxdamage)
4502 ("libxcomposite" ,libxcomposite)
4503 ("libxrandr" ,libxrandr)))
4504 (inputs
4505 `(("mesa" ,mesa)
4506 ("cairo" ,cairo)
4507 ("pango" ,pango)
4508 ("gstreamer" ,gstreamer)
31860852
KK
4509 ("gst-plugins-base" ,gst-plugins-base)
4510 ("wayland" ,wayland)))
ba421ab7
MW
4511 (arguments
4512 `(#:configure-flags (list "--enable-cogl-gst"
31860852
KK
4513 "--enable-wayland-egl-platform"
4514 "--enable-wayland-egl-server"
4515
ba421ab7
MW
4516 ;; Arrange to pass an absolute file name to
4517 ;; dlopen for libGL.so.
4518 (string-append "--with-gl-libname="
4519 (assoc-ref %build-inputs "mesa")
4520 "/lib/libGL.so"))
4521 ;; XXX FIXME: All tests fail, with many warnings printed like this:
4522 ;; _FontTransOpen: Unable to Parse address
4523 ;; ${prefix}/share/fonts/X11/misc/
4524 #:tests? #f
4525 #; #:phases
4526 #;
4527 (modify-phases %standard-phases
4528 (add-before 'check 'start-xorg-server
4529 (lambda* (#:key inputs #:allow-other-keys)
4530 ;; The test suite requires a running X server.
4531 (system (format #f "~a/bin/Xvfb :1 &"
4532 (assoc-ref inputs "xorg-server")))
4533 (setenv "DISPLAY" ":1")
4534 #t)))))
4535 (home-page "http://www.cogl3d.org")
4536 (synopsis "Object oriented GL/GLES Abstraction/Utility Layer")
4537 (description
4538 "Cogl is a small library for using 3D graphics hardware to draw pretty
4539pictures. The API departs from the flat state machine style of OpenGL and is
4540designed to make it easy to write orthogonal components that can render
4541without stepping on each others toes.")
4542 (license (list license:expat ; most of the code
4543 license:bsd-3 ; cogl/cogl-point-in-poly.c
4544 license:sgifreeb2.0 ; cogl-path/tesselator/
4545 license:asl2.0)))) ; examples/android/
fb182b8a
MW
4546
4547(define-public clutter
4548 (package
4549 (name "clutter")
6a88e4ee 4550 (version "1.26.2")
fb182b8a
MW
4551 (source
4552 (origin
4553 (method url-fetch)
4554 (uri (string-append "mirror://gnome/sources/" name "/"
4555 (version-major+minor version) "/"
4556 name "-" version ".tar.xz"))
4557 (sha256
4558 (base32
6a88e4ee 4559 "0mif1qnrpkgxi43h7pimim6w6zwywa16ixcliw0yjm9hk0a368z7"))))
a88d5a0c
MW
4560 ;; NOTE: mutter exports a bundled fork of clutter, so when making changes
4561 ;; to clutter, corresponding changes may be appropriate in mutter as well.
fb182b8a 4562 (build-system gnu-build-system)
600233bd
LC
4563 (outputs '("out"
4564 "doc")) ;9 MiB of gtk-doc HTML pages
fb182b8a
MW
4565 (native-inputs
4566 `(("glib:bin" ,glib "bin") ; for glib-genmarshal
4567 ("gobject-introspection" ,gobject-introspection)
4568 ("pkg-config" ,pkg-config)
4569 ("xsltproc" ,libxslt)))
4570 (propagated-inputs
4571 `(("cogl" ,cogl)
4572 ("cairo" ,cairo)
4573 ("atk" ,atk)
4574 ("gtk+" ,gtk+)
4575 ("json-glib" ,json-glib)
4576 ("glib" ,glib)
4577 ("libxcomposite" ,libxcomposite)
4578 ("libxdamage" ,libxdamage)
4579 ("libxext" ,libxext)
4580 ("xinput" ,xinput)))
4581 (inputs
4582 `(("libxkbcommon" ,libxkbcommon)
4583 ("udev" ,eudev)))
4584 (arguments
600233bd
LC
4585 `(#:configure-flags (list "--enable-x11-backend=yes"
4586
4587 ;; This produces share/doc/{clutter,cally}.
4588 (string-append "--with-html-dir="
4589 (assoc-ref %outputs "doc")
4590 "/share/doc"))
fb182b8a
MW
4591 ;; XXX FIXME: Get test suite working. It would probably fail in the
4592 ;; same way the cogl tests fail, since clutter is based on cogl.
4593 #:tests? #f))
4594 (home-page "http://www.clutter-project.org")
476af713 4595 (synopsis "OpenGL-based interactive canvas library")
fb182b8a 4596 (description
476af713 4597 "Clutter is an OpenGL-based interactive canvas library, designed for
fb182b8a
MW
4598creating fast, mainly 2D single window applications such as media box UIs,
4599presentations, kiosk style applications and so on.")
4600 (license license:lgpl2.0+)))
bf7f17ba
MW
4601
4602(define-public clutter-gtk
4603 (package
4604 (name "clutter-gtk")
5d1a3219 4605 (version "1.8.4")
bf7f17ba
MW
4606 (source
4607 (origin
4608 (method url-fetch)
4609 (uri (string-append "mirror://gnome/sources/" name "/"
4610 (version-major+minor version) "/"
4611 name "-" version ".tar.xz"))
4612 (sha256
4613 (base32
5d1a3219 4614 "01ibniy4ich0fgpam53q252idm7f4fn5xg5qvizcfww90gn9652j"))))
bf7f17ba
MW
4615 (build-system gnu-build-system)
4616 (native-inputs
4617 `(("pkg-config" ,pkg-config)
4618 ("gobject-introspection" ,gobject-introspection)))
9a3a8b8e
SB
4619 (propagated-inputs
4620 ;; clutter-gtk.pc refers to all these.
bf7f17ba
MW
4621 `(("clutter" ,clutter)
4622 ("gtk+" ,gtk+)))
4623 (home-page "http://www.clutter-project.org")
476af713 4624 (synopsis "OpenGL-based interactive canvas library GTK+ widget")
bf7f17ba 4625 (description
476af713 4626 "Clutter is an OpenGL-based interactive canvas library, designed for
bf7f17ba
MW
4627creating fast, mainly 2D single window applications such as media box UIs,
4628presentations, kiosk style applications and so on.")
4629 (license license:lgpl2.0+)))
86d6a893
MW
4630
4631(define-public clutter-gst
4632 (package
4633 (name "clutter-gst")
ba07ac19 4634 (version "3.0.27")
86d6a893
MW
4635 (source
4636 (origin
4637 (method url-fetch)
f010f89b 4638 (uri (string-append "mirror://gnome/sources/clutter-gst/"
86d6a893 4639 (version-major+minor version) "/"
f010f89b 4640 "clutter-gst-" version ".tar.xz"))
86d6a893 4641 (sha256
ba07ac19 4642 (base32 "17czmpl92dzi4h3rn5rishk015yi3jwiw29zv8qan94xcmnbssgy"))))
86d6a893
MW
4643 (build-system gnu-build-system)
4644 (native-inputs
ba07ac19 4645 `(("glib:bin" ,glib "bin") ; for glib-mkenums
86d6a893
MW
4646 ("pkg-config" ,pkg-config)
4647 ("gobject-introspection" ,gobject-introspection)))
4648 (inputs
4649 `(("clutter" ,clutter)
4650 ("gstreamer" ,gstreamer)
4651 ("gst-plugins-base" ,gst-plugins-base)))
4652 (home-page "http://www.clutter-project.org")
4653 (synopsis "Integration library for using GStreamer with Clutter")
4654 (description
4655 "Clutter-Gst is an integration library for using GStreamer with Clutter.
4656It provides a GStreamer sink to upload frames to GL and an actor that
476af713
TGR
4657implements the ClutterGstPlayer interface using playbin. Clutter is an
4658OpenGL-based interactive canvas library.")
86d6a893 4659 (license license:lgpl2.0+)))
607a04ae 4660
30dc88d9
LC
4661(define-public libchamplain
4662 (package
4663 (name "libchamplain")
5564b2c5 4664 (version "0.12.16")
30dc88d9
LC
4665 (source (origin
4666 (method url-fetch)
4667 (uri (string-append
4668 "mirror://gnome/sources/libchamplain/0.12/libchamplain-"
4669 version ".tar.xz"))
4670 (sha256
4671 (base32
5564b2c5 4672 "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja"))))
30dc88d9 4673 (build-system gnu-build-system)
f7c6833f
LF
4674 (arguments '(#:configure-flags '("--enable-vala")))
4675 (native-inputs
4676 `(("gobject-introspection" ,gobject-introspection)
4677 ("pkg-config" ,pkg-config)
4678 ("vala" ,vala)))
30dc88d9
LC
4679 (propagated-inputs
4680 `(("libsoup" ,libsoup)
4681 ("sqlite" ,sqlite)
4682 ("clutter" ,clutter)
4683 ("clutter-gtk" ,clutter-gtk)
4684 ("glib:bin" ,glib "bin") ;glib-mkenums, etc.
4685 ("cairo" ,cairo)
4686 ("gtk+3" ,gtk+)
4687 ("glib" ,glib)))
f032d0be 4688 (home-page "https://projects.gnome.org/libchamplain/")
30dc88d9
LC
4689 (synopsis "C library providing a ClutterActor to display maps")
4690 (description
4691 "libchamplain is a C library providing a ClutterActor to display maps.
4692It also provides a Gtk+ widget to display maps in Gtk+ applications. Python
4693and Perl bindings are also available. It supports numerous free map sources
4694such as OpenStreetMap, OpenCycleMap, OpenAerialMap, and Maps for free.")
4695 (license license:lgpl2.1+)))
4696
607a04ae
MW
4697(define-public gom
4698 (package
4699 (name "gom")
0510440b 4700 (version "0.3.2")
607a04ae
MW
4701 (source
4702 (origin
4703 (method url-fetch)
6c8a0b6f 4704 (uri (string-append "mirror://gnome/sources/gom/"
607a04ae 4705 (version-major+minor version) "/"
6c8a0b6f 4706 "gom-" version ".tar.xz"))
607a04ae
MW
4707 (sha256
4708 (base32
0510440b 4709 "1zaqqwwkyiswib3v1v8wafpbifpbpak0nn2kp13pizzn9bwz1s5w"))))
607a04ae
MW
4710 (build-system gnu-build-system)
4711 (native-inputs
4712 `(("intltool" ,intltool)
4713 ("pkg-config" ,pkg-config)
4714 ("gobject-introspection" ,gobject-introspection)))
4715 (inputs
4716 `(("glib" ,glib)
4717 ("gdk-pixbuf" ,gdk-pixbuf)
4718 ("sqlite" ,sqlite)))
4719 ;; XXX TODO: Figure out how to run the test suite.
4720 (arguments `(#:tests? #f))
4721 (home-page "https://wiki.gnome.org/Projects/Gom")
4722 (synopsis "Object mapper from GObjects to SQLite")
4723 (description
4724 "Gom provides an object mapper from GObjects to SQLite. It helps you
4725write applications that need to store structured data as well as make complex
4726queries upon that data.")
4727 (license license:lgpl2.1+)))
b7a3cf11 4728
865aacc9 4729(define-public libgnome-games-support
f09520db 4730 (package
865aacc9 4731 (name "libgnome-games-support")
4c6d15cf 4732 (version "1.4.4")
f09520db
SB
4733 (source (origin
4734 (method url-fetch)
2d8dca9d 4735 (uri (string-append "mirror://gnome/sources/libgnome-games-support/"
f09520db 4736 (version-major+minor version) "/"
2d8dca9d 4737 "libgnome-games-support-" version ".tar.xz"))
f09520db
SB
4738 (sha256
4739 (base32
4c6d15cf 4740 "1zkbmnrn161p74qg6jhsn9f66yjjzxfm13pl1klv9av8k1bax9pq"))))
f09520db
SB
4741 (build-system gnu-build-system)
4742 (arguments
4743 '(#:phases
4744 (modify-phases %standard-phases
4745 (add-before 'check 'pre-check
4746 (lambda _
865aacc9 4747 ;; Tests require a writable HOME.
f09520db
SB
4748 (setenv "HOME" (getcwd))
4749 #t)))))
4750 (native-inputs
4751 `(("intltool" ,intltool)
4752 ("pkg-config" ,pkg-config)
4753 ("vala" ,vala)))
4754 (propagated-inputs
865aacc9 4755 ;; Required by libgnome-games-support-1.0.pc
f09520db
SB
4756 `(("gtk+" ,gtk+)
4757 ("libgee" ,libgee)))
4758 (home-page "https://www.gnome.org/")
4759 (synopsis "Useful functionality shared among GNOME games")
4760 (description
865aacc9 4761 "libgnome-games-support is a small library intended for internal use by
f09520db
SB
4762GNOME Games, but it may be used by others.")
4763 (license license:lgpl3+)))
4764
b7a3cf11
SB
4765(define-public gnome-klotski
4766 (package
4767 (name "gnome-klotski")
c1e419c4 4768 (version "3.32.0")
b7a3cf11
SB
4769 (source (origin
4770 (method url-fetch)
4771 (uri (string-append "mirror://gnome/sources/" name "/"
4772 (version-major+minor version) "/"
4773 name "-" version ".tar.xz"))
4774 (sha256
4775 (base32
c1e419c4
KK
4776 "1p4s15gxj6gasix22z9vlx2yrx196fvcxr6v6qrl569idfgjbi72"))))
4777 (build-system meson-build-system)
4778 (arguments
4779 '(#:glib-or-gtk? #t
4780 #:phases
4781 (modify-phases %standard-phases
4782 (add-after 'unpack 'skip-gtk-update-icon-cache
4783 ;; Don't create 'icon-theme.cache'.
4784 (lambda _
4785 (substitute* "build-aux/meson_post_install.py"
4786 (("gtk-update-icon-cache") (which "true")))
4787 #t)))))
b7a3cf11
SB
4788 (native-inputs
4789 `(("desktop-file-utils" ,desktop-file-utils)
c1e419c4 4790 ("glib:bin" ,glib "bin") ; for glib-compile-resources
b7a3cf11
SB
4791 ("intltool" ,intltool)
4792 ("itstool" ,itstool)
bcb354ad 4793 ("pkg-config" ,pkg-config)
c1e419c4 4794 ("vala" ,vala)
bcb354ad 4795 ("xmllint" ,libxml2)))
b7a3cf11
SB
4796 (inputs
4797 `(("gtk+" ,gtk+)
f4eae76f 4798 ("libgnome-games-support" ,libgnome-games-support)
b7a3cf11
SB
4799 ("librsvg" ,librsvg)))
4800 (home-page "https://wiki.gnome.org/Apps/Klotski")
4801 (synopsis "Sliding block puzzles")
4802 (description
4803 "GNOME Klotski is a set of block sliding puzzles. The objective is to move
4804the patterned block to the area bordered by green markers. To do so, you will
4805need to slide other blocks out of the way. Complete each puzzle in as few moves
4806as possible!")
4807 (license license:gpl2+)))
8d4791bf
MW
4808
4809(define-public grilo
4810 (package
4811 (name "grilo")
a865e938 4812 (version "0.3.10")
8d4791bf
MW
4813 (source
4814 (origin
4815 (method url-fetch)
4816 (uri (string-append "mirror://gnome/sources/" name "/"
4817 (version-major+minor version) "/"
4818 name "-" version ".tar.xz"))
4819 (sha256
4820 (base32
a865e938 4821 "1s7ilyywf18q26aj5c4709kfizqywjlnacp4jzmj9v9i9kkv4i3y"))))
d48d4c98 4822 (build-system meson-build-system)
8d4791bf
MW
4823 (native-inputs
4824 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
4825 ("intltool" ,intltool)
4826 ("pkg-config" ,pkg-config)
d48d4c98
KK
4827 ("gobject-introspection" ,gobject-introspection)
4828 ("gtk-doc" ,gtk-doc)
4829 ("vala" ,vala)))
8d4791bf 4830 (inputs
6d7273a0
KK
4831 `(("cyrus-sasl" ,cyrus-sasl)
4832 ("glib" ,glib)
8d4791bf
MW
4833 ("gtk+" ,gtk+)
4834 ("libxml2" ,libxml2)
6d7273a0 4835 ("liboauth" ,liboauth)
8d4791bf
MW
4836 ("libsoup" ,libsoup)
4837 ("totem-pl-parser" ,totem-pl-parser)))
8d4791bf
MW
4838 (native-search-paths
4839 (list (search-path-specification
4840 (variable "GRL_PLUGIN_PATH")
4841 (files (list (string-append "lib/grilo-"
4842 (version-major+minor version)))))))
d48d4c98 4843 (home-page "https://wiki.gnome.org/action/show/Projects/Grilo")
8d4791bf
MW
4844 (synopsis "Framework for discovering and browsing media")
4845 (description
4846 "Grilo is a framework focused on making media discovery and browsing easy
4847for application developers.")
4848 (license license:lgpl2.1+)))
7b212526
MW
4849
4850(define-public grilo-plugins
4851 (package
4852 (name "grilo-plugins")
281f6b3a 4853 (version "0.3.10")
7b212526
MW
4854 (source
4855 (origin
4856 (method url-fetch)
4857 (uri (string-append "mirror://gnome/sources/" name "/"
4858 (version-major+minor version) "/"
4859 name "-" version ".tar.xz"))
4860 (sha256
4861 (base32
281f6b3a
RG
4862 "0jldaixc4kzycn5v8ixkjld1n0z3dp0l1p3vchgdwpvdvc7kcfw0"))))
4863 (build-system meson-build-system)
7b212526 4864 (native-inputs
281f6b3a
RG
4865 `(("gettext" ,gettext-minimal)
4866 ("glib:bin" ,glib "bin")
4867 ("gtk+:bin" ,gtk+ "bin")
7b212526
MW
4868 ("itstool" ,itstool)
4869 ("pkg-config" ,pkg-config)))
281f6b3a 4870 ;; TODO: ahavi, gstreamer
7b212526
MW
4871 (inputs
4872 `(("grilo" ,grilo)
281f6b3a
RG
4873 ;("gmime" ,gmime) ; unused
4874 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
7b212526 4875 ("gom" ,gom)
281f6b3a
RG
4876 ;("gssdp" ,gssdp) ; unused
4877 ;("gupnp" ,gupnp) ; unused
4878 ;("gupnp-av" ,gupnp-av) ; unused
7b212526
MW
4879 ("json-glib" ,json-glib)
4880 ("avahi" ,avahi)
281f6b3a
RG
4881 ("libgdata" ,libgdata)
4882 ("libmediaart" ,libmediaart)
4883 ;("librest" ,rest) ; unused
7b212526 4884 ("libsoup" ,libsoup)
281f6b3a
RG
4885 ("totam-pl-parser" ,totem-pl-parser)
4886 ("tracker" ,tracker))) ; unused because it's too old
7b212526 4887 (arguments
281f6b3a
RG
4888 `(#:glib-or-gtk? #t
4889 ;;Disable lua-factory as it needs missing dependencies
4890 #:configure-flags '("-Denable-lua-factory=no")))
f032d0be 4891 (home-page "https://live.gnome.org/Grilo")
7b212526
MW
4892 (synopsis "Plugins for the Grilo media discovery library")
4893 (description
4894 "Grilo is a framework focused on making media discovery and browsing easy
281f6b3a
RG
4895for application developers. This package provides plugins for common media
4896discovery protocols.")
7b212526 4897 (license license:lgpl2.1+)))
4e3fc547
MW
4898
4899(define-public totem
4900 (package
4901 (name "totem")
995ef5ea 4902 (version "3.32.1")
4e3fc547
MW
4903 (source
4904 (origin
4905 (method url-fetch)
4906 (uri (string-append "mirror://gnome/sources/" name "/"
4907 (version-major+minor version) "/"
4908 name "-" version ".tar.xz"))
4909 (sha256
4910 (base32
995ef5ea 4911 "0yra8apc7smpwf7d1k8crhrm8d4wix24ds6i9yxbch1v11jnhr3v"))))
7ad81b8b 4912 (build-system meson-build-system)
4e3fc547
MW
4913 (native-inputs
4914 `(("pkg-config" ,pkg-config)
4915 ("desktop-file-utils" ,desktop-file-utils)
4916 ("gobject-introspection" ,gobject-introspection)
7ad81b8b 4917 ("glib:bin" ,glib "bin") ;for 'glib-mkenums'
4e3fc547 4918 ("intltool" ,intltool)
bcb354ad 4919 ("itstool" ,itstool)
995ef5ea
KK
4920 ("xmllint" ,libxml2)
4921 ("python-pylint" ,python-pylint)
4922 ("xorg-server" ,xorg-server-for-tests)))
4e3fc547
MW
4923 (propagated-inputs
4924 `(("dconf" ,dconf)))
4925 (inputs
4926 `(("gtk+" ,gtk+)
4927 ("gdk-pixbuf" ,gdk-pixbuf)
4928 ("atk" ,atk)
4929 ("cairo" ,cairo)
4930 ("dbus-glib" ,dbus-glib)
4931 ("clutter" ,clutter)
4932 ("clutter-gtk" ,clutter-gtk)
4933 ("clutter-gst" ,clutter-gst)
6a6db57f 4934 ("xorgproto" ,xorgproto)
4e3fc547
MW
4935 ("libxxf86vm" ,libxxf86vm)
4936 ("libxtst" ,libxtst)
4937 ("libxrandr" ,libxrandr)
4938 ("libxml2" ,libxml2)
4939 ("libsoup" ,libsoup)
4940 ("libpeas" ,libpeas)
4941 ("librsvg" ,librsvg)
4942 ("lirc" ,lirc)
4943 ("gnome-desktop" ,gnome-desktop)
4944 ("gstreamer" ,gstreamer)
4945 ("gst-plugins-base" ,gst-plugins-base)
4946 ("gst-plugins-good" ,gst-plugins-good)
4947 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4948 ("adwaita-icon-theme" ,adwaita-icon-theme)
d7b63ba9 4949 ("python" ,python)
995ef5ea 4950 ("python-pygobject" ,python-pygobject)
4e3fc547
MW
4951 ("totem-pl-parser" ,totem-pl-parser)
4952 ("grilo" ,grilo)
4953 ("grilo-plugins" ,grilo-plugins)
4e3fc547
MW
4954 ("vala" ,vala)))
4955 (arguments
7ad81b8b
LC
4956 `(#:glib-or-gtk? #t
4957
4958 ;; Disable automatic GStreamer plugin installation via PackageKit and
ec5c24f9 4959 ;; all that.
7ad81b8b 4960 #:configure-flags '("-D" "enable-easy-codec-installation=no"
a388c951
LC
4961
4962 ;; Do not build .a files for the plugins, it's
4963 ;; completely useless. This saves 2 MiB.
7ad81b8b 4964 "--default-library" "shared")
ec5c24f9 4965 #:phases
4e3fc547 4966 (modify-phases %standard-phases
d51b19ad
EF
4967 (add-after 'unpack 'skip-gtk-update-icon-cache
4968 ;; Don't create 'icon-theme.cache'.
4969 (lambda _
4970 (substitute* "meson_post_install.py"
4971 (("gtk-update-icon-cache") "true"))
4972 #t))
6368eb39
DM
4973 (add-before
4974 'install 'disable-cache-generation
4975 (lambda _
4976 (setenv "DESTDIR" "/")
4977 #t))
995ef5ea
KK
4978 (add-before
4979 'check 'pre-check
4980 (lambda _
4981 ;; Tests require a running X server.
4982 (system "Xvfb :1 &")
4983 (setenv "DISPLAY" ":1")
4984 #t))
4e3fc547
MW
4985 (add-after
4986 'install 'wrap-totem
4987 (lambda* (#:key inputs outputs #:allow-other-keys)
4988 (let ((out (assoc-ref outputs "out"))
4989 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
4990 (grl-plugin-path (getenv "GRL_PLUGIN_PATH")))
4991 (wrap-program (string-append out "/bin/totem")
4992 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
39c853bd
AW
4993 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path)))
4994 (wrap-program (string-append out "/bin/totem-video-thumbnailer")
4995 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4e3fc547
MW
4996 #t)))))
4997 (home-page "https://wiki.gnome.org/Apps/Videos")
4998 (synopsis "Simple media player for GNOME based on GStreamer")
4999 (description "Totem is a simple yet featureful media player for GNOME
5000which can read a large number of file formats.")
5001 ;; GPL2+ with an exception clause for non-GPL compatible GStreamer plugins
5002 ;; to be used and distributed together with GStreamer and Totem. See
5003 ;; file://COPYING in the source distribution for details.
5004 (license license:gpl2+)))
f0afb0c8
DH
5005
5006(define-public rhythmbox
5007 (package
5008 (name "rhythmbox")
8190e1ed 5009 (version "3.4.3")
f0afb0c8
DH
5010 (source (origin
5011 (method url-fetch)
5012 (uri (string-append "mirror://gnome/sources/" name "/"
5013 (version-major+minor version) "/"
5014 name "-" version ".tar.xz"))
5015 (sha256
5016 (base32
8190e1ed 5017 "1yx3n7p9vmv23jsv98fxwq95n78awdxqm8idhyhxx2d6vk4w1hgx"))))
f0afb0c8
DH
5018 (build-system glib-or-gtk-build-system)
5019 (arguments
5020 `(#:configure-flags
5021 (list "--enable-lirc"
5022 "--enable-python"
5023 "--enable-vala"
5024 "--with-brasero"
5025 "--with-gudev"
5026 "--with-libsecret")
5027 #:phases
5028 (modify-phases %standard-phases
5029 (add-after
5030 'install 'wrap-rhythmbox
5031 (lambda* (#:key inputs outputs #:allow-other-keys)
5032 (let ((out (assoc-ref outputs "out"))
5033 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
5034 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
349cef58
TGR
5035 (grl-plugin-path (getenv "GRL_PLUGIN_PATH"))
5036 (python-path (getenv "PYTHONPATH")))
f0afb0c8
DH
5037 (wrap-program (string-append out "/bin/rhythmbox")
5038 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
5039 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
349cef58
TGR
5040 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path))
5041 `("PYTHONPATH" ":" prefix (,python-path))))
f0afb0c8
DH
5042 #t)))))
5043 (propagated-inputs
5044 `(("dconf" ,dconf)))
5045 (native-inputs
bcb354ad
SB
5046 `(("itstool" ,itstool)
5047 ("intltool" ,intltool)
f0afb0c8
DH
5048 ("glib" ,glib "bin")
5049 ("gobject-introspection" ,gobject-introspection)
5050 ("desktop-file-utils" ,desktop-file-utils)
bcb354ad
SB
5051 ("pkg-config" ,pkg-config)
5052 ("xmllint" ,libxml2)))
f0afb0c8
DH
5053 (inputs
5054 `(("json-glib" ,json-glib)
5055 ("tdb" ,tdb)
5056 ("gnome-desktop" ,gnome-desktop)
5057 ("python" ,python)
5058 ("python-pygobject" ,python2-pygobject)
5059 ("vala" ,vala)
5060 ("gmime" ,gmime)
f0afb0c8
DH
5061 ("adwaita-icon-theme" ,adwaita-icon-theme)
5062 ("grilo" ,grilo)
5063 ("grilo-plugins" ,grilo-plugins)
5064 ("gstreamer" ,gstreamer)
5065 ("gst-plugins-base" ,gst-plugins-base)
5066 ("gst-plugins-good" ,gst-plugins-good)
f0afb0c8 5067 ("totem-pl-parser" ,totem-pl-parser)
ea226291 5068 ("libgudev" ,libgudev)
f0afb0c8
DH
5069 ;;("libmtp" ,libmtp) FIXME: Not detected
5070 ("libsecret" ,libsecret)
5071 ("libsoup" ,libsoup)
5072 ("libnotify" ,libnotify)
5073 ("libpeas" ,libpeas)
5074 ("lirc" ,lirc)
5075 ;; TODO: clutter* only used by visualizer plugin, which also requires mx
5076 ;;("clutter" ,clutter)
5077 ;;("clutter-gtk" ,clutter-gtk)
5078 ;;("clutter-gst" ,clutter-gst)
5079 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5080 ("atk" ,atk)
5081 ("pango" ,pango)
5082 ("gtk+" ,gtk+)
5083 ;; TODO:
5084 ;; * libgpod
5085 ;; * mx
f0afb0c8
DH
5086 ("brasero" ,brasero)))
5087 (home-page "https://wiki.gnome.org/Apps/Rhythmbox")
5088 (synopsis "Music player for GNOME")
5089 (description "Rhythmbox is a music playing application for GNOME. It
5090supports playlists, song ratings, and any codecs installed through gstreamer.")
5091 (license license:gpl2+)))
f70d8383
DH
5092
5093(define-public eog
5094 (package
5095 (name "eog")
b0f24a82 5096 (version "3.32.2")
f70d8383
DH
5097 (source (origin
5098 (method url-fetch)
5099 (uri (string-append "mirror://gnome/sources/" name "/"
5100 (version-major+minor version) "/"
5101 name "-" version ".tar.xz"))
5102 (sha256
5103 (base32
b0f24a82 5104 "1bcxpqgzlk2cy4wfb3b5h66mhpj2fhrk1rrb5qqcv5xrr62ik5xy"))))
61fb581f 5105 (build-system meson-build-system)
f70d8383 5106 (arguments
34c44a34
RW
5107 `(#:configure-flags
5108 ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
5109 (list (string-append "-Dc_link_args=-Wl,-rpath="
5110 (assoc-ref %outputs "out") "/lib/eog"))
5111 #:phases
f70d8383 5112 (modify-phases %standard-phases
7a034665
EF
5113 (add-after 'unpack 'skip-gtk-update-icon-cache
5114 ;; Don't create 'icon-theme.cache'.
5115 (lambda _
5116 (substitute* "meson_post_install.py"
5117 (("gtk-update-icon-cache") "true"))
5118 #t))
61fb581f
RW
5119 (add-after 'install 'wrap-eog
5120 (lambda* (#:key outputs #:allow-other-keys)
5121 (let ((out (assoc-ref outputs "out"))
5122 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
5123 (wrap-program (string-append out "/bin/eog")
5124 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
5125 #t)))))
f70d8383
DH
5126 (propagated-inputs
5127 `(("dconf" ,dconf)))
5128 (native-inputs
5129 `(("intltool" ,intltool)
b3546174 5130 ("itstool" ,itstool)
f70d8383
DH
5131 ("glib" ,glib "bin")
5132 ("gobject-introspection" ,gobject-introspection)
bcb354ad
SB
5133 ("pkg-config" ,pkg-config)
5134 ("xmllint" ,libxml2)))
f70d8383
DH
5135 (inputs
5136 `(("gnome-desktop" ,gnome-desktop)
5137 ("shared-mime-info" ,shared-mime-info)
5138 ("adwaita-icon-theme" ,adwaita-icon-theme)
5139 ("exempi" ,exempi)
5140 ("lcms" ,lcms)
5141 ("libexif" ,libexif)
5142 ("libpeas" ,libpeas)
5143 ("libjpeg" ,libjpeg)
5144 ("librsvg" ,librsvg)
5145 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5146 ("gtk+" ,gtk+)))
5147 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
5148 (synopsis "GNOME image viewer")
5149 (description "Eye of GNOME is the GNOME image viewer. It
5150supports image conversion, rotation, and slideshows.")
5151 (license license:gpl2+)))
41af5e7b 5152
0c3f8cb8
LC
5153(define-public eog-plugins
5154 ;; Note: EOG looks for its plugins (via libpeas) in ~/.local as well as
5155 ;; $DATA/lib/eog/plugins, where DATA is one of the entries in
5156 ;; $XDG_DATA_DIRS. Thus, for EOG to find these, you have to have
5157 ;; 'XDG_DATA_DIRS' appropriately set.
5158 (package
5159 (name "eog-plugins")
54b74cc6 5160 (version "3.26.4")
0c3f8cb8
LC
5161 (source (origin
5162 (method url-fetch)
f3b88ed2 5163 (uri (string-append "mirror://gnome/sources/eog-plugins/"
0c3f8cb8 5164 (version-major+minor version) "/"
f3b88ed2 5165 "eog-plugins-" version ".tar.xz"))
0c3f8cb8
LC
5166 (sha256
5167 (base32
54b74cc6 5168 "0pd7fqa4ciy5844k5s1c6rlsqkk8pxd8cchxjcjhxlsngm9lynnx"))))
0c3f8cb8
LC
5169 (build-system gnu-build-system)
5170 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome/Plugins")
5171 (synopsis "Extensions for the Eye of GNOME image viewer")
5172 (native-inputs
5173 `(("pkg-config" ,pkg-config)
5174 ("gettext" ,gnu-gettext)))
5175 (inputs
5176 `(("eog" ,eog)
5177 ("glib" ,glib)
5178 ("gtk+" ,gtk+)
5179 ("libpeas" ,libpeas)
5180 ("libexif" ,libexif)
5181 ("libchamplain" ,libchamplain)))
5182 (description
5183 "This package provides plugins for the Eye of GNOME (EOG) image viewer,
5184notably:
5185
5186@itemize
5187@item @dfn{EXIF Display}, which displays camera (EXIF) information;
5188@item @dfn{Map}, which displays a map of where the picture was taken on the
5189side panel;
5190@item @dfn{Slideshow Shuffle}, to shuffle images in slideshow mode.
5191@end itemize\n")
5192
5193 ;; XXX: eog-postasa-plugin-resources.c (which we don't build) contains a
5194 ;; long suspicious byte stream that goes to a
5195 ;; ".gresource.eog_postasa_plugin" ELF section.
5196 (license license:gpl2+)))
5197
41af5e7b
SB
5198(define-public libgudev
5199 (package
5200 (name "libgudev")
b78f5118 5201 (version "232")
41af5e7b
SB
5202 (source (origin
5203 (method url-fetch)
5204 (uri (string-append "mirror://gnome/sources/" name "/"
5205 version "/" name "-" version ".tar.xz"))
5206 (sha256
5207 (base32
b78f5118 5208 "0q3qki451zzgdjazlgshsfzbbm0in40lyx7dyrag7kbkqnwv4k7f"))))
41af5e7b 5209 (build-system gnu-build-system)
b78f5118
RW
5210 (arguments
5211 '(#:configure-flags
5212 ;; umockdev depends on libgudev.
5213 (list "--disable-umockdev")))
41af5e7b
SB
5214 (native-inputs
5215 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
5216 ("gobject-introspection" ,gobject-introspection)
5217 ("pkg-config" ,pkg-config)))
5218 (propagated-inputs
5219 `(("glib" ,glib))) ; required by gudev-1.0.pc
5220 (inputs
5221 `(("udev" ,eudev)))
5222 (home-page "https://wiki.gnome.org/Projects/libgudev")
5223 (synopsis "GObject bindings for libudev")
5224 (description
5225 "This library provides GObject bindings for libudev. It was originally
5226part of udev-extras, then udev, then systemd. It's now a project on its own.")
5227 (license license:lgpl2.1+)))
3dc8828f
SB
5228
5229(define-public gvfs
5230 (package
5231 (name "gvfs")
12fe4846 5232 (version "1.40.1")
3dc8828f
SB
5233 (source (origin
5234 (method url-fetch)
1d68eb32 5235 (uri (string-append "mirror://gnome/sources/gvfs/"
3dc8828f 5236 (version-major+minor version) "/"
1d68eb32 5237 "gvfs-" version ".tar.xz"))
3dc8828f
SB
5238 (sha256
5239 (base32
12fe4846 5240 "1cfnzamr4mvgpf6yhm28lh9cafy9z6842s8jpbqnfizfxybg8ylj"))))
e762d943 5241 (build-system meson-build-system)
3dc8828f 5242 (arguments
e762d943
RW
5243 '(#:glib-or-gtk? #t
5244 #:configure-flags
5245 (list "-Dsystemduserunitdir=no"
5246 "-Dtmpfilesdir=no"
5247 ;; Otherwise, the RUNPATH will lack the final path component.
5248 (string-append "-Dc_link_args=-Wl,-rpath="
5249 (assoc-ref %outputs "out") "/lib/gvfs"))))
3dc8828f
SB
5250 (native-inputs
5251 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
0ab9f949
RW
5252 ("gettext" ,gettext-minimal)
5253 ("gtk-doc" ,gtk-doc)
3dc8828f
SB
5254 ("pkg-config" ,pkg-config)
5255 ("xsltproc" ,libxslt)))
5256 (inputs
5257 `(("avahi" ,avahi)
5258 ("docbook-xml" ,docbook-xml-4.2)
5259 ("docbook-xsl" ,docbook-xsl)
5260 ("dbus" ,dbus)
e762d943 5261 ("elogind" ,elogind)
3dc8828f 5262 ("fuse" ,fuse)
24a78aa6 5263 ("gcr" ,gcr)
3dc8828f 5264 ("glib" ,glib)
e762d943 5265 ("gnome-online-accounts" ,gnome-online-accounts)
3dc8828f
SB
5266 ("libarchive" ,libarchive)
5267 ("libbluray" ,libbluray)
8852ca24 5268 ("libcap" ,libcap)
3dc8828f
SB
5269 ("libcdio-paranoia" ,libcdio-paranoia)
5270 ("libgcrypt" ,libgcrypt)
e762d943 5271 ("libgdata" ,libgdata)
3dc8828f
SB
5272 ("libgphoto2" ,libgphoto2)
5273 ("libgudev" ,libgudev)
0ab9f949 5274 ("libimobiledevice" ,libimobiledevice)
3dc8828f 5275 ("libmtp" ,libmtp)
e762d943 5276 ("libnfs" ,libnfs)
3dc8828f
SB
5277 ("libsecret" ,libsecret)
5278 ("libsmbclient" ,samba)
5279 ("libsoup" ,libsoup)
5280 ("libxml2" ,libxml2)
e762d943 5281 ("openssh" ,openssh)
8852ca24 5282 ("polkit" ,polkit)
3dc8828f
SB
5283 ("udisks" ,udisks)))
5284 (home-page "https://wiki.gnome.org/gvfs/")
8f65585b 5285 (synopsis "Userspace virtual file system for GIO")
3dc8828f 5286 (description
8f65585b 5287 "GVFS is a userspace virtual file system designed to work with the I/O
3dc8828f
SB
5288abstraction of GIO. It contains a GIO module that seamlessly adds GVFS support
5289to all applications using the GIO API. It also supports exposing the GVFS
5290mounts to non-GIO applications using FUSE.
5291
5292GVFS comes with a set of backends, including trash support, SFTP, SMB, HTTP,
5293DAV, and others.")
5294 (license license:lgpl2.0+)))
7c88b6bd
AW
5295
5296(define-public gusb
5297 (package
5298 (name "gusb")
536b3274 5299 (version "0.3.0")
7c88b6bd 5300 (source (origin
bbfb36f9
EF
5301 (method git-fetch)
5302 (uri (git-reference
5303 (url "https://github.com/hughsie/libgusb.git")
5304 (commit version)))
5305 (file-name (git-file-name name version))
7c88b6bd
AW
5306 (sha256
5307 (base32
bbfb36f9 5308 "002pg0p4qzzk5dkyiynm483ir26zxrn4k71c7f6j85mfsdzbgli7"))))
536b3274 5309 (build-system meson-build-system)
7c88b6bd 5310 (native-inputs
536b3274 5311 `(("gobject-introspection" ,gobject-introspection)
7c88b6bd
AW
5312 ("pkg-config" ,pkg-config)
5313 ("vala" ,vala)
7c88b6bd
AW
5314 ("gtk-doc" ,gtk-doc)))
5315 (propagated-inputs
5316 ;; Both of these are required by gusb.pc.
5317 `(("glib" ,glib)
5318 ("libusb" ,libusb)))
5319 (arguments
536b3274 5320 `(#:tests? #f)) ;libusb fails to initialize. Wonder what that is.
8f1640ed 5321 (home-page "https://github.com/hughsie/libgusb")
a124bbd2 5322 (synopsis "GLib binding for libusb1")
7c88b6bd
AW
5323 (description
5324 "GUsb is a GObject wrapper for libusb1 that makes it easy to do
5325asynchronous control, bulk and interrupt transfers with proper cancellation
5326and integration into a mainloop. This makes it easy to integrate low level
5327USB transfers with your high-level application or system daemon.")
5328 (license license:lgpl2.1+)))
0abe1d86
AW
5329
5330(define-public simple-scan
5331 (package
5332 (name "simple-scan")
4afb7dd9 5333 (version "3.34.2")
d9f6d587
TGR
5334 (source
5335 (origin
5336 (method url-fetch)
5337 (uri (string-append "mirror://gnome/sources/simple-scan/"
5338 (version-major+minor version) "/"
5339 "simple-scan-" version ".tar.xz"))
5340 (sha256
4afb7dd9 5341 (base32 "1fk3g4f9slckqfwm576jrjq1d1qihw0dlgzdf00ns7qbhzb0kxsp"))))
d9f6d587
TGR
5342 (build-system meson-build-system)
5343 ;; TODO: Fix icons in home screen, About dialogue, and scan menu.
5344 (arguments
5345 '(#:glib-or-gtk? #t))
0abe1d86
AW
5346 (inputs
5347 `(("gtk" ,gtk+)
5348 ("zlib" ,zlib)
5349 ("cairo" ,cairo)
c501f592 5350 ("colord" ,colord)
0abe1d86
AW
5351 ("gdk-pixbuf" ,gdk-pixbuf)
5352 ("gusb" ,gusb)
4c928743 5353 ("libsane" ,sane-backends)))
0abe1d86 5354 (native-inputs
b94a6ca0 5355 `(("gettext" ,gettext-minimal)
0abe1d86 5356 ("itstool" ,itstool)
c501f592 5357 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
0abe1d86 5358 ("pkg-config" ,pkg-config)
bcb354ad
SB
5359 ("vala" ,vala)
5360 ("xmllint" ,libxml2)))
dff0eedb 5361 (home-page "https://gitlab.gnome.org/GNOME/simple-scan")
0abe1d86 5362 (synopsis "Document and image scanner")
d9f6d587
TGR
5363 (description
5364 "Document Scanner is an easy-to-use application that lets you connect your
5365scanner and quickly capture images and documents in an appropriate format. It
5366supports any scanner for which a suitable SANE driver is available, which is
5367almost all of them.")
0abe1d86 5368 (license license:gpl3+)))
7549f984 5369
ab466d79
RW
5370(define-public eolie
5371 (package
5372 (name "eolie")
fa8ef3ed 5373 (version "0.9.63")
ab466d79
RW
5374 (source (origin
5375 (method url-fetch)
00014781 5376 (uri (string-append "https://gitlab.gnome.org/World/eolie/"
fa8ef3ed 5377 "uploads/d42b466752729a0d3fa828a721e25043/"
00014781 5378 "eolie-" version ".tar.xz"))
ab466d79
RW
5379 (sha256
5380 (base32
fa8ef3ed 5381 "11pp8g0w22h1q0bbj9517l5838gcymvvp8fp9kh6h2dmgir2ssih"))))
00014781 5382 (build-system meson-build-system)
ab466d79 5383 (arguments
00014781
RW
5384 `(#:glib-or-gtk? #t
5385 #:phases
ab466d79 5386 (modify-phases %standard-phases
f0c68100
EF
5387 (add-after 'unpack 'skip-gtk-update-icon-cache
5388 ;; Don't create 'icon-theme.cache'.
5389 (lambda _
5390 (substitute* "meson_post_install.py"
5391 (("gtk-update-icon-cache") "true"))
5392 #t))
ab466d79
RW
5393 (add-after 'wrap 'wrap-more
5394 (lambda* (#:key inputs outputs #:allow-other-keys)
5395 (let* ((out (assoc-ref outputs "out"))
5396 ;; These libraries must be on LD_LIBRARY_PATH.
5397 (libs '("gtkspell3" "webkitgtk" "libsoup" "libsecret"
5398 "atk" "gtk+" "gsettings-desktop-schemas"
5399 "gobject-introspection"))
5400 (path (string-join
5401 (map (lambda (lib)
5402 (string-append (assoc-ref inputs lib) "/lib"))
5403 libs)
5404 ":")))
5405 (wrap-program (string-append out "/bin/eolie")
5406 `("LD_LIBRARY_PATH" ":" prefix (,path))
5407 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
5408 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
5409 #t)))))
5410 (native-inputs
f85ca6ed 5411 `(("intltool" ,intltool)
ab466d79 5412 ("itstool" ,itstool)
d95f1041 5413 ("pkg-config" ,pkg-config)
d95f1041 5414 ("python" ,python)
f0c68100 5415 ("glib:bin" ,glib "bin")))
ab466d79
RW
5416 (inputs
5417 `(("gobject-introspection" ,gobject-introspection)
5418 ("glib-networking" ,glib-networking)
5419 ("cairo" ,cairo)
5420 ("gtk+" ,gtk+)
5421 ("atk" ,atk) ; propagated by gtk+, but we need it in LD_LIBRARY_PATH
5422 ("python" ,python-wrapper)
d72f76df 5423 ("python-dateutil" ,python-dateutil)
00014781 5424 ("python-pyfxa" ,python-pyfxa)
ab466d79
RW
5425 ("python-pygobject" ,python-pygobject)
5426 ("python-pycairo" ,python-pycairo)
00014781 5427 ("python-pycrypto" ,python-pycrypto)
ab466d79
RW
5428 ("libsecret" ,libsecret)
5429 ("gtkspell3" ,gtkspell3)
5430 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
f85ca6ed 5431 ("webkitgtk" ,webkitgtk)))
166b2c97 5432 (home-page "https://wiki.gnome.org/Apps/Eolie")
ab466d79
RW
5433 (synopsis "Web browser for GNOME")
5434 (description
5435 "Eolie is a new web browser for GNOME. It features Firefox sync support,
5436a secret password store, an adblocker, and a modern UI.")
5437 (license license:gpl3+)))
5438
7549f984
SB
5439(define-public epiphany
5440 (package
5441 (name "epiphany")
60680365 5442 (version "3.32.5")
7549f984
SB
5443 (source (origin
5444 (method url-fetch)
dd3266ec 5445 (uri (string-append "mirror://gnome/sources/epiphany/"
7549f984 5446 (version-major+minor version) "/"
dd3266ec 5447 "epiphany-" version ".tar.xz"))
7549f984
SB
5448 (sha256
5449 (base32
60680365 5450 "1hj4yy53fwh96h17cqiw3gxc070vmc7yqwc7phvhnpyinkp9g5my"))))
fc5c5b92
R
5451
5452 (build-system meson-build-system)
7549f984
SB
5453 (arguments
5454 ;; FIXME: tests run under Xvfb, but fail with:
5455 ;; /src/bookmarks/ephy-bookmarks/create:
5456 ;; ** (test-ephy-bookmarks:19591): WARNING **: Unable to start Zeroconf
5457 ;; subsystem
5458 ;; FAIL
6f48d9db 5459 '(#:tests? #f
e19f9c24 5460 #:glib-or-gtk? #t
bb7ff88f
EF
5461 #:phases
5462 (modify-phases %standard-phases
5463 (add-after 'unpack 'skip-gtk-update-icon-cache
5464 ;; Don't create 'icon-theme.cache'.
5465 (lambda _
5466 (substitute* "post_install.py"
5467 (("gtk-update-icon-cache") "true"))
5468 #t)))
e19f9c24
LF
5469 #:configure-flags
5470 ;; Otherwise, the RUNPATH will lack the final 'epiphany' path component.
5471 (list (string-append "-Dc_link_args=-Wl,-rpath="
5472 (assoc-ref %outputs "out") "/lib/epiphany"))))
80a747c4
SB
5473 (propagated-inputs
5474 `(("dconf" ,dconf)))
7549f984 5475 (native-inputs
fc5c5b92
R
5476 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
5477 ("glib:bin" ,glib "bin") ; for glib-mkenums
fc5c5b92 5478 ("intltool" ,intltool)
7549f984 5479 ("itstool" ,itstool)
bcb354ad
SB
5480 ("pkg-config" ,pkg-config)
5481 ("xmllint" ,libxml2)))
7549f984
SB
5482 (inputs
5483 `(("avahi" ,avahi)
5484 ("gcr" ,gcr)
fc5c5b92 5485 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg) ; for loading SVG files
7549f984
SB
5486 ("glib-networking" ,glib-networking)
5487 ("gnome-desktop" ,gnome-desktop)
5488 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
eb6f315b 5489 ("json-glib" ,json-glib)
7549f984 5490 ("iso-codes" ,iso-codes)
8748e29c 5491 ("libdazzle" ,libdazzle)
7549f984
SB
5492 ("libnotify" ,libnotify)
5493 ("libsecret" ,libsecret)
7549f984 5494 ("libxslt" ,libxslt)
fc5c5b92 5495 ("nettle" ,nettle) ; for hogweed
7549f984 5496 ("sqlite" ,sqlite)
f85ca6ed 5497 ("webkitgtk" ,webkitgtk)))
7549f984
SB
5498 (home-page "https://wiki.gnome.org/Apps/Web")
5499 (synopsis "GNOME web browser")
5500 (description
5501 "Epiphany is a GNOME web browser targeted at non-technical users. Its
5502principles are simplicity and standards compliance.")
5503 (license license:gpl2+)))
a3856b2c
SB
5504
5505(define-public d-feet
5506 (package
5507 (name "d-feet")
458e9221 5508 (version "0.3.14")
a3856b2c
SB
5509 (source (origin
5510 (method url-fetch)
5511 (uri (string-append "mirror://gnome/sources/" name "/"
5512 (version-major+minor version) "/"
5513 name "-" version ".tar.xz"))
5514 (sha256
5515 (base32
458e9221 5516 "1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f"))))
a3856b2c
SB
5517 (build-system glib-or-gtk-build-system)
5518 (arguments
5519 '(#:out-of-source? #f ; tests need to run in the source directory.
5520 #:phases
5521 (modify-phases %standard-phases
5522 (add-before
5523 'check 'pre-check
86aff791 5524 (lambda _
a3856b2c
SB
5525 ;; The test suite requires a running X server.
5526 (system "Xvfb :1 &")
5527 (setenv "DISPLAY" ":1")
5528 ;; Don't fail on missing '/etc/machine-id'.
5529 (setenv "DBUS_FATAL_WARNINGS" "0")
5530 ;; tests.py and window.py don't meet E402:
5531 ;; E402 module level import not at top of file
5532 (substitute* "src/tests/Makefile"
86aff791
MW
5533 (("--ignore=E123") "--ignore=E123,E402"))
5534 #t))
a3856b2c
SB
5535 (add-after
5536 'install 'wrap-program
5537 (lambda* (#:key outputs #:allow-other-keys)
5538 (let ((prog (string-append (assoc-ref outputs "out")
5539 "/bin/d-feet")))
5540 (wrap-program prog
5541 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
86aff791
MW
5542 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
5543 #t))))))
a3856b2c
SB
5544 (native-inputs
5545 `(("intltool" ,intltool)
5546 ("itstool" ,itstool)
5547 ("pkg-config" ,pkg-config)
5548 ("python-pep8" ,python-pep8)
5549 ("xmllint" ,libxml2)
ff337525 5550 ("xorg-server" ,xorg-server-for-tests)))
a3856b2c
SB
5551 (inputs
5552 `(("gobject-introspection" ,gobject-introspection)
5553 ("gtk+" ,gtk+)
5554 ("python" ,python-wrapper)
458e9221 5555 ("hicolor-icon-theme" ,hicolor-icon-theme)
a3856b2c
SB
5556 ("python-pygobject" ,python-pygobject)))
5557 (home-page "https://wiki.gnome.org/Apps/DFeet")
5558 (synopsis "D-Bus debugger")
5559 (description
5560 "D-Feet is a D-Bus debugger, which can be used to inspect D-Bus interfaces
5561of running programs and invoke methods on those interfaces.")
5562 (license license:gpl2+)))
c3b97bd9
SB
5563
5564(define-public yelp-xsl
5565 (package
5566 (name "yelp-xsl")
b3640e79 5567 (version "3.32.1")
c3b97bd9
SB
5568 (source (origin
5569 (method url-fetch)
5570 (uri (string-append "mirror://gnome/sources/" name "/"
5571 (version-major+minor version) "/"
5572 name "-" version ".tar.xz"))
5573 (sha256
5574 (base32
b3640e79 5575 "013z2ixx9kfrs6hq79qpil093xfbc12y1p0mvsh6lpala30iphya"))))
c3b97bd9
SB
5576 (build-system gnu-build-system)
5577 (native-inputs
5578 `(("intltool" ,intltool)
5579 ("itstool" ,itstool)
5580 ("xmllint" ,libxml2)))
5581 (home-page "https://wiki.gnome.org/Apps/Yelp")
5582 (synopsis "XSL stylesheets for Yelp")
5583 (description
5584 "Yelp-xsl contains XSL stylesheets that are used by the yelp help browser
5585to format Docbook and Mallard documents.")
5586 (license license:gpl2+)))
de3d612a
SB
5587
5588(define-public yelp
5589 (package
5590 (name "yelp")
1f1b6d60 5591 (version "3.32.2")
de3d612a
SB
5592 (source (origin
5593 (method url-fetch)
5594 (uri (string-append "mirror://gnome/sources/" name "/"
5595 (version-major+minor version) "/"
5596 name "-" version ".tar.xz"))
5597 (sha256
5598 (base32
1f1b6d60 5599 "0yrl96icmmrxvg7sxl519gzg9qb368cmzgrr9ddh181ignkxzx7f"))))
de3d612a
SB
5600 (build-system glib-or-gtk-build-system)
5601 (native-inputs
5602 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
5603 ("intltool" ,intltool)
5604 ("itstool" ,itstool)
5605 ("pkg-config" ,pkg-config)))
5606 (propagated-inputs
5607 `(("dconf" ,dconf)))
5608 (inputs
ad1b7d8b
SB
5609 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5610 ("libxslt" ,libxslt)
de3d612a 5611 ("sqlite" ,sqlite)
4c28ca1d
SB
5612 ("webkitgtk" ,webkitgtk)
5613 ("yelp-xsl" ,yelp-xsl)))
de3d612a
SB
5614 (home-page "https://wiki.gnome.org/Apps/Yelp")
5615 (synopsis "GNOME help browser")
5616 (description
5617 "Yelp is the help viewer in Gnome. It natively views Mallard, DocBook,
5618man, info, and HTML documents. It can locate documents according to the
5619freedesktop.org help system specification.")
5620 (license license:gpl2+)))
122d0d10
SB
5621
5622(define-public yelp-tools
5623 (package
5624 (name "yelp-tools")
2089bca5 5625 (version "3.28.0")
122d0d10
SB
5626 (source (origin
5627 (method url-fetch)
5628 (uri (string-append "mirror://gnome/sources/" name "/"
5629 (version-major+minor version) "/"
5630 name "-" version ".tar.xz"))
5631 (sha256
5632 (base32
2089bca5 5633 "1b61dmlb1sd50fgq6zgnkcpx2s1py33q0x9cx67fzpsr4gmgxnw2"))))
122d0d10
SB
5634 (build-system gnu-build-system)
5635 (native-inputs
5636 `(("pkg-config" ,pkg-config)))
5637 (propagated-inputs
5638 ;; Needed by `yelp-build', `yelp-check' or 'yelp.m4'.
5639 `(("itstool" ,itstool)
5640 ("xmllint" ,libxml2)
5641 ("xsltproc" ,libxslt)))
5642 (inputs
5643 `(("yelp-xsl" ,yelp-xsl)))
5644 (home-page "https://wiki.gnome.org/Apps/Yelp/Tools")
5645 (synopsis "Yelp documentation tools")
5646 (description
5647 "Yelp-tools is a collection of scripts and build utilities to help create,
5648manage, and publish documentation for Yelp and the web. Most of the heavy
5649lifting is done by packages like yelp-xsl and itstool. This package just
5650wraps things up in a developer-friendly way.")
5651 (license license:gpl2+)))
af8f9f23 5652
4ed041d9
MB
5653(define-public yelp-tools/fixed
5654 ;; This variant fixes a python-libxml2 crash when processing UTF-8
5655 ;; sequences: <https://bugs.gnu.org/37468>. TODO: Remove this in
5656 ;; the next rebuild cycle.
5657 (hidden-package
5658 (package/inherit
5659 yelp-tools
5660 (propagated-inputs
5661 `(("itstool" ,itstool/fixed)
5662 ,@(alist-delete "itstool" (package-propagated-inputs yelp-tools)))))))
5663
af8f9f23
RW
5664(define-public libgee
5665 (package
5666 (name "libgee")
4c2c5ae6 5667 (version "0.20.2")
af8f9f23
RW
5668 (source (origin
5669 (method url-fetch)
84a1b007 5670 (uri (string-append "mirror://gnome/sources/libgee/"
af8f9f23 5671 (version-major+minor version) "/"
84a1b007 5672 "libgee-" version ".tar.xz"))
af8f9f23
RW
5673 (sha256
5674 (base32
4c2c5ae6 5675 "0g1mhl7nidg82v4cikkk8dakzc18hg7wv0dsf2pbyijzfm5mq0wy"))))
af8f9f23
RW
5676 (build-system gnu-build-system)
5677 (arguments
5678 `(#:phases
5679 (modify-phases %standard-phases
5680 (add-after 'unpack 'fix-introspection-install-dir
5681 (lambda* (#:key outputs #:allow-other-keys)
5682 (let ((out (assoc-ref outputs "out")))
5683 (substitute* "gee/Makefile.in"
5684 (("@INTROSPECTION_GIRDIR@")
5685 (string-append out "/share/gir-1.0/"))
5686 (("@INTROSPECTION_TYPELIBDIR@")
5687 (string-append out "/lib/girepository-1.0/")))))))))
5688 (native-inputs
5689 `(("glib" ,glib "bin")
5690 ("pkg-config" ,pkg-config)))
5691 (inputs
5692 `(("glib" ,glib)
5693 ("gobject-introspection" ,gobject-introspection)))
5694 (home-page "https://wiki.gnome.org/Projects/Libgee")
5695 (synopsis "GObject collection library")
5696 (description
5697 "Libgee is a utility library providing GObject-based interfaces and
5698classes for commonly used data structures.")
5699 (license license:lgpl2.1+)))
b0f9c4b8
RW
5700
5701(define-public gexiv2
5702 (package
5703 (name "gexiv2")
b1a8b408 5704 (version "0.12.0")
b0f9c4b8
RW
5705 (source (origin
5706 (method url-fetch)
5707 (uri (string-append "mirror://gnome/sources/" name "/"
5708 (version-major+minor version) "/"
5709 name "-" version ".tar.xz"))
5710 (sha256
5711 (base32
b1a8b408 5712 "0slj5yj8c90l9pp5i3z74x5r3r4da0xfmbzkfq5k0dkg72q3kxaq"))))
51c482e4 5713 (build-system meson-build-system)
b0f9c4b8 5714 (native-inputs
b1a8b408
KK
5715 `(("gcr" ,gcr)
5716 ("glib" ,glib "bin")
5717 ("pkg-config" ,pkg-config)
5718 ("vala" ,vala)))
b0f9c4b8
RW
5719 (propagated-inputs
5720 ;; Listed in "Requires" section of gexiv2.pc
5721 `(("exiv2" ,exiv2)))
5722 (inputs
5723 `(("glib" ,glib)
5724 ("gobject-introspection" ,gobject-introspection)))
5725 (home-page "https://wiki.gnome.org/Projects/gexiv2")
5726 (synopsis "GObject wrapper around the Exiv2 photo metadata library")
5727 (description
5728 "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library. It
5729allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
5730metadata in photo and video files of various formats.")
5731 (license license:gpl2+)))
fed5a689
RW
5732
5733(define-public shotwell
5734 (package
5735 (name "shotwell")
a1c6fb52 5736 (version "0.30.7")
fed5a689
RW
5737 (source (origin
5738 (method url-fetch)
5497d682 5739 (uri (string-append "mirror://gnome/sources/shotwell/"
fed5a689 5740 (version-major+minor version) "/"
5497d682 5741 "shotwell-" version ".tar.xz"))
fed5a689
RW
5742 (sha256
5743 (base32
a1c6fb52 5744 "1m9i8r4gyd2hzlxjjwfyck4kz7gdg2vz2k6l6d0ga9hdfq2l4p9l"))))
3b79afa6
KK
5745 (build-system meson-build-system)
5746 (arguments
5a0beca3
EF
5747 '(#:glib-or-gtk? #t
5748 #:phases
5749 (modify-phases %standard-phases
5750 (add-after 'unpack 'skip-gtk-update-icon-cache
5751 (lambda _
5752 (substitute* "build-aux/meson/postinstall.py"
5753 (("gtk-update-icon-cache") (which "true"))
5754 (("update-desktop-database") (which "true")))
5755 #t)))))
735b8db6
TGR
5756 (propagated-inputs
5757 `(("dconf" ,dconf)))
fed5a689 5758 (native-inputs
5a0beca3
EF
5759 `(("gettext" ,gettext-minimal)
5760 ("glib:bin" ,glib "bin")
735b8db6 5761 ("itstool" ,itstool)
3b79afa6 5762 ("pkg-config" ,pkg-config)
735b8db6 5763 ("vala" ,vala)))
fed5a689 5764 (inputs
5a0beca3
EF
5765 `(("gcr" ,gcr)
5766 ("gexiv2" ,gexiv2)
fed5a689 5767 ("gst-plugins-base" ,gst-plugins-base)
5a0beca3
EF
5768 ("gstreamer" ,gstreamer)
5769 ("json-glib" ,json-glib)
dfb0323d 5770 ("libgdata" ,libgdata)
fed5a689 5771 ("libgee" ,libgee)
5a0beca3
EF
5772 ("libgphoto2" ,libgphoto2)
5773 ("libgudev" ,libgudev)
fed5a689 5774 ("libraw" ,libraw)
fed5a689
RW
5775 ("libsoup" ,libsoup)
5776 ("libxml2" ,libxml2)
5a0beca3
EF
5777 ("sqlite" ,sqlite)
5778 ("webkitgtk" ,webkitgtk)))
fed5a689
RW
5779 (home-page "https://wiki.gnome.org/Apps/Shotwell")
5780 (synopsis "Photo manager for GNOME 3")
5781 (description
5782 "Shotwell is a digital photo manager designed for the GNOME desktop
5783environment. It allows you to import photos from disk or camera, organize
5784them by keywords and events, view them in full-window or fullscreen mode, and
5785share them with others via social networking and more.")
5786 (license license:lgpl2.1+)))
293ff8b2
DT
5787
5788(define-public file-roller
5789 (package
5790 (name "file-roller")
dcae4270 5791 (version "3.32.3")
293ff8b2
DT
5792 (source (origin
5793 (method url-fetch)
f89a27c6 5794 (uri (string-append "mirror://gnome/sources/file-roller/"
293ff8b2 5795 (version-major+minor version) "/"
f89a27c6 5796 "file-roller-" version ".tar.xz"))
293ff8b2
DT
5797 (sha256
5798 (base32
dcae4270 5799 "0ap2hxvjljh4p6wsd9ikh2my3vsxp9r2nvjxxj3v87nwfyw1y4dy"))))
0a500745 5800 (build-system meson-build-system)
293ff8b2 5801 (native-inputs
0a500745
RW
5802 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
5803 ("intltool" ,intltool)
4c96e5d1 5804 ("itstool" ,itstool)
0a500745
RW
5805 ("pkg-config" ,pkg-config)
5806 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
5807 ("glib:bin" ,glib "bin")))
293ff8b2
DT
5808 ;; TODO: Add libnautilus.
5809 (inputs
5810 `(("gtk+" ,gtk+)
5811 ("gdk-pixbuf" ,gdk-pixbuf)
5812 ("json-glib" ,json-glib)
5813 ("libarchive" ,libarchive)
5814 ("libnotify" ,libnotify)
4c96e5d1 5815 ("nettle" ,nettle)
293ff8b2
DT
5816 ("libxml2" ,libxml2)))
5817 (synopsis "Graphical archive manager for GNOME")
5818 (description "File Roller is an archive manager for the GNOME desktop
5819environment that allows users to view, unpack, and create compressed archives
5820such as gzip tarballs.")
5821 (home-page "http://fileroller.sourceforge.net/")
5822 (license license:gpl2+)))
7ce49365
SB
5823
5824(define-public gnome-session
5825 (package
5826 (name "gnome-session")
1fc2ec79 5827 (version "3.32.0")
7ce49365
SB
5828 (source (origin
5829 (method url-fetch)
5830 (uri (string-append "mirror://gnome/sources/" name "/"
5831 (version-major+minor version) "/"
5832 name "-" version ".tar.xz"))
5833 (sha256
5834 (base32
1fc2ec79 5835 "0zrzkpd406i159mla7bfs5npa32fgqh66aip1rfq02rgsgmc9m5v"))))
2914af3c 5836 (arguments
df278071
RW
5837 '(#:glib-or-gtk? #t
5838 #:phases
2914af3c
AW
5839 (modify-phases %standard-phases
5840 (add-before 'configure 'pre-configure
5841 (lambda* (#:key outputs #:allow-other-keys)
5842 ;; Use elogind instead of systemd.
df278071
RW
5843 (substitute* "meson.build"
5844 (("libsystemd-login") "libelogind")
5845 (("and libsystemd_daemon_dep.found.*") ","))
2914af3c
AW
5846 (substitute* "gnome-session/gsm-systemd.c"
5847 (("#include <systemd/sd-login.h>")
5848 "#include <elogind/sd-login.h>"))
df278071 5849 ;; Remove uses of the systemd daemon.
803ab416
SB
5850 (substitute* "gnome-session/gsm-autostart-app.c"
5851 (("#ifdef HAVE_SYSTEMD") "#if 0"))
a0d7baaf
LC
5852 #t))
5853 (add-after 'install 'wrap-gnome-session
5854 (lambda* (#:key inputs outputs #:allow-other-keys)
5855 ;; Make sure 'gnome-session' finds the 'gsettings' program.
5856 (let ((glib (assoc-ref inputs "glib:bin"))
5857 (out (assoc-ref outputs "out")))
5858 (wrap-program (string-append out "/bin/gnome-session")
5859 `("PATH" ":" prefix (,(string-append glib "/bin"))))
5860 #t))))
6cbc8d57 5861
2914af3c 5862 #:configure-flags
df278071
RW
5863 '("-Ddocbook=false" ; FIXME: disabled because of docbook validation error
5864 "-Dman=false" ; FIXME: disabled because of docbook validation error
5865 "-Dsystemd_journal=false")))
5866 (build-system meson-build-system)
7ce49365
SB
5867 (native-inputs
5868 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5869 ("pkg-config" ,pkg-config)
5870 ("intltool" ,intltool)
df278071
RW
5871 ("xsltproc" ,libxslt)
5872 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
5873 ("docbook-xsl" ,docbook-xsl)
5874 ("docbook-xml" ,docbook-xml)
5875 ("xmlto" ,xmlto)))
7ce49365 5876 (inputs
2914af3c
AW
5877 `(("elogind" ,elogind)
5878 ("gnome-desktop" ,gnome-desktop)
ba3cb5ab 5879 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7ce49365
SB
5880 ("gtk+" ,gtk+)
5881 ("json-glib" ,json-glib)
5882 ("libsm" ,libsm)
5883 ("libxcomposite" ,libxcomposite)
5884 ("libxtst" ,libxtst)
5885 ("mesa" ,mesa)
5886 ("upower" ,upower)
5887 ("xtrans" ,xtrans)))
5888 (synopsis "Session manager for GNOME")
5889 (description
5890 "This package contains the GNOME session manager, as well as a
5891configuration program to choose applications starting on login.")
5892 (home-page "https://wiki.gnome.org/Projects/SessionManagement")
5893 (license license:gpl2+)))
f47ba77e
SB
5894
5895(define-public gjs
5896 (package
5897 (name "gjs")
d054fbf5 5898 (version "1.56.2")
f47ba77e
SB
5899 (source (origin
5900 (method url-fetch)
5901 (uri (string-append "mirror://gnome/sources/" name "/"
5902 (version-major+minor version) "/"
5903 name "-" version ".tar.xz"))
5904 (sha256
5905 (base32
d054fbf5 5906 "1b5321krn89p3f7s2ik6gpfnc61apzljhlnbqky8c88f7n6832ac"))))
f47ba77e
SB
5907 (build-system gnu-build-system)
5908 (arguments
5909 '(#:phases
5910 (modify-phases %standard-phases
5911 (add-before
5912 'check 'pre-check
5913 (lambda _
fc119619
MW
5914 ;; The test suite requires a running X server.
5915 (system "Xvfb :1 &")
5916 (setenv "DISPLAY" ":1")
5917
f47ba77e
SB
5918 ;; For the missing /etc/machine-id.
5919 (setenv "DBUS_FATAL_WARNINGS" "0")
ba666b07 5920
144f94d0
KK
5921 ;; Our mozjs-38 package does not compile the required Intl API
5922 ;; support for these failing tests.
5923 (substitute* "installed-tests/js/testLocale.js"
5924 ((".*toBeDefined.*") "")
5925 ((".*expect\\(datestr\\).*") ""))
d054fbf5
KK
5926 (substitute* "installed-tests/scripts/testCommandLine.sh"
5927 (("Valentín") "")
5928 (("☭") ""))
f47ba77e
SB
5929 #t)))))
5930 (native-inputs
8a831c6f 5931 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
f47ba77e
SB
5932 ("pkg-config" ,pkg-config)
5933 ("xmllint" ,libxml2)
5934 ;; For testing
5935 ("dbus-launch" ,dbus)
5936 ("uuidgen" ,util-linux)
ebebee94 5937 ("xvfb" ,xorg-server-for-tests)))
f47ba77e
SB
5938 (propagated-inputs
5939 ;; These are all in the Requires.private field of gjs-1.0.pc.
144f94d0
KK
5940 `(("cairo" ,cairo)
5941 ("gobject-introspection" ,gobject-introspection)
d054fbf5 5942 ("mozjs" ,mozjs-60)))
f47ba77e
SB
5943 (inputs
5944 `(("gtk+" ,gtk+)
5945 ("readline" ,readline)))
5946 (synopsis "Javascript bindings for GNOME")
f032d0be 5947 (home-page "https://live.gnome.org/Gjs")
f47ba77e
SB
5948 (description
5949 "Gjs is a javascript binding for GNOME. It's mainly based on spidermonkey
5950javascript engine and the GObject introspection framework.")
5951 (license license:gpl2+)))
329d731b
DH
5952
5953(define-public gedit
5954 (package
5955 (name "gedit")
480c9226 5956 (version "3.32.2")
329d731b
DH
5957 (source (origin
5958 (method url-fetch)
5959 (uri (string-append "mirror://gnome/sources/" name "/"
5960 (version-major+minor version) "/"
5961 name "-" version ".tar.xz"))
5962 (sha256
5963 (base32
480c9226
KK
5964 "1q2rk7fym542c7k3bn2wlnzgy384gxacbifsjny0spbg95gfybvl"))))
5965 (build-system meson-build-system)
329d731b 5966 (arguments
480c9226
KK
5967 `(#:glib-or-gtk? #t
5968 #:configure-flags
5969 ;; Otherwise, the RUNPATH will lack the final path component.
5970 (list (string-append "-Dc_link_args=-Wl,-rpath="
5971 (assoc-ref %outputs "out") "/lib/gedit"))
d9b4022c
LC
5972
5973 ;; XXX: Generated .h files are sometimes used before being built.
5974 #:parallel-build? #f
5975
480c9226 5976 #:phases
329d731b 5977 (modify-phases %standard-phases
480c9226
KK
5978 (add-after 'unpack 'skip-gtk-update-icon-cache
5979 ;; Don't create 'icon-theme.cache'.
5980 (lambda _
5981 (substitute* "build-aux/meson/post_install.py"
5982 (("gtk-update-icon-cache") (which "true")))
5983 #t))
5984 (add-after 'unpack 'patch-libgd-fetch
5985 (lambda* (#:key inputs #:allow-other-keys)
5986 (let ((libgd (assoc-ref inputs "libgd")))
5987 ;; Calling git is unnecessary because libgd is fetched as a
5988 ;; native input to this package.
5989 (substitute* "meson.build"
5990 ((".*git.*") ""))
5991 (copy-recursively libgd "subprojects/libgd")
5992 #t)))
5993 (add-after 'install 'wrap-gedit
5994 (lambda* (#:key inputs outputs #:allow-other-keys)
5995 (let ((out (assoc-ref outputs "out"))
5996 (gtksourceview (assoc-ref inputs "gtksourceview"))
5997 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
5998 (python-path (getenv "PYTHONPATH")))
5999 (wrap-program (string-append out "/bin/gedit")
6000 ;; For plugins.
6001 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6002 `("PYTHONPATH" ":" prefix (,python-path))
6003 ;; For language-specs.
6004 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
6005 "/share")))))
6006 #t)))))
329d731b
DH
6007 (propagated-inputs
6008 `(("dconf" ,dconf)))
6009 (native-inputs
480c9226
KK
6010 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6011 ("intltool" ,intltool)
b3546174 6012 ("itstool" ,itstool)
480c9226 6013 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
329d731b 6014 ("gobject-introspection" ,gobject-introspection)
480c9226
KK
6015 ("libgd"
6016 ,(origin
6017 (method git-fetch)
6018 (uri (git-reference
6019 (url "https://gitlab.gnome.org/GNOME/libgd")
6020 (commit "c7c7ff4e05d3fe82854219091cf116cce6b19de0")))
6021 (file-name (git-file-name "libgd" version))
6022 (sha256
6023 (base32 "16yld0ap7qj1n96h4f2sqkjmibg7xx5xwkqxdfzam2nmyfdlrrrs"))))
329d731b
DH
6024 ("pkg-config" ,pkg-config)))
6025 (inputs
6026 `(("glib" ,glib)
0d2df50c 6027 ("gspell" ,gspell)
329d731b 6028 ("gtk+" ,gtk+)
480c9226 6029 ("gtksourceview" ,gtksourceview)
329d731b
DH
6030 ("libpeas" ,libpeas)
6031 ("libxml2" ,libxml2)
329d731b
DH
6032 ("iso-codes" ,iso-codes)
6033 ("python-pygobject" ,python-pygobject)
6034 ("python" ,python)
6035 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6036 ("libx11" ,libx11)
6037 ("vala" ,vala)
6038 ("adwaita-icon-theme" ,adwaita-icon-theme)
6039 ("libsoup" ,libsoup)
6040 ("gnome-desktop" ,gnome-desktop)))
6041 (home-page "https://wiki.gnome.org/Apps/Gedit")
6042 (synopsis "GNOME text editor")
6043 (description "While aiming at simplicity and ease of use, gedit is a
6044powerful general purpose text editor.")
6045 (license license:gpl2+)))
b7179363
SB
6046
6047(define-public zenity
6048 (package
6049 (name "zenity")
4f581bd0 6050 (version "3.32.0")
b7179363
SB
6051 (source (origin
6052 (method url-fetch)
5958df04 6053 (uri (string-append "mirror://gnome/sources/zenity/"
b7179363 6054 (version-major+minor version) "/"
5958df04 6055 "zenity-" version ".tar.xz"))
b7179363
SB
6056 (sha256
6057 (base32
4f581bd0 6058 "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7"))))
b7179363
SB
6059 (build-system gnu-build-system)
6060 (native-inputs
b94a6ca0 6061 `(("gettext" ,gettext-minimal)
b7179363
SB
6062 ("itstool" ,itstool)
6063 ("pkg-config" ,pkg-config)))
6064 (inputs
6065 `(("libnotify" ,libnotify)
6066 ("webkitgtk" ,webkitgtk)))
6067 (synopsis "Display graphical dialog boxes from shell scripts")
f032d0be 6068 (home-page "https://www.gnome.org")
b7179363
SB
6069 (description
6070 "Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you
6071to display dialog boxes from the commandline and shell scripts.")
6072 (license license:lgpl2.0+)))
60c3627c
SB
6073
6074(define-public mutter
6075 (package
6076 (name "mutter")
edf43f68 6077 (version "3.32.2")
60c3627c 6078 (source (origin
86c44e72
KK
6079 (method url-fetch)
6080 (uri (string-append "mirror://gnome/sources/" name "/"
6081 (version-major+minor version) "/"
6082 name "-" version ".tar.xz"))
60c3627c
SB
6083 (sha256
6084 (base32
edf43f68 6085 "1h577i2ap7dpfy1jg101jvc6nzccc0csgvd55ahydlr8f94frcva"))))
86c44e72
KK
6086 ;; NOTE: Since version 3.21.x, mutter now bundles and exports forked
6087 ;; versions of cogl and clutter. As a result, many of the inputs,
6088 ;; propagated-inputs, and configure flags used in cogl and clutter are
6089 ;; needed here as well.
edf43f68 6090 (build-system meson-build-system)
60c3627c 6091 (arguments
edf43f68
KK
6092 '(;; XXX: All mutter tests fail with the following error:
6093 ;; Settings schema 'org.gnome.mutter' is not installed
6094 #:tests? #f
6095 #:glib-or-gtk? #t
6096 #:configure-flags
6097 ;; Otherwise, the RUNPATH will lack the final path component.
6098 (list (string-append "-Dc_link_args=-Wl,-rpath="
6099 (assoc-ref %outputs "out") "/lib:"
6100 (assoc-ref %outputs "out") "/lib/mutter-4")
a88d5a0c
MW
6101
6102 ;; The following flags are needed for the bundled clutter
edf43f68 6103 (string-append "-Dxwayland_path="
d633f2f6
RH
6104 (assoc-ref %build-inputs "xorg-server-xwayland")
6105 "/bin/Xwayland")
6106
a88d5a0c 6107 ;; the remaining flags are needed for the bundled cogl
edf43f68 6108 (string-append "-Dopengl_libname="
a88d5a0c 6109 (assoc-ref %build-inputs "mesa")
f23052a6
DC
6110 "/lib/libGL.so"))
6111 #:phases
6112 (modify-phases %standard-phases
edf43f68
KK
6113 (add-after 'unpack 'disable-werror
6114 (lambda _
6115 ;; XXX: build fails with [-Werror]:
6116 ;; backends/meta-cursor-renderer.c:112:5: error:
6117 ;; implicit declaration of function ?roundf?
6118 (substitute* "meson.build"
6119 (("'-Werror=.*',") ""))
6120 #t))
86c44e72
KK
6121 ;; Replace references to systemd libraries to elogind references.
6122 (add-before 'configure 'use-elogind
6123 (lambda _
edf43f68 6124 (substitute* (list "meson.build"
86c44e72
KK
6125 "src/backends/native/meta-launcher.c"
6126 "src/core/main.c")
6127 (("systemd") "elogind"))
6128 #t)))))
60c3627c
SB
6129 (native-inputs
6130 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6131 ("gobject-introspection" ,gobject-introspection)
6132 ("intltool" ,intltool)
f23052a6 6133 ("pkg-config" ,pkg-config)
edf43f68 6134 ("xorg-server" ,xorg-server-for-tests)
f23052a6
DC
6135 ;; For git build
6136 ("autoconf" ,autoconf)
6137 ("automake" ,automake)
6138 ("libtool" ,libtool)))
60c3627c 6139 (propagated-inputs
a88d5a0c
MW
6140 `(;; libmutter.pc refers to these:
6141 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
6142 ("gtk+" ,gtk+)
6143 ;; mutter-clutter-1.0.pc and mutter-cogl-1.0.pc refer to these:
6144 ("atk" ,atk)
6145 ("cairo" ,cairo)
6146 ("gdk-pixbuf" ,gdk-pixbuf)
6147 ("glib" ,glib)
a88d5a0c
MW
6148 ("json-glib" ,json-glib)
6149 ("libinput" ,libinput)
6150 ("libx11" ,libx11)
6151 ("libxcomposite" ,libxcomposite)
6152 ("libxdamage" ,libxdamage)
6153 ("libxext" ,libxext)
6154 ("libxfixes" ,libxfixes)
6155 ("libxkbcommon" ,libxkbcommon)
6156 ("libxrandr" ,libxrandr)
6157 ("mesa" ,mesa)
6158 ("pango" ,pango)
6159 ("udev" ,eudev)
a88d5a0c 6160 ("xinput" ,xinput)))
60c3627c 6161 (inputs
86c44e72
KK
6162 `(("elogind" ,elogind)
6163 ("gnome-desktop" ,gnome-desktop)
edf43f68 6164 ("gnome-settings-daemon" ,gnome-settings-daemon)
60c3627c 6165 ("libcanberra-gtk" ,libcanberra)
a88d5a0c 6166 ("libgudev" ,libgudev)
60c3627c
SB
6167 ("libice" ,libice)
6168 ("libsm" ,libsm)
edf43f68 6169 ("libwacom" ,libwacom)
60c3627c 6170 ("libxkbfile" ,libxkbfile)
a88d5a0c 6171 ("libxrandr" ,libxrandr)
86c44e72 6172 ("libxtst" ,libxtst)
edf43f68 6173 ("pipewire" ,pipewire)
60c3627c
SB
6174 ("startup-notification" ,startup-notification)
6175 ("upower-glib" ,upower)
6176 ("xkeyboard-config" ,xkeyboard-config)
d633f2f6 6177 ("xorg-server-xwayland" ,xorg-server-xwayland)
60c3627c
SB
6178 ("zenity" ,zenity)))
6179 (synopsis "Window and compositing manager")
f032d0be 6180 (home-page "https://www.gnome.org")
60c3627c
SB
6181 (description
6182 "Mutter is a window and compositing manager that displays and manages your
6183desktop via OpenGL. Mutter combines a sophisticated display engine using the
6184Clutter toolkit with solid window-management logic inherited from the Metacity
6185window manager.")
86c44e72 6186 (license license:gpl2+)))
685cee87
SB
6187
6188(define-public gnome-online-accounts
6189 (package
6190 (name "gnome-online-accounts")
aa200347 6191 (version "3.32.1")
685cee87
SB
6192 (source (origin
6193 (method url-fetch)
6194 (uri (string-append "mirror://gnome/sources/" name "/"
6195 (version-major+minor version) "/"
6196 name "-" version ".tar.xz"))
6197 (sha256
6198 (base32
aa200347 6199 "08g9kdj8fzcgp76z2zsj9m7wfjks9z6xfrfrbfmcr69k40mapfx8"))))
14c297fd 6200 (outputs '("out" "lib"))
685cee87 6201 (build-system glib-or-gtk-build-system)
14c297fd
TS
6202 (arguments
6203 `(#:configure-flags
6204 (list (string-append "--libdir=" (assoc-ref %outputs "out") "/lib"))
6205 #:phases
6206 (modify-phases %standard-phases
6207 (add-before 'configure 'patch-libgoa-output
6208 (lambda* (#:key outputs #:allow-other-keys)
6209 (let ((lib (assoc-ref outputs "lib")))
6210 (substitute* '("src/goa/Makefile.in" "src/goa/goa-1.0.pc.in")
6211 (("@prefix@") lib)
6212 (("@exec_prefix@") lib)
6213 (("@libdir@") (string-append lib "/lib"))
6214 (("@includedir@") (string-append lib "/include"))
6215 (("@datadir@") (string-append lib "/share")))
7555d539
MB
6216 ;; Make sure gobject-introspection knows about the output
6217 ;; too (see <https://bugs.gnu.org/36535>).
6218 (setenv "outputs" "out lib")
14c297fd 6219 #t))))))
685cee87
SB
6220 (native-inputs
6221 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6222 ("gobject-introspection" ,gobject-introspection)
6223 ("intltool" ,intltool)
6224 ("pkg-config" ,pkg-config)
ebb2873d 6225 ("vala" ,vala)
685cee87
SB
6226 ("xsltproc" ,libxslt)))
6227 (propagated-inputs
6228 `(("glib" ,glib) ; required by goa-1.0.pc
6229 ("gtk+" ,gtk+))) ; required by goa-backend-1.0.pc
6230 (inputs
6231 `(("docbook-xsl" ,docbook-xsl)
6232 ("json-glib" ,json-glib)
6233 ("libsecret" ,libsecret)
6234 ("rest" ,rest)
685cee87
SB
6235 ("webkitgtk" ,webkitgtk)))
6236 (synopsis "Single sign-on framework for GNOME")
6237 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineAccounts")
6238 (description
6239 "GNOME Online Accounts provides interfaces so that applications and
6240libraries in GNOME can access the user's online accounts. It has providers for
6241Google, ownCloud, Facebook, Flickr, Windows Live, Pocket, Foursquare, Microsoft
6242Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
6243 (license license:lgpl2.0+)))
df217748
SB
6244
6245(define-public evolution-data-server
6246 (package
6247 (name "evolution-data-server")
2196a8d4 6248 (version "3.32.4")
df217748
SB
6249 (source (origin
6250 (method url-fetch)
6251 (uri (string-append "mirror://gnome/sources/" name "/"
6252 (version-major+minor version) "/"
6253 name "-" version ".tar.xz"))
43190ac6
MB
6254 (patches (search-patches "evolution-data-server-locales.patch"
6255 "evolution-data-server-libical-compat.patch"))
df217748
SB
6256 (sha256
6257 (base32
2196a8d4 6258 "0zsc9xwy6ixk3x0dx69ax5isrdw8qxjdxg2i5fr95s40nss7rxl3"))))
743aebd7 6259 (build-system cmake-build-system)
df217748 6260 (arguments
b468eedc
RW
6261 '(#:configure-flags
6262 (let* ((lib (string-append (assoc-ref %outputs "out") "/lib"))
6263 (runpaths (map (lambda (s)
6264 (string-append lib "/evolution-data-server/" s))
ac033c7b
MB
6265 '("addressbook-backends" "calendar-backends"
6266 "camel-providers" "credential-modules"
6267 "registry-modules"))))
6268 (list "-DENABLE_UOA=OFF" ;disable Ubuntu Online Accounts support
6269 "-DENABLE_GOOGLE=OFF" ;disable Google Contacts support
6270 "-DENABLE_GOOGLE_AUTH=OFF" ;disable Google authentication
6271 "-DENABLE_VALA_BINDINGS=ON"
ac033c7b
MB
6272 (string-append "-DCMAKE_INSTALL_RPATH=" lib ";"
6273 (string-append lib "/evolution-data-server;")
6274 (string-join runpaths ";"))
6275 "-DENABLE_INTROSPECTION=ON")) ;required for Vala bindings
df217748
SB
6276 #:phases
6277 (modify-phases %standard-phases
b468eedc
RW
6278 (add-after 'unpack 'disable-failing-tests
6279 (lambda _
6280 ;; tests/book-migration/test-migration.c:160:test_fetch_contacts:
6281 ;; assertion failed (g_slist_length (contacts) == 20): (0 == 20)
6282 (delete-file-recursively "tests/book-migration")
6283 (substitute* "tests/CMakeLists.txt"
6284 (("add_subdirectory\\(book-migration\\)") ""))
2196a8d4
KK
6285 ;; tests/libebook/client/test-book-client-view-operations:8077):
6286 ;; e-data-server-WARNING **:
6287 ;; (src/libedataserver/e-source-registry.c:264):thread_closure_free:
6288 ;; runtime check failed:
6289 ;; (!g_main_context_pending (closure->main_context))
6290 (substitute* "tests/libebook/client/CMakeLists.txt"
6291 (("test-book-client-view-operations") ""))
b468eedc 6292 #t))
743aebd7 6293 (add-after 'unpack 'patch-paths
df217748 6294 (lambda _
b468eedc
RW
6295 (substitute* '("tests/test-server-utils/e-test-server-utils.c"
6296 "tests/libedata-book/data-test-utils.c"
6297 "tests/libedata-book/test-book-cache-utils.c"
6298 "tests/libedata-cal/test-cal-cache-utils.c")
df217748 6299 (("/bin/rm") (which "rm")))
ac033c7b
MB
6300 #t))
6301 (add-before 'configure 'dont-override-rpath
6302 (lambda _
6303 (substitute* "CMakeLists.txt"
6304 ;; CMakeLists.txt hard-codes runpath to just the libdir.
6305 ;; Remove it so the configure flag is respected.
6306 (("SET\\(CMAKE_INSTALL_RPATH .*") ""))
b63c06f1 6307 #t)))))
df217748
SB
6308 (native-inputs
6309 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
6310 ("gobject-introspection" ,gobject-introspection)
6311 ("gperf" ,gperf)
6312 ("intltool" ,intltool)
6313 ("pkg-config" ,pkg-config)
a73c1cf8 6314 ("vala" ,vala)
743aebd7 6315 ("python" ,python-wrapper)))
df217748
SB
6316 (propagated-inputs
6317 ;; These are all in the Requires field of .pc files.
6318 `(("gtk+" ,gtk+)
6319 ("libical" ,libical)
6320 ("libsecret" ,libsecret)
6321 ("libsoup" ,libsoup)
6322 ("nss" ,nss)
6323 ("sqlite" ,sqlite)))
6324 (inputs
6325 `(("bdb" ,bdb)
6326 ("gcr" ,gcr)
14c297fd 6327 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
891199c6 6328 ("json-glib" ,json-glib)
b468eedc 6329 ("libcanberra" ,libcanberra)
743aebd7
MB
6330 ("libgweather" ,libgweather)
6331 ("mit-krb5" ,mit-krb5)
891199c6
MW
6332 ("openldap" ,openldap)
6333 ("webkitgtk" ,webkitgtk)))
df217748
SB
6334 (synopsis "Store address books and calendars")
6335 (home-page "https://wiki.gnome.org/Apps/Evolution")
6336 (description
6337 "This package provides a unified backend for programs that work with
6338contacts, tasks, and calendar information. It was originally developed for
6339Evolution (hence the name), but is now used by other packages as well.")
6340 (license license:lgpl2.0)))
bd7dfafa
SB
6341
6342(define-public caribou
6343 (package
6344 (name "caribou")
fe964bb5 6345 (version "0.4.21")
bd7dfafa
SB
6346 (source (origin
6347 (method url-fetch)
6348 (uri (string-append "mirror://gnome/sources/" name "/"
6349 (version-major+minor version) "/"
6350 name "-" version ".tar.xz"))
6351 (sha256
6352 (base32
fe964bb5 6353 "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
bd7dfafa
SB
6354 (build-system glib-or-gtk-build-system)
6355 (arguments
6356 '(#:phases
6357 (modify-phases %standard-phases
6358 (add-before
6359 'build 'pre-build
6360 (lambda* (#:key outputs #:allow-other-keys)
6361 (let ((out (assoc-ref outputs "out")))
6362 ;; Use absolute shared library path in Caribou-1.0.typelib.
6363 (substitute* "libcaribou/Makefile"
6364 (("--shared-library=libcaribou.so")
6365 (string-append "--shared-library="
6366 out "/lib/libcaribou.so")))
6367 #t)))
6368 (add-after 'install 'wrap-programs
6369 (lambda* (#:key outputs #:allow-other-keys)
6370 (let* ((out (assoc-ref outputs "out"))
6371 (python-path (getenv "PYTHONPATH"))
6372 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
6373 (for-each
6374 (lambda (prog)
6375 (wrap-program prog
6376 `("PYTHONPATH" ":" prefix (,python-path))
6377 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6378 (list (string-append out "/bin/caribou-preferences")
6379 (string-append out "/libexec/antler-keyboard"))))
6380 #t)))))
6381 (native-inputs
6382 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6383 ("gobject-introspection" ,gobject-introspection)
6384 ("intltool" ,intltool)
6385 ("pkg-config" ,pkg-config)
9f7f5ba2 6386 ("python" ,python)
bd7dfafa
SB
6387 ("vala" ,vala)
6388 ("xsltproc" ,libxslt)))
6389 (propagated-inputs
6390 ;; caribou-1.0.pc refers to all these.
6391 `(("libgee" ,libgee)
6392 ("libxklavier" ,libxklavier)
6393 ("libxtst" ,libxtst)
6394 ("gtk+" ,gtk+)))
6395 (inputs
6396 `(("clutter" ,clutter)
6397 ("dconf" ,dconf)
6398 ("gtk+-2" ,gtk+-2)
9f7f5ba2 6399 ("python-pygobject" ,python-pygobject)))
bd7dfafa
SB
6400 (synopsis "Text entry and UI navigation application")
6401 (home-page "https://wiki.gnome.org/Projects/Caribou")
6402 (description
6403 "Caribou is an input assistive technology intended for switch and pointer
6404users.")
6405 (license license:lgpl2.1)))
ba5dd105 6406
ba5dd105
SB
6407(define-public network-manager
6408 (package
6409 (name "network-manager")
6425d87a 6410 (version "1.18.4")
ba5dd105
SB
6411 (source (origin
6412 (method url-fetch)
6413 (uri (string-append "mirror://gnome/sources/NetworkManager/"
6414 (version-major+minor version) "/"
6415 "NetworkManager-" version ".tar.xz"))
7d1861e2 6416 (patches (search-patches "nm-plugin-path.patch"))
ba5dd105
SB
6417 (sha256
6418 (base32
6425d87a 6419 "0pnh1wr2p1fqa5pr945fr3lngfc5ccfrmgddqsg55lxnjpv0ggd3"))
02710a9b 6420 (modules '((guix build utils)))
fd070f35 6421 (snippet
02710a9b
RW
6422 '(begin
6423 (substitute* "src/devices/wwan/nm-modem-manager.c"
6424 (("systemd") "elogind"))
6425 #t))))
ba5dd105
SB
6426 (build-system gnu-build-system)
6427 (outputs '("out"
6428 "doc")) ; 8 MiB of gtk-doc HTML
6429 (arguments
6430 '(#:configure-flags
6431 (let ((out (assoc-ref %outputs "out"))
6432 (doc (assoc-ref %outputs "doc"))
6433 (dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
6434 "/sbin/dhclient")))
02710a9b
RW
6435 (list "--with-libnm-glib" ; needed by network-manager-applet
6436 "--with-systemd-journal=no"
6437 "--with-session-tracking=elogind"
6438 "--with-suspend-resume=elogind"
fd070f35
CM
6439 "--with-consolekit=no"
6440 "--with-crypto=gnutls"
ba5dd105
SB
6441 "--disable-config-plugin-ibft"
6442 "--sysconfdir=/etc"
6443 "--localstatedir=/var"
6444 (string-append "--with-udev-dir="
6445 out "/lib/udev")
6446 (string-append "--with-dbus-sys-dir="
6447 out "/etc/dbus-1/system.d")
6448 (string-append "--with-html-dir="
6449 doc "/share/gtk-doc/html")
6450 (string-append "--with-dhclient=" dhclient)))
6451 #:phases
6452 (modify-phases %standard-phases
02710a9b
RW
6453 ;; This bare "ls" invocation breaks some tests.
6454 (add-after 'unpack 'patch-ls-invocation
6455 (lambda _
6456 (substitute* "build-aux/ltmain.sh"
6457 (("`ls -")
6458 (string-append "`" (which "ls") " -")))
6459 #t))
b4f59d87
AW
6460 (add-before 'configure 'pre-configure
6461 (lambda _
6462 ;; These tests try to test aspects of network-manager's
6463 ;; functionality within restricted containers, but they don't
6464 ;; cope with being already in the Guix build jail as that jail
6465 ;; lacks some features that they would like to proxy over (like
6466 ;; a /sys mount).
d04687dc
HG
6467 (substitute* '("Makefile.in")
6468 (("src/platform/tests/test-address-linux") " ")
6469 (("src/platform/tests/test-cleanup-linux") " ")
6470 (("src/platform/tests/test-link-linux") " ")
6471 (("src/platform/tests/test-route-linux") " ")
02710a9b 6472 (("src/devices/tests/test-acd") "")
d04687dc
HG
6473 (("src/devices/tests/test-arping") " ")
6474 (("src/devices/tests/test-lldp") " ")
6475 (("src/tests/test-route-manager-linux") " "))
b4f59d87 6476 #t))
45f80fce
RW
6477 (add-after 'unpack 'delete-failing-tests
6478 (lambda _
02710a9b 6479 ;; FIXME: These three tests fail for unknown reasons.
45f80fce
RW
6480 ;; ERROR:libnm-core/tests/test-general.c:5842:
6481 ;; _json_config_check_valid: assertion failed (res == expected): (1 == 0)
6482 ;; ERROR:libnm-core/tests/test-keyfile.c:647:
6483 ;; test_team_conf_read_invalid: assertion failed: (nm_setting_team_get_config (s_team) == NULL)
6484 ;; ERROR:libnm-core/tests/test-setting.c:907:
6485 ;; _test_team_config_sync: assertion failed: (nm_streq0 (nm_setting_team_get_runner (s_team), runner))
45f80fce
RW
6486 (substitute* "Makefile.in"
6487 (("libnm-core/tests/test-general") " ")
6488 (("libnm-core/tests/test-keyfile") " ")
02710a9b 6489 (("libnm-core/tests/test-setting\\$\\(EXEEXT\\)") " "))
45f80fce 6490 #t))
ba5dd105
SB
6491 (add-before 'check 'pre-check
6492 (lambda _
6493 ;; For the missing /etc/machine-id.
6494 (setenv "DBUS_FATAL_WARNINGS" "0")
6495 #t))
6496 (replace 'install
6497 (lambda _
45f80fce
RW
6498 (invoke "make"
6499 "sysconfdir=/tmp"
6500 "rundir=/tmp"
6501 "statedir=/tmp"
6502 "nmstatedir=/tmp/nm"
6503 "install")
6504 #t)))))
b93502d6
DC
6505 (propagated-inputs
6506 `(("glib" ,glib)))
ba5dd105
SB
6507 (native-inputs
6508 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
6509 ("gobject-introspection" ,gobject-introspection)
d04687dc 6510 ("docbook-xsl" ,docbook-xsl)
ba5dd105 6511 ("intltool" ,intltool)
d04687dc
HG
6512 ("libxslt" ,libxslt)
6513 ("libxml2" ,libxml2)
ba5dd105
SB
6514 ("pkg-config" ,pkg-config)
6515 ;; For testing.
6516 ("python" ,python-wrapper)
6517 ("python-dbus" ,python-dbus)
6518 ("python-pygobject" ,python-pygobject)))
6519 (inputs
02710a9b
RW
6520 `(("coreutils" ,coreutils) ; for ls
6521 ("curl" ,curl)
856ca567
KK
6522 ("cyrus-sasl" ,cyrus-sasl)
6523 ("dbus-glib" ,dbus-glib)
ba5dd105 6524 ("dnsmasq" ,dnsmasq)
856ca567 6525 ("eudev" ,eudev)
ba5dd105
SB
6526 ("gnutls" ,gnutls)
6527 ("iptables" ,iptables)
6528 ("isc-dhcp" ,isc-dhcp)
d04687dc 6529 ("jansson" ,jansson)
ba5dd105
SB
6530 ("libgcrypt" ,libgcrypt)
6531 ("libgudev" ,libgudev)
6532 ("libndp" ,libndp)
6533 ("libnl" ,libnl)
6534 ("libsoup" ,libsoup)
142bdcbc 6535 ("modem-manager" ,modem-manager)
c27e02bf 6536 ("newt" ,newt) ;for the 'nmtui' console interface
ba5dd105
SB
6537 ("polkit" ,polkit)
6538 ("ppp" ,ppp)
6539 ("readline" ,readline)
fd070f35
CM
6540 ("util-linux" ,util-linux)
6541 ("elogind" ,elogind)))
ba5dd105 6542 (synopsis "Network connection manager")
f032d0be 6543 (home-page "https://www.gnome.org/projects/NetworkManager/")
ba5dd105
SB
6544 (description
6545 "NetworkManager is a system network service that manages your network
6546devices and connections, attempting to keep active network connectivity when
6547available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE
6548devices, and provides VPN integration with a variety of different VPN
6549services.")
29d2f451
LC
6550 (license license:gpl2+)
6551 (properties '((upstream-name . "NetworkManager")))))
4d62a9d3 6552
f2b96b3a
LC
6553(define-public network-manager-openvpn
6554 (package
6555 (name "network-manager-openvpn")
be1c4b07 6556 ;; Updating? Check whether network-manager-applet still needs libnm_gtk.
7d87eede 6557 (version "1.8.10")
f2b96b3a
LC
6558 (source (origin
6559 (method url-fetch)
6560 (uri (string-append
6561 "mirror://gnome/sources/NetworkManager-openvpn/"
6562 (version-major+minor version)
6563 "/NetworkManager-openvpn-" version ".tar.xz"))
6564 (sha256
6565 (base32
7d87eede 6566 "1vri49yff4lj13dnzkpq9nx3a4z1bmbrv807r151plj8m1mwhg5g"))))
f2b96b3a
LC
6567 (build-system gnu-build-system)
6568 (arguments
633422b0
JL
6569 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
6570 #:phases
6571 (modify-phases %standard-phases
6572 (add-after 'configure 'patch-path
6573 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
6574 (let* ((ovpn (string-append (assoc-ref inputs "openvpn")
6575 "/sbin/openvpn"))
6576 (modprobe (string-append (assoc-ref inputs "kmod")
6577 "/bin/modprobe"))
6578 (pretty-ovpn (string-append "\"" ovpn "\"")))
6579 (for-each
6580 (lambda (file)
6581 (substitute* file
6582 (("\"/usr/local/sbin/openvpn\"") pretty-ovpn)
6583 (("\"/usr/sbin/openvpn\"") pretty-ovpn)
6584 (("\"/sbin/openvpn\"") pretty-ovpn)
6585 (("/sbin/modprobe") modprobe)))
6586 '("src/nm-openvpn-service.c" "properties/nm-openvpn-editor.c")))
6587 #t)))))
f2b96b3a
LC
6588 (native-inputs
6589 `(("pkg-config" ,pkg-config)
6590 ("intltool" ,intltool)))
6591 (inputs
6592 `(("gtk+" ,gtk+)
633422b0 6593 ("kmod" ,kmod)
f2b96b3a
LC
6594 ("openvpn" ,openvpn)
6595 ("network-manager" ,network-manager)
6596 ("network-manager-applet" ,network-manager-applet) ;for libnma
6597 ("libsecret" ,libsecret)))
6598 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
6599 (synopsis "OpenVPN plug-in for NetworkManager")
6600 (description
6601 "This extension of NetworkManager allows it to take care of connections
6602to virtual private networks (VPNs) via OpenVPN.")
6603 (license license:gpl2+)
6604 (properties `((upstream-name . "NetworkManager-openvpn")))))
6605
d376129f
JL
6606(define-public network-manager-vpnc
6607 (package
6608 (name "network-manager-vpnc")
6609 (version "1.2.6")
6610 (source (origin
6611 (method url-fetch)
6612 (uri (string-append
6613 "mirror://gnome/sources/NetworkManager-vpnc/"
6614 (version-major+minor version)
6615 "/NetworkManager-vpnc-" version ".tar.xz"))
6616 (sha256
6617 (base32
6618 "1js5lwcsqws4klgypfxl4ikmakv7v7xgddij1fj6b0y0qicx0kyy"))))
6619 (build-system gnu-build-system)
6620 (arguments
6621 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
6622 #:phases
6623 (modify-phases %standard-phases
6624 (add-after 'configure 'patch-path
6625 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
6626 (let* ((vpnc (string-append (assoc-ref inputs "vpnc")
6627 "/sbin/vpnc"))
6628 (modprobe (string-append (assoc-ref inputs "kmod")
6629 "/bin/modprobe"))
6630 (pretty-ovpn (string-append "\"" vpnc "\"")))
6631 (substitute* "src/nm-vpnc-service.c"
6632 (("\"/usr/local/sbin/vpnc\"") pretty-ovpn)
6633 (("\"/usr/sbin/vpnc\"") pretty-ovpn)
6634 (("\"/sbin/vpnc\"") pretty-ovpn)
6635 (("/sbin/modprobe") modprobe)))
6636 #t)))))
6637 (native-inputs
6638 `(("pkg-config" ,pkg-config)
6639 ("intltool" ,intltool)))
6640 (inputs
6641 `(("gtk+" ,gtk+)
6642 ("kmod" ,kmod)
6643 ("vpnc" ,vpnc)
6644 ("network-manager" ,network-manager)
6645 ("network-manager-applet" ,network-manager-applet) ;for libnma
6646 ("libsecret" ,libsecret)))
6647 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
6648 (synopsis "VPNC plug-in for NetworkManager")
6649 (description
6650 "Support for configuring virtual private networks based on VPNC.
6651Compatible with Cisco VPN concentrators configured to use IPsec.")
6652 (license license:gpl2+)
6653 (properties `((upstream-name . "NetworkManager-vpnc")))))
6654
8378c87a
EF
6655(define-public network-manager-openconnect
6656 (package
6657 (name "network-manager-openconnect")
6658 (version "1.2.6")
6659 (source (origin
6660 (method url-fetch)
6661 (uri (string-append
6662 "mirror://gnome/sources/NetworkManager-openconnect/"
6663 (version-major+minor version)
6664 "/NetworkManager-openconnect-" version ".tar.xz"))
6665 (sha256
6666 (base32
6667 "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m"))))
6668 (build-system gnu-build-system)
6669 (arguments
6670 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
6671 #:phases
6672 (modify-phases %standard-phases
6673 (add-after 'configure 'patch-path
6674 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
6675 (let* ((openconnect (string-append (assoc-ref inputs "openconnect")
6676 "/sbin/openconnect"))
6677 (modprobe (string-append (assoc-ref inputs "kmod")
6678 "/bin/modprobe"))
6679 (pretty-ovpn (string-append "\"" openconnect "\"")))
6680 (substitute* "src/nm-openconnect-service.c"
6681 (("\"/usr/local/sbin/openconnect\"") pretty-ovpn)
6682 (("\"/usr/sbin/openconnect\"") pretty-ovpn)
6683 (("/sbin/modprobe") modprobe)))
6684 #t)))))
6685 (native-inputs
6686 `(("intltool" ,intltool)
6687 ("network-manager-applet" ,network-manager-applet) ;for libnma
6688 ("pkg-config" ,pkg-config)))
6689 (inputs
6690 `(("gcr" ,gcr)
6691 ("gtk+" ,gtk+)
6692 ("kmod" ,kmod)
6693 ("libsecret" ,libsecret)
6694 ("libxml2" ,libxml2)
6695 ("network-manager" ,network-manager)
6696 ("openconnect" ,openconnect)))
6697 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
6698 (synopsis "OpenConnect plug-in for NetworkManager")
6699 (description
6700 "This extension of NetworkManager allows it to take care of connections
6701to @acronym{VPNs, virtual private networks} via OpenConnect, an open client for
6702Cisco's AnyConnect SSL VPN.")
6703 (license license:gpl2+)
e52b9534
LC
6704 (properties `((upstream-name . "NetworkManager-openconnect")
6705
6706 ;; The 'etc/dbus-1/system.d/nm-openconnect-service.conf'
6707 ;; file refers to account "nm-openconnect". Specify it here
6708 ;; so that 'network-manager-service-type' creates it.
6709 (user-accounts . ("nm-openconnect"))))))
8378c87a 6710
e5e1df4d
DC
6711(define-public mobile-broadband-provider-info
6712 (package
6713 (name "mobile-broadband-provider-info")
310c89e3 6714 (version "20190116")
e5e1df4d
DC
6715 (source (origin
6716 (method url-fetch)
6717 (uri (string-append
6718 "mirror://gnome/sources/"
6719 "mobile-broadband-provider-info/" version "/"
6720 "mobile-broadband-provider-info-" version ".tar.xz"))
6721 (sha256
6722 (base32
310c89e3 6723 "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"))))
e5e1df4d
DC
6724 (build-system gnu-build-system)
6725 (arguments
310c89e3 6726 `(#:tests? #f)) ; no tests
e5e1df4d
DC
6727 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
6728 (synopsis "Database of broadband connection configuration")
6729 (description "Database of broadband connection configuration.")
6730 (license license:public-domain)))
6731
4d62a9d3
SB
6732(define-public network-manager-applet
6733 (package
6734 (name "network-manager-applet")
8fc3a337 6735 (version "1.8.24")
4d62a9d3
SB
6736 (source (origin
6737 (method url-fetch)
3df63444 6738 (uri (string-append "mirror://gnome/sources/network-manager-applet/"
4d62a9d3 6739 (version-major+minor version) "/"
3df63444 6740 "network-manager-applet-" version ".tar.xz"))
4d62a9d3
SB
6741 (sha256
6742 (base32
8fc3a337 6743 "1gzvz4wfqfsfclqg56y954al8x6fmz71cnxlx1i4nqr7a25bp2qi"))))
cd7f718e
RW
6744 (build-system meson-build-system)
6745 (arguments
be1c4b07
TGR
6746 '(#:configure-flags
6747 ;; ‘Nobody should be using this’ but network-manager-openvpn 1.8.10 does.
6748 (list "-Dlibnm_gtk=true")
6749 #:glib-or-gtk? #t))
4d62a9d3
SB
6750 (native-inputs
6751 `(("intltool" ,intltool)
cd7f718e 6752 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
4d62a9d3 6753 ("gobject-introspection" ,gobject-introspection)
cd7f718e 6754 ("gtk-doc" ,gtk-doc)
4d62a9d3
SB
6755 ("pkg-config" ,pkg-config)))
6756 (propagated-inputs
6757 ;; libnm-gtk.pc refers to all these.
6758 `(("dbus-glib" ,dbus-glib)
6759 ("gtk+" ,gtk+)
6760 ("network-manager" ,network-manager)))
6761 (inputs
cd7f718e
RW
6762 `(("gcr" ,gcr)
6763 ("iso-codes" ,iso-codes)
4d62a9d3
SB
6764 ("libgudev" ,libgudev)
6765 ("libnotify" ,libnotify)
2116bfb3 6766 ("libsecret" ,libsecret)
240cee8a
KK
6767 ("libselinux" ,libselinux)
6768 ("jansson" ,jansson) ; for team support
3e9c80b2
FP
6769 ("modem-manager" ,modem-manager)
6770 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)))
4d62a9d3 6771 (synopsis "Applet for managing network connections")
f032d0be 6772 (home-page "https://www.gnome.org/projects/NetworkManager/")
4d62a9d3
SB
6773 (description
6774 "This package contains a systray applet for NetworkManager. It displays
6775the available networks and allows users to easily switch between them.")
6776 (license license:gpl2+)))
56196594
RW
6777
6778(define-public libxml++
6779 (package
6780 (name "libxml++")
8344a85e 6781 (version "3.0.1")
56196594
RW
6782 (source (origin
6783 (method url-fetch)
6784 (uri (string-append "mirror://gnome/sources/" name "/"
6785 (version-major+minor version) "/"
6786 name "-" version ".tar.xz"))
6787 (sha256
6788 (base32
8344a85e 6789 "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"))))
56196594
RW
6790 (build-system gnu-build-system)
6791 ;; libxml++-3.0.pc refers to all these.
6792 (propagated-inputs
6793 `(("libxml2" ,libxml2)
6794 ("glibmm" ,glibmm)))
6795 (native-inputs
6796 `(("perl" ,perl)
6797 ("pkg-config" ,pkg-config)))
6798 (home-page "http://libxmlplusplus.sourceforge.net/")
6799 (synopsis "C++ wrapper for XML parser library libxml2")
6800 (description
6801 "This package provides a C++ wrapper for the XML parser library
6802libxml2.")
6803 (license license:lgpl2.1+)))
df12f04a 6804
b61d9627
AW
6805(define-public libxml++-2
6806 (package
6807 (inherit libxml++)
6808 (name "libxml++")
6809 (version "2.40.1")
6810 (source (origin
6811 (method url-fetch)
6812 (uri (string-append "mirror://gnome/sources/" name "/"
6813 (version-major+minor version) "/"
6814 name "-" version ".tar.xz"))
6815 (sha256
6816 (base32
6817 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
6818
df12f04a
SB
6819(define-public gdm
6820 (package
6821 (name "gdm")
bcca95dc 6822 (version "3.32.0")
df12f04a
SB
6823 (source (origin
6824 (method url-fetch)
6825 (uri (string-append "mirror://gnome/sources/" name "/"
6826 (version-major+minor version) "/"
6827 name "-" version ".tar.xz"))
6828 (sha256
6829 (base32
bcca95dc 6830 "12ypdz9i24hwbl1d1wnnxb8zlvfa4f49n9ac5cl9d6h8qp4b0gb4"))))
957dbc0a 6831 (build-system glib-or-gtk-build-system)
df12f04a
SB
6832 (arguments
6833 '(#:configure-flags
af37e6bb 6834 `("--without-plymouth"
957dbc0a 6835 "--disable-systemd-journal"
51bc8357
TS
6836
6837 ;; Using --with-initial-vt=7 allows GDM to run alongside TTY 1,
6838 ;; instead of having to replace it (i.e., stopping the mingetty
6839 ;; service for TTY 1 before starting GDM).
6840 "--with-initial-vt=7"
6841
89c86562
TS
6842 ;; Use '/etc/environment' for locale settings instead of the
6843 ;; systemd-specific '/etc/locale.conf'.
6844 "--with-lang-file=/etc/environment"
6845
b74ef0ba
RW
6846 ,(string-append "--with-udevdir="
6847 (assoc-ref %outputs "out") "/lib/udev")
6848
af37e6bb
AW
6849 "--localstatedir=/var"
6850 ,(string-append "--with-default-path="
6851 (string-join '("/run/setuid-programs"
6852 "/run/current-system/profile/bin"
6853 "/run/current-system/profile/sbin")
957dbc0a
AW
6854 ":"))
6855 ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
6856 ;; XDG_DATA_DIRS so that it finds its schemas.
6857 "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
df12f04a
SB
6858 #:phases
6859 (modify-phases %standard-phases
6860 (add-before
6861 'configure 'pre-configure
e8c6e771 6862 (lambda* (#:key inputs outputs #:allow-other-keys)
df12f04a
SB
6863 ;; We don't have <systemd/sd-daemon.h>.
6864 (substitute* '("common/gdm-log.c"
6865 "daemon/gdm-server.c"
6866 "daemon/gdm-session-worker.c"
6867 "daemon/gdm-session-worker-job.c")
6868 (("#include <systemd/sd-daemon\\.h>") ""))
6869 ;; Use elogind for sd-login.
6870 (substitute* '("common/gdm-common.c"
6871 "daemon/gdm-manager.c"
6872 "libgdm/gdm-user-switching.c")
6873 (("#include <systemd/sd-login\\.h>")
6874 "#include <elogind/sd-login.h>"))
957dbc0a
AW
6875 ;; Check for elogind.
6876 (substitute* '("configure")
6877 (("libsystemd")
6878 "libelogind"))
af37e6bb
AW
6879 ;; Look for system-installed sessions in
6880 ;; /run/current-system/profile/share.
6881 (substitute* '("libgdm/gdm-sessions.c"
6882 "daemon/gdm-session.c"
6883 "daemon/gdm-display.c"
6884 "daemon/gdm-launch-environment.c")
6885 (("DATADIR \"/x")
6886 "\"/run/current-system/profile/share/x")
6887 (("DATADIR \"/wayland")
6888 "\"/run/current-system/profile/share/wayland")
6889 (("DATADIR \"/gnome")
6890 "\"/run/current-system/profile/share/gnome"))
c9ff92b5 6891 (let ((propagate '("GDM_CUSTOM_CONF"
1f564c15 6892 "GDM_DBUS_DAEMON"
c9ff92b5 6893 "GDM_X_SERVER"
41fa9f18 6894 "GDM_X_SESSION"
c9ff92b5
TS
6895 ;; XXX: Remove this once GNOME Shell is
6896 ;; a dependency of GDM.
6897 "XDG_DATA_DIRS")))
6898 (substitute* "daemon/gdm-session.c"
6899 (("set_up_session_environment \\(self\\);")
6900 (apply string-append
6901 "set_up_session_environment (self);\n"
6902 (map (lambda (name)
6903 (string-append
6904 "gdm_session_set_environment_variable "
6905 "(self, \"" name "\","
6906 "g_getenv (\"" name "\"));\n"))
6907 propagate)))))
a430a350
TS
6908 ;; Find the configuration file using an environment variable.
6909 (substitute* '("common/gdm-settings.c")
e0e6756f 6910 (("GDM_CUSTOM_CONF")
e57c2adb
TS
6911 (string-append "(g_getenv(\"GDM_CUSTOM_CONF\") != NULL"
6912 " ? g_getenv(\"GDM_CUSTOM_CONF\")"
6913 " : GDM_CUSTOM_CONF)")))
e0e6756f
AW
6914 ;; Use service-supplied path to X.
6915 (substitute* '("daemon/gdm-server.c")
6916 (("\\(X_SERVER X_SERVER_ARG_FORMAT")
6917 "(\"%s\" X_SERVER_ARG_FORMAT, g_getenv (\"GDM_X_SERVER\")"))
6918 (substitute* '("daemon/gdm-x-session.c")
1f564c15
TS
6919 (("\"dbus-daemon\"")
6920 "g_getenv (\"GDM_DBUS_DAEMON\")")
e0e6756f 6921 (("X_SERVER")
41fa9f18
TS
6922 "g_getenv (\"GDM_X_SERVER\")")
6923 (("GDMCONFDIR \"/Xsession\"")
6924 "g_getenv (\"GDM_X_SESSION\")"))
def6d6b6
TS
6925 ;; Use an absolute path for GNOME Session.
6926 (substitute* "daemon/gdm-launch-environment.c"
6927 (("\"gnome-session\"")
6928 (string-append "\"" (assoc-ref inputs "gnome-session")
6929 "/bin/gnome-session\"")))
e8c6e771
TS
6930 ;; Do not automatically select the placeholder session.
6931 (substitute* "daemon/gdm-session.c"
6932 (("!g_str_has_suffix [(]base_name, \"\\.desktop\"[)]")
6933 (string-append "!g_str_has_suffix (base_name, \".desktop\") || "
6934 "(g_strcmp0(search_dirs[i], \""
6935 (assoc-ref outputs "out") "/share/gdm/BuiltInSessions/"
6936 "\") == 0 && "
6937 "g_strcmp0(base_name, \"fail.desktop\") == 0)"))
6938 (("g_error [(]\"GdmSession: no session desktop files installed, aborting\\.\\.\\.\"[)];")
bcca95dc 6939 "{ self->fallback_session_name = g_strdup(\"fail\"); goto out; }"))
69544798 6940 #t))
8caa4589
TS
6941 ;; GDM requires that there be at least one desktop entry
6942 ;; file. This phase installs a hidden one that simply
6943 ;; fails. This enables users to use GDM with a
6944 ;; '~/.xsession' script with no other desktop entry files.
6945 ;; See <https://bugs.gnu.org/35068>.
6946 (add-after 'install 'install-placeholder-desktop-entry
6947 (lambda* (#:key inputs outputs #:allow-other-keys)
6948 (let* ((out (assoc-ref outputs "out"))
6949 (sessions (string-append out "/share/gdm/BuiltInSessions"))
6950 (fail (string-append sessions "/fail.desktop")))
6951 (mkdir-p sessions)
6952 (with-output-to-file fail
6953 (lambda ()
6954 (for-each
6955 display
6956 '("[Desktop Entry]\n"
6957 "Encoding=UTF-8\n"
6958 "Type=Application\n"
6959 "Name=Fail\n"
6960 "Comment=This session fails immediately.\n"
6961 "NoDisplay=true\n"
6962 "Exec=false\n"))))
6963 #t)))
69544798
TS
6964 ;; GDM needs GNOME Session to run these applications. We link
6965 ;; their autostart files in `share/gdm/greeter/autostart'
6966 ;; because GDM explicitly tells GNOME Session to look there.
6967 ;;
6968 ;; XXX: GNOME Shell should be linked here too, but currently
6969 ;; GNOME Shell depends on GDM.
6970 (add-after 'install 'link-autostart-files
6971 (lambda* (#:key inputs outputs #:allow-other-keys)
6972 (let* ((out (assoc-ref outputs "out"))
6973 (autostart (string-append out "/share/gdm/"
6974 "greeter/autostart"))
6975 (settings (assoc-ref inputs "gnome-settings-daemon")))
6976 (mkdir-p autostart)
6977 (with-directory-excursion autostart
6978 (for-each (lambda (desktop)
6979 (symlink desktop (basename desktop)))
6980 (find-files (string-append settings "/etc/xdg"))))
6981 #t))))))
df12f04a
SB
6982 (native-inputs
6983 `(("dconf" ,dconf)
6984 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6985 ("gobject-introspection" ,gobject-introspection)
6986 ("intltool" ,intltool)
6987 ("itstool" ,itstool)
6988 ("pkg-config" ,pkg-config)
6989 ("xmllint" ,libxml2)))
6990 (inputs
6991 `(("accountsservice" ,accountsservice)
6992 ("check" ,check) ; for testing
6993 ("elogind" ,elogind)
def6d6b6 6994 ("gnome-session" ,gnome-session)
69544798 6995 ("gnome-settings-daemon" ,gnome-settings-daemon)
df12f04a
SB
6996 ("gtk+" ,gtk+)
6997 ("iso-codes" ,iso-codes)
6998 ("libcanberra" ,libcanberra)
6999 ("linux-pam" ,linux-pam)))
7000 (synopsis "Display manager for GNOME")
f032d0be 7001 (home-page "https://wiki.gnome.org/Projects/GDM/")
df12f04a
SB
7002 (description
7003 "GNOME Display Manager is a system service that is responsible for
7004providing graphical log-ins and managing local and remote displays.")
7005 (license license:gpl2+)))
8e1dd04f
SB
7006
7007(define-public libgtop
7008 (package
7009 (name "libgtop")
015fc036 7010 (version "2.40.0")
8e1dd04f
SB
7011 (source (origin
7012 (method url-fetch)
59487fc2 7013 (uri (string-append "mirror://gnome/sources/libgtop/"
8e1dd04f 7014 (version-major+minor version) "/"
59487fc2 7015 "libgtop-" version ".tar.xz"))
8e1dd04f
SB
7016 (sha256
7017 (base32
015fc036 7018 "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq"))))
8e1dd04f
SB
7019 (build-system gnu-build-system)
7020 (native-inputs
7021 `(("gobject-introspection" ,gobject-introspection)
7022 ("intltool" ,intltool)
7023 ("perl" ,perl)
7024 ("pkg-config" ,pkg-config)))
7025 (propagated-inputs
7026 `(("glib" ,glib))) ; required by libgtop-2.0.pc
7027 (synopsis "Portable system access library")
7028 (home-page "https://www.gnome.org/")
7029 (description
7030 "LibGTop is a library to get system specific data such as CPU and memory
7031usage and information about running processes.")
7032 (license license:gpl2+)))
b96c4260
SB
7033
7034(define-public gnome-bluetooth
7035 (package
7036 (name "gnome-bluetooth")
723afae6 7037 (version "3.32.1")
b96c4260
SB
7038 (source (origin
7039 (method url-fetch)
7040 (uri (string-append "mirror://gnome/sources/" name "/"
7041 (version-major+minor version) "/"
7042 name "-" version ".tar.xz"))
7043 (sha256
7044 (base32
723afae6 7045 "1am1gf0nzwg6x1s8ly13j0xnjzgrfj06j0dp52x4zy9s67ywlhb4"))))
fd3b1171 7046 (build-system meson-build-system)
b96c4260
SB
7047 (native-inputs
7048 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
fd3b1171 7049 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
b96c4260
SB
7050 ("gobject-introspection" ,gobject-introspection)
7051 ("intltool" ,intltool)
7052 ("pkg-config" ,pkg-config)
7053 ("xmllint" ,libxml2)))
7054 (propagated-inputs
7055 ;; gnome-bluetooth-1.0.pc refers to all these.
723afae6
KK
7056 `(("glib" ,glib)
7057 ("gtk+" ,gtk+)))
b96c4260 7058 (inputs
723afae6
KK
7059 `(("eudev" ,eudev)
7060 ("libcanberra" ,libcanberra)
b96c4260
SB
7061 ("libnotify" ,libnotify)))
7062 (synopsis "GNOME Bluetooth subsystem")
7063 (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
7064 (description
7065 "This package contains tools for managing and manipulating Bluetooth
7066devices using the GNOME desktop.")
7067 (license license:lgpl2.1+)))
b645146f
SB
7068
7069(define-public gnome-control-center
7070 (package
7071 (name "gnome-control-center")
a6938bac 7072 (version "3.32.2")
b645146f
SB
7073 (source (origin
7074 (method url-fetch)
7075 (uri (string-append "mirror://gnome/sources/" name "/"
7076 (version-major+minor version) "/"
7077 name "-" version ".tar.xz"))
7078 (sha256
7079 (base32
a6938bac 7080 "03np0mhfl9kkdw4cb711pda0cli9zgh2bq2gqn2zwbdi3qnhk9gs"))))
59dac026 7081 (build-system meson-build-system)
b645146f 7082 (arguments
59dac026
RW
7083 '(#:glib-or-gtk? #t
7084 #:configure-flags
64c70430
KK
7085 (list "-Dcheese=false"
7086 (string-append "-Dgnome_session_libexecdir="
7087 (assoc-ref %build-inputs "gnome-session")
7088 "/libexec"))
59dac026 7089 #:phases
b645146f
SB
7090 (modify-phases %standard-phases
7091 (add-before 'configure 'patch-paths
7092 (lambda* (#:key inputs #:allow-other-keys)
7093 (let ((libc (assoc-ref inputs "libc"))
1df38cfc 7094 (tzdata (assoc-ref inputs "tzdata"))
341225ac 7095 (libgnomekbd (assoc-ref inputs "libgnomekbd"))
64c70430
KK
7096 (nm-applet (assoc-ref inputs "network-manager-applet"))
7097 (gnome-desktop (assoc-ref inputs "gnome-desktop")))
b645146f
SB
7098 (substitute* "panels/datetime/tz.h"
7099 (("/usr/share/zoneinfo/zone.tab")
7100 (string-append tzdata "/share/zoneinfo/zone.tab")))
982c0b36 7101 (substitute* "tests/datetime/test-endianess.c"
b645146f
SB
7102 (("/usr/share/locale")
7103 (string-append libc "/share/locale")))
1df38cfc
LC
7104 (substitute* "panels/region/cc-region-panel.c"
7105 (("\"gkbd-keyboard-display")
7106 (string-append "\"" libgnomekbd
7107 "/bin/gkbd-keyboard-display")))
341225ac
LC
7108 (substitute* '("panels/network/net-device-wifi.c"
7109 "panels/network/net-device.c"
7110 "panels/network/connection-editor/net-connection-editor.c")
7111 (("\"nm-connection-editor")
7112 (string-append "\"" nm-applet
7113 "/bin/nm-connection-editor")))
1acd107c
FP
7114 (substitute* '("panels/user-accounts/run-passwd.c")
7115 (("/usr/bin/passwd")
7116 "/run/setuid-programs/passwd"))
64c70430
KK
7117 (substitute* "panels/info/cc-info-overview-panel.c"
7118 (("DATADIR \"/gnome/gnome-version.xml\"")
7119 (string-append "\"" gnome-desktop
7120 "/share/gnome/gnome-version.xml\"")))
b645146f
SB
7121 #t))))))
7122 (native-inputs
7123 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
59dac026 7124 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
b645146f
SB
7125 ("intltool" ,intltool)
7126 ("pkg-config" ,pkg-config)
a6938bac
KK
7127 ("xsltproc" ,libxslt)
7128 ;; For tests
7129 ("hicolor-icon-theme" ,hicolor-icon-theme)
7130 ("python-dbusmock" ,python-dbusmock)
7131 ("xorg-server" ,xorg-server-for-tests)))
b645146f
SB
7132 (inputs
7133 `(("accountsservice" ,accountsservice)
7134 ("clutter-gtk" ,clutter-gtk)
7135 ("colord-gtk" ,colord-gtk)
7136 ("cups" ,cups)
7137 ("dconf" ,dconf)
7138 ("docbook-xsl" ,docbook-xsl)
3446ffb5 7139 ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
b645146f
SB
7140 ("gnome-bluetooth" ,gnome-bluetooth)
7141 ("gnome-desktop" ,gnome-desktop)
7142 ("gnome-online-accounts" ,gnome-online-accounts)
14c297fd 7143 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
64c70430 7144 ("gnome-session" ,gnome-session)
b645146f
SB
7145 ("gnome-settings-daemon" ,gnome-settings-daemon)
7146 ("grilo" ,grilo)
a6938bac 7147 ("gsound" ,gsound)
b645146f
SB
7148 ("ibus" ,ibus)
7149 ("libcanberra" ,libcanberra)
1df38cfc 7150 ("libgnomekbd" ,libgnomekbd)
b645146f
SB
7151 ("libgudev" ,libgudev)
7152 ("libgtop" ,libgtop)
7153 ("libpwquality" ,libpwquality)
982c0b36 7154 ("libsecret" ,libsecret)
b645146f
SB
7155 ("libsoup" ,libsoup)
7156 ("libxml2" ,libxml2)
7157 ("libwacom" ,libwacom)
7158 ("mesa" ,mesa)
7159 ("mit-krb5" ,mit-krb5)
7160 ("modem-manager" ,modem-manager)
7161 ("network-manager-applet" ,network-manager-applet)
7162 ("polkit" ,polkit)
7163 ("pulseaudio" ,pulseaudio)
7164 ("smbclient" ,samba)
7165 ("tzdata" ,tzdata)
982c0b36 7166 ("udisks" ,udisks)
b645146f
SB
7167 ("upower" ,upower)))
7168 (synopsis "Utilities to configure the GNOME desktop")
7169 (home-page "https://www.gnome.org/")
7170 (description
7171 "This package contains configuration applets for the GNOME desktop,
7172allowing to set accessibility configuration, desktop fonts, keyboard and mouse
7173properties, sound setup, desktop theme and background, user interface
7174properties, screen resolution, and other GNOME parameters.")
7175 (license license:gpl2+)))
a4df5756
SB
7176
7177(define-public gnome-shell
7178 (package
7179 (name "gnome-shell")
d5e615ca 7180 (version "3.32.2")
a4df5756
SB
7181 (source (origin
7182 (method url-fetch)
7183 (uri (string-append "mirror://gnome/sources/" name "/"
7184 (version-major+minor version) "/"
7185 name "-" version ".tar.xz"))
7186 (sha256
7187 (base32
d5e615ca 7188 "0anlkdnqsp5fqvmg95rqjpp1ifcx5xzsvwcrdsvb1cqzbh6inmp5"))
a76d0f03
LC
7189 (patches (search-patches "gnome-shell-theme.patch"))
7190 (modules '((guix build utils)))
7191 (snippet
7192 #~(begin
a76d0f03
LC
7193 ;; Copy images for use on the GDM log-in screen.
7194 (copy-file #$(file-append %artwork-repository
7195 "/slim/0.x/background.png")
7196 "data/theme/guix-background.png")
45fef894
LC
7197 (copy-file #$(file-append %artwork-repository
7198 "/logo/Guix-horizontal-white.svg")
7199 "data/theme/guix-logo.svg")
a76d0f03 7200 #t))))
2b0c755d 7201 (build-system meson-build-system)
a4df5756 7202 (arguments
08185081
MB
7203 `(#:glib-or-gtk? #t
7204 #:disallowed-references ((,glib "bin")
11e1df56
LC
7205 ,inkscape ,libxslt
7206 ,ruby-sass)
2b0c755d
RW
7207 #:configure-flags
7208 (list "-Dsystemd=false"
7209 ;; Otherwise, the RUNPATH will lack the final path component.
7210 (string-append "-Dc_link_args=-Wl,-rpath="
7211 (assoc-ref %outputs "out")
7212 "/lib/gnome-shell"))
11e1df56 7213
08185081 7214 #:modules ((guix build meson-build-system)
11e1df56
LC
7215 (guix build utils)
7216 (srfi srfi-1))
7217
2b0c755d 7218 #:phases
a4df5756 7219 (modify-phases %standard-phases
2b0c755d 7220 (add-after 'unpack 'fix-keysdir
a4df5756
SB
7221 (lambda* (#:key outputs #:allow-other-keys)
7222 (let* ((out (assoc-ref outputs "out"))
7223 (keysdir (string-append
7224 out "/share/gnome-control-center/keybindings")))
2b0c755d
RW
7225 (substitute* "meson.build"
7226 (("keysdir =.*")
7227 (string-append "keysdir = '" keysdir "'\n")))
7228 #t)))
ebfe259f
MB
7229 (add-before 'configure 'convert-logo-to-png
7230 (lambda* (#:key inputs #:allow-other-keys)
7231 ;; Convert the logo from SVG to PNG.
7232 (invoke "inkscape" "--export-png=data/theme/guix-logo.png"
7233 "data/theme/guix-logo.svg")))
ba00235a 7234 (add-before 'configure 'record-absolute-file-names
2472cdec
LC
7235 (lambda* (#:key inputs #:allow-other-keys)
7236 (substitute* "js/misc/ibusManager.js"
7237 (("'ibus-daemon'")
7238 (string-append "'" (assoc-ref inputs "ibus")
7239 "/bin/ibus-daemon'")))
d6fda4d3
LC
7240 (substitute* "js/ui/status/keyboard.js"
7241 (("'gkbd-keyboard-display'")
7242 (string-append "'" (assoc-ref inputs "libgnomekbd")
7243 "/bin/gkbd-keyboard-display'")))
2472cdec 7244 #t))
2b0c755d
RW
7245 (add-before 'check 'pre-check
7246 (lambda* (#:key inputs #:allow-other-keys)
7247 ;; Tests require a running X server.
7248 (system "Xvfb :1 &")
7249 (setenv "DISPLAY" ":1")
7250 #t))
7251 (add-after 'install 'wrap-programs
7252 (lambda* (#:key inputs outputs #:allow-other-keys)
7253 (let ((out (assoc-ref outputs "out"))
7254 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
7255 (python-path (getenv "PYTHONPATH")))
7256 (wrap-program (string-append out "/bin/gnome-shell")
7257 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
7258 ;; FIXME: gnome-shell loads these libraries with unqualified
7259 ;; names only, so they need to be on LD_LIBRARY_PATH. The
7260 ;; alternative might be to patch gnome-shell.
7261 `("LD_LIBRARY_PATH" ":" prefix
7262 ,(map (lambda (pkg)
7263 (string-append (assoc-ref inputs pkg) "/lib"))
cd8dce8a
RW
7264 '("gdk-pixbuf"
7265 "gnome-bluetooth" "librsvg" "libgweather"))))
2b0c755d
RW
7266 (for-each
7267 (lambda (prog)
7268 (wrap-program (string-append out "/bin/" prog)
7269 `("PYTHONPATH" ":" prefix (,python-path))
7270 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7271 '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
08185081 7272 #t)))
11e1df56
LC
7273 (replace 'glib-or-gtk-wrap
7274 (let ((wrap (assoc-ref %standard-phases 'glib-or-gtk-wrap)))
7275 (lambda* (#:key inputs outputs #:allow-other-keys #:rest rest)
7276 ;; By default Inkscape et al. would end up in the XDG_DATA_DIRS
7277 ;; settings of the wrappers created by the 'glib-or-gtk-wrap'
7278 ;; phase. Fix that since we don't need these.
7279 (wrap #:inputs (fold alist-delete inputs
7280 '("inkscape" "intltool" "glib:bin"))
7281 #:outputs outputs)))))))
a4df5756
SB
7282 (native-inputs
7283 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
2b0c755d 7284 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
a4df5756 7285 ("gobject-introspection" ,gobject-introspection)
ebfe259f 7286 ("inkscape" ,inkscape)
a4df5756
SB
7287 ("intltool" ,intltool)
7288 ("pkg-config" ,pkg-config)
7289 ("python" ,python)
2b0c755d
RW
7290 ("ruby-sass" ,ruby-sass)
7291 ("sassc" ,sassc)
a76d0f03 7292 ("xsltproc" ,libxslt)
2b0c755d 7293 ;; For tests
0b4504f6 7294 ("xorg-server" ,xorg-server-for-tests)))
a4df5756
SB
7295 (inputs
7296 `(("accountsservice" ,accountsservice)
7297 ("caribou" ,caribou)
7298 ("docbook-xsl" ,docbook-xsl)
7299 ("evolution-data-server" ,evolution-data-server)
7300 ("gcr" ,gcr)
7301 ("gdm" ,gdm)
c5db31d4 7302 ("gdk-pixbuf" ,gdk-pixbuf+svg)
a4df5756
SB
7303 ("gjs" ,gjs)
7304 ("gnome-bluetooth" ,gnome-bluetooth)
a4df5756
SB
7305 ("gnome-desktop" ,gnome-desktop)
7306 ("gnome-settings-daemon" ,gnome-settings-daemon)
7307 ("gst-plugins-base" ,gst-plugins-base)
7308 ("ibus" ,ibus)
7309 ("libcanberra" ,libcanberra)
7310 ("libcroco" ,libcroco)
d6fda4d3 7311 ("libgnomekbd" ,libgnomekbd) ;for gkbd-keyboard-display
a4df5756
SB
7312 ("libgweather" ,libgweather)
7313 ("libsoup" ,libsoup)
7314 ("mesa-headers" ,mesa-headers)
7315 ("mutter" ,mutter)
7316 ("network-manager-applet" ,network-manager-applet)
7317 ("polkit" ,polkit)
7318 ("pulseaudio" ,pulseaudio)
7319 ("python-pygobject" ,python-pygobject)
7320 ("startup-notification" ,startup-notification)
7321 ("telepathy-logger" ,telepathy-logger)
7322 ("upower" ,upower)
30e760f0
MB
7323 ;; XXX: These requirements were added in 3.24, but no mention in NEWS.
7324 ;; Missing propagation? See also: <https://bugs.gnu.org/27264>
7325 ("librsvg" ,librsvg)
2b0c755d 7326 ("geoclue" ,geoclue)))
a4df5756
SB
7327 (synopsis "Desktop shell for GNOME")
7328 (home-page "https://wiki.gnome.org/Projects/GnomeShell")
7329 (description
7330 "GNOME Shell provides core user interface functions for the GNOME desktop,
7331like switching to windows and launching applications.")
7332 (license license:gpl2+)))
c3f29bc9
RS
7333
7334(define-public gtk-vnc
7335 (package
7336 (name "gtk-vnc")
965ff023 7337 (version "0.9.0")
c3f29bc9
RS
7338 (source
7339 (origin
7340 (method url-fetch)
7341 (uri (string-append "mirror://gnome/sources/" name "/"
7342 (version-major+minor version) "/"
7343 name "-" version ".tar.xz"))
7344 (sha256
7345 (base32
965ff023 7346 "1dya1wc9vis8h0fv625pii1n70cckf1xjg1m2hndz989d118i6is"))))
c3f29bc9
RS
7347 (build-system gnu-build-system)
7348 (arguments
7349 '(#:configure-flags '("--with-gtk=3.0")))
7350 (propagated-inputs
7351 `(("gtk+" ,gtk+))) ; required by gtk-vnc-2.0.pc.
7352 (inputs
7353 `(("cyrus-sasl" ,cyrus-sasl)
7354 ("gnutls" ,gnutls)
7355 ("libgcrypt" ,libgcrypt)
7356 ("pulseaudio" ,pulseaudio)))
7357 (native-inputs
7358 `(("glib:bin" ,glib "bin")
7359 ("gobject-introspection" ,gobject-introspection)
7360 ("intltool" ,intltool)
7361 ("pkg-config" ,pkg-config)
2f17e939 7362 ("python-wrapper" ,python-wrapper)
c3f29bc9
RS
7363 ("vala" ,vala)))
7364 (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
7365 (synopsis "VNC viewer widget for GTK+")
7366 (description
7367 "GTK-VNC is a VNC viewer widget for GTK+, used by remote desktop viewing
7368applications, for instance the Vinagre client, GNOME Boxes and virt-viewer.
7369GTK-VNC implements client side RFB protocol and authentication extensions such
7370as SASL, TLS and VeNCrypt. Additionally it supports encoding extensions.")
7371 (license license:lgpl2.1+)))
8b877545 7372
dc69fe18
MW
7373(define-public gnome-autoar
7374 (package
7375 (name "gnome-autoar")
c7da8510 7376 (version "0.2.3")
dc69fe18
MW
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
c7da8510 7384 "02i4zgqqqj56h7bcys6dz7n78m4nj2x4dv1ggjmnrk98n06xpsax"))))
dc69fe18
MW
7385 (build-system glib-or-gtk-build-system)
7386 (native-inputs
7387 `(("gnome-common" ,gnome-common)
7388 ("gobject-introspection" ,gobject-introspection)
7389 ("pkg-config" ,pkg-config)))
7390 (propagated-inputs
7391 `(("libarchive" ,libarchive))) ; XXX document why
7392 (inputs
0a6e9e13 7393 `(("gtk+" ,gtk+)))
dc69fe18
MW
7394 (synopsis "Archives integration support for GNOME")
7395 (home-page "https://git.gnome.org/browse/gnome-autoar/")
7396 (description
7397 "GNOME Autoar is a library which makes creating and extracting archives
7398easy, safe, and automatic.")
7399 (license license:lgpl2.1+)))
7400
b64e217f
MW
7401(define-public tracker
7402 (package
7403 (name "tracker")
5ada561c 7404 (version "2.2.2")
b64e217f
MW
7405 (source (origin
7406 (method url-fetch)
b5b0fd23 7407 (uri (string-append "mirror://gnome/sources/tracker/"
b64e217f 7408 (version-major+minor version) "/"
b5b0fd23 7409 "tracker-" version ".tar.xz"))
b64e217f
MW
7410 (sha256
7411 (base32
5ada561c
KK
7412 "1rp2c6k7ajcm553p9kpni87zgi9aplm3s01rl7pk575az5i399y6"))))
7413 (build-system meson-build-system)
c8bdf589 7414 (arguments
5ada561c
KK
7415 `(#:glib-or-gtk? #t
7416 #:configure-flags
7417 ;; Otherwise, the RUNPATH will lack the final path component.
7418 (list (string-append "-Dc_link_args=-Wl,-rpath="
7419 (assoc-ref %outputs "out") "/lib:"
7420 (assoc-ref %outputs "out") "/lib/tracker-2.0"))
7421 #:phases
c8bdf589
RW
7422 (modify-phases %standard-phases
7423 (add-after 'unpack 'disable-broken-tests
7424 (lambda _
c8bdf589
RW
7425 ;; These fail because the SPARQL backend could not be loaded.
7426 ;; That's because /etc/machine-id is missing, but
7427 ;; DBUS_FATAL_WARNINGS does not help here.
5ada561c
KK
7428 (substitute* "tests/libtracker-sparql/meson.build"
7429 (("'sparql',") ""))
7430 (substitute* "tests/tracker-steroids/meson.build"
7431 (("test\\(.*") ""))
c8bdf589
RW
7432 #t))
7433 ;; Two tests fail if LANG is not set.
7434 (add-before 'check 'pre-check
7435 (lambda _
7436 (setenv "LANG" "en_US.UTF-8")
7437 ;; For the missing /etc/machine-id.
7438 (setenv "DBUS_FATAL_WARNINGS" "0")
7439 #t)))))
b64e217f 7440 (native-inputs
5ada561c
KK
7441 `(("glib:bin" ,glib "bin")
7442 ("gnome-common" ,gnome-common)
b64e217f 7443 ("gobject-introspection" ,gobject-introspection)
5ada561c 7444 ("python-pygobject" ,python-pygobject)
b64e217f
MW
7445 ("intltool" ,intltool)
7446 ("pkg-config" ,pkg-config)
7447 ("vala" ,vala)))
7448 (inputs
7449 `(("gtk+" ,gtk+)
7450 ("dbus" ,dbus)
44ed6284 7451 ("sqlite" ,sqlite)
c8bdf589 7452 ("python" ,python)
b64e217f 7453 ("poppler" ,poppler)
b64e217f
MW
7454 ("libpng" ,libpng)
7455 ("libtiff" ,libtiff)
b64e217f 7456 ("zlib" ,zlib)
b64e217f 7457 ("libxml2" ,libxml2)
b64e217f 7458 ("libunistring" ,libunistring)
0ef48cd9 7459 ("json-glib" ,json-glib)
b64e217f 7460 ("openjpeg" ,openjpeg-1)
b64e217f 7461 ("libseccomp" ,libseccomp)
0ef48cd9 7462 ("libsoup" ,libsoup)
5ada561c
KK
7463 ("libuuid" ,util-linux)
7464 ("network-manager" ,network-manager)))
b64e217f
MW
7465 (synopsis "Metadata database, indexer and search tool")
7466 (home-page "https://wiki.gnome.org/Projects/Tracker")
7467 (description
7468 "Tracker is an advanced framework for first class objects with associated
7469metadata and tags. It provides a one stop solution for all metadata, tags,
7470shared object databases, search tools and indexing.")
7471 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
7472 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
7473 (license (list license:gpl2+
7474 license:lgpl2.1+
7475 license:lgpl2.0+))))
7476
03be9874
KK
7477(define-public tracker-miners
7478 (package
7479 (name "tracker-miners")
7480 (version "2.2.2")
7481 (source (origin
7482 (method url-fetch)
7483 (uri (string-append "mirror://gnome/sources/tracker-miners/"
7484 (version-major+minor version)
7485 "/tracker-miners-" version ".tar.xz"))
7486 (sha256
7487 (base32
7488 "0kk5xaajamb8jlm6cfdbc2m3axzr6bnph84m7697xmb0pkg8hdiw"))))
7489 (build-system meson-build-system)
7490 (arguments
7491 `(#:glib-or-gtk? #t
7492 #:configure-flags
7493 (list "-Dminer_rss=false" ; libgrss is required.
7494 ;; Ensure the RUNPATH contains all installed library locations.
7495 (string-append "-Dc_link_args=-Wl,-rpath="
7496 (assoc-ref %outputs "out")
7497 "/lib/tracker-miners-2.0")
7498 ;; TODO: Enable functional tests. Currently, the following error
7499 ;; appears:
7500 ;; Exception: The functional tests require DConf to be the default
7501 ;; GSettings backend. Got GKeyfileSettingsBackend instead.
7502 "-Dfunctional_tests=false")))
7503 (native-inputs
7504 `(("dbus" ,dbus)
7505 ("intltool" ,intltool)
7506 ("glib:bin" ,glib "bin")
7507 ("gobject-introspection" ,gobject-introspection)
7508 ("pkg-config" ,pkg-config)
7509 ("python-pygobject" ,python-pygobject)))
7510 (inputs
7511 `(("exempi" ,exempi)
7512 ("ffmpeg" ,ffmpeg)
7513 ("flac" ,flac)
7514 ("giflib" ,giflib)
7515 ("glib" ,glib)
7516 ("gstreamer" ,gstreamer)
7517 ("icu4c" ,icu4c)
7518 ("libcue" ,libcue)
7519 ("libexif" ,libexif)
7520 ("libgsf" ,libgsf)
7521 ("libgxps" ,libgxps)
7522 ("libiptcdata" ,libiptcdata)
7523 ("libjpeg" ,libjpeg)
7524 ("libosinfo" ,libosinfo)
7525 ("libpng" ,libpng)
7526 ("libseccomp" ,libseccomp)
7527 ("libtiff" ,libtiff)
7528 ("libvorbis" ,libvorbis)
7529 ("libxml2" ,libxml2)
7530 ("poppler" ,poppler)
7531 ("taglib" ,taglib)
7532 ("totem-pl-parser" ,totem-pl-parser)
7533 ("tracker" ,tracker)
7534 ("upower" ,upower)
7535 ("zlib" ,zlib)))
7536 (synopsis "Metadata database, indexer and search tool")
7537 (home-page "https://wiki.gnome.org/Projects/Tracker")
7538 (description
7539 "Tracker is an advanced framework for first class objects with associated
7540metadata and tags. It provides a one stop solution for all metadata, tags,
7541shared object databases, search tools and indexing.")
7542 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
7543 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
7544 (license (list license:gpl2+
7545 license:lgpl2.1+
7546 license:lgpl2.0+))))
7547
8b877545
RS
7548(define-public nautilus
7549 (package
7550 (name "nautilus")
d682c599 7551 (version "3.32.3")
8b877545
RS
7552 (source (origin
7553 (method url-fetch)
7554 (uri (string-append "mirror://gnome/sources/" name "/"
7555 (version-major+minor version) "/"
7556 name "-" version ".tar.xz"))
7557 (sha256
7558 (base32
d682c599 7559 "1x9crzbj6rrrf8w5dkcx0c14j40byr4ijpzkwd5dcrbfvvdy1r01"))))
35e2d0cf 7560 (build-system meson-build-system)
8b877545 7561 (arguments
35e2d0cf 7562 '(#:glib-or-gtk? #t
8b877545
RS
7563 ;; XXX: FAIL: check-nautilus
7564 ;; Settings schema 'org.gnome.nautilus.preferences' is not installed
7565 #:tests? #f))
7566 (native-inputs
35e2d0cf
R
7567 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7568 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
7569 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8b877545
RS
7570 ("gobject-introspection" ,gobject-introspection)
7571 ("intltool" ,intltool)
7572 ("pkg-config" ,pkg-config)))
8b877545 7573 (inputs
8b877545 7574 `(("dconf" ,dconf)
caf6c363 7575 ("gexiv2" ,gexiv2)
dd05e731 7576 ("gvfs" ,gvfs)
8b877545
RS
7577 ("exempi" ,exempi)
7578 ("gnome-desktop" ,gnome-desktop)
09d88905 7579 ("gnome-autoar" ,gnome-autoar)
3cafb9d4 7580 ("gst-plugins-base" ,gst-plugins-base)
ec66ebd4 7581 ("libseccomp" ,libseccomp)
35e2d0cf 7582 ("libselinux" ,libselinux)
09d88905 7583 ("tracker" ,tracker)
3cafb9d4 7584 ("tracker-miners" ,tracker-miners)
ce6027bf
SB
7585 ;; XXX: gtk+ is required by libnautilus-extension.pc
7586 ;;
7587 ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
7588 ;; package. See:
7589 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
7590 ("gtk+" ,gtk+)
8b877545
RS
7591 ("libexif" ,libexif)
7592 ("libxml2" ,libxml2)))
7593 (synopsis "File manager for GNOME")
7594 (home-page "https://wiki.gnome.org/Apps/Nautilus")
7595 (description
7596 "Nautilus (Files) is a file manager designed to fit the GNOME desktop
7597design and behaviour, giving the user a simple way to navigate and manage its
7598files.")
7599 (license license:gpl2+)))
3c697ffd
JR
7600
7601(define-public baobab
7602 (package
7603 (name "baobab")
e0c5f20c 7604 (version "3.32.0")
3c697ffd
JR
7605 (source (origin
7606 (method url-fetch)
7607 (uri (string-append
7608 "mirror://gnome/sources/" name "/"
7609 (version-major+minor version) "/"
7610 name "-" version ".tar.xz"))
7611 (sha256
7612 (base32
e0c5f20c 7613 "0b33s9bhpiffv5wl76cq2bbnqhvx3qs2vxyxmil5gcs583llqh9r"))))
d233d373
RJ
7614 (build-system meson-build-system)
7615 (arguments
7616 '(#:glib-or-gtk? #t))
3c697ffd
JR
7617 (native-inputs
7618 `(("intltool" ,intltool)
7619 ("pkg-config" ,pkg-config)
d233d373
RJ
7620 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7621 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
3c697ffd
JR
7622 ("itstool" ,itstool)
7623 ("xmllint" ,libxml2)
7624 ("glib" ,glib "bin")
7625 ("vala" ,vala)))
7626 (inputs
7627 `(("gtk+" ,gtk+)))
7628 (synopsis "Disk usage analyzer for GNOME")
7629 (description
7630 "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
7631usage in the GNOME desktop environment. It can easily scan device volumes or
7632a specific user-requested directory branch (local or remote). Once the scan
7633is complete it provides a graphical representation of each selected folder.")
7634 (home-page "https://wiki.gnome.org/Apps/Baobab")
7635 (license license:gpl2+)))
dc050251 7636
fdba447c
RS
7637(define-public gnome-backgrounds
7638 (package
7639 (name "gnome-backgrounds")
e04e8a8c 7640 (version "3.32.0")
fdba447c
RS
7641 (source
7642 (origin
7643 (method url-fetch)
7644 (uri (string-append "mirror://gnome/sources/" name "/"
7645 (version-major+minor version) "/"
7646 name "-" version ".tar.xz"))
7647 (sha256
7648 (base32
e04e8a8c 7649 "1s5krdmd3md44p1fgr2lqm5ifxb8s1vzx6hm11sb4cgzr4dw6lrz"))))
9ca381f0 7650 (build-system meson-build-system)
fdba447c
RS
7651 (native-inputs
7652 `(("intltool" ,intltool)))
e04e8a8c 7653 (home-page "https://gitlab.gnome.org/GNOME/gnome-backgrounds")
fdba447c
RS
7654 (synopsis "Background images for the GNOME desktop")
7655 (description
7656 "GNOME backgrounds package contains a collection of graphics files which
7657can be used as backgrounds in the GNOME Desktop environment. Additionally,
7658the package creates the proper framework and directory structure so that you
7659can add your own files to the collection.")
7660 (license (list license:gpl2+
7661 license:cc-by2.0
7662 license:cc-by-sa2.0
7663 license:cc-by-sa3.0))))
7664
b784b1a9
RS
7665(define-public gnome-screenshot
7666 (package
7667 (name "gnome-screenshot")
6acf4033 7668 (version "3.32.0")
b784b1a9
RS
7669 (source
7670 (origin
7671 (method url-fetch)
7672 (uri (string-append "mirror://gnome/sources/" name "/"
7673 (version-major+minor version) "/"
7674 name "-" version ".tar.xz"))
7675 (sha256
7676 (base32
6acf4033 7677 "09ha7dizjm5ymqpjyrqd10ijfb3xlqc1mwg9ajkrbfry11q9yq4b"))))
8356aefa 7678 (build-system meson-build-system)
b784b1a9
RS
7679 (native-inputs
7680 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8356aefa
RW
7681 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
7682 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
b784b1a9 7683 ("intltool" ,intltool)
8356aefa 7684 ("appstream-glib" ,appstream-glib)
b784b1a9
RS
7685 ("pkg-config" ,pkg-config)))
7686 (inputs
7687 `(("gtk+" ,gtk+)
7688 ("libcanberra" ,libcanberra)
7689 ("libx11" ,libx11)
7690 ("libxext" ,libxext)))
676e7cb4 7691 (home-page "https://gitlab.gnome.org/GNOME/gnome-screenshot")
b784b1a9
RS
7692 (synopsis "Take pictures of your screen")
7693 (description
7694 "GNOME Screenshot is a utility used for taking screenshots of the entire
7695screen, a window or a user defined area of the screen, with optional
7696beautifying border effects.")
7697 (license license:gpl2+)))
7698
66d59111
RS
7699(define-public dconf-editor
7700 (package
7701 (name "dconf-editor")
66261451 7702 (version "3.32.0")
66d59111
RS
7703 (source
7704 (origin
7705 (method url-fetch)
7706 (uri (string-append "mirror://gnome/sources/" name "/"
7707 (version-major+minor version) "/"
7708 name "-" version ".tar.xz"))
7709 (sha256
7710 (base32
66261451 7711 "1fmsmlh16njjm948grz20mzrsvb4wjj7pl1fvkrkxqi7mhr177gi"))))
294ff39d 7712 (build-system meson-build-system)
86f2124b
LC
7713 (arguments
7714 '(#:phases (modify-phases %standard-phases
7715 (add-before 'configure 'set-glib-minimum-version
7716 (lambda _
7717 ;; Change the minimum required GLib version so that
7718 ;; 'valac' is passed '--target-glib 2.60.0'; failing to
7719 ;; do that, it complains that "55" is not an even
7720 ;; number. See <https://bugs.gnu.org/37503>.
7721 (substitute* "editor/meson.build"
7722 (("2\\.55\\.1") "2.60.0"))
7723 #t)))))
66d59111
RS
7724 (native-inputs
7725 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
294ff39d 7726 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
66d59111 7727 ("intltool" ,intltool)
294ff39d
RW
7728 ("pkg-config" ,pkg-config)
7729 ("vala" ,vala)))
66d59111
RS
7730 (inputs
7731 `(("dconf" ,dconf)
7732 ("gtk+" ,gtk+)
7733 ("libxml2" ,libxml2)))
7734 (home-page "https://git.gnome.org/browse/dconf-editor")
7735 (synopsis "Graphical editor for GNOME's dconf configuration system")
7736 (description
7737 "Dconf-editor is a graphical tool for browsing and editing the dconf
7738configuration system for GNOME. It allows users to configure desktop
7739software that do not provide their own configuration interface.")
7740 (license license:lgpl2.1+)))
7741
96d36f38
AW
7742(define-public gnome-default-applications
7743 (package
7744 (name "gnome-default-applications")
7745 (version "0")
7746 (build-system trivial-build-system)
7747 (source #f)
7748 (propagated-inputs
8ad4f0aa
LC
7749 `(("nautilus" ,nautilus)
7750 ("evince" ,evince)))
96d36f38
AW
7751 (arguments
7752 `(#:modules ((guix build utils))
7753 #:builder
7754 (begin
7755 (use-modules (guix build utils))
7756 (let* ((out (assoc-ref %outputs "out"))
7757 (apps (string-append out "/share/applications")))
7758 (mkdir-p apps)
7759 (call-with-output-file (string-append apps "/defaults.list")
7760 (lambda (port)
7761 (format port "[Default Applications]\n")
8ad4f0aa
LC
7762 (format port "inode/directory=org.gnome.Nautilus.desktop\n")
7763 (format port "application/pdf=evince.desktop\n")
7764 (format port "application/postscript=evince.desktop\n")))
96d36f38
AW
7765 #t))))
7766 (synopsis "Default MIME type associations for the GNOME desktop")
7767 (description
7768 "Given many installed packages which might handle a given MIME type, a
7769user running the GNOME desktop probably has some preferences: for example,
7770that folders be opened by default by the Nautilus file manager, not the Baobab
7771disk usage analyzer. This package establishes that set of default MIME type
7772associations for GNOME.")
7773 (license license:gpl3+)
7774 (home-page #f)))
7775
3f1ed953
RG
7776(define-public libgovirt
7777 (package
7778 (name "libgovirt")
7779 (version "0.3.6")
7780 (source (origin
7781 (method url-fetch)
7782 (uri (string-append "mirror://gnome/sources/" name "/"
7783 (version-major+minor version) "/"
7784 name "-" version ".tar.xz"))
7785 (sha256
7786 (base32
7787 "19pb71pag3vsi83kbv8h08kimwym4hpw36kjl6a5ik5nk50mc8sg"))))
7788 (build-system glib-or-gtk-build-system)
7789 (native-inputs
7790 `(("gettext" ,gettext-minimal)
7791 ("glib:bin" ,glib "bin")
7792 ("gobject-introspection" ,gobject-introspection)
7793 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7794 ("gtk+:bin" ,gtk+ "bin")
7795 ("pkg-config" ,pkg-config)))
7796 (inputs
7797 `(("glib-networking" ,glib-networking) ; GIO plugin--for the tests
7798 ("librest" ,rest)))
7799 (synopsis "GoVirt Library")
7800 (description "GoVirt is a GObject wrapper for the oVirt REST API.")
7801 (home-page "https://gitlab.gnome.org/GNOME/libgovirt")
7802 (license license:gpl2+)))
7803
8672e5e9
RG
7804(define-public gnome-weather
7805 (package
7806 (name "gnome-weather")
7807 (version "3.34.0")
7808 (source (origin
7809 (method url-fetch)
7810 (uri (string-append "mirror://gnome/sources/" name "/"
7811 (version-major+minor version) "/"
7812 name "-" version ".tar.xz"))
7813 (sha256
7814 (base32
7815 "1g63xzs17i36if923b36k9fwbk0nqa5vz6zh1k6q2axrzhhpx1i4"))))
7816 (build-system meson-build-system)
7817 (native-inputs
7818 `(("gettext" ,gettext-minimal)
7819 ("glib:bin" ,glib "bin")
7820 ("gobject-introspection" ,gobject-introspection)
7821 ("gtk+:bin" ,gtk+ "bin")
7822 ("pkg-config" ,pkg-config)))
7823 (inputs
7824 `( ;("adwaita-icon-theme" ,adwaita-icon-theme)
7825 ("appstream-glib" ,appstream-glib)
7826 ("geoclue" ,geoclue)
7827 ("gdk-pixbuf" ,gdk-pixbuf)
7828 ("gjs" ,gjs)
7829 ("gnome-desktop" ,gnome-desktop)
7830 ("libgweather" ,libgweather)))
7831 (synopsis "Weather monitoring for GNOME desktop")
7832 (description "GNOME Weather is a small application that allows you to
7833monitor the current weather conditions for your city, or anywhere in the
7834world.")
7835 (home-page "https://wiki.gnome.org/Apps/Weather")
7836 (license license:gpl2+)))
7837
dc050251
SB
7838(define-public gnome
7839 (package
7840 (name "gnome")
7841 (version (package-version gnome-shell))
7842 (source #f)
7843 (build-system trivial-build-system)
e3cfef22 7844 (arguments '(#:builder (begin (mkdir %output) #t)))
dc050251 7845 (propagated-inputs
8d8c6bff 7846 ;; TODO: Add or remove packages according to:
a8cda7f5 7847 ;; <https://calc.disroot.org/2nu6mpf88ynq.html>.
7922b6f7 7848 `(
8d8c6bff 7849 ;; GNOME-Core-OS-Services
7922b6f7 7850 ("accountsservice" ,accountsservice)
8d8c6bff
RG
7851 ("network-manager" ,network-manager)
7852 ("packagekit" ,packagekit)
7853 ("upower" ,upower)
7854 ;; GNOME-Core-Shell
7855 ("adwaita-icon-theme" ,adwaita-icon-theme)
7856 ("gdm" ,gdm)
7857 ("glib-networking" ,glib-networking)
7858 ("gnome-backgrounds" ,gnome-backgrounds)
7859 ("gnome-bluetooth" ,gnome-bluetooth)
d36fa50f 7860 ("gnome-color-manager" ,gnome-color-manager)
8d8c6bff
RG
7861 ("gnome-control-center" ,gnome-control-center)
7862 ("gnome-desktop" ,gnome-desktop)
7922b6f7 7863 ("gnome-getting-started-docs" ,gnome-getting-started-docs)
24882d3d 7864 ("gnome-initial-setup" ,gnome-initial-setup)
8d8c6bff 7865 ("gnome-keyring" ,gnome-keyring)
7922b6f7 7866 ("gnome-menus" ,gnome-menus)
8d8c6bff
RG
7867 ("gnome-session" ,gnome-session)
7868 ("gnome-settings-daemon" ,gnome-settings-daemon)
7869 ("gnome-shell-extensions" ,gnome-shell-extensions)
7870 ("gnome-shell" ,gnome-shell)
7871 ("gnome-themes-extra" ,gnome-themes-extra)
7922b6f7 7872 ("gnome-user-docs" ,gnome-user-docs)
d36fa50f 7873 ("gnome-user-share" ,gnome-user-share)
a8cda7f5 7874 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8d8c6bff
RG
7875 ("gvfs" ,gvfs)
7876 ("mutter" ,mutter)
7877 ("orca" ,orca)
d36fa50f
RG
7878 ("rygel" ,rygel)
7879 ("sushi" ,sushi)
8d8c6bff
RG
7880 ;; GNOME-Core-Utilities
7881 ("baobab" ,baobab)
7882 ("cheese" ,cheese)
7883 ("eog" ,eog)
7884 ("epiphany" ,epiphany)
7885 ("evince" ,evince)
7886 ("file-roller" ,file-roller)
7887 ("gedit" ,gedit)
d36fa50f 7888 ; TODO: ("gnome-boxes" ,gnome-boxes)
8d8c6bff
RG
7889 ("gnome-calculator" ,gnome-calculator)
7890 ("gnome-calendar" ,gnome-calendar)
7891 ("gnome-characters" ,gnome-characters)
7892 ("gnome-clocks" ,gnome-clocks)
7893 ("gnome-contacts" ,gnome-contacts)
7894 ("gnome-disk-utility" ,gnome-disk-utility)
7895 ("gnome-font-viewer" ,gnome-font-viewer)
7896 ("gnome-maps" ,gnome-maps)
d36fa50f
RG
7897 ; TODO: ("gnome-music" ,gnome-music)
7898 ; TODO: ("gnome-photos" ,gnome-photos)
8d8c6bff
RG
7899 ("gnome-screenshot" ,gnome-screenshot)
7900 ("gnome-system-monitor" ,gnome-system-monitor)
7901 ("gnome-terminal" ,gnome-terminal)
d36fa50f 7902 ("gnome-weather" ,gnome-weather)
8d8c6bff
RG
7903 ("nautilus" ,nautilus)
7904 ("simple-scan" ,simple-scan)
7905 ("totem" ,totem)
7922b6f7
RG
7906 ("yelp" ,yelp)
7907 ;; Others
7908 ("hicolor-icon-theme" ,hicolor-icon-theme)
7909 ("gnome-online-accounts" ,gnome-online-accounts)))
fe4e698d 7910 (synopsis "The GNU desktop environment")
dc050251
SB
7911 (home-page "https://www.gnome.org/")
7912 (description
fe4e698d
LC
7913 "GNOME is the graphical desktop for GNU. It includes a wide variety of
7914applications for browsing the web, editing text and images, creating
7915documents and diagrams, playing media, scanning, and much more.")
dc050251 7916 (license license:gpl2+)))
4a526711
DT
7917
7918(define-public byzanz
7919 ;; The last stable release of Byzanz was in 2011, but there have been many
7920 ;; useful commits made to the Byzanz repository since then that it would be
7921 ;; silly to use such an old release.
7922 (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
7923 (package
7924 (name "byzanz")
7925 (version (string-append "0.2-1." (string-take commit 7)))
7926 (source (origin
7927 (method git-fetch)
7928 (uri (git-reference
5f13bf09 7929 (url "https://git.gnome.org/browse/byzanz")
4a526711 7930 (commit commit)))
5a6527e4 7931 (file-name (string-append name "-" version "-checkout"))
4a526711
DT
7932 (sha256
7933 (base32
7934 "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
7935 (build-system glib-or-gtk-build-system)
7936 (arguments
7937 '(#:phases
7938 (modify-phases %standard-phases
189be331 7939 (replace 'bootstrap
4a526711
DT
7940 (lambda _
7941 ;; The build system cleverly detects that we're not building from
7942 ;; a release tarball and turns on -Werror for GCC.
7943 ;; Unsurprisingly, there is a warning during compilation that
7944 ;; causes the build to fail unnecessarily, so we remove the flag.
7945 (substitute* '("configure.ac")
7946 (("-Werror") ""))
7947 ;; The autogen.sh script in gnome-common will run ./configure
7948 ;; by default, which is problematic because source shebangs
7949 ;; have not yet been patched.
7950 (setenv "NOCONFIGURE" "t")
7951 (zero? (system* "sh" "autogen.sh")))))))
7952 (native-inputs
7953 `(("autoconf" ,autoconf)
7954 ("automake" ,automake)
7955 ("gnome-common" ,gnome-common)
7956 ("intltool" ,intltool)
7957 ("libtool" ,libtool)
7958 ("pkg-config" ,pkg-config)
7959 ("which" ,which)))
7960 (inputs
7961 `(("glib" ,glib)
7962 ("gstreamer" ,gstreamer)
7963 ("gst-plugins-base" ,gst-plugins-base)
7964 ("gtk+" ,gtk+)))
7965 (synopsis "Desktop recording program")
7966 (description "Byzanz is a simple desktop recording program with a
7967command-line interface. It can record part or all of an X display for a
7968specified duration and save it as a GIF encoded animated image file.")
7969 (home-page "https://git.gnome.org/browse/byzanz")
7970 (license license:gpl2+))))
3a9a4c51 7971
0ec171ec
MS
7972(define-public gsound
7973 (package
7974 (name "gsound")
7975 (version "1.0.2")
7976 (source (origin
7977 (method url-fetch)
7978 (uri (string-append "mirror://gnome/sources/" name "/"
7979 (version-major+minor version) "/"
7980 name "-" version ".tar.xz"))
7981 (sha256
7982 (base32
7983 "0lwfwx2c99qrp08pfaj59pks5dphsnxjgrxyadz065d8xqqgza5v"))))
7984 (build-system glib-or-gtk-build-system)
7985 (native-inputs
7986 `(("pkg-config" ,pkg-config)
7987 ("gobject-introspection" ,gobject-introspection)
7988 ("vala" ,vala)))
7989 (inputs
7990 `(("glib" ,glib)
7991 ("libcanberra" ,libcanberra)))
7992 (home-page "https://wiki.gnome.org/Projects/GSound")
7993 (synopsis "GObject wrapper for libcanberra")
7994 (description
7995 "GSound is a small library for playing system sounds. It's designed to be
7996used via GObject Introspection, and is a thin wrapper around the libcanberra C
7997library.")
7998 (license license:lgpl2.1+)))
7999
3a9a4c51
RS
8000(define-public libzapojit
8001 (package
8002 (name "libzapojit")
8003 (version "0.0.3")
8004 (source (origin
8005 (method url-fetch)
8006 (uri (string-append "mirror://gnome/sources/" name "/"
8007 (version-major+minor version) "/"
8008 name "-" version ".tar.xz"))
8009 (sha256
8010 (base32
8011 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
8012 (build-system gnu-build-system)
8013 (native-inputs
8014 `(("gobject-introspection" ,gobject-introspection)
8015 ("intltool" ,intltool)
8016 ("pkg-config" ,pkg-config)))
8017 (inputs
14c297fd 8018 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
3a9a4c51
RS
8019 ("json-glib" ,json-glib)
8020 ("rest" ,rest)))
8021 (home-page "https://wiki.gnome.org/Projects/Zapojit")
8022 (synopsis "Library for accessing SkyDrive and Hotmail")
8023 (description
8024 "Libzapojit is a GLib-based library for accessing online service APIs of
8025Microsoft SkyDrive and Hotmail, using their REST protocols.")
8026 (license license:lgpl2.1+)))
9365ee1c 8027
60e2a9ae
MS
8028(define-public gnome-clocks
8029 (package
8030 (name "gnome-clocks")
c76d0dbc 8031 (version "3.32.0")
60e2a9ae
MS
8032 (source (origin
8033 (method url-fetch)
8034 (uri (string-append "mirror://gnome/sources/" name "/"
8035 (version-major+minor version) "/"
8036 name "-" version ".tar.xz"))
8037 (sha256
8038 (base32
c76d0dbc 8039 "1w6lgjdak3x76c9gyhd1lqrdmjfh8q77sjnrkcimylsg0jq913bc"))))
60e2a9ae
MS
8040 (build-system meson-build-system)
8041 (arguments
8042 '(#:glib-or-gtk? #t))
8043 (native-inputs
8044 `(("vala" ,vala)
8045 ("pkg-config" ,pkg-config)
8046 ("glib" ,glib "bin") ; for glib-compile-resources
8047 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8048 ("desktop-file-utils" ,desktop-file-utils)
8049 ("gettext" ,gettext-minimal)
8050 ("itstool" ,itstool)))
8051 (inputs
8052 `(("glib" ,glib)
8053 ("gtk+" ,gtk+)
8054 ("gsound" ,gsound)
8055 ("geoclue" ,geoclue)
8056 ("geocode-glib" ,geocode-glib)
8057 ("libgweather" ,libgweather)
8058 ("gnome-desktop" ,gnome-desktop)))
8059 (home-page "https://wiki.gnome.org/Apps/Clocks")
8060 (synopsis "GNOME's clock application")
8061 (description
8062 "GNOME Clocks is a simple clocks application designed to fit the GNOME
8063desktop. It supports world clock, stop watch, alarms, and count down timer.")
8064 (license license:gpl3+)))
8065
3c474897
KY
8066(define-public gnome-calendar
8067 (package
8068 (name "gnome-calendar")
339b59bf 8069 (version "3.32.2")
3c474897
KY
8070 (source (origin
8071 (method url-fetch)
8072 (uri (string-append "mirror://gnome/sources/" name "/"
8073 (version-major+minor version) "/"
8074 name "-" version ".tar.xz"))
8075 (sha256
8076 (base32
339b59bf 8077 "07p73cvzj8idr80npja5yiv9pjfyi6qqfhaz5jwcgqspqbnhnl7k"))))
a49d3e37
MS
8078 (build-system meson-build-system)
8079 (arguments
8080 '(#:glib-or-gtk? #t
8081 ;; gnome-calendar has to be installed before the tests can be run
8082 ;; https://bugzilla.gnome.org/show_bug.cgi?id=788224
8083 #:tests? #f))
3c474897 8084 (native-inputs
a49d3e37
MS
8085 `(("gettext" ,gettext-minimal)
8086 ("glib-bin" ,glib "bin") ; For glib-compile-schemas
8087 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
3c474897
KY
8088 ("pkg-config" ,pkg-config)))
8089 (inputs
a49d3e37 8090 `(("evolution-data-server" ,evolution-data-server)
14c297fd 8091 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
a286b5eb
RW
8092 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8093 ("libdazzle" ,libdazzle)
b63c06f1 8094 ("libedataserverui" ,evolution-data-server)
a286b5eb
RW
8095 ("libgweather" ,libgweather)
8096 ("geoclue" ,geoclue)))
3c474897
KY
8097 (home-page "https://wiki.gnome.org/Apps/Calendar")
8098 (synopsis "GNOME's calendar application")
8099 (description
8100 "GNOME Calendar is a simple calendar application designed to fit the GNOME
a49d3e37 8101desktop. It supports multiple calendars, month, week and year view.")
3c474897
KY
8102 (license license:gpl3+)))
8103
57b14665
MS
8104(define-public gnome-todo
8105 (package
8106 (name "gnome-todo")
9f3c6c88 8107 (version "3.28.1")
57b14665
MS
8108 (source (origin
8109 (method url-fetch)
8110 (uri (string-append "mirror://gnome/sources/" name "/"
8111 (version-major+minor version) "/"
8112 name "-" version ".tar.xz"))
8113 (sha256
8114 (base32
9f3c6c88 8115 "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"))))
57b14665
MS
8116 (build-system meson-build-system)
8117 (arguments
8118 '(#:glib-or-gtk? #t
8119 #:phases (modify-phases %standard-phases
8120 (add-after
8121 'install 'wrap-gnome-todo
8122 (lambda* (#:key inputs outputs #:allow-other-keys)
8123 (let ((out (assoc-ref outputs "out"))
8124 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
8125 (python-path (getenv "PYTHONPATH")))
8126 (wrap-program (string-append out "/bin/gnome-todo")
8127 ;; XXX: gi plugins are broken.
8128 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=787212
8129 ;; For plugins.
8130 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
8131 `("PYTHONPATH" ":" prefix (,python-path))))
8132 #t)))))
8133 (native-inputs
8134 `(("gettext" ,gettext-minimal)
8135 ("gobject-introspection" ,gobject-introspection)
8136 ("glib:bin" ,glib "bin") ; For glib-compile-resources
8137 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
8138 ("pkg-config" ,pkg-config)))
8139 (inputs
8140 `(("rest" ,rest) ; For Todoist plugin
8141 ("json-glib" ,json-glib) ; For Todoist plugin
b63c06f1 8142 ("libedataserverui" ,evolution-data-server)
57b14665
MS
8143 ("libical" ,libical)
8144 ("libpeas" ,libpeas)
8145 ("python-pygobject" ,python-pygobject)
8146 ("evolution-data-server" ,evolution-data-server)
14c297fd 8147 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
57b14665
MS
8148 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
8149 (home-page "https://wiki.gnome.org/Apps/Todo")
8150 (synopsis "GNOME's ToDo Application")
8151 (description
8152 "GNOME To Do is a simplistic personal task manager designed to perfectly
8153fit the GNOME desktop.")
8154 (license license:gpl3+)))
8155
ab179eaf
SB
8156(define-public gnome-dictionary
8157 (package
8158 (name "gnome-dictionary")
cf81ddef 8159 (version "3.26.1")
ab179eaf
SB
8160 (source (origin
8161 (method url-fetch)
8162 (uri (string-append "mirror://gnome/sources/" name "/"
8163 (version-major+minor version) "/"
8164 name "-" version ".tar.xz"))
8165 (sha256
8166 (base32
cf81ddef
LC
8167 "007k2bq8iplg4psdpz074r5d4zxvn4s95qym4rw9hs6giljbrf0n"))))
8168 (build-system meson-build-system)
2776b5d5
MB
8169 (arguments '(#:glib-or-gtk? #t
8170 #:phases (modify-phases %standard-phases
8171 (add-after 'unpack 'patch-install-script
8172 (lambda _
8173 ;; This script attempts to compile glib schemas
8174 ;; and create an empty MIME database. We do
8175 ;; that elsewhere, so prevent it from running.
8176 (substitute* "build-aux/post-install.sh"
8177 (("\\[ -z \"\\$DESTDIR\" \\]") "false"))
8178 #t)))))
ab179eaf
SB
8179 (native-inputs
8180 `(("glib:bin" ,glib "bin")
8181 ("gobject-introspection" ,gobject-introspection)
8182 ("intltool" ,intltool)
8183 ("itstool" ,itstool)
8184 ("pkg-config" ,pkg-config)
8185 ("xmllint" ,libxml2)))
8186 (inputs
8187 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8188 ("gtk+" ,gtk+)))
8189 (home-page "https://wiki.gnome.org/Apps/Dictionary")
8190 (synopsis "Look up words in dictionary sources")
8191 (description
8192 "GNOME Dictionary can look for the definition or translation of a word in
8193existing databases over the internet.")
8194 (license license:gpl3+)))
8195
d13f3a03 8196(define-public gnome-tweaks
9365ee1c 8197 (package
d13f3a03 8198 (name "gnome-tweaks")
652af676 8199 (version "3.32.0")
9365ee1c
JN
8200 (source (origin
8201 (method url-fetch)
d13f3a03 8202 (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
9365ee1c 8203 (version-major+minor version) "/"
d13f3a03
RW
8204 "gnome-tweaks-" version ".tar.xz"))
8205 (patches
8206 (list (search-patch "gnome-tweaks-search-paths.patch")))
9365ee1c
JN
8207 (sha256
8208 (base32
652af676 8209 "037r35cw34ifcs676fq9n2v4mh1nkqx0qk474bznf18mr6r62h55"))))
d13f3a03 8210 (build-system meson-build-system)
9365ee1c 8211 (arguments
d13f3a03
RW
8212 `(#:glib-or-gtk? #t
8213 #:configure-flags '("-Dlocalstatedir=/tmp"
8214 "-Dsysconfdir=/tmp")
9365ee1c 8215 #:imported-modules ((guix build python-build-system)
d13f3a03
RW
8216 ,@%meson-build-system-modules)
8217 #:phases
8218 (modify-phases %standard-phases
8219 (add-after 'install 'wrap
8220 (@@ (guix build python-build-system) wrap))
8221 (add-after 'wrap 'wrap-gi-typelib
8222 (lambda* (#:key inputs outputs #:allow-other-keys)
8223 (let ((out (assoc-ref outputs "out"))
8224 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
8225 (wrap-program (string-append out "/bin/gnome-tweaks")
8226 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
8227 #t)))))
9365ee1c 8228 (native-inputs
c7fc414e
RH
8229 `(("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
8230 ("intltool" ,intltool)
9365ee1c
JN
8231 ("pkg-config" ,pkg-config)))
8232 (inputs
c7fc414e
RH
8233 `(("gnome-desktop" ,gnome-desktop)
8234 ("gtk+" ,gtk+)
9365ee1c
JN
8235 ("gobject-introspection" ,gobject-introspection)
8236 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
c7fc414e
RH
8237 ("libnotify" ,libnotify)
8238 ("libsoup" ,libsoup)
8239 ("nautilus" ,nautilus)
8240 ("python" ,python)
8241 ("python-pygobject" ,python-pygobject)))
9365ee1c 8242 (synopsis "Customize advanced GNOME 3 options")
d13f3a03 8243 (home-page "https://wiki.gnome.org/Apps/Tweaks")
9365ee1c 8244 (description
d13f3a03 8245 "GNOME Tweaks allows adjusting advanced configuration settings in
9365ee1c
JN
8246GNOME 3. This includes things like the fonts used in user interface elements,
8247alternative user interface themes, changes in window management behavior,
8248GNOME Shell appearance and extension, etc.")
8249 (license license:gpl3+)))
813f814a 8250
d13f3a03
RW
8251;; This package has been renamed by upstream.
8252(define-public gnome-tweak-tool
8253 (deprecated-package "gnome-tweak-tool" gnome-tweaks))
8254
32ac717c
DT
8255(define-public gnome-shell-extensions
8256 (package
8257 (name "gnome-shell-extensions")
ae4c05e0 8258 (version "3.32.1")
32ac717c
DT
8259 (source (origin
8260 (method url-fetch)
8261 (uri (string-append "mirror://gnome/sources/" name "/"
8262 (version-major+minor version) "/"
8263 name "-" version ".tar.xz"))
8264 (sha256
8265 (base32
ae4c05e0 8266 "07libf6z24n42hpdsq163w0j8xyrav0lxqrwxrvq5kbz8zxv5ch2"))))
100f625b 8267 (build-system meson-build-system)
32ac717c 8268 (arguments
100f625b 8269 '(#:configure-flags '("-Dextension_set=all")))
32ac717c 8270 (native-inputs
c9ea8873
LP
8271 `(("glib:bin" ,glib "bin")
8272 ("intltool" ,intltool)
32ac717c
DT
8273 ("pkg-config" ,pkg-config)))
8274 (propagated-inputs
c9ea8873 8275 `(("glib" ,glib)))
32ac717c
DT
8276 (synopsis "Extensions for GNOME Shell")
8277 (description "GNOME Shell extensions modify and extend GNOME Shell
8278functionality and behavior.")
8279 (home-page "https://extensions.gnome.org/")
8280 (license license:gpl3+)))
8281
813f814a
DT
8282(define-public arc-theme
8283 (package
8284 (name "arc-theme")
37781323 8285 (version "20190917")
813f814a 8286 (source (origin
a18f8eaf
BH
8287 (method git-fetch)
8288 (uri (git-reference
8289 (url "https://github.com/NicoHood/arc-theme.git")
8290 (commit version)))
8291 (file-name (git-file-name name version))
813f814a
DT
8292 (sha256
8293 (base32
37781323 8294 "1qgpk4p2hi5hd4yy0hj93kq1vs0b32wb8qkaj1wi90c8gwddq5wa"))))
813f814a 8295 (build-system gnu-build-system)
d88884fa
EF
8296 (arguments
8297 '(#:phases
8298 (modify-phases %standard-phases
8299 ;; autogen.sh calls configure at the end of the script.
8300 (replace 'bootstrap
4690e3a4
MC
8301 (lambda _ (invoke "autoreconf" "-vfi")))
8302 (add-before 'build 'set-home ;placate Inkscape
8303 (lambda _
8304 (setenv "HOME" (getcwd))
8305 #t)))))
813f814a
DT
8306 (native-inputs
8307 `(("autoconf" ,autoconf)
8308 ("automake" ,automake)
a18f8eaf
BH
8309 ("glib" ,glib "bin") ; for glib-compile-resources
8310 ("gnome-shell" ,gnome-shell)
8311 ("gtk+" ,gtk+)
8312 ("inkscape" ,inkscape)
8313 ("optipng" ,optipng)
8314 ("pkg-config" ,pkg-config)
bed24ecf 8315 ("sassc" ,sassc/libsass-3.5)))
813f814a
DT
8316 (synopsis "A flat GTK+ theme with transparent elements")
8317 (description "Arc is a flat theme with transparent elements for GTK 3, GTK
83182, and GNOME Shell which supports GTK 3 and GTK 2 based desktop environments
8319like GNOME, Unity, Budgie, Pantheon, XFCE, Mate, etc.")
8320 (home-page "https://github.com/horst3180/arc-theme")
8321 ;; No "or later" language found.
a18f8eaf 8322 (license license:gpl3+)))
9987c57c 8323
d935e6a1 8324(define-public faba-icon-theme
9987c57c 8325 (package
d935e6a1 8326 (name "faba-icon-theme")
2eee7ee3 8327 (version "4.3")
d935e6a1
BT
8328 (source
8329 (origin
757e4027
TGR
8330 (method git-fetch)
8331 (uri (git-reference
8332 (url "https://github.com/snwh/faba-icon-theme.git")
8333 (commit (string-append "v" version))))
8334 (file-name (git-file-name name version))
d935e6a1 8335 (sha256
757e4027 8336 (base32 "0xh6ppr73p76z60ym49b4d0liwdc96w41cc5p07d48hxjsa6qd6n"))))
f6a9b345 8337 (build-system meson-build-system)
9987c57c 8338 (arguments
82da291a 8339 `(#:phases
9987c57c 8340 (modify-phases %standard-phases
82da291a 8341 (add-before 'configure 'disable-post-install
9987c57c 8342 (lambda _
82da291a
JL
8343 (substitute* "meson.build"
8344 (("meson.add_install_script.*") "")))))))
9987c57c
DT
8345 (native-inputs
8346 `(("autoconf" ,autoconf)
8347 ("automake" ,automake)))
d935e6a1
BT
8348 (synopsis "Faba icon theme")
8349 (description
8350 "Faba is a minimal icon set used as a basis for other themes such as
8351Moka")
8352 (home-page "https://snwh.org/moka")
8353 (license (list license:lgpl3+
8354 license:cc-by-sa4.0))))
8355
9987c57c
DT
8356(define-public moka-icon-theme
8357 (package
8b0e4177 8358 (inherit faba-icon-theme)
9987c57c 8359 (name "moka-icon-theme")
105a3625 8360 (version "5.4.0")
8c3f2170
TGR
8361 (source
8362 (origin
8363 (method git-fetch)
8364 (uri (git-reference
8365 (url "https://github.com/snwh/moka-icon-theme.git")
8366 (commit (string-append "v" version))))
8367 (file-name (git-file-name name version))
8368 (sha256
8369 (base32 "015l02im4mha5z91dbchxf6xkp66d346bg3xskwg0rh3lglhjsrd"))))
550281fb
BT
8370 (propagated-inputs
8371 ;; Moka is based on Faba by using it as a fallback icon set instead of
8372 ;; bundling it, so we need to add it as a propagated input.
8373 `(("faba-icon-theme" ,faba-icon-theme)))
9987c57c
DT
8374 (synopsis "Moka icon theme")
8375 (description "Moka is a stylized desktop icon set, designed to be clear,
8376simple and consistent.")
fedde43b
BT
8377 (license (list license:gpl3+
8378 license:cc-by-sa4.0))))
6fd8f8d6
DT
8379
8380(define-public arc-icon-theme
8381 (package
8382 (name "arc-icon-theme")
c4180240 8383 (version "20161122")
bbf66cbf
TGR
8384 (source
8385 (origin
8386 (method git-fetch)
8387 (uri (git-reference
8388 (url "https://github.com/horst3180/arc-icon-theme.git")
8389 (commit version)))
8390 (file-name (git-file-name name version))
8391 (sha256
8392 (base32 "1ch3hp08qri93510hypzz6m2x4xgg2h15wvnhjwh1x1s1b7jvxjd"))))
6fd8f8d6 8393 (build-system gnu-build-system)
9e1ede95
JL
8394 (arguments
8395 `(#:phases
8396 (modify-phases %standard-phases
8397 (add-after 'unpack 'disable-configure-during-bootstrap
8398 (lambda _
8399 (substitute* "autogen.sh"
8400 (("^\"\\$srcdir/configure\".*") ""))
8401 #t)))))
6fd8f8d6
DT
8402 (native-inputs
8403 `(("autoconf" ,autoconf)
8404 ("automake" ,automake)))
8405 ;; When Arc is missing an icon, it looks in the Moka icon theme for it.
8406 (propagated-inputs
8407 `(("moka-icon-theme" ,moka-icon-theme)))
8408 (synopsis "Arc icon theme")
8409 (description "The Arc icon theme provides a set of icons matching the
8410style of the Arc GTK theme. Icons missing from the Arc theme are provided by
8411the Moka icon theme.")
8412 (home-page "https://github.com/horst3180/arc-icon-theme")
8413 (license license:gpl3+)))
6064a4e8
LF
8414
8415(define-public folks
8416 (package
8417 (name "folks")
d23495fa 8418 (version "0.11.4")
6064a4e8
LF
8419 (source (origin
8420 (method url-fetch)
8421 (uri (string-append
e5f4796e 8422 "mirror://gnome/sources/folks/"
6064a4e8 8423 (version-major+minor version) "/"
e5f4796e 8424 "folks-" version ".tar.xz"))
6064a4e8
LF
8425 (sha256
8426 (base32
d23495fa 8427 "16hqh2gxlbx0b0hgq216hndr1m72vj54jvryzii9zqkk0g9kxc57"))))
6064a4e8
LF
8428 (build-system glib-or-gtk-build-system)
8429 (inputs
8430 `(("bdb" ,bdb)
8431 ("dbus-glib" ,dbus-glib)
8432 ("evolution-data-server" ,evolution-data-server)
8433 ("glib" ,glib)
8434 ("libgee" ,libgee)
8435 ("telepathy-glib" ,telepathy-glib)))
8436 (native-inputs
8437 `(("gobject-introspection" ,gobject-introspection)
8438 ("intltool" ,intltool)
8439 ("pkg-config" ,pkg-config)
8440 ("vala" ,vala)))
8441 (synopsis "Library to aggregate data about people")
8442 (description "Libfolks is a library that aggregates information about people
8443from multiple sources (e.g., Telepathy connection managers for IM contacts,
8444Evolution Data Server for local contacts, libsocialweb for web service contacts,
8445etc.) to create metacontacts. It's written in Vala, which generates C code when
8446compiled.")
8447 (home-page "https://wiki.gnome.org/Projects/Folks")
8448 (license license:lgpl2.1+)))
01ea778f
LF
8449
8450(define-public gfbgraph
8451 (package
8452 (name "gfbgraph")
8453 (version "0.2.3")
8454 (source (origin
8455 (method url-fetch)
8456 (uri (string-append
237d4cf7 8457 "mirror://gnome/sources/gfbgraph/"
01ea778f 8458 (version-major+minor version) "/"
237d4cf7 8459 "gfbgraph-" version ".tar.xz"))
01ea778f
LF
8460 (sha256
8461 (base32
8462 "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs"))))
8463 (build-system glib-or-gtk-build-system)
8464 (arguments
8465 `(#:tests? #f ; Tests appear to require the network.
8466 ;; FIXME --enable-gtk-doc fails even with gtk-doc as a native-input.
8467 #:configure-flags '("--disable-gtk-doc"
8468 "--disable-static"
8469 "--enable-introspection")))
8470 (native-inputs
8471 `(("pkg-config" ,pkg-config)
8472 ("gobject-introspection" ,gobject-introspection)))
8473 (inputs
8474 `(("json-glib" ,json-glib)
14c297fd 8475 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
01ea778f
LF
8476 ("rest" ,rest)))
8477 (synopsis "GLib/GObject wrapper for the Facebook API")
8478 (description "This library allows you to use the Facebook API from
8479GLib/GObject code.")
8480 (home-page "https://wiki.gnome.org/Projects/GFBGraph")
8481 (license license:lgpl2.1+)))
3920868c 8482
8483(define-public libgnomekbd
8484 (package
8485 (name "libgnomekbd")
70f2b0f9 8486 (version "3.26.1")
3920868c 8487 (source (origin
8488 (method url-fetch)
d47fa82d 8489 (uri (string-append "mirror://gnome/sources/libgnomekbd/"
3920868c 8490 (version-major+minor version) "/"
d47fa82d 8491 "libgnomekbd-" version ".tar.xz"))
3920868c 8492 (sha256
8493 (base32
70f2b0f9 8494 "0y962ykn3rr9gylj0pwpww7bi20lmhvsw6qvxs5bisbn2mih5jpp"))))
3920868c 8495 (build-system gnu-build-system)
8496 (native-inputs
8497 `(("pkg-config" ,pkg-config)
8498 ("glib" ,glib "bin")
8499 ("intltool" ,intltool)))
8500 (propagated-inputs
8501 ;; Referred to in .h files and .pc.
8502 `(("glib" ,glib)
8503 ("gtk+" ,gtk+)
8504 ("libxklavier" ,libxklavier)))
8505 (home-page "https://www.gnome.org")
8506 (synopsis "GNOME keyboard configuration library")
8507 (description
8508 "Libgnomekbd is a keyboard configuration library for the GNOME desktop
8509environment, which can notably display keyboard layouts.")
8510 (license license:lgpl2.0+)))
85327d0d 8511
8512;;; This package is no longer maintained:
8513;;; https://wiki.gnome.org/Attic/LibUnique
8514;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
8515;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
8516(define-public libunique
8517 (package
8518 (name "libunique")
8519 (version "3.0.2")
8520 (source (origin
8521 (method url-fetch)
8522 (uri (string-append "mirror://gnome/sources/" name "/"
8523 (version-major+minor version) "/"
8524 name "-" version ".tar.xz"))
8525 (sha256
8526 (base32
8527 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
8528 (build-system glib-or-gtk-build-system)
8529 (arguments
8530 `(#:configure-flags '("--disable-static"
8531 "--disable-dbus" ; use gdbus
8532 "--enable-introspection")))
8533 (native-inputs
8534 `(("pkg-config" ,pkg-config)
8535 ("gobject-introspection" ,gobject-introspection)
8536 ("glib:bin" ,glib "bin")
8537 ("gtk-doc" ,gtk-doc)))
8538 (propagated-inputs
8539 ;; Referred to in .h files and .pc.
8540 `(("gtk+" ,gtk+)))
8541 (home-page "https://wiki.gnome.org/Attic/LibUnique")
8542 (synopsis "Library for writing single instance applications")
8543 (description
8544 "Libunique is a library for writing single instance applications. If you
8545launch a single instance application twice, the second instance will either just
8546quit or will send a message to the running instance. Libunique makes it easy to
8547write this kind of application, by providing a base class, taking care of all
8548the IPC machinery needed to send messages to a running instance, and also
8549handling the startup notification side.")
8550 (license license:lgpl2.1+)))
54021cd8
RS
8551
8552(define-public gnome-calculator
8553 (package
8554 (name "gnome-calculator")
07ace641 8555 (version "3.32.2")
54021cd8
RS
8556 (source
8557 (origin
8558 (method url-fetch)
8559 (uri (string-append "mirror://gnome/sources/" name "/"
8560 (version-major+minor version) "/"
8561 name "-" version ".tar.xz"))
8562 (sha256
8563 (base32
07ace641 8564 "0fgpn3sc226s9fpzhik5rkkrf669037gc659ga2kn9jsyckj6p41"))))
2d475910
RW
8565 (build-system meson-build-system)
8566 (arguments '(#:glib-or-gtk? #t))
54021cd8
RS
8567 (native-inputs
8568 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
2d475910 8569 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
54021cd8
RS
8570 ("intltool" ,intltool)
8571 ("itstool" ,itstool)
2d475910 8572 ("vala" ,vala)
54021cd8
RS
8573 ("pkg-config" ,pkg-config)))
8574 (inputs
112e9083 8575 `(("glib" ,glib)
07ace641 8576 ("gtksourceview" ,gtksourceview)
54021cd8 8577 ("libsoup" ,libsoup)
112e9083 8578 ("libxml2" ,libxml2)
2c2da7ec 8579 ("mpc" ,mpc)
54021cd8
RS
8580 ("mpfr" ,mpfr)))
8581 (home-page "https://wiki.gnome.org/Apps/Calculator")
8582 (synopsis "Desktop calculator")
8583 (description
8584 "Calculator is an application that solves mathematical equations and
8585is suitable as a default application in a Desktop environment.")
8586 (license license:gpl3)))
0bd69759
RS
8587
8588(define-public xpad
8589 (package
8590 (name "xpad")
c85626bb 8591 (version "5.1.0")
0bd69759
RS
8592 (source
8593 (origin
8594 (method url-fetch)
08fda9c6
R
8595 (uri (string-append "https://launchpad.net/xpad/trunk/"
8596 version "/+download/"
0bd69759
RS
8597 name "-" version ".tar.bz2"))
8598 (sha256
8599 (base32
c85626bb 8600 "0l0g5x8g6dwhf5ksnqqrjjsycy57kcvdslkmsr6bl3vrsjd7qml3"))))
0bd69759
RS
8601 (build-system gnu-build-system)
8602 (native-inputs
08fda9c6
R
8603 `(("autoconf" ,autoconf)
8604 ("automake" ,automake)
8605 ("gtk+:bin" ,gtk+ "bin")
8606 ("intltool" ,intltool)
0bd69759
RS
8607 ("pkg-config" ,pkg-config)))
8608 (inputs
c72647fb 8609 `(("gtksourceview" ,gtksourceview-3)
0bd69759
RS
8610 ("libsm" ,libsm)))
8611 (home-page "https://wiki.gnome.org/Apps/Xpad")
8612 (synopsis "Virtual sticky note")
8613 (description
8614 "Xpad is a sticky note that strives to be simple, fault tolerant,
8615and customizable. Xpad consists of independent pad windows, each is
8616basically a text box in which notes can be written.")
8617 (license license:gpl3+)))
3ad7dce1
RS
8618
8619(define-public gucharmap
c60063ea
RW
8620 (let ((unicode-files
8621 '(("Blocks.txt"
1f8b5515 8622 "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1")
c60063ea 8623 ("DerivedAge.txt"
1f8b5515 8624 "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6")
c60063ea 8625 ("NamesList.txt"
1f8b5515 8626 "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61")
c60063ea 8627 ("Scripts.txt"
1f8b5515 8628 "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx")
c60063ea 8629 ("UnicodeData.txt"
1f8b5515 8630 "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap")
c60063ea 8631 ("Unihan.zip"
1f8b5515 8632 "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"))))
c60063ea
RW
8633 (package
8634 (name "gucharmap")
1f8b5515 8635 (version "12.0.1")
c60063ea
RW
8636 (source
8637 (origin
8638 (method url-fetch)
8639 (uri (string-append "mirror://gnome/sources/" name "/"
8640 (version-major+minor version) "/"
8641 name "-" version ".tar.xz"))
8642 (sha256
8643 (base32
1f8b5515 8644 "0m915hm2b2d6r3vs1l80rqpssvg78pv8j6nv54yg62kzknnqmpir"))))
c60063ea
RW
8645 (build-system glib-or-gtk-build-system)
8646 (arguments
8647 `(#:modules ((ice-9 match)
8648 (guix build glib-or-gtk-build-system)
8649 (guix build utils))
8650 #:configure-flags
8651 (list "--with-unicode-data=../unicode-data")
8652 #:phases
8653 (modify-phases %standard-phases
8654 (add-after 'unpack 'prepare-unicode-data
8655 (lambda* (#:key inputs #:allow-other-keys)
8656 (mkdir-p "../unicode-data")
8657 (with-directory-excursion "../unicode-data"
8658 (for-each (match-lambda
8659 ((file _)
8660 (install-file (assoc-ref inputs file) ".")))
8661 ',unicode-files))
8662 #t)))))
8663 (native-inputs
8664 `(("desktop-file-utils" ,desktop-file-utils)
8665 ("glib:bin" ,glib "bin") ; for glib-compile-resources.
8666 ("gobject-introspection" ,gobject-introspection)
8667 ("intltool" ,intltool)
8668 ("itstool" ,itstool)
8669 ("pkg-config" ,pkg-config)
8670 ,@(map (match-lambda
8671 ((file hash)
8672 `(,file
8673 ,(origin
8674 (method url-fetch)
8675 (uri (string-append
1f8b5515 8676 "http://www.unicode.org/Public/12.0.0/ucd/"
c60063ea
RW
8677 file))
8678 (sha256 (base32 hash))))))
8679 unicode-files)
8680 ("unzip" ,unzip)))
8681 (inputs
8682 `(("gtk+" ,gtk+)
8683 ("xmllint" ,libxml2)))
8684 (home-page "https://wiki.gnome.org/Apps/Gucharmap")
8685 (synopsis "Unicode character picker and font browser")
8686 (description
8687 "This program allows you to browse through all the available Unicode
3ad7dce1
RS
8688characters and categories for the installed fonts, and to examine their
8689detailed properties. It is an easy way to find the character you might
8690only know by its Unicode name or code point.")
c60063ea 8691 (license license:gpl3+))))
04ce840a
RS
8692
8693(define-public bluefish
8694 (package
8695 (name "bluefish")
ea8afaf3 8696 (version "2.2.10")
04ce840a
RS
8697 (source
8698 (origin
8699 (method url-fetch)
8700 (uri (string-append "http://www.bennewitz.com/bluefish/stable/source/"
8701 name "-" version ".tar.gz"))
8702 (sha256
8703 (base32
ea8afaf3 8704 "1jw4has7lbp77lqmzvnnjmqcf0lacjfnka873lkkwdyrpzc4c1q4"))))
04ce840a
RS
8705 (build-system gnu-build-system)
8706 (native-inputs
8707 `(("desktop-file-utils" ,desktop-file-utils)
8708 ("intltool" ,intltool)
8709 ("pkg-config" ,pkg-config)))
8710 (inputs
8711 `(("enchant" ,enchant)
8712 ("gtk+" ,gtk+)
8713 ("python" ,python-2)
8714 ("xmllint" ,libxml2)
8715 ("gucharmap" ,gucharmap)))
8716 (home-page "http://bluefish.openoffice.nl")
8717 (synopsis "Web development studio")
8718 (description
8719 "Bluefish is an editor targeted towards programmers and web developers,
8720with many options to write web sites, scripts and other code.
8721Bluefish supports many programming and markup languages.")
8722 (license license:gpl3+)))
1f6a73ee
RS
8723
8724(define-public gnome-system-monitor
8725 (package
8726 (name "gnome-system-monitor")
083cffaf 8727 (version "3.32.1")
1f6a73ee
RS
8728 (source
8729 (origin
8730 (method url-fetch)
8731 (uri (string-append "mirror://gnome/sources/" name "/"
8732 (version-major+minor version) "/"
8733 name "-" version ".tar.xz"))
8734 (sha256
8735 (base32
083cffaf 8736 "1wd43qdgjav6xamq5z5cy8fri5zr01jga3plc9w95gcia0rk3ha8"))))
85fb3df3
RW
8737 (build-system meson-build-system)
8738 (arguments
8739 '(#:glib-or-gtk? #t
8740 #:configure-flags '("-Dsystemd=false")))
1f6a73ee
RS
8741 (native-inputs
8742 `(("glib:bin" ,glib "bin") ; for glib-mkenums.
85fb3df3 8743 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
1f6a73ee
RS
8744 ("intltool" ,intltool)
8745 ("itstool" ,itstool)
8746 ("libgtop" ,libgtop)
4985d9aa 8747 ("polkit" ,polkit)
1f6a73ee
RS
8748 ("pkg-config" ,pkg-config)))
8749 (inputs
8750 `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
8751 ("gtk+" ,gtk+)
8752 ("gtkmm" ,gtkmm)
8753 ("librsvg" ,librsvg)
4985d9aa
RW
8754 ("libxml2" ,libxml2)
8755 ("libwnck" ,libwnck)))
1f6a73ee
RS
8756 (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
8757 (synopsis "Process viewer and system resource monitor for GNOME")
8758 (description
8759 "GNOME System Monitor is a GNOME process viewer and system monitor with
8760an attractive, easy-to-use interface. It has features, such as a tree view
8761for process dependencies, icons for processes, the ability to hide processes,
8762graphical time histories of CPU/memory/swap usage and the ability to
8763kill/reinice processes.")
8764 (license license:gpl2+)))
3e00ac47
SB
8765
8766(define-public python-pyatspi
8767 (package
8768 (name "python-pyatspi")
4f937a32 8769 (version "2.34.0")
3e00ac47
SB
8770 (source (origin
8771 (method url-fetch)
8772 (uri (string-append
8773 "mirror://gnome/sources/pyatspi/"
8774 (version-major+minor version)
8775 "/pyatspi-" version ".tar.xz"))
8776 (sha256
8777 (base32
4f937a32 8778 "0j3f75j0zd6ca8msg7yr19qsfirqkn9fk8pqbjnlhqrpri455g4p"))))
3e00ac47 8779 (build-system gnu-build-system)
b95af3f6
JL
8780 (arguments
8781 `(#:phases
8782 (modify-phases %standard-phases
8783 (add-before 'build 'fix-atk-load
8784 (lambda _
8785 (substitute* "pyatspi/__init__.py"
8786 (("from gi.repository import Atspi")
8787 "gi.require_version('Gtk', '3.0')
8788from gi.repository import Gtk
8789from gi.repository import Atspi"))
8790 #t)))))
3e00ac47
SB
8791 (native-inputs
8792 `(("pkg-config" ,pkg-config)))
8793 (inputs
8794 `(("python" ,python)
8795 ("python-pygobject" ,python-pygobject)))
8796 (synopsis "Python client bindings for D-Bus AT-SPI")
8797 (home-page "https://wiki.linuxfoundation.org/accessibility\
8798/atk/at-spi/at-spi_on_d-bus")
8799 (description
8800 "This package includes a python client library for the AT-SPI D-Bus
8801accessibility infrastructure.")
8802 (license license:lgpl2.0)
8803 (properties '((upstream-name . "pyatspi")))))
53201c0d
SB
8804
8805(define-public orca
8806 (package
8807 (name "orca")
089e8585 8808 (version "3.32.0")
53201c0d
SB
8809 (source (origin
8810 (method url-fetch)
8811 (uri (string-append
8812 "mirror://gnome/sources/" name "/"
8813 (version-major+minor version) "/"
8814 name "-" version ".tar.xz"))
8815 (sha256
8816 (base32
089e8585 8817 "05jqzlg0f1x53hyl0l9282ynmw37159g6dsbrid12b7sjs12cc1i"))))
53201c0d
SB
8818 (build-system glib-or-gtk-build-system)
8819 (arguments
8820 '(#:phases
8821 (modify-phases %standard-phases
8822 (add-before 'configure 'qualify-xkbcomp
8823 (lambda* (#:key inputs #:allow-other-keys)
8824 (let ((xkbcomp (string-append
8825 (assoc-ref inputs "xkbcomp") "/bin/xkbcomp")))
8826 (substitute* "src/orca/orca.py"
8827 (("'xkbcomp'") (format #f "'~a'" xkbcomp))))
8828 #t))
8829 (add-after 'install 'wrap-orca
8830 (lambda* (#:key outputs #:allow-other-keys)
8831 (let* ((out (assoc-ref outputs "out"))
8832 (prog (string-append out "/bin/orca")))
8833 (wrap-program prog
8834 `("GI_TYPELIB_PATH" ":" prefix
8835 (,(getenv "GI_TYPELIB_PATH")))
8836 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
8837 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
8838 `("PYTHONPATH" ":" prefix
8839 (,(getenv "PYTHONPATH")))))
8840 #t)))))
8841 (native-inputs
8842 `(("intltool" ,intltool)
8843 ("itstool" ,itstool)
8844 ("pkg-config" ,pkg-config)
8845 ("xmllint" ,libxml2)))
8846 (inputs
8847 `(("at-spi2-atk" ,at-spi2-atk)
8848 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8849 ("gstreamer" ,gstreamer)
8850 ("gst-plugins-base" ,gst-plugins-base)
8851 ("gst-plugins-good" ,gst-plugins-good)
8852 ("gtk+" ,gtk+)
8853 ("python" ,python)
8854 ("python-pygobject" ,python-pygobject)
8855 ("python-pyatspi" ,python-pyatspi)
8856 ("python-speechd" ,speech-dispatcher)
8857 ("xkbcomp" ,xkbcomp)))
8858 (synopsis
8859 "Screen reader for individuals who are blind or visually impaired")
8860 (home-page "https://wiki.gnome.org/Projects/Orca")
8861 (description
8862 "Orca is a screen reader that provides access to the graphical desktop
8863via speech and refreshable braille. Orca works with applications and toolkits
8864that support the Assistive Technology Service Provider Interface (AT-SPI).")
8865 (license license:lgpl2.1+)))
411ba511
LC
8866
8867(define-public gspell
8868 (package
8869 (name "gspell")
7a6bbe9b 8870 (version "1.8.2")
411ba511
LC
8871 (source (origin
8872 (method url-fetch)
8873 (uri (string-append "mirror://gnome/sources/" name "/"
8874 (version-major+minor version) "/"
8875 name "-" version ".tar.xz"))
8876 (sha256
8877 (base32
7a6bbe9b 8878 "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
411ba511
LC
8879 (patches (search-patches "gspell-dash-test.patch"))))
8880 (build-system glib-or-gtk-build-system)
8881 (arguments
8882 '(#:phases
8883 (modify-phases %standard-phases
8884 (add-before 'check 'pre-check
8885 (lambda* (#:key inputs #:allow-other-keys)
8886 ;; Tests require a running X server.
8887 (system "Xvfb :1 &")
8888 (setenv "DISPLAY" ":1")
8889
8890 ;; For the missing /etc/machine-id.
8891 (setenv "DBUS_FATAL_WARNINGS" "0")
8892
8893 ;; Allow Enchant and its Aspell backend to find the en_US
8894 ;; dictionary.
8895 (setenv "ASPELL_DICT_DIR"
8896 (string-append (assoc-ref inputs "aspell-dict-en")
8897 "/lib/aspell"))
8898 #t)))))
8899 (inputs
eccd35be 8900 `(("gtk+" ,gtk+)
a801ae4c
TGR
8901 ("glib" ,glib)
8902 ("iso-codes" ,iso-codes)))
411ba511
LC
8903 (native-inputs
8904 `(("glib" ,glib "bin")
26ba3f07 8905 ("gobject-introspection" ,gobject-introspection)
411ba511
LC
8906 ("pkg-config" ,pkg-config)
8907 ("xmllint" ,libxml2)
8908
8909 ;; For tests.
a801ae4c 8910 ("aspell-dict-en" ,aspell-dict-en)
ff337525 8911 ("xorg-server" ,xorg-server-for-tests)))
eccd35be 8912 (propagated-inputs
9b1bb757 8913 `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
411ba511
LC
8914 (home-page "https://wiki.gnome.org/Projects/gspell")
8915 (synopsis "GNOME's alternative spell checker")
8916 (description
8917 "gspell provides a flexible API to add spell-checking to a GTK+
8918application. It provides a GObject API, spell-checking to text entries and
8919text views, and buttons to choose the language.")
8920 (license license:gpl2+)))
d1d739fa
CM
8921
8922(define-public gnome-planner
8923 (package
8924 (name "gnome-planner")
8925 (version "0.14.6")
8926 (source (origin
8927 (method url-fetch)
8928 (uri (string-append "mirror://gnome/sources/planner/"
8929 (version-major+minor version) "/planner-"
8930 version ".tar.xz"))
8931 (sha256
8932 (base32
8933 "15h6ps58giy5r1g66sg1l4xzhjssl362mfny2x09khdqsvk2j38k"))))
8934 (build-system glib-or-gtk-build-system)
8935 (arguments
8936 ;; Disable the Python bindings because the Planner program functions
8937 ;; without them, and (as of 2017-06-13) we have not packaged all of
8938 ;; packages that are necessary for building the Python bindings.
20b7b75c
EF
8939 `(#:configure-flags
8940 (list "--disable-python"
8941 ,@(if (string=? "aarch64-linux" (%current-system))
8942 '("--build=aarch64-unknown-linux-gnu")
8943 '()))))
d1d739fa
CM
8944 (inputs
8945 `(("libgnomecanvas" ,libgnomecanvas)
8946 ("libgnomeui" ,libgnomeui)
8947 ("libglade" ,libglade)
8948 ("gnome-vfs" ,gnome-vfs)
8949 ("gconf" ,gconf)
8950 ("libxml2" ,libxml2)
8951 ("libxslt" ,libxslt)
8952 ("gtk+" ,gtk+)
8953 ("glib" ,glib)))
8954 (native-inputs
8955 `(("intltool" ,intltool)
8956 ("scrollkeeper" ,scrollkeeper)
8957 ("pkg-config" ,pkg-config)))
8958 (home-page "https://wiki.gnome.org/Apps/Planner")
8959 (synopsis "Project management software for the GNOME desktop")
8960 (description
8961 "GNOME Planner is a project management tool based on the Work Breakdown
8962Structure (WBS). Its goal is to enable you to easily plan projects. Based on
8963the resources, tasks, and constraints that you define, Planner generates
8964various views into a project. For example, Planner can show a Gantt chart of
8965the project. It can show a detailed summary of tasks including their
8966duration, cost, and current progress. It can also show a report of resource
8967utilization that highlights under-utilized and over-utilized resources. These
8968views can be printed as PDF or PostScript files, or exported to HTML.")
4b926cb6 8969 (license license:gpl2+)))
64fce637
RS
8970
8971(define-public lollypop
8972 (package
8973 (name "lollypop")
ca32627a 8974 (version "1.2.7")
64fce637
RS
8975 (source
8976 (origin
8977 (method url-fetch)
b98eace8 8978 (uri (string-append "https://gitlab.gnome.org/World/lollypop/uploads/"
ca32627a 8979 "08f973788c7ca46d9285eec2ac818edb/"
3275d43d 8980 "lollypop-" version ".tar.xz"))
64fce637 8981 (sha256
ca32627a 8982 (base32 "0hvq6m4i62i0m63bg4gzpfb9rv1fk6vq5jl2g3ppcgm4srmfm77j"))))
aa498fc0 8983 (build-system meson-build-system)
64fce637
RS
8984 (arguments
8985 `(#:imported-modules ((guix build python-build-system)
aa498fc0
TD
8986 ,@%meson-build-system-modules)
8987 #:glib-or-gtk? #t
5fc9b6c1
EF
8988 #:tests? #f ; no test suite
8989 #:phases
8990 (modify-phases %standard-phases
5fc9b6c1
EF
8991 (add-after 'install 'wrap-program
8992 (lambda* (#:key outputs #:allow-other-keys)
8993 (let ((out (assoc-ref outputs "out"))
8994 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
8995 (wrap-program (string-append out "/bin/lollypop")
8996 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
8997 #t))
8ac8b3b3
TGR
8998 (add-after 'install 'wrap-python
8999 (@@ (guix build python-build-system) wrap))
9000 (add-after 'install 'wrap-glib-or-gtk
9001 (@@ (guix build glib-or-gtk-build-system) wrap-all-programs)))))
64fce637
RS
9002 (native-inputs
9003 `(("intltool" ,intltool)
9004 ("itstool" ,itstool)
aa498fc0
TD
9005 ("glib:bin" ,glib "bin") ; For glib-compile-resources
9006 ("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
64fce637
RS
9007 ("pkg-config" ,pkg-config)))
9008 (inputs
9009 `(("gobject-introspection" ,gobject-introspection)
8ac8b3b3 9010 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5fc9b6c1 9011 ("gst-plugins-base" ,gst-plugins-base)
64fce637
RS
9012 ("libnotify" ,libnotify)
9013 ("libsecret" ,libsecret)
9014 ("libsoup" ,libsoup)
9015 ("python" ,python)
9016 ("python-beautifulsoup4" ,python-beautifulsoup4)
9017 ("python-gst" ,python-gst)
d029afdd 9018 ("python-pil" ,python-pillow)
64fce637 9019 ("python-pycairo" ,python-pycairo)
7460f346 9020 ("python-pygobject" ,python-pygobject-3.34)
64fce637
RS
9021 ("python-pylast" ,python-pylast)
9022 ("totem-pl-parser" ,totem-pl-parser)
9023 ("webkitgtk" ,webkitgtk)))
9024 (propagated-inputs
9025 `(;; gst-plugins-base is required to start Lollypop,
9026 ;; the others are required to play streaming.
64fce637
RS
9027 ("gst-plugins-good" ,gst-plugins-good)
9028 ("gst-plugins-ugly" ,gst-plugins-ugly)))
b98eace8 9029 (home-page "https://wiki.gnome.org/Apps/Lollypop")
64fce637
RS
9030 (synopsis "GNOME music playing application")
9031 (description
9032 "Lollypop is a music player designed to play well with GNOME desktop.
9033Lollypop plays audio formats such as mp3, mp4, ogg and flac and gets information
9034from artists and tracks from the web. It also fetches cover artworks
9035automatically and it can stream songs from online music services and charts.")
9036 (license license:gpl3+)))
d831d49d
AW
9037
9038(define-public gnome-video-effects
9039 (package
9040 (name "gnome-video-effects")
9041 (version "0.4.3")
9042 (source (origin
9043 (method url-fetch)
9044 (uri (string-append "mirror://gnome/sources/" name "/"
9045 (version-major+minor version) "/" name "-"
9046 version ".tar.xz"))
9047 (sha256
9048 (base32
9049 "06c2f1kihyhawap1s3zg5w7q7fypsybkp7xry4hxkdz4mpsy0zjs"))))
9050 (build-system glib-or-gtk-build-system)
9051 (arguments
9052 `(#:out-of-source? #f))
9053 (native-inputs
9054 `(("glib:bin" ,glib "bin")
9055 ("intltool" ,intltool)
9056 ("gettext" ,gettext-minimal)
9057 ("pkg-config" ,pkg-config)))
9058 (home-page "https://wiki.gnome.org/Projects/GnomeVideoEffects")
9059 (synopsis "Video effects for Cheese and other GNOME applications")
9060 (description
9061 "A collection of GStreamer video filters and effects to be used in
9062photo-booth-like software, such as Cheese.")
9063 (license license:gpl2+)))
3511c780
AW
9064
9065(define-public cheese
9066 (package
9067 (name "cheese")
dd33b337 9068 (version "3.32.1")
3511c780
AW
9069 (source (origin
9070 (method url-fetch)
9071 (uri (string-append "mirror://gnome/sources/" name "/"
9072 (version-major+minor version) "/" name "-"
9073 version ".tar.xz"))
9074 (sha256
9075 (base32
dd33b337 9076 "1xlmsm4zsx05ahvpd4mgy1hfhxbag0r5i6p63bksjxdligdd36kv"))))
3511c780
AW
9077 (arguments
9078 ;; Tests require GDK.
9079 `(#:tests? #f
9080 #:phases
9081 (modify-phases %standard-phases
9082 (add-before 'install 'skip-gtk-update-icon-cache
9083 (lambda _
9084 ;; Don't create 'icon-theme.cache'
9085 (substitute* "Makefile"
9086 (("gtk-update-icon-cache") (which "true")))
9087 #t))
9088 (add-after 'install 'wrap-cheese
9089 (lambda* (#:key inputs outputs #:allow-other-keys)
9090 (let ((out (assoc-ref outputs "out"))
9091 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
9092 (wrap-program (string-append out "/bin/cheese")
9093 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
9094 #t)))))
9095 (build-system glib-or-gtk-build-system)
9096 (native-inputs
9097 `(("glib:bin" ,glib "bin")
9098 ("intltool" ,intltool)
9099 ("itstool" ,itstool)
9100 ("libxml2" ,libxml2)
9101 ("pkg-config" ,pkg-config)
9102 ("vala" ,vala)))
9103 (propagated-inputs
6a19f03e
RW
9104 `(("gnome-video-effects" ,gnome-video-effects)
9105 ("clutter" ,clutter)
3511c780
AW
9106 ("clutter-gst" ,clutter-gst)
9107 ("clutter-gtk" ,clutter-gtk)
6a19f03e 9108 ("libcanberra" ,libcanberra)
3511c780
AW
9109 ("gdk-pixbuf" ,gdk-pixbuf)
9110 ("glib" ,glib)
6a19f03e
RW
9111 ("gstreamer" ,gstreamer)))
9112 (inputs
9113 `(("gnome-desktop" ,gnome-desktop)
3511c780 9114 ("gobject-introspection" ,gobject-introspection)
3511c780
AW
9115 ("gst-plugins-base" ,gst-plugins-base)
9116 ("gst-plugins-bad" ,gst-plugins-bad)
9117 ("gtk+" ,gtk+)
3511c780
AW
9118 ("libx11" ,libx11)
9119 ("libxtst" ,libxtst)))
9120 (home-page "https://wiki.gnome.org/Apps/Cheese")
9121 (synopsis "Webcam photo booth software for GNOME")
9122 (description
9123 "Cheese uses your webcam to take photos and videos. Cheese can also
9124apply fancy special effects and lets you share the fun with others.")
9125 (license license:gpl2+)))
3c5dbd2b 9126
9127(define-public sound-juicer
9128 (package
9129 (name "sound-juicer")
9130 (version "3.24.0")
9131 (source
9132 (origin
9133 (method url-fetch)
9134 (uri (string-append "mirror://gnome/sources/" name "/"
9135 (version-major+minor version) "/"
9136 name "-" version ".tar.xz"))
9137 (sha256
9138 (base32
9139 "19qg4xv0f9rkq34lragkmhii1llxsa87llbl28i759b0ks4f6sny"))))
9140 (build-system glib-or-gtk-build-system)
9141 (native-inputs
9142 `(("desktop-file-utils" ,desktop-file-utils)
9143 ("intltool" ,intltool)
9144 ("itstool" ,itstool)
9145 ("pkg-config" ,pkg-config)
9146 ("xmllint" ,libxml2)))
9147 (inputs
9148 `(("gtk+" ,gtk+)
9149 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9150 ("gstreamer" ,gstreamer)
9151 ("gst-plugins-base" ,gst-plugins-base)
9152 ("gst-plugins-good" ,gst-plugins-good)
9153 ("iso-codes" ,iso-codes)
9154 ("libbrasero-media3" ,brasero)
9155 ("libcanberra" ,libcanberra)
9156 ("libdiscid" ,libdiscid)
9157 ("libmusicbrainz" ,libmusicbrainz)
9158 ("neon" ,neon)))
9159 (home-page "https://wiki.gnome.org/Apps/SoundJuicer")
9160 (synopsis "Audio music cd ripper")
9161 (description "Sound Juicer extracts audio from compact discs and convert it
9162into audio files that a personal computer or digital audio player can play.
9163It supports ripping to any audio codec supported by a GStreamer plugin, such as
9164mp3, Ogg Vorbis and FLAC")
9165 (license license:gpl2+)))
4e3fdeb7 9166
0d3f1708
CB
9167(define-public soundconverter
9168 (package
9169 (name "soundconverter")
fa75a213 9170 (version "3.0.1")
0d3f1708
CB
9171 (source
9172 (origin
9173 (method url-fetch)
9174 (uri (string-append "https://launchpad.net/soundconverter/trunk/"
9175 version "/+download/"
9176 "soundconverter-" version ".tar.xz"))
9177
9178 (sha256
fa75a213 9179 (base32 "1d6x1yf8psqbd9zbybxivfqg55khcnngp2mn92l161dfdk9512c5"))
0d3f1708
CB
9180 (patches
9181 (search-patches
9182 "soundconverter-remove-gconf-dependency.patch"))))
9183 (build-system glib-or-gtk-build-system)
9184 (arguments
9185 `(#:imported-modules ((guix build python-build-system)
9186 (guix build glib-or-gtk-build-system)
9187 ,@%gnu-build-system-modules)
9188
9189 #:modules ((guix build glib-or-gtk-build-system)
9190 (guix build utils)
9191 ((guix build gnu-build-system) #:prefix gnu:)
9192 ((guix build python-build-system) #:prefix python:))
9193
9194 #:phases
9195 (modify-phases %standard-phases
0d3f1708
CB
9196 (add-after 'install 'wrap-soundconverter-for-python
9197 (assoc-ref python:%standard-phases 'wrap))
9198 (add-after 'install 'wrap-soundconverter
9199 (lambda* (#:key inputs outputs #:allow-other-keys)
9200 (let ((out (assoc-ref outputs "out"))
9201 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
9202 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
9203 (wrap-program (string-append out "/bin/soundconverter")
9204 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
9205 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
9206 #t)))))
9207 (native-inputs
9208 `(("intltool" ,intltool)
9209 ("pkg-config" ,pkg-config)
9210 ("glib:bin" ,glib "bin")))
9211 (inputs
9212 `(("gtk+" ,gtk+)
9213 ("python" ,python)
9214 ("python-pygobject" ,python-pygobject)
9215 ("gstreamer" ,gstreamer)
9216 ("gst-plugins-base" ,gst-plugins-base)))
9217 (home-page "http://soundconverter.org/")
9218 (synopsis "Convert between audio formats with a graphical interface")
9219 (description
9220 "SoundConverter supports converting between many audio formats including
9221Opus, Ogg Vorbis, FLAC and more. It supports parallel conversion, and
9222configurable file renaming. ")
9223 (license license:gpl3)))
9224
4e3fdeb7 9225(define-public workrave
89f2d736
TGR
9226 (package
9227 (name "workrave")
aa51d92c 9228 (version "1.10.34")
89f2d736
TGR
9229 (source
9230 (origin
9231 (method git-fetch)
9232 (uri (git-reference
9233 (url "https://github.com/rcaelers/workrave.git")
c2e50474
TGR
9234 (commit (string-append "v" (string-map
9235 (match-lambda (#\. #\_) (chr chr))
9236 version)))))
89f2d736
TGR
9237 (file-name (git-file-name name version))
9238 (sha256
aa51d92c 9239 (base32 "0czwhr7nw523753ajcjjfwrf91mq8pmzr19gp0srqsvb1dsn1zcf"))))
89f2d736 9240 (build-system glib-or-gtk-build-system)
d1c96847
MC
9241 (inputs `(("glib" ,glib)
9242 ("gtk+" ,gtk+)
9243 ("gdk-pixbuf" ,gdk-pixbuf)
9244 ("gtkmm" ,gtkmm)
9245 ("glibmm" ,glibmm)
9246 ("libx11" ,libx11)
9247 ("libxtst" ,libxtst)
9248 ("dconf" ,dconf)
9249 ("libice" ,libice)
9250 ("libsm" ,libsm)
9251 ("libxscrnsaver" ,libxscrnsaver)))
aa51d92c 9252 (native-inputs `(("boost" ,boost)
89f2d736
TGR
9253 ("pkg-config" ,pkg-config)
9254 ("gettext" ,gnu-gettext)
9255 ("autoconf" ,autoconf)
9256 ("autoconf-archive" , autoconf-archive)
9257 ("automake" ,automake)
9258 ("libtool" ,libtool)
9259 ("intltool" ,intltool)
89f2d736 9260 ("gobject-introspection" ,gobject-introspection)
aa51d92c
MC
9261 ("python3" ,python-3)
9262 ("python-jinja2" ,python-jinja2)))
89f2d736
TGR
9263 (synopsis "Tool to help prevent repetitive strain injury (RSI)")
9264 (description
9265 "Workrave is a program that assists in the recovery and prevention of
cc00249b
TGR
9266repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
9267micro-pauses and rest breaks, and restricts you to your daily limit.")
89f2d736
TGR
9268 (home-page "http://www.workrave.org")
9269 (license license:gpl3+)))
312afa7d
LC
9270
9271(define-public ghex
9272 (package
9273 (name "ghex")
3748992a 9274 (version "3.18.4")
312afa7d
LC
9275 (source (origin
9276 (method url-fetch)
2fbab848 9277 (uri (string-append "mirror://gnome/sources/ghex/"
312afa7d 9278 (version-major+minor version) "/"
2fbab848 9279 "ghex-" version ".tar.xz"))
312afa7d
LC
9280 (sha256
9281 (base32
3748992a
KK
9282 "1h1pjrr9wynclfykizqd78dbi785wjz6b63p31k87kjvzy8w3nf2"))))
9283 (build-system meson-build-system)
9284 (arguments
9285 '(#:glib-or-gtk? #t
9286 #:phases
9287 (modify-phases %standard-phases
9288 (add-after 'unpack 'skip-gtk-update-icon-cache
9289 ;; Don't create 'icon-theme.cache'.
9290 (lambda _
9291 (substitute* "meson_post_install.py"
9292 (("gtk-update-icon-cache") (which "true")))
9293 #t)))))
312afa7d
LC
9294 (native-inputs
9295 `(("pkg-config" ,pkg-config)
3748992a 9296 ("glib:bin" ,glib "bin") ; for glib-compile-schemas
312afa7d
LC
9297 ("gnome-common" ,gnome-common)
9298 ("which" ,which)
9299 ("intltool" ,intltool)
9300 ("yelp-tools" ,yelp-tools)
2fbab848 9301 ("desktop-file-utils" ,desktop-file-utils))) ; for 'desktop-file-validate'
312afa7d
LC
9302 (inputs
9303 `(("atk" ,atk)
9304 ("gtk" ,gtk+)))
9305 (synopsis "GNOME hexadecimal editor")
9306 (description "The GHex program can view and edit files in two ways:
9307hexadecimal or ASCII. It is useful for editing binary files in general.")
9308 (home-page "https://wiki.gnome.org/Apps/Ghex")
9309 (license license:gpl2)))
4b2ed6c2
RW
9310
9311(define-public libdazzle
9312 (package
9313 (name "libdazzle")
64fa66ba 9314 (version "3.33.90")
4b2ed6c2
RW
9315 (source (origin
9316 (method url-fetch)
687b4909 9317 (uri (string-append "mirror://gnome/sources/libdazzle/"
4b2ed6c2 9318 (version-major+minor version) "/"
687b4909 9319 "libdazzle-" version ".tar.xz"))
4b2ed6c2
RW
9320 (sha256
9321 (base32
64fa66ba 9322 "189m7q88d1a7bq0yyal9f3yhm9kz46lb61379nn4wsnnhpa1d0qs"))))
4b2ed6c2
RW
9323 (build-system meson-build-system)
9324 (arguments
9325 `(#:phases
9326 (modify-phases %standard-phases
4b2ed6c2
RW
9327 (add-before 'check 'pre-check
9328 (lambda _
9329 ;; Tests require a running X server.
9330 (system "Xvfb :1 &")
9331 (setenv "DISPLAY" ":1")
9332 #t)))))
9333 (native-inputs
687b4909 9334 `(("glib" ,glib "bin") ; glib-compile-resources
4b2ed6c2 9335 ("pkg-config" ,pkg-config)
687b4909 9336 ;; For tests.
ff337525 9337 ("xorg-server" ,xorg-server-for-tests)))
4b2ed6c2
RW
9338 (inputs
9339 `(("glib" ,glib)
9340 ("gobject-introspection" ,gobject-introspection)
9341 ("gtk+" ,gtk+)
9342 ("vala" ,vala)))
9343 (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
9344 (synopsis "Companion library to GObject and Gtk+")
9345 (description "The libdazzle library is a companion library to GObject and
9346Gtk+. It provides various features that the authors wish were in the
9347underlying library but cannot for various reasons. In most cases, they are
9348wildly out of scope for those libraries. In other cases, they are not quite
9349generic enough to work for everyone.")
9350 (license license:gpl3+)))
7d3bb433
RW
9351
9352(define-public evolution
9353 (package
9354 (name "evolution")
06141f83 9355 (version "3.32.4")
7d3bb433
RW
9356 (source (origin
9357 (method url-fetch)
9358 (uri (string-append "mirror://gnome/sources/evolution/"
9359 (version-major+minor version) "/"
9360 "evolution-" version ".tar.xz"))
9361 (sha256
9362 (base32
06141f83 9363 "00hmmg4hfns8rq9rcilmy0gi1xkksld27lfbd9zmw2xw37wjmbqh"))))
7d3bb433
RW
9364 (build-system cmake-build-system)
9365 (arguments
5229bea1
KK
9366 `(#:imported-modules (,@%cmake-build-system-modules
9367 (guix build glib-or-gtk-build-system))
9368 #:modules ((guix build cmake-build-system)
9369 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
9370 (guix build utils))
9371 #:configure-flags
7d3bb433 9372 (list "-DENABLE_PST_IMPORT=OFF" ; libpst is not packaged
5229bea1 9373 "-DENABLE_LIBCRYPTUI=OFF") ; libcryptui hasn't seen a release
7d3bb433 9374 ; in four years and cannot be built.
5229bea1
KK
9375 #:phases
9376 (modify-phases %standard-phases
9377 ;; The build system attempts to install user interface modules to the
9378 ;; output directory of the "evolution-data-server" package. This
9379 ;; change redirects that change.
9380 (add-after 'unpack 'patch-ui-module-dir
9381 (lambda* (#:key outputs #:allow-other-keys)
9382 (substitute* "src/modules/alarm-notify/CMakeLists.txt"
9383 (("\\$\\{edsuimoduledir\\}")
9384 (string-append (assoc-ref outputs "out")
9385 "/lib/evolution-data-server/ui-modules")))
9386 #t))
9387 (add-after 'install 'glib-or-gtk-compile-schemas
9388 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
9389 (add-after 'install 'glib-or-gtk-wrap
9390 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
7d3bb433 9391 (native-inputs
ad6e168b 9392 `(("glib" ,glib "bin") ; glib-mkenums
7d3bb433
RW
9393 ("pkg-config" ,pkg-config)
9394 ("intltool" ,intltool)
9395 ("itstool" ,itstool)))
9396 (inputs
9397 `(("enchant" ,enchant)
9398 ("evolution-data-server" ,evolution-data-server) ; must be the same version
9399 ("gcr" ,gcr)
ad6e168b 9400 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7d3bb433
RW
9401 ("gnome-autoar" ,gnome-autoar)
9402 ("gnome-desktop" ,gnome-desktop)
9403 ("gtkspell3" ,gtkspell3)
9404 ("highlight" ,highlight)
9405 ("libcanberra" ,libcanberra)
b63c06f1 9406 ("libedataserverui" ,evolution-data-server)
7d3bb433
RW
9407 ("libgweather" ,libgweather)
9408 ("libnotify" ,libnotify)
9409 ("libsoup" ,libsoup)
9410 ("nss" ,nss)
9411 ("openldap" ,openldap)
9412 ("webkitgtk" ,webkitgtk)
9413 ("ytnef" ,ytnef)))
9414 (home-page "https://gitlab.gnome.org/GNOME/evolution")
9415 (synopsis "Manage your email, contacts and schedule")
9416 (description "Evolution is a personal information management application
9417that provides integrated mail, calendaring and address book
9418functionality.")
9419 ;; See COPYING for details.
23dbe621 9420 (license (list license:lgpl2.1 license:lgpl3 ; either one of these
7d3bb433 9421 license:openldap2.8 ; addressbook/gui/component/openldap-extract.h
23dbe621 9422 license:lgpl2.1+)))) ; smime/lib/*
169d63f5
AT
9423
9424(define-public gthumb
9425 (package
9426 (name "gthumb")
8280676b 9427 (version "3.8.2")
169d63f5
AT
9428 (source (origin
9429 (method url-fetch)
9430 (uri (string-append "mirror://gnome/sources/gthumb/"
9431 (version-major+minor version) "/"
9432 "gthumb-" version ".tar.xz"))
9433 (sha256
9434 (base32
8280676b 9435 "15wqks35ks5dm7zj046dfd45vvrilan2ayfy2sxiprv7q74cip2q"))))
169d63f5
AT
9436 (build-system meson-build-system)
9437 (arguments
9438 `(#:glib-or-gtk? #t
9439 #:configure-flags
9440 ;; Ensure the RUNPATH contains all installed library locations.
9441 (list (string-append "-Dc_link_args=-Wl,-rpath="
9442 (assoc-ref %outputs "out")
9443 "/lib/gthumb/extensions")
9444 (string-append "-Dcpp_link_args=-Wl,-rpath="
9445 (assoc-ref %outputs "out")
9446 "/lib/gthumb/extensions"))))
9447 (native-inputs
9448 `(("pkg-config" ,pkg-config)
9449 ("glib:bin" ,glib "bin") ; for glib-compile-resources
9450 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
9451 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
9452 ("intltool" ,intltool)
9453 ("itstool" ,itstool)))
9454 (inputs
9455 `(("exiv2" ,exiv2)
9456 ("gtk" ,gtk+)
9457 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9458 ("gstreamer" ,gstreamer)
9459 ("clutter" ,clutter)
9460 ("clutter-gst" ,clutter-gst)
9461 ("clutter-gtk" ,clutter-gtk)
9462 ("libjpeg" ,libjpeg)
9463 ("libtiff" ,libtiff)
9464 ("libraw" ,libraw)))
9465 (home-page "https://wiki.gnome.org/Apps/Gthumb")
9466 (synopsis "GNOME image viewer and browser")
9467 (description "GThumb is an image viewer, browser, organizer, editor and
9468advanced image management tool")
9469 (license license:gpl2+)))
08be02be
AT
9470
9471(define-public terminator
9472 (package
9473 (name "terminator")
9474 (version "1.91")
9475 (source (origin
9476 (method url-fetch)
9477 (uri (string-append "https://launchpad.net/" name "/"
9478 "gtk3/" version "/" "+download/"
9479 name "-" version ".tar.gz"))
9480 (sha256
9481 (base32
9482 "0sdyqwydmdnh7j6mn74vrywz35m416kqsbxbrqcnv5ak08y6xxwm"))))
9483 (build-system python-build-system)
9484 (native-inputs
9485 `(("intltool" ,intltool)
9486 ("glib:bin" ,glib "bin") ; for glib-compile-resources
9487 ("gettext" ,gettext-minimal)
9488 ("pkg-config" ,pkg-config)))
9489 (inputs
9490 `(("cairo" ,cairo)
9491 ("gobject-introspection" ,gobject-introspection)
96681d4b 9492 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
08be02be
AT
9493 ("python2-pycairo" ,python2-pycairo)
9494 ("python2-pygobject" ,python2-pygobject)
9495 ("python2-psutil" ,python2-psutil)
9496 ("vte" ,vte)))
9497 (arguments
96681d4b
TGR
9498 `(#:python ,python-2 ; Python 3 isn't supported
9499 #:imported-modules ((guix build glib-or-gtk-build-system)
9500 ,@%python-build-system-modules)
9501 #:modules ((guix build python-build-system)
9502 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
9503 (guix build utils))
08be02be
AT
9504 #:phases
9505 (modify-phases %standard-phases
9506 (add-after
9507 'install 'wrap-program
9508 (lambda* (#:key outputs #:allow-other-keys)
9509 (let ((prog (string-append (assoc-ref outputs "out")
9510 "/bin/terminator")))
9511 (wrap-program prog
9512 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
9513 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
96681d4b
TGR
9514 #t)))
9515 (add-after 'wrap-program 'glib-or-gtk-wrap
9516 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
08be02be
AT
9517 (home-page "https://gnometerminator.blogspot.com/")
9518 (synopsis "Store and run multiple GNOME terminals in one window")
9519 (description
9520 "Terminator allows you to run multiple GNOME terminals in a grid and
9521+tabs, and it supports drag and drop re-ordering of terminals.")
9522 (license license:gpl2)))
213315d4
JF
9523
9524(define-public libhandy
9525 (package
9526 (name "libhandy")
f6501b9f 9527 (version "0.0.12")
213315d4
JF
9528 (source
9529 (origin
9530 (method git-fetch)
9531 (uri (git-reference
9532 (url "https://source.puri.sm/Librem5/libhandy")
9533 (commit (string-append "v" version))))
9534 (file-name (git-file-name name version))
9535 (sha256
f6501b9f 9536 (base32 "09wlknarzsbk9hr5ws6s7x5kibkhx9ayrbhshfqib4zkhq2f76hw"))))
213315d4
JF
9537 (build-system meson-build-system)
9538 (arguments
9539 `(#:configure-flags
9540 '("-Dglade_catalog=disabled"
9541 "-Dgtk_doc=true")
9542 #:phases
9543 (modify-phases %standard-phases
213315d4
JF
9544 (add-before 'check 'pre-check
9545 (lambda _
9546 ;; Tests require a running X server.
9547 (system "Xvfb :1 &")
9548 (setenv "DISPLAY" ":1")
9549 #t)))))
9550 (inputs
9551 `(("gtk+" ,gtk+)))
9552 (native-inputs
9553 `(("glib:bin" ,glib "bin")
9554 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
9555 ("vala" ,vala)
9556 ("gtk-doc" ,gtk-doc)
9557 ("pkg-config" ,pkg-config)
9558 ("gettext" ,gettext-minimal)
d41ee146
TGR
9559
9560 ;; Test suite dependencies.
ff337525 9561 ("xorg-server" ,xorg-server-for-tests)
d41ee146 9562 ("hicolor-icon-theme" ,hicolor-icon-theme)))
213315d4
JF
9563 (home-page "https://source.puri.sm/Librem5/libhandy")
9564 (synopsis "Library full of GTK+ widgets for mobile phones")
9565 (description "The aim of the handy library is to help with developing user
ae4e1414
JB
9566interfaces for mobile devices using GTK+. It provides responsive GTK+ widgets
9567for usage on small and big screens.")
213315d4 9568 (license license:lgpl2.1+)))
a830d14d
GL
9569
9570(define-public libgit2-glib
9571 (package
9572 (name "libgit2-glib")
9573 (version "0.28.0.1")
9574 (source (origin
9575 (method url-fetch)
9576 (uri (string-append "mirror://gnome/sources/" name "/"
9577 (version-major+minor version) "/"
9578 name "-" version ".tar.xz"))
9579 (sha256
9580 (base32
9581 "0a0g7aw66rfgnqr4z7fgbk5zzcjq66m4rp8v4val3a212941h0g7"))))
9582 (build-system meson-build-system)
9583 (native-inputs
9584 `(("glib:bin" ,glib "bin") ;; For glib-mkenums
9585 ("gobject-introspection" ,gobject-introspection)
9586 ("intltool" ,intltool)
9587 ("libssh2" ,libssh2)
9588 ("pkg-config" ,pkg-config)
9589 ("python-pygobject" ,python-pygobject)
9590 ("python-wrapper" ,python-wrapper)
9591 ("vala" ,vala)))
9592 (inputs
9593 `(("glib" ,glib)
9594 ("libgit2" ,libgit2)))
9595 (synopsis "GLib wrapper around the libgit2 Git access library")
9596 (description "libgit2-glib is a GLib wrapper library around the libgit2 Git
9597access library. It only implements the core plumbing functions, not really the
9598higher level porcelain stuff.")
9599 (home-page "https://wiki.gnome.org/Projects/Libgit2-glib")
9600 (license license:gpl2+)))
93beace0 9601
08db81c9
LP
9602(define-public gitg
9603 (package
9604 (name "gitg")
9605 (version "3.32.1")
9606 (source (origin
9607 (method url-fetch)
9608 (uri (string-append "mirror://gnome/sources/" name "/"
9609 (version-major+minor version) "/"
9610 name "-" version ".tar.xz"))
9611 (sha256
9612 (base32
9613 "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914"))))
9614 (build-system meson-build-system)
9615 (arguments
9616 `(#:glib-or-gtk? #t
9617 #:phases
9618 (modify-phases %standard-phases
9619 (add-after 'unpack 'disable-post-install-partially
9620 (lambda _
9621 (substitute* "meson_post_install.py"
9622 (("'python'") ; there are no python sources to compile
9623 (string-append "'" (which "true") "'"))
9624 (("gtk-update-icon-cache") (which "true")))
9625 #t))
9626 (add-after 'unpack 'fix-test-sources
9627 (lambda _
9628 (substitute* "tests/libgitg/test-commit.vala"
9629 (("/bin/bash") (which "bash")))
9630 #t))
9631 (add-after 'glib-or-gtk-wrap 'wrap-typelib
9632 (lambda* (#:key outputs #:allow-other-keys)
9633 (let ((prog (string-append (assoc-ref outputs "out")
9634 "/bin/gitg")))
9635 (wrap-program prog
9636 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
9637 #t))))))
9638 (inputs
9639 `(("glib" ,glib)
9640 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9641 ("gtk+" ,gtk+)
9642 ("gtkspell3" ,gtkspell3)
9643 ("gtksourceview" ,gtksourceview-3)
9644 ("json-glib" ,json-glib)
9645 ("libdazzle" ,libdazzle)
9646 ("libgee" ,libgee)
9647 ("libgit2" ,libgit2) ; propagated by libgit2-glib
9648 ("libgit2-glib" ,libgit2-glib)
9649 ("libpeas" ,libpeas)
9650 ("libsecret" ,libsecret)
9651 ("libsoup" ,libsoup)
9652 ("libxml2" ,libxml2)))
9653 (native-inputs
9654 `(("glib:bin" ,glib "bin")
9655 ("gtk+:bin" ,gtk+ "bin")
9656 ("gobject-introspection" ,gobject-introspection)
9657 ("intltool" ,intltool)
9658 ("pkg-config" ,pkg-config)
9659 ("vala" ,vala)))
9660 (synopsis "Graphical user interface for git")
9661 (description
9662 "gitg is a graphical user interface for git. It aims at being a small,
9663fast and convenient tool to visualize the history of git repositories.
9664Besides visualization, gitg also provides several utilities to manage your
9665repository and commit your work.")
9666 (home-page "https://wiki.gnome.org/Apps/Gitg")
9667 (license license:gpl2+)))
9668
1e600ed0
RW
9669(define-public gamin
9670 (package
9671 (name "gamin")
9672 (version "0.1.10")
9673 (source (origin
9674 (method url-fetch)
9675 (uri (string-append "mirror://gnome/sources/" name "/"
9676 (version-major+minor version) "/"
9677 name "-" version ".tar.bz2"))
9678 (sha256
9679 (base32
9680 "02n1zr9y8q9lyczhcz0nxar1vmf8p2mmbw8kq0v43wg21jr4i6d5"))))
9681 (build-system gnu-build-system)
9682 (arguments
9683 `(#:phases
9684 (modify-phases %standard-phases
9685 (add-after 'unpack 'remove-deprecated-macro
9686 (lambda _
9687 (substitute* '("server/gam_node.c"
9688 "server/gam_subscription.h"
9689 "server/gam_node.h"
9690 "server/gam_subscription.c")
9691 (("G_CONST_RETURN") "const"))
9692 #t)))))
9693 (inputs
9694 `(("glib" ,glib)))
9695 (native-inputs
9696 `(("intltool" ,intltool)
9697 ("pkg-config" ,pkg-config)))
9698 (home-page "https://people.gnome.org/~veillard/gamin/")
9699 (synopsis "File alteration monitor")
9700 (description
9701 "Gamin is a file and directory monitoring system defined to be a subset
9702of the FAM (File Alteration Monitor) system. This is a service provided by a
9703library which allows to detect when a file or a directory has been modified.")
9704 (license license:gpl2+)))
9705
93beace0
DW
9706(define-public gnome-mahjongg
9707 (package
9708 (name "gnome-mahjongg")
9709 (version "3.35.1")
9710 (source (origin
9711 (method git-fetch)
9712 (uri (git-reference
9713 (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
9714 (commit version)))
9715 (file-name (git-file-name name version))
9716 (sha256
9717 (base32
9718 "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
9719 (build-system meson-build-system)
9720 (arguments
9721 `(#:glib-or-gtk? #t))
9722 (native-inputs
9723 `(("appstream-glib" ,appstream-glib)
9724 ("gettext" ,gettext-minimal)
9725 ("glib:bin" ,glib "bin") ;; For glib-compile-resources
9726 ("gtk+" ,gtk+ "bin") ;; For gtk-update-icon-cache
9727 ("itstool" ,itstool)
9728 ("pkg-config" ,pkg-config)
9729 ("vala" ,vala)))
9730 (propagated-inputs
9731 `(("dconf" ,dconf)))
9732 (inputs
9733 `(("glib" ,glib)
9734 ("gtk+" ,gtk+)
9735 ("librsvg" ,librsvg)))
9736 (synopsis "Mahjongg tile-matching game")
9737 (description "GNOME Mahjongg is a game based on the classic Chinese
9738tile-matching game Mahjong. It features multiple board layouts, tile themes,
9739and a high score table.")
9740 (home-page "https://wiki.gnome.org/Apps/Mahjongg")
9741 (license license:gpl2+)))
f825476c 9742
76ea7632
RG
9743(define-public gnome-themes-extra
9744 (package
9745 (name "gnome-themes-extra")
9746 (version "3.28")
9747 (source
9748 (origin
9749 (method url-fetch)
9750 (uri (string-append "mirror://gnome/sources/" name "/"
9751 (version-major+minor version) "/" name "-"
9752 version ".tar.xz"))
9753 (sha256
9754 (base32
9755 "06aqg9asq2vqi9wr29bs4v8z2bf4manhbhfghf4nvw01y2zs0jvw"))))
9756 (build-system gnu-build-system)
885424bf
RG
9757 (arguments
9758 '(#:configure-flags
9759 ;; Don't create 'icon-theme.cache'.
9760 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
9761 (true (string-append coreutils "/bin/true")))
9762 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
76ea7632
RG
9763 (native-inputs
9764 `(("glib:bin" ,glib "bin")
9765 ("intltool" ,intltool)
9766 ("pkg-config" ,pkg-config)))
9767 (inputs
9768 `(("glib" ,glib)
9769 ("gtk+" ,gtk+)
9770 ("gtk+-2" ,gtk+-2)
9771 ("librsvg" ,librsvg)
9772 ("libxml2" ,libxml2)))
9773 (home-page "https://gitlab.gnome.org/GNOME/gnome-themes-extra")
9774 (synopsis "GNOME Extra Themes")
9775 (description "This package provides themes and related elements that don't
9776really fit in other upstream packages. It offers legacy support for GTK+ 2
9777versions of Adwaita, Adwaita-dark and HighContrast themes. It also provides
9778index files needed for Adwaita to be used outside of GNOME.")
9779 (license license:lgpl2.1+)))
9780
f825476c
LP
9781(define-public polari
9782 (package
9783 (name "polari")
9784 (version "3.32.2")
9785 (source (origin
9786 (method url-fetch)
9787 (uri (string-append "mirror://gnome/sources/polari/"
9788 (version-major+minor version)
9789 "/polari-" version ".tar.xz"))
9790 (sha256
9791 (base32
9792 "0h0w9j3y067l911gpj446b3a2w1i2vzr1w2a7cz7i5rhn6qkf2sp"))))
9793 (build-system meson-build-system)
9794 (arguments
9795 `(#:glib-or-gtk? #t
9796 #:phases
9797 (modify-phases %standard-phases
9798 (add-after 'unpack 'skip-gtk-update-icon-cache
9799 (lambda _
9800 (substitute* "meson/meson-postinstall.sh"
9801 (("gtk-update-icon-cache") (which "true")))
9802 #t))
9803 (add-after 'glib-or-gtk-wrap 'wrap-typelib
9804 (lambda* (#:key outputs #:allow-other-keys)
9805 (let ((prog (string-append (assoc-ref outputs "out")
9806 "/bin/polari")))
9807 (wrap-program prog
9808 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
9809 #t))))))
9810 (inputs
9811 `(("glib" ,glib)
9812 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9813 ("gspell" ,gspell)
9814 ("gtk+" ,gtk+)
9815 ("gjs" ,gjs)
9816 ("libsecret" ,libsecret)
9817 ("libsoup" ,libsoup)
9818 ("telepathy-glib" ,telepathy-glib)
9819 ("telepathy-logger" ,telepathy-logger)))
9820 (native-inputs
9821 `(("glib:bin" ,glib "bin")
9822 ("gobject-introspection" ,gobject-introspection)
9823 ("intltool" ,intltool)
9824 ("pkg-config" ,pkg-config)
9825 ("yelp-tools" ,yelp-tools)))
9826 (propagated-inputs
9827 `(("telepathy-idle" ,telepathy-idle)
9828 ("telepathy-mission-control" ,telepathy-mission-control)))
9829 (synopsis "Simple IRC Client")
9830 (description
9831 "Polari is a simple Internet Relay Chat (IRC) client that is designed to
9832integrate seamlessly with the GNOME desktop.")
9833 (home-page "https://wiki.gnome.org/Apps/Polari")
9834 (license license:gpl2+)))