gnu: python-glances: Update to 3.1.2.
[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>
44a06c94 3;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 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>
0528f70d 14;;; Copyright © 2015, 2016, 2017, 2018, 2019 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>
ec47c07d 37;;; Copyright © 2019 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>
aa51d92c 42;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
ad6e168b 43;;; Copyright © 2019 Martin Becze <mjbecze@riseup.net>
93beace0 44;;; Copyright © 2019 David Wilson <david@daviwil.com>
4e868d22 45;;; Copyright © 2019 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 web)
169 #:use-module (gnu packages webkit)
170 #:use-module (gnu packages xdisorg)
171 #:use-module (gnu packages xiph)
172 #:use-module (gnu packages xml)
d633f2f6 173 #:use-module (gnu packages xorg)
b29909b4 174 #:use-module (gnu packages xorg)
a76d0f03 175 #:use-module (gnu artwork)
8f523eb9 176 #:use-module (guix build-system cargo)
b29909b4
TGR
177 #:use-module (guix build-system cmake)
178 #:use-module (guix build-system glib-or-gtk)
179 #:use-module (guix build-system gnu)
180 #:use-module (guix build-system meson)
08be02be 181 #:use-module (guix build-system python)
b29909b4
TGR
182 #:use-module (guix build-system trivial)
183 #:use-module (guix download)
184 #:use-module (guix git-download)
185 #:use-module ((guix licenses) #:prefix license:)
186 #:use-module (guix packages)
187 #:use-module (guix utils)
a76d0f03 188 #:use-module (guix gexp)
8f523eb9
EF
189 #:use-module (guix monads)
190 #:use-module (guix store)
4e3fdeb7 191 #:use-module (ice-9 match)
c024ae36 192 #:use-module (srfi srfi-1))
85f5dc19
AE
193
194(define-public brasero
195 (package
196 (name "brasero")
e2bf423a 197 (version "3.12.2")
85f5dc19
AE
198 (source (origin
199 (method url-fetch)
d1df7554 200 (uri (string-append "mirror://gnome/sources/brasero/"
e8627cd9 201 (version-major+minor version) "/"
d1df7554 202 "brasero-" version ".tar.xz"))
85f5dc19
AE
203 (sha256
204 (base32
e2bf423a 205 "0h90y674j26rvjahb8cc0w79zx477rb6zaqcj26wzvq8kmpic8k8"))))
1c40e3b7 206 (build-system glib-or-gtk-build-system)
e8627cd9
DH
207 (arguments
208 `(#:configure-flags (list
209 (string-append "--with-girdir="
210 (assoc-ref %outputs "out")
211 "/share/gir-1.0")
212 (string-append "--with-typelibdir="
213 (assoc-ref %outputs "out")
ce426deb
TD
214 "/lib/girepository-1.0"))
215 #:phases
216 (modify-phases %standard-phases
217 (add-before 'configure 'embed-growisofs
218 (lambda* (#:key inputs #:allow-other-keys)
219 (substitute* "plugins/growisofs/burn-growisofs.c"
220 (("\"growisofs") (string-append "\"" (which "growisofs"))))
e2bf423a 221 #t)))))
85f5dc19
AE
222 (propagated-inputs
223 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
9cc98f8a
CR
224 (native-inputs
225 `(("intltool" ,intltool)
ba549e17 226 ("itstool" ,itstool)
426adbe8 227 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
e8627cd9 228 ("gobject-introspection" ,gobject-introspection)
9cc98f8a 229 ("pkg-config" ,pkg-config)))
85f5dc19 230 (inputs
ce426deb
TD
231 `(("dvd+rw-tools" ,dvd+rw-tools)
232 ("glib" ,glib)
85f5dc19
AE
233 ("gnome-doc-utils" ,gnome-doc-utils)
234 ("gstreamer" ,gstreamer)
235 ("gst-plugins-base" ,gst-plugins-base)
236 ("gtk+" ,gtk+)
85f5dc19
AE
237 ("libcanberra" ,libcanberra)
238 ("libice" ,libice)
239 ("libnotify" ,libnotify)
240 ("libsm" ,libsm)
e8627cd9 241 ("libxml2" ,libxml2)
e8627cd9 242 ("totem-pl-parser" ,totem-pl-parser)))
fb9399e9 243 (home-page "https://wiki.gnome.org/Apps/Brasero")
85f5dc19
AE
244 (synopsis "CD/DVD burning tool for Gnome")
245 (description "Brasero is an application to burn CD/DVD for the Gnome
246Desktop. It is designed to be as simple as possible and has some unique
247features to enable users to create their discs easily and quickly.")
1dd26275 248 (license license:gpl2+)))
995b7261 249
29ae18db
RG
250(define-public gnome-color-manager
251 (package
252 (name "gnome-color-manager")
253 (version "3.32.0")
254 (source (origin
255 (method url-fetch)
256 (uri (string-append "mirror://gnome/sources/" name "/"
257 (version-major+minor version) "/"
258 name "-" version ".tar.xz"))
259 (sha256
260 (base32
261 "1vpxa2zjz3lkq9ldjg0fl65db9s6b4kcs8nyaqfz3jygma7ifg3w"))))
262 (build-system meson-build-system)
263 (arguments
264 `(#:glib-or-gtk? #t
265 #:phases
266 (modify-phases %standard-phases
267 (add-before
268 'check 'pre-check
269 (lambda _
270 ;; Tests require a running X server.
271 (system "Xvfb :1 &")
272 (setenv "DISPLAY" ":1")
273 #t)))))
274 (native-inputs
275 `(("desktop-file-utils" ,desktop-file-utils)
276 ("gettext" ,gettext-minimal)
277 ("glib:bin" ,glib "bin")
278 ("gtk+:bin" ,gtk+ "bin")
279 ("itstool" ,itstool)
280 ("pkg-config" ,pkg-config)
281 ("xorg-server" ,xorg-server-for-tests)))
282 (inputs
283 `(("adwaita-icon-theme" ,adwaita-icon-theme)
284 ("appstream-glib" ,appstream-glib)
285 ("colord-gtk" ,colord-gtk)
286 ("exiv2" ,exiv2)
287 ("gnome-desktop" ,gnome-desktop)
288 ("libcanberra" ,libcanberra)
289 ("libexif" ,libexif)
290 ("libtiff" ,libtiff)
291 ("libxrandr" ,libxrandr)
292 ("libxtst" ,libxtst)
293 ("libxxf86vm" ,libxxf86vm)
294 ("vte" ,vte)
295 ("xorgproto" ,xorgproto)))
296 (synopsis "Color profile manager for the GNOME desktop")
297 (description "GNOME Color Manager is a session framework that makes
298it easy to manage, install and generate color profiles
299in the GNOME desktop.")
300 (home-page "https://gitlab.gnome.org/GNOME/gnome-color-manager")
301 (license license:gpl2)))
302
e05471a1
RG
303(define-public gnome-online-miners
304 (package
305 (name "gnome-online-miners")
306 (version "3.30.0")
307 (source (origin
308 (method url-fetch)
309 (uri (string-append "mirror://gnome/sources/" name "/"
310 (version-major+minor version) "/"
311 name "-" version ".tar.xz"))
312 (sha256
313 (base32
314 "0pjamwwzn5wqgihyss357dyl2q70r0bngnqmwsqawchx5f9aja9c"))))
315 (build-system glib-or-gtk-build-system)
316 (native-inputs
317 `(("gettext" ,gettext-minimal)
318 ("glib:bin" ,glib "bin")
29ae18db 319 ("gobject-introspection" ,gobject-introspection)
e05471a1
RG
320 ("gtk+:bin" ,gtk+ "bin")
321 ("pkg-config" ,pkg-config)))
322 (inputs
323 `(("gnome-online-accounts" ,gnome-online-accounts)
324 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
e05471a1
RG
325 ("grilo" ,grilo)
326 ("libgdata" ,libgdata)
327 ("libgfbgraph" ,gfbgraph)
328 ("libzapojit" ,libzapojit)
329 ("rest" ,rest)
330 ("tracker" ,tracker)))
331 (synopsis "Web Crawlers for GNOME")
332 (description "GNOME Online Miners provides a set of crawlers that
333go through your online content and index them locally in Tracker.
334It has miners for Facebook, Flickr, Google, ownCloud and SkyDrive.")
335 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineMiners")
336 (license license:gpl2)))
337
02ebbca8
RG
338(define-public libmediaart
339 (package
340 (name "libmediaart")
341 (version "1.9.4")
342 (source (origin
343 (method url-fetch)
344 (uri (string-append "mirror://gnome/sources/" name "/"
345 (version-major+minor version) "/"
346 name "-" version ".tar.xz"))
347 (sha256
348 (base32
349 "0gc10imyabk57ar54m0qzms0x9dnmkymhkzyk8w1aj3y4lby0yx5"))))
350 (build-system gnu-build-system)
351 (native-inputs
352 `(("glib:bin" ,glib "bin")
353 ("pkg-config" ,pkg-config)))
354 (inputs
355 `(("gdk-pixbuf" ,gdk-pixbuf)
356 ("gettext" ,gettext-minimal)
357 ("gobject-introspection" ,gobject-introspection)
358 ("gtk+:doc", gtk+ "doc")
359 ("vala" ,vala)))
360 (synopsis "Media art library for the GNOME desktop")
361 (description
362 "The libmediaart library is the foundation for media art caching,
363extraction, and lookup for applications on the desktop.")
364 (home-page "https://gitlab.gnome.org/GNOME/libmediaart")
365 (license license:lgpl2.1+)))
366
30416265
RG
367(define-public gnome-menus
368 (package
369 (name "gnome-menus")
370 (version "3.32.0")
371 (source (origin
372 (method url-fetch)
373 (uri (string-append "mirror://gnome/sources/gnome-menus/"
374 (version-major+minor version) "/"
375 name "-" version ".tar.xz"))
376 (sha256
377 (base32
378 "0x2blzqrapmbsbfzxjcdcpa3vkw9hq5k96h9kvjmy9kl415wcl68"))))
379 (build-system gnu-build-system)
380 (native-inputs
381 `(("gettext" ,gettext-minimal)
382 ("glib" ,glib)
383 ("pkg-config" ,pkg-config)))
384 (synopsis "Menu support for GNOME desktop")
385 (description "GNOME Menus contains the libgnome-menu library, the layout
386configuration files for the GNOME menu, as well as a simple menu editor.")
387 (home-page "https://gitlab.gnome.org/GNOME/gnome-menus")
388 (license license:gpl2)))
389
d61a894b
CB
390(define-public deja-dup
391 (package
392 (name "deja-dup")
393 (version "34.3")
394 (source (origin
395 (method url-fetch)
396 (uri "https://launchpadlibrarian.net/295170991/deja-dup-34.3.tar.xz")
397 (sha256
398 (base32
399 "1xqcr61hpbahbla7gdjn4ngjfz7w6f57y7f5pkb77yk05f60j2n9"))
400 (patches
401 (search-patches "deja-dup-use-ref-keyword-for-iter.patch"))))
402 (build-system glib-or-gtk-build-system)
403 (arguments
404 `(#:modules ((guix build gnu-build-system)
405 ((guix build cmake-build-system) #:prefix cmake:)
406 (guix build glib-or-gtk-build-system)
407 (guix build utils))
408 #:imported-modules (,@%glib-or-gtk-build-system-modules
409 (guix build cmake-build-system))
410 #:test-target "test"
411 #:configure-flags (list (string-append
412 "-DCMAKE_INSTALL_FULL_DATADIR=" %output)
413 (string-append
414 "-DCMAKE_INSTALL_LIBEXECDIR=" %output))
415 #:phases
416 (modify-phases %standard-phases
417 (add-after 'unpack 'patch-lockfile-deletion
418 (lambda rest
419 (substitute* "libdeja/tools/duplicity/DuplicityInstance.vala"
420 (("/bin/rm")
421 (which "rm")))))
422 (replace 'configure
423 (assoc-ref cmake:%standard-phases 'configure))
424 (delete 'check) ;; Fails due to issues with DBus
425 (add-after 'install 'wrap-deja-dup
426 (lambda* (#:key inputs outputs #:allow-other-keys)
427 (let ((python (assoc-ref inputs "python"))
428 (python-path (getenv "PYTHONPATH"))
429 (duplicity (assoc-ref inputs "duplicity"))
430 (out (assoc-ref outputs "out")))
431 (for-each
432 (lambda (program)
433 (wrap-program program
434 `("PATH" ":" prefix (,(string-append python "/bin")
435 ,(string-append duplicity "/bin"))))
436 (wrap-program program
437 `("PYTHONPATH" ":" prefix (,python-path))))
438
439 (find-files (string-append out "/bin")))
440 #t))))))
441 (inputs
442 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
443 ("gobject-introspection" ,gobject-introspection)
444 ("duplicity" ,duplicity)
61506fe5 445 ("python" ,python-2)
d61a894b
CB
446 ("python-pygobject" ,python2-pygobject)
447 ("gtk+" ,gtk+)
448 ("libnotify" ,libnotify)
449 ("libpeas" ,libpeas)
450 ("libsecret" ,libsecret)
451 ("packagekit" ,packagekit)))
452 (native-inputs
453 `(("pkg-config" ,pkg-config)
454 ("vala" ,vala)
455 ("gettext" ,gettext-minimal)
456 ("itstool" ,itstool)
457 ("intltool" ,intltool)
c69959f0 458 ("cmake" ,cmake-minimal)))
d61a894b
CB
459 (home-page "https://launchpad.net/deja-dup")
460 (synopsis "Simple backup tool, for regular encrypted backups")
461 (description
462 "Déjà Dup is a simple backup tool, for regular encrypted backups. It
463uses duplicity as the backend, which supports incremental backups and storage
464either on a local, or remote machine via a number of methods.")
465 (license license:gpl3+)))
466
823b77fb
RG
467(define-public gnome-user-docs
468 (package
469 (name "gnome-user-docs")
470 (version "3.32.3")
471 (source
472 (origin
473 (method url-fetch)
474 (uri (string-append "mirror://gnome/sources/gnome-user-docs/"
475 (version-major+minor version)
476 "/gnome-user-docs-" version ".tar.xz"))
477 (sha256
478 (base32 "0dvsl0ldg8rf7yq0r4dv1pn41s7gjgcqp7agkbflkbmhrl6vbhig"))))
479 (build-system gnu-build-system)
480 (native-inputs
481 `(("gettext" ,gettext-minimal)
482 ("itstool" ,itstool)
483 ("pkg-config" ,pkg-config)
484 ("xmllint" ,libxml2)))
485 (synopsis "User documentation for the GNOME desktop")
486 (description
487 "The GNOME User Documentation explains how to use the GNOME desktop and its
488components. It covers usage and setup of the core GNOME programs by end-users
489and system administrators.")
490 (home-page "https://live.gnome.org/DocumentationProject")
491 (license license:cc-by3.0)))
492
be93299d
RG
493(define-public gnome-getting-started-docs
494 (package
495 (name "gnome-getting-started-docs")
496 (version "3.32.2")
497 (source
498 (origin
499 (method url-fetch)
500 (uri (string-append "mirror://gnome/sources/gnome-getting-started-docs/"
501 (version-major+minor version)
502 "/gnome-getting-started-docs-" version ".tar.xz"))
503 (sha256
504 (base32 "1v4k465mlzrhgcdddzs6bmm0yliyrfx6jg3gh0s17a08i0w5rbwq"))))
505 (build-system gnu-build-system)
506 (native-inputs
507 `(("gettext" ,gettext-minimal)
508 ("itstool" ,itstool)
509 ("pkg-config" ,pkg-config)
510 ("xmllint" ,libxml2)))
511 (synopsis "Help to get new users started with the GNOME desktop")
512 (description
513 "The GNOME Getting Started Documentation contains GNOME's intuitive
514\"Getting Started\" tour, with video guides, that can be viewed with Yelp.
515
516It is normally used together with @command{gnome-initial-setup}, but is also
517useful as a tutorial and users' guide for new or less experienced users.")
518 (home-page "https://live.gnome.org/DocumentationProject")
519 (license license:cc-by-sa3.0)))
520
a56be436
RJ
521(define-public dia
522 ;; This version from GNOME's repository includes fixes for compiling with
523 ;; recent versions of the build tools. The latest activity on the
524 ;; pre-GNOME version has been in 2014, while GNOME has continued applying
525 ;; fixes in 2016.
526 (let ((commit "fbc306168edab63db80b904956117cbbdc514ee4"))
527 (package
528 (name "dia")
914c8cdf 529 (version (git-version "0.97.3" "1" commit))
a56be436
RJ
530 (source (origin
531 (method git-fetch)
532 (uri (git-reference
914c8cdf 533 (url "https://gitlab.gnome.org/GNOME/dia.git/")
a56be436 534 (commit commit)))
914c8cdf 535 (file-name (git-file-name name version))
a56be436
RJ
536 (sha256
537 (base32
538 "1b4bba0k8ph4cwgw8xjglss0p6n111bpd5app67lrq79mp0ad06l"))))
539 (build-system gnu-build-system)
540 (inputs
a315afa3 541 `(("freetype" ,freetype)
a56be436
RJ
542 ("gdk-pixbuf" ,gdk-pixbuf)
543 ("gtk+" ,gtk+-2)
a315afa3 544 ("libart-lgpl" ,libart-lgpl)
a56be436 545 ("libxml2" ,libxml2)
a315afa3 546 ("pango" ,pango)))
a56be436 547 (native-inputs
a315afa3 548 `(("autoconf" ,autoconf)
a56be436 549 ("automake" ,automake)
a315afa3
EF
550 ("intltool" ,intltool)
551 ("glib" ,glib "bin")
a56be436
RJ
552 ("libtool" ,libtool)
553 ("perl" ,perl)
a315afa3 554 ("pkg-config" ,pkg-config)
a56be436
RJ
555 ("python-wrapper" ,python-wrapper)))
556 (arguments
557 `(#:phases
558 (modify-phases %standard-phases
4b3e91de 559 (add-before 'bootstrap 'dont-configure-during-bootstrap
a56be436 560 (lambda _
4b3e91de
EF
561 (setenv "NOCONFIGURE" "true")
562 #t)))))
a56be436
RJ
563 (home-page "https://wiki.gnome.org/Apps/Dia")
564 (synopsis "Diagram creation for GNOME")
565 (description "Dia can be used to draw different types of diagrams, and
566includes support for UML static structure diagrams (class diagrams), entity
567relationship modeling, and network diagrams. The program supports various file
568formats like PNG, SVG, PDF and EPS.")
569 (license license:gpl2+))))
570
d0b19e44
RW
571;; This is the unstable release, but it is required for the current stable
572;; release of gvfs (1.38.1).
adc5cb1b
KK
573(define-public libgdata
574 (package
575 (name "libgdata")
d0b19e44 576 (version "0.17.9")
adc5cb1b
KK
577 (source (origin
578 (method url-fetch)
579 (uri (string-append "mirror://gnome/sources/" name "/"
580 (version-major+minor version) "/"
581 name "-" version ".tar.xz"))
582 (sha256
583 (base32
d0b19e44 584 "0fj54yqxdapdppisqm1xcyrpgcichdmipq0a0spzz6009ikzgi45"))))
adc5cb1b
KK
585 (build-system gnu-build-system)
586 (arguments
587 '(#:phases
588 (modify-phases %standard-phases
448052b7
TGR
589 (add-before 'check 'disable-failing-tests
590 (lambda _
591 ;; The PicasaWeb API tests fail with gnome-online-accounts@3.24.2.
592 ;; They have been removed in libgdata 0.17.6, so just do the same.
593 (substitute* "gdata/tests/Makefile"
594 (("picasaweb\\$\\(EXEEXT\\) ") ""))
adc5cb1b
KK
595 #t)))))
596 (native-inputs
597 `(("glib:bin" ,glib "bin")
598 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
599 ("intltool" ,intltool)
600 ("pkg-config" ,pkg-config)
601 ("uhttpmock" ,uhttpmock)))
602 (inputs
603 `(("cyrus-sasl" ,cyrus-sasl)
d0b19e44 604 ("glib-networking" ,glib-networking)))
adc5cb1b
KK
605 (propagated-inputs
606 `(("gcr" ,gcr)
d0b19e44 607 ("glib" ,glib)
14c297fd 608 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
d0b19e44 609 ("json-glib" ,json-glib)
adc5cb1b 610 ("liboauth" ,liboauth)
d0b19e44 611 ("libsoup" ,libsoup)
adc5cb1b
KK
612 ("libxml2" ,libxml2)))
613 (home-page "https://wiki.gnome.org/Projects/libgdata")
614 (synopsis "Library for accessing online service APIs")
615 (description
616 "libgdata is a GLib-based library for accessing online service APIs using
617the GData protocol — most notably, Google's services. It provides APIs to
618access the common Google services, and has full asynchronous support.")
619 (license license:lgpl2.1+)))
620
94e10cf4
KK
621(define-public libgxps
622 (package
623 (name "libgxps")
66470a5a 624 (version "0.3.1")
94e10cf4
KK
625 (source (origin
626 (method url-fetch)
7f10628c 627 (uri (string-append "mirror://gnome/sources/" name "/"
94e10cf4
KK
628 (version-major+minor version) "/"
629 name "-" version ".tar.xz"))
630 (sha256
631 (base32
66470a5a 632 "157s4c9gjjss6yd7qp7n4q6s72gz1k4ilsx4xjvp357azk49z4qs"))))
b6b3e512 633 (build-system meson-build-system)
94e10cf4
KK
634 (native-inputs
635 `(("gobject-introspection" ,gobject-introspection)
636 ("pkg-config" ,pkg-config)))
637 (inputs
c8d62d93 638 `(("gtk+" ,gtk+)
b6b3e512 639 ("libjpeg" ,libjpeg-turbo)
94e10cf4 640 ("lcms" ,lcms)
0a6e9e13 641 ("libtiff" ,libtiff)))
c8d62d93
MB
642 (propagated-inputs
643 ;; In Requires of libgxps.pc.
644 `(("cairo" ,cairo)
645 ("glib" ,glib)
646 ("libarchive" ,libarchive)))
94e10cf4
KK
647 (home-page "https://wiki.gnome.org/Projects/libgxps")
648 (synopsis "GObject-based library for handling and rendering XPS documents")
649 (description
650 "libgxps is a GObject-based library for handling and rendering XPS
651documents. This package also contains binaries that can convert XPS documents
652to other formats.")
653 (license license:lgpl2.1+)))
654
4e09f57a
RG
655(define-public gnome-characters
656 (package
657 (name "gnome-characters")
658 (version "3.30.0")
659 (source
660 (origin
661 (method url-fetch)
662 (uri (string-append "mirror://gnome/sources/"
663 "gnome-characters/" (version-major+minor version)
664 "/gnome-characters-" version ".tar.xz"))
665 (sha256
666 (base32
667 "08cwz39iwgsyyb2wqhb8vfbmh1cwfkgfiy7adp08w7rwqi99x3dp"))))
668 (build-system meson-build-system)
5757c641 669 (arguments
670 `(#:glib-or-gtk? #t
671 #:phases (modify-phases %standard-phases
672 (add-after 'install 'wrap
673 (lambda* (#:key outputs #:allow-other-keys)
674 ;; GNOME Characters needs Typelib files from GTK and
675 ;; gnome-desktop.
676 (wrap-program (string-append (assoc-ref outputs "out")
677 "/bin/gnome-characters")
678 `("GI_TYPELIB_PATH" ":" prefix
679 (,(getenv "GI_TYPELIB_PATH"))))
680 #t)))))
4e09f57a
RG
681 (native-inputs
682 `(("gettext" ,gettext-minimal)
683 ("glib:bin" ,glib "bin")
684 ("gtk+:bin" ,gtk+ "bin")
685 ("pkg-config" ,pkg-config)
686 ("python" ,python-minimal)))
687 (inputs
688 `(("gjs" ,gjs)
689 ("gtk+" ,gtk+)
5757c641 690 ("libunistring" ,libunistring)
691 ("gnome-desktop" ,gnome-desktop)))
4e09f57a
RG
692 (home-page "https://wiki.gnome.org/Apps/CharacterMap")
693 (synopsis "Find and insert unusual characters")
694 (description "Characters is a simple utility application to find
695and insert unusual characters. It allows you to quickly find the
696character you are looking for by searching for keywords.")
697 (license license:bsd-3)))
698
7aab13f1
ML
699(define-public gnome-common
700 (package
701 (name "gnome-common")
af83490d 702 (version "3.18.0")
7aab13f1
ML
703 (source
704 (origin
705 (method url-fetch)
706 (uri (string-append "mirror://gnome/sources/" name "/"
707 (version-major+minor version) "/"
708 name "-" version ".tar.xz"))
709 (sha256
710 (base32
af83490d 711 "1kzqi8qvh5p1zncj8msazlmvcwsczjz2hqxp4x2y0mg718vrwmi2"))))
7aab13f1
ML
712 (build-system gnu-build-system)
713 (home-page "https://www.gnome.org/")
714 (synopsis "Bootstrap GNOME modules built from Git")
715 (description "gnome-common contains various files needed to bootstrap
716GNOME modules built from Git. It contains a common \"autogen.sh\" script that
717can be used to configure a source directory checked out from Git and some
718commonly used macros.")
719 (license license:gpl2+)))
720
4e868d22
RG
721(define-public gnome-contacts
722 (package
723 (name "gnome-contacts")
6a6138b2 724 (version "3.32.1")
4e868d22
RG
725 (source (origin
726 (method url-fetch)
727 (uri (string-append "mirror://gnome/sources/gnome-contacts/"
728 (version-major+minor version) "/"
729 name "-" version ".tar.xz"))
730 (sha256
731 (base32
6a6138b2 732 "17g1gh8yj58cfpdx69h2szivlbjgvv982kmhnkkh0i5bwj0zs2yy"))))
4e868d22
RG
733 (build-system meson-build-system)
734 (arguments
735 `(#:phases
736 (modify-phases %standard-phases
737 (add-after 'unpack 'generate-vapis
738 (lambda* (#:key inputs #:allow-other-keys)
739 ;; To generate goa's missing .vapi file
740 (define goa
741 (assoc-ref inputs "gnome-online-accounts:lib"))
742
743 (invoke "vapigen" "--directory=vapi" "--pkg=gio-2.0"
744 "--library=goa-1.0"
745 (string-append goa "/share/gir-1.0/Goa-1.0.gir"))
746 #t)))))
747 (native-inputs
748 `(("glib:bin" ,glib "bin")
749 ("gtk+:bin" ,gtk+ "bin")
750 ("pkg-config" ,pkg-config)))
751 (inputs
752 `(("cheese" ,cheese)
753 ("docbook-xml" ,docbook-xml)
754 ("dockbook-xsl" ,docbook-xsl)
755 ("evolution-data-server" ,evolution-data-server)
756 ("gettext" ,gettext-minimal)
757 ("gnome-desktop" ,gnome-desktop)
758 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
759 ("gobject-introspection" ,gobject-introspection)
760 ("gst-plugins-base" ,gst-plugins-base)
761 ("gtk+" ,gtk+)
762 ("libgee" ,libgee)
763 ("libxslt" ,libxslt)
764 ("telepathy-glib" ,telepathy-glib)
765 ("vala" ,vala)))
766 (propagated-inputs
767 `(("folks", folks)
768 ("telepathy-mission-control" ,telepathy-mission-control)))
769 (synopsis "GNOME's integrated address book")
770 (description
771 "GNOME Contacts organizes your contact information from online and
772offline sources, providing a centralized place for managing your contacts.")
773 (home-page "https://wiki.gnome.org/Apps/Contacts")
774 (license license:gpl2+)))
775
9cc98f8a
CR
776(define-public gnome-desktop
777 (package
778 (name "gnome-desktop")
e8a26caa 779 (version "3.32.2")
9cc98f8a
CR
780 (source
781 (origin
782 (method url-fetch)
b38e45d8
EB
783 (uri (string-append "mirror://gnome/sources/" name "/"
784 (version-major+minor version) "/"
9cc98f8a
CR
785 name "-" version ".tar.xz"))
786 (sha256
787 (base32
e8a26caa
KK
788 "0bidx4626x7k2myv6f64qv4fzmxv8v475wibiz19kj8hjfr737q9"))))
789 (build-system meson-build-system)
a0fe7c06
CB
790 (arguments
791 '(#:phases
792 (modify-phases %standard-phases
793 (add-before 'configure 'patch-path
794 (lambda* (#:key inputs #:allow-other-keys)
795 (let ((libc (assoc-ref inputs "libc")))
796 (substitute* "libgnome-desktop/gnome-languages.c"
797 (("\"locale\"")
798 (string-append "\"" libc "/bin/locale\"")))
e8a26caa
KK
799 #t)))
800 (add-before 'check 'pre-check
801 (lambda* (#:key inputs #:allow-other-keys)
802 ;; Tests require a running X server and locales.
803 (system "Xvfb :1 &")
804 (setenv "DISPLAY" ":1")
805 (setenv "GUIX_LOCPATH"
806 (string-append (assoc-ref inputs "glibc-locales")
807 "/lib/locale"))
808 #t)))))
9cc98f8a 809 (native-inputs
e8a26caa
KK
810 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
811 ("glibc-locales" ,glibc-locales) ; for tests
812 ("gobject-introspection" ,gobject-introspection)
a8340482 813 ("itstool" ,itstool)
bcb354ad
SB
814 ("intltool" ,intltool)
815 ("pkg-config" ,pkg-config)
e8a26caa
KK
816 ("xmllint" ,libxml2)
817 ("xorg-server" ,xorg-server-for-tests)))
a8340482
SB
818 (propagated-inputs
819 ;; Required by gnome-desktop-3.0.pc.
820 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
e8a26caa 821 ("gtk+" ,gtk+)
9cc98f8a 822 ("iso-codes" ,iso-codes)
9863ce20 823 ("libseccomp" ,libseccomp)
9cc98f8a 824 ("libx11" ,libx11)
e8a26caa
KK
825 ("xkeyboard-config" ,xkeyboard-config)))
826 (inputs
827 `(("gdk-pixbuf" ,gdk-pixbuf)
828 ("glib" ,glib)
9cc98f8a
CR
829 ("libxext" ,libxext)
830 ("libxkbfile" ,libxkbfile)
e8a26caa 831 ("libxrandr" ,libxrandr)))
9cc98f8a
CR
832 (home-page "https://www.gnome.org/")
833 (synopsis
35b9e423 834 "Libgnome-desktop, gnome-about, and desktop-wide documents")
9cc98f8a
CR
835 (description
836 "The libgnome-desktop library provides API shared by several applications
35b9e423
EB
837on the desktop, but that cannot live in the platform for various reasons.
838There is no API or ABI guarantee, although we are doing our best to provide
839stability. Documentation for the API is available with gtk-doc.
9cc98f8a
CR
840
841The gnome-about program helps find which version of GNOME is installed.")
842 ; Some bits under the LGPL.
1dd26275 843 (license license:gpl2+)))
9cc98f8a 844
995b7261
AE
845(define-public gnome-doc-utils
846 (package
847 (name "gnome-doc-utils")
848 (version "0.20.10")
849 (source
850 (origin
851 (method url-fetch)
b38e45d8
EB
852 (uri (string-append "mirror://gnome/sources/" name "/"
853 (version-major+minor version) "/"
995b7261
AE
854 name "-" version ".tar.xz"))
855 (sha256
856 (base32
857 "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb"))))
858 (build-system gnu-build-system)
c4c4cc05 859 (native-inputs
995b7261 860 `(("intltool" ,intltool)
b4ce6300 861 ("docbook-xml" ,docbook-xml-4.4)
d80b0d4a 862 ("python2-libxml2" ,python2-libxml2)
995b7261
AE
863 ("libxml2" ,libxml2)
864 ("libxslt" ,libxslt)
865 ("pkg-config" ,pkg-config)
866 ("python-2" ,python-2)))
995b7261
AE
867 (home-page "https://wiki.gnome.org/GnomeDocUtils")
868 (synopsis
869 "Documentation utilities for the Gnome project")
870 (description
871 "Gnome-doc-utils is a collection of documentation utilities for the
872Gnome project. It includes xml2po tool which makes it easier to translate
873and keep up to date translations of documentation.")
1dd26275 874 (license license:gpl2+))) ; xslt under lgpl
d9c1a22b 875
6c4f7022
DC
876(define-public gnome-disk-utility
877 (package
878 (name "gnome-disk-utility")
e106d0a6 879 (version "3.32.1")
6c4f7022
DC
880 (source (origin
881 (method url-fetch)
882 (uri (string-append "mirror://gnome/sources/" name "/"
883 (version-major+minor version) "/"
884 name "-" version ".tar.xz"))
885 (sha256
886 (base32
e106d0a6 887 "08vwbji9m1nhjjdiyhhaqi8cncys7i89b4bpy095f8475v8y05bg"))))
4b9a65bf 888 (build-system meson-build-system)
321c73c3
EF
889 (arguments
890 '(#:phases
891 (modify-phases %standard-phases
892 (add-after 'unpack 'skip-gtk-update-icon-cache
893 ;; Don't create 'icon-theme.cache'.
894 (lambda _
895 (substitute* "meson_post_install.py"
896 (("gtk-update-icon-cache") "true"))
897 #t)))))
6c4f7022
DC
898 (native-inputs
899 `(("glib:bin" ,glib "bin")
900 ("intltool" ,intltool)
901 ("pkg-config" ,pkg-config)
902 ("docbook-xml" ,docbook-xml)
903 ("docbook-xsl" ,docbook-xsl)
904 ("libxml2" ,libxml2)
905 ("libxslt" ,libxslt)))
906 (inputs
907 `(("glib" ,glib)
908 ("appstream-glib" ,appstream-glib)
909 ("gnome-settings-daemon" ,gnome-settings-daemon)
910 ("gtk+" ,gtk+)
911 ("libcanberra" ,libcanberra)
912 ("libdvdread" ,libdvdread)
913 ("libnotify" ,libnotify)
914 ("libpwquality" ,libpwquality)
915 ("libsecret" ,libsecret)
916 ("udisks" ,udisks)))
917 (home-page "https://git.gnome.org/browse/gnome-disk-utility")
918 (synopsis "Disk management utility for GNOME")
919 (description "Disk management utility for GNOME.")
920 (license license:gpl2+)))
921
3d217317
RG
922(define-public gnome-font-viewer
923 (package
924 (name "gnome-font-viewer")
925 (version "3.30.0")
926 (source (origin
927 (method url-fetch)
928 (uri (string-append "mirror://gnome/sources/gnome-font-viewer/"
929 (version-major+minor version)
930 "/gnome-font-viewer-" version ".tar.xz"))
931 (sha256
932 (base32
933 "1wwnx2zrlbd2d6np7m9s78alx6j6ranrnh1g2z6zrv9qcj8rpzz5"))))
934 (build-system meson-build-system)
935 (arguments
936 '(#:phases
937 (modify-phases %standard-phases
938 (add-after 'unpack 'patch-post-install-script
939 (lambda _
940 (substitute* "meson-postinstall.sh"
941 (("update-desktop-database") (which "true")))
942 #t)))))
943 (native-inputs
944 `(("gettext" ,gettext-minimal)
945 ("glib:bin" ,glib "bin")
946 ("pkg-config" ,pkg-config)))
947 (inputs
948 `(("glib" ,glib)
949 ("gnome-desktop" ,gnome-desktop)
950 ("gtk+" ,gtk+)))
951 (home-page "https://gitlab.gnome.org/GNOME/gnome-font-viewer")
952 (synopsis "GNOME Fonts")
953 (description "Application to show you the fonts installed on your computer
954for your use as thumbnails. Selecting any thumbnails shows the full view of how
955the font would look under various sizes.")
956 (license license:gpl2+)))
957
8ff49011
RW
958(define-public gcr
959 (package
960 (name "gcr")
bea6b829 961 (version "3.28.1")
8ff49011 962 (source (origin
0daf0efb
RW
963 (method url-fetch)
964 (uri (string-append "mirror://gnome/sources/" name "/"
965 (version-major+minor version) "/"
966 name "-" version ".tar.xz"))
967 (sha256
968 (base32
bea6b829 969 "12qn7mcmxb45lz1gq3s3b34rimiyrrshkrpvxdw1fc0w26i4l84m"))
03ecf85a
MB
970 (patches
971 (list
972 ;; This patch solves an ordering issue that showed up when
973 ;; running the test suite against newer Glib 2.60. See
974 ;; <https://gitlab.gnome.org/GNOME/gcr/merge_requests/9>.
975 (origin
976 (method url-fetch)
977 (uri (string-append "https://gitlab.gnome.org/GNOME/gcr/commit/"
978 "45d637578d7643ff96c0183ac267497a0b4c6344.diff"))
979 (file-name "gcr-hashtable-ordering.patch")
980 (sha256
981 (base32
982 "1vsqiys8fsm1f1vvds783wwf7zwi5v282rhsai8jrsm6x7h79gbi")))))))
8ff49011
RW
983 (build-system gnu-build-system)
984 (arguments
0daf0efb
RW
985 '(#:phases
986 (modify-phases %standard-phases
987 ;; These fail because /var/lib/dbus/machine-id is not present in the
988 ;; build environment.
989 (add-after 'unpack 'disable-failing-tests
990 (lambda _
991 (substitute* "gcr/test-system-prompt.c"
992 (("g_test_add") "//")
993 (("return.*") "return 0;"))
994 #t))
995 (add-before 'check 'pre-check
996 (lambda _
997 ;; Some tests expect to write to $HOME.
998 (setenv "HOME" "/tmp")
999 #t)))))
8ff49011
RW
1000 (inputs
1001 `(("dbus" ,dbus)
0daf0efb 1002 ("gnupg" ,gnupg) ;called as a child process during tests
8ff49011
RW
1003 ("libgcrypt" ,libgcrypt)))
1004 (native-inputs
0daf0efb 1005 `(("python" ,python-2) ;for tests
8ff49011
RW
1006 ("pkg-config" ,pkg-config)
1007 ("glib" ,glib "bin")
2af4f5b0
SB
1008 ("gobject-introspection" ,gobject-introspection)
1009 ("intltool" ,intltool)
0daf0efb 1010 ("libxml2" ,libxml2)
bea6b829 1011 ("vala" ,vala)
2af4f5b0 1012 ("xsltproc" ,libxslt)))
8ff49011
RW
1013 ;; mentioned in gck.pc, gcr.pc and gcr-ui.pc
1014 (propagated-inputs
1015 `(("p11-kit" ,p11-kit)
1016 ("glib" ,glib)
1017 ("gtk+" ,gtk+)))
f032d0be 1018 (home-page "https://www.gnome.org")
8ff49011
RW
1019 (synopsis "Libraries for displaying certificates and accessing key stores")
1020 (description
1021 "The GCR package contains libraries used for displaying certificates and
1022accessing key stores. It also provides the viewer for crypto files on the
1023GNOME Desktop.")
1024 (license license:lgpl2.1+)))
1025
c1354b90
LC
1026(define-public libgnome-keyring
1027 (package
1028 (name "libgnome-keyring")
5e8aec2c 1029 (version "3.12.0")
c1354b90
LC
1030 (source (origin
1031 (method url-fetch)
b38e45d8
EB
1032 (uri (string-append "mirror://gnome/sources/" name "/"
1033 (version-major+minor version) "/"
1034 name "-" version ".tar.xz"))
c1354b90
LC
1035 (sha256
1036 (base32
5e8aec2c 1037 "10vpjhgbjm7z2djy04qakd02qlzpd02xnbfjhk2aqwjzn3xpihf4"))))
c1354b90 1038 (build-system gnu-build-system)
c1354b90 1039 (inputs
c4c4cc05 1040 `(("libgcrypt" ,libgcrypt)
c1354b90 1041 ("dbus" ,dbus)))
c4c4cc05
JD
1042 (native-inputs
1043 `(("pkg-config" ,pkg-config)
426adbe8 1044 ("glib" ,glib "bin")
c4c4cc05 1045 ("intltool" ,intltool)))
c1354b90
LC
1046 (propagated-inputs
1047 ;; Referred to in .h files and .pc.
1048 `(("glib" ,glib)))
f032d0be 1049 (home-page "https://www.gnome.org")
c1354b90
LC
1050 (synopsis "Accessing passwords from the GNOME keyring")
1051 (description
1052 "Client library to access passwords from the GNOME keyring.")
1053
1054 ;; Though a couple of files are LGPLv2.1+.
1dd26275 1055 (license license:lgpl2.0+)))
c1354b90 1056
e99a3d6f
RW
1057(define-public gnome-keyring
1058 (package
1059 (name "gnome-keyring")
ab35cc6e 1060 (version "3.28.2")
e99a3d6f
RW
1061 (source (origin
1062 (method url-fetch)
1063 (uri (string-append "mirror://gnome/sources/" name "/"
1064 (version-major+minor version) "/"
1065 name "-" version ".tar.xz"))
1066 (sha256
1067 (base32
ab35cc6e 1068 "0sk4las4ji8wv9nx8mldzqccmpmkvvr9pdwv9imj26r10xyin5w1"))))
e99a3d6f
RW
1069 (build-system gnu-build-system)
1070 (arguments
1071 `(#:tests? #f ;48 of 603 tests fail because /var/lib/dbus/machine-id does
1072 ;not exist
1073 #:configure-flags
1074 (list
1075 (string-append "--with-pkcs11-config="
1076 (assoc-ref %outputs "out") "/share/p11-kit/modules/")
1077 (string-append "--with-pkcs11-modules="
1078 (assoc-ref %outputs "out") "/share/p11-kit/modules/"))
1079 #:phases
1080 (modify-phases %standard-phases
ab35cc6e
RW
1081 (add-after 'unpack 'fix-/bin/sh-reference
1082 (lambda _
1083 (substitute* "po/Makefile.in.in"
1084 (("/bin/sh") (which "sh")))
1085 #t))
5120f24f
RW
1086 (add-after 'unpack 'fix-docbook
1087 (lambda* (#:key inputs #:allow-other-keys)
1088 (substitute* "docs/Makefile.am"
1089 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1090 (string-append (assoc-ref inputs "docbook-xsl")
1091 "/xml/xsl/docbook-xsl-"
1092 ,(package-version docbook-xsl)
1093 "/manpages/docbook.xsl")))
1094 (setenv "XML_CATALOG_FILES"
1095 (string-append (assoc-ref inputs "docbook-xml")
1096 "/xml/dtd/docbook/catalog.xml"))
1097 ;; Rerun the whole thing to avoid version mismatch ("This is
1098 ;; Automake 1.15.1, but the definition used by this
1099 ;; AM_INIT_AUTOMAKE comes from Automake 1.15."). Note: we don't
1100 ;; use 'autoreconf' because it insists on running 'libtoolize'.
1101 (invoke "autoconf")
1102 (invoke "aclocal")
1103 (invoke "automake" "-ac"))))))
e99a3d6f
RW
1104 (inputs
1105 `(("libgcrypt" ,libgcrypt)
1a0b2d82 1106 ("linux-pam" ,linux-pam)
ab35cc6e 1107 ("openssh" ,openssh)
e99a3d6f
RW
1108 ("dbus" ,dbus)
1109 ("gcr" ,gcr)))
1110 (native-inputs
1111 `(("pkg-config" ,pkg-config)
1112 ("glib" ,glib "bin")
5120f24f 1113 ("glib" ,glib) ; for m4 macros
e99a3d6f
RW
1114 ("python" ,python-2) ;for tests
1115 ("intltool" ,intltool)
1116 ("autoconf" ,autoconf)
1117 ("automake" ,automake)
1118 ("libxslt" ,libxslt) ;for documentation
1119 ("docbook-xml" ,docbook-xml-4.2)
1120 ("docbook-xsl" ,docbook-xsl)))
f032d0be 1121 (home-page "https://www.gnome.org")
e99a3d6f
RW
1122 (synopsis "Daemon to store passwords and encryption keys")
1123 (description
1124 "gnome-keyring is a program that keeps passwords and other secrets for
1125users. It is run as a daemon in the session, similar to ssh-agent, and other
1126applications locate it via an environment variable or D-Bus.
1127
1128The program can manage several keyrings, each with its own master password,
1129and there is also a session keyring which is never stored to disk, but
1130forgotten when the session ends.")
1131 (license license:lgpl2.1+)))
1132
c1354b90
LC
1133(define-public evince
1134 (package
1135 (name "evince")
936d5642 1136 (version "3.34.2")
c1354b90
LC
1137 (source (origin
1138 (method url-fetch)
ac631328 1139 (uri (string-append "mirror://gnome/sources/evince/"
b38e45d8 1140 (version-major+minor version) "/"
ac631328 1141 "evince-" version ".tar.xz"))
c1354b90
LC
1142 (sha256
1143 (base32
936d5642 1144 "05q6v9lssd21623mnj2p49clj9v9csw9kay7n4nklki025grbh1w"))))
121de2e1 1145 (build-system glib-or-gtk-build-system)
c1354b90
LC
1146 (arguments
1147 `(#:configure-flags '("--disable-nautilus")
554b2dac
SB
1148 #:phases
1149 (modify-phases %standard-phases
1150 (add-before 'install 'skip-gtk-update-icon-cache
1151 ;; Don't create 'icon-theme.cache'.
1152 (lambda _
1153 (substitute* "data/Makefile"
1154 (("gtk-update-icon-cache") "true"))
1155 #t)))))
c1354b90 1156 (inputs
9a096881
KK
1157 `(("libarchive" ,libarchive)
1158 ("libgxps" ,libgxps)
1159 ("libspectre" ,libspectre)
c769cf9f 1160 ("djvulibre" ,djvulibre)
c1354b90
LC
1161 ("ghostscript" ,ghostscript)
1162 ("poppler" ,poppler)
c769cf9f
SB
1163 ("libtiff" ,libtiff)
1164 ;; TODO:
c769cf9f
SB
1165 ;; Build libkpathsea as a shared library for DVI support.
1166 ;; ("libkpathsea" ,texlive-bin)
1167 ("gnome-desktop" ,gnome-desktop)
c1354b90 1168 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2dfc16d1 1169 ("gspell" ,gspell)
c1354b90 1170 ("libgnome-keyring" ,libgnome-keyring)
c769cf9f 1171 ("adwaita-icon-theme" ,adwaita-icon-theme)
c1354b90
LC
1172 ("gdk-pixbuf" ,gdk-pixbuf)
1173 ("atk" ,atk)
1174 ("pango" ,pango)
1175 ("gtk+" ,gtk+)
1176 ("glib" ,glib)
1177 ("libxml2" ,libxml2)
c1354b90
LC
1178 ("libsm" ,libsm)
1179 ("libice" ,libice)
96e42467 1180 ("shared-mime-info" ,shared-mime-info)
3d243e9c
FB
1181 ("dconf" ,dconf)
1182 ("libcanberra" ,libcanberra)
c769cf9f 1183 ("libsecret" ,libsecret)
a271096b 1184
c1354b90
LC
1185 ;; For tests.
1186 ("dogtail" ,python2-dogtail)))
96e42467 1187 (native-inputs
bcb354ad
SB
1188 `(("itstool" ,itstool)
1189 ("intltool" ,intltool)
426adbe8 1190 ("glib" ,glib "bin")
bcb354ad
SB
1191 ("pkg-config" ,pkg-config)
1192 ("xmllint" ,libxml2)))
c1354b90 1193 (home-page
f032d0be 1194 "https://www.gnome.org/projects/evince/")
c1354b90
LC
1195 (synopsis "GNOME's document viewer")
1196 (description
1197 "Evince is a document viewer for multiple document formats. It
1198currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
1199of Evince is to replace the multiple document viewers that exist
96e42467 1200on the GNOME Desktop with a single simple application.")
1dd26275 1201 (license license:gpl2+)))
c1354b90 1202
22e32e69
AE
1203(define-public gsettings-desktop-schemas
1204 (package
1205 (name "gsettings-desktop-schemas")
c900dabd 1206 (version "3.32.0")
22e32e69
AE
1207 (source
1208 (origin
1209 (method url-fetch)
1210 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1211 (version-major+minor version) "/"
22e32e69
AE
1212 name "-" version ".tar.xz"))
1213 (sha256
1214 (base32
c900dabd
KK
1215 "0d8a6479vappgplq5crdr3ah0ykqcr3fw533wkx9v1a8lnrv8n9d"))))
1216 (build-system meson-build-system)
65209ffa
LC
1217 (arguments
1218 '(#:phases (modify-phases %standard-phases
1219 (add-after 'unpack 'set-adwaita-theme-file-name
1220 (lambda* (#:key inputs #:allow-other-keys)
1221 ;; Provide the correct file name of the default GNOME
1222 ;; background, 'adwaita-timed.xml'.
1223 (let ((theme (assoc-ref inputs "gnome-backgrounds")))
1224 (substitute* (find-files "schemas"
1225 "\\.gschema\\.xml\\.in$")
1226 (("@datadir@/backgrounds/gnome")
1227 (string-append theme "/share/backgrounds/gnome")))
1228 #t))))))
22e32e69 1229 (inputs
65209ffa
LC
1230 `(("glib" ,glib)
1231 ("gnome-backgrounds" ,gnome-backgrounds)))
c4c4cc05
JD
1232 (native-inputs
1233 `(("intltool" ,intltool)
426adbe8 1234 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
7211944a 1235 ("gobject-introspection" ,gobject-introspection)
22e32e69
AE
1236 ("pkg-config" ,pkg-config)))
1237 (home-page "https://launchpad.net/gsettings-desktop-schemas")
1238 (synopsis
1239 "GNOME settings for various desktop components")
1240 (description
1241 "Gsettings-desktop-schemas contains a collection of GSettings schemas
1242for settings shared by various components of the GNOME desktop.")
1dd26275 1243 (license license:lgpl2.1+)))
22e32e69 1244
27477d2d
AE
1245(define-public icon-naming-utils
1246 (package
1247 (name "icon-naming-utils")
1248 (version "0.8.90")
1249 (source
1250 (origin
1251 (method url-fetch)
5cc3096c 1252 (uri (string-append "https://tango.freedesktop.org/releases/icon-naming-utils-"
27477d2d
AE
1253 version ".tar.bz2"))
1254 (sha256
1255 (base32
1256 "1mc3v28fdfqanx3lqx233vcr4glb4c2376k0kx2v91a4vxwqcdxi"))))
1257 (build-system gnu-build-system)
1258 (inputs
1259 `(("perl" ,perl)
1260 ("perl-xml-simple" ,perl-xml-simple)))
f4e97277
SB
1261 (arguments
1262 '(#:phases
dc1d3cde
KK
1263 (modify-phases %standard-phases
1264 (add-after 'install 'set-load-paths
1265 ;; Tell 'icon-name-mapping' where XML::Simple is.
1266 (lambda* (#:key outputs #:allow-other-keys)
1267 (let* ((out (assoc-ref outputs "out"))
1268 (prog (string-append out "/libexec/icon-name-mapping")))
1269 (wrap-program
1270 prog
1271 `("PERL5LIB" = ,(list (getenv "PERL5LIB")))))
1272 #t)))))
27477d2d
AE
1273 (home-page "http://tango.freedesktop.org/Standard_Icon_Naming_Specification")
1274 (synopsis
1275 "Utility to implement the Freedesktop Icon Naming Specification")
1276 (description
1277 "To help with the transition to the Freedesktop Icon Naming
1278Specification, the icon naming utility maps the icon names used by the
1279GNOME and KDE desktops to the icon names proposed in the specification.")
1dd26275 1280 (license license:lgpl2.1+)))
27477d2d 1281
7d3f3651
AE
1282(define-public gnome-icon-theme
1283 (package
1284 (name "gnome-icon-theme")
b32f58dd 1285 (version "3.12.0")
7d3f3651
AE
1286 (source
1287 (origin
1288 (method url-fetch)
1289 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1290 (version-major+minor version) "/"
7d3f3651
AE
1291 name "-" version ".tar.xz"))
1292 (sha256
1293 (base32
b32f58dd 1294 "0fjh9qmmgj34zlgxb09231ld7khys562qxbpsjlaplq2j85p57im"))))
7d3f3651 1295 (build-system gnu-build-system)
5613c27d
SB
1296 (arguments
1297 '(#:configure-flags
1298 ;; Don't create 'icon-theme.cache'.
1299 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
1300 (true (string-append coreutils "/bin/true")))
1301 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
c4c4cc05 1302 (native-inputs
5613c27d 1303 `(("icon-naming-utils" ,icon-naming-utils)
73b6cf42
SB
1304 ("intltool" ,intltool)
1305 ("pkg-config" ,pkg-config)))
5c610d4f
KK
1306 (home-page "https://wiki.gnome.org/Personalization")
1307 (synopsis "GNOME icon theme")
1308 (description "Icons for the GNOME desktop.")
1dd26275 1309 (license license:lgpl3))) ; or Creative Commons BY-SA 3.0
7d3f3651 1310
14eeefa2
SB
1311;; gnome-icon-theme was renamed to adwaita-icon-theme after version 3.12.0.
1312(define-public adwaita-icon-theme
1313 (package (inherit gnome-icon-theme)
1314 (name "adwaita-icon-theme")
9be59d7f 1315 (version "3.32.0")
14eeefa2
SB
1316 (source (origin
1317 (method url-fetch)
1318 (uri (string-append "mirror://gnome/sources/" name "/"
1319 (version-major+minor version) "/"
1320 name "-" version ".tar.xz"))
1321 (sha256
1322 (base32
9be59d7f 1323 "11ij35na8nisvxx3qh527iz33h6z2q1a7iinqyp7p65v0zjbd3b9"))))
5613c27d
SB
1324 (native-inputs
1325 `(("gtk-encode-symbolic-svg" ,gtk+ "bin")))))
14eeefa2 1326
ae792dba
RW
1327(define-public tango-icon-theme
1328 (package
1329 (name "tango-icon-theme")
1330 (version "0.8.90")
1331 (source (origin
1332 (method url-fetch)
1333 (uri (string-append "http://tango.freedesktop.org/releases/"
1334 "tango-icon-theme-" version ".tar.bz2"))
1335 (sha256
1336 (base32
1337 "034r9s944b4yikyfgn602yv7s54wdzlq0qfvqh52b9x6kbx08h79"))))
1338 (build-system gnu-build-system)
1339 (native-inputs
1340 `(("icon-naming-utils" ,icon-naming-utils)
1341 ("intltool" ,intltool)
1342 ("imagemagick" ,imagemagick)
1343 ("pkg-config" ,pkg-config)))
1344 (home-page "http://tango-project.org/")
1345 (synopsis "Tango icon theme")
1346 (description "This is an icon theme that follows the Tango visual
1347guidelines.")
1348 (license license:public-domain)))
1349
9167f8e6
LC
1350(define-public shared-mime-info
1351 (package
1352 (name "shared-mime-info")
18138ab9 1353 (version "1.10")
9167f8e6
LC
1354 (source (origin
1355 (method url-fetch)
5cc3096c 1356 (uri (string-append "https://freedesktop.org/~hadess/"
b38e45d8 1357 "shared-mime-info-" version ".tar.xz"))
9167f8e6
LC
1358 (sha256
1359 (base32
18138ab9 1360 "1gxyvwym3xgpmp262gfn8jg5sla6k5hy6m6dmy6grgiq90xsh9f6"))))
9167f8e6
LC
1361 (build-system gnu-build-system)
1362 (arguments
1363 ;; The build system appears not to be parallel-safe.
1364 '(#:parallel-build? #f))
1365 (inputs
1366 `(("glib" ,glib)
c4c4cc05 1367 ("libxml2" ,libxml2)))
9167f8e6 1368 (native-inputs
c4c4cc05
JD
1369 `(("intltool" ,intltool)
1370 ("pkg-config" ,pkg-config)))
57e7d748 1371 (home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info")
9167f8e6
LC
1372 (synopsis "Database of common MIME types")
1373 (description
1374 "The shared-mime-info package contains the core database of common types
1375and the update-mime-database command used to extend it. It requires glib2 to
1376be installed for building the update command. Additionally, it uses intltool
1377for translations, though this is only a dependency for the maintainers. This
1378database is translated at Transifex.")
1dd26275 1379 (license license:gpl2+)))
9167f8e6 1380
dd1fcddc
CB
1381(define-public system-config-printer
1382 (package
1383 (name "system-config-printer")
fa01e10d 1384 (version "1.5.12")
a5643044
TGR
1385 (source
1386 (origin
1387 (method url-fetch)
1388 (uri (string-append
1389 "https://github.com/OpenPrinting/system-config-printer/releases/"
1390 "download/" version
1391 "/system-config-printer-" version ".tar.xz"))
1392 (sha256
fa01e10d 1393 (base32 "050yrx1vfh9f001qsn06y1jcidxq0ymxr64kxykasr0zzryp25kb"))))
dd1fcddc
CB
1394 (build-system glib-or-gtk-build-system)
1395 (arguments
1396 `(#:imported-modules ((guix build python-build-system)
1397 ,@%glib-or-gtk-build-system-modules)
1398 #:phases
1399 (modify-phases %standard-phases
1400 (add-after 'unpack 'patch-Makefile.am
1401 (lambda _
1402 ;; The Makefile generates some scripts, so set a valid shebang
1403 (substitute* "Makefile.am"
1404 (("/bin/bash") (which "bash")))
1405 (delete-file "configure")
1406 #t))
1407 (add-after 'unpack 'patch-docbook-xml
1408 (lambda* (#:key inputs #:allow-other-keys)
1409 ;; Modify the man XML otherwise xmlto tries to access the network
1410 (substitute* "man/system-config-printer.xml"
1411 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
1412 (string-append (assoc-ref inputs "docbook-xml")
1413 "/xml/dtd/docbook/")))
1414 #t))
1415 (add-after 'install 'wrap-for-python
1416 (@@ (guix build python-build-system) wrap))
1417 (add-after 'install 'wrap
1418 (lambda* (#:key outputs #:allow-other-keys)
1419 (let ((out (assoc-ref outputs "out"))
1420 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
1421 (for-each
1422 (lambda (program)
1423 (wrap-program program
1424 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
1425 (map (lambda (name)
1426 (string-append out "/bin/" name))
1427 '("system-config-printer"
1428 "system-config-printer-applet"
1429 "install-printerdriver"
1430 "scp-dbus-service"))))
1431 #t)))))
1432 (inputs
1433 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1434 ("gobject-introspection" ,gobject-introspection)
1435 ("python" ,python)
1436 ("cups" ,cups)
1437 ("python-dbus" ,python-dbus)
1438 ("python-pygobject" ,python-pygobject)
1439 ("python-pycups" ,python-pycups)
1440 ("python-requests" ,python-requests)
1441 ("python-pycairo" ,python-pycairo)
1442 ("libnotify" ,libnotify)
1443 ("packagekit" ,packagekit)))
1444 (native-inputs
1445 `(("pkg-config" ,pkg-config)
1446 ("desktop-file-utils" ,desktop-file-utils)
1447 ("glib" ,glib)
1448 ("autoconf" ,autoconf)
1449 ("automake" ,automake)
1450 ("intltool" ,intltool)
1451 ("xmlto" ,xmlto)
1452 ("docbook-xml" ,docbook-xml-4.1.2)
1453 ("docbook-xsl" ,docbook-xsl)
1454 ("libxml2" ,libxml2)))
1455 (home-page "https://github.com/zdohnal/system-config-printer")
1456 (synopsis "CUPS administration tool")
1457 (description
1458 "system-config-printer is a CUPS administration tool. It's written in
1459Python using GTK+, and uses the @acronym{IPP, Internet Printing Protocol} when
1460configuring CUPS.")
1461 (license license:gpl2+)))
1462
bef4dd92
AE
1463(define-public hicolor-icon-theme
1464 (package
1465 (name "hicolor-icon-theme")
851cb6dd 1466 (version "0.17")
bef4dd92
AE
1467 (source
1468 (origin
1469 (method url-fetch)
5cc3096c 1470 (uri (string-append "https://icon-theme.freedesktop.org/releases/"
b62a0070 1471 "hicolor-icon-theme-" version ".tar.xz"))
bef4dd92
AE
1472 (sha256
1473 (base32
851cb6dd 1474 "1n59i3al3zx6p90ff0l43gzpzmlqnzm6hf5cryxqrlbi48sq8x1i"))))
bef4dd92
AE
1475 (build-system gnu-build-system)
1476 (arguments
1477 `(#:tests? #f)) ; no check target
57e7d748 1478 (home-page "https://icon-theme.freedesktop.org/releases/")
bef4dd92
AE
1479 (synopsis
1480 "Freedesktop icon theme")
1481 (description
1482 "Freedesktop icon theme.")
1dd26275 1483 (license license:gpl2)))
bef4dd92 1484
d9c1a22b
AE
1485(define-public libnotify
1486 (package
1487 (name "libnotify")
195bfa68 1488 (version "0.7.7")
d9c1a22b
AE
1489 (source
1490 (origin
1491 (method url-fetch)
1492 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1493 (version-major+minor version) "/"
d9c1a22b
AE
1494 name "-" version ".tar.xz"))
1495 (sha256
1496 (base32
195bfa68 1497 "017wgq9n00hx39n0hm784zn18hl721hbaijda868cm96bcqwxd4w"))))
d9c1a22b 1498 (build-system gnu-build-system)
6acf6cec
MB
1499 (arguments
1500 `(#:configure-flags '("--disable-static")))
7ef08efa
UK
1501 (propagated-inputs
1502 `(;; In Requires of libnotify.pc.
1503 ("gdk-pixbuf" ,gdk-pixbuf)
1504 ("glib" ,glib)))
d9c1a22b 1505 (inputs
7ef08efa 1506 `(("gtk+" ,gtk+)
c4c4cc05
JD
1507 ("libpng" ,libpng)))
1508 (native-inputs
426adbe8 1509 `(("pkg-config" ,pkg-config)
277a7d82
JN
1510 ("glib" ,glib "bin")
1511 ("gobject-introspection" ,gobject-introspection)))
d9c1a22b
AE
1512 (home-page "https://developer-next.gnome.org/libnotify/")
1513 (synopsis
1514 "GNOME desktop notification library")
1515 (description
1516 "Libnotify is a library that sends desktop notifications to a
35b9e423 1517notification daemon, as defined in the Desktop Notifications spec. These
d9c1a22b
AE
1518notifications can be used to inform the user about an event or display
1519some form of information without getting in the user's way.")
1dd26275 1520 (license license:lgpl2.1+)))
7a8605ce
CR
1521
1522(define-public libpeas
1523 (package
1524 (name "libpeas")
db122a9b 1525 (version "1.22.0")
7a8605ce
CR
1526 (source
1527 (origin
1528 (method url-fetch)
1529 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1530 (version-major+minor version) "/"
7a8605ce
CR
1531 name "-" version ".tar.xz"))
1532 (sha256
1533 (base32
db122a9b 1534 "0qm908kisyjzjxvygdl18hjqxvvgkq9w0phs2g55pck277sw0bsv"))))
7a8605ce 1535 (build-system gnu-build-system)
7a8605ce 1536 (inputs
2ed6522a
SB
1537 `(("gtk+" ,gtk+)
1538 ("glade" ,glade3)
2ed6522a
SB
1539 ("python" ,python)
1540 ("python-pygobject" ,python-pygobject)))
141aed80
LC
1541 (native-inputs
1542 `(("pkg-config" ,pkg-config)
93622993 1543 ("glib:bin" ,glib "bin")
141aed80
LC
1544 ("gobject-introspection" ,gobject-introspection)
1545 ("intltool" ,intltool)))
55b7bbd8
LC
1546 (propagated-inputs
1547 ;; The .pc file "Requires" gobject-introspection.
1548 `(("gobject-introspection" ,gobject-introspection)))
7a8605ce
CR
1549 (home-page "https://wiki.gnome.org/Libpeas")
1550 (synopsis "GObject plugin system")
1551 (description
d1e4ad1b
TGR
1552 "Libpeas is a gobject-based plugin engine, targeted at giving every
1553application the chance to assume its own extensibility. It also has a set of
1554features including, but not limited to: multiple extension points; on-demand
1555(lazy) programming language support for C, Python and JS; simplicity of the
1556API.")
1dd26275 1557 (license license:lgpl2.0+)))
ed19903d
JD
1558
1559(define-public gtkglext
1560 (package
1561 (name "gtkglext")
1562 (version "1.2.0")
1563 (source (origin
1564 (method url-fetch)
0f971a04 1565 (uri (string-append "mirror://sourceforge/gtkglext/gtkglext/"
ed19903d
JD
1566 version "/gtkglext-" version ".tar.gz"))
1567 (sha256
1568 (base32 "1ya4d2j2aacr9ii5zj4ac95fjpdvlm2rg79mgnk7yvl1dcy3y1z5"))
fc1adab1
AK
1569 (patches (search-patches
1570 "gtkglext-disable-disable-deprecated.patch"))))
ed19903d 1571 (build-system gnu-build-system)
14e2f61a
RW
1572 (arguments
1573 `(#:phases
1574 (modify-phases %standard-phases
1575 ;; Fix a collision between a local variable and a definition from
1576 ;; glibc's string.h.
1577 (add-after 'unpack 'fix-collision
1578 (lambda _
1579 (substitute* "gdk/gdkglshapes.c"
1580 ((" index") " triangle_index"))
1581 #t)))))
ed19903d
JD
1582 (inputs `(("gtk+" ,gtk+-2)
1583 ("mesa" ,mesa)
cc8b02f4 1584 ("glu" ,glu)
ed19903d
JD
1585 ("libx11" ,libx11)
1586 ("libxt" ,libxt)))
426adbe8
LC
1587 (native-inputs `(("pkg-config" ,pkg-config)
1588 ("glib" ,glib "bin")))
a83b6a06 1589 (propagated-inputs `(("pangox-compat" ,pangox-compat)))
ed19903d 1590 (home-page "https://projects.gnome.org/gtkglext")
9e771e3b 1591 (synopsis "OpenGL extension to GTK+")
35b9e423 1592 (description "GtkGLExt is an OpenGL extension to GTK+. It provides
ed19903d
JD
1593additional GDK objects which support OpenGL rendering in GTK+ and GtkWidget
1594API add-ons to make GTK+ widgets OpenGL-capable.")
1dd26275 1595 (license license:lgpl2.1+)))
3600420e
JD
1596
1597(define-public glade3
1598 (package
1599 (name "glade")
c6571adb 1600 (version "3.22.1")
b38e45d8
EB
1601 (source (origin
1602 (method url-fetch)
1603 (uri (string-append "mirror://gnome/sources/" name "/"
1604 (version-major+minor version) "/"
f5ca44b8 1605 name "-" version ".tar.xz"))
3600420e 1606 (sha256
f714d9fe 1607 (base32
c6571adb 1608 "16p38xavpid51qfy0s26n0n21f9ws1w9k5s65bzh1w7ay8p9my6z"))))
6983ba56 1609 (build-system glib-or-gtk-build-system)
f5ca44b8
RW
1610 (arguments
1611 `(#:tests? #f ; needs X, GL, and software rendering
1612 #:phases
1613 (modify-phases %standard-phases
1614 (add-before 'configure 'fix-docbook
1615 (lambda* (#:key inputs #:allow-other-keys)
1616 (substitute* "man/Makefile.in"
1617 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1618 (string-append (assoc-ref inputs "docbook-xsl")
1619 "/xml/xsl/docbook-xsl-"
1620 ,(package-version docbook-xsl)
1621 "/manpages/docbook.xsl")))
1622 #t)))))
3600420e 1623 (inputs
f5ca44b8 1624 `(("gtk+" ,gtk+)
3600420e
JD
1625 ("libxml2" ,libxml2)))
1626 (native-inputs
1627 `(("intltool" ,intltool)
f5ca44b8
RW
1628 ("itstool" ,itstool)
1629 ("libxslt" ,libxslt) ;for xsltproc
1630 ("docbook-xml" ,docbook-xml-4.2)
1631 ("docbook-xsl" ,docbook-xsl)
1632 ("python" ,python-2)
3600420e
JD
1633 ("pkg-config" ,pkg-config)))
1634 (home-page "https://glade.gnome.org")
1635 (synopsis "GTK+ rapid application development tool")
1636 (description "Glade is a rapid application development (RAD) tool to
1637enable quick & easy development of user interfaces for the GTK+ toolkit and
1638the GNOME desktop environment.")
1dd26275
LC
1639 (license license:lgpl2.0+)))
1640
1641(define-public libcroco
1642 (package
1643 (name "libcroco")
8bdacad2 1644 (version "0.6.13")
1dd26275
LC
1645 (source (origin
1646 (method url-fetch)
b38e45d8
EB
1647 (uri (string-append "mirror://gnome/sources/" name "/"
1648 (version-major+minor version) "/"
1649 name "-" version ".tar.xz"))
1dd26275
LC
1650 (sha256
1651 (base32
8bdacad2 1652 "1m110rbj5d2raxcdp4iz0qp172284945awrsbdlq99ksmqsc4zkn"))))
1dd26275
LC
1653 (build-system gnu-build-system)
1654 (native-inputs
1655 `(("pkg-config" ,pkg-config)))
1656 (inputs
1657 `(("glib" ,glib)
1658 ("libxml2" ,libxml2)
1659 ("zlib" ,zlib)))
1660 (home-page "https://github.com/GNOME/libcroco")
1661 (synopsis "CSS2 parsing and manipulation library")
1662 (description
1663 "Libcroco is a standalone CSS2 parsing and manipulation library.
1664The parser provides a low level event driven SAC-like API and a CSS object
1665model like API. Libcroco provides a CSS2 selection engine and an experimental
1666XML/CSS rendering engine.")
1667
1668 ;; LGPLv2.1-only.
1669 (license license:lgpl2.1)))
25178594
LC
1670
1671(define-public libgsf
1672 (package
1673 (name "libgsf")
8d1644a1 1674 (version "1.14.46")
25178594
LC
1675 (source (origin
1676 (method url-fetch)
b38e45d8
EB
1677 (uri (string-append "mirror://gnome/sources/" name "/"
1678 (version-major+minor version) "/"
1679 name "-" version ".tar.xz"))
25178594
LC
1680 (sha256
1681 (base32
8d1644a1 1682 "0bddmlzg719sjhlbzqlhb7chwk93qc7g68m2r9r8xz112jdradpa"))))
25178594
LC
1683 (build-system gnu-build-system)
1684 (native-inputs
1685 `(("intltool" ,intltool)
1686 ("pkg-config" ,pkg-config)))
1687 (inputs
1688 `(("python" ,python)
1689 ("zlib" ,zlib)
1690 ("bzip2" ,bzip2)))
1691 (propagated-inputs
1692 `(("gdk-pixbuf" ,gdk-pixbuf)
1693 ("glib" ,glib)
1694 ("libxml2" ,libxml2)))
f032d0be 1695 (home-page "https://www.gnome.org/projects/libgsf")
25178594
LC
1696 (synopsis "GNOME's Structured File Library")
1697 (description
1698 "Libgsf aims to provide an efficient extensible I/O abstraction for
1699dealing with different structured file formats.")
1700
1701 ;; LGPLv2.1-only.
1702 (license license:lgpl2.1)))
63016e7c
LC
1703
1704(define-public librsvg
f67417a1
MB
1705 (package
1706 (name "librsvg")
1707 (version "2.40.20")
1708 (source (origin
1709 (method url-fetch)
1710 (uri (string-append "mirror://gnome/sources/" name "/"
1711 (version-major+minor version) "/"
1712 name "-" version ".tar.xz"))
1713 (sha256
1714 (base32
1715 "0ay9himvw1l1swcf3h1312d2iqzfl65kpbfgiyfykgvq7cydvx6g"))))
1716 (build-system gnu-build-system)
1717 (arguments
1718 `(#:configure-flags
1719 (list "--disable-static"
1720 "--enable-vala") ; needed for e.g. gnome-mines
1721 #:phases
1722 (modify-phases %standard-phases
1723 (add-before 'configure 'pre-configure
1724 (lambda* (#:key inputs #:allow-other-keys)
1725 (substitute* "gdk-pixbuf-loader/Makefile.in"
1726 ;; By default the gdk-pixbuf loader is installed under
1727 ;; gdk-pixbuf's prefix. Work around that.
1728 (("gdk_pixbuf_moduledir = .*$")
1729 (string-append "gdk_pixbuf_moduledir = "
1730 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
1731 "loaders\n"))
1732 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
1733 (("gdk_pixbuf_cache_file = .*$")
1734 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
1735 #t))
1736 (add-before 'check 'remove-failing-tests
1737 (lambda _
1738 (with-directory-excursion "tests/fixtures/reftests"
1739 (for-each delete-file
1740 '(;; This test fails on i686:
1741 "svg1.1/masking-path-04-b.svg"
1742 ;; This test fails on armhf:
1743 "svg1.1/masking-mask-01-b.svg"
1744 ;; This test fails on aarch64:
1745 "bugs/777834-empty-text-children.svg")))
1746 #t)))))
1747 (native-inputs
1748 `(("pkg-config" ,pkg-config)
1749 ("vala" ,vala)
1750 ("glib" ,glib "bin") ; glib-mkenums, etc.
1751 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
1752 (inputs
1753 `(("pango" ,pango)
1754 ("libcroco" ,libcroco)
1755 ("bzip2" ,bzip2)
1756 ("libgsf" ,libgsf)
1757 ("libxml2" ,libxml2)))
1758 (propagated-inputs
1759 ;; librsvg-2.0.pc refers to all of that.
1760 `(("cairo" ,cairo)
1761 ("gdk-pixbuf" ,gdk-pixbuf)
1762 ("glib" ,glib)))
1763 (home-page "https://wiki.gnome.org/LibRsvg")
1764 (synopsis "Render SVG files using Cairo")
1765 (description
1766 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
1767library.")
1768 (license license:lgpl2.0+)))
1769
8f523eb9
EF
1770(define* (computed-origin-method gexp-promise hash-algo hash
1771 #:optional (name "source")
1772 #:key (system (%current-system))
1773 (guile (default-guile)))
1774 "Return a derivation that executes the G-expression that results
1775from forcing GEXP-PROMISE."
1776 (mlet %store-monad ((guile (package->derivation guile system)))
1777 (gexp->derivation (or name "computed-origin")
1778 (force gexp-promise)
1779 #:graft? #f ;nothing to graft
1780 #:system system
1781 #:guile-for-build guile)))
1782
1783(define librsvg-next-source
1784 (let* ((version "2.46.3")
1785 (upstream-source (origin
1786 (method url-fetch)
1787 (uri (string-append "mirror://gnome/sources/librsvg/"
1788 (version-major+minor version) "/"
1789 "librsvg-" version ".tar.xz"))
1790 (sha256
1791 (base32
1792 "1s3a96i7f4pynjwxxvhysp4b6r7kyi8nasdxfyi62hc7gm34d3kn")))))
1793 (origin
1794 (method computed-origin-method)
1795 (file-name (string-append "librsvg-" version ".tar.xz"))
1796 (sha256 #f)
1797 (uri
1798 (delay
1799 (with-imported-modules '((guix build utils))
1800 #~(begin
1801 (use-modules (guix build utils))
1802 (set-path-environment-variable
1803 "PATH" '("bin")
1804 (list "/tmp"
1805 #+(canonical-package xz)
1806 #+(canonical-package gzip)
1807 #+(canonical-package tar)))
1808 (invoke "tar" "xvf" #+upstream-source)
1809 (with-directory-excursion (string-append "librsvg-" #$version)
1810 (for-each
1811 (lambda (crate)
1812 (delete-file-recursively (string-append "vendor/" (car crate)))
1813 (invoke "tar" "xvf" (cdr crate) "-C" "vendor"))
1814 '(
1815;; aho-corasick 0.7
1816;; alga 0.9
1817;; approx 0.3
1818;; arrayvec 0.4
1819 ("atty" . #+(package-source rust-atty-0.2))
1820 ("autocfg" . #+(package-source rust-autocfg-0.1))
1821 ("bitflags" . #+(package-source rust-bitflags-1))
1822;; block 0.1
1823;; bstr 0.2
1824;; byteorder 1.3
1825;; cairo-rs 0.7
1826;; cairo-sys-rs 0.9
1827;; cast 0.2
1828 ("cfg-if" . #+(package-source rust-cfg-if-0.1))
1829 ("clap" . #+(package-source rust-clap-2))
1830 ;("cloudabi" . #+(package-source rust-cloudabi-0.0))
1831;; criterion 0.2
1832;; criterion-plot 0.3
1833;; crossbeam-deque 0.7
1834;; crossbeam-epoch 0.7
1835;; crossbeam-queue 0.1
1836;; crossbeam-utils 0.6
1837;; cssparser 0.25
1838;; cssparser-macros 0.3
1839;; csv 1.1
1840;; csv-core 0.1
1841;; data-url 0.1
1842;; downcast-rs 1.0
1843 ("dtoa" . #+(package-source rust-dtoa-0.4))
1844;; dtoa-short 0.3
1845;; either 1.5
1846;; encoding 0.2
1847;; encoding-index-japanese 1.20141219.5
1848;; encoding-index-korean 1.20141219.5
1849;; encoding-index-simpchinese 1.20141219.5
1850;; encoding-index-singlebyte 1.20141219.5
1851;; encoding-index-tradchinese 1.20141219.5
1852;; encoding_index_tests 0.1
1853;; float-cmp 0.5
1854;; fragile 0.3
1855 ;("fuchsia-cprng" . #+(package-source rust-fuchsia-cprng-0.1))
1856;; futf 0.1
1857;; gdk-pixbuf 0.7
1858;; gdk-pixbuf-sys 0.9
1859;; generic-array 0.12
1860;; gio 0.7
1861;; gio-sys 0.9
1862;; glib 0.8
1863;; glib-sys 0.9
1864;; gobject-sys 0.9
1865;; idna 0.2
1866;; itertools 0.8
1867 ("itoa" . #+(package-source rust-itoa-0.4))
1868 ;("language-tags" . #+(package-source rust-language-tags-0.2))
1869 ("lazy_static" . #+(package-source rust-lazy-static-1.3))
1870 ("libc" . #+(package-source rust-libc-0.2))
1871;; libm 0.1
1872;; locale_config 0.3
1873 ("log" . #+(package-source rust-log-0.4))
1874;; mac 0.1
1875;; malloc_buf 0.0
1876;; markup5ever 0.9
1877 ;("matches" . #+(package-source rust-matches-0.1))
1878;; matrixmultiply 0.2
1879;; memchr 2.2
1880;; memoffset 0.5
1881;; nalgebra 0.18
1882;; new_debug_unreachable 1.0
1883 ("nodrop" . #+(package-source rust-nodrop-0.1))
1884;; num-complex 0.2
1885 ("num-integer" . #+(package-source rust-num-integer-0.1))
1886;; num-rational 0.2
1887 ("num-traits" . #+(package-source rust-num-traits-0.2))
1888 ("num_cpus" . #+(package-source rust-num-cpus-1.10))
1889;; objc 0.2
1890;; objc-foundation 0.1
1891;; objc_id 0.1
1892;; pango 0.7
1893;; pango-sys 0.9
1894;; pangocairo 0.8
1895;; pangocairo-sys 0.10
1896 ("percent-encoding" . #+(package-source rust-percent-encoding-2.1))
1897;; phf 0.7.24
1898;; phf_codegen 0.7.24
1899;; phf_generator 0.7.24
1900;; phf_shared 0.7.24
1901 ;("pkg-config" . #+(package-source rust-pkg-config-0.3))
1902;; precomputed-hash 0.1
1903 ("proc-macro2" . #+(package-source rust-proc-macro2-1.0))
1904;; procedural-masquerade 0.1
1905 ("quote" . #+(package-source rust-quote-1.0))
1906 ;("rand" . #+(package-source rust-rand-0.6))
1907 ("rand_chacha" . #+(package-source rust-rand-chacha-0.1))
1908 ("rand_core-0.3.1" . #+(package-source rust-rand-core-0.3))
1909 ("rand_core" . #+(package-source rust-rand-core-0.4))
1910 ("rand_hc" . #+(package-source rust-rand-hc-0.1))
1911 ("rand_isaac" . #+(package-source rust-rand-isaac-0.1))
1912 ("rand_jitter" . #+(package-source rust-rand-jitter-0.1))
1913 ("rand_os" . #+(package-source rust-rand-os-0.1))
1914 ("rand_pcg" . #+(package-source rust-rand-pcg-0.1))
1915 ("rand_xorshift" . #+(package-source rust-rand-xorshift-0.1))
1916;; rand_xoshiro 0.1
1917 ;("rawpointer" . #+(package-source rust-rawpointer-0.1))
1918;; rayon 1.2
1919;; rayon-core 1.6
1920;; rctree 0.3
1921 ("rdrand" . #+(package-source rust-rdrand-0.4))
1922;; regex 1.3
1923;; regex-automata 0.1
1924 ;("regex-syntax" . #+(package-source rust-regex-syntax-0.6))
1925;; rustc_version 0.2
1926 ("ryu" . #+(package-source rust-ryu-1.0))
1927 ("same-file" . #+(package-source rust-same-file-1.0))
1928 ("scopeguard" . #+(package-source rust-scopeguard-1.0))
1929;; semver 0.9
1930 ;("semver-parser" . #+(package-source rust-semver-parser-0.7))
1931 ("serde" . #+(package-source rust-serde-1.0))
1932 ("serde_derive" . #+(package-source rust-serde-derive-1.0))
1933 ("serde_json" . #+(package-source rust-serde-json-1.0))
1934;; siphasher 0.2
1935;; smallvec 0.6
1936;; string_cache 0.7
1937;; string_cache_codegen 0.4
1938;; string_cache_shared 0.3
1939 ("syn" . #+(package-source rust-syn-1.0))
1940;; tendril 0.4
1941 ("textwrap" . #+(package-source rust-textwrap-0.11))
1942 ;("thread_local" . #+(package-source rust-thread-local-0.3))
1943;; tinytemplate 1.0
1944 ;("typenum" . #+(package-source rust-typenum-1.10))
1945;; unicode-bidi 0.3
1946;; unicode-normalization 0.1
1947 ("unicode-width" . #+(package-source rust-unicode-width-0.1))
1948 ("unicode-xid" . #+(package-source rust-unicode-xid-0.2))
1949;; url 2.1
1950;; utf-8 0.7
1951 ("walkdir" . #+(package-source rust-walkdir-2.2))
1952 ("winapi" . #+(package-source rust-winapi-0.3))
1953 ;("winapi-i686-pc-windows-gnu" . #+(package-source rust-winapi-i686-pc-windows-gnu-0.4))
1954 ("winapi-util" . #+(package-source rust-winapi-util-0.1))
1955 ;("winapi-x86_64-pc-windows-gnu" . #+(package-source rust-winapi-x86-64-pc-windows-gnu-0.4))
1956;; xml-rs 0.8
1957 )))
1958 (format #t "Replacing vendored crates in the tarball and repacking ...~%")
1959 (force-output)
1960 (invoke "tar" "cfa" #$output
1961 ;; Avoid non-determinism in the archive. We set the
1962 ;; mtime of files in the archive to early 1980 because
1963 ;; the build process fails if the mtime of source
1964 ;; files is pre-1980, due to the creation of zip
1965 ;; archives.
1966 "--mtime=@315619200" ; 1980-01-02 UTC
1967 "--owner=root:0"
1968 "--group=root:0"
1969 "--sort=name"
1970 (string-append "librsvg-" #$version))
1971 #t)))))))
1972
f67417a1 1973(define-public librsvg-next
63016e7c
LC
1974 (package
1975 (name "librsvg")
cf9dad6c 1976 (version "2.46.3")
8f523eb9 1977 (source librsvg-next-source)
63016e7c
LC
1978 (build-system gnu-build-system)
1979 (arguments
d953418a
RW
1980 `(#:configure-flags
1981 (list "--disable-static"
1982 "--enable-vala") ; needed for e.g. gnome-mines
7e0f4cb1 1983 #:make-flags '("CC=gcc")
8f523eb9 1984 #:imported-modules ,%cargo-utils-modules ;for `generate-all-checksums'
ec47c07d 1985 #:phases
b6239e45 1986 (modify-phases %standard-phases
8f523eb9 1987 (add-after 'configure 'patch-cargo-checksums
ec47c07d 1988 (lambda _
8f523eb9
EF
1989 (use-modules (guix build cargo-utils))
1990 (substitute* "librsvg/Cargo.toml"
1991 (("bitflags .*") "bitflags = \"1\"\n")) ; 1.2 is vendored
b665a246 1992 (generate-all-checksums "vendor")
8f523eb9
EF
1993 (delete-file "Cargo.lock")
1994 (invoke "cargo" "generate-lockfile")))
b6239e45
EF
1995 (add-before 'configure 'pre-configure
1996 (lambda* (#:key inputs #:allow-other-keys)
1997 (substitute* "gdk-pixbuf-loader/Makefile.in"
1998 ;; By default the gdk-pixbuf loader is installed under
1999 ;; gdk-pixbuf's prefix. Work around that.
2000 (("gdk_pixbuf_moduledir = .*$")
2001 (string-append "gdk_pixbuf_moduledir = "
2002 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
2003 "loaders\n"))
2004 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
2005 (("gdk_pixbuf_cache_file = .*$")
2006 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
2007 #t))
ec47c07d 2008 (add-before 'check 'remove-failing-tests
b6239e45 2009 (lambda _
64a153bd
MW
2010 (with-directory-excursion "tests/fixtures/reftests"
2011 (for-each delete-file
ec47c07d
MB
2012 '(;; The images produced by these tests differ slightly
2013 ;; from their reference counterparts due to differences
2014 ;; in the build environment (missing fonts, etc). See
2015 ;; <tests/README.md> for details.
2016 ;; These fail on x86_64.
2017 "svg1.1/coords-viewattr-02-b.svg"
2018 "svg1.1/filters-composite-04-f.svg"
2019 "svg1.1/filters-image-01-b.svg"
2020 "svg1.1/filters-conv-02-f.svg"
2021 "svg1.1/filters-conv-04-f.svg"
2022 ;; This test fails on i686:
64a153bd 2023 "svg1.1/masking-path-04-b.svg"
64a153bd
MW
2024 ;; This test fails on armhf:
2025 "svg1.1/masking-mask-01-b.svg"
64a153bd 2026 ;; This test fails on aarch64:
ec47c07d 2027 "bugs/777834-empty-text-children.svg")))
b6239e45 2028 #t)))))
63016e7c
LC
2029 (native-inputs
2030 `(("pkg-config" ,pkg-config)
64855281
MB
2031 ;; This is the minimum supported Rust version in Librsvg 2.46.
2032 ("rust" ,rust-1.34)
2033 ("cargo" ,rust-1.34 "cargo")
d953418a 2034 ("vala" ,vala)
44add1ce 2035 ("glib" ,glib "bin") ; glib-mkenums, etc.
63016e7c
LC
2036 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
2037 (inputs
2038 `(("pango" ,pango)
2039 ("libcroco" ,libcroco)
2040 ("bzip2" ,bzip2)
2041 ("libgsf" ,libgsf)
2042 ("libxml2" ,libxml2)))
2043 (propagated-inputs
2044 ;; librsvg-2.0.pc refers to all of that.
2045 `(("cairo" ,cairo)
2046 ("gdk-pixbuf" ,gdk-pixbuf)
2047 ("glib" ,glib)))
2048 (home-page "https://wiki.gnome.org/LibRsvg")
2049 (synopsis "Render SVG files using Cairo")
2050 (description
35b9e423 2051 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
63016e7c 2052library.")
cf9dad6c 2053 (license license:lgpl2.1+)))
5698b8b8
JD
2054
2055(define-public libidl
2056 (package
2057 (name "libidl")
2058 (version "0.8.14")
2059 (source (origin
2060 (method url-fetch)
80a06e62
EF
2061 (uri (string-append "mirror://gnome/sources/libIDL/"
2062 (version-major+minor version) "/"
2063 "libIDL-" version ".tar.bz2"))
5698b8b8
JD
2064 (sha256
2065 (base32
2066 "08129my8s9fbrk0vqvnmx6ph4nid744g5vbwphzkaik51664vln5"))))
2067 (build-system gnu-build-system)
2068 (inputs `(("glib" ,glib)))
2069 (native-inputs
2070 `(("pkg-config" ,pkg-config)
b3546174 2071 ("flex" ,flex)
5698b8b8
JD
2072 ("bison" ,bison)))
2073 (home-page "http://freecode.com/projects/libidl")
2074 (synopsis "Create trees of CORBA Interface Definition Language files")
35b9e423 2075 (description "Libidl is a library for creating trees of CORBA Interface
5698b8b8
JD
2076Definition Language (idl) files, which is a specification for defining
2077portable interfaces. libidl was initially written for orbit (the orb from the
35b9e423 2078GNOME project, and the primary means of libidl distribution). However, the
2e6ecc5c 2079functionality was designed to be as reusable and portable as possible.")
ef2c55bb 2080 (properties `((upstream-name . "libIDL")))
5698b8b8
JD
2081 (license license:lgpl2.0+)))
2082
2083
2084(define-public orbit2
2085 (package
2086 (name "orbit2")
2087 (version "2.14.19")
2088 (source (origin
2089 (method url-fetch)
2e6ecc5c 2090 (uri (let ((upstream-name "ORBit2"))
a124bbd2 2091 (string-append "mirror://gnome/sources/" upstream-name "/"
b38e45d8
EB
2092 (version-major+minor version) "/"
2093 upstream-name "-" version ".tar.bz2")))
5698b8b8 2094 (sha256
a124bbd2
SB
2095 (base32
2096 "0l3mhpyym9m5iz09fz0rgiqxl2ym6kpkwpsp1xrr4aa80nlh1jam"))))
5698b8b8
JD
2097 (build-system gnu-build-system)
2098 (arguments
a124bbd2 2099 `(#:configure-flags
8aad2e32
LC
2100 '(;; We don't need static libraries, plus they don't build reproducibly
2101 ;; (non-deterministic ordering of .o files in the archive.)
2102 "--disable-static"
2103
2104 ;; The programmer kindly gives us a hook to turn off deprecation
2105 ;; warnings ...
2106 "DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
a124bbd2
SB
2107 ;; ... which they then completly ignore !!
2108 #:phases
dc1d3cde
KK
2109 (modify-phases %standard-phases
2110 (add-before 'configure 'ignore-deprecations
2111 (lambda _
2112 (substitute* "linc2/src/Makefile.in"
2113 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
2114 #t)))))
5698b8b8
JD
2115 (inputs `(("glib" ,glib)
2116 ("libidl" ,libidl)))
2117 (native-inputs
2118 `(("pkg-config" ,pkg-config)))
2119 (home-page "https://projects.gnome.org/orbit2/")
2120 (synopsis "CORBA 2.4-compliant Object Request Broker")
35b9e423 2121 (description "ORBit2 is a CORBA 2.4-compliant Object Request Broker (orb)
2e6ecc5c 2122featuring mature C, C++ and Python bindings.")
a124bbd2
SB
2123 ;; Licence notice is unclear. The Web page simply say "GPL" without giving
2124 ;; a version. SOME of the code files have licence notices for GPLv2+.
2125 ;; The tarball contains files of the text of GPLv2 and LGPLv2.
892307ae
LC
2126 (license license:gpl2+)
2127 (properties `((upstream-name . "ORBit2")))))
5698b8b8
JD
2128
2129
2130(define-public libbonobo
2131 (package
2132 (name "libbonobo")
2133 (version "2.32.1")
2134 (source (origin
2135 (method url-fetch)
5becd025 2136 (uri (string-append "mirror://gnome/sources/" name "/"
29a7c98a 2137 (version-major+minor version)
5becd025 2138 "/" name "-" version ".tar.bz2"))
5698b8b8 2139 (sha256
f1fc45a9 2140 (base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))
fc1adab1
AK
2141 (patches (search-patches
2142 "libbonobo-activation-test-race.patch"))))
5698b8b8
JD
2143 (build-system gnu-build-system)
2144 (arguments
2145 ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
5becd025
EB
2146 `(#:configure-flags
2147 '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
2148 ;; ... which they then completly ignore !!
2149 #:phases
dc1d3cde
KK
2150 (modify-phases %standard-phases
2151 (add-before 'configure 'ignore-deprecations
2152 (lambda _
2153 (substitute* "activation-server/Makefile.in"
2154 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
994b5b1d
LC
2155 #t)))
2156
2157 ;; There's apparently a race condition between the server stub
2158 ;; generation and linking of the example under 'samples/echo' that can
2159 ;; lead do undefined references when building in parallel, as reported
2160 ;; at <https://forums.gentoo.org/viewtopic-t-223376-start-550.html>.
2161 ;; Thus, disable parallel builds.
2162 #:parallel-build? #f))
5698b8b8
JD
2163 (inputs `(("popt" ,popt)
2164 ("libxml2" ,libxml2)))
2165 ;; The following are Required by the .pc file
44add1ce 2166 (propagated-inputs
5698b8b8
JD
2167 `(("glib" ,glib)
2168 ("orbit2" ,orbit2)))
2169 (native-inputs
2170 `(("intltool" ,intltool)
2171 ("pkg-config" ,pkg-config)
221ed17a 2172 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
2173 ("flex" ,flex)
2174 ("bison" ,bison)))
2175 (home-page "https://developer.gnome.org/libbonobo/")
2176 (synopsis "Framework for creating reusable components for use in GNOME applications")
2177 (description "Bonobo is a framework for creating reusable components for
2e6ecc5c 2178use in GNOME applications, built on top of CORBA.")
5698b8b8
JD
2179 ;; Licence not explicitly stated. Source files contain no licence notices.
2180 ;; Tarball contains text of both GPLv2 and LGPLv2
2181 ;; GPLv2 covers both conditions
2182 (license license:gpl2+)))
2183
2184
2185(define-public gconf
2186 (package
2187 (name "gconf")
2188 (version "3.2.6")
2189 (source (origin
2190 (method url-fetch)
a124bbd2
SB
2191 (uri
2192 (let ((upstream-name "GConf"))
2193 (string-append "mirror://gnome/sources/" upstream-name "/"
b38e45d8
EB
2194 (version-major+minor version) "/"
2195 upstream-name "-" version ".tar.xz")))
5698b8b8
JD
2196 (sha256
2197 (base32 "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr"))))
2198 (build-system gnu-build-system)
2e88d113 2199 (inputs `(("dbus-glib" ,dbus-glib)
5698b8b8 2200 ("libxml2" ,libxml2)))
2e6ecc5c
AE
2201 (propagated-inputs `(("glib" ,glib) ; referred to in the .pc file
2202 ("orbit2" ,orbit2)))
5698b8b8
JD
2203 (native-inputs
2204 `(("intltool" ,intltool)
221ed17a 2205 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
2206 ("pkg-config" ,pkg-config)))
2207 (home-page "https://projects.gnome.org/gconf/")
35b9e423
EB
2208 (synopsis "Store application preferences")
2209 (description "Gconf is a system for storing application preferences. It
2210is intended for user preferences; not arbitrary data storage.")
29d2f451
LC
2211 (license license:lgpl2.0+)
2212 (properties '((upstream-name . "GConf")))))
5698b8b8
JD
2213
2214
2215(define-public gnome-mime-data
2216 (package
2217 (name "gnome-mime-data")
2218 (version "2.18.0")
2219 (source (origin
2220 (method url-fetch)
b38e45d8
EB
2221 (uri (string-append "mirror://gnome/sources/" name "/"
2222 (version-major+minor version) "/"
2223 name "-" version ".tar.bz2"))
5698b8b8
JD
2224 (sha256
2225 (base32
2226 "1mvg8glb2a40yilmyabmb7fkbzlqd3i3d31kbkabqnq86xdnn69p"))))
2227 (build-system gnu-build-system)
2228 (native-inputs
2229 `(("perl" ,perl)
2230 ("intltool" ,intltool)))
3e6add96
LC
2231 (arguments
2232 '(#:phases (modify-phases %standard-phases
2233 (add-after 'configure 'use-our-intltool
2234 (lambda _
2235 ;; Do not use the bundled intltool commands, which lack
2236 ;; the "dotless @INC" fixes of our 'intltool' package.
2237 (substitute* (find-files "." "^Makefile$")
2238 (("^INTLTOOL_(EXTRACT|UPDATE|MERGE) = .*$" _ tool)
2239 (string-append "INTLTOOL_" tool " = intltool-"
2240 (string-downcase tool) "\n")))
2241 #t)))))
f032d0be 2242 (home-page "https://www.gnome.org")
35b9e423 2243 (synopsis "Base MIME and Application database for GNOME")
5698b8b8
JD
2244 (description "GNOME Mime Data is a module which contains the base MIME
2245and Application database for GNOME. The data stored by this module is
2246designed to be accessed through the MIME functions in GnomeVFS.")
2247 (license license:gpl2+)))
2248
2249
2250(define-public gnome-vfs
2251 (package
2252 (name "gnome-vfs")
2253 (version "2.24.4")
2254 (source (origin
2255 (method url-fetch)
b38e45d8
EB
2256 (uri (string-append "mirror://gnome/sources/" name "/"
2257 (version-major+minor version) "/"
2258 name "-" version ".tar.bz2"))
5698b8b8 2259 (sha256
9e12bc34
MW
2260 (base32
2261 "1ajg8jb8k3snxc7rrgczlh8daxkjidmcv3zr9w809sq4p2sn9pk2"))))
5698b8b8
JD
2262 (build-system gnu-build-system)
2263 (arguments
db5127d8 2264 `(#:phases
dc1d3cde
KK
2265 (modify-phases %standard-phases
2266 (add-before 'configure 'ignore-deprecations
2267 (lambda _
2268 (substitute* '("libgnomevfs/Makefile.in"
2269 "daemon/Makefile.in")
2270 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
2271 #t))
2272 (add-before 'configure 'patch-test-async-cancel-to-never-fail
2273 (lambda _
2274 (substitute* "test/test-async-cancel.c"
2275 (("EXIT_FAILURE") "77"))
2276 #t)))))
2e6ecc5c 2277 (inputs `(("libxml2" ,libxml2)
5698b8b8 2278 ("dbus-glib" ,dbus-glib)
5698b8b8
JD
2279 ("gconf" ,gconf)
2280 ("gnome-mime-data" ,gnome-mime-data)
2281 ("zlib" ,zlib)))
2282 (native-inputs
221ed17a
EB
2283 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
2284 ("intltool" ,intltool)
5698b8b8
JD
2285 ("pkg-config" ,pkg-config)))
2286 (home-page "https://developer.gnome.org/gnome-vfs/")
35b9e423 2287 (synopsis "Access files and folders in GNOME applications")
9e12bc34
MW
2288 (description
2289 "GnomeVFS is the core library used to access files and folders in GNOME
2290applications. It provides a file system abstraction which allows applications
2291to access local and remote files with a single consistent API.")
5698b8b8
JD
2292 (license license:lgpl2.0+)))
2293
2294
2295
2296(define-public libgnome
2297 (package
2298 (name "libgnome")
2299 (version "2.32.1")
2300 (source (origin
2301 (method url-fetch)
b38e45d8
EB
2302 (uri (string-append "mirror://gnome/sources/" name "/"
2303 (version-major+minor version) "/"
2304 name "-" version ".tar.bz2"))
5698b8b8
JD
2305 (sha256
2306 (base32
17c3eea7
LC
2307 "197pnq8y0knqjhm2fg4j6hbqqm3qfzfnd0irhwxpk1b4hqb3kimj"))
2308 (patches (search-patches "libgnome-encoding.patch"))))
5698b8b8
JD
2309 (build-system gnu-build-system)
2310 (arguments
2311 `(#:phases
dc1d3cde
KK
2312 (modify-phases %standard-phases
2313 (add-before 'configure 'enable-deprecated
2314 (lambda _
2315 (substitute* "libgnome/Makefile.in"
2316 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
2317 #t)))))
25338e9f 2318 (inputs `(("libxml2" ,libxml2)))
5698b8b8 2319 (native-inputs
221ed17a
EB
2320 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
2321 ("intltool" ,intltool)
5698b8b8
JD
2322 ("pkg-config" ,pkg-config)))
2323 ;; The following are listed as Required in the .pc file
2324 ;; (except for libcanberra -- which seems to be oversight on the part
2325 ;; of the upstream developers -- anything that links against libgnome,
2326 ;; must also link against libcanberra
2327 (propagated-inputs
2328 `(("libcanberra" ,libcanberra)
2329 ("libbonobo" ,libbonobo)
2330 ("gconf" ,gconf)
a640d3d5
LC
2331 ("gnome-vfs" ,gnome-vfs)
2332 ("popt" ,popt))) ;gnome-program.h includes popt.h
5698b8b8
JD
2333 (home-page "https://developer.gnome.org/libgnome/")
2334 (synopsis "Useful routines for building applications")
2335 (description "The libgnome library provides a number of useful routines
2336for building modern applications, including session management, activation of
2337files and URIs, and displaying help.")
2338 (license license:lgpl2.0+)))
2339
2340
2341(define-public libart-lgpl
2342 (package
2343 (name "libart-lgpl")
76c9b6aa 2344 (version "2.3.21")
5698b8b8
JD
2345 (source (origin
2346 (method url-fetch)
2347 (uri (let ((upstream-name "libart_lgpl"))
b38e45d8
EB
2348 (string-append "mirror://gnome/sources/" upstream-name "/"
2349 (version-major+minor version) "/"
2350 upstream-name "-" version ".tar.bz2")))
5698b8b8
JD
2351 (sha256
2352 (base32
76c9b6aa 2353 "1yknfkyzgz9s616is0l9gp5aray0f2ry4dw533jgzj8gq5s1xhgx"))))
5698b8b8
JD
2354 (build-system gnu-build-system)
2355 (native-inputs
2356 `(("pkg-config" ,pkg-config)))
2357 (home-page "https://people.gnome.org/~mathieu/libart")
2358 (synopsis "2D drawing library")
2e6ecc5c 2359 (description "Libart is a 2D drawing library intended as a
5698b8b8
JD
2360high-quality vector-based 2D library with antialiasing and alpha composition.")
2361 (license license:lgpl2.0+)))
2362
2363
2364
2365(define-public libgnomecanvas
2366 (package
2367 (name "libgnomecanvas")
2368 (version "2.30.3")
2369 (source (origin
2370 (method url-fetch)
b38e45d8
EB
2371 (uri (string-append "mirror://gnome/sources/" name "/"
2372 (version-major+minor version) "/"
2373 name "-" version ".tar.gz"))
5698b8b8
JD
2374 (sha256
2375 (base32
2376 "1nhnq4lfkk8ljkdafscwaggx0h95mq0rxnd7zgqyq0xb6kkqbjm8"))))
2377 (build-system gnu-build-system)
2378 ;; Mentioned as Required in the .pc file
2379 (propagated-inputs `(("libart-lgpl" ,libart-lgpl)
2380 ("gtk+" ,gtk+-2)))
2381 (native-inputs
2382 `(("intltool" ,intltool)
221ed17a 2383 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
2384 ("pkg-config" ,pkg-config)))
2385 (home-page "https://developer.gnome.org/libgnomecanvas/")
2386 (synopsis "Flexible widget for creating interactive structured graphics")
2387 (description "The GnomeCanvas widget provides a flexible widget for
2388creating interactive structured graphics.")
2389 (license license:lgpl2.0+)))
2390
eadc734e
RW
2391(define-public libgnomecanvasmm
2392 (package
2393 (name "libgnomecanvasmm")
2394 (version "2.26.0")
2395 (source (origin
2396 (method url-fetch)
2397 (uri (string-append "mirror://gnome/sources/" name "/"
2398 (version-major+minor version) "/"
2399 name "-" version ".tar.bz2"))
2400 (sha256
2401 (base32
2402 "0679hcnpam2gkag2i63sm0wdm35gwvzafnz1354mg6j5gzwpfrcr"))))
2403 (build-system gnu-build-system)
2404 (propagated-inputs `(("libgnomecanvas" ,libgnomecanvas)))
2405 (native-inputs
2406 `(("gtkmm-2" ,gtkmm-2)
2407 ("pkg-config" ,pkg-config)))
8e933cb3 2408 (home-page "https://gtkmm.org")
eadc734e
RW
2409 (synopsis "C++ bindings to the GNOME Canvas library")
2410 (description "C++ bindings to the GNOME Canvas library.")
2411 (license license:lgpl2.0+)))
2412
5698b8b8
JD
2413(define-public libgnomeui
2414 (package
2415 (name "libgnomeui")
2416 (version "2.24.5")
2417 (source (origin
2418 (method url-fetch)
b38e45d8
EB
2419 (uri (string-append "mirror://gnome/sources/" name "/"
2420 (version-major+minor version) "/"
2421 name "-" version ".tar.bz2"))
8fa1872a 2422 (patches (search-patches "libgnomeui-utf8.patch"))
5698b8b8
JD
2423 (sha256
2424 (base32
2425 "03rwbli76crkjl6gp422wrc9lqpl174k56cp9i96b7l8jlj2yddf"))))
2426 (build-system gnu-build-system)
2427 ;; Mentioned as Required in the .pc file
0a38a497
AE
2428 (propagated-inputs `(("libbonoboui" ,libbonoboui)
2429 ("libgnome" ,libgnome)
2430 ("libgnomecanvas" ,libgnomecanvas)
5698b8b8 2431 ("libgnome-keyring" ,libgnome-keyring)))
0a38a497 2432 (inputs `(("libjpeg" ,libjpeg)
5698b8b8
JD
2433 ("popt" ,popt)
2434 ("libbonobo" ,libbonobo)
2435 ("libxml2" ,libxml2)
2436 ("libglade" ,libglade)))
2437 (native-inputs
221ed17a
EB
2438 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
2439 ("intltool" ,intltool)
5698b8b8
JD
2440 ("pkg-config" ,pkg-config)))
2441 (home-page "https://developer.gnome.org/libgnomeui/")
2442 (synopsis "Additional widgets for applications")
35b9e423 2443 (description "The libgnomeui library provides additional widgets for
e881752c
AK
2444applications. Many of the widgets from libgnomeui have already been
2445ported to GTK+.")
5698b8b8
JD
2446 (license license:lgpl2.0+)))
2447
2448(define-public libglade
2449 (package
2450 (name "libglade")
2451 (version "2.6.4")
2452 (source (origin
2453 (method url-fetch)
b38e45d8
EB
2454 (uri (string-append "mirror://gnome/sources/" name "/"
2455 (version-major+minor version) "/"
2456 name "-" version ".tar.bz2"))
5698b8b8
JD
2457 (sha256
2458 (base32
2459 "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4"))))
2460 (build-system gnu-build-system)
2461 (inputs
92dcc23d
AE
2462 `(("python" ,python))) ;; needed for the optional libglade-convert program
2463 (propagated-inputs
5698b8b8 2464 `(("gtk+-2" ,gtk+-2)
92dcc23d 2465 ("libxml2" ,libxml2))) ; required by libglade-2.0.pc
5698b8b8
JD
2466 (native-inputs
2467 `(("pkg-config" ,pkg-config)))
2468 (home-page "https://developer.gnome.org/libglade")
35b9e423
EB
2469 (synopsis "Load glade interfaces and access the glade built widgets")
2470 (description "Libglade is a library that provides interfaces for loading
5698b8b8
JD
2471graphical interfaces described in glade files and for accessing the
2472widgets built in the loading process.")
2473 (license license:gpl2+))) ; This is correct. GPL not LGPL
2474
2475(define-public libgnomeprint
eb497b66
LC
2476 ;; This library has been deprecated since 2006; see
2477 ;; <https://mail.gnome.org/archives/devel-announce-list/2006-August/msg00005.html>.
5698b8b8
JD
2478 (package
2479 (name "libgnomeprint")
d19db454 2480 (version "2.18.8")
5698b8b8
JD
2481 (source (origin
2482 (method url-fetch)
b38e45d8
EB
2483 (uri (string-append "mirror://gnome/sources/" name "/"
2484 (version-major+minor version) "/"
2485 name "-" version ".tar.bz2"))
5698b8b8
JD
2486 (sha256
2487 (base32
d19db454 2488 "14cnimvlc7ky22g2snyf4362412k3jk1syjf8b9887q5a63fqd0h"))))
5698b8b8
JD
2489 (build-system gnu-build-system)
2490 (inputs
2491 `(("popt" ,popt)
2492 ("libart-lgpl" ,libart-lgpl)
2493 ("gtk+" ,gtk+-2)
44add1ce 2494 ("libxml2" ,libxml2)))
5698b8b8
JD
2495 (native-inputs
2496 `(("intltool" ,intltool)
221ed17a 2497 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
2498 ("pkg-config" ,pkg-config)))
2499 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
35b9e423 2500 (synopsis "Printing framework for GNOME")
eb497b66
LC
2501 (description
2502 "GNOME-print was a printing framework for GNOME. It has been deprecated
2503since ca. 2006, when GTK+ itself incorporated printing support.")
5698b8b8
JD
2504 (license license:lgpl2.0+)))
2505
2506
2507(define-public libgnomeprintui
eb497b66 2508 ;; Deprecated; see libgnomeprint.
5698b8b8
JD
2509 (package
2510 (name "libgnomeprintui")
36053d7f 2511 (version "2.18.6")
5698b8b8
JD
2512 (source (origin
2513 (method url-fetch)
b38e45d8
EB
2514 (uri (string-append "mirror://gnome/sources/" name "/"
2515 (version-major+minor version) "/"
2516 name "-" version ".tar.bz2"))
5698b8b8
JD
2517 (sha256
2518 (base32
36053d7f 2519 "0spl8vinb5n6n1krnfnr61dwaxidg67h8j94z9p59k2xdsvfashm"))))
5698b8b8
JD
2520 (build-system gnu-build-system)
2521 ;; Mentioned as Required in the .pc file
2522 (propagated-inputs `(("libgnomeprint" ,libgnomeprint)))
2523 (inputs `(("gtk+" ,gtk+-2)
2524 ("glib" ,glib)
2525 ("gnome-icon-theme" ,gnome-icon-theme)
2526 ("libgnomecanvas" ,libgnomecanvas)
2e6ecc5c 2527 ("libxml2" ,libxml2)))
5698b8b8
JD
2528 (native-inputs
2529 `(("intltool" ,intltool)
2530 ("pkg-config" ,pkg-config)))
2531 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
2532 (synopsis "Printing framework for GNOME")
eb497b66 2533 (description (package-description libgnomeprint))
5698b8b8
JD
2534 (license license:lgpl2.0+)))
2535
5698b8b8
JD
2536(define-public libbonoboui
2537 (package
2538 (name "libbonoboui")
2539 (version "2.24.5")
2540 (source (origin
2541 (method url-fetch)
b38e45d8
EB
2542 (uri (string-append "mirror://gnome/sources/" name "/"
2543 (version-major+minor version) "/"
2544 name "-" version ".tar.bz2"))
5698b8b8
JD
2545 (sha256
2546 (base32
2547 "1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
2548 (build-system gnu-build-system)
2549 (arguments
2550 `(#:phases
dc1d3cde
KK
2551 (modify-phases %standard-phases
2552 (add-before 'check 'start-xserver
2553 (lambda* (#:key inputs #:allow-other-keys)
2554 (let ((xorg-server (assoc-ref inputs "xorg-server"))
2555 (disp ":1"))
2556
2557 (setenv "HOME" (getcwd))
2558 (setenv "DISPLAY" disp)
2559 ;; There must be a running X server and make check doesn't start one.
2560 ;; Therefore we must do it.
2561 (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))))))
5698b8b8
JD
2562 ;; Mentioned as Required by the .pc file
2563 (propagated-inputs `(("libxml2" ,libxml2)))
2564 (inputs
2565 `(("popt" ,popt)
2566 ("pangox-compat" ,pangox-compat)
2567 ("libgnome" ,libgnome)
2568 ("libgnomecanvas" ,libgnomecanvas)
2569 ("libglade" ,libglade)))
2570 (native-inputs
221ed17a
EB
2571 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
2572 ("intltool" ,intltool)
ff337525 2573 ("xorg-server" ,xorg-server-for-tests) ; For running the tests
5698b8b8
JD
2574 ("pkg-config" ,pkg-config)))
2575 (home-page "https://developer.gnome.org/libbonoboui/")
2576 (synopsis "Some user interface controls using Bonobo")
2577 (description "The Bonobo UI library provides a number of user interface
2578controls using the Bonobo component framework.")
2579 (license license:lgpl2.0+)))
2580
fecbf86e
SB
2581(define-public libwnck
2582 (package
2583 (name "libwnck")
d3b40696 2584 (version "3.32.0")
fecbf86e
SB
2585 (source (origin
2586 (method url-fetch)
2587 (uri (string-append "mirror://gnome/sources/" name "/"
2588 (version-major+minor version) "/"
2589 name "-" version ".tar.xz"))
2590 (sha256
ad9b8987 2591 (base32
d3b40696
KK
2592 "1jp3p1lnwnwi6fxl2rz3166cmwzwy9vqz896anpwc3wdy9f875cm"))))
2593 (build-system meson-build-system)
fecbf86e
SB
2594 (native-inputs
2595 `(("pkg-config" ,pkg-config)
d3b40696
KK
2596 ("glib" ,glib "bin") ; for glib-mkenums
2597 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
fecbf86e
SB
2598 ("intltool" ,intltool)))
2599 (propagated-inputs
427476d5
SB
2600 `(("gtk+" ,gtk+)
2601 ("libxres" ,libxres)
2602 ("startup-notification" ,startup-notification)))
fecbf86e
SB
2603 (home-page "https://developer.gnome.org/libwnck/")
2604 (synopsis "Window Navigator Construction Kit")
2605 (description
2606 "Libwnck is the Window Navigator Construction Kit, a library for use in
2607writing pagers, tasklists, and more generally applications that are dealing
2608with window management. It tries hard to respect the Extended Window Manager
2609Hints specification (EWMH).")
2610 (license license:lgpl2.0+)))
2611
2612;; stable version for gtk2, required by xfwm4.
dbb7a081 2613(define-public libwnck-2
fecbf86e
SB
2614 (package (inherit libwnck)
2615 (name "libwnck")
2616 (version "2.30.7")
2617 (source (origin
2618 (method url-fetch)
2619 (uri (string-append "mirror://gnome/sources/" name "/"
2620 (version-major+minor version) "/"
2621 name "-" version ".tar.xz"))
2622 (sha256
2623 (base32
2624 "15713yl0f8f3p99jzqqfmbicrdswd3vwpx7r3bkf1bgh6d9lvs4b"))))
ba7fed8e
MÁAV
2625 (build-system gnu-build-system)
2626 (native-inputs
2627 `(("pkg-config" ,pkg-config)
2628 ("intltool" ,intltool)))
fecbf86e 2629 (propagated-inputs
427476d5
SB
2630 `(("gtk+" ,gtk+-2)
2631 ("libxres" ,libxres)
2632 ("startup-notification" ,startup-notification)))))
b804c61e
JD
2633
2634(define-public goffice
2635 (package
2636 (name "goffice")
09abffcc 2637 (version "0.10.46")
b804c61e
JD
2638 (source (origin
2639 (method url-fetch)
16243f0b 2640 (uri (string-append "mirror://gnome/sources/goffice/"
b38e45d8 2641 (version-major+minor version) "/"
16243f0b 2642 "goffice-" version ".tar.xz"))
b804c61e 2643 (sha256
09abffcc 2644 (base32 "1a8kba36zwzr0ilafc0d1nsxxma1qibviiifd0jhbxp180x6v385"))))
b804c61e 2645 (build-system gnu-build-system)
72a06d3e 2646 (outputs '("out"
355420c6 2647 "doc")) ; 4.0 MiB of gtk-doc
72a06d3e
LC
2648 (arguments
2649 '(#:configure-flags (list (string-append "--with-html-dir="
2650 (assoc-ref %outputs "doc")
2651 "/share/gtk-doc/html"))))
b804c61e
JD
2652 (inputs
2653 `(("gtk+" ,gtk+)
2654 ("libgsf" ,libgsf)
2655 ("librsvg" ,librsvg)
2656 ("libxslt" ,libxslt)
2657 ("libxml2" ,libxml2)))
2658 (native-inputs
2659 `(("intltool" ,intltool)
f280cdb1 2660 ("glib" ,glib "bin")
b804c61e
JD
2661 ("pkg-config" ,pkg-config)))
2662 (home-page "https://developer.gnome.org/goffice/")
2663 (synopsis "Document-centric objects and utilities")
2664 (description "A GLib/GTK+ set of document-centric objects and utilities.")
2e6ecc5c 2665 (license
b804c61e
JD
2666 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
2667 ;; Note: NOT LGPL
2668 (list license:gpl2 license:gpl3))))
2669
c024ae36
RW
2670(define-public goffice-0.8
2671 (package (inherit goffice)
2672 (version "0.8.17")
2673 (source (origin
2674 (method url-fetch)
2675 (uri (string-append "mirror://gnome/sources/" (package-name goffice) "/"
2676 (version-major+minor version) "/"
2677 (package-name goffice) "-" version ".tar.xz"))
2678 (sha256
2679 (base32 "05fvzbs5bin05bbsr4dp79aiva3lnq0a3a40zq55i13vnsz70l0n"))))
2680 (arguments
2681 `(#:phases
dc1d3cde
KK
2682 (modify-phases %standard-phases
2683 (add-after 'unpack 'fix-pcre-check
2684 (lambda _
2685 ;; Only glib.h can be included directly. See
2686 ;; https://bugzilla.gnome.org/show_bug.cgi?id=670316
2687 (substitute* "configure"
2688 (("glib/gregex\\.h") "glib.h")) #t)))
72a06d3e
LC
2689
2690 ,@(package-arguments goffice)))
c024ae36
RW
2691 (propagated-inputs
2692 ;; libgoffice-0.8.pc mentions libgsf-1
2693 `(("libgsf" ,libgsf)))
2694 (inputs
2695 `(("gtk" ,gtk+-2)
2696 ,@(alist-delete "gtk" (package-inputs goffice))))))
2697
b804c61e
JD
2698(define-public gnumeric
2699 (package
2700 (name "gnumeric")
f0517b5d 2701 (version "1.12.46")
b804c61e
JD
2702 (source (origin
2703 (method url-fetch)
b7fd0217 2704 (uri (string-append "mirror://gnome/sources/gnumeric/"
b38e45d8 2705 (version-major+minor version) "/"
b7fd0217 2706 "gnumeric-" version ".tar.xz"))
b804c61e
JD
2707 (sha256
2708 (base32
f0517b5d 2709 "1qdmw2dp7rmq8fmjapgwaks7ajh270wm6kyvlxlzwbgmg8vngp4z"))))
bd1b1e05 2710 (build-system glib-or-gtk-build-system)
b804c61e
JD
2711 (arguments
2712 `(;; The gnumeric developers don't worry much about failing tests.
2713 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
2e6ecc5c 2714 #:tests? #f
b804c61e 2715 #:phases
7bcbd40d
EF
2716 (modify-phases %standard-phases
2717 (add-before
2718 'configure 'pre-conf
2719 (lambda* (#:key outputs #:allow-other-keys)
2720 ;; Make install tries to write into the directory of goffice
2721 ;; I am informed that this only affects the possibility to embed a
2722 ;; spreadsheet inside an Abiword document. So presumably when we
2723 ;; package Abiword we'll have to refer it to this directory.
2724 (substitute* "configure"
2725 (("^GOFFICE_PLUGINS_DIR=.*")
2726 (string-append "GOFFICE_PLUGINS_DIR="
2727 (assoc-ref outputs "out")
2728 "/goffice/plugins"))))))))
b804c61e
JD
2729 (inputs
2730 `(("glib" ,glib)
2731 ("gtk+" ,gtk+)
2732 ("goffice" ,goffice)
2733 ("libgsf" ,libgsf)
7bcbd40d 2734 ("librsvg" ,librsvg)
b804c61e 2735 ("libxml2" ,libxml2)
7bcbd40d 2736 ("libxslt" ,libxslt)
2e4c5457 2737 ("python" ,python-2)
6983ba56 2738 ("python2-pygobject" ,python2-pygobject)
b804c61e
JD
2739 ("zlib" ,zlib)))
2740 (native-inputs
6983ba56 2741 `(("bison" ,bison)
1ed398d1 2742 ("docbook-xml" ,docbook-xml)
6983ba56 2743 ("intltool" ,intltool)
3a2efbc8 2744 ("itstool" ,itstool/fixed) ;see <https://bugs.gnu.org/37468>
b9663471 2745 ("glib:bin" ,glib "bin")
b804c61e
JD
2746 ("pkg-config" ,pkg-config)))
2747 (home-page "http://www.gnumeric.org")
66672a45
LC
2748 (synopsis "Spreadsheet application")
2749 (description
2750 "GNUmeric is a GNU spreadsheet application, running under GNOME. It is
2751interoperable with other spreadsheet applications. It has a vast array of
2752features beyond typical spreadsheet functionality, such as support for linear
2753and non-linear solvers, statistical analysis, and telecommunication
2754engineering.")
2755 (license
b804c61e
JD
2756 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
2757 (list license:gpl2 license:gpl3))))
6f885c05
FB
2758
2759(define-public gnome-themes-standard
2760 (package
2761 (name "gnome-themes-standard")
0b7b8fb0 2762 (version "3.22.3")
6f885c05
FB
2763 (source
2764 (origin
2765 (method url-fetch)
2e6ecc5c 2766 (uri (string-append "mirror://gnome/sources/" name "/"
6f885c05
FB
2767 (version-major+minor version) "/" name "-"
2768 version ".tar.xz"))
2769 (sha256
2770 (base32
0b7b8fb0 2771 "0smmiamrgcgf5sa88bsn8hwmvsyx4gczzs359nwxbkv14b2qgp31"))))
6f885c05 2772 (build-system gnu-build-system)
8ac70c7f
SB
2773 (arguments
2774 '(#:configure-flags
2775 ;; Don't create 'icon-theme.cache'.
2776 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
2777 (true (string-append coreutils "/bin/true")))
2778 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
6f885c05
FB
2779 (inputs
2780 `(("gtk+" ,gtk+)
2781 ("gtk+-2" ,gtk+-2)
2782 ("librsvg" ,librsvg)
2783 ("libxml2" ,libxml2)
2784 ("glib" ,glib)))
2785 (native-inputs
2786 `(("intltool" ,intltool)
2787 ("glib:bin" ,glib "bin")
2788 ("pkg-config" ,pkg-config)))
6f885c05
FB
2789 (home-page "https://launchpad.net/gnome-themes-standard")
2790 (synopsis "Default GNOME 3 themes")
2791 (description
2792 "The default GNOME 3 themes (Adwaita and some accessibility themes).")
2793 (license license:lgpl2.1+)))
5a659a48 2794
df90c701
RW
2795(define-public seahorse
2796 (package
2797 (name "seahorse")
bcea3c11 2798 (version "3.32.2")
df90c701
RW
2799 (source
2800 (origin
2801 (method url-fetch)
2802 (uri (string-append "mirror://gnome/sources/" name "/"
2803 (version-major+minor version) "/" name "-"
2804 version ".tar.xz"))
2805 (sha256
2806 (base32
bcea3c11 2807 "0d8zdzmlz7fjv9xl20zl4ckidf465mvdjnbpxy3k08y9iw423q4x"))
af561664
MÁAV
2808 (patches (search-patches
2809 "seahorse-gkr-use-0-on-empty-flags.patch"))))
2810 (build-system meson-build-system)
2811 (arguments
bcea3c11
KK
2812 '(#:glib-or-gtk? #t
2813 #:phases
af561664
MÁAV
2814 (modify-phases %standard-phases
2815 (add-after 'unpack 'skip-gtk-update-icon-cache
2816 ;; Don't create 'icon-theme.cache'.
2817 (lambda _
2818 (substitute* "build-aux/meson_post_install.py"
2819 (("gtk-update-icon-cache") "true"))
2820 #t)))))
df90c701
RW
2821 (inputs
2822 `(("gtk+" ,gtk+)
2823 ("gcr" ,gcr)
34b979b9 2824 ("gnupg" ,gnupg)
df90c701 2825 ("gpgme" ,gpgme)
34b979b9 2826 ("openldap" ,openldap)
4a1bf090 2827 ("openssh" ,openssh)
af561664 2828 ("avahi" ,avahi)
bcea3c11 2829 ("libpwquality" ,libpwquality)
34b979b9
EF
2830 ("libsecret" ,libsecret)
2831 ("libsoup" ,libsoup)))
df90c701 2832 (native-inputs
af561664 2833 `(("gettext" ,gettext-minimal)
df90c701
RW
2834 ("glib:bin" ,glib "bin")
2835 ("itstool" ,itstool)
bcb354ad 2836 ("pkg-config" ,pkg-config)
af561664 2837 ("vala" ,vala)
bcb354ad 2838 ("xmllint" ,libxml2)))
bcea3c11 2839 (home-page "https://wiki.gnome.org/Apps/Seahorse")
df90c701
RW
2840 (synopsis "Manage encryption keys and passwords in the GNOME keyring")
2841 (description
2842 "Seahorse is a GNOME application for managing encryption keys and
2843passwords in the GNOME keyring.")
2844 (license license:gpl2+)))
2845
5a659a48
SB
2846(define-public vala
2847 (package
2848 (name "vala")
2d6872f6 2849 (version "0.44.5")
5a659a48
SB
2850 (source (origin
2851 (method url-fetch)
2852 (uri (string-append "mirror://gnome/sources/" name "/"
2853 (version-major+minor version) "/"
2854 name "-" version ".tar.xz"))
2855 (sha256
2856 (base32
2d6872f6 2857 "0zy2kfcvhikczfzhk5l7pkw6mvn3d6vw8cv7g08iah85p22q33xv"))))
5a659a48 2858 (build-system gnu-build-system)
1ea90625
SB
2859 (arguments
2860 '(#:phases
2861 (modify-phases %standard-phases
f4925a4f 2862 (add-before 'check 'pre-check
1ea90625
SB
2863 (lambda _
2864 (setenv "CC" "gcc")
8839b6be
RW
2865 (substitute* "valadoc/tests/testrunner.sh"
2866 (("export PKG_CONFIG_PATH=" m)
2867 (string-append m "$PKG_CONFIG_PATH:")))
f4925a4f
SB
2868 ;; For missing '/etc/machine-id'.
2869 (setenv "DBUS_FATAL_WARNINGS" "0")
8839b6be 2870 #t)))))
5a659a48
SB
2871 (native-inputs
2872 `(("pkg-config" ,pkg-config)
2873 ("flex" ,flex)
2874 ("bison" ,bison)
2875 ("xsltproc" ,libxslt)
2876 ("dbus" ,dbus) ; for dbus tests
2877 ("gobject-introspection" ,gobject-introspection))) ; for gir tests
8839b6be
RW
2878 (inputs
2879 `(("graphviz" ,graphviz)))
5a659a48 2880 (propagated-inputs
8839b6be 2881 `(("glib" ,glib))) ; required by libvala-0.40.pc
f032d0be 2882 (home-page "https://live.gnome.org/Vala/")
5a659a48
SB
2883 (synopsis "Compiler for the GObject type system")
2884 (description
2885 "Vala is a programming language that aims to bring modern programming
2886language features to GNOME developers without imposing any additional runtime
2887requirements and without using a different ABI compared to applications and
2888libraries written in C.")
2889 (license license:lgpl2.1+)))
ea57378f
SB
2890
2891(define-public vte
2892 (package
2893 (name "vte")
68c47474 2894 (version "0.58.3")
ea57378f
SB
2895 (source (origin
2896 (method url-fetch)
ac87ffb8 2897 (uri (string-append "mirror://gnome/sources/vte/"
ea57378f 2898 (version-major+minor version) "/"
ac87ffb8 2899 "vte-" version ".tar.xz"))
ea57378f
SB
2900 (sha256
2901 (base32
68c47474
TGR
2902 "0xa9ipwic4jnhhbzlnqbhssz10xkzv61cpkl1ammc6mdq95bbp12"))))
2903 (build-system meson-build-system)
ea57378f
SB
2904 (native-inputs
2905 `(("pkg-config" ,pkg-config)
2906 ("intltool" ,intltool)
2907 ("vala" ,vala)
2908 ("gobject-introspection" ,gobject-introspection)
68c47474 2909 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
73f0e1ab 2910 ("gperf" ,gperf)
ea57378f
SB
2911 ("xmllint" ,libxml2)))
2912 (propagated-inputs
68c47474
TGR
2913 `(("gtk+" ,gtk+) ; required by vte-2.91.pc
2914 ("gnutls" ,gnutls) ; ditto
2915 ("pcre2" ,pcre2))) ; ditto
f032d0be 2916 (home-page "https://www.gnome.org/")
ea57378f
SB
2917 (synopsis "Virtual Terminal Emulator")
2918 (description
2919 "VTE is a library (libvte) implementing a terminal emulator widget for
2920GTK+, and a minimal sample application (vte) using that. Vte is mainly used in
2921gnome-terminal, but can also be used to embed a console/terminal in games,
2922editors, IDEs, etc.")
2923 (license license:lgpl2.1+)))
2924
c44fb4df
MO
2925(define-public vte-ng
2926 (package
2927 (inherit vte)
2928 (name "vte-ng")
24f4fcbe 2929 (version "0.58.2.a")
afd90f8d 2930 (home-page "https://github.com/thestinger/vte-ng")
6bc00737
MB
2931 (source (origin
2932 (method git-fetch)
2933 (uri (git-reference (url home-page) (commit version)))
2934 (file-name (git-file-name name version))
2935 (sha256
2936 (base32
24f4fcbe
MB
2937 "0rnm5c6m3abbm81jsfdas0y80z299ny54gr4syn4bfrms3s4g19l"))))
2938 (build-system meson-build-system)
c44fb4df
MO
2939 (native-inputs
2940 `(("gtk-doc" ,gtk-doc)
c44fb4df 2941 ,@(package-native-inputs vte)))
c44fb4df 2942 (arguments
24f4fcbe 2943 `(#:configure-flags '("-Ddocs=true")))
c44fb4df
MO
2944 (synopsis "Enhanced VTE terminal widget")
2945 (description
2946 "VTE is a library (libvte) implementing a terminal emulator widget for
2947GTK+, this fork provides additional functions exposed for keyboard text
2948selection and URL hints.")))
2949
2776d72c
EF
2950;; provides vte 2.90, required for some terminal emulators
2951;; tilda bug: https://github.com/lanoxx/tilda/issues/94
2952;; pantheon-terminal bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788021
2953;; roxterm bug: http://sourceforge.net/p/roxterm/bugs/107/
2954;; pantheon-terminal, roxterm are not currently packaged
2955(define-public vte-0.36
2956 (package (inherit vte)
2957 (name "vte")
2958 (version "0.36.5")
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
2965 (base32
2966 "1psfnqsmxx4qzc55qwvb8jai824ix4pqcdqhgxk0g2zh82bcxhn2"))))
2967 (propagated-inputs
2968 `(("gtk" ,gtk+)
2969 ("ncurses" ,ncurses)))))
2970
ea57378f
SB
2971;; stable version for gtk2, required by xfce4-terminal.
2972(define-public vte/gtk+-2
2973 (package (inherit vte)
2974 (name "vte")
2975 (version "0.28.2")
2976 (source (origin
2977 (method url-fetch)
2978 (uri (string-append "mirror://gnome/sources/" name "/"
2979 (version-major+minor version) "/"
2980 name "-" version ".tar.xz"))
2981 (sha256
2982 (base32
7d48938a
EF
2983 "1bmhahkf8wdsra9whd3k5l5z4rv7r58ksr8mshzajgq2ma0hpkw6"))
2984 (patches (search-patches
2985 "vte-CVE-2012-2738-pt1.patch"
2986 "vte-CVE-2012-2738-pt2.patch"))))
8eebde74 2987 (build-system gnu-build-system)
ea57378f
SB
2988 (arguments
2989 '(#:configure-flags '("--disable-python")))
2990 (native-inputs
2991 `(("pkg-config" ,pkg-config)
2992 ("intltool" ,intltool)
2993 ("glib" ,glib "bin"))) ; for glib-genmarshal, etc.
2994 (propagated-inputs
2995 `(("gtk+" ,gtk+-2) ; required by libvte.pc
2996 ("ncurses" ,ncurses))))) ; required by libvte.la
b47e1b20 2997
cce0da5e
TD
2998(define-public vinagre
2999 (package
3000 (name "vinagre")
3001 (version "3.22.0")
3002 (source (origin
3003 (method url-fetch)
3004 (uri (string-append "mirror://gnome/sources/" name "/"
3005 (version-major+minor version) "/"
3006 name "-" version ".tar.xz"))
684f97f8
EF
3007 (patches (search-patches "vinagre-newer-freerdp.patch"
3008 "vinagre-newer-rdp-parameters.patch"))
cce0da5e
TD
3009 (sha256
3010 (base32
3011 "10jya3jyrm18nbw3v410gbkc7677bqamax44pzgd3j15randn76d"))))
3012 (build-system glib-or-gtk-build-system)
684f97f8 3013 (arguments
7f486d25
MC
3014 ;; Disable -Werror and such, to avoid build failures on compilation
3015 ;; warnings.
3016 '(#:configure-flags '("--enable-compile-warnings=minimum")
3017 #:phases
684f97f8 3018 (modify-phases %standard-phases
1839768c
EF
3019 (add-before 'install 'skip-gtk-update-icon-cache
3020 (lambda _
3021 ;; Don't create 'icon-theme.cache'
3022 (substitute* (find-files "." "^Makefile$")
3023 (("gtk-update-icon-cache") (which "true")))
3024 #t))
684f97f8
EF
3025 (add-after 'unpack 'patch-configure
3026 (lambda _
3027 (substitute* "configure"
3028 (("freerdp") "freerdp2"))
3029 #t)))))
cce0da5e
TD
3030 (native-inputs
3031 `(("pkg-config" ,pkg-config)
3032 ("intltool" ,intltool)
3033 ("itstool" ,itstool)
1839768c 3034 ("glib-bin" ,glib "bin"))) ;for glib-compile-schemas
cce0da5e
TD
3035 (inputs
3036 `(("libxml2" ,libxml2)
3037 ("gtk-vnc" ,gtk-vnc)
3038 ("gnome-keyring" ,gnome-keyring)
3039 ("libsecret" ,libsecret)
3040 ("freerdp" ,freerdp)
3041 ("spice" ,spice)
3042 ("spice-gtk" ,spice-gtk)
3043 ("telepathy-glib" ,telepathy-glib)
3044 ("vte" ,vte)))
cce0da5e
TD
3045 (home-page "https://wiki.gnome.org/Apps/Vinagre")
3046 (synopsis "Remote desktop viewer for GNOME")
3047 (description "Vinagre is a remote display client supporting the VNC, SPICE
3048and RDP protocols.")
3049 (license license:gpl3+)))
3050
b47e1b20
FB
3051(define-public dconf
3052 (package
3053 (name "dconf")
1e33331c 3054 (version "0.32.0")
b47e1b20
FB
3055 (source (origin
3056 (method url-fetch)
3057 (uri (string-append
2e6ecc5c 3058 "mirror://gnome/sources/" name "/"
b47e1b20
FB
3059 (version-major+minor version) "/"
3060 name "-" version ".tar.xz"))
3061 (sha256
f05c809f 3062 (base32
1e33331c 3063 "1azz4hb9z76yxn34yrrsiib3iqz5z4vpwn5q7cncp55w365ygg38"))))
35fa923d 3064 (build-system meson-build-system)
bc036f4c
MB
3065 (propagated-inputs
3066 ;; In Requires of dconf.pc.
3067 `(("glib" ,glib)))
b47e1b20
FB
3068 (inputs
3069 `(("gtk+" ,gtk+)
bc036f4c 3070 ("dbus" ,dbus)))
b47e1b20 3071 (native-inputs
1e33331c
MB
3072 `(("bash-completion" ,bash-completion)
3073 ("libxslt" ,libxslt) ;for xsltproc
bc036f4c 3074 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
b47e1b20
FB
3075 ("docbook-xml" ,docbook-xml-4.2)
3076 ("docbook-xsl" ,docbook-xsl)
35fa923d 3077 ("glib:bin" ,glib "bin")
03676d6f 3078 ("gtk-doc" ,gtk-doc)
35fa923d
MB
3079 ("pkg-config" ,pkg-config)
3080 ("vala" ,vala)))
b47e1b20
FB
3081 (arguments
3082 `(#:tests? #f ; To contact dbus it needs to load /var/lib/dbus/machine-id
3083 ; or /etc/machine-id.
35fa923d
MB
3084 #:glib-or-gtk? #t
3085 #:configure-flags '("-Denable-gtk-doc=true")))
b47e1b20
FB
3086 (home-page "https://developer.gnome.org/dconf")
3087 (synopsis "Low-level GNOME configuration system")
3088 (description "Dconf is a low-level configuration system. Its main purpose
3089is to provide a backend to GSettings on platforms that don't already have
3090configuration storage systems.")
e20e6b40 3091 (license license:lgpl2.1+)))
109da1c0
AE
3092
3093(define-public json-glib
3094 (package
3095 (name "json-glib")
4115e8ea 3096 (version "1.4.4")
109da1c0
AE
3097 (source (origin
3098 (method url-fetch)
3099 (uri (string-append "mirror://gnome/sources/" name "/"
3100 (version-major+minor version) "/"
3101 name "-" version ".tar.xz"))
3102 (sha256
3103 (base32
4115e8ea 3104 "0ixwyis47v5bkx6h8a1iqlw3638cxcv57ivxv4gw2gaig51my33j"))))
98afa184 3105 (build-system meson-build-system)
109da1c0 3106 (native-inputs
98afa184
MB
3107 `(("gettext" ,gettext-minimal)
3108 ("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
109da1c0
AE
3109 ("gobject-introspection" ,gobject-introspection)
3110 ("pkg-config" ,pkg-config)))
3111 (propagated-inputs
88c6b580 3112 `(("glib" ,glib))) ;according to json-glib-1.0.pc
109da1c0
AE
3113 (home-page "https://wiki.gnome.org/Projects/JsonGlib")
3114 (synopsis "Compiler for the GObject type system")
7c125ce0
AK
3115 (description
3116 "JSON-GLib is a C library based on GLib providing serialization and
3117deserialization support for the JavaScript Object Notation (JSON) format
3118described by RFC 4627. It provides parser and generator GObject classes and
3119various wrappers for the complex data types employed by JSON, such as arrays
3120and objects.")
109da1c0 3121 (license license:lgpl2.1+)))
6f96a359
SB
3122
3123(define-public libxklavier
3124 (package
3125 (name "libxklavier")
5f39050b 3126 (version "5.4")
6f96a359 3127 (source (origin
5f39050b 3128 ;; Note: There's no tarball at ftp.gnome.org for this version.
3129 (method git-fetch)
3130 (uri (git-reference
3131 (url "https://anongit.freedesktop.org/git/libxklavier")
3132 (commit (string-append "libxklavier-" version))))
6f96a359
SB
3133 (sha256
3134 (base32
5f39050b 3135 "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a"))
3136 (file-name (git-file-name name version))))
6f96a359
SB
3137 (build-system gnu-build-system)
3138 (arguments
5f39050b 3139 '(#:phases
3140 (modify-phases %standard-phases
3141 (add-after 'unpack 'no-configure
3142 (lambda* _
3143 (setenv "NOCONFIGURE" "1")
3144 #t)))
3145 #:configure-flags
6f96a359
SB
3146 (list (string-append "--with-xkb-base="
3147 (assoc-ref %build-inputs "xkeyboard-config")
5f39050b 3148 "/share/X11/xkb")
3149 "--disable-xmodmap-support")))
6f96a359
SB
3150 (native-inputs
3151 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
3152 ("gobject-introspection" ,gobject-introspection)
5f39050b 3153 ("pkg-config" ,pkg-config)
3154 ("gtk-doc" ,gtk-doc)
3155 ("intltool" ,intltool)
3156 ("which" ,which)
3157 ("autoconf" ,autoconf)
3158 ("automake" ,automake)
3159 ("libtool" ,libtool)))
6f96a359
SB
3160 (propagated-inputs
3161 ;; Required by libxklavier.pc.
3162 `(("glib" ,glib)
3163 ("libxml2" ,libxml2)))
3164 (inputs
3165 `(("iso-codes" ,iso-codes)
3166 ("libxi" ,libxi)
3167 ("libxkbfile" ,libxkbfile)
3168 ("xkbcomp" ,xkbcomp)
3169 ("xkeyboard-config" ,xkeyboard-config)))
57e7d748 3170 (home-page "https://www.freedesktop.org/wiki/Software/LibXklavier/")
6f96a359
SB
3171 (synopsis "High-level API for X Keyboard Extension")
3172 (description
3173 "LibXklavier is a library providing high-level API for X Keyboard
e881752c
AK
3174Extension known as XKB. This library is intended to support XFree86 and other
3175commercial X servers. It is useful for creating XKB-related software (layout
6f96a359
SB
3176indicators etc).")
3177 (license license:lgpl2.0+)))
619936a4
LC
3178
3179(define-public python2-rsvg
3180 ;; XXX: This is actually a subset of gnome-python-desktop.
3181 (package
3182 (name "python2-rsvg")
3183 (version "2.32.0")
3184 (source
3185 (origin
3186 (method url-fetch)
3187 (uri (string-append
3188 "mirror://gnome/sources/gnome-python-desktop/2.32/gnome-python-desktop-"
3189 version ".tar.bz2"))
3190 (sha256
3191 (base32
3192 "1s8f9rns9v7qlwjv9qh9lr8crp88dpzfm45hj47zc3ivpy0dbnq9"))))
3193 (build-system gnu-build-system)
3194 (native-inputs
3195 `(("pkg-config" ,pkg-config)))
3196 (inputs
3197 `(("python" ,python-2)
3198 ("python2-pygtk" ,python2-pygtk)
3199 ("librsvg" ,librsvg)))
f032d0be 3200 (home-page "https://www.gnome.org")
619936a4
LC
3201 (synopsis "Python bindings to librsvg")
3202 (description
3ad75446 3203 "This package provides Python bindings to librsvg, the SVG rendering
619936a4
LC
3204library.")
3205
3206 ;; This is the license of the rsvg bindings. The license of each module
3207 ;; of gnome-python-desktop is given in 'COPYING'.
3208 (license license:lgpl2.1+)))
a31a6d22 3209
f2ca414a
SB
3210(define-public glib-networking
3211 (package
3212 (name "glib-networking")
0d75c64d 3213 (version "2.60.3")
f2ca414a
SB
3214 (source (origin
3215 (method url-fetch)
3216 (uri (string-append "mirror://gnome/sources/glib-networking/"
3217 (version-major+minor version) "/"
fb8fe1e8 3218 "glib-networking-" version ".tar.xz"))
f2ca414a
SB
3219 (sha256
3220 (base32
0d75c64d 3221 "1mfw44qpmwvz6yzj8c6spx6z357wrmkk15byrkc5byagd82860fm"))))
65211552 3222 (build-system meson-build-system)
f2ca414a 3223 (arguments
0d75c64d 3224 `(#:configure-flags '("-Dlibproxy_support=false")))
f2ca414a
SB
3225 (native-inputs
3226 `(("pkg-config" ,pkg-config)
3227 ("intltool" ,intltool)))
3228 (inputs
3229 `(("glib" ,glib)
3230 ("gnutls" ,gnutls)
4b8f1313 3231 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
f032d0be 3232 (home-page "https://www.gnome.org")
f2ca414a
SB
3233 (synopsis "Network-related GIO modules")
3234 (description
3235 "This package contains various network related extensions for the GIO
3236library.")
3237 (license license:lgpl2.0+)))
3238
ca649680 3239(define-public rest
4510b2da 3240 (package
ca649680 3241 (name "rest")
a4194d16 3242 (version "0.8.1")
4510b2da
SB
3243 (source (origin
3244 (method url-fetch)
3245 (uri (string-append "mirror://gnome/sources/rest/"
ca649680
SB
3246 (version-major+minor version) "/"
3247 name "-" version ".tar.xz"))
4510b2da
SB
3248 (sha256
3249 (base32
a4194d16 3250 "1j81bgqmd55s5lxyaxcplym9n6xywcs1cm9wmvafsg2xiv9sl4q5"))))
4510b2da
SB
3251 (build-system gnu-build-system)
3252 (arguments
3253 '(#:tests? #f ; tests require internet connection
3254 #:configure-flags
3255 '("--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt")))
3256 (native-inputs
3257 `(("glib-mkenums" ,glib "bin")
3258 ("gobject-introspection" ,gobject-introspection)
3259 ("pkg-config" ,pkg-config)))
3260 (propagated-inputs
3261 ;; rest-0.7.pc refers to all these.
3262 `(("glib" ,glib)
3263 ("libsoup" ,libsoup)
3264 ("libxml2" ,libxml2)))
24d6cc1d 3265 (home-page "https://www.gtk.org/")
4510b2da
SB
3266 (synopsis "RESTful web api query library")
3267 (description
3268 "This library was designed to make it easier to access web services that
3269claim to be \"RESTful\". It includes convenience wrappers for libsoup and
3270libxml to ease remote use of the RESTful API.")
3271 (license license:lgpl2.1+)))
3272
6e1bb642
SB
3273(define-public libsoup
3274 (package
3275 (name "libsoup")
9ae87870 3276 (version "2.68.3")
6e1bb642
SB
3277 (source (origin
3278 (method url-fetch)
3279 (uri (string-append "mirror://gnome/sources/libsoup/"
3280 (version-major+minor version) "/"
c1b79b36 3281 "libsoup-" version ".tar.xz"))
6e1bb642
SB
3282 (sha256
3283 (base32
9ae87870 3284 "1yxs0ax4rq3g0lgkbv7mz497rqj16iyyizddyc13gzxh6n7b0jsk"))))
eccaa8bf 3285 (build-system meson-build-system)
6e1bb642
SB
3286 (outputs '("out" "doc"))
3287 (arguments
2deb146f 3288 `(#:modules ((guix build utils)
eccaa8bf 3289 (guix build meson-build-system)
2deb146f
LC
3290 (ice-9 popen))
3291
f8026a79 3292 #:configure-flags '("-Dgtk_doc=true")
6e1bb642
SB
3293 #:phases
3294 (modify-phases %standard-phases
eccaa8bf 3295 (add-after 'unpack 'adjust-tests
26c228f9 3296 (lambda _
eccaa8bf
MB
3297 ;; This test fails due to missing /etc/nsswitch.conf
3298 ;; in the build environment.
26c228f9
LC
3299 (substitute* "tests/socket-test.c"
3300 ((".*/sockets/unconnected.*") ""))
2deb146f 3301
f8026a79
MB
3302 ;; These fail because "subdomain.localhost" does not resolve in
3303 ;; the build environment.
3304 (substitute* "tests/hsts-test.c"
3305 ((".*/hsts/basic.*") "")
3306 ((".*/hsts/subdomains.*") "")
3307 ((".*/hsts/superdomain.*") "")
3308 ((".*/hsts/utf8-address.*") ""))
3309 (substitute* "tests/hsts-db-test.c"
3310 ((".*/hsts-db/subdomains.*") ""))
3311
2deb146f
LC
3312 ;; Generate a self-signed certificate that has "localhost" as its
3313 ;; 'dnsName'. Failing to do that, and starting with GnuTLS
3314 ;; 3.5.12, tests such as "ssl-tests" fail:
3315 ;;
3316 ;; ERROR:ssl-test.c:406:do_tls_interaction_test: Unexpected status 6 Unacceptable TLS certificate (expected 200 OK)
3317 ;;
3318 ;; 'certtool' is interactive so we have to pipe it the answers.
3319 ;; Reported at <https://bugzilla.gnome.org/show_bug.cgi?id=784696>.
3320 (let ((pipe (open-output-pipe "certtool --generate-self-signed \
3321 --load-privkey tests/test-key.pem --outfile tests/test-cert.pem")))
3322 (for-each (lambda (line)
3323 (display line pipe)
3324 (newline pipe))
3325 '("" ;Common name
3326 "" ;UID
3327 "Guix" ;Organizational unit name
3328 "GNU" ;Organization name
3329 "" ;Locality name
3330 "" ;State or province
3331 "" ;Country
3332 "" ;subject's domain component (DC)
3333 "" ;E-mail
3334 "" ;serial number
3335 "-1" ;expiration time
3336 "N" ;belong to authority?
3337 "N" ;web client certificate?
3338 "N" ;IPsec IKE?
3339 "Y" ;web server certificate?
3340 "localhost" ;dnsName of subject
3341 "" ;dnsName of subject (end)
3342 "" ;URI of subject
3343 "127.0.0.1" ;IP address of subject
3344 "" ;signing?
06f5bc4e
MB
3345 "" ;encryption (RSA)?
3346 "" ;data encryption?
2deb146f
LC
3347 "" ;sign OCSP requests?
3348 "" ;sign code?
3349 "" ;time stamping?
3350 "" ;email protection?
3351 "" ;URI of the CRL distribution point
3352 "y" ;above info OK?
3353 ))
3354 (close-pipe pipe))
26c228f9 3355 #t))
eccaa8bf
MB
3356 (add-after 'install 'move-doc
3357 (lambda* (#:key outputs #:allow-other-keys)
3358 (let ((out (assoc-ref outputs "out"))
3359 (doc (assoc-ref outputs "doc")))
3360 (mkdir-p (string-append doc "/share"))
3361 (copy-recursively (string-append out "/share/gtk-doc")
3362 (string-append doc "/share/gtk-doc"))
3363 (delete-file-recursively (string-append out "/share/gtk-doc"))
3364 #t))))))
6e1bb642 3365 (native-inputs
26c228f9 3366 `(("glib:bin" ,glib "bin") ; for glib-mkenums
6e1bb642 3367 ("gobject-introspection" ,gobject-introspection)
eccaa8bf 3368 ("gtk-doc" ,gtk-doc)
6e1bb642
SB
3369 ("intltool" ,intltool)
3370 ("pkg-config" ,pkg-config)
3371 ("python" ,python-wrapper)
fd730590 3372 ("vala" ,vala)
6e1bb642
SB
3373 ;; These are needed for the tests.
3374 ;; FIXME: Add PHP once available.
3375 ("curl" ,curl)
2deb146f 3376 ("gnutls" ,gnutls) ;for 'certtool'
6e1bb642
SB
3377 ("httpd" ,httpd)))
3378 (propagated-inputs
3379 ;; libsoup-2.4.pc refers to all these.
f8026a79
MB
3380 `(("brotli" ,google-brotli)
3381 ("glib" ,glib)
249846bf 3382 ("libpsl" ,libpsl)
eccaa8bf 3383 ("libxml2" ,libxml2)
f8026a79
MB
3384 ("sqlite" ,sqlite)
3385 ("zlib" ,zlib)))
eccaa8bf
MB
3386 (inputs
3387 `(("glib-networking" ,glib-networking)
3388 ("mit-krb5" ,mit-krb5)))
6e1bb642
SB
3389 (home-page "https://live.gnome.org/LibSoup/")
3390 (synopsis "GLib-based HTTP Library")
3391 (description
3392 "LibSoup is an HTTP client/server library for GNOME. It uses GObjects
3393and the GLib main loop, to integrate well with GNOME applications.")
3394 (license license:lgpl2.0+)))
3395
bba229a3
SB
3396(define-public libsecret
3397 (package
3398 (name "libsecret")
b243d2f7 3399 (version "0.19.1")
bba229a3
SB
3400 (source (origin
3401 (method url-fetch)
3402 (uri (string-append
896dcbc7
EF
3403 "mirror://gnome/sources/libsecret/"
3404 (version-major+minor version) "/"
0ada4e29 3405 "libsecret-" version ".tar.xz"))
bba229a3
SB
3406 (sha256
3407 (base32
b243d2f7 3408 "0fhflcsr70b1pps2pcvqcbdhip2ny5am9nbm634f4sj5g40y30w5"))))
bba229a3
SB
3409 (build-system gnu-build-system)
3410 (outputs '("out" "doc"))
3411 (arguments
3412 `(#:tests? #f ; FIXME: Testing hangs.
bba229a3
SB
3413 #:configure-flags
3414 (list (string-append "--with-html-dir="
3415 (assoc-ref %outputs "doc")
3416 "/share/gtk-doc/html"))))
3417 (native-inputs
c06ef010
MB
3418 `(("gettext" ,gettext-minimal)
3419 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
bba229a3 3420 ("gobject-introspection" ,gobject-introspection)
bba229a3
SB
3421 ("pkg-config" ,pkg-config)
3422 ("vala" ,vala)
3423 ("xsltproc" ,libxslt)))
3424 ;; These are needed for the tests.
3425 ;; FIXME: Add gjs once available.
3426 ;("dbus" ,dbus)
3427 ;("python2" ,python-2)
3428 ;("python2-dbus" ,python2-dbus)
3429 ;("python2-pygobject" ,python2-pygobject)
3430 ;("python2-pygobject-2" ,python2-pygobject-2)))
3431 (propagated-inputs
3432 `(("glib" ,glib))) ; required by libsecret-1.pc
3433 (inputs
3434 `(("docbook-xsl" ,docbook-xsl)
3435 ("libgcrypt" ,libgcrypt)
3436 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
3437 (home-page "https://wiki.gnome.org/Projects/Libsecret/")
3438 (synopsis "GObject bindings for \"Secret Service\" API")
3439 (description
3440 "Libsecret is a GObject based library for storing and retrieving passwords
3441and other secrets. It communicates with the \"Secret Service\" using DBus.")
3442 (license license:lgpl2.1+)))
3443
b6821ee0 3444(define-public five-or-more
3445 (package
3446 (name "five-or-more")
d9795e93 3447 (version "3.32.0")
b6821ee0 3448 (source
3449 (origin
3450 (method url-fetch)
3451 (uri (string-append "mirror://gnome/sources/" name "/"
3452 (version-major+minor version) "/"
3453 name "-" version ".tar.xz"))
3454 (sha256
3455 (base32
d9795e93
KK
3456 "0v52i22ygv6y4zqs8nyb1qmacmj9whhqrw7qss6vn7by4nsikhrn"))))
3457 (build-system meson-build-system)
3458 (arguments
3459 '(#:glib-or-gtk? #t
3460 #:phases
3461 (modify-phases %standard-phases
3462 (add-after 'unpack 'skip-gtk-update-icon-cache
3463 (lambda _
3464 (substitute* "meson_post_install.py"
3465 (("gtk-update-icon-cache") (which "true")))
3466 #t)))))
b6821ee0 3467 (native-inputs
3468 `(("pkg-config" ,pkg-config)
d9795e93 3469 ("appstream-glib" ,appstream-glib)
b6821ee0 3470 ("desktop-file-utils" ,desktop-file-utils)
d9795e93 3471 ("glib:bin" ,glib "bin") ; for glib-compile-resources
b6821ee0 3472 ("intltool" ,intltool)
3473 ("itstool" ,itstool)
d9795e93 3474 ("vala" ,vala)
b6821ee0 3475 ("xmllint" ,libxml2)))
3476 (inputs
3477 `(("gtk+" ,gtk+)
d9795e93 3478 ("libgnome-games-support" ,libgnome-games-support)
b6821ee0 3479 ("librsvg" ,librsvg)))
3480 (home-page "https://wiki.gnome.org/Apps/Five%20or%20more")
3481 (synopsis "Logic puzzle game")
3482 (description "Five or More is a game where you try to align
3483 five or more objects of the same color and shape causing them to disappear.
3484 On every turn more objects will appear, until the board is full.
3485 Try to last as long as possible.")
3486 (license license:gpl2+)))
3487
a31a6d22
SB
3488(define-public gnome-mines
3489 (package
3490 (name "gnome-mines")
2d817e41 3491 (version "3.32.2")
a31a6d22
SB
3492 (source
3493 (origin
3494 (method url-fetch)
3495 (uri (string-append "mirror://gnome/sources/" name "/"
3496 (version-major+minor version) "/"
3497 name "-" version ".tar.xz"))
3498 (sha256
3499 (base32
2d817e41 3500 "1nv966wkp2rqxzcdb76bwlbzpjqadcaqzrnkxpzwnvjjr167yx8g"))))
8c0fab36 3501 (build-system meson-build-system)
a31a6d22 3502 (arguments
2d817e41
KK
3503 '(#:glib-or-gtk? #t
3504 #:phases
a31a6d22 3505 (modify-phases %standard-phases
2d817e41
KK
3506 (add-after 'unpack 'skip-gtk-update-icon-cache
3507 (lambda _
3508 (substitute* "build-aux/meson_post_install.py"
3509 (("gtk-update-icon-cache") (which "true")))
3510 #t)))))
a31a6d22 3511 (native-inputs
8c0fab36
RW
3512 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
3513 ("pkg-config" ,pkg-config)
a31a6d22
SB
3514 ("desktop-file-utils" ,desktop-file-utils)
3515 ("intltool" ,intltool)
bcb354ad 3516 ("itstool" ,itstool)
8c0fab36
RW
3517 ("vala" ,vala)
3518 ("yelp" ,yelp)
3519 ("appstream-glib" ,appstream-glib)))
a31a6d22
SB
3520 (inputs
3521 `(("gtk+" ,gtk+)
73992962 3522 ("libgnome-games-support" ,libgnome-games-support)
a31a6d22
SB
3523 ("librsvg" ,librsvg)))
3524 (home-page "https://wiki.gnome.org/Apps/Mines")
3525 (synopsis "Minesweeper game")
3526 (description
3527 "Mines (previously gnomine) is a puzzle game where you locate mines
3528floating in an ocean using only your brain and a little bit of luck.")
3529 (license license:gpl2+)))
88f70665 3530
dfc407f3
KY
3531(define-public gnome-sudoku
3532 (package
3533 (name "gnome-sudoku")
7dc728c4 3534 (version "3.32.0")
dfc407f3
KY
3535 (source
3536 (origin
3537 (method url-fetch)
3538 (uri (string-append "mirror://gnome/sources/" name "/"
3539 (version-major+minor version) "/"
3540 name "-" version ".tar.xz"))
3541 (sha256
3542 (base32
7dc728c4
KK
3543 "1wwdjflw1lbx3cv6gvqcgp5jnjkrq37ld6mjbjj03g3vr90qaf0l"))))
3544 (build-system meson-build-system)
3545 (arguments
3546 '(#:glib-or-gtk? #t
3547 #:phases
3548 (modify-phases %standard-phases
3549 (add-after 'unpack 'skip-gtk-update-icon-cache
3550 (lambda _
3551 (substitute* "build-aux/post_install.py"
3552 (("gtk-update-icon-cache") (which "true")))
3553 #t)))))
dfc407f3
KY
3554 (native-inputs
3555 `(("pkg-config" ,pkg-config)
3556 ("desktop-file-utils" ,desktop-file-utils)
7dc728c4 3557 ("glib:bin" ,glib "bin") ; for glib-compile-resources
dfc407f3
KY
3558 ("intltool" ,intltool)
3559 ("itstool" ,itstool)
7dc728c4 3560 ("vala" ,vala)
dfc407f3
KY
3561 ("xmllint" ,libxml2)))
3562 (inputs
3563 `(("gtk+" ,gtk+)
3564 ("json-glib" ,json-glib)
3565 ("libgee" ,libgee)
3566 ("librsvg" ,librsvg)
3567 ("qqwing" ,qqwing)))
3568 (home-page "https://wiki.gnome.org/Apps/Sudoku")
3569 (synopsis "Japanese logic game")
3570 (description
3571 "Sudoku is a Japanese logic game that exploded in popularity in 2005.
3572GNOME Sudoku is meant to have an interface as simple and unobstrusive as
3573possible while still providing features that make playing difficult Sudoku
3574more fun.")
3575 (license license:gpl2+)))
3576
88f70665
AW
3577(define-public gnome-terminal
3578 (package
3579 (name "gnome-terminal")
7dee3942 3580 (version "3.32.2")
88f70665
AW
3581 (source
3582 (origin
3583 (method url-fetch)
3584 (uri (string-append "mirror://gnome/sources/" name "/"
3585 (version-major+minor version) "/"
3586 name "-" version ".tar.xz"))
3587 (sha256
3588 (base32
7dee3942 3589 "0shhpnagasyp1kxgjczfrivcxbgrrl3y8lzvp1z101m67h4jp6km"))))
88f70665
AW
3590 (build-system glib-or-gtk-build-system)
3591 (arguments
3592 '(#:configure-flags
3593 (list "--disable-migration" "--disable-search-provider"
3594 "--without-nautilus-extension")
3595 #:phases
3596 (modify-phases %standard-phases
3a4de6b2 3597 (add-before 'configure 'patch-/bin/true
88f70665
AW
3598 (lambda _
3599 (substitute* "configure"
3600 (("/bin/true") (which "true"))))))))
3601 (native-inputs
3602 `(("pkg-config" ,pkg-config)
3603 ("desktop-file-utils" ,desktop-file-utils)
3604 ("intltool" ,intltool)
bcb354ad
SB
3605 ("itstool" ,itstool)
3606 ("xmllint" ,libxml2)))
68702167
MW
3607 (propagated-inputs
3608 `(("dconf" ,dconf)))
88f70665
AW
3609 (inputs
3610 `(("gtk+" ,gtk+)
3611 ("vte" ,vte)
3612 ("gnutls" ,gnutls)
88f70665
AW
3613 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3614 ("util-linux" ,util-linux)
3615 ("vala" ,vala)))
3616 (home-page "https://wiki.gnome.org/Apps/Terminal")
3617 (synopsis "Terminal emulator")
3618 (description
3619 "GNOME Terminal is a terminal emulator application for accessing a
3620UNIX shell environment which can be used to run programs available on
3621your system.
3622
3623It supports several profiles, multiple tabs and implements several
3624keyboard shortcuts.")
3625 (license license:gpl3+)))
75016d07
AW
3626
3627(define-public colord
3628 (package
3629 (name "colord")
f98be942 3630 (version "1.4.4")
75016d07
AW
3631 (source
3632 (origin
3633 (method url-fetch)
5cc3096c 3634 (uri (string-append "https://www.freedesktop.org/software/colord/releases/"
d21778aa 3635 "colord-" version ".tar.xz"))
75016d07 3636 (sha256
f98be942 3637 (base32 "19f0938fr7nvvm3jr263dlknaq7md40zrac2npfyz25zc00yh3ws"))))
a68544a8 3638 (build-system meson-build-system)
75016d07 3639 (arguments
a68544a8
RW
3640 '(;; FIXME: One test fails:
3641 ;; /colord/icc-store (in lib/colord/colord-self-test-private):
3642 ;; Incorrect content type for /tmp/colord-vkve/already-exists.icc, got
3643 ;; application/x-zerosize
75016d07 3644 #:tests? #f
a68544a8
RW
3645 #:glib-or-gtk? #t
3646 #:configure-flags (list "-Dlocalstatedir=/var"
75016d07 3647 ;; No dep on systemd.
a68544a8 3648 "-Dsystemd=false"
75016d07
AW
3649 ;; Wants to install to global completion dir;
3650 ;; punt.
a68544a8 3651 "-Dbash_completion=false"
a68544a8
RW
3652 "-Ddaemon_user=colord"
3653 "-Dsane=true"
dac26e22 3654 "-Dvapi=true"
6f20e2dc 3655 ;; Requires spotread.
a68544a8 3656 "-Dargyllcms_sensor=false"
6f20e2dc 3657 ;; TODO: Requires docbook2x.
a68544a8 3658 "-Dman=false")
75016d07
AW
3659 #:phases
3660 (modify-phases %standard-phases
a68544a8
RW
3661 (add-before 'configure 'patch-build-system
3662 (lambda* (#:key outputs #:allow-other-keys)
3663 (substitute* "rules/meson.build"
3664 (("udev.get_pkgconfig_variable\\('udevdir'\\)")
3665 (string-append "'" (assoc-ref outputs "out") "/lib/udev'")))
2a1f3e3f
LC
3666 #t))
3667 (add-before 'configure 'set-sqlite3-file-name
3668 (lambda* (#:key inputs #:allow-other-keys)
3669 ;; "colormgr dump" works by invoking the "sqlite3" command.
3670 ;; Record its absolute file name.
3671 (let ((sqlite (assoc-ref inputs "sqlite")))
3672 (substitute* "client/cd-util.c"
3673 (("\"sqlite3\"")
3674 (string-append "\"" sqlite "/bin/sqlite3\"")))
3675 #t))))))
75016d07 3676 (native-inputs
6f20e2dc 3677 `(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
2536027c 3678 ("gettext" ,gettext-minimal)
75016d07 3679 ("gobject-introspection" ,gobject-introspection)
a68544a8 3680 ("gtk-doc" ,gtk-doc)
dac26e22
TGR
3681 ("pkg-config" ,pkg-config)
3682 ("vala" ,vala)))
65cb2d61
SB
3683 (propagated-inputs
3684 ;; colord.pc refers to all these.
3685 `(("glib" ,glib)
6f20e2dc
TGR
3686 ("lcms" ,lcms)
3687 ("udev" ,eudev)))
75016d07 3688 (inputs
65cb2d61 3689 `(("dbus-glib" ,dbus-glib)
a68544a8 3690 ("gusb" ,gusb)
80c7dd1a 3691 ("libgudev" ,libgudev)
75016d07 3692 ("libusb" ,libusb)
75016d07 3693 ("polkit" ,polkit)
a68544a8 3694 ("python" ,python-wrapper)
6f20e2dc 3695 ("sqlite" ,sqlite)
4c928743 3696 ("sane-backends" ,sane-backends)))
57e7d748 3697 (home-page "https://www.freedesktop.org/software/colord/")
75016d07
AW
3698 (synopsis "Color management service")
3699 (description "Colord is a system service that makes it easy to manage,
3700install and generate color profiles to accurately color manage input and
3701output devices.")
3702 (license license:gpl2+)))
7b2abd00
AW
3703
3704(define-public geoclue
3705 (package
3706 (name "geoclue")
b433c7b3 3707 (version "2.4.8")
7b2abd00
AW
3708 (source
3709 (origin
3710 (method url-fetch)
5cc3096c 3711 (uri (string-append "https://www.freedesktop.org/software/" name
7b2abd00
AW
3712 "/releases/" (version-major+minor version) "/"
3713 name "-" version ".tar.xz"))
3714 (sha256
3715 (base32
b433c7b3 3716 "08yg1r7m0n9hwyvcy769qkmkf8lslqwv69cjfffwnc3zm5km25qj"))
fc1adab1 3717 (patches (search-patches "geoclue-config.patch"))))
7b2abd00
AW
3718 (build-system glib-or-gtk-build-system)
3719 (arguments
3720 '(;; The tests want to run the system bus.
3721 #:tests? #f
3722 #:configure-flags (list ;; Disable bits requiring ModemManager.
3723 "--disable-3g-source"
3724 "--disable-cdma-source"
3725 "--disable-modem-gps-source"
3726 "--with-dbus-service-user=geoclue")
3727 #:phases
3728 (modify-phases %standard-phases
3a4de6b2 3729 (add-before 'configure 'patch-/bin/true
7b2abd00
AW
3730 (lambda _
3731 (substitute* "configure"
e3eb53e7
MW
3732 (("/bin/true") (which "true")))
3733 #t)))))
7b2abd00
AW
3734 (native-inputs
3735 `(("pkg-config" ,pkg-config)
758798a9 3736 ("gobject-introspection" ,gobject-introspection)
7b2abd00
AW
3737 ("intltool" ,intltool)))
3738 (inputs
54e911bc
SB
3739 `(("avahi" ,avahi)
3740 ("glib" ,glib)
7b2abd00
AW
3741 ("json-glib" ,json-glib)
3742 ("libsoup" ,libsoup)))
99adfd7d 3743 (home-page "https://www.freedesktop.org/wiki/Software/GeoClue/")
7b2abd00
AW
3744 (synopsis "Geolocation service")
3745 (description "Geoclue is a D-Bus service that provides location
3746information. The primary goal of the Geoclue project is to make creating
3747location-aware applications as simple as possible, while the secondary goal is
3748to ensure that no application can access location information without explicit
e881752c 3749permission from user.")
7b2abd00 3750 (license license:gpl2+)))
2bfe7437
AW
3751
3752(define-public geocode-glib
3753 (package
3754 (name "geocode-glib")
65de725f 3755 (version "3.26.1")
2bfe7437
AW
3756 (source (origin
3757 (method url-fetch)
3758 (uri (string-append "mirror://gnome/sources/geocode-glib/"
3759 (version-major+minor version) "/"
d485cdc0 3760 "geocode-glib-" version ".tar.xz"))
2bfe7437
AW
3761 (sha256
3762 (base32
65de725f 3763 "076ydfpyc4n5c9dbqmf26i4pilfi5jpw6cjcgrbgrjbndavnmajv"))))
a7dd0c02 3764 (build-system meson-build-system)
2bfe7437 3765 (arguments
a7dd0c02
RW
3766 `(#:phases
3767 (modify-phases %standard-phases
3768 ;; The tests require a bunch of locales.
3769 (add-before 'check 'set-locales
3770 (lambda* (#:key inputs #:allow-other-keys)
3771 (setenv "GUIX_LOCPATH"
3772 (string-append (assoc-ref inputs "glibc-locales")
3773 "/lib/locale"))
3774 #t)))))
2bfe7437
AW
3775 (native-inputs
3776 `(("glib:bin" ,glib "bin") ; for glib-mkenums
a7dd0c02
RW
3777 ("glibc-locales" ,glibc-locales) ; for tests
3778 ("gettext" ,gettext-minimal)
2bfe7437 3779 ("gobject-introspection" ,gobject-introspection)
a7dd0c02 3780 ("gtk-doc" ,gtk-doc)
2bfe7437
AW
3781 ("pkg-config" ,pkg-config)
3782 ("json-glib" ,json-glib)))
3783 (propagated-inputs
3784 ;; geocode-glib-1.0.pc refers to GIO.
3785 `(("glib" ,glib)))
3786 (inputs
3787 `(("libsoup" ,libsoup)))
3788 (home-page "https://github.com/GNOME/geocode-glib/")
3789 (synopsis "Geocoding and reverse-geocoding library")
3790 (description
3791 "geocode-glib is a convenience library for geocoding (finding longitude,
3792and latitude from an address) and reverse geocoding (finding an address from
3793coordinates) using the Nominatim service. geocode-glib caches requests for
3794faster results and to avoid unnecessary server load.")
3795 (license license:lgpl2.0+)))
a1d5bb0e
AW
3796
3797(define-public upower
3798 (package
3799 (name "upower")
4088d809 3800 (version "0.99.10")
a1d5bb0e
AW
3801 (source (origin
3802 (method url-fetch)
9ec54965 3803 (uri (string-append "https://gitlab.freedesktop.org/upower/upower/"
4088d809 3804 "uploads/c438511024b9bc5a904f8775cfc8e4c4/"
9ec54965 3805 "upower-" version ".tar.xz"))
a1d5bb0e
AW
3806 (sha256
3807 (base32
4088d809 3808 "17d2bclv5fgma2y3g8bsn9pdvspn1zrzismzdnzfivc0f2wm28k4"))
fc1adab1 3809 (patches (search-patches "upower-builddir.patch"))))
a1d5bb0e
AW
3810 (build-system glib-or-gtk-build-system)
3811 (arguments
3812 '( ;; The tests want to contact the system bus, which can't be done in the
3813 ;; build environment. The integration test can run, but the last of
3814 ;; the up-self-tests doesn't. Disable tests for now.
3815 #:tests? #f
3816 #:configure-flags (list "--localstatedir=/var"
3817 (string-append "--with-udevrulesdir="
3818 (assoc-ref %outputs "out")
9ec54965 3819 "/lib/udev/rules.d"))))
a1d5bb0e 3820 (native-inputs
ebeabe2d
SB
3821 `(("gobject-introspection" ,gobject-introspection)
3822 ("pkg-config" ,pkg-config)
a1d5bb0e 3823 ("intltool" ,intltool)
55409295
LC
3824 ("python" ,python)
3825
3826 ;; For man pages.
3827 ("libxslt" ,libxslt) ;for 'xsltproc'
3828 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
3829 ("docbook-xsl" ,docbook-xsl)))
a1d5bb0e 3830 (inputs
ea226291
SB
3831 `(("dbus-glib" ,dbus-glib)
3832 ("libgudev" ,libgudev)
a1d5bb0e 3833 ("libusb" ,libusb)))
d7a503fc
MB
3834 (propagated-inputs
3835 ;; In Requires of upower-glib.pc.
3836 `(("glib" ,glib)))
57e7d748 3837 (home-page "https://upower.freedesktop.org/")
a1d5bb0e
AW
3838 (synopsis "System daemon for managing power devices")
3839 (description
3840 "UPower is an abstraction for enumerating power devices,
3841listening to device events and querying history and statistics. Any
3842application or service on the system can access the org.freedesktop.UPower
3843service via the system message bus.")
3844 (license license:gpl2+)))
6a180f6f
AW
3845
3846(define-public libgweather
3847 (package
3848 (name "libgweather")
794ce8ea 3849 (version "3.28.3")
6a180f6f
AW
3850 (source (origin
3851 (method url-fetch)
3852 (uri (string-append "mirror://gnome/sources/" name "/"
3853 (version-major+minor version) "/"
3854 name "-" version ".tar.xz"))
3855 (sha256
3856 (base32
794ce8ea 3857 "1xz60h59zgyk61y2wwzm0xlqav72i668g7v0x7rh9idz240hxls5"))))
cf6cbc34 3858 (build-system meson-build-system)
6a180f6f 3859 (arguments
cf6cbc34
RW
3860 `(#:tests? #f ; one of two tests requires network access
3861 #:configure-flags
3862 `(,(string-append "-Dzoneinfo_dir="
b6072e6b 3863 (assoc-ref %build-inputs "tzdata")
cf6cbc34 3864 "/share/zoneinfo"))))
6a180f6f
AW
3865 (native-inputs
3866 `(("glib:bin" ,glib "bin") ; for glib-mkenums
b6072e6b 3867 ("gobject-introspection" ,gobject-introspection)
6a180f6f 3868 ("pkg-config" ,pkg-config)
1d3fcf94 3869 ("vala" ,vala)
6a180f6f
AW
3870 ("intltool" ,intltool)))
3871 (propagated-inputs
3872 ;; gweather-3.0.pc refers to GTK+, GDK-Pixbuf, GLib/GObject, libxml, and
3873 ;; libsoup.
3874 `(("gtk+" ,gtk+)
3875 ("gdk-pixbuf" ,gdk-pixbuf)
3876 ("libxml2" ,libxml2)
cf6cbc34 3877 ("libsoup" ,libsoup)
6a180f6f 3878 ("geocode-glib" ,geocode-glib)))
cf6cbc34
RW
3879 (inputs
3880 `(("tzdata" ,tzdata)))
6a180f6f
AW
3881 (home-page "https://wiki.gnome.org/action/show/Projects/LibGWeather")
3882 (synopsis "Location, time zone, and weather library for GNOME")
3883 (description
3884 "libgweather is a library to access weather information from online
3885services for numerous locations.")
3886 (license license:gpl2+)))
23a22af6
AW
3887
3888(define-public gnome-settings-daemon
3889 (package
3890 (name "gnome-settings-daemon")
4be0719f 3891 (version "3.32.1")
23a22af6
AW
3892 (source
3893 (origin
3894 (method url-fetch)
3895 (uri (string-append "mirror://gnome/sources/" name "/"
3896 (version-major+minor version) "/"
3897 name "-" version ".tar.xz"))
3898 (sha256
3899 (base32
4be0719f 3900 "02d0s0g2mmqfib44r3sf0499r08p61s8l2ndsjssbam1bi7x2dks"))))
e644f9fa 3901 (build-system meson-build-system)
23a22af6 3902 (arguments
e644f9fa
RW
3903 `(#:glib-or-gtk? #t
3904 #:configure-flags
3905 (list (string-append "-Dudev_dir="
3906 (assoc-ref %outputs "out")
4d0e085b
RW
3907 "/lib/udev/rules.d/")
3908 ;; Otherwise, the RUNPATH will lack the final path component.
3909 (string-append "-Dc_link_args=-Wl,-rpath="
3910 (assoc-ref %outputs "out")
3911 "/lib/gnome-settings-daemon-3.0"))
e644f9fa 3912 ;; Color management test can't reach the colord system service.
23a22af6
AW
3913 #:tests? #f))
3914 (native-inputs
e644f9fa
RW
3915 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3916 ("pkg-config" ,pkg-config)
23a22af6
AW
3917 ("intltool" ,intltool)
3918 ("xsltproc" ,libxslt)
3919 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
3920 ("docbook-xml" ,docbook-xml-4.2)
3921 ("docbook-xsl" ,docbook-xsl)))
3922 (inputs
e644f9fa
RW
3923 `(("alsa-lib" ,alsa-lib)
3924 ("colord" ,colord)
ea226291 3925 ("libgudev" ,libgudev)
23a22af6
AW
3926 ("upower" ,upower)
3927 ("polkit" ,polkit)
3928 ("pulseaudio" ,pulseaudio)
3929 ("libcanberra" ,libcanberra)
3930 ("libx11" ,libx11)
3931 ("libxtst" ,libxtst)
3932 ("lcms" ,lcms)
3933 ("libnotify" ,libnotify)
3934 ("geoclue" ,geoclue)
3935 ("geocode-glib" ,geocode-glib)
3936 ("libgweather" ,libgweather)
3937 ("gnome-desktop" ,gnome-desktop)
3938 ("nss" ,nss)
3939 ("cups" ,cups)
ec2b1921
AW
3940 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3941 ("libwacom" ,libwacom)
3942 ("librsvg" ,librsvg)
eee7878f 3943 ("xf86-input-wacom" ,xf86-input-wacom)
e644f9fa 3944 ("wayland" ,wayland)
eee7878f 3945 ("network-manager" ,network-manager)))
f032d0be 3946 (home-page "https://www.gnome.org")
23a22af6
AW
3947 (synopsis "GNOME settings daemon")
3948 (description
3949 "This package contains the daemon responsible for setting the various
3950parameters of a GNOME session and the applications that run under it. It
3951handles settings such keyboard layout, shortcuts, and accessibility, clipboard
3952settings, themes, mouse settings, and startup of other daemons.")
3953 (license license:gpl2+)))
1e7464a9
DH
3954
3955(define-public totem-pl-parser
3956 (package
3957 (name "totem-pl-parser")
77425f04 3958 (version "3.26.3")
1e7464a9
DH
3959 (source (origin
3960 (method url-fetch)
e980cbe9
MW
3961 (uri (string-append "mirror://gnome/sources/totem-pl-parser/"
3962 (version-major+minor version) "/"
1e7464a9
DH
3963 "totem-pl-parser-" version ".tar.xz"))
3964 (sha256
3965 (base32
77425f04 3966 "13a45py2j1r9967zgww8kd24bn2fhycd4m3kzr90sxx9l2w03z8f"))))
1e9b19dd 3967 (build-system meson-build-system)
1e7464a9
DH
3968 (arguments
3969 ;; FIXME: Tests require gvfs.
3970 `(#:tests? #f))
3971 (native-inputs
3972 `(("intltool" ,intltool)
3973 ("glib" ,glib "bin")
4d6d8281 3974 ("gobject-introspection" ,gobject-introspection)
1e7464a9 3975 ("pkg-config" ,pkg-config)))
22a6ad6a 3976 (propagated-inputs
1e7464a9
DH
3977 `(("glib" ,glib)
3978 ("gmime" ,gmime)
1e9b19dd
RW
3979 ("libarchive" ,libarchive)
3980 ("libgcrypt" ,libgcrypt)
22a6ad6a
MW
3981 ("libxml2" ,libxml2)))
3982 (inputs
0a6e9e13 3983 `(("libsoup" ,libsoup)))
1e7464a9
DH
3984 (home-page "https://projects.gnome.org/totem")
3985 (synopsis "Library to parse and save media playlists for GNOME")
3986 (description "Totem-pl-parser is a GObjects-based library to parse and save
3987playlists in a variety of formats.")
3988 (license license:lgpl2.0+)))
3989
6b888eff
SB
3990(define-public aisleriot
3991 (package
3992 (name "aisleriot")
36ed9b46 3993 (version "3.22.9")
6b888eff
SB
3994 (source (origin
3995 (method url-fetch)
e43f622a 3996 (uri (string-append "mirror://gnome/sources/aisleriot/"
6b888eff 3997 (version-major+minor version) "/"
e43f622a 3998 "aisleriot-" version ".tar.xz"))
6b888eff
SB
3999 (sha256
4000 (base32
36ed9b46 4001 "0yzdh9cw5cjjgvfh75bihl968czlgfmpmn1z0fdk88sgvpjgzwji"))))
6b888eff
SB
4002 (build-system glib-or-gtk-build-system)
4003 (arguments
4004 '(#:configure-flags
4005 '("--with-platform=gtk-only"
4006 "--with-card-theme-formats=svg")))
4007 (native-inputs
4008 `(("desktop-file-utils" ,desktop-file-utils)
4009 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
4010 ("intltool" ,intltool)
4011 ("itstool" ,itstool)
4012 ("pkg-config" ,pkg-config)
4013 ("xmllint" ,libxml2)))
4014 (inputs
4015 `(("gtk+" ,gtk+)
226e57d6 4016 ("guile" ,guile-2.2)
6b888eff
SB
4017 ("libcanberra" ,libcanberra)
4018 ("librsvg" ,librsvg)))
4019 (home-page "https://wiki.gnome.org/Apps/Aisleriot")
4020 (synopsis "Solitaire card games")
4021 (description
4022 "Aisleriot (also known as Solitaire or sol) is a collection of card games
4023which are easy to play with the aid of a mouse.")
4024 (license license:gpl3+)))
4a79e256 4025
f828d05b
KK
4026(define-public amtk
4027 (package
4028 (name "amtk")
09c4e43f 4029 (version "5.0.1")
f828d05b
KK
4030 (source (origin
4031 (method url-fetch)
bf92ba6b 4032 (uri (string-append "mirror://gnome/sources/amtk/"
f828d05b 4033 (version-major+minor version) "/"
bf92ba6b 4034 "amtk-" version ".tar.xz"))
f828d05b
KK
4035 (sha256
4036 (base32
09c4e43f 4037 "09yy95w1s83c43mh9vha1jbb780yighf5pd2j0ygjmc68sjg871d"))))
f828d05b
KK
4038 (build-system gnu-build-system)
4039 (arguments
4040 '(#:configure-flags '("--enable-gtk-doc")))
4041 (native-inputs
4042 `(("gobject-introspection" ,gobject-introspection)
09c4e43f 4043 ("glib:bin" ,glib "bin") ; for glib-mkenums
f828d05b
KK
4044 ("gtk-doc" ,gtk-doc)
4045 ("pkg-config" ,pkg-config)))
4046 (inputs
4047 `(("glib" ,glib)
4048 ("gtk+" ,gtk+)))
4049 (home-page "https://wiki.gnome.org/Projects/Amtk")
4050 (synopsis "Actions, Menus and Toolbars Kit for GTK+ applications")
4051 (description
4052 "Amtk is the acronym for @acronym{Amtk, Actions Menus and Toolbars Kit}.
4053It is a basic GtkUIManager replacement based on GAction. It is suitable for
4054both a traditional UI or a modern UI with a GtkHeaderBar.")
4055 (license license:lgpl2.1+)))
4056
4a79e256
SB
4057(define-public devhelp
4058 (package
4059 (name "devhelp")
20db7a3d 4060 (version "3.32.0")
4a79e256
SB
4061 (source (origin
4062 (method url-fetch)
4063 (uri (string-append "mirror://gnome/sources/" name "/"
4064 (version-major+minor version) "/"
4065 name "-" version ".tar.xz"))
4066 (sha256
4067 (base32
20db7a3d 4068 "06sa83zggk29wcg75fl3gqh0rmi7cd3gsbk09a2z23r7vpy7xanq"))))
11d28bd9 4069 (build-system meson-build-system)
35407f94 4070 (arguments
20db7a3d
KK
4071 '(#:glib-or-gtk? #t
4072 #:phases
35407f94
EF
4073 (modify-phases %standard-phases
4074 (add-after 'unpack 'skip-gtk-update-icon-cache
4075 ;; Don't create 'icon-theme.cache'.
4076 (lambda _
4077 (substitute* "meson_post_install.py"
4078 (("gtk-update-icon-cache") "true"))
4079 #t)))))
4a79e256
SB
4080 (native-inputs
4081 `(("intltool" ,intltool)
5dd12afc 4082 ("itstool" ,itstool)
11d28bd9
KK
4083 ("gobject-introspection" ,gobject-introspection)
4084 ("glib:bin" ,glib "bin") ; for glib-mkmenus
4a79e256
SB
4085 ("pkg-config" ,pkg-config)))
4086 (inputs
11d28bd9
KK
4087 `(("amtk" ,amtk)
4088 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4a79e256
SB
4089 ("webkitgtk" ,webkitgtk)))
4090 (home-page "https://wiki.gnome.org/Apps/Devhelp")
4091 (synopsis "API documentation browser for GNOME")
4092 (description
4093 "Devhelp is an API documentation browser for GTK+ and GNOME. It works
4094natively with GTK-Doc (the API reference system developed for GTK+ and used
4095throughout GNOME for API documentation).")
4096 (license license:gpl2+)))
ba421ab7
MW
4097
4098(define-public cogl
4099 (package
4100 (name "cogl")
54c69ae1 4101 (version "1.22.4")
ba421ab7
MW
4102 (source
4103 (origin
4104 (method url-fetch)
5754f0cf 4105 (uri (string-append "mirror://gnome/sources/cogl/"
ba421ab7 4106 (version-major+minor version) "/"
5754f0cf 4107 "cogl-" version ".tar.xz"))
ba421ab7 4108 (sha256
54c69ae1 4109 (base32 "1q0drs82a8f6glg1v29bb6g2nf15fw0rvdx3d0rgcgfarfaby5sj"))))
a88d5a0c
MW
4110 ;; NOTE: mutter exports a bundled fork of cogl, so when making changes to
4111 ;; cogl, corresponding changes may be appropriate in mutter as well.
ba421ab7
MW
4112 (build-system gnu-build-system)
4113 (native-inputs
4114 `(("glib:bin" ,glib "bin") ; for glib-mkenums
4115 ("gobject-introspection" ,gobject-introspection)
4116 ;;("xorg-server" ,xorg-server) ; for the test suite
4117 ("pkg-config" ,pkg-config)))
4118 (propagated-inputs
4119 `(("glib" ,glib)
4120 ("gdk-pixbuf" ,gdk-pixbuf)
4121 ("libx11" ,libx11)
4122 ("libxext" ,libxext)
4123 ("libxfixes" ,libxfixes)
4124 ("libxdamage" ,libxdamage)
4125 ("libxcomposite" ,libxcomposite)
4126 ("libxrandr" ,libxrandr)))
4127 (inputs
4128 `(("mesa" ,mesa)
4129 ("cairo" ,cairo)
4130 ("pango" ,pango)
4131 ("gstreamer" ,gstreamer)
31860852
KK
4132 ("gst-plugins-base" ,gst-plugins-base)
4133 ("wayland" ,wayland)))
ba421ab7
MW
4134 (arguments
4135 `(#:configure-flags (list "--enable-cogl-gst"
31860852
KK
4136 "--enable-wayland-egl-platform"
4137 "--enable-wayland-egl-server"
4138
ba421ab7
MW
4139 ;; Arrange to pass an absolute file name to
4140 ;; dlopen for libGL.so.
4141 (string-append "--with-gl-libname="
4142 (assoc-ref %build-inputs "mesa")
4143 "/lib/libGL.so"))
4144 ;; XXX FIXME: All tests fail, with many warnings printed like this:
4145 ;; _FontTransOpen: Unable to Parse address
4146 ;; ${prefix}/share/fonts/X11/misc/
4147 #:tests? #f
4148 #; #:phases
4149 #;
4150 (modify-phases %standard-phases
4151 (add-before 'check 'start-xorg-server
4152 (lambda* (#:key inputs #:allow-other-keys)
4153 ;; The test suite requires a running X server.
4154 (system (format #f "~a/bin/Xvfb :1 &"
4155 (assoc-ref inputs "xorg-server")))
4156 (setenv "DISPLAY" ":1")
4157 #t)))))
4158 (home-page "http://www.cogl3d.org")
4159 (synopsis "Object oriented GL/GLES Abstraction/Utility Layer")
4160 (description
4161 "Cogl is a small library for using 3D graphics hardware to draw pretty
4162pictures. The API departs from the flat state machine style of OpenGL and is
4163designed to make it easy to write orthogonal components that can render
4164without stepping on each others toes.")
4165 (license (list license:expat ; most of the code
4166 license:bsd-3 ; cogl/cogl-point-in-poly.c
4167 license:sgifreeb2.0 ; cogl-path/tesselator/
4168 license:asl2.0)))) ; examples/android/
fb182b8a
MW
4169
4170(define-public clutter
4171 (package
4172 (name "clutter")
6a88e4ee 4173 (version "1.26.2")
fb182b8a
MW
4174 (source
4175 (origin
4176 (method url-fetch)
4177 (uri (string-append "mirror://gnome/sources/" name "/"
4178 (version-major+minor version) "/"
4179 name "-" version ".tar.xz"))
4180 (sha256
4181 (base32
6a88e4ee 4182 "0mif1qnrpkgxi43h7pimim6w6zwywa16ixcliw0yjm9hk0a368z7"))))
a88d5a0c
MW
4183 ;; NOTE: mutter exports a bundled fork of clutter, so when making changes
4184 ;; to clutter, corresponding changes may be appropriate in mutter as well.
fb182b8a 4185 (build-system gnu-build-system)
600233bd
LC
4186 (outputs '("out"
4187 "doc")) ;9 MiB of gtk-doc HTML pages
fb182b8a
MW
4188 (native-inputs
4189 `(("glib:bin" ,glib "bin") ; for glib-genmarshal
4190 ("gobject-introspection" ,gobject-introspection)
4191 ("pkg-config" ,pkg-config)
4192 ("xsltproc" ,libxslt)))
4193 (propagated-inputs
4194 `(("cogl" ,cogl)
4195 ("cairo" ,cairo)
4196 ("atk" ,atk)
4197 ("gtk+" ,gtk+)
4198 ("json-glib" ,json-glib)
4199 ("glib" ,glib)
4200 ("libxcomposite" ,libxcomposite)
4201 ("libxdamage" ,libxdamage)
4202 ("libxext" ,libxext)
4203 ("xinput" ,xinput)))
4204 (inputs
4205 `(("libxkbcommon" ,libxkbcommon)
4206 ("udev" ,eudev)))
4207 (arguments
600233bd
LC
4208 `(#:configure-flags (list "--enable-x11-backend=yes"
4209
4210 ;; This produces share/doc/{clutter,cally}.
4211 (string-append "--with-html-dir="
4212 (assoc-ref %outputs "doc")
4213 "/share/doc"))
fb182b8a
MW
4214 ;; XXX FIXME: Get test suite working. It would probably fail in the
4215 ;; same way the cogl tests fail, since clutter is based on cogl.
4216 #:tests? #f))
4217 (home-page "http://www.clutter-project.org")
476af713 4218 (synopsis "OpenGL-based interactive canvas library")
fb182b8a 4219 (description
476af713 4220 "Clutter is an OpenGL-based interactive canvas library, designed for
fb182b8a
MW
4221creating fast, mainly 2D single window applications such as media box UIs,
4222presentations, kiosk style applications and so on.")
4223 (license license:lgpl2.0+)))
bf7f17ba
MW
4224
4225(define-public clutter-gtk
4226 (package
4227 (name "clutter-gtk")
5d1a3219 4228 (version "1.8.4")
bf7f17ba
MW
4229 (source
4230 (origin
4231 (method url-fetch)
4232 (uri (string-append "mirror://gnome/sources/" name "/"
4233 (version-major+minor version) "/"
4234 name "-" version ".tar.xz"))
4235 (sha256
4236 (base32
5d1a3219 4237 "01ibniy4ich0fgpam53q252idm7f4fn5xg5qvizcfww90gn9652j"))))
bf7f17ba
MW
4238 (build-system gnu-build-system)
4239 (native-inputs
4240 `(("pkg-config" ,pkg-config)
4241 ("gobject-introspection" ,gobject-introspection)))
9a3a8b8e
SB
4242 (propagated-inputs
4243 ;; clutter-gtk.pc refers to all these.
bf7f17ba
MW
4244 `(("clutter" ,clutter)
4245 ("gtk+" ,gtk+)))
4246 (home-page "http://www.clutter-project.org")
476af713 4247 (synopsis "OpenGL-based interactive canvas library GTK+ widget")
bf7f17ba 4248 (description
476af713 4249 "Clutter is an OpenGL-based interactive canvas library, designed for
bf7f17ba
MW
4250creating fast, mainly 2D single window applications such as media box UIs,
4251presentations, kiosk style applications and so on.")
4252 (license license:lgpl2.0+)))
86d6a893
MW
4253
4254(define-public clutter-gst
4255 (package
4256 (name "clutter-gst")
ba07ac19 4257 (version "3.0.27")
86d6a893
MW
4258 (source
4259 (origin
4260 (method url-fetch)
f010f89b 4261 (uri (string-append "mirror://gnome/sources/clutter-gst/"
86d6a893 4262 (version-major+minor version) "/"
f010f89b 4263 "clutter-gst-" version ".tar.xz"))
86d6a893 4264 (sha256
ba07ac19 4265 (base32 "17czmpl92dzi4h3rn5rishk015yi3jwiw29zv8qan94xcmnbssgy"))))
86d6a893
MW
4266 (build-system gnu-build-system)
4267 (native-inputs
ba07ac19 4268 `(("glib:bin" ,glib "bin") ; for glib-mkenums
86d6a893
MW
4269 ("pkg-config" ,pkg-config)
4270 ("gobject-introspection" ,gobject-introspection)))
4271 (inputs
4272 `(("clutter" ,clutter)
4273 ("gstreamer" ,gstreamer)
4274 ("gst-plugins-base" ,gst-plugins-base)))
4275 (home-page "http://www.clutter-project.org")
4276 (synopsis "Integration library for using GStreamer with Clutter")
4277 (description
4278 "Clutter-Gst is an integration library for using GStreamer with Clutter.
4279It provides a GStreamer sink to upload frames to GL and an actor that
476af713
TGR
4280implements the ClutterGstPlayer interface using playbin. Clutter is an
4281OpenGL-based interactive canvas library.")
86d6a893 4282 (license license:lgpl2.0+)))
607a04ae 4283
30dc88d9
LC
4284(define-public libchamplain
4285 (package
4286 (name "libchamplain")
5564b2c5 4287 (version "0.12.16")
30dc88d9
LC
4288 (source (origin
4289 (method url-fetch)
4290 (uri (string-append
4291 "mirror://gnome/sources/libchamplain/0.12/libchamplain-"
4292 version ".tar.xz"))
4293 (sha256
4294 (base32
5564b2c5 4295 "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja"))))
30dc88d9 4296 (build-system gnu-build-system)
f7c6833f
LF
4297 (arguments '(#:configure-flags '("--enable-vala")))
4298 (native-inputs
4299 `(("gobject-introspection" ,gobject-introspection)
4300 ("pkg-config" ,pkg-config)
4301 ("vala" ,vala)))
30dc88d9
LC
4302 (propagated-inputs
4303 `(("libsoup" ,libsoup)
4304 ("sqlite" ,sqlite)
4305 ("clutter" ,clutter)
4306 ("clutter-gtk" ,clutter-gtk)
4307 ("glib:bin" ,glib "bin") ;glib-mkenums, etc.
4308 ("cairo" ,cairo)
4309 ("gtk+3" ,gtk+)
4310 ("glib" ,glib)))
f032d0be 4311 (home-page "https://projects.gnome.org/libchamplain/")
30dc88d9
LC
4312 (synopsis "C library providing a ClutterActor to display maps")
4313 (description
4314 "libchamplain is a C library providing a ClutterActor to display maps.
4315It also provides a Gtk+ widget to display maps in Gtk+ applications. Python
4316and Perl bindings are also available. It supports numerous free map sources
4317such as OpenStreetMap, OpenCycleMap, OpenAerialMap, and Maps for free.")
4318 (license license:lgpl2.1+)))
4319
607a04ae
MW
4320(define-public gom
4321 (package
4322 (name "gom")
0510440b 4323 (version "0.3.2")
607a04ae
MW
4324 (source
4325 (origin
4326 (method url-fetch)
6c8a0b6f 4327 (uri (string-append "mirror://gnome/sources/gom/"
607a04ae 4328 (version-major+minor version) "/"
6c8a0b6f 4329 "gom-" version ".tar.xz"))
607a04ae
MW
4330 (sha256
4331 (base32
0510440b 4332 "1zaqqwwkyiswib3v1v8wafpbifpbpak0nn2kp13pizzn9bwz1s5w"))))
607a04ae
MW
4333 (build-system gnu-build-system)
4334 (native-inputs
4335 `(("intltool" ,intltool)
4336 ("pkg-config" ,pkg-config)
4337 ("gobject-introspection" ,gobject-introspection)))
4338 (inputs
4339 `(("glib" ,glib)
4340 ("gdk-pixbuf" ,gdk-pixbuf)
4341 ("sqlite" ,sqlite)))
4342 ;; XXX TODO: Figure out how to run the test suite.
4343 (arguments `(#:tests? #f))
4344 (home-page "https://wiki.gnome.org/Projects/Gom")
4345 (synopsis "Object mapper from GObjects to SQLite")
4346 (description
4347 "Gom provides an object mapper from GObjects to SQLite. It helps you
4348write applications that need to store structured data as well as make complex
4349queries upon that data.")
4350 (license license:lgpl2.1+)))
b7a3cf11 4351
865aacc9 4352(define-public libgnome-games-support
f09520db 4353 (package
865aacc9 4354 (name "libgnome-games-support")
4c6d15cf 4355 (version "1.4.4")
f09520db
SB
4356 (source (origin
4357 (method url-fetch)
2d8dca9d 4358 (uri (string-append "mirror://gnome/sources/libgnome-games-support/"
f09520db 4359 (version-major+minor version) "/"
2d8dca9d 4360 "libgnome-games-support-" version ".tar.xz"))
f09520db
SB
4361 (sha256
4362 (base32
4c6d15cf 4363 "1zkbmnrn161p74qg6jhsn9f66yjjzxfm13pl1klv9av8k1bax9pq"))))
f09520db
SB
4364 (build-system gnu-build-system)
4365 (arguments
4366 '(#:phases
4367 (modify-phases %standard-phases
4368 (add-before 'check 'pre-check
4369 (lambda _
865aacc9 4370 ;; Tests require a writable HOME.
f09520db
SB
4371 (setenv "HOME" (getcwd))
4372 #t)))))
4373 (native-inputs
4374 `(("intltool" ,intltool)
4375 ("pkg-config" ,pkg-config)
4376 ("vala" ,vala)))
4377 (propagated-inputs
865aacc9 4378 ;; Required by libgnome-games-support-1.0.pc
f09520db
SB
4379 `(("gtk+" ,gtk+)
4380 ("libgee" ,libgee)))
4381 (home-page "https://www.gnome.org/")
4382 (synopsis "Useful functionality shared among GNOME games")
4383 (description
865aacc9 4384 "libgnome-games-support is a small library intended for internal use by
f09520db
SB
4385GNOME Games, but it may be used by others.")
4386 (license license:lgpl3+)))
4387
b7a3cf11
SB
4388(define-public gnome-klotski
4389 (package
4390 (name "gnome-klotski")
c1e419c4 4391 (version "3.32.0")
b7a3cf11
SB
4392 (source (origin
4393 (method url-fetch)
4394 (uri (string-append "mirror://gnome/sources/" name "/"
4395 (version-major+minor version) "/"
4396 name "-" version ".tar.xz"))
4397 (sha256
4398 (base32
c1e419c4
KK
4399 "1p4s15gxj6gasix22z9vlx2yrx196fvcxr6v6qrl569idfgjbi72"))))
4400 (build-system meson-build-system)
4401 (arguments
4402 '(#:glib-or-gtk? #t
4403 #:phases
4404 (modify-phases %standard-phases
4405 (add-after 'unpack 'skip-gtk-update-icon-cache
4406 ;; Don't create 'icon-theme.cache'.
4407 (lambda _
4408 (substitute* "build-aux/meson_post_install.py"
4409 (("gtk-update-icon-cache") (which "true")))
4410 #t)))))
b7a3cf11
SB
4411 (native-inputs
4412 `(("desktop-file-utils" ,desktop-file-utils)
c1e419c4 4413 ("glib:bin" ,glib "bin") ; for glib-compile-resources
b7a3cf11
SB
4414 ("intltool" ,intltool)
4415 ("itstool" ,itstool)
bcb354ad 4416 ("pkg-config" ,pkg-config)
c1e419c4 4417 ("vala" ,vala)
bcb354ad 4418 ("xmllint" ,libxml2)))
b7a3cf11
SB
4419 (inputs
4420 `(("gtk+" ,gtk+)
f4eae76f 4421 ("libgnome-games-support" ,libgnome-games-support)
b7a3cf11
SB
4422 ("librsvg" ,librsvg)))
4423 (home-page "https://wiki.gnome.org/Apps/Klotski")
4424 (synopsis "Sliding block puzzles")
4425 (description
4426 "GNOME Klotski is a set of block sliding puzzles. The objective is to move
4427the patterned block to the area bordered by green markers. To do so, you will
4428need to slide other blocks out of the way. Complete each puzzle in as few moves
4429as possible!")
4430 (license license:gpl2+)))
8d4791bf
MW
4431
4432(define-public grilo
4433 (package
4434 (name "grilo")
a865e938 4435 (version "0.3.10")
8d4791bf
MW
4436 (source
4437 (origin
4438 (method url-fetch)
4439 (uri (string-append "mirror://gnome/sources/" name "/"
4440 (version-major+minor version) "/"
4441 name "-" version ".tar.xz"))
4442 (sha256
4443 (base32
a865e938 4444 "1s7ilyywf18q26aj5c4709kfizqywjlnacp4jzmj9v9i9kkv4i3y"))))
d48d4c98 4445 (build-system meson-build-system)
8d4791bf
MW
4446 (native-inputs
4447 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
4448 ("intltool" ,intltool)
4449 ("pkg-config" ,pkg-config)
d48d4c98
KK
4450 ("gobject-introspection" ,gobject-introspection)
4451 ("gtk-doc" ,gtk-doc)
4452 ("vala" ,vala)))
8d4791bf 4453 (inputs
6d7273a0
KK
4454 `(("cyrus-sasl" ,cyrus-sasl)
4455 ("glib" ,glib)
8d4791bf
MW
4456 ("gtk+" ,gtk+)
4457 ("libxml2" ,libxml2)
6d7273a0 4458 ("liboauth" ,liboauth)
8d4791bf
MW
4459 ("libsoup" ,libsoup)
4460 ("totem-pl-parser" ,totem-pl-parser)))
8d4791bf
MW
4461 (native-search-paths
4462 (list (search-path-specification
4463 (variable "GRL_PLUGIN_PATH")
4464 (files (list (string-append "lib/grilo-"
4465 (version-major+minor version)))))))
d48d4c98 4466 (home-page "https://wiki.gnome.org/action/show/Projects/Grilo")
8d4791bf
MW
4467 (synopsis "Framework for discovering and browsing media")
4468 (description
4469 "Grilo is a framework focused on making media discovery and browsing easy
4470for application developers.")
4471 (license license:lgpl2.1+)))
7b212526
MW
4472
4473(define-public grilo-plugins
4474 (package
4475 (name "grilo-plugins")
22753632 4476 (version "0.3.3")
7b212526
MW
4477 (source
4478 (origin
4479 (method url-fetch)
4480 (uri (string-append "mirror://gnome/sources/" name "/"
4481 (version-major+minor version) "/"
4482 name "-" version ".tar.xz"))
4483 (sha256
4484 (base32
22753632 4485 "172vr1y98d2mzlmg5akjn4ibrcj3gh22cwnb3cv9rvvzhj3yhrpy"))))
7b212526
MW
4486 (build-system gnu-build-system)
4487 (native-inputs
4488 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
4489 ("intltool" ,intltool)
4490 ("itstool" ,itstool)
4491 ("pkg-config" ,pkg-config)))
4492 (inputs
4493 `(("grilo" ,grilo)
4494 ("glib" ,glib)
4495 ("libxml2" ,libxml2)
4496 ("sqlite" ,sqlite)
4497 ("gom" ,gom)
4498 ;; XXX TODO: Add oauth
4499 ;; XXX TODO: Add goa
4500 ;; XXX TODO: Add gdata (e.g. needed for youtube plugin)
4501 ;; XXX TODO: Add lua (needs help finding it)
4502 ("json-glib" ,json-glib)
4503 ("avahi" ,avahi)
4504 ("gmime" ,gmime)
4505 ("libsoup" ,libsoup)
4506 ("libarchive" ,libarchive)
4507 ("totem-pl-parser" ,totem-pl-parser)))
4508 (arguments
4509 `(#:make-flags (list (string-append "GRL_PLUGINS_DIR="
4510 %output
4511 "/lib/grilo-"
4512 ,(version-major+minor version)))
4513 ;; XXX FIXME: Try to get the test suite working. It appears to require
4514 ;; a working system dbus. Inside the build container, all tests fail
4515 ;; with: "assertion failed: (source)". Outside of the build container,
4516 ;; most tests succeed.
4517 #:tests? #f))
f032d0be 4518 (home-page "https://live.gnome.org/Grilo")
7b212526
MW
4519 (synopsis "Plugins for the Grilo media discovery library")
4520 (description
4521 "Grilo is a framework focused on making media discovery and browsing easy
4522for application developers.")
4523 (license license:lgpl2.1+)))
4e3fc547
MW
4524
4525(define-public totem
4526 (package
4527 (name "totem")
995ef5ea 4528 (version "3.32.1")
4e3fc547
MW
4529 (source
4530 (origin
4531 (method url-fetch)
4532 (uri (string-append "mirror://gnome/sources/" name "/"
4533 (version-major+minor version) "/"
4534 name "-" version ".tar.xz"))
4535 (sha256
4536 (base32
995ef5ea 4537 "0yra8apc7smpwf7d1k8crhrm8d4wix24ds6i9yxbch1v11jnhr3v"))))
7ad81b8b 4538 (build-system meson-build-system)
4e3fc547
MW
4539 (native-inputs
4540 `(("pkg-config" ,pkg-config)
4541 ("desktop-file-utils" ,desktop-file-utils)
4542 ("gobject-introspection" ,gobject-introspection)
7ad81b8b 4543 ("glib:bin" ,glib "bin") ;for 'glib-mkenums'
4e3fc547 4544 ("intltool" ,intltool)
bcb354ad 4545 ("itstool" ,itstool)
995ef5ea
KK
4546 ("xmllint" ,libxml2)
4547 ("python-pylint" ,python-pylint)
4548 ("xorg-server" ,xorg-server-for-tests)))
4e3fc547
MW
4549 (propagated-inputs
4550 `(("dconf" ,dconf)))
4551 (inputs
4552 `(("gtk+" ,gtk+)
4553 ("gdk-pixbuf" ,gdk-pixbuf)
4554 ("atk" ,atk)
4555 ("cairo" ,cairo)
4556 ("dbus-glib" ,dbus-glib)
4557 ("clutter" ,clutter)
4558 ("clutter-gtk" ,clutter-gtk)
4559 ("clutter-gst" ,clutter-gst)
6a6db57f 4560 ("xorgproto" ,xorgproto)
4e3fc547
MW
4561 ("libxxf86vm" ,libxxf86vm)
4562 ("libxtst" ,libxtst)
4563 ("libxrandr" ,libxrandr)
4564 ("libxml2" ,libxml2)
4565 ("libsoup" ,libsoup)
4566 ("libpeas" ,libpeas)
4567 ("librsvg" ,librsvg)
4568 ("lirc" ,lirc)
4569 ("gnome-desktop" ,gnome-desktop)
4570 ("gstreamer" ,gstreamer)
4571 ("gst-plugins-base" ,gst-plugins-base)
4572 ("gst-plugins-good" ,gst-plugins-good)
4573 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4574 ("adwaita-icon-theme" ,adwaita-icon-theme)
d7b63ba9 4575 ("python" ,python)
995ef5ea 4576 ("python-pygobject" ,python-pygobject)
4e3fc547
MW
4577 ("totem-pl-parser" ,totem-pl-parser)
4578 ("grilo" ,grilo)
4579 ("grilo-plugins" ,grilo-plugins)
4e3fc547
MW
4580 ("vala" ,vala)))
4581 (arguments
7ad81b8b
LC
4582 `(#:glib-or-gtk? #t
4583
4584 ;; Disable automatic GStreamer plugin installation via PackageKit and
ec5c24f9 4585 ;; all that.
7ad81b8b 4586 #:configure-flags '("-D" "enable-easy-codec-installation=no"
a388c951
LC
4587
4588 ;; Do not build .a files for the plugins, it's
4589 ;; completely useless. This saves 2 MiB.
7ad81b8b 4590 "--default-library" "shared")
ec5c24f9 4591 #:phases
4e3fc547 4592 (modify-phases %standard-phases
d51b19ad
EF
4593 (add-after 'unpack 'skip-gtk-update-icon-cache
4594 ;; Don't create 'icon-theme.cache'.
4595 (lambda _
4596 (substitute* "meson_post_install.py"
4597 (("gtk-update-icon-cache") "true"))
4598 #t))
6368eb39
DM
4599 (add-before
4600 'install 'disable-cache-generation
4601 (lambda _
4602 (setenv "DESTDIR" "/")
4603 #t))
995ef5ea
KK
4604 (add-before
4605 'check 'pre-check
4606 (lambda _
4607 ;; Tests require a running X server.
4608 (system "Xvfb :1 &")
4609 (setenv "DISPLAY" ":1")
4610 #t))
4e3fc547
MW
4611 (add-after
4612 'install 'wrap-totem
4613 (lambda* (#:key inputs outputs #:allow-other-keys)
4614 (let ((out (assoc-ref outputs "out"))
4615 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
4616 (grl-plugin-path (getenv "GRL_PLUGIN_PATH")))
4617 (wrap-program (string-append out "/bin/totem")
4618 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
39c853bd
AW
4619 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path)))
4620 (wrap-program (string-append out "/bin/totem-video-thumbnailer")
4621 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4e3fc547
MW
4622 #t)))))
4623 (home-page "https://wiki.gnome.org/Apps/Videos")
4624 (synopsis "Simple media player for GNOME based on GStreamer")
4625 (description "Totem is a simple yet featureful media player for GNOME
4626which can read a large number of file formats.")
4627 ;; GPL2+ with an exception clause for non-GPL compatible GStreamer plugins
4628 ;; to be used and distributed together with GStreamer and Totem. See
4629 ;; file://COPYING in the source distribution for details.
4630 (license license:gpl2+)))
f0afb0c8
DH
4631
4632(define-public rhythmbox
4633 (package
4634 (name "rhythmbox")
8190e1ed 4635 (version "3.4.3")
f0afb0c8
DH
4636 (source (origin
4637 (method url-fetch)
4638 (uri (string-append "mirror://gnome/sources/" name "/"
4639 (version-major+minor version) "/"
4640 name "-" version ".tar.xz"))
4641 (sha256
4642 (base32
8190e1ed 4643 "1yx3n7p9vmv23jsv98fxwq95n78awdxqm8idhyhxx2d6vk4w1hgx"))))
f0afb0c8
DH
4644 (build-system glib-or-gtk-build-system)
4645 (arguments
4646 `(#:configure-flags
4647 (list "--enable-lirc"
4648 "--enable-python"
4649 "--enable-vala"
4650 "--with-brasero"
4651 "--with-gudev"
4652 "--with-libsecret")
4653 #:phases
4654 (modify-phases %standard-phases
4655 (add-after
4656 'install 'wrap-rhythmbox
4657 (lambda* (#:key inputs outputs #:allow-other-keys)
4658 (let ((out (assoc-ref outputs "out"))
4659 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
4660 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
349cef58
TGR
4661 (grl-plugin-path (getenv "GRL_PLUGIN_PATH"))
4662 (python-path (getenv "PYTHONPATH")))
f0afb0c8
DH
4663 (wrap-program (string-append out "/bin/rhythmbox")
4664 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
4665 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
349cef58
TGR
4666 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path))
4667 `("PYTHONPATH" ":" prefix (,python-path))))
f0afb0c8
DH
4668 #t)))))
4669 (propagated-inputs
4670 `(("dconf" ,dconf)))
4671 (native-inputs
bcb354ad
SB
4672 `(("itstool" ,itstool)
4673 ("intltool" ,intltool)
f0afb0c8
DH
4674 ("glib" ,glib "bin")
4675 ("gobject-introspection" ,gobject-introspection)
4676 ("desktop-file-utils" ,desktop-file-utils)
bcb354ad
SB
4677 ("pkg-config" ,pkg-config)
4678 ("xmllint" ,libxml2)))
f0afb0c8
DH
4679 (inputs
4680 `(("json-glib" ,json-glib)
4681 ("tdb" ,tdb)
4682 ("gnome-desktop" ,gnome-desktop)
4683 ("python" ,python)
4684 ("python-pygobject" ,python2-pygobject)
4685 ("vala" ,vala)
4686 ("gmime" ,gmime)
f0afb0c8
DH
4687 ("adwaita-icon-theme" ,adwaita-icon-theme)
4688 ("grilo" ,grilo)
4689 ("grilo-plugins" ,grilo-plugins)
4690 ("gstreamer" ,gstreamer)
4691 ("gst-plugins-base" ,gst-plugins-base)
4692 ("gst-plugins-good" ,gst-plugins-good)
f0afb0c8 4693 ("totem-pl-parser" ,totem-pl-parser)
ea226291 4694 ("libgudev" ,libgudev)
f0afb0c8
DH
4695 ;;("libmtp" ,libmtp) FIXME: Not detected
4696 ("libsecret" ,libsecret)
4697 ("libsoup" ,libsoup)
4698 ("libnotify" ,libnotify)
4699 ("libpeas" ,libpeas)
4700 ("lirc" ,lirc)
4701 ;; TODO: clutter* only used by visualizer plugin, which also requires mx
4702 ;;("clutter" ,clutter)
4703 ;;("clutter-gtk" ,clutter-gtk)
4704 ;;("clutter-gst" ,clutter-gst)
4705 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4706 ("atk" ,atk)
4707 ("pango" ,pango)
4708 ("gtk+" ,gtk+)
4709 ;; TODO:
4710 ;; * libgpod
4711 ;; * mx
f0afb0c8
DH
4712 ("brasero" ,brasero)))
4713 (home-page "https://wiki.gnome.org/Apps/Rhythmbox")
4714 (synopsis "Music player for GNOME")
4715 (description "Rhythmbox is a music playing application for GNOME. It
4716supports playlists, song ratings, and any codecs installed through gstreamer.")
4717 (license license:gpl2+)))
f70d8383
DH
4718
4719(define-public eog
4720 (package
4721 (name "eog")
b0f24a82 4722 (version "3.32.2")
f70d8383
DH
4723 (source (origin
4724 (method url-fetch)
4725 (uri (string-append "mirror://gnome/sources/" name "/"
4726 (version-major+minor version) "/"
4727 name "-" version ".tar.xz"))
4728 (sha256
4729 (base32
b0f24a82 4730 "1bcxpqgzlk2cy4wfb3b5h66mhpj2fhrk1rrb5qqcv5xrr62ik5xy"))))
61fb581f 4731 (build-system meson-build-system)
f70d8383 4732 (arguments
34c44a34
RW
4733 `(#:configure-flags
4734 ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
4735 (list (string-append "-Dc_link_args=-Wl,-rpath="
4736 (assoc-ref %outputs "out") "/lib/eog"))
4737 #:phases
f70d8383 4738 (modify-phases %standard-phases
7a034665
EF
4739 (add-after 'unpack 'skip-gtk-update-icon-cache
4740 ;; Don't create 'icon-theme.cache'.
4741 (lambda _
4742 (substitute* "meson_post_install.py"
4743 (("gtk-update-icon-cache") "true"))
4744 #t))
61fb581f
RW
4745 (add-after 'install 'wrap-eog
4746 (lambda* (#:key outputs #:allow-other-keys)
4747 (let ((out (assoc-ref outputs "out"))
4748 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
4749 (wrap-program (string-append out "/bin/eog")
4750 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
4751 #t)))))
f70d8383
DH
4752 (propagated-inputs
4753 `(("dconf" ,dconf)))
4754 (native-inputs
4755 `(("intltool" ,intltool)
b3546174 4756 ("itstool" ,itstool)
f70d8383
DH
4757 ("glib" ,glib "bin")
4758 ("gobject-introspection" ,gobject-introspection)
bcb354ad
SB
4759 ("pkg-config" ,pkg-config)
4760 ("xmllint" ,libxml2)))
f70d8383
DH
4761 (inputs
4762 `(("gnome-desktop" ,gnome-desktop)
4763 ("shared-mime-info" ,shared-mime-info)
4764 ("adwaita-icon-theme" ,adwaita-icon-theme)
4765 ("exempi" ,exempi)
4766 ("lcms" ,lcms)
4767 ("libexif" ,libexif)
4768 ("libpeas" ,libpeas)
4769 ("libjpeg" ,libjpeg)
4770 ("librsvg" ,librsvg)
4771 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4772 ("gtk+" ,gtk+)))
4773 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
4774 (synopsis "GNOME image viewer")
4775 (description "Eye of GNOME is the GNOME image viewer. It
4776supports image conversion, rotation, and slideshows.")
4777 (license license:gpl2+)))
41af5e7b 4778
0c3f8cb8
LC
4779(define-public eog-plugins
4780 ;; Note: EOG looks for its plugins (via libpeas) in ~/.local as well as
4781 ;; $DATA/lib/eog/plugins, where DATA is one of the entries in
4782 ;; $XDG_DATA_DIRS. Thus, for EOG to find these, you have to have
4783 ;; 'XDG_DATA_DIRS' appropriately set.
4784 (package
4785 (name "eog-plugins")
54b74cc6 4786 (version "3.26.4")
0c3f8cb8
LC
4787 (source (origin
4788 (method url-fetch)
f3b88ed2 4789 (uri (string-append "mirror://gnome/sources/eog-plugins/"
0c3f8cb8 4790 (version-major+minor version) "/"
f3b88ed2 4791 "eog-plugins-" version ".tar.xz"))
0c3f8cb8
LC
4792 (sha256
4793 (base32
54b74cc6 4794 "0pd7fqa4ciy5844k5s1c6rlsqkk8pxd8cchxjcjhxlsngm9lynnx"))))
0c3f8cb8
LC
4795 (build-system gnu-build-system)
4796 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome/Plugins")
4797 (synopsis "Extensions for the Eye of GNOME image viewer")
4798 (native-inputs
4799 `(("pkg-config" ,pkg-config)
4800 ("gettext" ,gnu-gettext)))
4801 (inputs
4802 `(("eog" ,eog)
4803 ("glib" ,glib)
4804 ("gtk+" ,gtk+)
4805 ("libpeas" ,libpeas)
4806 ("libexif" ,libexif)
4807 ("libchamplain" ,libchamplain)))
4808 (description
4809 "This package provides plugins for the Eye of GNOME (EOG) image viewer,
4810notably:
4811
4812@itemize
4813@item @dfn{EXIF Display}, which displays camera (EXIF) information;
4814@item @dfn{Map}, which displays a map of where the picture was taken on the
4815side panel;
4816@item @dfn{Slideshow Shuffle}, to shuffle images in slideshow mode.
4817@end itemize\n")
4818
4819 ;; XXX: eog-postasa-plugin-resources.c (which we don't build) contains a
4820 ;; long suspicious byte stream that goes to a
4821 ;; ".gresource.eog_postasa_plugin" ELF section.
4822 (license license:gpl2+)))
4823
41af5e7b
SB
4824(define-public libgudev
4825 (package
4826 (name "libgudev")
b78f5118 4827 (version "232")
41af5e7b
SB
4828 (source (origin
4829 (method url-fetch)
4830 (uri (string-append "mirror://gnome/sources/" name "/"
4831 version "/" name "-" version ".tar.xz"))
4832 (sha256
4833 (base32
b78f5118 4834 "0q3qki451zzgdjazlgshsfzbbm0in40lyx7dyrag7kbkqnwv4k7f"))))
41af5e7b 4835 (build-system gnu-build-system)
b78f5118
RW
4836 (arguments
4837 '(#:configure-flags
4838 ;; umockdev depends on libgudev.
4839 (list "--disable-umockdev")))
41af5e7b
SB
4840 (native-inputs
4841 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
4842 ("gobject-introspection" ,gobject-introspection)
4843 ("pkg-config" ,pkg-config)))
4844 (propagated-inputs
4845 `(("glib" ,glib))) ; required by gudev-1.0.pc
4846 (inputs
4847 `(("udev" ,eudev)))
4848 (home-page "https://wiki.gnome.org/Projects/libgudev")
4849 (synopsis "GObject bindings for libudev")
4850 (description
4851 "This library provides GObject bindings for libudev. It was originally
4852part of udev-extras, then udev, then systemd. It's now a project on its own.")
4853 (license license:lgpl2.1+)))
3dc8828f
SB
4854
4855(define-public gvfs
4856 (package
4857 (name "gvfs")
12fe4846 4858 (version "1.40.1")
3dc8828f
SB
4859 (source (origin
4860 (method url-fetch)
1d68eb32 4861 (uri (string-append "mirror://gnome/sources/gvfs/"
3dc8828f 4862 (version-major+minor version) "/"
1d68eb32 4863 "gvfs-" version ".tar.xz"))
3dc8828f
SB
4864 (sha256
4865 (base32
12fe4846 4866 "1cfnzamr4mvgpf6yhm28lh9cafy9z6842s8jpbqnfizfxybg8ylj"))))
e762d943 4867 (build-system meson-build-system)
3dc8828f 4868 (arguments
e762d943
RW
4869 '(#:glib-or-gtk? #t
4870 #:configure-flags
4871 (list "-Dsystemduserunitdir=no"
4872 "-Dtmpfilesdir=no"
4873 ;; Otherwise, the RUNPATH will lack the final path component.
4874 (string-append "-Dc_link_args=-Wl,-rpath="
4875 (assoc-ref %outputs "out") "/lib/gvfs"))))
3dc8828f
SB
4876 (native-inputs
4877 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
0ab9f949
RW
4878 ("gettext" ,gettext-minimal)
4879 ("gtk-doc" ,gtk-doc)
3dc8828f
SB
4880 ("pkg-config" ,pkg-config)
4881 ("xsltproc" ,libxslt)))
4882 (inputs
4883 `(("avahi" ,avahi)
4884 ("docbook-xml" ,docbook-xml-4.2)
4885 ("docbook-xsl" ,docbook-xsl)
4886 ("dbus" ,dbus)
e762d943 4887 ("elogind" ,elogind)
3dc8828f 4888 ("fuse" ,fuse)
24a78aa6 4889 ("gcr" ,gcr)
3dc8828f 4890 ("glib" ,glib)
e762d943 4891 ("gnome-online-accounts" ,gnome-online-accounts)
3dc8828f
SB
4892 ("libarchive" ,libarchive)
4893 ("libbluray" ,libbluray)
8852ca24 4894 ("libcap" ,libcap)
3dc8828f
SB
4895 ("libcdio-paranoia" ,libcdio-paranoia)
4896 ("libgcrypt" ,libgcrypt)
e762d943 4897 ("libgdata" ,libgdata)
3dc8828f
SB
4898 ("libgphoto2" ,libgphoto2)
4899 ("libgudev" ,libgudev)
0ab9f949 4900 ("libimobiledevice" ,libimobiledevice)
3dc8828f 4901 ("libmtp" ,libmtp)
e762d943 4902 ("libnfs" ,libnfs)
3dc8828f
SB
4903 ("libsecret" ,libsecret)
4904 ("libsmbclient" ,samba)
4905 ("libsoup" ,libsoup)
4906 ("libxml2" ,libxml2)
e762d943 4907 ("openssh" ,openssh)
8852ca24 4908 ("polkit" ,polkit)
3dc8828f
SB
4909 ("udisks" ,udisks)))
4910 (home-page "https://wiki.gnome.org/gvfs/")
8f65585b 4911 (synopsis "Userspace virtual file system for GIO")
3dc8828f 4912 (description
8f65585b 4913 "GVFS is a userspace virtual file system designed to work with the I/O
3dc8828f
SB
4914abstraction of GIO. It contains a GIO module that seamlessly adds GVFS support
4915to all applications using the GIO API. It also supports exposing the GVFS
4916mounts to non-GIO applications using FUSE.
4917
4918GVFS comes with a set of backends, including trash support, SFTP, SMB, HTTP,
4919DAV, and others.")
4920 (license license:lgpl2.0+)))
7c88b6bd
AW
4921
4922(define-public gusb
4923 (package
4924 (name "gusb")
536b3274 4925 (version "0.3.0")
7c88b6bd 4926 (source (origin
bbfb36f9
EF
4927 (method git-fetch)
4928 (uri (git-reference
4929 (url "https://github.com/hughsie/libgusb.git")
4930 (commit version)))
4931 (file-name (git-file-name name version))
7c88b6bd
AW
4932 (sha256
4933 (base32
bbfb36f9 4934 "002pg0p4qzzk5dkyiynm483ir26zxrn4k71c7f6j85mfsdzbgli7"))))
536b3274 4935 (build-system meson-build-system)
7c88b6bd 4936 (native-inputs
536b3274 4937 `(("gobject-introspection" ,gobject-introspection)
7c88b6bd
AW
4938 ("pkg-config" ,pkg-config)
4939 ("vala" ,vala)
7c88b6bd
AW
4940 ("gtk-doc" ,gtk-doc)))
4941 (propagated-inputs
4942 ;; Both of these are required by gusb.pc.
4943 `(("glib" ,glib)
4944 ("libusb" ,libusb)))
4945 (arguments
536b3274 4946 `(#:tests? #f)) ;libusb fails to initialize. Wonder what that is.
8f1640ed 4947 (home-page "https://github.com/hughsie/libgusb")
a124bbd2 4948 (synopsis "GLib binding for libusb1")
7c88b6bd
AW
4949 (description
4950 "GUsb is a GObject wrapper for libusb1 that makes it easy to do
4951asynchronous control, bulk and interrupt transfers with proper cancellation
4952and integration into a mainloop. This makes it easy to integrate low level
4953USB transfers with your high-level application or system daemon.")
4954 (license license:lgpl2.1+)))
0abe1d86
AW
4955
4956(define-public simple-scan
4957 (package
4958 (name "simple-scan")
4afb7dd9 4959 (version "3.34.2")
d9f6d587
TGR
4960 (source
4961 (origin
4962 (method url-fetch)
4963 (uri (string-append "mirror://gnome/sources/simple-scan/"
4964 (version-major+minor version) "/"
4965 "simple-scan-" version ".tar.xz"))
4966 (sha256
4afb7dd9 4967 (base32 "1fk3g4f9slckqfwm576jrjq1d1qihw0dlgzdf00ns7qbhzb0kxsp"))))
d9f6d587
TGR
4968 (build-system meson-build-system)
4969 ;; TODO: Fix icons in home screen, About dialogue, and scan menu.
4970 (arguments
4971 '(#:glib-or-gtk? #t))
0abe1d86
AW
4972 (inputs
4973 `(("gtk" ,gtk+)
4974 ("zlib" ,zlib)
4975 ("cairo" ,cairo)
c501f592 4976 ("colord" ,colord)
0abe1d86
AW
4977 ("gdk-pixbuf" ,gdk-pixbuf)
4978 ("gusb" ,gusb)
4c928743 4979 ("libsane" ,sane-backends)))
0abe1d86 4980 (native-inputs
b94a6ca0 4981 `(("gettext" ,gettext-minimal)
0abe1d86 4982 ("itstool" ,itstool)
c501f592 4983 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
0abe1d86 4984 ("pkg-config" ,pkg-config)
bcb354ad
SB
4985 ("vala" ,vala)
4986 ("xmllint" ,libxml2)))
dff0eedb 4987 (home-page "https://gitlab.gnome.org/GNOME/simple-scan")
0abe1d86 4988 (synopsis "Document and image scanner")
d9f6d587
TGR
4989 (description
4990 "Document Scanner is an easy-to-use application that lets you connect your
4991scanner and quickly capture images and documents in an appropriate format. It
4992supports any scanner for which a suitable SANE driver is available, which is
4993almost all of them.")
0abe1d86 4994 (license license:gpl3+)))
7549f984 4995
ab466d79
RW
4996(define-public eolie
4997 (package
4998 (name "eolie")
fa8ef3ed 4999 (version "0.9.63")
ab466d79
RW
5000 (source (origin
5001 (method url-fetch)
00014781 5002 (uri (string-append "https://gitlab.gnome.org/World/eolie/"
fa8ef3ed 5003 "uploads/d42b466752729a0d3fa828a721e25043/"
00014781 5004 "eolie-" version ".tar.xz"))
ab466d79
RW
5005 (sha256
5006 (base32
fa8ef3ed 5007 "11pp8g0w22h1q0bbj9517l5838gcymvvp8fp9kh6h2dmgir2ssih"))))
00014781 5008 (build-system meson-build-system)
ab466d79 5009 (arguments
00014781
RW
5010 `(#:glib-or-gtk? #t
5011 #:phases
ab466d79 5012 (modify-phases %standard-phases
f0c68100
EF
5013 (add-after 'unpack 'skip-gtk-update-icon-cache
5014 ;; Don't create 'icon-theme.cache'.
5015 (lambda _
5016 (substitute* "meson_post_install.py"
5017 (("gtk-update-icon-cache") "true"))
5018 #t))
ab466d79
RW
5019 (add-after 'wrap 'wrap-more
5020 (lambda* (#:key inputs outputs #:allow-other-keys)
5021 (let* ((out (assoc-ref outputs "out"))
5022 ;; These libraries must be on LD_LIBRARY_PATH.
5023 (libs '("gtkspell3" "webkitgtk" "libsoup" "libsecret"
5024 "atk" "gtk+" "gsettings-desktop-schemas"
5025 "gobject-introspection"))
5026 (path (string-join
5027 (map (lambda (lib)
5028 (string-append (assoc-ref inputs lib) "/lib"))
5029 libs)
5030 ":")))
5031 (wrap-program (string-append out "/bin/eolie")
5032 `("LD_LIBRARY_PATH" ":" prefix (,path))
5033 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
5034 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
5035 #t)))))
5036 (native-inputs
f85ca6ed 5037 `(("intltool" ,intltool)
ab466d79 5038 ("itstool" ,itstool)
d95f1041 5039 ("pkg-config" ,pkg-config)
d95f1041 5040 ("python" ,python)
f0c68100 5041 ("glib:bin" ,glib "bin")))
ab466d79
RW
5042 (inputs
5043 `(("gobject-introspection" ,gobject-introspection)
5044 ("glib-networking" ,glib-networking)
5045 ("cairo" ,cairo)
5046 ("gtk+" ,gtk+)
5047 ("atk" ,atk) ; propagated by gtk+, but we need it in LD_LIBRARY_PATH
5048 ("python" ,python-wrapper)
d72f76df 5049 ("python-dateutil" ,python-dateutil)
00014781 5050 ("python-pyfxa" ,python-pyfxa)
ab466d79
RW
5051 ("python-pygobject" ,python-pygobject)
5052 ("python-pycairo" ,python-pycairo)
00014781 5053 ("python-pycrypto" ,python-pycrypto)
ab466d79
RW
5054 ("libsecret" ,libsecret)
5055 ("gtkspell3" ,gtkspell3)
5056 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
f85ca6ed 5057 ("webkitgtk" ,webkitgtk)))
166b2c97 5058 (home-page "https://wiki.gnome.org/Apps/Eolie")
ab466d79
RW
5059 (synopsis "Web browser for GNOME")
5060 (description
5061 "Eolie is a new web browser for GNOME. It features Firefox sync support,
5062a secret password store, an adblocker, and a modern UI.")
5063 (license license:gpl3+)))
5064
7549f984
SB
5065(define-public epiphany
5066 (package
5067 (name "epiphany")
60680365 5068 (version "3.32.5")
7549f984
SB
5069 (source (origin
5070 (method url-fetch)
dd3266ec 5071 (uri (string-append "mirror://gnome/sources/epiphany/"
7549f984 5072 (version-major+minor version) "/"
dd3266ec 5073 "epiphany-" version ".tar.xz"))
7549f984
SB
5074 (sha256
5075 (base32
60680365 5076 "1hj4yy53fwh96h17cqiw3gxc070vmc7yqwc7phvhnpyinkp9g5my"))))
fc5c5b92
R
5077
5078 (build-system meson-build-system)
7549f984
SB
5079 (arguments
5080 ;; FIXME: tests run under Xvfb, but fail with:
5081 ;; /src/bookmarks/ephy-bookmarks/create:
5082 ;; ** (test-ephy-bookmarks:19591): WARNING **: Unable to start Zeroconf
5083 ;; subsystem
5084 ;; FAIL
6f48d9db 5085 '(#:tests? #f
e19f9c24 5086 #:glib-or-gtk? #t
bb7ff88f
EF
5087 #:phases
5088 (modify-phases %standard-phases
5089 (add-after 'unpack 'skip-gtk-update-icon-cache
5090 ;; Don't create 'icon-theme.cache'.
5091 (lambda _
5092 (substitute* "post_install.py"
5093 (("gtk-update-icon-cache") "true"))
5094 #t)))
e19f9c24
LF
5095 #:configure-flags
5096 ;; Otherwise, the RUNPATH will lack the final 'epiphany' path component.
5097 (list (string-append "-Dc_link_args=-Wl,-rpath="
5098 (assoc-ref %outputs "out") "/lib/epiphany"))))
80a747c4
SB
5099 (propagated-inputs
5100 `(("dconf" ,dconf)))
7549f984 5101 (native-inputs
fc5c5b92
R
5102 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
5103 ("glib:bin" ,glib "bin") ; for glib-mkenums
fc5c5b92 5104 ("intltool" ,intltool)
7549f984 5105 ("itstool" ,itstool)
bcb354ad
SB
5106 ("pkg-config" ,pkg-config)
5107 ("xmllint" ,libxml2)))
7549f984
SB
5108 (inputs
5109 `(("avahi" ,avahi)
5110 ("gcr" ,gcr)
fc5c5b92 5111 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg) ; for loading SVG files
7549f984
SB
5112 ("glib-networking" ,glib-networking)
5113 ("gnome-desktop" ,gnome-desktop)
5114 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
eb6f315b 5115 ("json-glib" ,json-glib)
7549f984 5116 ("iso-codes" ,iso-codes)
8748e29c 5117 ("libdazzle" ,libdazzle)
7549f984
SB
5118 ("libnotify" ,libnotify)
5119 ("libsecret" ,libsecret)
7549f984 5120 ("libxslt" ,libxslt)
fc5c5b92 5121 ("nettle" ,nettle) ; for hogweed
7549f984 5122 ("sqlite" ,sqlite)
f85ca6ed 5123 ("webkitgtk" ,webkitgtk)))
7549f984
SB
5124 (home-page "https://wiki.gnome.org/Apps/Web")
5125 (synopsis "GNOME web browser")
5126 (description
5127 "Epiphany is a GNOME web browser targeted at non-technical users. Its
5128principles are simplicity and standards compliance.")
5129 (license license:gpl2+)))
a3856b2c
SB
5130
5131(define-public d-feet
5132 (package
5133 (name "d-feet")
458e9221 5134 (version "0.3.14")
a3856b2c
SB
5135 (source (origin
5136 (method url-fetch)
5137 (uri (string-append "mirror://gnome/sources/" name "/"
5138 (version-major+minor version) "/"
5139 name "-" version ".tar.xz"))
5140 (sha256
5141 (base32
458e9221 5142 "1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f"))))
a3856b2c
SB
5143 (build-system glib-or-gtk-build-system)
5144 (arguments
5145 '(#:out-of-source? #f ; tests need to run in the source directory.
5146 #:phases
5147 (modify-phases %standard-phases
5148 (add-before
5149 'check 'pre-check
86aff791 5150 (lambda _
a3856b2c
SB
5151 ;; The test suite requires a running X server.
5152 (system "Xvfb :1 &")
5153 (setenv "DISPLAY" ":1")
5154 ;; Don't fail on missing '/etc/machine-id'.
5155 (setenv "DBUS_FATAL_WARNINGS" "0")
5156 ;; tests.py and window.py don't meet E402:
5157 ;; E402 module level import not at top of file
5158 (substitute* "src/tests/Makefile"
86aff791
MW
5159 (("--ignore=E123") "--ignore=E123,E402"))
5160 #t))
a3856b2c
SB
5161 (add-after
5162 'install 'wrap-program
5163 (lambda* (#:key outputs #:allow-other-keys)
5164 (let ((prog (string-append (assoc-ref outputs "out")
5165 "/bin/d-feet")))
5166 (wrap-program prog
5167 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
86aff791
MW
5168 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
5169 #t))))))
a3856b2c
SB
5170 (native-inputs
5171 `(("intltool" ,intltool)
5172 ("itstool" ,itstool)
5173 ("pkg-config" ,pkg-config)
5174 ("python-pep8" ,python-pep8)
5175 ("xmllint" ,libxml2)
ff337525 5176 ("xorg-server" ,xorg-server-for-tests)))
a3856b2c
SB
5177 (inputs
5178 `(("gobject-introspection" ,gobject-introspection)
5179 ("gtk+" ,gtk+)
5180 ("python" ,python-wrapper)
458e9221 5181 ("hicolor-icon-theme" ,hicolor-icon-theme)
a3856b2c
SB
5182 ("python-pygobject" ,python-pygobject)))
5183 (home-page "https://wiki.gnome.org/Apps/DFeet")
5184 (synopsis "D-Bus debugger")
5185 (description
5186 "D-Feet is a D-Bus debugger, which can be used to inspect D-Bus interfaces
5187of running programs and invoke methods on those interfaces.")
5188 (license license:gpl2+)))
c3b97bd9
SB
5189
5190(define-public yelp-xsl
5191 (package
5192 (name "yelp-xsl")
b3640e79 5193 (version "3.32.1")
c3b97bd9
SB
5194 (source (origin
5195 (method url-fetch)
5196 (uri (string-append "mirror://gnome/sources/" name "/"
5197 (version-major+minor version) "/"
5198 name "-" version ".tar.xz"))
5199 (sha256
5200 (base32
b3640e79 5201 "013z2ixx9kfrs6hq79qpil093xfbc12y1p0mvsh6lpala30iphya"))))
c3b97bd9
SB
5202 (build-system gnu-build-system)
5203 (native-inputs
5204 `(("intltool" ,intltool)
5205 ("itstool" ,itstool)
5206 ("xmllint" ,libxml2)))
5207 (home-page "https://wiki.gnome.org/Apps/Yelp")
5208 (synopsis "XSL stylesheets for Yelp")
5209 (description
5210 "Yelp-xsl contains XSL stylesheets that are used by the yelp help browser
5211to format Docbook and Mallard documents.")
5212 (license license:gpl2+)))
de3d612a
SB
5213
5214(define-public yelp
5215 (package
5216 (name "yelp")
1f1b6d60 5217 (version "3.32.2")
de3d612a
SB
5218 (source (origin
5219 (method url-fetch)
5220 (uri (string-append "mirror://gnome/sources/" name "/"
5221 (version-major+minor version) "/"
5222 name "-" version ".tar.xz"))
5223 (sha256
5224 (base32
1f1b6d60 5225 "0yrl96icmmrxvg7sxl519gzg9qb368cmzgrr9ddh181ignkxzx7f"))))
de3d612a
SB
5226 (build-system glib-or-gtk-build-system)
5227 (native-inputs
5228 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
5229 ("intltool" ,intltool)
5230 ("itstool" ,itstool)
5231 ("pkg-config" ,pkg-config)))
5232 (propagated-inputs
5233 `(("dconf" ,dconf)))
5234 (inputs
ad1b7d8b
SB
5235 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5236 ("libxslt" ,libxslt)
de3d612a 5237 ("sqlite" ,sqlite)
4c28ca1d
SB
5238 ("webkitgtk" ,webkitgtk)
5239 ("yelp-xsl" ,yelp-xsl)))
de3d612a
SB
5240 (home-page "https://wiki.gnome.org/Apps/Yelp")
5241 (synopsis "GNOME help browser")
5242 (description
5243 "Yelp is the help viewer in Gnome. It natively views Mallard, DocBook,
5244man, info, and HTML documents. It can locate documents according to the
5245freedesktop.org help system specification.")
5246 (license license:gpl2+)))
122d0d10
SB
5247
5248(define-public yelp-tools
5249 (package
5250 (name "yelp-tools")
2089bca5 5251 (version "3.28.0")
122d0d10
SB
5252 (source (origin
5253 (method url-fetch)
5254 (uri (string-append "mirror://gnome/sources/" name "/"
5255 (version-major+minor version) "/"
5256 name "-" version ".tar.xz"))
5257 (sha256
5258 (base32
2089bca5 5259 "1b61dmlb1sd50fgq6zgnkcpx2s1py33q0x9cx67fzpsr4gmgxnw2"))))
122d0d10
SB
5260 (build-system gnu-build-system)
5261 (native-inputs
5262 `(("pkg-config" ,pkg-config)))
5263 (propagated-inputs
5264 ;; Needed by `yelp-build', `yelp-check' or 'yelp.m4'.
5265 `(("itstool" ,itstool)
5266 ("xmllint" ,libxml2)
5267 ("xsltproc" ,libxslt)))
5268 (inputs
5269 `(("yelp-xsl" ,yelp-xsl)))
5270 (home-page "https://wiki.gnome.org/Apps/Yelp/Tools")
5271 (synopsis "Yelp documentation tools")
5272 (description
5273 "Yelp-tools is a collection of scripts and build utilities to help create,
5274manage, and publish documentation for Yelp and the web. Most of the heavy
5275lifting is done by packages like yelp-xsl and itstool. This package just
5276wraps things up in a developer-friendly way.")
5277 (license license:gpl2+)))
af8f9f23 5278
4ed041d9
MB
5279(define-public yelp-tools/fixed
5280 ;; This variant fixes a python-libxml2 crash when processing UTF-8
5281 ;; sequences: <https://bugs.gnu.org/37468>. TODO: Remove this in
5282 ;; the next rebuild cycle.
5283 (hidden-package
5284 (package/inherit
5285 yelp-tools
5286 (propagated-inputs
5287 `(("itstool" ,itstool/fixed)
5288 ,@(alist-delete "itstool" (package-propagated-inputs yelp-tools)))))))
5289
af8f9f23
RW
5290(define-public libgee
5291 (package
5292 (name "libgee")
4c2c5ae6 5293 (version "0.20.2")
af8f9f23
RW
5294 (source (origin
5295 (method url-fetch)
84a1b007 5296 (uri (string-append "mirror://gnome/sources/libgee/"
af8f9f23 5297 (version-major+minor version) "/"
84a1b007 5298 "libgee-" version ".tar.xz"))
af8f9f23
RW
5299 (sha256
5300 (base32
4c2c5ae6 5301 "0g1mhl7nidg82v4cikkk8dakzc18hg7wv0dsf2pbyijzfm5mq0wy"))))
af8f9f23
RW
5302 (build-system gnu-build-system)
5303 (arguments
5304 `(#:phases
5305 (modify-phases %standard-phases
5306 (add-after 'unpack 'fix-introspection-install-dir
5307 (lambda* (#:key outputs #:allow-other-keys)
5308 (let ((out (assoc-ref outputs "out")))
5309 (substitute* "gee/Makefile.in"
5310 (("@INTROSPECTION_GIRDIR@")
5311 (string-append out "/share/gir-1.0/"))
5312 (("@INTROSPECTION_TYPELIBDIR@")
5313 (string-append out "/lib/girepository-1.0/")))))))))
5314 (native-inputs
5315 `(("glib" ,glib "bin")
5316 ("pkg-config" ,pkg-config)))
5317 (inputs
5318 `(("glib" ,glib)
5319 ("gobject-introspection" ,gobject-introspection)))
5320 (home-page "https://wiki.gnome.org/Projects/Libgee")
5321 (synopsis "GObject collection library")
5322 (description
5323 "Libgee is a utility library providing GObject-based interfaces and
5324classes for commonly used data structures.")
5325 (license license:lgpl2.1+)))
b0f9c4b8
RW
5326
5327(define-public gexiv2
5328 (package
5329 (name "gexiv2")
b1a8b408 5330 (version "0.12.0")
b0f9c4b8
RW
5331 (source (origin
5332 (method url-fetch)
5333 (uri (string-append "mirror://gnome/sources/" name "/"
5334 (version-major+minor version) "/"
5335 name "-" version ".tar.xz"))
5336 (sha256
5337 (base32
b1a8b408 5338 "0slj5yj8c90l9pp5i3z74x5r3r4da0xfmbzkfq5k0dkg72q3kxaq"))))
51c482e4 5339 (build-system meson-build-system)
b0f9c4b8 5340 (native-inputs
b1a8b408
KK
5341 `(("gcr" ,gcr)
5342 ("glib" ,glib "bin")
5343 ("pkg-config" ,pkg-config)
5344 ("vala" ,vala)))
b0f9c4b8
RW
5345 (propagated-inputs
5346 ;; Listed in "Requires" section of gexiv2.pc
5347 `(("exiv2" ,exiv2)))
5348 (inputs
5349 `(("glib" ,glib)
5350 ("gobject-introspection" ,gobject-introspection)))
5351 (home-page "https://wiki.gnome.org/Projects/gexiv2")
5352 (synopsis "GObject wrapper around the Exiv2 photo metadata library")
5353 (description
5354 "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library. It
5355allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
5356metadata in photo and video files of various formats.")
5357 (license license:gpl2+)))
fed5a689
RW
5358
5359(define-public shotwell
5360 (package
5361 (name "shotwell")
a1c6fb52 5362 (version "0.30.7")
fed5a689
RW
5363 (source (origin
5364 (method url-fetch)
5497d682 5365 (uri (string-append "mirror://gnome/sources/shotwell/"
fed5a689 5366 (version-major+minor version) "/"
5497d682 5367 "shotwell-" version ".tar.xz"))
fed5a689
RW
5368 (sha256
5369 (base32
a1c6fb52 5370 "1m9i8r4gyd2hzlxjjwfyck4kz7gdg2vz2k6l6d0ga9hdfq2l4p9l"))))
3b79afa6
KK
5371 (build-system meson-build-system)
5372 (arguments
5a0beca3
EF
5373 '(#:glib-or-gtk? #t
5374 #:phases
5375 (modify-phases %standard-phases
5376 (add-after 'unpack 'skip-gtk-update-icon-cache
5377 (lambda _
5378 (substitute* "build-aux/meson/postinstall.py"
5379 (("gtk-update-icon-cache") (which "true"))
5380 (("update-desktop-database") (which "true")))
5381 #t)))))
735b8db6
TGR
5382 (propagated-inputs
5383 `(("dconf" ,dconf)))
fed5a689 5384 (native-inputs
5a0beca3
EF
5385 `(("gettext" ,gettext-minimal)
5386 ("glib:bin" ,glib "bin")
735b8db6 5387 ("itstool" ,itstool)
3b79afa6 5388 ("pkg-config" ,pkg-config)
735b8db6 5389 ("vala" ,vala)))
fed5a689 5390 (inputs
5a0beca3
EF
5391 `(("gcr" ,gcr)
5392 ("gexiv2" ,gexiv2)
fed5a689 5393 ("gst-plugins-base" ,gst-plugins-base)
5a0beca3
EF
5394 ("gstreamer" ,gstreamer)
5395 ("json-glib" ,json-glib)
dfb0323d 5396 ("libgdata" ,libgdata)
fed5a689 5397 ("libgee" ,libgee)
5a0beca3
EF
5398 ("libgphoto2" ,libgphoto2)
5399 ("libgudev" ,libgudev)
fed5a689 5400 ("libraw" ,libraw)
fed5a689
RW
5401 ("libsoup" ,libsoup)
5402 ("libxml2" ,libxml2)
5a0beca3
EF
5403 ("sqlite" ,sqlite)
5404 ("webkitgtk" ,webkitgtk)))
fed5a689
RW
5405 (home-page "https://wiki.gnome.org/Apps/Shotwell")
5406 (synopsis "Photo manager for GNOME 3")
5407 (description
5408 "Shotwell is a digital photo manager designed for the GNOME desktop
5409environment. It allows you to import photos from disk or camera, organize
5410them by keywords and events, view them in full-window or fullscreen mode, and
5411share them with others via social networking and more.")
5412 (license license:lgpl2.1+)))
293ff8b2
DT
5413
5414(define-public file-roller
5415 (package
5416 (name "file-roller")
dcae4270 5417 (version "3.32.3")
293ff8b2
DT
5418 (source (origin
5419 (method url-fetch)
f89a27c6 5420 (uri (string-append "mirror://gnome/sources/file-roller/"
293ff8b2 5421 (version-major+minor version) "/"
f89a27c6 5422 "file-roller-" version ".tar.xz"))
293ff8b2
DT
5423 (sha256
5424 (base32
dcae4270 5425 "0ap2hxvjljh4p6wsd9ikh2my3vsxp9r2nvjxxj3v87nwfyw1y4dy"))))
0a500745 5426 (build-system meson-build-system)
293ff8b2 5427 (native-inputs
0a500745
RW
5428 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
5429 ("intltool" ,intltool)
4c96e5d1 5430 ("itstool" ,itstool)
0a500745
RW
5431 ("pkg-config" ,pkg-config)
5432 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
5433 ("glib:bin" ,glib "bin")))
293ff8b2
DT
5434 ;; TODO: Add libnautilus.
5435 (inputs
5436 `(("gtk+" ,gtk+)
5437 ("gdk-pixbuf" ,gdk-pixbuf)
5438 ("json-glib" ,json-glib)
5439 ("libarchive" ,libarchive)
5440 ("libnotify" ,libnotify)
4c96e5d1 5441 ("nettle" ,nettle)
293ff8b2
DT
5442 ("libxml2" ,libxml2)))
5443 (synopsis "Graphical archive manager for GNOME")
5444 (description "File Roller is an archive manager for the GNOME desktop
5445environment that allows users to view, unpack, and create compressed archives
5446such as gzip tarballs.")
5447 (home-page "http://fileroller.sourceforge.net/")
5448 (license license:gpl2+)))
7ce49365
SB
5449
5450(define-public gnome-session
5451 (package
5452 (name "gnome-session")
1fc2ec79 5453 (version "3.32.0")
7ce49365
SB
5454 (source (origin
5455 (method url-fetch)
5456 (uri (string-append "mirror://gnome/sources/" name "/"
5457 (version-major+minor version) "/"
5458 name "-" version ".tar.xz"))
5459 (sha256
5460 (base32
1fc2ec79 5461 "0zrzkpd406i159mla7bfs5npa32fgqh66aip1rfq02rgsgmc9m5v"))))
2914af3c 5462 (arguments
df278071
RW
5463 '(#:glib-or-gtk? #t
5464 #:phases
2914af3c
AW
5465 (modify-phases %standard-phases
5466 (add-before 'configure 'pre-configure
5467 (lambda* (#:key outputs #:allow-other-keys)
5468 ;; Use elogind instead of systemd.
df278071
RW
5469 (substitute* "meson.build"
5470 (("libsystemd-login") "libelogind")
5471 (("and libsystemd_daemon_dep.found.*") ","))
2914af3c
AW
5472 (substitute* "gnome-session/gsm-systemd.c"
5473 (("#include <systemd/sd-login.h>")
5474 "#include <elogind/sd-login.h>"))
df278071 5475 ;; Remove uses of the systemd daemon.
803ab416
SB
5476 (substitute* "gnome-session/gsm-autostart-app.c"
5477 (("#ifdef HAVE_SYSTEMD") "#if 0"))
a0d7baaf
LC
5478 #t))
5479 (add-after 'install 'wrap-gnome-session
5480 (lambda* (#:key inputs outputs #:allow-other-keys)
5481 ;; Make sure 'gnome-session' finds the 'gsettings' program.
5482 (let ((glib (assoc-ref inputs "glib:bin"))
5483 (out (assoc-ref outputs "out")))
5484 (wrap-program (string-append out "/bin/gnome-session")
5485 `("PATH" ":" prefix (,(string-append glib "/bin"))))
5486 #t))))
6cbc8d57 5487
2914af3c 5488 #:configure-flags
df278071
RW
5489 '("-Ddocbook=false" ; FIXME: disabled because of docbook validation error
5490 "-Dman=false" ; FIXME: disabled because of docbook validation error
5491 "-Dsystemd_journal=false")))
5492 (build-system meson-build-system)
7ce49365
SB
5493 (native-inputs
5494 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5495 ("pkg-config" ,pkg-config)
5496 ("intltool" ,intltool)
df278071
RW
5497 ("xsltproc" ,libxslt)
5498 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
5499 ("docbook-xsl" ,docbook-xsl)
5500 ("docbook-xml" ,docbook-xml)
5501 ("xmlto" ,xmlto)))
7ce49365 5502 (inputs
2914af3c
AW
5503 `(("elogind" ,elogind)
5504 ("gnome-desktop" ,gnome-desktop)
ba3cb5ab 5505 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7ce49365
SB
5506 ("gtk+" ,gtk+)
5507 ("json-glib" ,json-glib)
5508 ("libsm" ,libsm)
5509 ("libxcomposite" ,libxcomposite)
5510 ("libxtst" ,libxtst)
5511 ("mesa" ,mesa)
5512 ("upower" ,upower)
5513 ("xtrans" ,xtrans)))
5514 (synopsis "Session manager for GNOME")
5515 (description
5516 "This package contains the GNOME session manager, as well as a
5517configuration program to choose applications starting on login.")
5518 (home-page "https://wiki.gnome.org/Projects/SessionManagement")
5519 (license license:gpl2+)))
f47ba77e
SB
5520
5521(define-public gjs
5522 (package
5523 (name "gjs")
d054fbf5 5524 (version "1.56.2")
f47ba77e
SB
5525 (source (origin
5526 (method url-fetch)
5527 (uri (string-append "mirror://gnome/sources/" name "/"
5528 (version-major+minor version) "/"
5529 name "-" version ".tar.xz"))
5530 (sha256
5531 (base32
d054fbf5 5532 "1b5321krn89p3f7s2ik6gpfnc61apzljhlnbqky8c88f7n6832ac"))))
f47ba77e
SB
5533 (build-system gnu-build-system)
5534 (arguments
5535 '(#:phases
5536 (modify-phases %standard-phases
5537 (add-before
5538 'check 'pre-check
5539 (lambda _
fc119619
MW
5540 ;; The test suite requires a running X server.
5541 (system "Xvfb :1 &")
5542 (setenv "DISPLAY" ":1")
5543
f47ba77e
SB
5544 ;; For the missing /etc/machine-id.
5545 (setenv "DBUS_FATAL_WARNINGS" "0")
ba666b07 5546
144f94d0
KK
5547 ;; Our mozjs-38 package does not compile the required Intl API
5548 ;; support for these failing tests.
5549 (substitute* "installed-tests/js/testLocale.js"
5550 ((".*toBeDefined.*") "")
5551 ((".*expect\\(datestr\\).*") ""))
d054fbf5
KK
5552 (substitute* "installed-tests/scripts/testCommandLine.sh"
5553 (("Valentín") "")
5554 (("☭") ""))
f47ba77e
SB
5555 #t)))))
5556 (native-inputs
8a831c6f 5557 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
f47ba77e
SB
5558 ("pkg-config" ,pkg-config)
5559 ("xmllint" ,libxml2)
5560 ;; For testing
5561 ("dbus-launch" ,dbus)
5562 ("uuidgen" ,util-linux)
ebebee94 5563 ("xvfb" ,xorg-server-for-tests)))
f47ba77e
SB
5564 (propagated-inputs
5565 ;; These are all in the Requires.private field of gjs-1.0.pc.
144f94d0
KK
5566 `(("cairo" ,cairo)
5567 ("gobject-introspection" ,gobject-introspection)
d054fbf5 5568 ("mozjs" ,mozjs-60)))
f47ba77e
SB
5569 (inputs
5570 `(("gtk+" ,gtk+)
5571 ("readline" ,readline)))
5572 (synopsis "Javascript bindings for GNOME")
f032d0be 5573 (home-page "https://live.gnome.org/Gjs")
f47ba77e
SB
5574 (description
5575 "Gjs is a javascript binding for GNOME. It's mainly based on spidermonkey
5576javascript engine and the GObject introspection framework.")
5577 (license license:gpl2+)))
329d731b
DH
5578
5579(define-public gedit
5580 (package
5581 (name "gedit")
480c9226 5582 (version "3.32.2")
329d731b
DH
5583 (source (origin
5584 (method url-fetch)
5585 (uri (string-append "mirror://gnome/sources/" name "/"
5586 (version-major+minor version) "/"
5587 name "-" version ".tar.xz"))
5588 (sha256
5589 (base32
480c9226
KK
5590 "1q2rk7fym542c7k3bn2wlnzgy384gxacbifsjny0spbg95gfybvl"))))
5591 (build-system meson-build-system)
329d731b 5592 (arguments
480c9226
KK
5593 `(#:glib-or-gtk? #t
5594 #:configure-flags
5595 ;; Otherwise, the RUNPATH will lack the final path component.
5596 (list (string-append "-Dc_link_args=-Wl,-rpath="
5597 (assoc-ref %outputs "out") "/lib/gedit"))
d9b4022c
LC
5598
5599 ;; XXX: Generated .h files are sometimes used before being built.
5600 #:parallel-build? #f
5601
480c9226 5602 #:phases
329d731b 5603 (modify-phases %standard-phases
480c9226
KK
5604 (add-after 'unpack 'skip-gtk-update-icon-cache
5605 ;; Don't create 'icon-theme.cache'.
5606 (lambda _
5607 (substitute* "build-aux/meson/post_install.py"
5608 (("gtk-update-icon-cache") (which "true")))
5609 #t))
5610 (add-after 'unpack 'patch-libgd-fetch
5611 (lambda* (#:key inputs #:allow-other-keys)
5612 (let ((libgd (assoc-ref inputs "libgd")))
5613 ;; Calling git is unnecessary because libgd is fetched as a
5614 ;; native input to this package.
5615 (substitute* "meson.build"
5616 ((".*git.*") ""))
5617 (copy-recursively libgd "subprojects/libgd")
5618 #t)))
5619 (add-after 'install 'wrap-gedit
5620 (lambda* (#:key inputs outputs #:allow-other-keys)
5621 (let ((out (assoc-ref outputs "out"))
5622 (gtksourceview (assoc-ref inputs "gtksourceview"))
5623 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
5624 (python-path (getenv "PYTHONPATH")))
5625 (wrap-program (string-append out "/bin/gedit")
5626 ;; For plugins.
5627 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
5628 `("PYTHONPATH" ":" prefix (,python-path))
5629 ;; For language-specs.
5630 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
5631 "/share")))))
5632 #t)))))
329d731b
DH
5633 (propagated-inputs
5634 `(("dconf" ,dconf)))
5635 (native-inputs
480c9226
KK
5636 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
5637 ("intltool" ,intltool)
b3546174 5638 ("itstool" ,itstool)
480c9226 5639 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
329d731b 5640 ("gobject-introspection" ,gobject-introspection)
480c9226
KK
5641 ("libgd"
5642 ,(origin
5643 (method git-fetch)
5644 (uri (git-reference
5645 (url "https://gitlab.gnome.org/GNOME/libgd")
5646 (commit "c7c7ff4e05d3fe82854219091cf116cce6b19de0")))
5647 (file-name (git-file-name "libgd" version))
5648 (sha256
5649 (base32 "16yld0ap7qj1n96h4f2sqkjmibg7xx5xwkqxdfzam2nmyfdlrrrs"))))
329d731b
DH
5650 ("pkg-config" ,pkg-config)))
5651 (inputs
5652 `(("glib" ,glib)
0d2df50c 5653 ("gspell" ,gspell)
329d731b 5654 ("gtk+" ,gtk+)
480c9226 5655 ("gtksourceview" ,gtksourceview)
329d731b
DH
5656 ("libpeas" ,libpeas)
5657 ("libxml2" ,libxml2)
329d731b
DH
5658 ("iso-codes" ,iso-codes)
5659 ("python-pygobject" ,python-pygobject)
5660 ("python" ,python)
5661 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5662 ("libx11" ,libx11)
5663 ("vala" ,vala)
5664 ("adwaita-icon-theme" ,adwaita-icon-theme)
5665 ("libsoup" ,libsoup)
5666 ("gnome-desktop" ,gnome-desktop)))
5667 (home-page "https://wiki.gnome.org/Apps/Gedit")
5668 (synopsis "GNOME text editor")
5669 (description "While aiming at simplicity and ease of use, gedit is a
5670powerful general purpose text editor.")
5671 (license license:gpl2+)))
b7179363
SB
5672
5673(define-public zenity
5674 (package
5675 (name "zenity")
4f581bd0 5676 (version "3.32.0")
b7179363
SB
5677 (source (origin
5678 (method url-fetch)
5958df04 5679 (uri (string-append "mirror://gnome/sources/zenity/"
b7179363 5680 (version-major+minor version) "/"
5958df04 5681 "zenity-" version ".tar.xz"))
b7179363
SB
5682 (sha256
5683 (base32
4f581bd0 5684 "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7"))))
b7179363
SB
5685 (build-system gnu-build-system)
5686 (native-inputs
b94a6ca0 5687 `(("gettext" ,gettext-minimal)
b7179363
SB
5688 ("itstool" ,itstool)
5689 ("pkg-config" ,pkg-config)))
5690 (inputs
5691 `(("libnotify" ,libnotify)
5692 ("webkitgtk" ,webkitgtk)))
5693 (synopsis "Display graphical dialog boxes from shell scripts")
f032d0be 5694 (home-page "https://www.gnome.org")
b7179363
SB
5695 (description
5696 "Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you
5697to display dialog boxes from the commandline and shell scripts.")
5698 (license license:lgpl2.0+)))
60c3627c
SB
5699
5700(define-public mutter
5701 (package
5702 (name "mutter")
edf43f68 5703 (version "3.32.2")
60c3627c 5704 (source (origin
86c44e72
KK
5705 (method url-fetch)
5706 (uri (string-append "mirror://gnome/sources/" name "/"
5707 (version-major+minor version) "/"
5708 name "-" version ".tar.xz"))
60c3627c
SB
5709 (sha256
5710 (base32
edf43f68 5711 "1h577i2ap7dpfy1jg101jvc6nzccc0csgvd55ahydlr8f94frcva"))))
86c44e72
KK
5712 ;; NOTE: Since version 3.21.x, mutter now bundles and exports forked
5713 ;; versions of cogl and clutter. As a result, many of the inputs,
5714 ;; propagated-inputs, and configure flags used in cogl and clutter are
5715 ;; needed here as well.
edf43f68 5716 (build-system meson-build-system)
60c3627c 5717 (arguments
edf43f68
KK
5718 '(;; XXX: All mutter tests fail with the following error:
5719 ;; Settings schema 'org.gnome.mutter' is not installed
5720 #:tests? #f
5721 #:glib-or-gtk? #t
5722 #:configure-flags
5723 ;; Otherwise, the RUNPATH will lack the final path component.
5724 (list (string-append "-Dc_link_args=-Wl,-rpath="
5725 (assoc-ref %outputs "out") "/lib:"
5726 (assoc-ref %outputs "out") "/lib/mutter-4")
a88d5a0c
MW
5727
5728 ;; The following flags are needed for the bundled clutter
edf43f68 5729 (string-append "-Dxwayland_path="
d633f2f6
RH
5730 (assoc-ref %build-inputs "xorg-server-xwayland")
5731 "/bin/Xwayland")
5732
a88d5a0c 5733 ;; the remaining flags are needed for the bundled cogl
edf43f68 5734 (string-append "-Dopengl_libname="
a88d5a0c 5735 (assoc-ref %build-inputs "mesa")
f23052a6
DC
5736 "/lib/libGL.so"))
5737 #:phases
5738 (modify-phases %standard-phases
edf43f68
KK
5739 (add-after 'unpack 'disable-werror
5740 (lambda _
5741 ;; XXX: build fails with [-Werror]:
5742 ;; backends/meta-cursor-renderer.c:112:5: error:
5743 ;; implicit declaration of function ?roundf?
5744 (substitute* "meson.build"
5745 (("'-Werror=.*',") ""))
5746 #t))
86c44e72
KK
5747 ;; Replace references to systemd libraries to elogind references.
5748 (add-before 'configure 'use-elogind
5749 (lambda _
edf43f68 5750 (substitute* (list "meson.build"
86c44e72
KK
5751 "src/backends/native/meta-launcher.c"
5752 "src/core/main.c")
5753 (("systemd") "elogind"))
5754 #t)))))
60c3627c
SB
5755 (native-inputs
5756 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5757 ("gobject-introspection" ,gobject-introspection)
5758 ("intltool" ,intltool)
f23052a6 5759 ("pkg-config" ,pkg-config)
edf43f68 5760 ("xorg-server" ,xorg-server-for-tests)
f23052a6
DC
5761 ;; For git build
5762 ("autoconf" ,autoconf)
5763 ("automake" ,automake)
5764 ("libtool" ,libtool)))
60c3627c 5765 (propagated-inputs
a88d5a0c
MW
5766 `(;; libmutter.pc refers to these:
5767 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5768 ("gtk+" ,gtk+)
5769 ;; mutter-clutter-1.0.pc and mutter-cogl-1.0.pc refer to these:
5770 ("atk" ,atk)
5771 ("cairo" ,cairo)
5772 ("gdk-pixbuf" ,gdk-pixbuf)
5773 ("glib" ,glib)
a88d5a0c
MW
5774 ("json-glib" ,json-glib)
5775 ("libinput" ,libinput)
5776 ("libx11" ,libx11)
5777 ("libxcomposite" ,libxcomposite)
5778 ("libxdamage" ,libxdamage)
5779 ("libxext" ,libxext)
5780 ("libxfixes" ,libxfixes)
5781 ("libxkbcommon" ,libxkbcommon)
5782 ("libxrandr" ,libxrandr)
5783 ("mesa" ,mesa)
5784 ("pango" ,pango)
5785 ("udev" ,eudev)
a88d5a0c 5786 ("xinput" ,xinput)))
60c3627c 5787 (inputs
86c44e72
KK
5788 `(("elogind" ,elogind)
5789 ("gnome-desktop" ,gnome-desktop)
edf43f68 5790 ("gnome-settings-daemon" ,gnome-settings-daemon)
60c3627c 5791 ("libcanberra-gtk" ,libcanberra)
a88d5a0c 5792 ("libgudev" ,libgudev)
60c3627c
SB
5793 ("libice" ,libice)
5794 ("libsm" ,libsm)
edf43f68 5795 ("libwacom" ,libwacom)
60c3627c 5796 ("libxkbfile" ,libxkbfile)
a88d5a0c 5797 ("libxrandr" ,libxrandr)
86c44e72 5798 ("libxtst" ,libxtst)
edf43f68 5799 ("pipewire" ,pipewire)
60c3627c
SB
5800 ("startup-notification" ,startup-notification)
5801 ("upower-glib" ,upower)
5802 ("xkeyboard-config" ,xkeyboard-config)
d633f2f6 5803 ("xorg-server-xwayland" ,xorg-server-xwayland)
60c3627c
SB
5804 ("zenity" ,zenity)))
5805 (synopsis "Window and compositing manager")
f032d0be 5806 (home-page "https://www.gnome.org")
60c3627c
SB
5807 (description
5808 "Mutter is a window and compositing manager that displays and manages your
5809desktop via OpenGL. Mutter combines a sophisticated display engine using the
5810Clutter toolkit with solid window-management logic inherited from the Metacity
5811window manager.")
86c44e72 5812 (license license:gpl2+)))
685cee87
SB
5813
5814(define-public gnome-online-accounts
5815 (package
5816 (name "gnome-online-accounts")
aa200347 5817 (version "3.32.1")
685cee87
SB
5818 (source (origin
5819 (method url-fetch)
5820 (uri (string-append "mirror://gnome/sources/" name "/"
5821 (version-major+minor version) "/"
5822 name "-" version ".tar.xz"))
5823 (sha256
5824 (base32
aa200347 5825 "08g9kdj8fzcgp76z2zsj9m7wfjks9z6xfrfrbfmcr69k40mapfx8"))))
14c297fd 5826 (outputs '("out" "lib"))
685cee87 5827 (build-system glib-or-gtk-build-system)
14c297fd
TS
5828 (arguments
5829 `(#:configure-flags
5830 (list (string-append "--libdir=" (assoc-ref %outputs "out") "/lib"))
5831 #:phases
5832 (modify-phases %standard-phases
5833 (add-before 'configure 'patch-libgoa-output
5834 (lambda* (#:key outputs #:allow-other-keys)
5835 (let ((lib (assoc-ref outputs "lib")))
5836 (substitute* '("src/goa/Makefile.in" "src/goa/goa-1.0.pc.in")
5837 (("@prefix@") lib)
5838 (("@exec_prefix@") lib)
5839 (("@libdir@") (string-append lib "/lib"))
5840 (("@includedir@") (string-append lib "/include"))
5841 (("@datadir@") (string-append lib "/share")))
7555d539
MB
5842 ;; Make sure gobject-introspection knows about the output
5843 ;; too (see <https://bugs.gnu.org/36535>).
5844 (setenv "outputs" "out lib")
14c297fd 5845 #t))))))
685cee87
SB
5846 (native-inputs
5847 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5848 ("gobject-introspection" ,gobject-introspection)
5849 ("intltool" ,intltool)
5850 ("pkg-config" ,pkg-config)
ebb2873d 5851 ("vala" ,vala)
685cee87
SB
5852 ("xsltproc" ,libxslt)))
5853 (propagated-inputs
5854 `(("glib" ,glib) ; required by goa-1.0.pc
5855 ("gtk+" ,gtk+))) ; required by goa-backend-1.0.pc
5856 (inputs
5857 `(("docbook-xsl" ,docbook-xsl)
5858 ("json-glib" ,json-glib)
5859 ("libsecret" ,libsecret)
5860 ("rest" ,rest)
685cee87
SB
5861 ("webkitgtk" ,webkitgtk)))
5862 (synopsis "Single sign-on framework for GNOME")
5863 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineAccounts")
5864 (description
5865 "GNOME Online Accounts provides interfaces so that applications and
5866libraries in GNOME can access the user's online accounts. It has providers for
5867Google, ownCloud, Facebook, Flickr, Windows Live, Pocket, Foursquare, Microsoft
5868Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
5869 (license license:lgpl2.0+)))
df217748
SB
5870
5871(define-public evolution-data-server
5872 (package
5873 (name "evolution-data-server")
2196a8d4 5874 (version "3.32.4")
df217748
SB
5875 (source (origin
5876 (method url-fetch)
5877 (uri (string-append "mirror://gnome/sources/" name "/"
5878 (version-major+minor version) "/"
5879 name "-" version ".tar.xz"))
e1f174ae 5880 (patches (search-patches "evolution-data-server-locales.patch"))
df217748
SB
5881 (sha256
5882 (base32
2196a8d4 5883 "0zsc9xwy6ixk3x0dx69ax5isrdw8qxjdxg2i5fr95s40nss7rxl3"))))
743aebd7 5884 (build-system cmake-build-system)
df217748 5885 (arguments
b468eedc
RW
5886 '(#:configure-flags
5887 (let* ((lib (string-append (assoc-ref %outputs "out") "/lib"))
5888 (runpaths (map (lambda (s)
5889 (string-append lib "/evolution-data-server/" s))
ac033c7b
MB
5890 '("addressbook-backends" "calendar-backends"
5891 "camel-providers" "credential-modules"
5892 "registry-modules"))))
5893 (list "-DENABLE_UOA=OFF" ;disable Ubuntu Online Accounts support
5894 "-DENABLE_GOOGLE=OFF" ;disable Google Contacts support
5895 "-DENABLE_GOOGLE_AUTH=OFF" ;disable Google authentication
5896 "-DENABLE_VALA_BINDINGS=ON"
ac033c7b
MB
5897 (string-append "-DCMAKE_INSTALL_RPATH=" lib ";"
5898 (string-append lib "/evolution-data-server;")
5899 (string-join runpaths ";"))
5900 "-DENABLE_INTROSPECTION=ON")) ;required for Vala bindings
df217748
SB
5901 #:phases
5902 (modify-phases %standard-phases
b468eedc
RW
5903 (add-after 'unpack 'disable-failing-tests
5904 (lambda _
5905 ;; tests/book-migration/test-migration.c:160:test_fetch_contacts:
5906 ;; assertion failed (g_slist_length (contacts) == 20): (0 == 20)
5907 (delete-file-recursively "tests/book-migration")
5908 (substitute* "tests/CMakeLists.txt"
5909 (("add_subdirectory\\(book-migration\\)") ""))
2196a8d4
KK
5910 ;; tests/libebook/client/test-book-client-view-operations:8077):
5911 ;; e-data-server-WARNING **:
5912 ;; (src/libedataserver/e-source-registry.c:264):thread_closure_free:
5913 ;; runtime check failed:
5914 ;; (!g_main_context_pending (closure->main_context))
5915 (substitute* "tests/libebook/client/CMakeLists.txt"
5916 (("test-book-client-view-operations") ""))
b468eedc 5917 #t))
743aebd7 5918 (add-after 'unpack 'patch-paths
df217748 5919 (lambda _
b468eedc
RW
5920 (substitute* '("tests/test-server-utils/e-test-server-utils.c"
5921 "tests/libedata-book/data-test-utils.c"
5922 "tests/libedata-book/test-book-cache-utils.c"
5923 "tests/libedata-cal/test-cal-cache-utils.c")
df217748 5924 (("/bin/rm") (which "rm")))
ac033c7b
MB
5925 #t))
5926 (add-before 'configure 'dont-override-rpath
5927 (lambda _
5928 (substitute* "CMakeLists.txt"
5929 ;; CMakeLists.txt hard-codes runpath to just the libdir.
5930 ;; Remove it so the configure flag is respected.
5931 (("SET\\(CMAKE_INSTALL_RPATH .*") ""))
b63c06f1 5932 #t)))))
df217748
SB
5933 (native-inputs
5934 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
5935 ("gobject-introspection" ,gobject-introspection)
5936 ("gperf" ,gperf)
5937 ("intltool" ,intltool)
5938 ("pkg-config" ,pkg-config)
a73c1cf8 5939 ("vala" ,vala)
743aebd7 5940 ("python" ,python-wrapper)))
df217748
SB
5941 (propagated-inputs
5942 ;; These are all in the Requires field of .pc files.
5943 `(("gtk+" ,gtk+)
5944 ("libical" ,libical)
5945 ("libsecret" ,libsecret)
5946 ("libsoup" ,libsoup)
5947 ("nss" ,nss)
5948 ("sqlite" ,sqlite)))
5949 (inputs
5950 `(("bdb" ,bdb)
5951 ("gcr" ,gcr)
14c297fd 5952 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
891199c6 5953 ("json-glib" ,json-glib)
b468eedc 5954 ("libcanberra" ,libcanberra)
743aebd7
MB
5955 ("libgweather" ,libgweather)
5956 ("mit-krb5" ,mit-krb5)
891199c6
MW
5957 ("openldap" ,openldap)
5958 ("webkitgtk" ,webkitgtk)))
df217748
SB
5959 (synopsis "Store address books and calendars")
5960 (home-page "https://wiki.gnome.org/Apps/Evolution")
5961 (description
5962 "This package provides a unified backend for programs that work with
5963contacts, tasks, and calendar information. It was originally developed for
5964Evolution (hence the name), but is now used by other packages as well.")
5965 (license license:lgpl2.0)))
bd7dfafa
SB
5966
5967(define-public caribou
5968 (package
5969 (name "caribou")
fe964bb5 5970 (version "0.4.21")
bd7dfafa
SB
5971 (source (origin
5972 (method url-fetch)
5973 (uri (string-append "mirror://gnome/sources/" name "/"
5974 (version-major+minor version) "/"
5975 name "-" version ".tar.xz"))
5976 (sha256
5977 (base32
fe964bb5 5978 "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
bd7dfafa
SB
5979 (build-system glib-or-gtk-build-system)
5980 (arguments
5981 '(#:phases
5982 (modify-phases %standard-phases
5983 (add-before
5984 'build 'pre-build
5985 (lambda* (#:key outputs #:allow-other-keys)
5986 (let ((out (assoc-ref outputs "out")))
5987 ;; Use absolute shared library path in Caribou-1.0.typelib.
5988 (substitute* "libcaribou/Makefile"
5989 (("--shared-library=libcaribou.so")
5990 (string-append "--shared-library="
5991 out "/lib/libcaribou.so")))
5992 #t)))
5993 (add-after 'install 'wrap-programs
5994 (lambda* (#:key outputs #:allow-other-keys)
5995 (let* ((out (assoc-ref outputs "out"))
5996 (python-path (getenv "PYTHONPATH"))
5997 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
5998 (for-each
5999 (lambda (prog)
6000 (wrap-program prog
6001 `("PYTHONPATH" ":" prefix (,python-path))
6002 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6003 (list (string-append out "/bin/caribou-preferences")
6004 (string-append out "/libexec/antler-keyboard"))))
6005 #t)))))
6006 (native-inputs
6007 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6008 ("gobject-introspection" ,gobject-introspection)
6009 ("intltool" ,intltool)
6010 ("pkg-config" ,pkg-config)
6011 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
6012 ("vala" ,vala)
6013 ("xsltproc" ,libxslt)))
6014 (propagated-inputs
6015 ;; caribou-1.0.pc refers to all these.
6016 `(("libgee" ,libgee)
6017 ("libxklavier" ,libxklavier)
6018 ("libxtst" ,libxtst)
6019 ("gtk+" ,gtk+)))
6020 (inputs
6021 `(("clutter" ,clutter)
6022 ("dconf" ,dconf)
6023 ("gtk+-2" ,gtk+-2)
6024 ("python-pygobject" ,python2-pygobject)))
6025 (synopsis "Text entry and UI navigation application")
6026 (home-page "https://wiki.gnome.org/Projects/Caribou")
6027 (description
6028 "Caribou is an input assistive technology intended for switch and pointer
6029users.")
6030 (license license:lgpl2.1)))
ba5dd105 6031
ba5dd105
SB
6032(define-public network-manager
6033 (package
6034 (name "network-manager")
6425d87a 6035 (version "1.18.4")
ba5dd105
SB
6036 (source (origin
6037 (method url-fetch)
6038 (uri (string-append "mirror://gnome/sources/NetworkManager/"
6039 (version-major+minor version) "/"
6040 "NetworkManager-" version ".tar.xz"))
7d1861e2 6041 (patches (search-patches "nm-plugin-path.patch"))
ba5dd105
SB
6042 (sha256
6043 (base32
6425d87a 6044 "0pnh1wr2p1fqa5pr945fr3lngfc5ccfrmgddqsg55lxnjpv0ggd3"))
02710a9b 6045 (modules '((guix build utils)))
fd070f35 6046 (snippet
02710a9b
RW
6047 '(begin
6048 (substitute* "src/devices/wwan/nm-modem-manager.c"
6049 (("systemd") "elogind"))
6050 #t))))
ba5dd105
SB
6051 (build-system gnu-build-system)
6052 (outputs '("out"
6053 "doc")) ; 8 MiB of gtk-doc HTML
6054 (arguments
6055 '(#:configure-flags
6056 (let ((out (assoc-ref %outputs "out"))
6057 (doc (assoc-ref %outputs "doc"))
6058 (dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
6059 "/sbin/dhclient")))
02710a9b
RW
6060 (list "--with-libnm-glib" ; needed by network-manager-applet
6061 "--with-systemd-journal=no"
6062 "--with-session-tracking=elogind"
6063 "--with-suspend-resume=elogind"
fd070f35
CM
6064 "--with-consolekit=no"
6065 "--with-crypto=gnutls"
ba5dd105
SB
6066 "--disable-config-plugin-ibft"
6067 "--sysconfdir=/etc"
6068 "--localstatedir=/var"
6069 (string-append "--with-udev-dir="
6070 out "/lib/udev")
6071 (string-append "--with-dbus-sys-dir="
6072 out "/etc/dbus-1/system.d")
6073 (string-append "--with-html-dir="
6074 doc "/share/gtk-doc/html")
6075 (string-append "--with-dhclient=" dhclient)))
6076 #:phases
6077 (modify-phases %standard-phases
02710a9b
RW
6078 ;; This bare "ls" invocation breaks some tests.
6079 (add-after 'unpack 'patch-ls-invocation
6080 (lambda _
6081 (substitute* "build-aux/ltmain.sh"
6082 (("`ls -")
6083 (string-append "`" (which "ls") " -")))
6084 #t))
b4f59d87
AW
6085 (add-before 'configure 'pre-configure
6086 (lambda _
6087 ;; These tests try to test aspects of network-manager's
6088 ;; functionality within restricted containers, but they don't
6089 ;; cope with being already in the Guix build jail as that jail
6090 ;; lacks some features that they would like to proxy over (like
6091 ;; a /sys mount).
d04687dc
HG
6092 (substitute* '("Makefile.in")
6093 (("src/platform/tests/test-address-linux") " ")
6094 (("src/platform/tests/test-cleanup-linux") " ")
6095 (("src/platform/tests/test-link-linux") " ")
6096 (("src/platform/tests/test-route-linux") " ")
02710a9b 6097 (("src/devices/tests/test-acd") "")
d04687dc
HG
6098 (("src/devices/tests/test-arping") " ")
6099 (("src/devices/tests/test-lldp") " ")
6100 (("src/tests/test-route-manager-linux") " "))
b4f59d87 6101 #t))
45f80fce
RW
6102 (add-after 'unpack 'delete-failing-tests
6103 (lambda _
02710a9b 6104 ;; FIXME: These three tests fail for unknown reasons.
45f80fce
RW
6105 ;; ERROR:libnm-core/tests/test-general.c:5842:
6106 ;; _json_config_check_valid: assertion failed (res == expected): (1 == 0)
6107 ;; ERROR:libnm-core/tests/test-keyfile.c:647:
6108 ;; test_team_conf_read_invalid: assertion failed: (nm_setting_team_get_config (s_team) == NULL)
6109 ;; ERROR:libnm-core/tests/test-setting.c:907:
6110 ;; _test_team_config_sync: assertion failed: (nm_streq0 (nm_setting_team_get_runner (s_team), runner))
45f80fce
RW
6111 (substitute* "Makefile.in"
6112 (("libnm-core/tests/test-general") " ")
6113 (("libnm-core/tests/test-keyfile") " ")
02710a9b 6114 (("libnm-core/tests/test-setting\\$\\(EXEEXT\\)") " "))
45f80fce 6115 #t))
ba5dd105
SB
6116 (add-before 'check 'pre-check
6117 (lambda _
6118 ;; For the missing /etc/machine-id.
6119 (setenv "DBUS_FATAL_WARNINGS" "0")
6120 #t))
6121 (replace 'install
6122 (lambda _
45f80fce
RW
6123 (invoke "make"
6124 "sysconfdir=/tmp"
6125 "rundir=/tmp"
6126 "statedir=/tmp"
6127 "nmstatedir=/tmp/nm"
6128 "install")
6129 #t)))))
b93502d6
DC
6130 (propagated-inputs
6131 `(("glib" ,glib)))
ba5dd105
SB
6132 (native-inputs
6133 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
6134 ("gobject-introspection" ,gobject-introspection)
d04687dc 6135 ("docbook-xsl" ,docbook-xsl)
ba5dd105 6136 ("intltool" ,intltool)
d04687dc
HG
6137 ("libxslt" ,libxslt)
6138 ("libxml2" ,libxml2)
ba5dd105
SB
6139 ("pkg-config" ,pkg-config)
6140 ;; For testing.
6141 ("python" ,python-wrapper)
6142 ("python-dbus" ,python-dbus)
6143 ("python-pygobject" ,python-pygobject)))
6144 (inputs
02710a9b
RW
6145 `(("coreutils" ,coreutils) ; for ls
6146 ("curl" ,curl)
856ca567
KK
6147 ("cyrus-sasl" ,cyrus-sasl)
6148 ("dbus-glib" ,dbus-glib)
ba5dd105 6149 ("dnsmasq" ,dnsmasq)
856ca567 6150 ("eudev" ,eudev)
ba5dd105
SB
6151 ("gnutls" ,gnutls)
6152 ("iptables" ,iptables)
6153 ("isc-dhcp" ,isc-dhcp)
d04687dc 6154 ("jansson" ,jansson)
ba5dd105
SB
6155 ("libgcrypt" ,libgcrypt)
6156 ("libgudev" ,libgudev)
6157 ("libndp" ,libndp)
6158 ("libnl" ,libnl)
6159 ("libsoup" ,libsoup)
142bdcbc 6160 ("modem-manager" ,modem-manager)
c27e02bf 6161 ("newt" ,newt) ;for the 'nmtui' console interface
ba5dd105
SB
6162 ("polkit" ,polkit)
6163 ("ppp" ,ppp)
6164 ("readline" ,readline)
fd070f35
CM
6165 ("util-linux" ,util-linux)
6166 ("elogind" ,elogind)))
ba5dd105 6167 (synopsis "Network connection manager")
f032d0be 6168 (home-page "https://www.gnome.org/projects/NetworkManager/")
ba5dd105
SB
6169 (description
6170 "NetworkManager is a system network service that manages your network
6171devices and connections, attempting to keep active network connectivity when
6172available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE
6173devices, and provides VPN integration with a variety of different VPN
6174services.")
29d2f451
LC
6175 (license license:gpl2+)
6176 (properties '((upstream-name . "NetworkManager")))))
4d62a9d3 6177
f2b96b3a
LC
6178(define-public network-manager-openvpn
6179 (package
6180 (name "network-manager-openvpn")
be1c4b07 6181 ;; Updating? Check whether network-manager-applet still needs libnm_gtk.
7d87eede 6182 (version "1.8.10")
f2b96b3a
LC
6183 (source (origin
6184 (method url-fetch)
6185 (uri (string-append
6186 "mirror://gnome/sources/NetworkManager-openvpn/"
6187 (version-major+minor version)
6188 "/NetworkManager-openvpn-" version ".tar.xz"))
6189 (sha256
6190 (base32
7d87eede 6191 "1vri49yff4lj13dnzkpq9nx3a4z1bmbrv807r151plj8m1mwhg5g"))))
f2b96b3a
LC
6192 (build-system gnu-build-system)
6193 (arguments
633422b0
JL
6194 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
6195 #:phases
6196 (modify-phases %standard-phases
6197 (add-after 'configure 'patch-path
6198 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
6199 (let* ((ovpn (string-append (assoc-ref inputs "openvpn")
6200 "/sbin/openvpn"))
6201 (modprobe (string-append (assoc-ref inputs "kmod")
6202 "/bin/modprobe"))
6203 (pretty-ovpn (string-append "\"" ovpn "\"")))
6204 (for-each
6205 (lambda (file)
6206 (substitute* file
6207 (("\"/usr/local/sbin/openvpn\"") pretty-ovpn)
6208 (("\"/usr/sbin/openvpn\"") pretty-ovpn)
6209 (("\"/sbin/openvpn\"") pretty-ovpn)
6210 (("/sbin/modprobe") modprobe)))
6211 '("src/nm-openvpn-service.c" "properties/nm-openvpn-editor.c")))
6212 #t)))))
f2b96b3a
LC
6213 (native-inputs
6214 `(("pkg-config" ,pkg-config)
6215 ("intltool" ,intltool)))
6216 (inputs
6217 `(("gtk+" ,gtk+)
633422b0 6218 ("kmod" ,kmod)
f2b96b3a
LC
6219 ("openvpn" ,openvpn)
6220 ("network-manager" ,network-manager)
6221 ("network-manager-applet" ,network-manager-applet) ;for libnma
6222 ("libsecret" ,libsecret)))
6223 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
6224 (synopsis "OpenVPN plug-in for NetworkManager")
6225 (description
6226 "This extension of NetworkManager allows it to take care of connections
6227to virtual private networks (VPNs) via OpenVPN.")
6228 (license license:gpl2+)
6229 (properties `((upstream-name . "NetworkManager-openvpn")))))
6230
d376129f
JL
6231(define-public network-manager-vpnc
6232 (package
6233 (name "network-manager-vpnc")
6234 (version "1.2.6")
6235 (source (origin
6236 (method url-fetch)
6237 (uri (string-append
6238 "mirror://gnome/sources/NetworkManager-vpnc/"
6239 (version-major+minor version)
6240 "/NetworkManager-vpnc-" version ".tar.xz"))
6241 (sha256
6242 (base32
6243 "1js5lwcsqws4klgypfxl4ikmakv7v7xgddij1fj6b0y0qicx0kyy"))))
6244 (build-system gnu-build-system)
6245 (arguments
6246 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
6247 #:phases
6248 (modify-phases %standard-phases
6249 (add-after 'configure 'patch-path
6250 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
6251 (let* ((vpnc (string-append (assoc-ref inputs "vpnc")
6252 "/sbin/vpnc"))
6253 (modprobe (string-append (assoc-ref inputs "kmod")
6254 "/bin/modprobe"))
6255 (pretty-ovpn (string-append "\"" vpnc "\"")))
6256 (substitute* "src/nm-vpnc-service.c"
6257 (("\"/usr/local/sbin/vpnc\"") pretty-ovpn)
6258 (("\"/usr/sbin/vpnc\"") pretty-ovpn)
6259 (("\"/sbin/vpnc\"") pretty-ovpn)
6260 (("/sbin/modprobe") modprobe)))
6261 #t)))))
6262 (native-inputs
6263 `(("pkg-config" ,pkg-config)
6264 ("intltool" ,intltool)))
6265 (inputs
6266 `(("gtk+" ,gtk+)
6267 ("kmod" ,kmod)
6268 ("vpnc" ,vpnc)
6269 ("network-manager" ,network-manager)
6270 ("network-manager-applet" ,network-manager-applet) ;for libnma
6271 ("libsecret" ,libsecret)))
6272 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
6273 (synopsis "VPNC plug-in for NetworkManager")
6274 (description
6275 "Support for configuring virtual private networks based on VPNC.
6276Compatible with Cisco VPN concentrators configured to use IPsec.")
6277 (license license:gpl2+)
6278 (properties `((upstream-name . "NetworkManager-vpnc")))))
6279
8378c87a
EF
6280(define-public network-manager-openconnect
6281 (package
6282 (name "network-manager-openconnect")
6283 (version "1.2.6")
6284 (source (origin
6285 (method url-fetch)
6286 (uri (string-append
6287 "mirror://gnome/sources/NetworkManager-openconnect/"
6288 (version-major+minor version)
6289 "/NetworkManager-openconnect-" version ".tar.xz"))
6290 (sha256
6291 (base32
6292 "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m"))))
6293 (build-system gnu-build-system)
6294 (arguments
6295 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
6296 #:phases
6297 (modify-phases %standard-phases
6298 (add-after 'configure 'patch-path
6299 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
6300 (let* ((openconnect (string-append (assoc-ref inputs "openconnect")
6301 "/sbin/openconnect"))
6302 (modprobe (string-append (assoc-ref inputs "kmod")
6303 "/bin/modprobe"))
6304 (pretty-ovpn (string-append "\"" openconnect "\"")))
6305 (substitute* "src/nm-openconnect-service.c"
6306 (("\"/usr/local/sbin/openconnect\"") pretty-ovpn)
6307 (("\"/usr/sbin/openconnect\"") pretty-ovpn)
6308 (("/sbin/modprobe") modprobe)))
6309 #t)))))
6310 (native-inputs
6311 `(("intltool" ,intltool)
6312 ("network-manager-applet" ,network-manager-applet) ;for libnma
6313 ("pkg-config" ,pkg-config)))
6314 (inputs
6315 `(("gcr" ,gcr)
6316 ("gtk+" ,gtk+)
6317 ("kmod" ,kmod)
6318 ("libsecret" ,libsecret)
6319 ("libxml2" ,libxml2)
6320 ("network-manager" ,network-manager)
6321 ("openconnect" ,openconnect)))
6322 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
6323 (synopsis "OpenConnect plug-in for NetworkManager")
6324 (description
6325 "This extension of NetworkManager allows it to take care of connections
6326to @acronym{VPNs, virtual private networks} via OpenConnect, an open client for
6327Cisco's AnyConnect SSL VPN.")
6328 (license license:gpl2+)
e52b9534
LC
6329 (properties `((upstream-name . "NetworkManager-openconnect")
6330
6331 ;; The 'etc/dbus-1/system.d/nm-openconnect-service.conf'
6332 ;; file refers to account "nm-openconnect". Specify it here
6333 ;; so that 'network-manager-service-type' creates it.
6334 (user-accounts . ("nm-openconnect"))))))
8378c87a 6335
e5e1df4d
DC
6336(define-public mobile-broadband-provider-info
6337 (package
6338 (name "mobile-broadband-provider-info")
310c89e3 6339 (version "20190116")
e5e1df4d
DC
6340 (source (origin
6341 (method url-fetch)
6342 (uri (string-append
6343 "mirror://gnome/sources/"
6344 "mobile-broadband-provider-info/" version "/"
6345 "mobile-broadband-provider-info-" version ".tar.xz"))
6346 (sha256
6347 (base32
310c89e3 6348 "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"))))
e5e1df4d
DC
6349 (build-system gnu-build-system)
6350 (arguments
310c89e3 6351 `(#:tests? #f)) ; no tests
e5e1df4d
DC
6352 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
6353 (synopsis "Database of broadband connection configuration")
6354 (description "Database of broadband connection configuration.")
6355 (license license:public-domain)))
6356
4d62a9d3
SB
6357(define-public network-manager-applet
6358 (package
6359 (name "network-manager-applet")
8fc3a337 6360 (version "1.8.24")
4d62a9d3
SB
6361 (source (origin
6362 (method url-fetch)
3df63444 6363 (uri (string-append "mirror://gnome/sources/network-manager-applet/"
4d62a9d3 6364 (version-major+minor version) "/"
3df63444 6365 "network-manager-applet-" version ".tar.xz"))
4d62a9d3
SB
6366 (sha256
6367 (base32
8fc3a337 6368 "1gzvz4wfqfsfclqg56y954al8x6fmz71cnxlx1i4nqr7a25bp2qi"))))
cd7f718e
RW
6369 (build-system meson-build-system)
6370 (arguments
be1c4b07
TGR
6371 '(#:configure-flags
6372 ;; ‘Nobody should be using this’ but network-manager-openvpn 1.8.10 does.
6373 (list "-Dlibnm_gtk=true")
6374 #:glib-or-gtk? #t))
4d62a9d3
SB
6375 (native-inputs
6376 `(("intltool" ,intltool)
cd7f718e 6377 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
4d62a9d3 6378 ("gobject-introspection" ,gobject-introspection)
cd7f718e 6379 ("gtk-doc" ,gtk-doc)
4d62a9d3
SB
6380 ("pkg-config" ,pkg-config)))
6381 (propagated-inputs
6382 ;; libnm-gtk.pc refers to all these.
6383 `(("dbus-glib" ,dbus-glib)
6384 ("gtk+" ,gtk+)
6385 ("network-manager" ,network-manager)))
6386 (inputs
cd7f718e
RW
6387 `(("gcr" ,gcr)
6388 ("iso-codes" ,iso-codes)
4d62a9d3
SB
6389 ("libgudev" ,libgudev)
6390 ("libnotify" ,libnotify)
2116bfb3 6391 ("libsecret" ,libsecret)
240cee8a
KK
6392 ("libselinux" ,libselinux)
6393 ("jansson" ,jansson) ; for team support
3e9c80b2
FP
6394 ("modem-manager" ,modem-manager)
6395 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)))
4d62a9d3 6396 (synopsis "Applet for managing network connections")
f032d0be 6397 (home-page "https://www.gnome.org/projects/NetworkManager/")
4d62a9d3
SB
6398 (description
6399 "This package contains a systray applet for NetworkManager. It displays
6400the available networks and allows users to easily switch between them.")
6401 (license license:gpl2+)))
56196594
RW
6402
6403(define-public libxml++
6404 (package
6405 (name "libxml++")
8344a85e 6406 (version "3.0.1")
56196594
RW
6407 (source (origin
6408 (method url-fetch)
6409 (uri (string-append "mirror://gnome/sources/" name "/"
6410 (version-major+minor version) "/"
6411 name "-" version ".tar.xz"))
6412 (sha256
6413 (base32
8344a85e 6414 "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"))))
56196594
RW
6415 (build-system gnu-build-system)
6416 ;; libxml++-3.0.pc refers to all these.
6417 (propagated-inputs
6418 `(("libxml2" ,libxml2)
6419 ("glibmm" ,glibmm)))
6420 (native-inputs
6421 `(("perl" ,perl)
6422 ("pkg-config" ,pkg-config)))
6423 (home-page "http://libxmlplusplus.sourceforge.net/")
6424 (synopsis "C++ wrapper for XML parser library libxml2")
6425 (description
6426 "This package provides a C++ wrapper for the XML parser library
6427libxml2.")
6428 (license license:lgpl2.1+)))
df12f04a 6429
b61d9627
AW
6430(define-public libxml++-2
6431 (package
6432 (inherit libxml++)
6433 (name "libxml++")
6434 (version "2.40.1")
6435 (source (origin
6436 (method url-fetch)
6437 (uri (string-append "mirror://gnome/sources/" name "/"
6438 (version-major+minor version) "/"
6439 name "-" version ".tar.xz"))
6440 (sha256
6441 (base32
6442 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
6443
df12f04a
SB
6444(define-public gdm
6445 (package
6446 (name "gdm")
bcca95dc 6447 (version "3.32.0")
df12f04a
SB
6448 (source (origin
6449 (method url-fetch)
6450 (uri (string-append "mirror://gnome/sources/" name "/"
6451 (version-major+minor version) "/"
6452 name "-" version ".tar.xz"))
6453 (sha256
6454 (base32
bcca95dc 6455 "12ypdz9i24hwbl1d1wnnxb8zlvfa4f49n9ac5cl9d6h8qp4b0gb4"))))
957dbc0a 6456 (build-system glib-or-gtk-build-system)
df12f04a
SB
6457 (arguments
6458 '(#:configure-flags
af37e6bb 6459 `("--without-plymouth"
957dbc0a 6460 "--disable-systemd-journal"
51bc8357
TS
6461
6462 ;; Using --with-initial-vt=7 allows GDM to run alongside TTY 1,
6463 ;; instead of having to replace it (i.e., stopping the mingetty
6464 ;; service for TTY 1 before starting GDM).
6465 "--with-initial-vt=7"
6466
89c86562
TS
6467 ;; Use '/etc/environment' for locale settings instead of the
6468 ;; systemd-specific '/etc/locale.conf'.
6469 "--with-lang-file=/etc/environment"
6470
b74ef0ba
RW
6471 ,(string-append "--with-udevdir="
6472 (assoc-ref %outputs "out") "/lib/udev")
6473
af37e6bb
AW
6474 "--localstatedir=/var"
6475 ,(string-append "--with-default-path="
6476 (string-join '("/run/setuid-programs"
6477 "/run/current-system/profile/bin"
6478 "/run/current-system/profile/sbin")
957dbc0a
AW
6479 ":"))
6480 ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
6481 ;; XDG_DATA_DIRS so that it finds its schemas.
6482 "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
df12f04a
SB
6483 #:phases
6484 (modify-phases %standard-phases
6485 (add-before
6486 'configure 'pre-configure
e8c6e771 6487 (lambda* (#:key inputs outputs #:allow-other-keys)
df12f04a
SB
6488 ;; We don't have <systemd/sd-daemon.h>.
6489 (substitute* '("common/gdm-log.c"
6490 "daemon/gdm-server.c"
6491 "daemon/gdm-session-worker.c"
6492 "daemon/gdm-session-worker-job.c")
6493 (("#include <systemd/sd-daemon\\.h>") ""))
6494 ;; Use elogind for sd-login.
6495 (substitute* '("common/gdm-common.c"
6496 "daemon/gdm-manager.c"
6497 "libgdm/gdm-user-switching.c")
6498 (("#include <systemd/sd-login\\.h>")
6499 "#include <elogind/sd-login.h>"))
957dbc0a
AW
6500 ;; Check for elogind.
6501 (substitute* '("configure")
6502 (("libsystemd")
6503 "libelogind"))
af37e6bb
AW
6504 ;; Look for system-installed sessions in
6505 ;; /run/current-system/profile/share.
6506 (substitute* '("libgdm/gdm-sessions.c"
6507 "daemon/gdm-session.c"
6508 "daemon/gdm-display.c"
6509 "daemon/gdm-launch-environment.c")
6510 (("DATADIR \"/x")
6511 "\"/run/current-system/profile/share/x")
6512 (("DATADIR \"/wayland")
6513 "\"/run/current-system/profile/share/wayland")
6514 (("DATADIR \"/gnome")
6515 "\"/run/current-system/profile/share/gnome"))
c9ff92b5 6516 (let ((propagate '("GDM_CUSTOM_CONF"
1f564c15 6517 "GDM_DBUS_DAEMON"
c9ff92b5 6518 "GDM_X_SERVER"
41fa9f18 6519 "GDM_X_SESSION"
c9ff92b5
TS
6520 ;; XXX: Remove this once GNOME Shell is
6521 ;; a dependency of GDM.
6522 "XDG_DATA_DIRS")))
6523 (substitute* "daemon/gdm-session.c"
6524 (("set_up_session_environment \\(self\\);")
6525 (apply string-append
6526 "set_up_session_environment (self);\n"
6527 (map (lambda (name)
6528 (string-append
6529 "gdm_session_set_environment_variable "
6530 "(self, \"" name "\","
6531 "g_getenv (\"" name "\"));\n"))
6532 propagate)))))
a430a350
TS
6533 ;; Find the configuration file using an environment variable.
6534 (substitute* '("common/gdm-settings.c")
e0e6756f 6535 (("GDM_CUSTOM_CONF")
e57c2adb
TS
6536 (string-append "(g_getenv(\"GDM_CUSTOM_CONF\") != NULL"
6537 " ? g_getenv(\"GDM_CUSTOM_CONF\")"
6538 " : GDM_CUSTOM_CONF)")))
e0e6756f
AW
6539 ;; Use service-supplied path to X.
6540 (substitute* '("daemon/gdm-server.c")
6541 (("\\(X_SERVER X_SERVER_ARG_FORMAT")
6542 "(\"%s\" X_SERVER_ARG_FORMAT, g_getenv (\"GDM_X_SERVER\")"))
6543 (substitute* '("daemon/gdm-x-session.c")
1f564c15
TS
6544 (("\"dbus-daemon\"")
6545 "g_getenv (\"GDM_DBUS_DAEMON\")")
e0e6756f 6546 (("X_SERVER")
41fa9f18
TS
6547 "g_getenv (\"GDM_X_SERVER\")")
6548 (("GDMCONFDIR \"/Xsession\"")
6549 "g_getenv (\"GDM_X_SESSION\")"))
def6d6b6
TS
6550 ;; Use an absolute path for GNOME Session.
6551 (substitute* "daemon/gdm-launch-environment.c"
6552 (("\"gnome-session\"")
6553 (string-append "\"" (assoc-ref inputs "gnome-session")
6554 "/bin/gnome-session\"")))
e8c6e771
TS
6555 ;; Do not automatically select the placeholder session.
6556 (substitute* "daemon/gdm-session.c"
6557 (("!g_str_has_suffix [(]base_name, \"\\.desktop\"[)]")
6558 (string-append "!g_str_has_suffix (base_name, \".desktop\") || "
6559 "(g_strcmp0(search_dirs[i], \""
6560 (assoc-ref outputs "out") "/share/gdm/BuiltInSessions/"
6561 "\") == 0 && "
6562 "g_strcmp0(base_name, \"fail.desktop\") == 0)"))
6563 (("g_error [(]\"GdmSession: no session desktop files installed, aborting\\.\\.\\.\"[)];")
bcca95dc 6564 "{ self->fallback_session_name = g_strdup(\"fail\"); goto out; }"))
69544798 6565 #t))
8caa4589
TS
6566 ;; GDM requires that there be at least one desktop entry
6567 ;; file. This phase installs a hidden one that simply
6568 ;; fails. This enables users to use GDM with a
6569 ;; '~/.xsession' script with no other desktop entry files.
6570 ;; See <https://bugs.gnu.org/35068>.
6571 (add-after 'install 'install-placeholder-desktop-entry
6572 (lambda* (#:key inputs outputs #:allow-other-keys)
6573 (let* ((out (assoc-ref outputs "out"))
6574 (sessions (string-append out "/share/gdm/BuiltInSessions"))
6575 (fail (string-append sessions "/fail.desktop")))
6576 (mkdir-p sessions)
6577 (with-output-to-file fail
6578 (lambda ()
6579 (for-each
6580 display
6581 '("[Desktop Entry]\n"
6582 "Encoding=UTF-8\n"
6583 "Type=Application\n"
6584 "Name=Fail\n"
6585 "Comment=This session fails immediately.\n"
6586 "NoDisplay=true\n"
6587 "Exec=false\n"))))
6588 #t)))
69544798
TS
6589 ;; GDM needs GNOME Session to run these applications. We link
6590 ;; their autostart files in `share/gdm/greeter/autostart'
6591 ;; because GDM explicitly tells GNOME Session to look there.
6592 ;;
6593 ;; XXX: GNOME Shell should be linked here too, but currently
6594 ;; GNOME Shell depends on GDM.
6595 (add-after 'install 'link-autostart-files
6596 (lambda* (#:key inputs outputs #:allow-other-keys)
6597 (let* ((out (assoc-ref outputs "out"))
6598 (autostart (string-append out "/share/gdm/"
6599 "greeter/autostart"))
6600 (settings (assoc-ref inputs "gnome-settings-daemon")))
6601 (mkdir-p autostart)
6602 (with-directory-excursion autostart
6603 (for-each (lambda (desktop)
6604 (symlink desktop (basename desktop)))
6605 (find-files (string-append settings "/etc/xdg"))))
6606 #t))))))
df12f04a
SB
6607 (native-inputs
6608 `(("dconf" ,dconf)
6609 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6610 ("gobject-introspection" ,gobject-introspection)
6611 ("intltool" ,intltool)
6612 ("itstool" ,itstool)
6613 ("pkg-config" ,pkg-config)
6614 ("xmllint" ,libxml2)))
6615 (inputs
6616 `(("accountsservice" ,accountsservice)
6617 ("check" ,check) ; for testing
6618 ("elogind" ,elogind)
def6d6b6 6619 ("gnome-session" ,gnome-session)
69544798 6620 ("gnome-settings-daemon" ,gnome-settings-daemon)
df12f04a
SB
6621 ("gtk+" ,gtk+)
6622 ("iso-codes" ,iso-codes)
6623 ("libcanberra" ,libcanberra)
6624 ("linux-pam" ,linux-pam)))
6625 (synopsis "Display manager for GNOME")
f032d0be 6626 (home-page "https://wiki.gnome.org/Projects/GDM/")
df12f04a
SB
6627 (description
6628 "GNOME Display Manager is a system service that is responsible for
6629providing graphical log-ins and managing local and remote displays.")
6630 (license license:gpl2+)))
8e1dd04f
SB
6631
6632(define-public libgtop
6633 (package
6634 (name "libgtop")
015fc036 6635 (version "2.40.0")
8e1dd04f
SB
6636 (source (origin
6637 (method url-fetch)
59487fc2 6638 (uri (string-append "mirror://gnome/sources/libgtop/"
8e1dd04f 6639 (version-major+minor version) "/"
59487fc2 6640 "libgtop-" version ".tar.xz"))
8e1dd04f
SB
6641 (sha256
6642 (base32
015fc036 6643 "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq"))))
8e1dd04f
SB
6644 (build-system gnu-build-system)
6645 (native-inputs
6646 `(("gobject-introspection" ,gobject-introspection)
6647 ("intltool" ,intltool)
6648 ("perl" ,perl)
6649 ("pkg-config" ,pkg-config)))
6650 (propagated-inputs
6651 `(("glib" ,glib))) ; required by libgtop-2.0.pc
6652 (synopsis "Portable system access library")
6653 (home-page "https://www.gnome.org/")
6654 (description
6655 "LibGTop is a library to get system specific data such as CPU and memory
6656usage and information about running processes.")
6657 (license license:gpl2+)))
b96c4260
SB
6658
6659(define-public gnome-bluetooth
6660 (package
6661 (name "gnome-bluetooth")
723afae6 6662 (version "3.32.1")
b96c4260
SB
6663 (source (origin
6664 (method url-fetch)
6665 (uri (string-append "mirror://gnome/sources/" name "/"
6666 (version-major+minor version) "/"
6667 name "-" version ".tar.xz"))
6668 (sha256
6669 (base32
723afae6 6670 "1am1gf0nzwg6x1s8ly13j0xnjzgrfj06j0dp52x4zy9s67ywlhb4"))))
fd3b1171 6671 (build-system meson-build-system)
b96c4260
SB
6672 (native-inputs
6673 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
fd3b1171 6674 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
b96c4260
SB
6675 ("gobject-introspection" ,gobject-introspection)
6676 ("intltool" ,intltool)
6677 ("pkg-config" ,pkg-config)
6678 ("xmllint" ,libxml2)))
6679 (propagated-inputs
6680 ;; gnome-bluetooth-1.0.pc refers to all these.
723afae6
KK
6681 `(("glib" ,glib)
6682 ("gtk+" ,gtk+)))
b96c4260 6683 (inputs
723afae6
KK
6684 `(("eudev" ,eudev)
6685 ("libcanberra" ,libcanberra)
b96c4260
SB
6686 ("libnotify" ,libnotify)))
6687 (synopsis "GNOME Bluetooth subsystem")
6688 (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
6689 (description
6690 "This package contains tools for managing and manipulating Bluetooth
6691devices using the GNOME desktop.")
6692 (license license:lgpl2.1+)))
b645146f
SB
6693
6694(define-public gnome-control-center
6695 (package
6696 (name "gnome-control-center")
a6938bac 6697 (version "3.32.2")
b645146f
SB
6698 (source (origin
6699 (method url-fetch)
6700 (uri (string-append "mirror://gnome/sources/" name "/"
6701 (version-major+minor version) "/"
6702 name "-" version ".tar.xz"))
6703 (sha256
6704 (base32
a6938bac 6705 "03np0mhfl9kkdw4cb711pda0cli9zgh2bq2gqn2zwbdi3qnhk9gs"))))
59dac026 6706 (build-system meson-build-system)
b645146f 6707 (arguments
59dac026
RW
6708 '(#:glib-or-gtk? #t
6709 #:configure-flags
64c70430
KK
6710 (list "-Dcheese=false"
6711 (string-append "-Dgnome_session_libexecdir="
6712 (assoc-ref %build-inputs "gnome-session")
6713 "/libexec"))
59dac026 6714 #:phases
b645146f
SB
6715 (modify-phases %standard-phases
6716 (add-before 'configure 'patch-paths
6717 (lambda* (#:key inputs #:allow-other-keys)
6718 (let ((libc (assoc-ref inputs "libc"))
1df38cfc 6719 (tzdata (assoc-ref inputs "tzdata"))
341225ac 6720 (libgnomekbd (assoc-ref inputs "libgnomekbd"))
64c70430
KK
6721 (nm-applet (assoc-ref inputs "network-manager-applet"))
6722 (gnome-desktop (assoc-ref inputs "gnome-desktop")))
b645146f
SB
6723 (substitute* "panels/datetime/tz.h"
6724 (("/usr/share/zoneinfo/zone.tab")
6725 (string-append tzdata "/share/zoneinfo/zone.tab")))
982c0b36 6726 (substitute* "tests/datetime/test-endianess.c"
b645146f
SB
6727 (("/usr/share/locale")
6728 (string-append libc "/share/locale")))
1df38cfc
LC
6729 (substitute* "panels/region/cc-region-panel.c"
6730 (("\"gkbd-keyboard-display")
6731 (string-append "\"" libgnomekbd
6732 "/bin/gkbd-keyboard-display")))
341225ac
LC
6733 (substitute* '("panels/network/net-device-wifi.c"
6734 "panels/network/net-device.c"
6735 "panels/network/connection-editor/net-connection-editor.c")
6736 (("\"nm-connection-editor")
6737 (string-append "\"" nm-applet
6738 "/bin/nm-connection-editor")))
1acd107c
FP
6739 (substitute* '("panels/user-accounts/run-passwd.c")
6740 (("/usr/bin/passwd")
6741 "/run/setuid-programs/passwd"))
64c70430
KK
6742 (substitute* "panels/info/cc-info-overview-panel.c"
6743 (("DATADIR \"/gnome/gnome-version.xml\"")
6744 (string-append "\"" gnome-desktop
6745 "/share/gnome/gnome-version.xml\"")))
b645146f
SB
6746 #t))))))
6747 (native-inputs
6748 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
59dac026 6749 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
b645146f
SB
6750 ("intltool" ,intltool)
6751 ("pkg-config" ,pkg-config)
a6938bac
KK
6752 ("xsltproc" ,libxslt)
6753 ;; For tests
6754 ("hicolor-icon-theme" ,hicolor-icon-theme)
6755 ("python-dbusmock" ,python-dbusmock)
6756 ("xorg-server" ,xorg-server-for-tests)))
b645146f
SB
6757 (inputs
6758 `(("accountsservice" ,accountsservice)
6759 ("clutter-gtk" ,clutter-gtk)
6760 ("colord-gtk" ,colord-gtk)
6761 ("cups" ,cups)
6762 ("dconf" ,dconf)
6763 ("docbook-xsl" ,docbook-xsl)
3446ffb5 6764 ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
b645146f
SB
6765 ("gnome-bluetooth" ,gnome-bluetooth)
6766 ("gnome-desktop" ,gnome-desktop)
6767 ("gnome-online-accounts" ,gnome-online-accounts)
14c297fd 6768 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
64c70430 6769 ("gnome-session" ,gnome-session)
b645146f
SB
6770 ("gnome-settings-daemon" ,gnome-settings-daemon)
6771 ("grilo" ,grilo)
a6938bac 6772 ("gsound" ,gsound)
b645146f
SB
6773 ("ibus" ,ibus)
6774 ("libcanberra" ,libcanberra)
1df38cfc 6775 ("libgnomekbd" ,libgnomekbd)
b645146f
SB
6776 ("libgudev" ,libgudev)
6777 ("libgtop" ,libgtop)
6778 ("libpwquality" ,libpwquality)
982c0b36 6779 ("libsecret" ,libsecret)
b645146f
SB
6780 ("libsoup" ,libsoup)
6781 ("libxml2" ,libxml2)
6782 ("libwacom" ,libwacom)
6783 ("mesa" ,mesa)
6784 ("mit-krb5" ,mit-krb5)
6785 ("modem-manager" ,modem-manager)
6786 ("network-manager-applet" ,network-manager-applet)
6787 ("polkit" ,polkit)
6788 ("pulseaudio" ,pulseaudio)
6789 ("smbclient" ,samba)
6790 ("tzdata" ,tzdata)
982c0b36 6791 ("udisks" ,udisks)
b645146f
SB
6792 ("upower" ,upower)))
6793 (synopsis "Utilities to configure the GNOME desktop")
6794 (home-page "https://www.gnome.org/")
6795 (description
6796 "This package contains configuration applets for the GNOME desktop,
6797allowing to set accessibility configuration, desktop fonts, keyboard and mouse
6798properties, sound setup, desktop theme and background, user interface
6799properties, screen resolution, and other GNOME parameters.")
6800 (license license:gpl2+)))
a4df5756
SB
6801
6802(define-public gnome-shell
6803 (package
6804 (name "gnome-shell")
d5e615ca 6805 (version "3.32.2")
a4df5756
SB
6806 (source (origin
6807 (method url-fetch)
6808 (uri (string-append "mirror://gnome/sources/" name "/"
6809 (version-major+minor version) "/"
6810 name "-" version ".tar.xz"))
6811 (sha256
6812 (base32
d5e615ca 6813 "0anlkdnqsp5fqvmg95rqjpp1ifcx5xzsvwcrdsvb1cqzbh6inmp5"))
a76d0f03
LC
6814 (patches (search-patches "gnome-shell-theme.patch"))
6815 (modules '((guix build utils)))
6816 (snippet
6817 #~(begin
a76d0f03
LC
6818 ;; Copy images for use on the GDM log-in screen.
6819 (copy-file #$(file-append %artwork-repository
6820 "/slim/0.x/background.png")
6821 "data/theme/guix-background.png")
45fef894
LC
6822 (copy-file #$(file-append %artwork-repository
6823 "/logo/Guix-horizontal-white.svg")
6824 "data/theme/guix-logo.svg")
a76d0f03 6825 #t))))
2b0c755d 6826 (build-system meson-build-system)
a4df5756 6827 (arguments
08185081
MB
6828 `(#:glib-or-gtk? #t
6829 #:disallowed-references ((,glib "bin")
11e1df56
LC
6830 ,inkscape ,libxslt
6831 ,ruby-sass)
2b0c755d
RW
6832 #:configure-flags
6833 (list "-Dsystemd=false"
6834 ;; Otherwise, the RUNPATH will lack the final path component.
6835 (string-append "-Dc_link_args=-Wl,-rpath="
6836 (assoc-ref %outputs "out")
6837 "/lib/gnome-shell"))
11e1df56 6838
08185081 6839 #:modules ((guix build meson-build-system)
11e1df56
LC
6840 (guix build utils)
6841 (srfi srfi-1))
6842
2b0c755d 6843 #:phases
a4df5756 6844 (modify-phases %standard-phases
2b0c755d 6845 (add-after 'unpack 'fix-keysdir
a4df5756
SB
6846 (lambda* (#:key outputs #:allow-other-keys)
6847 (let* ((out (assoc-ref outputs "out"))
6848 (keysdir (string-append
6849 out "/share/gnome-control-center/keybindings")))
2b0c755d
RW
6850 (substitute* "meson.build"
6851 (("keysdir =.*")
6852 (string-append "keysdir = '" keysdir "'\n")))
6853 #t)))
ebfe259f
MB
6854 (add-before 'configure 'convert-logo-to-png
6855 (lambda* (#:key inputs #:allow-other-keys)
6856 ;; Convert the logo from SVG to PNG.
6857 (invoke "inkscape" "--export-png=data/theme/guix-logo.png"
6858 "data/theme/guix-logo.svg")))
ba00235a 6859 (add-before 'configure 'record-absolute-file-names
2472cdec
LC
6860 (lambda* (#:key inputs #:allow-other-keys)
6861 (substitute* "js/misc/ibusManager.js"
6862 (("'ibus-daemon'")
6863 (string-append "'" (assoc-ref inputs "ibus")
6864 "/bin/ibus-daemon'")))
d6fda4d3
LC
6865 (substitute* "js/ui/status/keyboard.js"
6866 (("'gkbd-keyboard-display'")
6867 (string-append "'" (assoc-ref inputs "libgnomekbd")
6868 "/bin/gkbd-keyboard-display'")))
2472cdec 6869 #t))
2b0c755d
RW
6870 (add-before 'check 'pre-check
6871 (lambda* (#:key inputs #:allow-other-keys)
6872 ;; Tests require a running X server.
6873 (system "Xvfb :1 &")
6874 (setenv "DISPLAY" ":1")
6875 #t))
6876 (add-after 'install 'wrap-programs
6877 (lambda* (#:key inputs outputs #:allow-other-keys)
6878 (let ((out (assoc-ref outputs "out"))
6879 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6880 (python-path (getenv "PYTHONPATH")))
6881 (wrap-program (string-append out "/bin/gnome-shell")
6882 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6883 ;; FIXME: gnome-shell loads these libraries with unqualified
6884 ;; names only, so they need to be on LD_LIBRARY_PATH. The
6885 ;; alternative might be to patch gnome-shell.
6886 `("LD_LIBRARY_PATH" ":" prefix
6887 ,(map (lambda (pkg)
6888 (string-append (assoc-ref inputs pkg) "/lib"))
cd8dce8a
RW
6889 '("gdk-pixbuf"
6890 "gnome-bluetooth" "librsvg" "libgweather"))))
2b0c755d
RW
6891 (for-each
6892 (lambda (prog)
6893 (wrap-program (string-append out "/bin/" prog)
6894 `("PYTHONPATH" ":" prefix (,python-path))
6895 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6896 '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
08185081 6897 #t)))
11e1df56
LC
6898 (replace 'glib-or-gtk-wrap
6899 (let ((wrap (assoc-ref %standard-phases 'glib-or-gtk-wrap)))
6900 (lambda* (#:key inputs outputs #:allow-other-keys #:rest rest)
6901 ;; By default Inkscape et al. would end up in the XDG_DATA_DIRS
6902 ;; settings of the wrappers created by the 'glib-or-gtk-wrap'
6903 ;; phase. Fix that since we don't need these.
6904 (wrap #:inputs (fold alist-delete inputs
6905 '("inkscape" "intltool" "glib:bin"))
6906 #:outputs outputs)))))))
a4df5756
SB
6907 (native-inputs
6908 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
2b0c755d 6909 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
a4df5756 6910 ("gobject-introspection" ,gobject-introspection)
ebfe259f 6911 ("inkscape" ,inkscape)
a4df5756
SB
6912 ("intltool" ,intltool)
6913 ("pkg-config" ,pkg-config)
6914 ("python" ,python)
2b0c755d
RW
6915 ("ruby-sass" ,ruby-sass)
6916 ("sassc" ,sassc)
a76d0f03 6917 ("xsltproc" ,libxslt)
2b0c755d 6918 ;; For tests
0b4504f6 6919 ("xorg-server" ,xorg-server-for-tests)))
a4df5756
SB
6920 (inputs
6921 `(("accountsservice" ,accountsservice)
6922 ("caribou" ,caribou)
6923 ("docbook-xsl" ,docbook-xsl)
6924 ("evolution-data-server" ,evolution-data-server)
6925 ("gcr" ,gcr)
6926 ("gdm" ,gdm)
c5db31d4 6927 ("gdk-pixbuf" ,gdk-pixbuf+svg)
a4df5756
SB
6928 ("gjs" ,gjs)
6929 ("gnome-bluetooth" ,gnome-bluetooth)
a4df5756
SB
6930 ("gnome-desktop" ,gnome-desktop)
6931 ("gnome-settings-daemon" ,gnome-settings-daemon)
6932 ("gst-plugins-base" ,gst-plugins-base)
6933 ("ibus" ,ibus)
6934 ("libcanberra" ,libcanberra)
6935 ("libcroco" ,libcroco)
d6fda4d3 6936 ("libgnomekbd" ,libgnomekbd) ;for gkbd-keyboard-display
a4df5756
SB
6937 ("libgweather" ,libgweather)
6938 ("libsoup" ,libsoup)
6939 ("mesa-headers" ,mesa-headers)
6940 ("mutter" ,mutter)
6941 ("network-manager-applet" ,network-manager-applet)
6942 ("polkit" ,polkit)
6943 ("pulseaudio" ,pulseaudio)
6944 ("python-pygobject" ,python-pygobject)
6945 ("startup-notification" ,startup-notification)
6946 ("telepathy-logger" ,telepathy-logger)
6947 ("upower" ,upower)
30e760f0
MB
6948 ;; XXX: These requirements were added in 3.24, but no mention in NEWS.
6949 ;; Missing propagation? See also: <https://bugs.gnu.org/27264>
6950 ("librsvg" ,librsvg)
2b0c755d 6951 ("geoclue" ,geoclue)))
a4df5756
SB
6952 (synopsis "Desktop shell for GNOME")
6953 (home-page "https://wiki.gnome.org/Projects/GnomeShell")
6954 (description
6955 "GNOME Shell provides core user interface functions for the GNOME desktop,
6956like switching to windows and launching applications.")
6957 (license license:gpl2+)))
c3f29bc9
RS
6958
6959(define-public gtk-vnc
6960 (package
6961 (name "gtk-vnc")
965ff023 6962 (version "0.9.0")
c3f29bc9
RS
6963 (source
6964 (origin
6965 (method url-fetch)
6966 (uri (string-append "mirror://gnome/sources/" name "/"
6967 (version-major+minor version) "/"
6968 name "-" version ".tar.xz"))
6969 (sha256
6970 (base32
965ff023 6971 "1dya1wc9vis8h0fv625pii1n70cckf1xjg1m2hndz989d118i6is"))))
c3f29bc9
RS
6972 (build-system gnu-build-system)
6973 (arguments
6974 '(#:configure-flags '("--with-gtk=3.0")))
6975 (propagated-inputs
6976 `(("gtk+" ,gtk+))) ; required by gtk-vnc-2.0.pc.
6977 (inputs
6978 `(("cyrus-sasl" ,cyrus-sasl)
6979 ("gnutls" ,gnutls)
6980 ("libgcrypt" ,libgcrypt)
6981 ("pulseaudio" ,pulseaudio)))
6982 (native-inputs
6983 `(("glib:bin" ,glib "bin")
6984 ("gobject-introspection" ,gobject-introspection)
6985 ("intltool" ,intltool)
6986 ("pkg-config" ,pkg-config)
2f17e939 6987 ("python-wrapper" ,python-wrapper)
c3f29bc9
RS
6988 ("vala" ,vala)))
6989 (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
6990 (synopsis "VNC viewer widget for GTK+")
6991 (description
6992 "GTK-VNC is a VNC viewer widget for GTK+, used by remote desktop viewing
6993applications, for instance the Vinagre client, GNOME Boxes and virt-viewer.
6994GTK-VNC implements client side RFB protocol and authentication extensions such
6995as SASL, TLS and VeNCrypt. Additionally it supports encoding extensions.")
6996 (license license:lgpl2.1+)))
8b877545 6997
dc69fe18
MW
6998(define-public gnome-autoar
6999 (package
7000 (name "gnome-autoar")
c7da8510 7001 (version "0.2.3")
dc69fe18
MW
7002 (source (origin
7003 (method url-fetch)
7004 (uri (string-append "mirror://gnome/sources/" name "/"
7005 (version-major+minor version) "/"
7006 name "-" version ".tar.xz"))
7007 (sha256
7008 (base32
c7da8510 7009 "02i4zgqqqj56h7bcys6dz7n78m4nj2x4dv1ggjmnrk98n06xpsax"))))
dc69fe18
MW
7010 (build-system glib-or-gtk-build-system)
7011 (native-inputs
7012 `(("gnome-common" ,gnome-common)
7013 ("gobject-introspection" ,gobject-introspection)
7014 ("pkg-config" ,pkg-config)))
7015 (propagated-inputs
7016 `(("libarchive" ,libarchive))) ; XXX document why
7017 (inputs
0a6e9e13 7018 `(("gtk+" ,gtk+)))
dc69fe18
MW
7019 (synopsis "Archives integration support for GNOME")
7020 (home-page "https://git.gnome.org/browse/gnome-autoar/")
7021 (description
7022 "GNOME Autoar is a library which makes creating and extracting archives
7023easy, safe, and automatic.")
7024 (license license:lgpl2.1+)))
7025
b64e217f
MW
7026(define-public tracker
7027 (package
7028 (name "tracker")
5ada561c 7029 (version "2.2.2")
b64e217f
MW
7030 (source (origin
7031 (method url-fetch)
b5b0fd23 7032 (uri (string-append "mirror://gnome/sources/tracker/"
b64e217f 7033 (version-major+minor version) "/"
b5b0fd23 7034 "tracker-" version ".tar.xz"))
b64e217f
MW
7035 (sha256
7036 (base32
5ada561c
KK
7037 "1rp2c6k7ajcm553p9kpni87zgi9aplm3s01rl7pk575az5i399y6"))))
7038 (build-system meson-build-system)
c8bdf589 7039 (arguments
5ada561c
KK
7040 `(#:glib-or-gtk? #t
7041 #:configure-flags
7042 ;; Otherwise, the RUNPATH will lack the final path component.
7043 (list (string-append "-Dc_link_args=-Wl,-rpath="
7044 (assoc-ref %outputs "out") "/lib:"
7045 (assoc-ref %outputs "out") "/lib/tracker-2.0"))
7046 #:phases
c8bdf589
RW
7047 (modify-phases %standard-phases
7048 (add-after 'unpack 'disable-broken-tests
7049 (lambda _
c8bdf589
RW
7050 ;; These fail because the SPARQL backend could not be loaded.
7051 ;; That's because /etc/machine-id is missing, but
7052 ;; DBUS_FATAL_WARNINGS does not help here.
5ada561c
KK
7053 (substitute* "tests/libtracker-sparql/meson.build"
7054 (("'sparql',") ""))
7055 (substitute* "tests/tracker-steroids/meson.build"
7056 (("test\\(.*") ""))
c8bdf589
RW
7057 #t))
7058 ;; Two tests fail if LANG is not set.
7059 (add-before 'check 'pre-check
7060 (lambda _
7061 (setenv "LANG" "en_US.UTF-8")
7062 ;; For the missing /etc/machine-id.
7063 (setenv "DBUS_FATAL_WARNINGS" "0")
7064 #t)))))
b64e217f 7065 (native-inputs
5ada561c
KK
7066 `(("glib:bin" ,glib "bin")
7067 ("gnome-common" ,gnome-common)
b64e217f 7068 ("gobject-introspection" ,gobject-introspection)
5ada561c 7069 ("python-pygobject" ,python-pygobject)
b64e217f
MW
7070 ("intltool" ,intltool)
7071 ("pkg-config" ,pkg-config)
7072 ("vala" ,vala)))
7073 (inputs
7074 `(("gtk+" ,gtk+)
7075 ("dbus" ,dbus)
44ed6284 7076 ("sqlite" ,sqlite)
c8bdf589 7077 ("python" ,python)
b64e217f 7078 ("poppler" ,poppler)
b64e217f
MW
7079 ("libpng" ,libpng)
7080 ("libtiff" ,libtiff)
b64e217f 7081 ("zlib" ,zlib)
b64e217f 7082 ("libxml2" ,libxml2)
b64e217f 7083 ("libunistring" ,libunistring)
0ef48cd9 7084 ("json-glib" ,json-glib)
b64e217f 7085 ("openjpeg" ,openjpeg-1)
b64e217f 7086 ("libseccomp" ,libseccomp)
0ef48cd9 7087 ("libsoup" ,libsoup)
5ada561c
KK
7088 ("libuuid" ,util-linux)
7089 ("network-manager" ,network-manager)))
b64e217f
MW
7090 (synopsis "Metadata database, indexer and search tool")
7091 (home-page "https://wiki.gnome.org/Projects/Tracker")
7092 (description
7093 "Tracker is an advanced framework for first class objects with associated
7094metadata and tags. It provides a one stop solution for all metadata, tags,
7095shared object databases, search tools and indexing.")
7096 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
7097 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
7098 (license (list license:gpl2+
7099 license:lgpl2.1+
7100 license:lgpl2.0+))))
7101
03be9874
KK
7102(define-public tracker-miners
7103 (package
7104 (name "tracker-miners")
7105 (version "2.2.2")
7106 (source (origin
7107 (method url-fetch)
7108 (uri (string-append "mirror://gnome/sources/tracker-miners/"
7109 (version-major+minor version)
7110 "/tracker-miners-" version ".tar.xz"))
7111 (sha256
7112 (base32
7113 "0kk5xaajamb8jlm6cfdbc2m3axzr6bnph84m7697xmb0pkg8hdiw"))))
7114 (build-system meson-build-system)
7115 (arguments
7116 `(#:glib-or-gtk? #t
7117 #:configure-flags
7118 (list "-Dminer_rss=false" ; libgrss is required.
7119 ;; Ensure the RUNPATH contains all installed library locations.
7120 (string-append "-Dc_link_args=-Wl,-rpath="
7121 (assoc-ref %outputs "out")
7122 "/lib/tracker-miners-2.0")
7123 ;; TODO: Enable functional tests. Currently, the following error
7124 ;; appears:
7125 ;; Exception: The functional tests require DConf to be the default
7126 ;; GSettings backend. Got GKeyfileSettingsBackend instead.
7127 "-Dfunctional_tests=false")))
7128 (native-inputs
7129 `(("dbus" ,dbus)
7130 ("intltool" ,intltool)
7131 ("glib:bin" ,glib "bin")
7132 ("gobject-introspection" ,gobject-introspection)
7133 ("pkg-config" ,pkg-config)
7134 ("python-pygobject" ,python-pygobject)))
7135 (inputs
7136 `(("exempi" ,exempi)
7137 ("ffmpeg" ,ffmpeg)
7138 ("flac" ,flac)
7139 ("giflib" ,giflib)
7140 ("glib" ,glib)
7141 ("gstreamer" ,gstreamer)
7142 ("icu4c" ,icu4c)
7143 ("libcue" ,libcue)
7144 ("libexif" ,libexif)
7145 ("libgsf" ,libgsf)
7146 ("libgxps" ,libgxps)
7147 ("libiptcdata" ,libiptcdata)
7148 ("libjpeg" ,libjpeg)
7149 ("libosinfo" ,libosinfo)
7150 ("libpng" ,libpng)
7151 ("libseccomp" ,libseccomp)
7152 ("libtiff" ,libtiff)
7153 ("libvorbis" ,libvorbis)
7154 ("libxml2" ,libxml2)
7155 ("poppler" ,poppler)
7156 ("taglib" ,taglib)
7157 ("totem-pl-parser" ,totem-pl-parser)
7158 ("tracker" ,tracker)
7159 ("upower" ,upower)
7160 ("zlib" ,zlib)))
7161 (synopsis "Metadata database, indexer and search tool")
7162 (home-page "https://wiki.gnome.org/Projects/Tracker")
7163 (description
7164 "Tracker is an advanced framework for first class objects with associated
7165metadata and tags. It provides a one stop solution for all metadata, tags,
7166shared object databases, search tools and indexing.")
7167 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
7168 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
7169 (license (list license:gpl2+
7170 license:lgpl2.1+
7171 license:lgpl2.0+))))
7172
8b877545
RS
7173(define-public nautilus
7174 (package
7175 (name "nautilus")
d682c599 7176 (version "3.32.3")
8b877545
RS
7177 (source (origin
7178 (method url-fetch)
7179 (uri (string-append "mirror://gnome/sources/" name "/"
7180 (version-major+minor version) "/"
7181 name "-" version ".tar.xz"))
7182 (sha256
7183 (base32
d682c599 7184 "1x9crzbj6rrrf8w5dkcx0c14j40byr4ijpzkwd5dcrbfvvdy1r01"))))
35e2d0cf 7185 (build-system meson-build-system)
8b877545 7186 (arguments
35e2d0cf 7187 '(#:glib-or-gtk? #t
8b877545
RS
7188 ;; XXX: FAIL: check-nautilus
7189 ;; Settings schema 'org.gnome.nautilus.preferences' is not installed
7190 #:tests? #f))
7191 (native-inputs
35e2d0cf
R
7192 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7193 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
7194 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8b877545
RS
7195 ("gobject-introspection" ,gobject-introspection)
7196 ("intltool" ,intltool)
7197 ("pkg-config" ,pkg-config)))
8b877545 7198 (inputs
8b877545 7199 `(("dconf" ,dconf)
caf6c363 7200 ("gexiv2" ,gexiv2)
dd05e731 7201 ("gvfs" ,gvfs)
8b877545
RS
7202 ("exempi" ,exempi)
7203 ("gnome-desktop" ,gnome-desktop)
09d88905 7204 ("gnome-autoar" ,gnome-autoar)
3cafb9d4 7205 ("gst-plugins-base" ,gst-plugins-base)
ec66ebd4 7206 ("libseccomp" ,libseccomp)
35e2d0cf 7207 ("libselinux" ,libselinux)
09d88905 7208 ("tracker" ,tracker)
3cafb9d4 7209 ("tracker-miners" ,tracker-miners)
ce6027bf
SB
7210 ;; XXX: gtk+ is required by libnautilus-extension.pc
7211 ;;
7212 ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
7213 ;; package. See:
7214 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
7215 ("gtk+" ,gtk+)
8b877545
RS
7216 ("libexif" ,libexif)
7217 ("libxml2" ,libxml2)))
7218 (synopsis "File manager for GNOME")
7219 (home-page "https://wiki.gnome.org/Apps/Nautilus")
7220 (description
7221 "Nautilus (Files) is a file manager designed to fit the GNOME desktop
7222design and behaviour, giving the user a simple way to navigate and manage its
7223files.")
7224 (license license:gpl2+)))
3c697ffd
JR
7225
7226(define-public baobab
7227 (package
7228 (name "baobab")
e0c5f20c 7229 (version "3.32.0")
3c697ffd
JR
7230 (source (origin
7231 (method url-fetch)
7232 (uri (string-append
7233 "mirror://gnome/sources/" name "/"
7234 (version-major+minor version) "/"
7235 name "-" version ".tar.xz"))
7236 (sha256
7237 (base32
e0c5f20c 7238 "0b33s9bhpiffv5wl76cq2bbnqhvx3qs2vxyxmil5gcs583llqh9r"))))
d233d373
RJ
7239 (build-system meson-build-system)
7240 (arguments
7241 '(#:glib-or-gtk? #t))
3c697ffd
JR
7242 (native-inputs
7243 `(("intltool" ,intltool)
7244 ("pkg-config" ,pkg-config)
d233d373
RJ
7245 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7246 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
3c697ffd
JR
7247 ("itstool" ,itstool)
7248 ("xmllint" ,libxml2)
7249 ("glib" ,glib "bin")
7250 ("vala" ,vala)))
7251 (inputs
7252 `(("gtk+" ,gtk+)))
7253 (synopsis "Disk usage analyzer for GNOME")
7254 (description
7255 "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
7256usage in the GNOME desktop environment. It can easily scan device volumes or
7257a specific user-requested directory branch (local or remote). Once the scan
7258is complete it provides a graphical representation of each selected folder.")
7259 (home-page "https://wiki.gnome.org/Apps/Baobab")
7260 (license license:gpl2+)))
dc050251 7261
fdba447c
RS
7262(define-public gnome-backgrounds
7263 (package
7264 (name "gnome-backgrounds")
e04e8a8c 7265 (version "3.32.0")
fdba447c
RS
7266 (source
7267 (origin
7268 (method url-fetch)
7269 (uri (string-append "mirror://gnome/sources/" name "/"
7270 (version-major+minor version) "/"
7271 name "-" version ".tar.xz"))
7272 (sha256
7273 (base32
e04e8a8c 7274 "1s5krdmd3md44p1fgr2lqm5ifxb8s1vzx6hm11sb4cgzr4dw6lrz"))))
9ca381f0 7275 (build-system meson-build-system)
fdba447c
RS
7276 (native-inputs
7277 `(("intltool" ,intltool)))
e04e8a8c 7278 (home-page "https://gitlab.gnome.org/GNOME/gnome-backgrounds")
fdba447c
RS
7279 (synopsis "Background images for the GNOME desktop")
7280 (description
7281 "GNOME backgrounds package contains a collection of graphics files which
7282can be used as backgrounds in the GNOME Desktop environment. Additionally,
7283the package creates the proper framework and directory structure so that you
7284can add your own files to the collection.")
7285 (license (list license:gpl2+
7286 license:cc-by2.0
7287 license:cc-by-sa2.0
7288 license:cc-by-sa3.0))))
7289
b784b1a9
RS
7290(define-public gnome-screenshot
7291 (package
7292 (name "gnome-screenshot")
6acf4033 7293 (version "3.32.0")
b784b1a9
RS
7294 (source
7295 (origin
7296 (method url-fetch)
7297 (uri (string-append "mirror://gnome/sources/" name "/"
7298 (version-major+minor version) "/"
7299 name "-" version ".tar.xz"))
7300 (sha256
7301 (base32
6acf4033 7302 "09ha7dizjm5ymqpjyrqd10ijfb3xlqc1mwg9ajkrbfry11q9yq4b"))))
8356aefa 7303 (build-system meson-build-system)
b784b1a9
RS
7304 (native-inputs
7305 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8356aefa
RW
7306 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
7307 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
b784b1a9 7308 ("intltool" ,intltool)
8356aefa 7309 ("appstream-glib" ,appstream-glib)
b784b1a9
RS
7310 ("pkg-config" ,pkg-config)))
7311 (inputs
7312 `(("gtk+" ,gtk+)
7313 ("libcanberra" ,libcanberra)
7314 ("libx11" ,libx11)
7315 ("libxext" ,libxext)))
676e7cb4 7316 (home-page "https://gitlab.gnome.org/GNOME/gnome-screenshot")
b784b1a9
RS
7317 (synopsis "Take pictures of your screen")
7318 (description
7319 "GNOME Screenshot is a utility used for taking screenshots of the entire
7320screen, a window or a user defined area of the screen, with optional
7321beautifying border effects.")
7322 (license license:gpl2+)))
7323
66d59111
RS
7324(define-public dconf-editor
7325 (package
7326 (name "dconf-editor")
66261451 7327 (version "3.32.0")
66d59111
RS
7328 (source
7329 (origin
7330 (method url-fetch)
7331 (uri (string-append "mirror://gnome/sources/" name "/"
7332 (version-major+minor version) "/"
7333 name "-" version ".tar.xz"))
7334 (sha256
7335 (base32
66261451 7336 "1fmsmlh16njjm948grz20mzrsvb4wjj7pl1fvkrkxqi7mhr177gi"))))
294ff39d 7337 (build-system meson-build-system)
86f2124b
LC
7338 (arguments
7339 '(#:phases (modify-phases %standard-phases
7340 (add-before 'configure 'set-glib-minimum-version
7341 (lambda _
7342 ;; Change the minimum required GLib version so that
7343 ;; 'valac' is passed '--target-glib 2.60.0'; failing to
7344 ;; do that, it complains that "55" is not an even
7345 ;; number. See <https://bugs.gnu.org/37503>.
7346 (substitute* "editor/meson.build"
7347 (("2\\.55\\.1") "2.60.0"))
7348 #t)))))
66d59111
RS
7349 (native-inputs
7350 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
294ff39d 7351 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
66d59111 7352 ("intltool" ,intltool)
294ff39d
RW
7353 ("pkg-config" ,pkg-config)
7354 ("vala" ,vala)))
66d59111
RS
7355 (inputs
7356 `(("dconf" ,dconf)
7357 ("gtk+" ,gtk+)
7358 ("libxml2" ,libxml2)))
7359 (home-page "https://git.gnome.org/browse/dconf-editor")
7360 (synopsis "Graphical editor for GNOME's dconf configuration system")
7361 (description
7362 "Dconf-editor is a graphical tool for browsing and editing the dconf
7363configuration system for GNOME. It allows users to configure desktop
7364software that do not provide their own configuration interface.")
7365 (license license:lgpl2.1+)))
7366
96d36f38
AW
7367(define-public gnome-default-applications
7368 (package
7369 (name "gnome-default-applications")
7370 (version "0")
7371 (build-system trivial-build-system)
7372 (source #f)
7373 (propagated-inputs
8ad4f0aa
LC
7374 `(("nautilus" ,nautilus)
7375 ("evince" ,evince)))
96d36f38
AW
7376 (arguments
7377 `(#:modules ((guix build utils))
7378 #:builder
7379 (begin
7380 (use-modules (guix build utils))
7381 (let* ((out (assoc-ref %outputs "out"))
7382 (apps (string-append out "/share/applications")))
7383 (mkdir-p apps)
7384 (call-with-output-file (string-append apps "/defaults.list")
7385 (lambda (port)
7386 (format port "[Default Applications]\n")
8ad4f0aa
LC
7387 (format port "inode/directory=org.gnome.Nautilus.desktop\n")
7388 (format port "application/pdf=evince.desktop\n")
7389 (format port "application/postscript=evince.desktop\n")))
96d36f38
AW
7390 #t))))
7391 (synopsis "Default MIME type associations for the GNOME desktop")
7392 (description
7393 "Given many installed packages which might handle a given MIME type, a
7394user running the GNOME desktop probably has some preferences: for example,
7395that folders be opened by default by the Nautilus file manager, not the Baobab
7396disk usage analyzer. This package establishes that set of default MIME type
7397associations for GNOME.")
7398 (license license:gpl3+)
7399 (home-page #f)))
7400
dc050251
SB
7401(define-public gnome
7402 (package
7403 (name "gnome")
7404 (version (package-version gnome-shell))
7405 (source #f)
7406 (build-system trivial-build-system)
e3cfef22 7407 (arguments '(#:builder (begin (mkdir %output) #t)))
dc050251 7408 (propagated-inputs
8d8c6bff 7409 ;; TODO: Add or remove packages according to:
a8cda7f5 7410 ;; <https://calc.disroot.org/2nu6mpf88ynq.html>.
7922b6f7 7411 `(
8d8c6bff 7412 ;; GNOME-Core-OS-Services
7922b6f7 7413 ("accountsservice" ,accountsservice)
8d8c6bff
RG
7414 ("network-manager" ,network-manager)
7415 ("packagekit" ,packagekit)
7416 ("upower" ,upower)
7417 ;; GNOME-Core-Shell
7418 ("adwaita-icon-theme" ,adwaita-icon-theme)
7419 ("gdm" ,gdm)
7420 ("glib-networking" ,glib-networking)
7421 ("gnome-backgrounds" ,gnome-backgrounds)
7422 ("gnome-bluetooth" ,gnome-bluetooth)
7423 ("gnome-control-center" ,gnome-control-center)
7424 ("gnome-desktop" ,gnome-desktop)
7922b6f7 7425 ("gnome-getting-started-docs" ,gnome-getting-started-docs)
8d8c6bff 7426 ("gnome-keyring" ,gnome-keyring)
7922b6f7 7427 ("gnome-menus" ,gnome-menus)
8d8c6bff
RG
7428 ("gnome-session" ,gnome-session)
7429 ("gnome-settings-daemon" ,gnome-settings-daemon)
7430 ("gnome-shell-extensions" ,gnome-shell-extensions)
7431 ("gnome-shell" ,gnome-shell)
7432 ("gnome-themes-extra" ,gnome-themes-extra)
7922b6f7 7433 ("gnome-user-docs" ,gnome-user-docs)
a8cda7f5 7434 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8d8c6bff
RG
7435 ("gvfs" ,gvfs)
7436 ("mutter" ,mutter)
7437 ("orca" ,orca)
7438 ;; GNOME-Core-Utilities
7439 ("baobab" ,baobab)
7440 ("cheese" ,cheese)
7441 ("eog" ,eog)
7442 ("epiphany" ,epiphany)
7443 ("evince" ,evince)
7444 ("file-roller" ,file-roller)
7445 ("gedit" ,gedit)
7446 ("gnome-calculator" ,gnome-calculator)
7447 ("gnome-calendar" ,gnome-calendar)
7448 ("gnome-characters" ,gnome-characters)
7449 ("gnome-clocks" ,gnome-clocks)
7450 ("gnome-contacts" ,gnome-contacts)
7451 ("gnome-disk-utility" ,gnome-disk-utility)
7452 ("gnome-font-viewer" ,gnome-font-viewer)
7453 ("gnome-maps" ,gnome-maps)
7454 ("gnome-screenshot" ,gnome-screenshot)
7455 ("gnome-system-monitor" ,gnome-system-monitor)
7456 ("gnome-terminal" ,gnome-terminal)
7457 ("nautilus" ,nautilus)
7458 ("simple-scan" ,simple-scan)
7459 ("totem" ,totem)
7922b6f7
RG
7460 ("yelp" ,yelp)
7461 ;; Others
7462 ("hicolor-icon-theme" ,hicolor-icon-theme)
7463 ("gnome-online-accounts" ,gnome-online-accounts)))
fe4e698d 7464 (synopsis "The GNU desktop environment")
dc050251
SB
7465 (home-page "https://www.gnome.org/")
7466 (description
fe4e698d
LC
7467 "GNOME is the graphical desktop for GNU. It includes a wide variety of
7468applications for browsing the web, editing text and images, creating
7469documents and diagrams, playing media, scanning, and much more.")
dc050251 7470 (license license:gpl2+)))
4a526711
DT
7471
7472(define-public byzanz
7473 ;; The last stable release of Byzanz was in 2011, but there have been many
7474 ;; useful commits made to the Byzanz repository since then that it would be
7475 ;; silly to use such an old release.
7476 (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
7477 (package
7478 (name "byzanz")
7479 (version (string-append "0.2-1." (string-take commit 7)))
7480 (source (origin
7481 (method git-fetch)
7482 (uri (git-reference
5f13bf09 7483 (url "https://git.gnome.org/browse/byzanz")
4a526711 7484 (commit commit)))
5a6527e4 7485 (file-name (string-append name "-" version "-checkout"))
4a526711
DT
7486 (sha256
7487 (base32
7488 "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
7489 (build-system glib-or-gtk-build-system)
7490 (arguments
7491 '(#:phases
7492 (modify-phases %standard-phases
189be331 7493 (replace 'bootstrap
4a526711
DT
7494 (lambda _
7495 ;; The build system cleverly detects that we're not building from
7496 ;; a release tarball and turns on -Werror for GCC.
7497 ;; Unsurprisingly, there is a warning during compilation that
7498 ;; causes the build to fail unnecessarily, so we remove the flag.
7499 (substitute* '("configure.ac")
7500 (("-Werror") ""))
7501 ;; The autogen.sh script in gnome-common will run ./configure
7502 ;; by default, which is problematic because source shebangs
7503 ;; have not yet been patched.
7504 (setenv "NOCONFIGURE" "t")
7505 (zero? (system* "sh" "autogen.sh")))))))
7506 (native-inputs
7507 `(("autoconf" ,autoconf)
7508 ("automake" ,automake)
7509 ("gnome-common" ,gnome-common)
7510 ("intltool" ,intltool)
7511 ("libtool" ,libtool)
7512 ("pkg-config" ,pkg-config)
7513 ("which" ,which)))
7514 (inputs
7515 `(("glib" ,glib)
7516 ("gstreamer" ,gstreamer)
7517 ("gst-plugins-base" ,gst-plugins-base)
7518 ("gtk+" ,gtk+)))
7519 (synopsis "Desktop recording program")
7520 (description "Byzanz is a simple desktop recording program with a
7521command-line interface. It can record part or all of an X display for a
7522specified duration and save it as a GIF encoded animated image file.")
7523 (home-page "https://git.gnome.org/browse/byzanz")
7524 (license license:gpl2+))))
3a9a4c51 7525
0ec171ec
MS
7526(define-public gsound
7527 (package
7528 (name "gsound")
7529 (version "1.0.2")
7530 (source (origin
7531 (method url-fetch)
7532 (uri (string-append "mirror://gnome/sources/" name "/"
7533 (version-major+minor version) "/"
7534 name "-" version ".tar.xz"))
7535 (sha256
7536 (base32
7537 "0lwfwx2c99qrp08pfaj59pks5dphsnxjgrxyadz065d8xqqgza5v"))))
7538 (build-system glib-or-gtk-build-system)
7539 (native-inputs
7540 `(("pkg-config" ,pkg-config)
7541 ("gobject-introspection" ,gobject-introspection)
7542 ("vala" ,vala)))
7543 (inputs
7544 `(("glib" ,glib)
7545 ("libcanberra" ,libcanberra)))
7546 (home-page "https://wiki.gnome.org/Projects/GSound")
7547 (synopsis "GObject wrapper for libcanberra")
7548 (description
7549 "GSound is a small library for playing system sounds. It's designed to be
7550used via GObject Introspection, and is a thin wrapper around the libcanberra C
7551library.")
7552 (license license:lgpl2.1+)))
7553
3a9a4c51
RS
7554(define-public libzapojit
7555 (package
7556 (name "libzapojit")
7557 (version "0.0.3")
7558 (source (origin
7559 (method url-fetch)
7560 (uri (string-append "mirror://gnome/sources/" name "/"
7561 (version-major+minor version) "/"
7562 name "-" version ".tar.xz"))
7563 (sha256
7564 (base32
7565 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
7566 (build-system gnu-build-system)
7567 (native-inputs
7568 `(("gobject-introspection" ,gobject-introspection)
7569 ("intltool" ,intltool)
7570 ("pkg-config" ,pkg-config)))
7571 (inputs
14c297fd 7572 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
3a9a4c51
RS
7573 ("json-glib" ,json-glib)
7574 ("rest" ,rest)))
7575 (home-page "https://wiki.gnome.org/Projects/Zapojit")
7576 (synopsis "Library for accessing SkyDrive and Hotmail")
7577 (description
7578 "Libzapojit is a GLib-based library for accessing online service APIs of
7579Microsoft SkyDrive and Hotmail, using their REST protocols.")
7580 (license license:lgpl2.1+)))
9365ee1c 7581
60e2a9ae
MS
7582(define-public gnome-clocks
7583 (package
7584 (name "gnome-clocks")
c76d0dbc 7585 (version "3.32.0")
60e2a9ae
MS
7586 (source (origin
7587 (method url-fetch)
7588 (uri (string-append "mirror://gnome/sources/" name "/"
7589 (version-major+minor version) "/"
7590 name "-" version ".tar.xz"))
7591 (sha256
7592 (base32
c76d0dbc 7593 "1w6lgjdak3x76c9gyhd1lqrdmjfh8q77sjnrkcimylsg0jq913bc"))))
60e2a9ae
MS
7594 (build-system meson-build-system)
7595 (arguments
7596 '(#:glib-or-gtk? #t))
7597 (native-inputs
7598 `(("vala" ,vala)
7599 ("pkg-config" ,pkg-config)
7600 ("glib" ,glib "bin") ; for glib-compile-resources
7601 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
7602 ("desktop-file-utils" ,desktop-file-utils)
7603 ("gettext" ,gettext-minimal)
7604 ("itstool" ,itstool)))
7605 (inputs
7606 `(("glib" ,glib)
7607 ("gtk+" ,gtk+)
7608 ("gsound" ,gsound)
7609 ("geoclue" ,geoclue)
7610 ("geocode-glib" ,geocode-glib)
7611 ("libgweather" ,libgweather)
7612 ("gnome-desktop" ,gnome-desktop)))
7613 (home-page "https://wiki.gnome.org/Apps/Clocks")
7614 (synopsis "GNOME's clock application")
7615 (description
7616 "GNOME Clocks is a simple clocks application designed to fit the GNOME
7617desktop. It supports world clock, stop watch, alarms, and count down timer.")
7618 (license license:gpl3+)))
7619
3c474897
KY
7620(define-public gnome-calendar
7621 (package
7622 (name "gnome-calendar")
339b59bf 7623 (version "3.32.2")
3c474897
KY
7624 (source (origin
7625 (method url-fetch)
7626 (uri (string-append "mirror://gnome/sources/" name "/"
7627 (version-major+minor version) "/"
7628 name "-" version ".tar.xz"))
7629 (sha256
7630 (base32
339b59bf 7631 "07p73cvzj8idr80npja5yiv9pjfyi6qqfhaz5jwcgqspqbnhnl7k"))))
a49d3e37
MS
7632 (build-system meson-build-system)
7633 (arguments
7634 '(#:glib-or-gtk? #t
7635 ;; gnome-calendar has to be installed before the tests can be run
7636 ;; https://bugzilla.gnome.org/show_bug.cgi?id=788224
7637 #:tests? #f))
3c474897 7638 (native-inputs
a49d3e37
MS
7639 `(("gettext" ,gettext-minimal)
7640 ("glib-bin" ,glib "bin") ; For glib-compile-schemas
7641 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
3c474897
KY
7642 ("pkg-config" ,pkg-config)))
7643 (inputs
a49d3e37 7644 `(("evolution-data-server" ,evolution-data-server)
14c297fd 7645 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
a286b5eb
RW
7646 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7647 ("libdazzle" ,libdazzle)
b63c06f1 7648 ("libedataserverui" ,evolution-data-server)
a286b5eb
RW
7649 ("libgweather" ,libgweather)
7650 ("geoclue" ,geoclue)))
3c474897
KY
7651 (home-page "https://wiki.gnome.org/Apps/Calendar")
7652 (synopsis "GNOME's calendar application")
7653 (description
7654 "GNOME Calendar is a simple calendar application designed to fit the GNOME
a49d3e37 7655desktop. It supports multiple calendars, month, week and year view.")
3c474897
KY
7656 (license license:gpl3+)))
7657
57b14665
MS
7658(define-public gnome-todo
7659 (package
7660 (name "gnome-todo")
9f3c6c88 7661 (version "3.28.1")
57b14665
MS
7662 (source (origin
7663 (method url-fetch)
7664 (uri (string-append "mirror://gnome/sources/" name "/"
7665 (version-major+minor version) "/"
7666 name "-" version ".tar.xz"))
7667 (sha256
7668 (base32
9f3c6c88 7669 "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"))))
57b14665
MS
7670 (build-system meson-build-system)
7671 (arguments
7672 '(#:glib-or-gtk? #t
7673 #:phases (modify-phases %standard-phases
7674 (add-after
7675 'install 'wrap-gnome-todo
7676 (lambda* (#:key inputs outputs #:allow-other-keys)
7677 (let ((out (assoc-ref outputs "out"))
7678 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
7679 (python-path (getenv "PYTHONPATH")))
7680 (wrap-program (string-append out "/bin/gnome-todo")
7681 ;; XXX: gi plugins are broken.
7682 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=787212
7683 ;; For plugins.
7684 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
7685 `("PYTHONPATH" ":" prefix (,python-path))))
7686 #t)))))
7687 (native-inputs
7688 `(("gettext" ,gettext-minimal)
7689 ("gobject-introspection" ,gobject-introspection)
7690 ("glib:bin" ,glib "bin") ; For glib-compile-resources
7691 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7692 ("pkg-config" ,pkg-config)))
7693 (inputs
7694 `(("rest" ,rest) ; For Todoist plugin
7695 ("json-glib" ,json-glib) ; For Todoist plugin
b63c06f1 7696 ("libedataserverui" ,evolution-data-server)
57b14665
MS
7697 ("libical" ,libical)
7698 ("libpeas" ,libpeas)
7699 ("python-pygobject" ,python-pygobject)
7700 ("evolution-data-server" ,evolution-data-server)
14c297fd 7701 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
57b14665
MS
7702 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
7703 (home-page "https://wiki.gnome.org/Apps/Todo")
7704 (synopsis "GNOME's ToDo Application")
7705 (description
7706 "GNOME To Do is a simplistic personal task manager designed to perfectly
7707fit the GNOME desktop.")
7708 (license license:gpl3+)))
7709
ab179eaf
SB
7710(define-public gnome-dictionary
7711 (package
7712 (name "gnome-dictionary")
cf81ddef 7713 (version "3.26.1")
ab179eaf
SB
7714 (source (origin
7715 (method url-fetch)
7716 (uri (string-append "mirror://gnome/sources/" name "/"
7717 (version-major+minor version) "/"
7718 name "-" version ".tar.xz"))
7719 (sha256
7720 (base32
cf81ddef
LC
7721 "007k2bq8iplg4psdpz074r5d4zxvn4s95qym4rw9hs6giljbrf0n"))))
7722 (build-system meson-build-system)
2776b5d5
MB
7723 (arguments '(#:glib-or-gtk? #t
7724 #:phases (modify-phases %standard-phases
7725 (add-after 'unpack 'patch-install-script
7726 (lambda _
7727 ;; This script attempts to compile glib schemas
7728 ;; and create an empty MIME database. We do
7729 ;; that elsewhere, so prevent it from running.
7730 (substitute* "build-aux/post-install.sh"
7731 (("\\[ -z \"\\$DESTDIR\" \\]") "false"))
7732 #t)))))
ab179eaf
SB
7733 (native-inputs
7734 `(("glib:bin" ,glib "bin")
7735 ("gobject-introspection" ,gobject-introspection)
7736 ("intltool" ,intltool)
7737 ("itstool" ,itstool)
7738 ("pkg-config" ,pkg-config)
7739 ("xmllint" ,libxml2)))
7740 (inputs
7741 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7742 ("gtk+" ,gtk+)))
7743 (home-page "https://wiki.gnome.org/Apps/Dictionary")
7744 (synopsis "Look up words in dictionary sources")
7745 (description
7746 "GNOME Dictionary can look for the definition or translation of a word in
7747existing databases over the internet.")
7748 (license license:gpl3+)))
7749
d13f3a03 7750(define-public gnome-tweaks
9365ee1c 7751 (package
d13f3a03 7752 (name "gnome-tweaks")
652af676 7753 (version "3.32.0")
9365ee1c
JN
7754 (source (origin
7755 (method url-fetch)
d13f3a03 7756 (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
9365ee1c 7757 (version-major+minor version) "/"
d13f3a03
RW
7758 "gnome-tweaks-" version ".tar.xz"))
7759 (patches
7760 (list (search-patch "gnome-tweaks-search-paths.patch")))
9365ee1c
JN
7761 (sha256
7762 (base32
652af676 7763 "037r35cw34ifcs676fq9n2v4mh1nkqx0qk474bznf18mr6r62h55"))))
d13f3a03 7764 (build-system meson-build-system)
9365ee1c 7765 (arguments
d13f3a03
RW
7766 `(#:glib-or-gtk? #t
7767 #:configure-flags '("-Dlocalstatedir=/tmp"
7768 "-Dsysconfdir=/tmp")
9365ee1c 7769 #:imported-modules ((guix build python-build-system)
d13f3a03
RW
7770 ,@%meson-build-system-modules)
7771 #:phases
7772 (modify-phases %standard-phases
7773 (add-after 'install 'wrap
7774 (@@ (guix build python-build-system) wrap))
7775 (add-after 'wrap 'wrap-gi-typelib
7776 (lambda* (#:key inputs outputs #:allow-other-keys)
7777 (let ((out (assoc-ref outputs "out"))
7778 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7779 (wrap-program (string-append out "/bin/gnome-tweaks")
7780 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7781 #t)))))
9365ee1c 7782 (native-inputs
c7fc414e
RH
7783 `(("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7784 ("intltool" ,intltool)
9365ee1c
JN
7785 ("pkg-config" ,pkg-config)))
7786 (inputs
c7fc414e
RH
7787 `(("gnome-desktop" ,gnome-desktop)
7788 ("gtk+" ,gtk+)
9365ee1c
JN
7789 ("gobject-introspection" ,gobject-introspection)
7790 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
c7fc414e
RH
7791 ("libnotify" ,libnotify)
7792 ("libsoup" ,libsoup)
7793 ("nautilus" ,nautilus)
7794 ("python" ,python)
7795 ("python-pygobject" ,python-pygobject)))
9365ee1c 7796 (synopsis "Customize advanced GNOME 3 options")
d13f3a03 7797 (home-page "https://wiki.gnome.org/Apps/Tweaks")
9365ee1c 7798 (description
d13f3a03 7799 "GNOME Tweaks allows adjusting advanced configuration settings in
9365ee1c
JN
7800GNOME 3. This includes things like the fonts used in user interface elements,
7801alternative user interface themes, changes in window management behavior,
7802GNOME Shell appearance and extension, etc.")
7803 (license license:gpl3+)))
813f814a 7804
d13f3a03
RW
7805;; This package has been renamed by upstream.
7806(define-public gnome-tweak-tool
7807 (deprecated-package "gnome-tweak-tool" gnome-tweaks))
7808
32ac717c
DT
7809(define-public gnome-shell-extensions
7810 (package
7811 (name "gnome-shell-extensions")
ae4c05e0 7812 (version "3.32.1")
32ac717c
DT
7813 (source (origin
7814 (method url-fetch)
7815 (uri (string-append "mirror://gnome/sources/" name "/"
7816 (version-major+minor version) "/"
7817 name "-" version ".tar.xz"))
7818 (sha256
7819 (base32
ae4c05e0 7820 "07libf6z24n42hpdsq163w0j8xyrav0lxqrwxrvq5kbz8zxv5ch2"))))
100f625b 7821 (build-system meson-build-system)
32ac717c 7822 (arguments
100f625b 7823 '(#:configure-flags '("-Dextension_set=all")))
32ac717c 7824 (native-inputs
c9ea8873
LP
7825 `(("glib:bin" ,glib "bin")
7826 ("intltool" ,intltool)
32ac717c
DT
7827 ("pkg-config" ,pkg-config)))
7828 (propagated-inputs
c9ea8873 7829 `(("glib" ,glib)))
32ac717c
DT
7830 (synopsis "Extensions for GNOME Shell")
7831 (description "GNOME Shell extensions modify and extend GNOME Shell
7832functionality and behavior.")
7833 (home-page "https://extensions.gnome.org/")
7834 (license license:gpl3+)))
7835
813f814a
DT
7836(define-public arc-theme
7837 (package
7838 (name "arc-theme")
37781323 7839 (version "20190917")
813f814a 7840 (source (origin
a18f8eaf
BH
7841 (method git-fetch)
7842 (uri (git-reference
7843 (url "https://github.com/NicoHood/arc-theme.git")
7844 (commit version)))
7845 (file-name (git-file-name name version))
813f814a
DT
7846 (sha256
7847 (base32
37781323 7848 "1qgpk4p2hi5hd4yy0hj93kq1vs0b32wb8qkaj1wi90c8gwddq5wa"))))
813f814a 7849 (build-system gnu-build-system)
d88884fa
EF
7850 (arguments
7851 '(#:phases
7852 (modify-phases %standard-phases
7853 ;; autogen.sh calls configure at the end of the script.
7854 (replace 'bootstrap
7855 (lambda _ (invoke "autoreconf" "-vfi"))))))
813f814a
DT
7856 (native-inputs
7857 `(("autoconf" ,autoconf)
7858 ("automake" ,automake)
a18f8eaf
BH
7859 ("glib" ,glib "bin") ; for glib-compile-resources
7860 ("gnome-shell" ,gnome-shell)
7861 ("gtk+" ,gtk+)
7862 ("inkscape" ,inkscape)
7863 ("optipng" ,optipng)
7864 ("pkg-config" ,pkg-config)
7865 ("sassc" ,sassc)))
813f814a
DT
7866 (synopsis "A flat GTK+ theme with transparent elements")
7867 (description "Arc is a flat theme with transparent elements for GTK 3, GTK
78682, and GNOME Shell which supports GTK 3 and GTK 2 based desktop environments
7869like GNOME, Unity, Budgie, Pantheon, XFCE, Mate, etc.")
7870 (home-page "https://github.com/horst3180/arc-theme")
7871 ;; No "or later" language found.
a18f8eaf 7872 (license license:gpl3+)))
9987c57c 7873
d935e6a1 7874(define-public faba-icon-theme
9987c57c 7875 (package
d935e6a1 7876 (name "faba-icon-theme")
2eee7ee3 7877 (version "4.3")
d935e6a1
BT
7878 (source
7879 (origin
757e4027
TGR
7880 (method git-fetch)
7881 (uri (git-reference
7882 (url "https://github.com/snwh/faba-icon-theme.git")
7883 (commit (string-append "v" version))))
7884 (file-name (git-file-name name version))
d935e6a1 7885 (sha256
757e4027 7886 (base32 "0xh6ppr73p76z60ym49b4d0liwdc96w41cc5p07d48hxjsa6qd6n"))))
f6a9b345 7887 (build-system meson-build-system)
9987c57c 7888 (arguments
82da291a 7889 `(#:phases
9987c57c 7890 (modify-phases %standard-phases
82da291a 7891 (add-before 'configure 'disable-post-install
9987c57c 7892 (lambda _
82da291a
JL
7893 (substitute* "meson.build"
7894 (("meson.add_install_script.*") "")))))))
9987c57c
DT
7895 (native-inputs
7896 `(("autoconf" ,autoconf)
7897 ("automake" ,automake)))
d935e6a1
BT
7898 (synopsis "Faba icon theme")
7899 (description
7900 "Faba is a minimal icon set used as a basis for other themes such as
7901Moka")
7902 (home-page "https://snwh.org/moka")
7903 (license (list license:lgpl3+
7904 license:cc-by-sa4.0))))
7905
9987c57c
DT
7906(define-public moka-icon-theme
7907 (package
8b0e4177 7908 (inherit faba-icon-theme)
9987c57c 7909 (name "moka-icon-theme")
105a3625 7910 (version "5.4.0")
8c3f2170
TGR
7911 (source
7912 (origin
7913 (method git-fetch)
7914 (uri (git-reference
7915 (url "https://github.com/snwh/moka-icon-theme.git")
7916 (commit (string-append "v" version))))
7917 (file-name (git-file-name name version))
7918 (sha256
7919 (base32 "015l02im4mha5z91dbchxf6xkp66d346bg3xskwg0rh3lglhjsrd"))))
550281fb
BT
7920 (propagated-inputs
7921 ;; Moka is based on Faba by using it as a fallback icon set instead of
7922 ;; bundling it, so we need to add it as a propagated input.
7923 `(("faba-icon-theme" ,faba-icon-theme)))
9987c57c
DT
7924 (synopsis "Moka icon theme")
7925 (description "Moka is a stylized desktop icon set, designed to be clear,
7926simple and consistent.")
fedde43b
BT
7927 (license (list license:gpl3+
7928 license:cc-by-sa4.0))))
6fd8f8d6
DT
7929
7930(define-public arc-icon-theme
7931 (package
7932 (name "arc-icon-theme")
c4180240 7933 (version "20161122")
bbf66cbf
TGR
7934 (source
7935 (origin
7936 (method git-fetch)
7937 (uri (git-reference
7938 (url "https://github.com/horst3180/arc-icon-theme.git")
7939 (commit version)))
7940 (file-name (git-file-name name version))
7941 (sha256
7942 (base32 "1ch3hp08qri93510hypzz6m2x4xgg2h15wvnhjwh1x1s1b7jvxjd"))))
6fd8f8d6 7943 (build-system gnu-build-system)
9e1ede95
JL
7944 (arguments
7945 `(#:phases
7946 (modify-phases %standard-phases
7947 (add-after 'unpack 'disable-configure-during-bootstrap
7948 (lambda _
7949 (substitute* "autogen.sh"
7950 (("^\"\\$srcdir/configure\".*") ""))
7951 #t)))))
6fd8f8d6
DT
7952 (native-inputs
7953 `(("autoconf" ,autoconf)
7954 ("automake" ,automake)))
7955 ;; When Arc is missing an icon, it looks in the Moka icon theme for it.
7956 (propagated-inputs
7957 `(("moka-icon-theme" ,moka-icon-theme)))
7958 (synopsis "Arc icon theme")
7959 (description "The Arc icon theme provides a set of icons matching the
7960style of the Arc GTK theme. Icons missing from the Arc theme are provided by
7961the Moka icon theme.")
7962 (home-page "https://github.com/horst3180/arc-icon-theme")
7963 (license license:gpl3+)))
6064a4e8
LF
7964
7965(define-public folks
7966 (package
7967 (name "folks")
d23495fa 7968 (version "0.11.4")
6064a4e8
LF
7969 (source (origin
7970 (method url-fetch)
7971 (uri (string-append
e5f4796e 7972 "mirror://gnome/sources/folks/"
6064a4e8 7973 (version-major+minor version) "/"
e5f4796e 7974 "folks-" version ".tar.xz"))
6064a4e8
LF
7975 (sha256
7976 (base32
d23495fa 7977 "16hqh2gxlbx0b0hgq216hndr1m72vj54jvryzii9zqkk0g9kxc57"))))
6064a4e8
LF
7978 (build-system glib-or-gtk-build-system)
7979 (inputs
7980 `(("bdb" ,bdb)
7981 ("dbus-glib" ,dbus-glib)
7982 ("evolution-data-server" ,evolution-data-server)
7983 ("glib" ,glib)
7984 ("libgee" ,libgee)
7985 ("telepathy-glib" ,telepathy-glib)))
7986 (native-inputs
7987 `(("gobject-introspection" ,gobject-introspection)
7988 ("intltool" ,intltool)
7989 ("pkg-config" ,pkg-config)
7990 ("vala" ,vala)))
7991 (synopsis "Library to aggregate data about people")
7992 (description "Libfolks is a library that aggregates information about people
7993from multiple sources (e.g., Telepathy connection managers for IM contacts,
7994Evolution Data Server for local contacts, libsocialweb for web service contacts,
7995etc.) to create metacontacts. It's written in Vala, which generates C code when
7996compiled.")
7997 (home-page "https://wiki.gnome.org/Projects/Folks")
7998 (license license:lgpl2.1+)))
01ea778f
LF
7999
8000(define-public gfbgraph
8001 (package
8002 (name "gfbgraph")
8003 (version "0.2.3")
8004 (source (origin
8005 (method url-fetch)
8006 (uri (string-append
237d4cf7 8007 "mirror://gnome/sources/gfbgraph/"
01ea778f 8008 (version-major+minor version) "/"
237d4cf7 8009 "gfbgraph-" version ".tar.xz"))
01ea778f
LF
8010 (sha256
8011 (base32
8012 "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs"))))
8013 (build-system glib-or-gtk-build-system)
8014 (arguments
8015 `(#:tests? #f ; Tests appear to require the network.
8016 ;; FIXME --enable-gtk-doc fails even with gtk-doc as a native-input.
8017 #:configure-flags '("--disable-gtk-doc"
8018 "--disable-static"
8019 "--enable-introspection")))
8020 (native-inputs
8021 `(("pkg-config" ,pkg-config)
8022 ("gobject-introspection" ,gobject-introspection)))
8023 (inputs
8024 `(("json-glib" ,json-glib)
14c297fd 8025 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
01ea778f
LF
8026 ("rest" ,rest)))
8027 (synopsis "GLib/GObject wrapper for the Facebook API")
8028 (description "This library allows you to use the Facebook API from
8029GLib/GObject code.")
8030 (home-page "https://wiki.gnome.org/Projects/GFBGraph")
8031 (license license:lgpl2.1+)))
3920868c 8032
8033(define-public libgnomekbd
8034 (package
8035 (name "libgnomekbd")
70f2b0f9 8036 (version "3.26.1")
3920868c 8037 (source (origin
8038 (method url-fetch)
d47fa82d 8039 (uri (string-append "mirror://gnome/sources/libgnomekbd/"
3920868c 8040 (version-major+minor version) "/"
d47fa82d 8041 "libgnomekbd-" version ".tar.xz"))
3920868c 8042 (sha256
8043 (base32
70f2b0f9 8044 "0y962ykn3rr9gylj0pwpww7bi20lmhvsw6qvxs5bisbn2mih5jpp"))))
3920868c 8045 (build-system gnu-build-system)
8046 (native-inputs
8047 `(("pkg-config" ,pkg-config)
8048 ("glib" ,glib "bin")
8049 ("intltool" ,intltool)))
8050 (propagated-inputs
8051 ;; Referred to in .h files and .pc.
8052 `(("glib" ,glib)
8053 ("gtk+" ,gtk+)
8054 ("libxklavier" ,libxklavier)))
8055 (home-page "https://www.gnome.org")
8056 (synopsis "GNOME keyboard configuration library")
8057 (description
8058 "Libgnomekbd is a keyboard configuration library for the GNOME desktop
8059environment, which can notably display keyboard layouts.")
8060 (license license:lgpl2.0+)))
85327d0d 8061
8062;;; This package is no longer maintained:
8063;;; https://wiki.gnome.org/Attic/LibUnique
8064;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
8065;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
8066(define-public libunique
8067 (package
8068 (name "libunique")
8069 (version "3.0.2")
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
8077 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
8078 (build-system glib-or-gtk-build-system)
8079 (arguments
8080 `(#:configure-flags '("--disable-static"
8081 "--disable-dbus" ; use gdbus
8082 "--enable-introspection")))
8083 (native-inputs
8084 `(("pkg-config" ,pkg-config)
8085 ("gobject-introspection" ,gobject-introspection)
8086 ("glib:bin" ,glib "bin")
8087 ("gtk-doc" ,gtk-doc)))
8088 (propagated-inputs
8089 ;; Referred to in .h files and .pc.
8090 `(("gtk+" ,gtk+)))
8091 (home-page "https://wiki.gnome.org/Attic/LibUnique")
8092 (synopsis "Library for writing single instance applications")
8093 (description
8094 "Libunique is a library for writing single instance applications. If you
8095launch a single instance application twice, the second instance will either just
8096quit or will send a message to the running instance. Libunique makes it easy to
8097write this kind of application, by providing a base class, taking care of all
8098the IPC machinery needed to send messages to a running instance, and also
8099handling the startup notification side.")
8100 (license license:lgpl2.1+)))
54021cd8
RS
8101
8102(define-public gnome-calculator
8103 (package
8104 (name "gnome-calculator")
07ace641 8105 (version "3.32.2")
54021cd8
RS
8106 (source
8107 (origin
8108 (method url-fetch)
8109 (uri (string-append "mirror://gnome/sources/" name "/"
8110 (version-major+minor version) "/"
8111 name "-" version ".tar.xz"))
8112 (sha256
8113 (base32
07ace641 8114 "0fgpn3sc226s9fpzhik5rkkrf669037gc659ga2kn9jsyckj6p41"))))
2d475910
RW
8115 (build-system meson-build-system)
8116 (arguments '(#:glib-or-gtk? #t))
54021cd8
RS
8117 (native-inputs
8118 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
2d475910 8119 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
54021cd8
RS
8120 ("intltool" ,intltool)
8121 ("itstool" ,itstool)
2d475910 8122 ("vala" ,vala)
54021cd8
RS
8123 ("pkg-config" ,pkg-config)))
8124 (inputs
112e9083 8125 `(("glib" ,glib)
07ace641 8126 ("gtksourceview" ,gtksourceview)
54021cd8 8127 ("libsoup" ,libsoup)
112e9083 8128 ("libxml2" ,libxml2)
2c2da7ec 8129 ("mpc" ,mpc)
54021cd8
RS
8130 ("mpfr" ,mpfr)))
8131 (home-page "https://wiki.gnome.org/Apps/Calculator")
8132 (synopsis "Desktop calculator")
8133 (description
8134 "Calculator is an application that solves mathematical equations and
8135is suitable as a default application in a Desktop environment.")
8136 (license license:gpl3)))
0bd69759
RS
8137
8138(define-public xpad
8139 (package
8140 (name "xpad")
c85626bb 8141 (version "5.1.0")
0bd69759
RS
8142 (source
8143 (origin
8144 (method url-fetch)
08fda9c6
R
8145 (uri (string-append "https://launchpad.net/xpad/trunk/"
8146 version "/+download/"
0bd69759
RS
8147 name "-" version ".tar.bz2"))
8148 (sha256
8149 (base32
c85626bb 8150 "0l0g5x8g6dwhf5ksnqqrjjsycy57kcvdslkmsr6bl3vrsjd7qml3"))))
0bd69759
RS
8151 (build-system gnu-build-system)
8152 (native-inputs
08fda9c6
R
8153 `(("autoconf" ,autoconf)
8154 ("automake" ,automake)
8155 ("gtk+:bin" ,gtk+ "bin")
8156 ("intltool" ,intltool)
0bd69759
RS
8157 ("pkg-config" ,pkg-config)))
8158 (inputs
c72647fb 8159 `(("gtksourceview" ,gtksourceview-3)
0bd69759
RS
8160 ("libsm" ,libsm)))
8161 (home-page "https://wiki.gnome.org/Apps/Xpad")
8162 (synopsis "Virtual sticky note")
8163 (description
8164 "Xpad is a sticky note that strives to be simple, fault tolerant,
8165and customizable. Xpad consists of independent pad windows, each is
8166basically a text box in which notes can be written.")
8167 (license license:gpl3+)))
3ad7dce1
RS
8168
8169(define-public gucharmap
c60063ea
RW
8170 (let ((unicode-files
8171 '(("Blocks.txt"
1f8b5515 8172 "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1")
c60063ea 8173 ("DerivedAge.txt"
1f8b5515 8174 "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6")
c60063ea 8175 ("NamesList.txt"
1f8b5515 8176 "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61")
c60063ea 8177 ("Scripts.txt"
1f8b5515 8178 "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx")
c60063ea 8179 ("UnicodeData.txt"
1f8b5515 8180 "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap")
c60063ea 8181 ("Unihan.zip"
1f8b5515 8182 "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"))))
c60063ea
RW
8183 (package
8184 (name "gucharmap")
1f8b5515 8185 (version "12.0.1")
c60063ea
RW
8186 (source
8187 (origin
8188 (method url-fetch)
8189 (uri (string-append "mirror://gnome/sources/" name "/"
8190 (version-major+minor version) "/"
8191 name "-" version ".tar.xz"))
8192 (sha256
8193 (base32
1f8b5515 8194 "0m915hm2b2d6r3vs1l80rqpssvg78pv8j6nv54yg62kzknnqmpir"))))
c60063ea
RW
8195 (build-system glib-or-gtk-build-system)
8196 (arguments
8197 `(#:modules ((ice-9 match)
8198 (guix build glib-or-gtk-build-system)
8199 (guix build utils))
8200 #:configure-flags
8201 (list "--with-unicode-data=../unicode-data")
8202 #:phases
8203 (modify-phases %standard-phases
8204 (add-after 'unpack 'prepare-unicode-data
8205 (lambda* (#:key inputs #:allow-other-keys)
8206 (mkdir-p "../unicode-data")
8207 (with-directory-excursion "../unicode-data"
8208 (for-each (match-lambda
8209 ((file _)
8210 (install-file (assoc-ref inputs file) ".")))
8211 ',unicode-files))
8212 #t)))))
8213 (native-inputs
8214 `(("desktop-file-utils" ,desktop-file-utils)
8215 ("glib:bin" ,glib "bin") ; for glib-compile-resources.
8216 ("gobject-introspection" ,gobject-introspection)
8217 ("intltool" ,intltool)
8218 ("itstool" ,itstool)
8219 ("pkg-config" ,pkg-config)
8220 ,@(map (match-lambda
8221 ((file hash)
8222 `(,file
8223 ,(origin
8224 (method url-fetch)
8225 (uri (string-append
1f8b5515 8226 "http://www.unicode.org/Public/12.0.0/ucd/"
c60063ea
RW
8227 file))
8228 (sha256 (base32 hash))))))
8229 unicode-files)
8230 ("unzip" ,unzip)))
8231 (inputs
8232 `(("gtk+" ,gtk+)
8233 ("xmllint" ,libxml2)))
8234 (home-page "https://wiki.gnome.org/Apps/Gucharmap")
8235 (synopsis "Unicode character picker and font browser")
8236 (description
8237 "This program allows you to browse through all the available Unicode
3ad7dce1
RS
8238characters and categories for the installed fonts, and to examine their
8239detailed properties. It is an easy way to find the character you might
8240only know by its Unicode name or code point.")
c60063ea 8241 (license license:gpl3+))))
04ce840a
RS
8242
8243(define-public bluefish
8244 (package
8245 (name "bluefish")
ea8afaf3 8246 (version "2.2.10")
04ce840a
RS
8247 (source
8248 (origin
8249 (method url-fetch)
8250 (uri (string-append "http://www.bennewitz.com/bluefish/stable/source/"
8251 name "-" version ".tar.gz"))
8252 (sha256
8253 (base32
ea8afaf3 8254 "1jw4has7lbp77lqmzvnnjmqcf0lacjfnka873lkkwdyrpzc4c1q4"))))
04ce840a
RS
8255 (build-system gnu-build-system)
8256 (native-inputs
8257 `(("desktop-file-utils" ,desktop-file-utils)
8258 ("intltool" ,intltool)
8259 ("pkg-config" ,pkg-config)))
8260 (inputs
8261 `(("enchant" ,enchant)
8262 ("gtk+" ,gtk+)
8263 ("python" ,python-2)
8264 ("xmllint" ,libxml2)
8265 ("gucharmap" ,gucharmap)))
8266 (home-page "http://bluefish.openoffice.nl")
8267 (synopsis "Web development studio")
8268 (description
8269 "Bluefish is an editor targeted towards programmers and web developers,
8270with many options to write web sites, scripts and other code.
8271Bluefish supports many programming and markup languages.")
8272 (license license:gpl3+)))
1f6a73ee
RS
8273
8274(define-public gnome-system-monitor
8275 (package
8276 (name "gnome-system-monitor")
083cffaf 8277 (version "3.32.1")
1f6a73ee
RS
8278 (source
8279 (origin
8280 (method url-fetch)
8281 (uri (string-append "mirror://gnome/sources/" name "/"
8282 (version-major+minor version) "/"
8283 name "-" version ".tar.xz"))
8284 (sha256
8285 (base32
083cffaf 8286 "1wd43qdgjav6xamq5z5cy8fri5zr01jga3plc9w95gcia0rk3ha8"))))
85fb3df3
RW
8287 (build-system meson-build-system)
8288 (arguments
8289 '(#:glib-or-gtk? #t
8290 #:configure-flags '("-Dsystemd=false")))
1f6a73ee
RS
8291 (native-inputs
8292 `(("glib:bin" ,glib "bin") ; for glib-mkenums.
85fb3df3 8293 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
1f6a73ee
RS
8294 ("intltool" ,intltool)
8295 ("itstool" ,itstool)
8296 ("libgtop" ,libgtop)
4985d9aa 8297 ("polkit" ,polkit)
1f6a73ee
RS
8298 ("pkg-config" ,pkg-config)))
8299 (inputs
8300 `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
8301 ("gtk+" ,gtk+)
8302 ("gtkmm" ,gtkmm)
8303 ("librsvg" ,librsvg)
4985d9aa
RW
8304 ("libxml2" ,libxml2)
8305 ("libwnck" ,libwnck)))
1f6a73ee
RS
8306 (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
8307 (synopsis "Process viewer and system resource monitor for GNOME")
8308 (description
8309 "GNOME System Monitor is a GNOME process viewer and system monitor with
8310an attractive, easy-to-use interface. It has features, such as a tree view
8311for process dependencies, icons for processes, the ability to hide processes,
8312graphical time histories of CPU/memory/swap usage and the ability to
8313kill/reinice processes.")
8314 (license license:gpl2+)))
3e00ac47
SB
8315
8316(define-public python-pyatspi
8317 (package
8318 (name "python-pyatspi")
4f937a32 8319 (version "2.34.0")
3e00ac47
SB
8320 (source (origin
8321 (method url-fetch)
8322 (uri (string-append
8323 "mirror://gnome/sources/pyatspi/"
8324 (version-major+minor version)
8325 "/pyatspi-" version ".tar.xz"))
8326 (sha256
8327 (base32
4f937a32 8328 "0j3f75j0zd6ca8msg7yr19qsfirqkn9fk8pqbjnlhqrpri455g4p"))))
3e00ac47 8329 (build-system gnu-build-system)
b95af3f6
JL
8330 (arguments
8331 `(#:phases
8332 (modify-phases %standard-phases
8333 (add-before 'build 'fix-atk-load
8334 (lambda _
8335 (substitute* "pyatspi/__init__.py"
8336 (("from gi.repository import Atspi")
8337 "gi.require_version('Gtk', '3.0')
8338from gi.repository import Gtk
8339from gi.repository import Atspi"))
8340 #t)))))
3e00ac47
SB
8341 (native-inputs
8342 `(("pkg-config" ,pkg-config)))
8343 (inputs
8344 `(("python" ,python)
8345 ("python-pygobject" ,python-pygobject)))
8346 (synopsis "Python client bindings for D-Bus AT-SPI")
8347 (home-page "https://wiki.linuxfoundation.org/accessibility\
8348/atk/at-spi/at-spi_on_d-bus")
8349 (description
8350 "This package includes a python client library for the AT-SPI D-Bus
8351accessibility infrastructure.")
8352 (license license:lgpl2.0)
8353 (properties '((upstream-name . "pyatspi")))))
53201c0d
SB
8354
8355(define-public orca
8356 (package
8357 (name "orca")
089e8585 8358 (version "3.32.0")
53201c0d
SB
8359 (source (origin
8360 (method url-fetch)
8361 (uri (string-append
8362 "mirror://gnome/sources/" name "/"
8363 (version-major+minor version) "/"
8364 name "-" version ".tar.xz"))
8365 (sha256
8366 (base32
089e8585 8367 "05jqzlg0f1x53hyl0l9282ynmw37159g6dsbrid12b7sjs12cc1i"))))
53201c0d
SB
8368 (build-system glib-or-gtk-build-system)
8369 (arguments
8370 '(#:phases
8371 (modify-phases %standard-phases
8372 (add-before 'configure 'qualify-xkbcomp
8373 (lambda* (#:key inputs #:allow-other-keys)
8374 (let ((xkbcomp (string-append
8375 (assoc-ref inputs "xkbcomp") "/bin/xkbcomp")))
8376 (substitute* "src/orca/orca.py"
8377 (("'xkbcomp'") (format #f "'~a'" xkbcomp))))
8378 #t))
8379 (add-after 'install 'wrap-orca
8380 (lambda* (#:key outputs #:allow-other-keys)
8381 (let* ((out (assoc-ref outputs "out"))
8382 (prog (string-append out "/bin/orca")))
8383 (wrap-program prog
8384 `("GI_TYPELIB_PATH" ":" prefix
8385 (,(getenv "GI_TYPELIB_PATH")))
8386 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
8387 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
8388 `("PYTHONPATH" ":" prefix
8389 (,(getenv "PYTHONPATH")))))
8390 #t)))))
8391 (native-inputs
8392 `(("intltool" ,intltool)
8393 ("itstool" ,itstool)
8394 ("pkg-config" ,pkg-config)
8395 ("xmllint" ,libxml2)))
8396 (inputs
8397 `(("at-spi2-atk" ,at-spi2-atk)
8398 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8399 ("gstreamer" ,gstreamer)
8400 ("gst-plugins-base" ,gst-plugins-base)
8401 ("gst-plugins-good" ,gst-plugins-good)
8402 ("gtk+" ,gtk+)
8403 ("python" ,python)
8404 ("python-pygobject" ,python-pygobject)
8405 ("python-pyatspi" ,python-pyatspi)
8406 ("python-speechd" ,speech-dispatcher)
8407 ("xkbcomp" ,xkbcomp)))
8408 (synopsis
8409 "Screen reader for individuals who are blind or visually impaired")
8410 (home-page "https://wiki.gnome.org/Projects/Orca")
8411 (description
8412 "Orca is a screen reader that provides access to the graphical desktop
8413via speech and refreshable braille. Orca works with applications and toolkits
8414that support the Assistive Technology Service Provider Interface (AT-SPI).")
8415 (license license:lgpl2.1+)))
411ba511
LC
8416
8417(define-public gspell
8418 (package
8419 (name "gspell")
7a6bbe9b 8420 (version "1.8.2")
411ba511
LC
8421 (source (origin
8422 (method url-fetch)
8423 (uri (string-append "mirror://gnome/sources/" name "/"
8424 (version-major+minor version) "/"
8425 name "-" version ".tar.xz"))
8426 (sha256
8427 (base32
7a6bbe9b 8428 "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
411ba511
LC
8429 (patches (search-patches "gspell-dash-test.patch"))))
8430 (build-system glib-or-gtk-build-system)
8431 (arguments
8432 '(#:phases
8433 (modify-phases %standard-phases
8434 (add-before 'check 'pre-check
8435 (lambda* (#:key inputs #:allow-other-keys)
8436 ;; Tests require a running X server.
8437 (system "Xvfb :1 &")
8438 (setenv "DISPLAY" ":1")
8439
8440 ;; For the missing /etc/machine-id.
8441 (setenv "DBUS_FATAL_WARNINGS" "0")
8442
8443 ;; Allow Enchant and its Aspell backend to find the en_US
8444 ;; dictionary.
8445 (setenv "ASPELL_DICT_DIR"
8446 (string-append (assoc-ref inputs "aspell-dict-en")
8447 "/lib/aspell"))
8448 #t)))))
8449 (inputs
eccd35be 8450 `(("gtk+" ,gtk+)
a801ae4c
TGR
8451 ("glib" ,glib)
8452 ("iso-codes" ,iso-codes)))
411ba511
LC
8453 (native-inputs
8454 `(("glib" ,glib "bin")
26ba3f07 8455 ("gobject-introspection" ,gobject-introspection)
411ba511
LC
8456 ("pkg-config" ,pkg-config)
8457 ("xmllint" ,libxml2)
8458
8459 ;; For tests.
a801ae4c 8460 ("aspell-dict-en" ,aspell-dict-en)
ff337525 8461 ("xorg-server" ,xorg-server-for-tests)))
eccd35be 8462 (propagated-inputs
9b1bb757 8463 `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
411ba511
LC
8464 (home-page "https://wiki.gnome.org/Projects/gspell")
8465 (synopsis "GNOME's alternative spell checker")
8466 (description
8467 "gspell provides a flexible API to add spell-checking to a GTK+
8468application. It provides a GObject API, spell-checking to text entries and
8469text views, and buttons to choose the language.")
8470 (license license:gpl2+)))
d1d739fa
CM
8471
8472(define-public gnome-planner
8473 (package
8474 (name "gnome-planner")
8475 (version "0.14.6")
8476 (source (origin
8477 (method url-fetch)
8478 (uri (string-append "mirror://gnome/sources/planner/"
8479 (version-major+minor version) "/planner-"
8480 version ".tar.xz"))
8481 (sha256
8482 (base32
8483 "15h6ps58giy5r1g66sg1l4xzhjssl362mfny2x09khdqsvk2j38k"))))
8484 (build-system glib-or-gtk-build-system)
8485 (arguments
8486 ;; Disable the Python bindings because the Planner program functions
8487 ;; without them, and (as of 2017-06-13) we have not packaged all of
8488 ;; packages that are necessary for building the Python bindings.
20b7b75c
EF
8489 `(#:configure-flags
8490 (list "--disable-python"
8491 ,@(if (string=? "aarch64-linux" (%current-system))
8492 '("--build=aarch64-unknown-linux-gnu")
8493 '()))))
d1d739fa
CM
8494 (inputs
8495 `(("libgnomecanvas" ,libgnomecanvas)
8496 ("libgnomeui" ,libgnomeui)
8497 ("libglade" ,libglade)
8498 ("gnome-vfs" ,gnome-vfs)
8499 ("gconf" ,gconf)
8500 ("libxml2" ,libxml2)
8501 ("libxslt" ,libxslt)
8502 ("gtk+" ,gtk+)
8503 ("glib" ,glib)))
8504 (native-inputs
8505 `(("intltool" ,intltool)
8506 ("scrollkeeper" ,scrollkeeper)
8507 ("pkg-config" ,pkg-config)))
8508 (home-page "https://wiki.gnome.org/Apps/Planner")
8509 (synopsis "Project management software for the GNOME desktop")
8510 (description
8511 "GNOME Planner is a project management tool based on the Work Breakdown
8512Structure (WBS). Its goal is to enable you to easily plan projects. Based on
8513the resources, tasks, and constraints that you define, Planner generates
8514various views into a project. For example, Planner can show a Gantt chart of
8515the project. It can show a detailed summary of tasks including their
8516duration, cost, and current progress. It can also show a report of resource
8517utilization that highlights under-utilized and over-utilized resources. These
8518views can be printed as PDF or PostScript files, or exported to HTML.")
4b926cb6 8519 (license license:gpl2+)))
64fce637
RS
8520
8521(define-public lollypop
8522 (package
8523 (name "lollypop")
ca32627a 8524 (version "1.2.7")
64fce637
RS
8525 (source
8526 (origin
8527 (method url-fetch)
b98eace8 8528 (uri (string-append "https://gitlab.gnome.org/World/lollypop/uploads/"
ca32627a 8529 "08f973788c7ca46d9285eec2ac818edb/"
3275d43d 8530 "lollypop-" version ".tar.xz"))
64fce637 8531 (sha256
ca32627a 8532 (base32 "0hvq6m4i62i0m63bg4gzpfb9rv1fk6vq5jl2g3ppcgm4srmfm77j"))))
aa498fc0 8533 (build-system meson-build-system)
64fce637
RS
8534 (arguments
8535 `(#:imported-modules ((guix build python-build-system)
aa498fc0
TD
8536 ,@%meson-build-system-modules)
8537 #:glib-or-gtk? #t
5fc9b6c1
EF
8538 #:tests? #f ; no test suite
8539 #:phases
8540 (modify-phases %standard-phases
5fc9b6c1
EF
8541 (add-after 'install 'wrap-program
8542 (lambda* (#:key outputs #:allow-other-keys)
8543 (let ((out (assoc-ref outputs "out"))
8544 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
8545 (wrap-program (string-append out "/bin/lollypop")
8546 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
8547 #t))
8ac8b3b3
TGR
8548 (add-after 'install 'wrap-python
8549 (@@ (guix build python-build-system) wrap))
8550 (add-after 'install 'wrap-glib-or-gtk
8551 (@@ (guix build glib-or-gtk-build-system) wrap-all-programs)))))
64fce637
RS
8552 (native-inputs
8553 `(("intltool" ,intltool)
8554 ("itstool" ,itstool)
aa498fc0
TD
8555 ("glib:bin" ,glib "bin") ; For glib-compile-resources
8556 ("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
64fce637
RS
8557 ("pkg-config" ,pkg-config)))
8558 (inputs
8559 `(("gobject-introspection" ,gobject-introspection)
8ac8b3b3 8560 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5fc9b6c1 8561 ("gst-plugins-base" ,gst-plugins-base)
64fce637
RS
8562 ("libnotify" ,libnotify)
8563 ("libsecret" ,libsecret)
8564 ("libsoup" ,libsoup)
8565 ("python" ,python)
8566 ("python-beautifulsoup4" ,python-beautifulsoup4)
8567 ("python-gst" ,python-gst)
d029afdd 8568 ("python-pil" ,python-pillow)
64fce637 8569 ("python-pycairo" ,python-pycairo)
7460f346 8570 ("python-pygobject" ,python-pygobject-3.34)
64fce637
RS
8571 ("python-pylast" ,python-pylast)
8572 ("totem-pl-parser" ,totem-pl-parser)
8573 ("webkitgtk" ,webkitgtk)))
8574 (propagated-inputs
8575 `(;; gst-plugins-base is required to start Lollypop,
8576 ;; the others are required to play streaming.
64fce637
RS
8577 ("gst-plugins-good" ,gst-plugins-good)
8578 ("gst-plugins-ugly" ,gst-plugins-ugly)))
b98eace8 8579 (home-page "https://wiki.gnome.org/Apps/Lollypop")
64fce637
RS
8580 (synopsis "GNOME music playing application")
8581 (description
8582 "Lollypop is a music player designed to play well with GNOME desktop.
8583Lollypop plays audio formats such as mp3, mp4, ogg and flac and gets information
8584from artists and tracks from the web. It also fetches cover artworks
8585automatically and it can stream songs from online music services and charts.")
8586 (license license:gpl3+)))
d831d49d
AW
8587
8588(define-public gnome-video-effects
8589 (package
8590 (name "gnome-video-effects")
8591 (version "0.4.3")
8592 (source (origin
8593 (method url-fetch)
8594 (uri (string-append "mirror://gnome/sources/" name "/"
8595 (version-major+minor version) "/" name "-"
8596 version ".tar.xz"))
8597 (sha256
8598 (base32
8599 "06c2f1kihyhawap1s3zg5w7q7fypsybkp7xry4hxkdz4mpsy0zjs"))))
8600 (build-system glib-or-gtk-build-system)
8601 (arguments
8602 `(#:out-of-source? #f))
8603 (native-inputs
8604 `(("glib:bin" ,glib "bin")
8605 ("intltool" ,intltool)
8606 ("gettext" ,gettext-minimal)
8607 ("pkg-config" ,pkg-config)))
8608 (home-page "https://wiki.gnome.org/Projects/GnomeVideoEffects")
8609 (synopsis "Video effects for Cheese and other GNOME applications")
8610 (description
8611 "A collection of GStreamer video filters and effects to be used in
8612photo-booth-like software, such as Cheese.")
8613 (license license:gpl2+)))
3511c780
AW
8614
8615(define-public cheese
8616 (package
8617 (name "cheese")
dd33b337 8618 (version "3.32.1")
3511c780
AW
8619 (source (origin
8620 (method url-fetch)
8621 (uri (string-append "mirror://gnome/sources/" name "/"
8622 (version-major+minor version) "/" name "-"
8623 version ".tar.xz"))
8624 (sha256
8625 (base32
dd33b337 8626 "1xlmsm4zsx05ahvpd4mgy1hfhxbag0r5i6p63bksjxdligdd36kv"))))
3511c780
AW
8627 (arguments
8628 ;; Tests require GDK.
8629 `(#:tests? #f
8630 #:phases
8631 (modify-phases %standard-phases
8632 (add-before 'install 'skip-gtk-update-icon-cache
8633 (lambda _
8634 ;; Don't create 'icon-theme.cache'
8635 (substitute* "Makefile"
8636 (("gtk-update-icon-cache") (which "true")))
8637 #t))
8638 (add-after 'install 'wrap-cheese
8639 (lambda* (#:key inputs outputs #:allow-other-keys)
8640 (let ((out (assoc-ref outputs "out"))
8641 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
8642 (wrap-program (string-append out "/bin/cheese")
8643 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
8644 #t)))))
8645 (build-system glib-or-gtk-build-system)
8646 (native-inputs
8647 `(("glib:bin" ,glib "bin")
8648 ("intltool" ,intltool)
8649 ("itstool" ,itstool)
8650 ("libxml2" ,libxml2)
8651 ("pkg-config" ,pkg-config)
8652 ("vala" ,vala)))
8653 (propagated-inputs
6a19f03e
RW
8654 `(("gnome-video-effects" ,gnome-video-effects)
8655 ("clutter" ,clutter)
3511c780
AW
8656 ("clutter-gst" ,clutter-gst)
8657 ("clutter-gtk" ,clutter-gtk)
6a19f03e 8658 ("libcanberra" ,libcanberra)
3511c780
AW
8659 ("gdk-pixbuf" ,gdk-pixbuf)
8660 ("glib" ,glib)
6a19f03e
RW
8661 ("gstreamer" ,gstreamer)))
8662 (inputs
8663 `(("gnome-desktop" ,gnome-desktop)
3511c780 8664 ("gobject-introspection" ,gobject-introspection)
3511c780
AW
8665 ("gst-plugins-base" ,gst-plugins-base)
8666 ("gst-plugins-bad" ,gst-plugins-bad)
8667 ("gtk+" ,gtk+)
3511c780
AW
8668 ("libx11" ,libx11)
8669 ("libxtst" ,libxtst)))
8670 (home-page "https://wiki.gnome.org/Apps/Cheese")
8671 (synopsis "Webcam photo booth software for GNOME")
8672 (description
8673 "Cheese uses your webcam to take photos and videos. Cheese can also
8674apply fancy special effects and lets you share the fun with others.")
8675 (license license:gpl2+)))
3c5dbd2b 8676
8677(define-public sound-juicer
8678 (package
8679 (name "sound-juicer")
8680 (version "3.24.0")
8681 (source
8682 (origin
8683 (method url-fetch)
8684 (uri (string-append "mirror://gnome/sources/" name "/"
8685 (version-major+minor version) "/"
8686 name "-" version ".tar.xz"))
8687 (sha256
8688 (base32
8689 "19qg4xv0f9rkq34lragkmhii1llxsa87llbl28i759b0ks4f6sny"))))
8690 (build-system glib-or-gtk-build-system)
8691 (native-inputs
8692 `(("desktop-file-utils" ,desktop-file-utils)
8693 ("intltool" ,intltool)
8694 ("itstool" ,itstool)
8695 ("pkg-config" ,pkg-config)
8696 ("xmllint" ,libxml2)))
8697 (inputs
8698 `(("gtk+" ,gtk+)
8699 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8700 ("gstreamer" ,gstreamer)
8701 ("gst-plugins-base" ,gst-plugins-base)
8702 ("gst-plugins-good" ,gst-plugins-good)
8703 ("iso-codes" ,iso-codes)
8704 ("libbrasero-media3" ,brasero)
8705 ("libcanberra" ,libcanberra)
8706 ("libdiscid" ,libdiscid)
8707 ("libmusicbrainz" ,libmusicbrainz)
8708 ("neon" ,neon)))
8709 (home-page "https://wiki.gnome.org/Apps/SoundJuicer")
8710 (synopsis "Audio music cd ripper")
8711 (description "Sound Juicer extracts audio from compact discs and convert it
8712into audio files that a personal computer or digital audio player can play.
8713It supports ripping to any audio codec supported by a GStreamer plugin, such as
8714mp3, Ogg Vorbis and FLAC")
8715 (license license:gpl2+)))
4e3fdeb7 8716
0d3f1708
CB
8717(define-public soundconverter
8718 (package
8719 (name "soundconverter")
fa75a213 8720 (version "3.0.1")
0d3f1708
CB
8721 (source
8722 (origin
8723 (method url-fetch)
8724 (uri (string-append "https://launchpad.net/soundconverter/trunk/"
8725 version "/+download/"
8726 "soundconverter-" version ".tar.xz"))
8727
8728 (sha256
fa75a213 8729 (base32 "1d6x1yf8psqbd9zbybxivfqg55khcnngp2mn92l161dfdk9512c5"))
0d3f1708
CB
8730 (patches
8731 (search-patches
8732 "soundconverter-remove-gconf-dependency.patch"))))
8733 (build-system glib-or-gtk-build-system)
8734 (arguments
8735 `(#:imported-modules ((guix build python-build-system)
8736 (guix build glib-or-gtk-build-system)
8737 ,@%gnu-build-system-modules)
8738
8739 #:modules ((guix build glib-or-gtk-build-system)
8740 (guix build utils)
8741 ((guix build gnu-build-system) #:prefix gnu:)
8742 ((guix build python-build-system) #:prefix python:))
8743
8744 #:phases
8745 (modify-phases %standard-phases
0d3f1708
CB
8746 (add-after 'install 'wrap-soundconverter-for-python
8747 (assoc-ref python:%standard-phases 'wrap))
8748 (add-after 'install 'wrap-soundconverter
8749 (lambda* (#:key inputs outputs #:allow-other-keys)
8750 (let ((out (assoc-ref outputs "out"))
8751 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
8752 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
8753 (wrap-program (string-append out "/bin/soundconverter")
8754 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
8755 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
8756 #t)))))
8757 (native-inputs
8758 `(("intltool" ,intltool)
8759 ("pkg-config" ,pkg-config)
8760 ("glib:bin" ,glib "bin")))
8761 (inputs
8762 `(("gtk+" ,gtk+)
8763 ("python" ,python)
8764 ("python-pygobject" ,python-pygobject)
8765 ("gstreamer" ,gstreamer)
8766 ("gst-plugins-base" ,gst-plugins-base)))
8767 (home-page "http://soundconverter.org/")
8768 (synopsis "Convert between audio formats with a graphical interface")
8769 (description
8770 "SoundConverter supports converting between many audio formats including
8771Opus, Ogg Vorbis, FLAC and more. It supports parallel conversion, and
8772configurable file renaming. ")
8773 (license license:gpl3)))
8774
4e3fdeb7 8775(define-public workrave
89f2d736
TGR
8776 (package
8777 (name "workrave")
aa51d92c 8778 (version "1.10.34")
89f2d736
TGR
8779 (source
8780 (origin
8781 (method git-fetch)
8782 (uri (git-reference
8783 (url "https://github.com/rcaelers/workrave.git")
c2e50474
TGR
8784 (commit (string-append "v" (string-map
8785 (match-lambda (#\. #\_) (chr chr))
8786 version)))))
89f2d736
TGR
8787 (file-name (git-file-name name version))
8788 (sha256
aa51d92c 8789 (base32 "0czwhr7nw523753ajcjjfwrf91mq8pmzr19gp0srqsvb1dsn1zcf"))))
89f2d736 8790 (build-system glib-or-gtk-build-system)
d1c96847
MC
8791 (inputs `(("glib" ,glib)
8792 ("gtk+" ,gtk+)
8793 ("gdk-pixbuf" ,gdk-pixbuf)
8794 ("gtkmm" ,gtkmm)
8795 ("glibmm" ,glibmm)
8796 ("libx11" ,libx11)
8797 ("libxtst" ,libxtst)
8798 ("dconf" ,dconf)
8799 ("libice" ,libice)
8800 ("libsm" ,libsm)
8801 ("libxscrnsaver" ,libxscrnsaver)))
aa51d92c 8802 (native-inputs `(("boost" ,boost)
89f2d736
TGR
8803 ("pkg-config" ,pkg-config)
8804 ("gettext" ,gnu-gettext)
8805 ("autoconf" ,autoconf)
8806 ("autoconf-archive" , autoconf-archive)
8807 ("automake" ,automake)
8808 ("libtool" ,libtool)
8809 ("intltool" ,intltool)
89f2d736 8810 ("gobject-introspection" ,gobject-introspection)
aa51d92c
MC
8811 ("python3" ,python-3)
8812 ("python-jinja2" ,python-jinja2)))
89f2d736
TGR
8813 (synopsis "Tool to help prevent repetitive strain injury (RSI)")
8814 (description
8815 "Workrave is a program that assists in the recovery and prevention of
cc00249b
TGR
8816repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
8817micro-pauses and rest breaks, and restricts you to your daily limit.")
89f2d736
TGR
8818 (home-page "http://www.workrave.org")
8819 (license license:gpl3+)))
312afa7d
LC
8820
8821(define-public ghex
8822 (package
8823 (name "ghex")
3748992a 8824 (version "3.18.4")
312afa7d
LC
8825 (source (origin
8826 (method url-fetch)
2fbab848 8827 (uri (string-append "mirror://gnome/sources/ghex/"
312afa7d 8828 (version-major+minor version) "/"
2fbab848 8829 "ghex-" version ".tar.xz"))
312afa7d
LC
8830 (sha256
8831 (base32
3748992a
KK
8832 "1h1pjrr9wynclfykizqd78dbi785wjz6b63p31k87kjvzy8w3nf2"))))
8833 (build-system meson-build-system)
8834 (arguments
8835 '(#:glib-or-gtk? #t
8836 #:phases
8837 (modify-phases %standard-phases
8838 (add-after 'unpack 'skip-gtk-update-icon-cache
8839 ;; Don't create 'icon-theme.cache'.
8840 (lambda _
8841 (substitute* "meson_post_install.py"
8842 (("gtk-update-icon-cache") (which "true")))
8843 #t)))))
312afa7d
LC
8844 (native-inputs
8845 `(("pkg-config" ,pkg-config)
3748992a 8846 ("glib:bin" ,glib "bin") ; for glib-compile-schemas
312afa7d
LC
8847 ("gnome-common" ,gnome-common)
8848 ("which" ,which)
8849 ("intltool" ,intltool)
8850 ("yelp-tools" ,yelp-tools)
2fbab848 8851 ("desktop-file-utils" ,desktop-file-utils))) ; for 'desktop-file-validate'
312afa7d
LC
8852 (inputs
8853 `(("atk" ,atk)
8854 ("gtk" ,gtk+)))
8855 (synopsis "GNOME hexadecimal editor")
8856 (description "The GHex program can view and edit files in two ways:
8857hexadecimal or ASCII. It is useful for editing binary files in general.")
8858 (home-page "https://wiki.gnome.org/Apps/Ghex")
8859 (license license:gpl2)))
4b2ed6c2
RW
8860
8861(define-public libdazzle
8862 (package
8863 (name "libdazzle")
64fa66ba 8864 (version "3.33.90")
4b2ed6c2
RW
8865 (source (origin
8866 (method url-fetch)
687b4909 8867 (uri (string-append "mirror://gnome/sources/libdazzle/"
4b2ed6c2 8868 (version-major+minor version) "/"
687b4909 8869 "libdazzle-" version ".tar.xz"))
4b2ed6c2
RW
8870 (sha256
8871 (base32
64fa66ba 8872 "189m7q88d1a7bq0yyal9f3yhm9kz46lb61379nn4wsnnhpa1d0qs"))))
4b2ed6c2
RW
8873 (build-system meson-build-system)
8874 (arguments
8875 `(#:phases
8876 (modify-phases %standard-phases
4b2ed6c2
RW
8877 (add-before 'check 'pre-check
8878 (lambda _
8879 ;; Tests require a running X server.
8880 (system "Xvfb :1 &")
8881 (setenv "DISPLAY" ":1")
8882 #t)))))
8883 (native-inputs
687b4909 8884 `(("glib" ,glib "bin") ; glib-compile-resources
4b2ed6c2 8885 ("pkg-config" ,pkg-config)
687b4909 8886 ;; For tests.
ff337525 8887 ("xorg-server" ,xorg-server-for-tests)))
4b2ed6c2
RW
8888 (inputs
8889 `(("glib" ,glib)
8890 ("gobject-introspection" ,gobject-introspection)
8891 ("gtk+" ,gtk+)
8892 ("vala" ,vala)))
8893 (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
8894 (synopsis "Companion library to GObject and Gtk+")
8895 (description "The libdazzle library is a companion library to GObject and
8896Gtk+. It provides various features that the authors wish were in the
8897underlying library but cannot for various reasons. In most cases, they are
8898wildly out of scope for those libraries. In other cases, they are not quite
8899generic enough to work for everyone.")
8900 (license license:gpl3+)))
7d3bb433
RW
8901
8902(define-public evolution
8903 (package
8904 (name "evolution")
06141f83 8905 (version "3.32.4")
7d3bb433
RW
8906 (source (origin
8907 (method url-fetch)
8908 (uri (string-append "mirror://gnome/sources/evolution/"
8909 (version-major+minor version) "/"
8910 "evolution-" version ".tar.xz"))
8911 (sha256
8912 (base32
06141f83 8913 "00hmmg4hfns8rq9rcilmy0gi1xkksld27lfbd9zmw2xw37wjmbqh"))))
7d3bb433
RW
8914 (build-system cmake-build-system)
8915 (arguments
5229bea1
KK
8916 `(#:imported-modules (,@%cmake-build-system-modules
8917 (guix build glib-or-gtk-build-system))
8918 #:modules ((guix build cmake-build-system)
8919 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
8920 (guix build utils))
8921 #:configure-flags
7d3bb433 8922 (list "-DENABLE_PST_IMPORT=OFF" ; libpst is not packaged
5229bea1 8923 "-DENABLE_LIBCRYPTUI=OFF") ; libcryptui hasn't seen a release
7d3bb433 8924 ; in four years and cannot be built.
5229bea1
KK
8925 #:phases
8926 (modify-phases %standard-phases
8927 ;; The build system attempts to install user interface modules to the
8928 ;; output directory of the "evolution-data-server" package. This
8929 ;; change redirects that change.
8930 (add-after 'unpack 'patch-ui-module-dir
8931 (lambda* (#:key outputs #:allow-other-keys)
8932 (substitute* "src/modules/alarm-notify/CMakeLists.txt"
8933 (("\\$\\{edsuimoduledir\\}")
8934 (string-append (assoc-ref outputs "out")
8935 "/lib/evolution-data-server/ui-modules")))
8936 #t))
8937 (add-after 'install 'glib-or-gtk-compile-schemas
8938 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
8939 (add-after 'install 'glib-or-gtk-wrap
8940 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
7d3bb433 8941 (native-inputs
ad6e168b 8942 `(("glib" ,glib "bin") ; glib-mkenums
7d3bb433
RW
8943 ("pkg-config" ,pkg-config)
8944 ("intltool" ,intltool)
8945 ("itstool" ,itstool)))
8946 (inputs
8947 `(("enchant" ,enchant)
8948 ("evolution-data-server" ,evolution-data-server) ; must be the same version
8949 ("gcr" ,gcr)
ad6e168b 8950 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7d3bb433
RW
8951 ("gnome-autoar" ,gnome-autoar)
8952 ("gnome-desktop" ,gnome-desktop)
8953 ("gtkspell3" ,gtkspell3)
8954 ("highlight" ,highlight)
8955 ("libcanberra" ,libcanberra)
b63c06f1 8956 ("libedataserverui" ,evolution-data-server)
7d3bb433
RW
8957 ("libgweather" ,libgweather)
8958 ("libnotify" ,libnotify)
8959 ("libsoup" ,libsoup)
8960 ("nss" ,nss)
8961 ("openldap" ,openldap)
8962 ("webkitgtk" ,webkitgtk)
8963 ("ytnef" ,ytnef)))
8964 (home-page "https://gitlab.gnome.org/GNOME/evolution")
8965 (synopsis "Manage your email, contacts and schedule")
8966 (description "Evolution is a personal information management application
8967that provides integrated mail, calendaring and address book
8968functionality.")
8969 ;; See COPYING for details.
23dbe621 8970 (license (list license:lgpl2.1 license:lgpl3 ; either one of these
7d3bb433 8971 license:openldap2.8 ; addressbook/gui/component/openldap-extract.h
23dbe621 8972 license:lgpl2.1+)))) ; smime/lib/*
169d63f5
AT
8973
8974(define-public gthumb
8975 (package
8976 (name "gthumb")
8280676b 8977 (version "3.8.2")
169d63f5
AT
8978 (source (origin
8979 (method url-fetch)
8980 (uri (string-append "mirror://gnome/sources/gthumb/"
8981 (version-major+minor version) "/"
8982 "gthumb-" version ".tar.xz"))
8983 (sha256
8984 (base32
8280676b 8985 "15wqks35ks5dm7zj046dfd45vvrilan2ayfy2sxiprv7q74cip2q"))))
169d63f5
AT
8986 (build-system meson-build-system)
8987 (arguments
8988 `(#:glib-or-gtk? #t
8989 #:configure-flags
8990 ;; Ensure the RUNPATH contains all installed library locations.
8991 (list (string-append "-Dc_link_args=-Wl,-rpath="
8992 (assoc-ref %outputs "out")
8993 "/lib/gthumb/extensions")
8994 (string-append "-Dcpp_link_args=-Wl,-rpath="
8995 (assoc-ref %outputs "out")
8996 "/lib/gthumb/extensions"))))
8997 (native-inputs
8998 `(("pkg-config" ,pkg-config)
8999 ("glib:bin" ,glib "bin") ; for glib-compile-resources
9000 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
9001 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
9002 ("intltool" ,intltool)
9003 ("itstool" ,itstool)))
9004 (inputs
9005 `(("exiv2" ,exiv2)
9006 ("gtk" ,gtk+)
9007 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9008 ("gstreamer" ,gstreamer)
9009 ("clutter" ,clutter)
9010 ("clutter-gst" ,clutter-gst)
9011 ("clutter-gtk" ,clutter-gtk)
9012 ("libjpeg" ,libjpeg)
9013 ("libtiff" ,libtiff)
9014 ("libraw" ,libraw)))
9015 (home-page "https://wiki.gnome.org/Apps/Gthumb")
9016 (synopsis "GNOME image viewer and browser")
9017 (description "GThumb is an image viewer, browser, organizer, editor and
9018advanced image management tool")
9019 (license license:gpl2+)))
08be02be
AT
9020
9021(define-public terminator
9022 (package
9023 (name "terminator")
9024 (version "1.91")
9025 (source (origin
9026 (method url-fetch)
9027 (uri (string-append "https://launchpad.net/" name "/"
9028 "gtk3/" version "/" "+download/"
9029 name "-" version ".tar.gz"))
9030 (sha256
9031 (base32
9032 "0sdyqwydmdnh7j6mn74vrywz35m416kqsbxbrqcnv5ak08y6xxwm"))))
9033 (build-system python-build-system)
9034 (native-inputs
9035 `(("intltool" ,intltool)
9036 ("glib:bin" ,glib "bin") ; for glib-compile-resources
9037 ("gettext" ,gettext-minimal)
9038 ("pkg-config" ,pkg-config)))
9039 (inputs
9040 `(("cairo" ,cairo)
9041 ("gobject-introspection" ,gobject-introspection)
96681d4b 9042 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
08be02be
AT
9043 ("python2-pycairo" ,python2-pycairo)
9044 ("python2-pygobject" ,python2-pygobject)
9045 ("python2-psutil" ,python2-psutil)
9046 ("vte" ,vte)))
9047 (arguments
96681d4b
TGR
9048 `(#:python ,python-2 ; Python 3 isn't supported
9049 #:imported-modules ((guix build glib-or-gtk-build-system)
9050 ,@%python-build-system-modules)
9051 #:modules ((guix build python-build-system)
9052 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
9053 (guix build utils))
08be02be
AT
9054 #:phases
9055 (modify-phases %standard-phases
9056 (add-after
9057 'install 'wrap-program
9058 (lambda* (#:key outputs #:allow-other-keys)
9059 (let ((prog (string-append (assoc-ref outputs "out")
9060 "/bin/terminator")))
9061 (wrap-program prog
9062 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
9063 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
96681d4b
TGR
9064 #t)))
9065 (add-after 'wrap-program 'glib-or-gtk-wrap
9066 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
08be02be
AT
9067 (home-page "https://gnometerminator.blogspot.com/")
9068 (synopsis "Store and run multiple GNOME terminals in one window")
9069 (description
9070 "Terminator allows you to run multiple GNOME terminals in a grid and
9071+tabs, and it supports drag and drop re-ordering of terminals.")
9072 (license license:gpl2)))
213315d4
JF
9073
9074(define-public libhandy
9075 (package
9076 (name "libhandy")
f6501b9f 9077 (version "0.0.12")
213315d4
JF
9078 (source
9079 (origin
9080 (method git-fetch)
9081 (uri (git-reference
9082 (url "https://source.puri.sm/Librem5/libhandy")
9083 (commit (string-append "v" version))))
9084 (file-name (git-file-name name version))
9085 (sha256
f6501b9f 9086 (base32 "09wlknarzsbk9hr5ws6s7x5kibkhx9ayrbhshfqib4zkhq2f76hw"))))
213315d4
JF
9087 (build-system meson-build-system)
9088 (arguments
9089 `(#:configure-flags
9090 '("-Dglade_catalog=disabled"
9091 "-Dgtk_doc=true")
9092 #:phases
9093 (modify-phases %standard-phases
213315d4
JF
9094 (add-before 'check 'pre-check
9095 (lambda _
9096 ;; Tests require a running X server.
9097 (system "Xvfb :1 &")
9098 (setenv "DISPLAY" ":1")
9099 #t)))))
9100 (inputs
9101 `(("gtk+" ,gtk+)))
9102 (native-inputs
9103 `(("glib:bin" ,glib "bin")
9104 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
9105 ("vala" ,vala)
9106 ("gtk-doc" ,gtk-doc)
9107 ("pkg-config" ,pkg-config)
9108 ("gettext" ,gettext-minimal)
d41ee146
TGR
9109
9110 ;; Test suite dependencies.
ff337525 9111 ("xorg-server" ,xorg-server-for-tests)
d41ee146 9112 ("hicolor-icon-theme" ,hicolor-icon-theme)))
213315d4
JF
9113 (home-page "https://source.puri.sm/Librem5/libhandy")
9114 (synopsis "Library full of GTK+ widgets for mobile phones")
9115 (description "The aim of the handy library is to help with developing user
ae4e1414
JB
9116interfaces for mobile devices using GTK+. It provides responsive GTK+ widgets
9117for usage on small and big screens.")
213315d4 9118 (license license:lgpl2.1+)))
a830d14d
GL
9119
9120(define-public libgit2-glib
9121 (package
9122 (name "libgit2-glib")
9123 (version "0.28.0.1")
9124 (source (origin
9125 (method url-fetch)
9126 (uri (string-append "mirror://gnome/sources/" name "/"
9127 (version-major+minor version) "/"
9128 name "-" version ".tar.xz"))
9129 (sha256
9130 (base32
9131 "0a0g7aw66rfgnqr4z7fgbk5zzcjq66m4rp8v4val3a212941h0g7"))))
9132 (build-system meson-build-system)
9133 (native-inputs
9134 `(("glib:bin" ,glib "bin") ;; For glib-mkenums
9135 ("gobject-introspection" ,gobject-introspection)
9136 ("intltool" ,intltool)
9137 ("libssh2" ,libssh2)
9138 ("pkg-config" ,pkg-config)
9139 ("python-pygobject" ,python-pygobject)
9140 ("python-wrapper" ,python-wrapper)
9141 ("vala" ,vala)))
9142 (inputs
9143 `(("glib" ,glib)
9144 ("libgit2" ,libgit2)))
9145 (synopsis "GLib wrapper around the libgit2 Git access library")
9146 (description "libgit2-glib is a GLib wrapper library around the libgit2 Git
9147access library. It only implements the core plumbing functions, not really the
9148higher level porcelain stuff.")
9149 (home-page "https://wiki.gnome.org/Projects/Libgit2-glib")
9150 (license license:gpl2+)))
93beace0 9151
08db81c9
LP
9152(define-public gitg
9153 (package
9154 (name "gitg")
9155 (version "3.32.1")
9156 (source (origin
9157 (method url-fetch)
9158 (uri (string-append "mirror://gnome/sources/" name "/"
9159 (version-major+minor version) "/"
9160 name "-" version ".tar.xz"))
9161 (sha256
9162 (base32
9163 "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914"))))
9164 (build-system meson-build-system)
9165 (arguments
9166 `(#:glib-or-gtk? #t
9167 #:phases
9168 (modify-phases %standard-phases
9169 (add-after 'unpack 'disable-post-install-partially
9170 (lambda _
9171 (substitute* "meson_post_install.py"
9172 (("'python'") ; there are no python sources to compile
9173 (string-append "'" (which "true") "'"))
9174 (("gtk-update-icon-cache") (which "true")))
9175 #t))
9176 (add-after 'unpack 'fix-test-sources
9177 (lambda _
9178 (substitute* "tests/libgitg/test-commit.vala"
9179 (("/bin/bash") (which "bash")))
9180 #t))
9181 (add-after 'glib-or-gtk-wrap 'wrap-typelib
9182 (lambda* (#:key outputs #:allow-other-keys)
9183 (let ((prog (string-append (assoc-ref outputs "out")
9184 "/bin/gitg")))
9185 (wrap-program prog
9186 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
9187 #t))))))
9188 (inputs
9189 `(("glib" ,glib)
9190 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9191 ("gtk+" ,gtk+)
9192 ("gtkspell3" ,gtkspell3)
9193 ("gtksourceview" ,gtksourceview-3)
9194 ("json-glib" ,json-glib)
9195 ("libdazzle" ,libdazzle)
9196 ("libgee" ,libgee)
9197 ("libgit2" ,libgit2) ; propagated by libgit2-glib
9198 ("libgit2-glib" ,libgit2-glib)
9199 ("libpeas" ,libpeas)
9200 ("libsecret" ,libsecret)
9201 ("libsoup" ,libsoup)
9202 ("libxml2" ,libxml2)))
9203 (native-inputs
9204 `(("glib:bin" ,glib "bin")
9205 ("gtk+:bin" ,gtk+ "bin")
9206 ("gobject-introspection" ,gobject-introspection)
9207 ("intltool" ,intltool)
9208 ("pkg-config" ,pkg-config)
9209 ("vala" ,vala)))
9210 (synopsis "Graphical user interface for git")
9211 (description
9212 "gitg is a graphical user interface for git. It aims at being a small,
9213fast and convenient tool to visualize the history of git repositories.
9214Besides visualization, gitg also provides several utilities to manage your
9215repository and commit your work.")
9216 (home-page "https://wiki.gnome.org/Apps/Gitg")
9217 (license license:gpl2+)))
9218
1e600ed0
RW
9219(define-public gamin
9220 (package
9221 (name "gamin")
9222 (version "0.1.10")
9223 (source (origin
9224 (method url-fetch)
9225 (uri (string-append "mirror://gnome/sources/" name "/"
9226 (version-major+minor version) "/"
9227 name "-" version ".tar.bz2"))
9228 (sha256
9229 (base32
9230 "02n1zr9y8q9lyczhcz0nxar1vmf8p2mmbw8kq0v43wg21jr4i6d5"))))
9231 (build-system gnu-build-system)
9232 (arguments
9233 `(#:phases
9234 (modify-phases %standard-phases
9235 (add-after 'unpack 'remove-deprecated-macro
9236 (lambda _
9237 (substitute* '("server/gam_node.c"
9238 "server/gam_subscription.h"
9239 "server/gam_node.h"
9240 "server/gam_subscription.c")
9241 (("G_CONST_RETURN") "const"))
9242 #t)))))
9243 (inputs
9244 `(("glib" ,glib)))
9245 (native-inputs
9246 `(("intltool" ,intltool)
9247 ("pkg-config" ,pkg-config)))
9248 (home-page "https://people.gnome.org/~veillard/gamin/")
9249 (synopsis "File alteration monitor")
9250 (description
9251 "Gamin is a file and directory monitoring system defined to be a subset
9252of the FAM (File Alteration Monitor) system. This is a service provided by a
9253library which allows to detect when a file or a directory has been modified.")
9254 (license license:gpl2+)))
9255
93beace0
DW
9256(define-public gnome-mahjongg
9257 (package
9258 (name "gnome-mahjongg")
9259 (version "3.35.1")
9260 (source (origin
9261 (method git-fetch)
9262 (uri (git-reference
9263 (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
9264 (commit version)))
9265 (file-name (git-file-name name version))
9266 (sha256
9267 (base32
9268 "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
9269 (build-system meson-build-system)
9270 (arguments
9271 `(#:glib-or-gtk? #t))
9272 (native-inputs
9273 `(("appstream-glib" ,appstream-glib)
9274 ("gettext" ,gettext-minimal)
9275 ("glib:bin" ,glib "bin") ;; For glib-compile-resources
9276 ("gtk+" ,gtk+ "bin") ;; For gtk-update-icon-cache
9277 ("itstool" ,itstool)
9278 ("pkg-config" ,pkg-config)
9279 ("vala" ,vala)))
9280 (propagated-inputs
9281 `(("dconf" ,dconf)))
9282 (inputs
9283 `(("glib" ,glib)
9284 ("gtk+" ,gtk+)
9285 ("librsvg" ,librsvg)))
9286 (synopsis "Mahjongg tile-matching game")
9287 (description "GNOME Mahjongg is a game based on the classic Chinese
9288tile-matching game Mahjong. It features multiple board layouts, tile themes,
9289and a high score table.")
9290 (home-page "https://wiki.gnome.org/Apps/Mahjongg")
9291 (license license:gpl2+)))
f825476c 9292
76ea7632
RG
9293(define-public gnome-themes-extra
9294 (package
9295 (name "gnome-themes-extra")
9296 (version "3.28")
9297 (source
9298 (origin
9299 (method url-fetch)
9300 (uri (string-append "mirror://gnome/sources/" name "/"
9301 (version-major+minor version) "/" name "-"
9302 version ".tar.xz"))
9303 (sha256
9304 (base32
9305 "06aqg9asq2vqi9wr29bs4v8z2bf4manhbhfghf4nvw01y2zs0jvw"))))
9306 (build-system gnu-build-system)
885424bf
RG
9307 (arguments
9308 '(#:configure-flags
9309 ;; Don't create 'icon-theme.cache'.
9310 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
9311 (true (string-append coreutils "/bin/true")))
9312 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
76ea7632
RG
9313 (native-inputs
9314 `(("glib:bin" ,glib "bin")
9315 ("intltool" ,intltool)
9316 ("pkg-config" ,pkg-config)))
9317 (inputs
9318 `(("glib" ,glib)
9319 ("gtk+" ,gtk+)
9320 ("gtk+-2" ,gtk+-2)
9321 ("librsvg" ,librsvg)
9322 ("libxml2" ,libxml2)))
9323 (home-page "https://gitlab.gnome.org/GNOME/gnome-themes-extra")
9324 (synopsis "GNOME Extra Themes")
9325 (description "This package provides themes and related elements that don't
9326really fit in other upstream packages. It offers legacy support for GTK+ 2
9327versions of Adwaita, Adwaita-dark and HighContrast themes. It also provides
9328index files needed for Adwaita to be used outside of GNOME.")
9329 (license license:lgpl2.1+)))
9330
f825476c
LP
9331(define-public polari
9332 (package
9333 (name "polari")
9334 (version "3.32.2")
9335 (source (origin
9336 (method url-fetch)
9337 (uri (string-append "mirror://gnome/sources/polari/"
9338 (version-major+minor version)
9339 "/polari-" version ".tar.xz"))
9340 (sha256
9341 (base32
9342 "0h0w9j3y067l911gpj446b3a2w1i2vzr1w2a7cz7i5rhn6qkf2sp"))))
9343 (build-system meson-build-system)
9344 (arguments
9345 `(#:glib-or-gtk? #t
9346 #:phases
9347 (modify-phases %standard-phases
9348 (add-after 'unpack 'skip-gtk-update-icon-cache
9349 (lambda _
9350 (substitute* "meson/meson-postinstall.sh"
9351 (("gtk-update-icon-cache") (which "true")))
9352 #t))
9353 (add-after 'glib-or-gtk-wrap 'wrap-typelib
9354 (lambda* (#:key outputs #:allow-other-keys)
9355 (let ((prog (string-append (assoc-ref outputs "out")
9356 "/bin/polari")))
9357 (wrap-program prog
9358 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
9359 #t))))))
9360 (inputs
9361 `(("glib" ,glib)
9362 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9363 ("gspell" ,gspell)
9364 ("gtk+" ,gtk+)
9365 ("gjs" ,gjs)
9366 ("libsecret" ,libsecret)
9367 ("libsoup" ,libsoup)
9368 ("telepathy-glib" ,telepathy-glib)
9369 ("telepathy-logger" ,telepathy-logger)))
9370 (native-inputs
9371 `(("glib:bin" ,glib "bin")
9372 ("gobject-introspection" ,gobject-introspection)
9373 ("intltool" ,intltool)
9374 ("pkg-config" ,pkg-config)
9375 ("yelp-tools" ,yelp-tools)))
9376 (propagated-inputs
9377 `(("telepathy-idle" ,telepathy-idle)
9378 ("telepathy-mission-control" ,telepathy-mission-control)))
9379 (synopsis "Simple IRC Client")
9380 (description
9381 "Polari is a simple Internet Relay Chat (IRC) client that is designed to
9382integrate seamlessly with the GNOME desktop.")
9383 (home-page "https://wiki.gnome.org/Apps/Polari")
9384 (license license:gpl2+)))