gnu: WebkitGTK: Fix build failure with ICU 65.
[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>
fa75a213 24;;; Copyright © 2016, 2017, 2018, 2019 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>
995b7261
AE
48;;;
49;;; This file is part of GNU Guix.
50;;;
51;;; GNU Guix is free software; you can redistribute it and/or modify it
52;;; under the terms of the GNU General Public License as published by
53;;; the Free Software Foundation; either version 3 of the License, or (at
54;;; your option) any later version.
55;;;
56;;; GNU Guix is distributed in the hope that it will be useful, but
57;;; WITHOUT ANY WARRANTY; without even the implied warranty of
58;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
59;;; GNU General Public License for more details.
60;;;
61;;; You should have received a copy of the GNU General Public License
62;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
63
64(define-module (gnu packages gnome)
ed19903d 65 #:use-module (gnu packages)
ba5dd105 66 #:use-module (gnu packages admin)
411ba511 67 #:use-module (gnu packages aspell)
75016d07 68 #:use-module (gnu packages autotools)
7b212526 69 #:use-module (gnu packages avahi)
b29909b4 70 #:use-module (gnu packages backup)
6a180f6f 71 #:use-module (gnu packages base)
1e33331c 72 #:use-module (gnu packages bash)
5698b8b8 73 #:use-module (gnu packages bison)
aa51d92c 74 #:use-module (gnu packages boost)
5fc9b6c1 75 #:use-module (gnu packages build-tools)
df217748 76 #:use-module (gnu packages calendar)
b29909b4 77 #:use-module (gnu packages cdrom)
df12f04a 78 #:use-module (gnu packages check)
d61a894b 79 #:use-module (gnu packages cmake)
b29909b4 80 #:use-module (gnu packages compression)
8f523eb9 81 #:use-module (gnu packages crates-io)
23a22af6 82 #:use-module (gnu packages cups)
6e1bb642 83 #:use-module (gnu packages curl)
c3f29bc9 84 #:use-module (gnu packages cyrus-sasl)
6e1bb642 85 #:use-module (gnu packages databases)
255d1bbe 86 #:use-module (gnu packages dbm)
c769cf9f 87 #:use-module (gnu packages djvu)
ba5dd105 88 #:use-module (gnu packages dns)
b4ce6300 89 #:use-module (gnu packages docbook)
b29909b4 90 #:use-module (gnu packages documentation)
329d731b 91 #:use-module (gnu packages enchant)
b29909b4
TGR
92 #:use-module (gnu packages flex)
93 #:use-module (gnu packages fonts)
e762d943 94 #:use-module (gnu packages file-systems)
a56be436 95 #:use-module (gnu packages fontutils)
b29909b4 96 #:use-module (gnu packages freedesktop)
dfc407f3 97 #:use-module (gnu packages game-development)
fed5a689 98 #:use-module (gnu packages gettext)
b29909b4
TGR
99 #:use-module (gnu packages ghostscript)
100 #:use-module (gnu packages gl)
995b7261 101 #:use-module (gnu packages glib)
c1354b90 102 #:use-module (gnu packages gnupg)
23a22af6 103 #:use-module (gnu packages gnuzilla)
8d8c6bff 104 #:use-module (gnu packages geo)
b29909b4
TGR
105 #:use-module (gnu packages gperf)
106 #:use-module (gnu packages graphviz)
85f5dc19 107 #:use-module (gnu packages gstreamer)
d9c1a22b 108 #:use-module (gnu packages gtk)
6b888eff 109 #:use-module (gnu packages guile)
b645146f 110 #:use-module (gnu packages ibus)
03be9874 111 #:use-module (gnu packages icu4c)
b29909b4
TGR
112 #:use-module (gnu packages image)
113 #:use-module (gnu packages imagemagick)
114 #:use-module (gnu packages inkscape)
9cc98f8a 115 #:use-module (gnu packages iso-codes)
b29909b4 116 #:use-module (gnu packages kerberos)
85f5dc19 117 #:use-module (gnu packages libcanberra)
b64e217f 118 #:use-module (gnu packages libunistring)
75016d07 119 #:use-module (gnu packages libusb)
b29909b4 120 #:use-module (gnu packages linux)
4e3fc547 121 #:use-module (gnu packages lirc)
7b212526 122 #:use-module (gnu packages lua)
b29909b4 123 #:use-module (gnu packages mail)
03be9874 124 #:use-module (gnu packages mp3)
b29909b4 125 #:use-module (gnu packages multiprecision)
64fce637 126 #:use-module (gnu packages music)
b29909b4
TGR
127 #:use-module (gnu packages ncurses)
128 #:use-module (gnu packages nettle)
ba5dd105 129 #:use-module (gnu packages networking)
5fc9b6c1 130 #:use-module (gnu packages ninja)
aff0cce9 131 #:use-module (gnu packages nss)
b29909b4 132 #:use-module (gnu packages openldap)
b645146f 133 #:use-module (gnu packages password-utils)
de1215e2 134 #:use-module (gnu packages pcre)
b29909b4 135 #:use-module (gnu packages pdf)
27477d2d 136 #:use-module (gnu packages perl)
f70d8383 137 #:use-module (gnu packages photo)
995b7261 138 #:use-module (gnu packages pkg-config)
b29909b4
TGR
139 #:use-module (gnu packages polkit)
140 #:use-module (gnu packages popt)
7d3bb433 141 #:use-module (gnu packages pretty-print)
23a22af6 142 #:use-module (gnu packages pulseaudio)
995b7261 143 #:use-module (gnu packages python)
00014781
RW
144 #:use-module (gnu packages python-crypto)
145 #:use-module (gnu packages python-web)
44d10b1f 146 #:use-module (gnu packages python-xyz)
cce0da5e 147 #:use-module (gnu packages rdesktop)
b29909b4 148 #:use-module (gnu packages readline)
a76d0f03 149 #:use-module (gnu packages ruby)
ec47c07d 150 #:use-module (gnu packages rust)
b29909b4 151 #:use-module (gnu packages samba)
75016d07 152 #:use-module (gnu packages scanner)
240cee8a 153 #:use-module (gnu packages selinux)
c27e02bf 154 #:use-module (gnu packages slang)
b29909b4
TGR
155 #:use-module (gnu packages speech)
156 #:use-module (gnu packages spice)
cd0322a3 157 #:use-module (gnu packages sqlite)
4a1bf090 158 #:use-module (gnu packages ssh)
8f9ac901 159 #:use-module (gnu packages tex)
33dc54b0 160 #:use-module (gnu packages time)
a7fd7b68 161 #:use-module (gnu packages tls)
3c5dbd2b 162 #:use-module (gnu packages version-control)
b29909b4 163 #:use-module (gnu packages video)
59132b80 164 #:use-module (gnu packages virtualization)
f2b96b3a 165 #:use-module (gnu packages vpn)
a18f8eaf 166 #:use-module (gnu packages web)
b29909b4
TGR
167 #:use-module (gnu packages web)
168 #:use-module (gnu packages webkit)
169 #:use-module (gnu packages xdisorg)
170 #:use-module (gnu packages xiph)
171 #:use-module (gnu packages xml)
d633f2f6 172 #:use-module (gnu packages xorg)
b29909b4 173 #:use-module (gnu packages xorg)
a76d0f03 174 #:use-module (gnu artwork)
8f523eb9 175 #:use-module (guix build-system cargo)
b29909b4
TGR
176 #:use-module (guix build-system cmake)
177 #:use-module (guix build-system glib-or-gtk)
178 #:use-module (guix build-system gnu)
179 #:use-module (guix build-system meson)
08be02be 180 #:use-module (guix build-system python)
b29909b4
TGR
181 #:use-module (guix build-system trivial)
182 #:use-module (guix download)
183 #:use-module (guix git-download)
184 #:use-module ((guix licenses) #:prefix license:)
185 #:use-module (guix packages)
186 #:use-module (guix utils)
a76d0f03 187 #:use-module (guix gexp)
8f523eb9
EF
188 #:use-module (guix monads)
189 #:use-module (guix store)
4e3fdeb7 190 #:use-module (ice-9 match)
c024ae36 191 #:use-module (srfi srfi-1))
85f5dc19
AE
192
193(define-public brasero
194 (package
195 (name "brasero")
e2bf423a 196 (version "3.12.2")
85f5dc19
AE
197 (source (origin
198 (method url-fetch)
d1df7554 199 (uri (string-append "mirror://gnome/sources/brasero/"
e8627cd9 200 (version-major+minor version) "/"
d1df7554 201 "brasero-" version ".tar.xz"))
85f5dc19
AE
202 (sha256
203 (base32
e2bf423a 204 "0h90y674j26rvjahb8cc0w79zx477rb6zaqcj26wzvq8kmpic8k8"))))
1c40e3b7 205 (build-system glib-or-gtk-build-system)
e8627cd9
DH
206 (arguments
207 `(#:configure-flags (list
208 (string-append "--with-girdir="
209 (assoc-ref %outputs "out")
210 "/share/gir-1.0")
211 (string-append "--with-typelibdir="
212 (assoc-ref %outputs "out")
ce426deb
TD
213 "/lib/girepository-1.0"))
214 #:phases
215 (modify-phases %standard-phases
216 (add-before 'configure 'embed-growisofs
217 (lambda* (#:key inputs #:allow-other-keys)
218 (substitute* "plugins/growisofs/burn-growisofs.c"
219 (("\"growisofs") (string-append "\"" (which "growisofs"))))
e2bf423a 220 #t)))))
85f5dc19
AE
221 (propagated-inputs
222 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
9cc98f8a
CR
223 (native-inputs
224 `(("intltool" ,intltool)
ba549e17 225 ("itstool" ,itstool)
426adbe8 226 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
e8627cd9 227 ("gobject-introspection" ,gobject-introspection)
9cc98f8a 228 ("pkg-config" ,pkg-config)))
85f5dc19 229 (inputs
ce426deb
TD
230 `(("dvd+rw-tools" ,dvd+rw-tools)
231 ("glib" ,glib)
85f5dc19
AE
232 ("gnome-doc-utils" ,gnome-doc-utils)
233 ("gstreamer" ,gstreamer)
234 ("gst-plugins-base" ,gst-plugins-base)
235 ("gtk+" ,gtk+)
85f5dc19
AE
236 ("libcanberra" ,libcanberra)
237 ("libice" ,libice)
238 ("libnotify" ,libnotify)
239 ("libsm" ,libsm)
e8627cd9 240 ("libxml2" ,libxml2)
e8627cd9 241 ("totem-pl-parser" ,totem-pl-parser)))
fb9399e9 242 (home-page "https://wiki.gnome.org/Apps/Brasero")
85f5dc19
AE
243 (synopsis "CD/DVD burning tool for Gnome")
244 (description "Brasero is an application to burn CD/DVD for the Gnome
245Desktop. It is designed to be as simple as possible and has some unique
246features to enable users to create their discs easily and quickly.")
1dd26275 247 (license license:gpl2+)))
995b7261 248
d61a894b
CB
249(define-public deja-dup
250 (package
251 (name "deja-dup")
252 (version "34.3")
253 (source (origin
254 (method url-fetch)
255 (uri "https://launchpadlibrarian.net/295170991/deja-dup-34.3.tar.xz")
256 (sha256
257 (base32
258 "1xqcr61hpbahbla7gdjn4ngjfz7w6f57y7f5pkb77yk05f60j2n9"))
259 (patches
260 (search-patches "deja-dup-use-ref-keyword-for-iter.patch"))))
261 (build-system glib-or-gtk-build-system)
262 (arguments
263 `(#:modules ((guix build gnu-build-system)
264 ((guix build cmake-build-system) #:prefix cmake:)
265 (guix build glib-or-gtk-build-system)
266 (guix build utils))
267 #:imported-modules (,@%glib-or-gtk-build-system-modules
268 (guix build cmake-build-system))
269 #:test-target "test"
270 #:configure-flags (list (string-append
271 "-DCMAKE_INSTALL_FULL_DATADIR=" %output)
272 (string-append
273 "-DCMAKE_INSTALL_LIBEXECDIR=" %output))
274 #:phases
275 (modify-phases %standard-phases
276 (add-after 'unpack 'patch-lockfile-deletion
277 (lambda rest
278 (substitute* "libdeja/tools/duplicity/DuplicityInstance.vala"
279 (("/bin/rm")
280 (which "rm")))))
281 (replace 'configure
282 (assoc-ref cmake:%standard-phases 'configure))
283 (delete 'check) ;; Fails due to issues with DBus
284 (add-after 'install 'wrap-deja-dup
285 (lambda* (#:key inputs outputs #:allow-other-keys)
286 (let ((python (assoc-ref inputs "python"))
287 (python-path (getenv "PYTHONPATH"))
288 (duplicity (assoc-ref inputs "duplicity"))
289 (out (assoc-ref outputs "out")))
290 (for-each
291 (lambda (program)
292 (wrap-program program
293 `("PATH" ":" prefix (,(string-append python "/bin")
294 ,(string-append duplicity "/bin"))))
295 (wrap-program program
296 `("PYTHONPATH" ":" prefix (,python-path))))
297
298 (find-files (string-append out "/bin")))
299 #t))))))
300 (inputs
301 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
302 ("gobject-introspection" ,gobject-introspection)
303 ("duplicity" ,duplicity)
61506fe5 304 ("python" ,python-2)
d61a894b
CB
305 ("python-pygobject" ,python2-pygobject)
306 ("gtk+" ,gtk+)
307 ("libnotify" ,libnotify)
308 ("libpeas" ,libpeas)
309 ("libsecret" ,libsecret)
310 ("packagekit" ,packagekit)))
311 (native-inputs
312 `(("pkg-config" ,pkg-config)
313 ("vala" ,vala)
314 ("gettext" ,gettext-minimal)
315 ("itstool" ,itstool)
316 ("intltool" ,intltool)
c69959f0 317 ("cmake" ,cmake-minimal)))
d61a894b
CB
318 (home-page "https://launchpad.net/deja-dup")
319 (synopsis "Simple backup tool, for regular encrypted backups")
320 (description
321 "Déjà Dup is a simple backup tool, for regular encrypted backups. It
322uses duplicity as the backend, which supports incremental backups and storage
323either on a local, or remote machine via a number of methods.")
324 (license license:gpl3+)))
325
a56be436
RJ
326(define-public dia
327 ;; This version from GNOME's repository includes fixes for compiling with
328 ;; recent versions of the build tools. The latest activity on the
329 ;; pre-GNOME version has been in 2014, while GNOME has continued applying
330 ;; fixes in 2016.
331 (let ((commit "fbc306168edab63db80b904956117cbbdc514ee4"))
332 (package
333 (name "dia")
914c8cdf 334 (version (git-version "0.97.3" "1" commit))
a56be436
RJ
335 (source (origin
336 (method git-fetch)
337 (uri (git-reference
914c8cdf 338 (url "https://gitlab.gnome.org/GNOME/dia.git/")
a56be436 339 (commit commit)))
914c8cdf 340 (file-name (git-file-name name version))
a56be436
RJ
341 (sha256
342 (base32
343 "1b4bba0k8ph4cwgw8xjglss0p6n111bpd5app67lrq79mp0ad06l"))))
344 (build-system gnu-build-system)
345 (inputs
a315afa3 346 `(("freetype" ,freetype)
a56be436
RJ
347 ("gdk-pixbuf" ,gdk-pixbuf)
348 ("gtk+" ,gtk+-2)
a315afa3 349 ("libart-lgpl" ,libart-lgpl)
a56be436 350 ("libxml2" ,libxml2)
a315afa3 351 ("pango" ,pango)))
a56be436 352 (native-inputs
a315afa3 353 `(("autoconf" ,autoconf)
a56be436 354 ("automake" ,automake)
a315afa3
EF
355 ("intltool" ,intltool)
356 ("glib" ,glib "bin")
a56be436
RJ
357 ("libtool" ,libtool)
358 ("perl" ,perl)
a315afa3 359 ("pkg-config" ,pkg-config)
a56be436
RJ
360 ("python-wrapper" ,python-wrapper)))
361 (arguments
362 `(#:phases
363 (modify-phases %standard-phases
4b3e91de 364 (add-before 'bootstrap 'dont-configure-during-bootstrap
a56be436 365 (lambda _
4b3e91de
EF
366 (setenv "NOCONFIGURE" "true")
367 #t)))))
a56be436
RJ
368 (home-page "https://wiki.gnome.org/Apps/Dia")
369 (synopsis "Diagram creation for GNOME")
370 (description "Dia can be used to draw different types of diagrams, and
371includes support for UML static structure diagrams (class diagrams), entity
372relationship modeling, and network diagrams. The program supports various file
373formats like PNG, SVG, PDF and EPS.")
374 (license license:gpl2+))))
375
d0b19e44
RW
376;; This is the unstable release, but it is required for the current stable
377;; release of gvfs (1.38.1).
adc5cb1b
KK
378(define-public libgdata
379 (package
380 (name "libgdata")
d0b19e44 381 (version "0.17.9")
adc5cb1b
KK
382 (source (origin
383 (method url-fetch)
384 (uri (string-append "mirror://gnome/sources/" name "/"
385 (version-major+minor version) "/"
386 name "-" version ".tar.xz"))
387 (sha256
388 (base32
d0b19e44 389 "0fj54yqxdapdppisqm1xcyrpgcichdmipq0a0spzz6009ikzgi45"))))
adc5cb1b
KK
390 (build-system gnu-build-system)
391 (arguments
392 '(#:phases
393 (modify-phases %standard-phases
448052b7
TGR
394 (add-before 'check 'disable-failing-tests
395 (lambda _
396 ;; The PicasaWeb API tests fail with gnome-online-accounts@3.24.2.
397 ;; They have been removed in libgdata 0.17.6, so just do the same.
398 (substitute* "gdata/tests/Makefile"
399 (("picasaweb\\$\\(EXEEXT\\) ") ""))
adc5cb1b
KK
400 #t)))))
401 (native-inputs
402 `(("glib:bin" ,glib "bin")
403 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
404 ("intltool" ,intltool)
405 ("pkg-config" ,pkg-config)
406 ("uhttpmock" ,uhttpmock)))
407 (inputs
408 `(("cyrus-sasl" ,cyrus-sasl)
d0b19e44 409 ("glib-networking" ,glib-networking)))
adc5cb1b
KK
410 (propagated-inputs
411 `(("gcr" ,gcr)
d0b19e44 412 ("glib" ,glib)
14c297fd 413 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
d0b19e44 414 ("json-glib" ,json-glib)
adc5cb1b 415 ("liboauth" ,liboauth)
d0b19e44 416 ("libsoup" ,libsoup)
adc5cb1b
KK
417 ("libxml2" ,libxml2)))
418 (home-page "https://wiki.gnome.org/Projects/libgdata")
419 (synopsis "Library for accessing online service APIs")
420 (description
421 "libgdata is a GLib-based library for accessing online service APIs using
422the GData protocol — most notably, Google's services. It provides APIs to
423access the common Google services, and has full asynchronous support.")
424 (license license:lgpl2.1+)))
425
94e10cf4
KK
426(define-public libgxps
427 (package
428 (name "libgxps")
66470a5a 429 (version "0.3.1")
94e10cf4
KK
430 (source (origin
431 (method url-fetch)
7f10628c 432 (uri (string-append "mirror://gnome/sources/" name "/"
94e10cf4
KK
433 (version-major+minor version) "/"
434 name "-" version ".tar.xz"))
435 (sha256
436 (base32
66470a5a 437 "157s4c9gjjss6yd7qp7n4q6s72gz1k4ilsx4xjvp357azk49z4qs"))))
b6b3e512 438 (build-system meson-build-system)
94e10cf4
KK
439 (native-inputs
440 `(("gobject-introspection" ,gobject-introspection)
441 ("pkg-config" ,pkg-config)))
442 (inputs
c8d62d93 443 `(("gtk+" ,gtk+)
b6b3e512 444 ("libjpeg" ,libjpeg-turbo)
94e10cf4 445 ("lcms" ,lcms)
0a6e9e13 446 ("libtiff" ,libtiff)))
c8d62d93
MB
447 (propagated-inputs
448 ;; In Requires of libgxps.pc.
449 `(("cairo" ,cairo)
450 ("glib" ,glib)
451 ("libarchive" ,libarchive)))
94e10cf4
KK
452 (home-page "https://wiki.gnome.org/Projects/libgxps")
453 (synopsis "GObject-based library for handling and rendering XPS documents")
454 (description
455 "libgxps is a GObject-based library for handling and rendering XPS
456documents. This package also contains binaries that can convert XPS documents
457to other formats.")
458 (license license:lgpl2.1+)))
459
4e09f57a
RG
460(define-public gnome-characters
461 (package
462 (name "gnome-characters")
463 (version "3.30.0")
464 (source
465 (origin
466 (method url-fetch)
467 (uri (string-append "mirror://gnome/sources/"
468 "gnome-characters/" (version-major+minor version)
469 "/gnome-characters-" version ".tar.xz"))
470 (sha256
471 (base32
472 "08cwz39iwgsyyb2wqhb8vfbmh1cwfkgfiy7adp08w7rwqi99x3dp"))))
473 (build-system meson-build-system)
474 (arguments '(#:glib-or-gtk? #t))
475 (native-inputs
476 `(("gettext" ,gettext-minimal)
477 ("glib:bin" ,glib "bin")
478 ("gtk+:bin" ,gtk+ "bin")
479 ("pkg-config" ,pkg-config)
480 ("python" ,python-minimal)))
481 (inputs
482 `(("gjs" ,gjs)
483 ("gtk+" ,gtk+)
484 ("libunistring" ,libunistring)))
485 (home-page "https://wiki.gnome.org/Apps/CharacterMap")
486 (synopsis "Find and insert unusual characters")
487 (description "Characters is a simple utility application to find
488and insert unusual characters. It allows you to quickly find the
489character you are looking for by searching for keywords.")
490 (license license:bsd-3)))
491
7aab13f1
ML
492(define-public gnome-common
493 (package
494 (name "gnome-common")
af83490d 495 (version "3.18.0")
7aab13f1
ML
496 (source
497 (origin
498 (method url-fetch)
499 (uri (string-append "mirror://gnome/sources/" name "/"
500 (version-major+minor version) "/"
501 name "-" version ".tar.xz"))
502 (sha256
503 (base32
af83490d 504 "1kzqi8qvh5p1zncj8msazlmvcwsczjz2hqxp4x2y0mg718vrwmi2"))))
7aab13f1
ML
505 (build-system gnu-build-system)
506 (home-page "https://www.gnome.org/")
507 (synopsis "Bootstrap GNOME modules built from Git")
508 (description "gnome-common contains various files needed to bootstrap
509GNOME modules built from Git. It contains a common \"autogen.sh\" script that
510can be used to configure a source directory checked out from Git and some
511commonly used macros.")
512 (license license:gpl2+)))
513
4e868d22
RG
514(define-public gnome-contacts
515 (package
516 (name "gnome-contacts")
6a6138b2 517 (version "3.32.1")
4e868d22
RG
518 (source (origin
519 (method url-fetch)
520 (uri (string-append "mirror://gnome/sources/gnome-contacts/"
521 (version-major+minor version) "/"
522 name "-" version ".tar.xz"))
523 (sha256
524 (base32
6a6138b2 525 "17g1gh8yj58cfpdx69h2szivlbjgvv982kmhnkkh0i5bwj0zs2yy"))))
4e868d22
RG
526 (build-system meson-build-system)
527 (arguments
528 `(#:phases
529 (modify-phases %standard-phases
530 (add-after 'unpack 'generate-vapis
531 (lambda* (#:key inputs #:allow-other-keys)
532 ;; To generate goa's missing .vapi file
533 (define goa
534 (assoc-ref inputs "gnome-online-accounts:lib"))
535
536 (invoke "vapigen" "--directory=vapi" "--pkg=gio-2.0"
537 "--library=goa-1.0"
538 (string-append goa "/share/gir-1.0/Goa-1.0.gir"))
539 #t)))))
540 (native-inputs
541 `(("glib:bin" ,glib "bin")
542 ("gtk+:bin" ,gtk+ "bin")
543 ("pkg-config" ,pkg-config)))
544 (inputs
545 `(("cheese" ,cheese)
546 ("docbook-xml" ,docbook-xml)
547 ("dockbook-xsl" ,docbook-xsl)
548 ("evolution-data-server" ,evolution-data-server)
549 ("gettext" ,gettext-minimal)
550 ("gnome-desktop" ,gnome-desktop)
551 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
552 ("gobject-introspection" ,gobject-introspection)
553 ("gst-plugins-base" ,gst-plugins-base)
554 ("gtk+" ,gtk+)
555 ("libgee" ,libgee)
556 ("libxslt" ,libxslt)
557 ("telepathy-glib" ,telepathy-glib)
558 ("vala" ,vala)))
559 (propagated-inputs
560 `(("folks", folks)
561 ("telepathy-mission-control" ,telepathy-mission-control)))
562 (synopsis "GNOME's integrated address book")
563 (description
564 "GNOME Contacts organizes your contact information from online and
565offline sources, providing a centralized place for managing your contacts.")
566 (home-page "https://wiki.gnome.org/Apps/Contacts")
567 (license license:gpl2+)))
568
9cc98f8a
CR
569(define-public gnome-desktop
570 (package
571 (name "gnome-desktop")
e8a26caa 572 (version "3.32.2")
9cc98f8a
CR
573 (source
574 (origin
575 (method url-fetch)
b38e45d8
EB
576 (uri (string-append "mirror://gnome/sources/" name "/"
577 (version-major+minor version) "/"
9cc98f8a
CR
578 name "-" version ".tar.xz"))
579 (sha256
580 (base32
e8a26caa
KK
581 "0bidx4626x7k2myv6f64qv4fzmxv8v475wibiz19kj8hjfr737q9"))))
582 (build-system meson-build-system)
a0fe7c06
CB
583 (arguments
584 '(#:phases
585 (modify-phases %standard-phases
586 (add-before 'configure 'patch-path
587 (lambda* (#:key inputs #:allow-other-keys)
588 (let ((libc (assoc-ref inputs "libc")))
589 (substitute* "libgnome-desktop/gnome-languages.c"
590 (("\"locale\"")
591 (string-append "\"" libc "/bin/locale\"")))
e8a26caa
KK
592 #t)))
593 (add-before 'check 'pre-check
594 (lambda* (#:key inputs #:allow-other-keys)
595 ;; Tests require a running X server and locales.
596 (system "Xvfb :1 &")
597 (setenv "DISPLAY" ":1")
598 (setenv "GUIX_LOCPATH"
599 (string-append (assoc-ref inputs "glibc-locales")
600 "/lib/locale"))
601 #t)))))
9cc98f8a 602 (native-inputs
e8a26caa
KK
603 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
604 ("glibc-locales" ,glibc-locales) ; for tests
605 ("gobject-introspection" ,gobject-introspection)
a8340482 606 ("itstool" ,itstool)
bcb354ad
SB
607 ("intltool" ,intltool)
608 ("pkg-config" ,pkg-config)
e8a26caa
KK
609 ("xmllint" ,libxml2)
610 ("xorg-server" ,xorg-server-for-tests)))
a8340482
SB
611 (propagated-inputs
612 ;; Required by gnome-desktop-3.0.pc.
613 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
e8a26caa 614 ("gtk+" ,gtk+)
9cc98f8a 615 ("iso-codes" ,iso-codes)
9863ce20 616 ("libseccomp" ,libseccomp)
9cc98f8a 617 ("libx11" ,libx11)
e8a26caa
KK
618 ("xkeyboard-config" ,xkeyboard-config)))
619 (inputs
620 `(("gdk-pixbuf" ,gdk-pixbuf)
621 ("glib" ,glib)
9cc98f8a
CR
622 ("libxext" ,libxext)
623 ("libxkbfile" ,libxkbfile)
e8a26caa 624 ("libxrandr" ,libxrandr)))
9cc98f8a
CR
625 (home-page "https://www.gnome.org/")
626 (synopsis
35b9e423 627 "Libgnome-desktop, gnome-about, and desktop-wide documents")
9cc98f8a
CR
628 (description
629 "The libgnome-desktop library provides API shared by several applications
35b9e423
EB
630on the desktop, but that cannot live in the platform for various reasons.
631There is no API or ABI guarantee, although we are doing our best to provide
632stability. Documentation for the API is available with gtk-doc.
9cc98f8a
CR
633
634The gnome-about program helps find which version of GNOME is installed.")
635 ; Some bits under the LGPL.
1dd26275 636 (license license:gpl2+)))
9cc98f8a 637
995b7261
AE
638(define-public gnome-doc-utils
639 (package
640 (name "gnome-doc-utils")
641 (version "0.20.10")
642 (source
643 (origin
644 (method url-fetch)
b38e45d8
EB
645 (uri (string-append "mirror://gnome/sources/" name "/"
646 (version-major+minor version) "/"
995b7261
AE
647 name "-" version ".tar.xz"))
648 (sha256
649 (base32
650 "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb"))))
651 (build-system gnu-build-system)
c4c4cc05 652 (native-inputs
995b7261 653 `(("intltool" ,intltool)
b4ce6300 654 ("docbook-xml" ,docbook-xml-4.4)
d80b0d4a 655 ("python2-libxml2" ,python2-libxml2)
995b7261
AE
656 ("libxml2" ,libxml2)
657 ("libxslt" ,libxslt)
658 ("pkg-config" ,pkg-config)
659 ("python-2" ,python-2)))
995b7261
AE
660 (home-page "https://wiki.gnome.org/GnomeDocUtils")
661 (synopsis
662 "Documentation utilities for the Gnome project")
663 (description
664 "Gnome-doc-utils is a collection of documentation utilities for the
665Gnome project. It includes xml2po tool which makes it easier to translate
666and keep up to date translations of documentation.")
1dd26275 667 (license license:gpl2+))) ; xslt under lgpl
d9c1a22b 668
6c4f7022
DC
669(define-public gnome-disk-utility
670 (package
671 (name "gnome-disk-utility")
e106d0a6 672 (version "3.32.1")
6c4f7022
DC
673 (source (origin
674 (method url-fetch)
675 (uri (string-append "mirror://gnome/sources/" name "/"
676 (version-major+minor version) "/"
677 name "-" version ".tar.xz"))
678 (sha256
679 (base32
e106d0a6 680 "08vwbji9m1nhjjdiyhhaqi8cncys7i89b4bpy095f8475v8y05bg"))))
4b9a65bf 681 (build-system meson-build-system)
321c73c3
EF
682 (arguments
683 '(#:phases
684 (modify-phases %standard-phases
685 (add-after 'unpack 'skip-gtk-update-icon-cache
686 ;; Don't create 'icon-theme.cache'.
687 (lambda _
688 (substitute* "meson_post_install.py"
689 (("gtk-update-icon-cache") "true"))
690 #t)))))
6c4f7022
DC
691 (native-inputs
692 `(("glib:bin" ,glib "bin")
693 ("intltool" ,intltool)
694 ("pkg-config" ,pkg-config)
695 ("docbook-xml" ,docbook-xml)
696 ("docbook-xsl" ,docbook-xsl)
697 ("libxml2" ,libxml2)
698 ("libxslt" ,libxslt)))
699 (inputs
700 `(("glib" ,glib)
701 ("appstream-glib" ,appstream-glib)
702 ("gnome-settings-daemon" ,gnome-settings-daemon)
703 ("gtk+" ,gtk+)
704 ("libcanberra" ,libcanberra)
705 ("libdvdread" ,libdvdread)
706 ("libnotify" ,libnotify)
707 ("libpwquality" ,libpwquality)
708 ("libsecret" ,libsecret)
709 ("udisks" ,udisks)))
710 (home-page "https://git.gnome.org/browse/gnome-disk-utility")
711 (synopsis "Disk management utility for GNOME")
712 (description "Disk management utility for GNOME.")
713 (license license:gpl2+)))
714
3d217317
RG
715(define-public gnome-font-viewer
716 (package
717 (name "gnome-font-viewer")
718 (version "3.30.0")
719 (source (origin
720 (method url-fetch)
721 (uri (string-append "mirror://gnome/sources/gnome-font-viewer/"
722 (version-major+minor version)
723 "/gnome-font-viewer-" version ".tar.xz"))
724 (sha256
725 (base32
726 "1wwnx2zrlbd2d6np7m9s78alx6j6ranrnh1g2z6zrv9qcj8rpzz5"))))
727 (build-system meson-build-system)
728 (arguments
729 '(#:phases
730 (modify-phases %standard-phases
731 (add-after 'unpack 'patch-post-install-script
732 (lambda _
733 (substitute* "meson-postinstall.sh"
734 (("update-desktop-database") (which "true")))
735 #t)))))
736 (native-inputs
737 `(("gettext" ,gettext-minimal)
738 ("glib:bin" ,glib "bin")
739 ("pkg-config" ,pkg-config)))
740 (inputs
741 `(("glib" ,glib)
742 ("gnome-desktop" ,gnome-desktop)
743 ("gtk+" ,gtk+)))
744 (home-page "https://gitlab.gnome.org/GNOME/gnome-font-viewer")
745 (synopsis "GNOME Fonts")
746 (description "Application to show you the fonts installed on your computer
747for your use as thumbnails. Selecting any thumbnails shows the full view of how
748the font would look under various sizes.")
749 (license license:gpl2+)))
750
8ff49011
RW
751(define-public gcr
752 (package
753 (name "gcr")
bea6b829 754 (version "3.28.1")
8ff49011 755 (source (origin
0daf0efb
RW
756 (method url-fetch)
757 (uri (string-append "mirror://gnome/sources/" name "/"
758 (version-major+minor version) "/"
759 name "-" version ".tar.xz"))
760 (sha256
761 (base32
bea6b829 762 "12qn7mcmxb45lz1gq3s3b34rimiyrrshkrpvxdw1fc0w26i4l84m"))
03ecf85a
MB
763 (patches
764 (list
765 ;; This patch solves an ordering issue that showed up when
766 ;; running the test suite against newer Glib 2.60. See
767 ;; <https://gitlab.gnome.org/GNOME/gcr/merge_requests/9>.
768 (origin
769 (method url-fetch)
770 (uri (string-append "https://gitlab.gnome.org/GNOME/gcr/commit/"
771 "45d637578d7643ff96c0183ac267497a0b4c6344.diff"))
772 (file-name "gcr-hashtable-ordering.patch")
773 (sha256
774 (base32
775 "1vsqiys8fsm1f1vvds783wwf7zwi5v282rhsai8jrsm6x7h79gbi")))))))
8ff49011
RW
776 (build-system gnu-build-system)
777 (arguments
0daf0efb
RW
778 '(#:phases
779 (modify-phases %standard-phases
780 ;; These fail because /var/lib/dbus/machine-id is not present in the
781 ;; build environment.
782 (add-after 'unpack 'disable-failing-tests
783 (lambda _
784 (substitute* "gcr/test-system-prompt.c"
785 (("g_test_add") "//")
786 (("return.*") "return 0;"))
787 #t))
788 (add-before 'check 'pre-check
789 (lambda _
790 ;; Some tests expect to write to $HOME.
791 (setenv "HOME" "/tmp")
792 #t)))))
8ff49011
RW
793 (inputs
794 `(("dbus" ,dbus)
0daf0efb 795 ("gnupg" ,gnupg) ;called as a child process during tests
8ff49011
RW
796 ("libgcrypt" ,libgcrypt)))
797 (native-inputs
0daf0efb 798 `(("python" ,python-2) ;for tests
8ff49011
RW
799 ("pkg-config" ,pkg-config)
800 ("glib" ,glib "bin")
2af4f5b0
SB
801 ("gobject-introspection" ,gobject-introspection)
802 ("intltool" ,intltool)
0daf0efb 803 ("libxml2" ,libxml2)
bea6b829 804 ("vala" ,vala)
2af4f5b0 805 ("xsltproc" ,libxslt)))
8ff49011
RW
806 ;; mentioned in gck.pc, gcr.pc and gcr-ui.pc
807 (propagated-inputs
808 `(("p11-kit" ,p11-kit)
809 ("glib" ,glib)
810 ("gtk+" ,gtk+)))
f032d0be 811 (home-page "https://www.gnome.org")
8ff49011
RW
812 (synopsis "Libraries for displaying certificates and accessing key stores")
813 (description
814 "The GCR package contains libraries used for displaying certificates and
815accessing key stores. It also provides the viewer for crypto files on the
816GNOME Desktop.")
817 (license license:lgpl2.1+)))
818
c1354b90
LC
819(define-public libgnome-keyring
820 (package
821 (name "libgnome-keyring")
5e8aec2c 822 (version "3.12.0")
c1354b90
LC
823 (source (origin
824 (method url-fetch)
b38e45d8
EB
825 (uri (string-append "mirror://gnome/sources/" name "/"
826 (version-major+minor version) "/"
827 name "-" version ".tar.xz"))
c1354b90
LC
828 (sha256
829 (base32
5e8aec2c 830 "10vpjhgbjm7z2djy04qakd02qlzpd02xnbfjhk2aqwjzn3xpihf4"))))
c1354b90 831 (build-system gnu-build-system)
c1354b90 832 (inputs
c4c4cc05 833 `(("libgcrypt" ,libgcrypt)
c1354b90 834 ("dbus" ,dbus)))
c4c4cc05
JD
835 (native-inputs
836 `(("pkg-config" ,pkg-config)
426adbe8 837 ("glib" ,glib "bin")
c4c4cc05 838 ("intltool" ,intltool)))
c1354b90
LC
839 (propagated-inputs
840 ;; Referred to in .h files and .pc.
841 `(("glib" ,glib)))
f032d0be 842 (home-page "https://www.gnome.org")
c1354b90
LC
843 (synopsis "Accessing passwords from the GNOME keyring")
844 (description
845 "Client library to access passwords from the GNOME keyring.")
846
847 ;; Though a couple of files are LGPLv2.1+.
1dd26275 848 (license license:lgpl2.0+)))
c1354b90 849
e99a3d6f
RW
850(define-public gnome-keyring
851 (package
852 (name "gnome-keyring")
ab35cc6e 853 (version "3.28.2")
e99a3d6f
RW
854 (source (origin
855 (method url-fetch)
856 (uri (string-append "mirror://gnome/sources/" name "/"
857 (version-major+minor version) "/"
858 name "-" version ".tar.xz"))
859 (sha256
860 (base32
ab35cc6e 861 "0sk4las4ji8wv9nx8mldzqccmpmkvvr9pdwv9imj26r10xyin5w1"))))
e99a3d6f
RW
862 (build-system gnu-build-system)
863 (arguments
864 `(#:tests? #f ;48 of 603 tests fail because /var/lib/dbus/machine-id does
865 ;not exist
866 #:configure-flags
867 (list
868 (string-append "--with-pkcs11-config="
869 (assoc-ref %outputs "out") "/share/p11-kit/modules/")
870 (string-append "--with-pkcs11-modules="
871 (assoc-ref %outputs "out") "/share/p11-kit/modules/"))
872 #:phases
873 (modify-phases %standard-phases
ab35cc6e
RW
874 (add-after 'unpack 'fix-/bin/sh-reference
875 (lambda _
876 (substitute* "po/Makefile.in.in"
877 (("/bin/sh") (which "sh")))
878 #t))
5120f24f
RW
879 (add-after 'unpack 'fix-docbook
880 (lambda* (#:key inputs #:allow-other-keys)
881 (substitute* "docs/Makefile.am"
882 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
883 (string-append (assoc-ref inputs "docbook-xsl")
884 "/xml/xsl/docbook-xsl-"
885 ,(package-version docbook-xsl)
886 "/manpages/docbook.xsl")))
887 (setenv "XML_CATALOG_FILES"
888 (string-append (assoc-ref inputs "docbook-xml")
889 "/xml/dtd/docbook/catalog.xml"))
890 ;; Rerun the whole thing to avoid version mismatch ("This is
891 ;; Automake 1.15.1, but the definition used by this
892 ;; AM_INIT_AUTOMAKE comes from Automake 1.15."). Note: we don't
893 ;; use 'autoreconf' because it insists on running 'libtoolize'.
894 (invoke "autoconf")
895 (invoke "aclocal")
896 (invoke "automake" "-ac"))))))
e99a3d6f
RW
897 (inputs
898 `(("libgcrypt" ,libgcrypt)
1a0b2d82 899 ("linux-pam" ,linux-pam)
ab35cc6e 900 ("openssh" ,openssh)
e99a3d6f
RW
901 ("dbus" ,dbus)
902 ("gcr" ,gcr)))
903 (native-inputs
904 `(("pkg-config" ,pkg-config)
905 ("glib" ,glib "bin")
5120f24f 906 ("glib" ,glib) ; for m4 macros
e99a3d6f
RW
907 ("python" ,python-2) ;for tests
908 ("intltool" ,intltool)
909 ("autoconf" ,autoconf)
910 ("automake" ,automake)
911 ("libxslt" ,libxslt) ;for documentation
912 ("docbook-xml" ,docbook-xml-4.2)
913 ("docbook-xsl" ,docbook-xsl)))
f032d0be 914 (home-page "https://www.gnome.org")
e99a3d6f
RW
915 (synopsis "Daemon to store passwords and encryption keys")
916 (description
917 "gnome-keyring is a program that keeps passwords and other secrets for
918users. It is run as a daemon in the session, similar to ssh-agent, and other
919applications locate it via an environment variable or D-Bus.
920
921The program can manage several keyrings, each with its own master password,
922and there is also a session keyring which is never stored to disk, but
923forgotten when the session ends.")
924 (license license:lgpl2.1+)))
925
c1354b90
LC
926(define-public evince
927 (package
928 (name "evince")
e24e6522 929 (version "3.34.1")
c1354b90
LC
930 (source (origin
931 (method url-fetch)
b38e45d8
EB
932 (uri (string-append "mirror://gnome/sources/" name "/"
933 (version-major+minor version) "/"
934 name "-" version ".tar.xz"))
c1354b90
LC
935 (sha256
936 (base32
e24e6522 937 "1pr6fvbaam1mzxjwyqd53hcxzdjzf73idn10j4j7n54nwg6hgr45"))))
121de2e1 938 (build-system glib-or-gtk-build-system)
c1354b90
LC
939 (arguments
940 `(#:configure-flags '("--disable-nautilus")
554b2dac
SB
941 #:phases
942 (modify-phases %standard-phases
943 (add-before 'install 'skip-gtk-update-icon-cache
944 ;; Don't create 'icon-theme.cache'.
945 (lambda _
946 (substitute* "data/Makefile"
947 (("gtk-update-icon-cache") "true"))
948 #t)))))
c1354b90 949 (inputs
9a096881
KK
950 `(("libarchive" ,libarchive)
951 ("libgxps" ,libgxps)
952 ("libspectre" ,libspectre)
c769cf9f 953 ("djvulibre" ,djvulibre)
c1354b90
LC
954 ("ghostscript" ,ghostscript)
955 ("poppler" ,poppler)
c769cf9f
SB
956 ("libtiff" ,libtiff)
957 ;; TODO:
c769cf9f
SB
958 ;; Build libkpathsea as a shared library for DVI support.
959 ;; ("libkpathsea" ,texlive-bin)
960 ("gnome-desktop" ,gnome-desktop)
c1354b90 961 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2dfc16d1 962 ("gspell" ,gspell)
c1354b90 963 ("libgnome-keyring" ,libgnome-keyring)
c769cf9f 964 ("adwaita-icon-theme" ,adwaita-icon-theme)
c1354b90
LC
965 ("gdk-pixbuf" ,gdk-pixbuf)
966 ("atk" ,atk)
967 ("pango" ,pango)
968 ("gtk+" ,gtk+)
969 ("glib" ,glib)
970 ("libxml2" ,libxml2)
c1354b90
LC
971 ("libsm" ,libsm)
972 ("libice" ,libice)
96e42467 973 ("shared-mime-info" ,shared-mime-info)
3d243e9c
FB
974 ("dconf" ,dconf)
975 ("libcanberra" ,libcanberra)
c769cf9f 976 ("libsecret" ,libsecret)
a271096b 977
c1354b90
LC
978 ;; For tests.
979 ("dogtail" ,python2-dogtail)))
96e42467 980 (native-inputs
bcb354ad
SB
981 `(("itstool" ,itstool)
982 ("intltool" ,intltool)
426adbe8 983 ("glib" ,glib "bin")
bcb354ad
SB
984 ("pkg-config" ,pkg-config)
985 ("xmllint" ,libxml2)))
c1354b90 986 (home-page
f032d0be 987 "https://www.gnome.org/projects/evince/")
c1354b90
LC
988 (synopsis "GNOME's document viewer")
989 (description
990 "Evince is a document viewer for multiple document formats. It
991currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
992of Evince is to replace the multiple document viewers that exist
96e42467 993on the GNOME Desktop with a single simple application.")
1dd26275 994 (license license:gpl2+)))
c1354b90 995
22e32e69
AE
996(define-public gsettings-desktop-schemas
997 (package
998 (name "gsettings-desktop-schemas")
c900dabd 999 (version "3.32.0")
22e32e69
AE
1000 (source
1001 (origin
1002 (method url-fetch)
1003 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1004 (version-major+minor version) "/"
22e32e69
AE
1005 name "-" version ".tar.xz"))
1006 (sha256
1007 (base32
c900dabd
KK
1008 "0d8a6479vappgplq5crdr3ah0ykqcr3fw533wkx9v1a8lnrv8n9d"))))
1009 (build-system meson-build-system)
65209ffa
LC
1010 (arguments
1011 '(#:phases (modify-phases %standard-phases
1012 (add-after 'unpack 'set-adwaita-theme-file-name
1013 (lambda* (#:key inputs #:allow-other-keys)
1014 ;; Provide the correct file name of the default GNOME
1015 ;; background, 'adwaita-timed.xml'.
1016 (let ((theme (assoc-ref inputs "gnome-backgrounds")))
1017 (substitute* (find-files "schemas"
1018 "\\.gschema\\.xml\\.in$")
1019 (("@datadir@/backgrounds/gnome")
1020 (string-append theme "/share/backgrounds/gnome")))
1021 #t))))))
22e32e69 1022 (inputs
65209ffa
LC
1023 `(("glib" ,glib)
1024 ("gnome-backgrounds" ,gnome-backgrounds)))
c4c4cc05
JD
1025 (native-inputs
1026 `(("intltool" ,intltool)
426adbe8 1027 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
7211944a 1028 ("gobject-introspection" ,gobject-introspection)
22e32e69
AE
1029 ("pkg-config" ,pkg-config)))
1030 (home-page "https://launchpad.net/gsettings-desktop-schemas")
1031 (synopsis
1032 "GNOME settings for various desktop components")
1033 (description
1034 "Gsettings-desktop-schemas contains a collection of GSettings schemas
1035for settings shared by various components of the GNOME desktop.")
1dd26275 1036 (license license:lgpl2.1+)))
22e32e69 1037
27477d2d
AE
1038(define-public icon-naming-utils
1039 (package
1040 (name "icon-naming-utils")
1041 (version "0.8.90")
1042 (source
1043 (origin
1044 (method url-fetch)
5cc3096c 1045 (uri (string-append "https://tango.freedesktop.org/releases/icon-naming-utils-"
27477d2d
AE
1046 version ".tar.bz2"))
1047 (sha256
1048 (base32
1049 "1mc3v28fdfqanx3lqx233vcr4glb4c2376k0kx2v91a4vxwqcdxi"))))
1050 (build-system gnu-build-system)
1051 (inputs
1052 `(("perl" ,perl)
1053 ("perl-xml-simple" ,perl-xml-simple)))
f4e97277
SB
1054 (arguments
1055 '(#:phases
dc1d3cde
KK
1056 (modify-phases %standard-phases
1057 (add-after 'install 'set-load-paths
1058 ;; Tell 'icon-name-mapping' where XML::Simple is.
1059 (lambda* (#:key outputs #:allow-other-keys)
1060 (let* ((out (assoc-ref outputs "out"))
1061 (prog (string-append out "/libexec/icon-name-mapping")))
1062 (wrap-program
1063 prog
1064 `("PERL5LIB" = ,(list (getenv "PERL5LIB")))))
1065 #t)))))
27477d2d
AE
1066 (home-page "http://tango.freedesktop.org/Standard_Icon_Naming_Specification")
1067 (synopsis
1068 "Utility to implement the Freedesktop Icon Naming Specification")
1069 (description
1070 "To help with the transition to the Freedesktop Icon Naming
1071Specification, the icon naming utility maps the icon names used by the
1072GNOME and KDE desktops to the icon names proposed in the specification.")
1dd26275 1073 (license license:lgpl2.1+)))
27477d2d 1074
7d3f3651
AE
1075(define-public gnome-icon-theme
1076 (package
1077 (name "gnome-icon-theme")
b32f58dd 1078 (version "3.12.0")
7d3f3651
AE
1079 (source
1080 (origin
1081 (method url-fetch)
1082 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1083 (version-major+minor version) "/"
7d3f3651
AE
1084 name "-" version ".tar.xz"))
1085 (sha256
1086 (base32
b32f58dd 1087 "0fjh9qmmgj34zlgxb09231ld7khys562qxbpsjlaplq2j85p57im"))))
7d3f3651 1088 (build-system gnu-build-system)
5613c27d
SB
1089 (arguments
1090 '(#:configure-flags
1091 ;; Don't create 'icon-theme.cache'.
1092 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
1093 (true (string-append coreutils "/bin/true")))
1094 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
c4c4cc05 1095 (native-inputs
5613c27d 1096 `(("icon-naming-utils" ,icon-naming-utils)
73b6cf42
SB
1097 ("intltool" ,intltool)
1098 ("pkg-config" ,pkg-config)))
5c610d4f
KK
1099 (home-page "https://wiki.gnome.org/Personalization")
1100 (synopsis "GNOME icon theme")
1101 (description "Icons for the GNOME desktop.")
1dd26275 1102 (license license:lgpl3))) ; or Creative Commons BY-SA 3.0
7d3f3651 1103
14eeefa2
SB
1104;; gnome-icon-theme was renamed to adwaita-icon-theme after version 3.12.0.
1105(define-public adwaita-icon-theme
1106 (package (inherit gnome-icon-theme)
1107 (name "adwaita-icon-theme")
9be59d7f 1108 (version "3.32.0")
14eeefa2
SB
1109 (source (origin
1110 (method url-fetch)
1111 (uri (string-append "mirror://gnome/sources/" name "/"
1112 (version-major+minor version) "/"
1113 name "-" version ".tar.xz"))
1114 (sha256
1115 (base32
9be59d7f 1116 "11ij35na8nisvxx3qh527iz33h6z2q1a7iinqyp7p65v0zjbd3b9"))))
5613c27d
SB
1117 (native-inputs
1118 `(("gtk-encode-symbolic-svg" ,gtk+ "bin")))))
14eeefa2 1119
ae792dba
RW
1120(define-public tango-icon-theme
1121 (package
1122 (name "tango-icon-theme")
1123 (version "0.8.90")
1124 (source (origin
1125 (method url-fetch)
1126 (uri (string-append "http://tango.freedesktop.org/releases/"
1127 "tango-icon-theme-" version ".tar.bz2"))
1128 (sha256
1129 (base32
1130 "034r9s944b4yikyfgn602yv7s54wdzlq0qfvqh52b9x6kbx08h79"))))
1131 (build-system gnu-build-system)
1132 (native-inputs
1133 `(("icon-naming-utils" ,icon-naming-utils)
1134 ("intltool" ,intltool)
1135 ("imagemagick" ,imagemagick)
1136 ("pkg-config" ,pkg-config)))
1137 (home-page "http://tango-project.org/")
1138 (synopsis "Tango icon theme")
1139 (description "This is an icon theme that follows the Tango visual
1140guidelines.")
1141 (license license:public-domain)))
1142
9167f8e6
LC
1143(define-public shared-mime-info
1144 (package
1145 (name "shared-mime-info")
18138ab9 1146 (version "1.10")
9167f8e6
LC
1147 (source (origin
1148 (method url-fetch)
5cc3096c 1149 (uri (string-append "https://freedesktop.org/~hadess/"
b38e45d8 1150 "shared-mime-info-" version ".tar.xz"))
9167f8e6
LC
1151 (sha256
1152 (base32
18138ab9 1153 "1gxyvwym3xgpmp262gfn8jg5sla6k5hy6m6dmy6grgiq90xsh9f6"))))
9167f8e6
LC
1154 (build-system gnu-build-system)
1155 (arguments
1156 ;; The build system appears not to be parallel-safe.
1157 '(#:parallel-build? #f))
1158 (inputs
1159 `(("glib" ,glib)
c4c4cc05 1160 ("libxml2" ,libxml2)))
9167f8e6 1161 (native-inputs
c4c4cc05
JD
1162 `(("intltool" ,intltool)
1163 ("pkg-config" ,pkg-config)))
57e7d748 1164 (home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info")
9167f8e6
LC
1165 (synopsis "Database of common MIME types")
1166 (description
1167 "The shared-mime-info package contains the core database of common types
1168and the update-mime-database command used to extend it. It requires glib2 to
1169be installed for building the update command. Additionally, it uses intltool
1170for translations, though this is only a dependency for the maintainers. This
1171database is translated at Transifex.")
1dd26275 1172 (license license:gpl2+)))
9167f8e6 1173
dd1fcddc
CB
1174(define-public system-config-printer
1175 (package
1176 (name "system-config-printer")
1177 (version "1.5.11")
1178 (source (origin
1179 (method url-fetch)
1180 (uri (string-append
1181 "https://github.com/zdohnal/system-config-printer/releases/"
1182 "download/" version
1183 "/system-config-printer-" version ".tar.xz"))
1184 (sha256
1185 (base32
1186 "1lq0q51bhanirpjjvvh4xiafi8hgpk8r32h0dj6dn3f32z8pib9q"))))
1187 (build-system glib-or-gtk-build-system)
1188 (arguments
1189 `(#:imported-modules ((guix build python-build-system)
1190 ,@%glib-or-gtk-build-system-modules)
1191 #:phases
1192 (modify-phases %standard-phases
1193 (add-after 'unpack 'patch-Makefile.am
1194 (lambda _
1195 ;; The Makefile generates some scripts, so set a valid shebang
1196 (substitute* "Makefile.am"
1197 (("/bin/bash") (which "bash")))
1198 (delete-file "configure")
1199 #t))
1200 (add-after 'unpack 'patch-docbook-xml
1201 (lambda* (#:key inputs #:allow-other-keys)
1202 ;; Modify the man XML otherwise xmlto tries to access the network
1203 (substitute* "man/system-config-printer.xml"
1204 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
1205 (string-append (assoc-ref inputs "docbook-xml")
1206 "/xml/dtd/docbook/")))
1207 #t))
1208 (add-after 'install 'wrap-for-python
1209 (@@ (guix build python-build-system) wrap))
1210 (add-after 'install 'wrap
1211 (lambda* (#:key outputs #:allow-other-keys)
1212 (let ((out (assoc-ref outputs "out"))
1213 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
1214 (for-each
1215 (lambda (program)
1216 (wrap-program program
1217 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
1218 (map (lambda (name)
1219 (string-append out "/bin/" name))
1220 '("system-config-printer"
1221 "system-config-printer-applet"
1222 "install-printerdriver"
1223 "scp-dbus-service"))))
1224 #t)))))
1225 (inputs
1226 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1227 ("gobject-introspection" ,gobject-introspection)
1228 ("python" ,python)
1229 ("cups" ,cups)
1230 ("python-dbus" ,python-dbus)
1231 ("python-pygobject" ,python-pygobject)
1232 ("python-pycups" ,python-pycups)
1233 ("python-requests" ,python-requests)
1234 ("python-pycairo" ,python-pycairo)
1235 ("libnotify" ,libnotify)
1236 ("packagekit" ,packagekit)))
1237 (native-inputs
1238 `(("pkg-config" ,pkg-config)
1239 ("desktop-file-utils" ,desktop-file-utils)
1240 ("glib" ,glib)
1241 ("autoconf" ,autoconf)
1242 ("automake" ,automake)
1243 ("intltool" ,intltool)
1244 ("xmlto" ,xmlto)
1245 ("docbook-xml" ,docbook-xml-4.1.2)
1246 ("docbook-xsl" ,docbook-xsl)
1247 ("libxml2" ,libxml2)))
1248 (home-page "https://github.com/zdohnal/system-config-printer")
1249 (synopsis "CUPS administration tool")
1250 (description
1251 "system-config-printer is a CUPS administration tool. It's written in
1252Python using GTK+, and uses the @acronym{IPP, Internet Printing Protocol} when
1253configuring CUPS.")
1254 (license license:gpl2+)))
1255
bef4dd92
AE
1256(define-public hicolor-icon-theme
1257 (package
1258 (name "hicolor-icon-theme")
851cb6dd 1259 (version "0.17")
bef4dd92
AE
1260 (source
1261 (origin
1262 (method url-fetch)
5cc3096c 1263 (uri (string-append "https://icon-theme.freedesktop.org/releases/"
b62a0070 1264 "hicolor-icon-theme-" version ".tar.xz"))
bef4dd92
AE
1265 (sha256
1266 (base32
851cb6dd 1267 "1n59i3al3zx6p90ff0l43gzpzmlqnzm6hf5cryxqrlbi48sq8x1i"))))
bef4dd92
AE
1268 (build-system gnu-build-system)
1269 (arguments
1270 `(#:tests? #f)) ; no check target
57e7d748 1271 (home-page "https://icon-theme.freedesktop.org/releases/")
bef4dd92
AE
1272 (synopsis
1273 "Freedesktop icon theme")
1274 (description
1275 "Freedesktop icon theme.")
1dd26275 1276 (license license:gpl2)))
bef4dd92 1277
d9c1a22b
AE
1278(define-public libnotify
1279 (package
1280 (name "libnotify")
195bfa68 1281 (version "0.7.7")
d9c1a22b
AE
1282 (source
1283 (origin
1284 (method url-fetch)
1285 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1286 (version-major+minor version) "/"
d9c1a22b
AE
1287 name "-" version ".tar.xz"))
1288 (sha256
1289 (base32
195bfa68 1290 "017wgq9n00hx39n0hm784zn18hl721hbaijda868cm96bcqwxd4w"))))
d9c1a22b 1291 (build-system gnu-build-system)
6acf6cec
MB
1292 (arguments
1293 `(#:configure-flags '("--disable-static")))
7ef08efa
UK
1294 (propagated-inputs
1295 `(;; In Requires of libnotify.pc.
1296 ("gdk-pixbuf" ,gdk-pixbuf)
1297 ("glib" ,glib)))
d9c1a22b 1298 (inputs
7ef08efa 1299 `(("gtk+" ,gtk+)
c4c4cc05
JD
1300 ("libpng" ,libpng)))
1301 (native-inputs
426adbe8 1302 `(("pkg-config" ,pkg-config)
277a7d82
JN
1303 ("glib" ,glib "bin")
1304 ("gobject-introspection" ,gobject-introspection)))
d9c1a22b
AE
1305 (home-page "https://developer-next.gnome.org/libnotify/")
1306 (synopsis
1307 "GNOME desktop notification library")
1308 (description
1309 "Libnotify is a library that sends desktop notifications to a
35b9e423 1310notification daemon, as defined in the Desktop Notifications spec. These
d9c1a22b
AE
1311notifications can be used to inform the user about an event or display
1312some form of information without getting in the user's way.")
1dd26275 1313 (license license:lgpl2.1+)))
7a8605ce
CR
1314
1315(define-public libpeas
1316 (package
1317 (name "libpeas")
db122a9b 1318 (version "1.22.0")
7a8605ce
CR
1319 (source
1320 (origin
1321 (method url-fetch)
1322 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 1323 (version-major+minor version) "/"
7a8605ce
CR
1324 name "-" version ".tar.xz"))
1325 (sha256
1326 (base32
db122a9b 1327 "0qm908kisyjzjxvygdl18hjqxvvgkq9w0phs2g55pck277sw0bsv"))))
7a8605ce 1328 (build-system gnu-build-system)
7a8605ce 1329 (inputs
2ed6522a
SB
1330 `(("gtk+" ,gtk+)
1331 ("glade" ,glade3)
2ed6522a
SB
1332 ("python" ,python)
1333 ("python-pygobject" ,python-pygobject)))
141aed80
LC
1334 (native-inputs
1335 `(("pkg-config" ,pkg-config)
93622993 1336 ("glib:bin" ,glib "bin")
141aed80
LC
1337 ("gobject-introspection" ,gobject-introspection)
1338 ("intltool" ,intltool)))
55b7bbd8
LC
1339 (propagated-inputs
1340 ;; The .pc file "Requires" gobject-introspection.
1341 `(("gobject-introspection" ,gobject-introspection)))
7a8605ce
CR
1342 (home-page "https://wiki.gnome.org/Libpeas")
1343 (synopsis "GObject plugin system")
1344 (description
d1e4ad1b
TGR
1345 "Libpeas is a gobject-based plugin engine, targeted at giving every
1346application the chance to assume its own extensibility. It also has a set of
1347features including, but not limited to: multiple extension points; on-demand
1348(lazy) programming language support for C, Python and JS; simplicity of the
1349API.")
1dd26275 1350 (license license:lgpl2.0+)))
ed19903d
JD
1351
1352(define-public gtkglext
1353 (package
1354 (name "gtkglext")
1355 (version "1.2.0")
1356 (source (origin
1357 (method url-fetch)
0f971a04 1358 (uri (string-append "mirror://sourceforge/gtkglext/gtkglext/"
ed19903d
JD
1359 version "/gtkglext-" version ".tar.gz"))
1360 (sha256
1361 (base32 "1ya4d2j2aacr9ii5zj4ac95fjpdvlm2rg79mgnk7yvl1dcy3y1z5"))
fc1adab1
AK
1362 (patches (search-patches
1363 "gtkglext-disable-disable-deprecated.patch"))))
ed19903d 1364 (build-system gnu-build-system)
14e2f61a
RW
1365 (arguments
1366 `(#:phases
1367 (modify-phases %standard-phases
1368 ;; Fix a collision between a local variable and a definition from
1369 ;; glibc's string.h.
1370 (add-after 'unpack 'fix-collision
1371 (lambda _
1372 (substitute* "gdk/gdkglshapes.c"
1373 ((" index") " triangle_index"))
1374 #t)))))
ed19903d
JD
1375 (inputs `(("gtk+" ,gtk+-2)
1376 ("mesa" ,mesa)
cc8b02f4 1377 ("glu" ,glu)
ed19903d
JD
1378 ("libx11" ,libx11)
1379 ("libxt" ,libxt)))
426adbe8
LC
1380 (native-inputs `(("pkg-config" ,pkg-config)
1381 ("glib" ,glib "bin")))
a83b6a06 1382 (propagated-inputs `(("pangox-compat" ,pangox-compat)))
ed19903d 1383 (home-page "https://projects.gnome.org/gtkglext")
9e771e3b 1384 (synopsis "OpenGL extension to GTK+")
35b9e423 1385 (description "GtkGLExt is an OpenGL extension to GTK+. It provides
ed19903d
JD
1386additional GDK objects which support OpenGL rendering in GTK+ and GtkWidget
1387API add-ons to make GTK+ widgets OpenGL-capable.")
1dd26275 1388 (license license:lgpl2.1+)))
3600420e
JD
1389
1390(define-public glade3
1391 (package
1392 (name "glade")
c6571adb 1393 (version "3.22.1")
b38e45d8
EB
1394 (source (origin
1395 (method url-fetch)
1396 (uri (string-append "mirror://gnome/sources/" name "/"
1397 (version-major+minor version) "/"
f5ca44b8 1398 name "-" version ".tar.xz"))
3600420e 1399 (sha256
f714d9fe 1400 (base32
c6571adb 1401 "16p38xavpid51qfy0s26n0n21f9ws1w9k5s65bzh1w7ay8p9my6z"))))
6983ba56 1402 (build-system glib-or-gtk-build-system)
f5ca44b8
RW
1403 (arguments
1404 `(#:tests? #f ; needs X, GL, and software rendering
1405 #:phases
1406 (modify-phases %standard-phases
1407 (add-before 'configure 'fix-docbook
1408 (lambda* (#:key inputs #:allow-other-keys)
1409 (substitute* "man/Makefile.in"
1410 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1411 (string-append (assoc-ref inputs "docbook-xsl")
1412 "/xml/xsl/docbook-xsl-"
1413 ,(package-version docbook-xsl)
1414 "/manpages/docbook.xsl")))
1415 #t)))))
3600420e 1416 (inputs
f5ca44b8 1417 `(("gtk+" ,gtk+)
3600420e
JD
1418 ("libxml2" ,libxml2)))
1419 (native-inputs
1420 `(("intltool" ,intltool)
f5ca44b8
RW
1421 ("itstool" ,itstool)
1422 ("libxslt" ,libxslt) ;for xsltproc
1423 ("docbook-xml" ,docbook-xml-4.2)
1424 ("docbook-xsl" ,docbook-xsl)
1425 ("python" ,python-2)
3600420e
JD
1426 ("pkg-config" ,pkg-config)))
1427 (home-page "https://glade.gnome.org")
1428 (synopsis "GTK+ rapid application development tool")
1429 (description "Glade is a rapid application development (RAD) tool to
1430enable quick & easy development of user interfaces for the GTK+ toolkit and
1431the GNOME desktop environment.")
1dd26275
LC
1432 (license license:lgpl2.0+)))
1433
1434(define-public libcroco
1435 (package
1436 (name "libcroco")
8bdacad2 1437 (version "0.6.13")
1dd26275
LC
1438 (source (origin
1439 (method url-fetch)
b38e45d8
EB
1440 (uri (string-append "mirror://gnome/sources/" name "/"
1441 (version-major+minor version) "/"
1442 name "-" version ".tar.xz"))
1dd26275
LC
1443 (sha256
1444 (base32
8bdacad2 1445 "1m110rbj5d2raxcdp4iz0qp172284945awrsbdlq99ksmqsc4zkn"))))
1dd26275
LC
1446 (build-system gnu-build-system)
1447 (native-inputs
1448 `(("pkg-config" ,pkg-config)))
1449 (inputs
1450 `(("glib" ,glib)
1451 ("libxml2" ,libxml2)
1452 ("zlib" ,zlib)))
1453 (home-page "https://github.com/GNOME/libcroco")
1454 (synopsis "CSS2 parsing and manipulation library")
1455 (description
1456 "Libcroco is a standalone CSS2 parsing and manipulation library.
1457The parser provides a low level event driven SAC-like API and a CSS object
1458model like API. Libcroco provides a CSS2 selection engine and an experimental
1459XML/CSS rendering engine.")
1460
1461 ;; LGPLv2.1-only.
1462 (license license:lgpl2.1)))
25178594
LC
1463
1464(define-public libgsf
1465 (package
1466 (name "libgsf")
8d1644a1 1467 (version "1.14.46")
25178594
LC
1468 (source (origin
1469 (method url-fetch)
b38e45d8
EB
1470 (uri (string-append "mirror://gnome/sources/" name "/"
1471 (version-major+minor version) "/"
1472 name "-" version ".tar.xz"))
25178594
LC
1473 (sha256
1474 (base32
8d1644a1 1475 "0bddmlzg719sjhlbzqlhb7chwk93qc7g68m2r9r8xz112jdradpa"))))
25178594
LC
1476 (build-system gnu-build-system)
1477 (native-inputs
1478 `(("intltool" ,intltool)
1479 ("pkg-config" ,pkg-config)))
1480 (inputs
1481 `(("python" ,python)
1482 ("zlib" ,zlib)
1483 ("bzip2" ,bzip2)))
1484 (propagated-inputs
1485 `(("gdk-pixbuf" ,gdk-pixbuf)
1486 ("glib" ,glib)
1487 ("libxml2" ,libxml2)))
f032d0be 1488 (home-page "https://www.gnome.org/projects/libgsf")
25178594
LC
1489 (synopsis "GNOME's Structured File Library")
1490 (description
1491 "Libgsf aims to provide an efficient extensible I/O abstraction for
1492dealing with different structured file formats.")
1493
1494 ;; LGPLv2.1-only.
1495 (license license:lgpl2.1)))
63016e7c
LC
1496
1497(define-public librsvg
f67417a1
MB
1498 (package
1499 (name "librsvg")
1500 (version "2.40.20")
1501 (source (origin
1502 (method url-fetch)
1503 (uri (string-append "mirror://gnome/sources/" name "/"
1504 (version-major+minor version) "/"
1505 name "-" version ".tar.xz"))
1506 (sha256
1507 (base32
1508 "0ay9himvw1l1swcf3h1312d2iqzfl65kpbfgiyfykgvq7cydvx6g"))))
1509 (build-system gnu-build-system)
1510 (arguments
1511 `(#:configure-flags
1512 (list "--disable-static"
1513 "--enable-vala") ; needed for e.g. gnome-mines
1514 #:phases
1515 (modify-phases %standard-phases
1516 (add-before 'configure 'pre-configure
1517 (lambda* (#:key inputs #:allow-other-keys)
1518 (substitute* "gdk-pixbuf-loader/Makefile.in"
1519 ;; By default the gdk-pixbuf loader is installed under
1520 ;; gdk-pixbuf's prefix. Work around that.
1521 (("gdk_pixbuf_moduledir = .*$")
1522 (string-append "gdk_pixbuf_moduledir = "
1523 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
1524 "loaders\n"))
1525 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
1526 (("gdk_pixbuf_cache_file = .*$")
1527 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
1528 #t))
1529 (add-before 'check 'remove-failing-tests
1530 (lambda _
1531 (with-directory-excursion "tests/fixtures/reftests"
1532 (for-each delete-file
1533 '(;; This test fails on i686:
1534 "svg1.1/masking-path-04-b.svg"
1535 ;; This test fails on armhf:
1536 "svg1.1/masking-mask-01-b.svg"
1537 ;; This test fails on aarch64:
1538 "bugs/777834-empty-text-children.svg")))
1539 #t)))))
1540 (native-inputs
1541 `(("pkg-config" ,pkg-config)
1542 ("vala" ,vala)
1543 ("glib" ,glib "bin") ; glib-mkenums, etc.
1544 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
1545 (inputs
1546 `(("pango" ,pango)
1547 ("libcroco" ,libcroco)
1548 ("bzip2" ,bzip2)
1549 ("libgsf" ,libgsf)
1550 ("libxml2" ,libxml2)))
1551 (propagated-inputs
1552 ;; librsvg-2.0.pc refers to all of that.
1553 `(("cairo" ,cairo)
1554 ("gdk-pixbuf" ,gdk-pixbuf)
1555 ("glib" ,glib)))
1556 (home-page "https://wiki.gnome.org/LibRsvg")
1557 (synopsis "Render SVG files using Cairo")
1558 (description
1559 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
1560library.")
1561 (license license:lgpl2.0+)))
1562
8f523eb9
EF
1563(define* (computed-origin-method gexp-promise hash-algo hash
1564 #:optional (name "source")
1565 #:key (system (%current-system))
1566 (guile (default-guile)))
1567 "Return a derivation that executes the G-expression that results
1568from forcing GEXP-PROMISE."
1569 (mlet %store-monad ((guile (package->derivation guile system)))
1570 (gexp->derivation (or name "computed-origin")
1571 (force gexp-promise)
1572 #:graft? #f ;nothing to graft
1573 #:system system
1574 #:guile-for-build guile)))
1575
1576(define librsvg-next-source
1577 (let* ((version "2.46.3")
1578 (upstream-source (origin
1579 (method url-fetch)
1580 (uri (string-append "mirror://gnome/sources/librsvg/"
1581 (version-major+minor version) "/"
1582 "librsvg-" version ".tar.xz"))
1583 (sha256
1584 (base32
1585 "1s3a96i7f4pynjwxxvhysp4b6r7kyi8nasdxfyi62hc7gm34d3kn")))))
1586 (origin
1587 (method computed-origin-method)
1588 (file-name (string-append "librsvg-" version ".tar.xz"))
1589 (sha256 #f)
1590 (uri
1591 (delay
1592 (with-imported-modules '((guix build utils))
1593 #~(begin
1594 (use-modules (guix build utils))
1595 (set-path-environment-variable
1596 "PATH" '("bin")
1597 (list "/tmp"
1598 #+(canonical-package xz)
1599 #+(canonical-package gzip)
1600 #+(canonical-package tar)))
1601 (invoke "tar" "xvf" #+upstream-source)
1602 (with-directory-excursion (string-append "librsvg-" #$version)
1603 (for-each
1604 (lambda (crate)
1605 (delete-file-recursively (string-append "vendor/" (car crate)))
1606 (invoke "tar" "xvf" (cdr crate) "-C" "vendor"))
1607 '(
1608;; aho-corasick 0.7
1609;; alga 0.9
1610;; approx 0.3
1611;; arrayvec 0.4
1612 ("atty" . #+(package-source rust-atty-0.2))
1613 ("autocfg" . #+(package-source rust-autocfg-0.1))
1614 ("bitflags" . #+(package-source rust-bitflags-1))
1615;; block 0.1
1616;; bstr 0.2
1617;; byteorder 1.3
1618;; cairo-rs 0.7
1619;; cairo-sys-rs 0.9
1620;; cast 0.2
1621 ("cfg-if" . #+(package-source rust-cfg-if-0.1))
1622 ("clap" . #+(package-source rust-clap-2))
1623 ;("cloudabi" . #+(package-source rust-cloudabi-0.0))
1624;; criterion 0.2
1625;; criterion-plot 0.3
1626;; crossbeam-deque 0.7
1627;; crossbeam-epoch 0.7
1628;; crossbeam-queue 0.1
1629;; crossbeam-utils 0.6
1630;; cssparser 0.25
1631;; cssparser-macros 0.3
1632;; csv 1.1
1633;; csv-core 0.1
1634;; data-url 0.1
1635;; downcast-rs 1.0
1636 ("dtoa" . #+(package-source rust-dtoa-0.4))
1637;; dtoa-short 0.3
1638;; either 1.5
1639;; encoding 0.2
1640;; encoding-index-japanese 1.20141219.5
1641;; encoding-index-korean 1.20141219.5
1642;; encoding-index-simpchinese 1.20141219.5
1643;; encoding-index-singlebyte 1.20141219.5
1644;; encoding-index-tradchinese 1.20141219.5
1645;; encoding_index_tests 0.1
1646;; float-cmp 0.5
1647;; fragile 0.3
1648 ;("fuchsia-cprng" . #+(package-source rust-fuchsia-cprng-0.1))
1649;; futf 0.1
1650;; gdk-pixbuf 0.7
1651;; gdk-pixbuf-sys 0.9
1652;; generic-array 0.12
1653;; gio 0.7
1654;; gio-sys 0.9
1655;; glib 0.8
1656;; glib-sys 0.9
1657;; gobject-sys 0.9
1658;; idna 0.2
1659;; itertools 0.8
1660 ("itoa" . #+(package-source rust-itoa-0.4))
1661 ;("language-tags" . #+(package-source rust-language-tags-0.2))
1662 ("lazy_static" . #+(package-source rust-lazy-static-1.3))
1663 ("libc" . #+(package-source rust-libc-0.2))
1664;; libm 0.1
1665;; locale_config 0.3
1666 ("log" . #+(package-source rust-log-0.4))
1667;; mac 0.1
1668;; malloc_buf 0.0
1669;; markup5ever 0.9
1670 ;("matches" . #+(package-source rust-matches-0.1))
1671;; matrixmultiply 0.2
1672;; memchr 2.2
1673;; memoffset 0.5
1674;; nalgebra 0.18
1675;; new_debug_unreachable 1.0
1676 ("nodrop" . #+(package-source rust-nodrop-0.1))
1677;; num-complex 0.2
1678 ("num-integer" . #+(package-source rust-num-integer-0.1))
1679;; num-rational 0.2
1680 ("num-traits" . #+(package-source rust-num-traits-0.2))
1681 ("num_cpus" . #+(package-source rust-num-cpus-1.10))
1682;; objc 0.2
1683;; objc-foundation 0.1
1684;; objc_id 0.1
1685;; pango 0.7
1686;; pango-sys 0.9
1687;; pangocairo 0.8
1688;; pangocairo-sys 0.10
1689 ("percent-encoding" . #+(package-source rust-percent-encoding-2.1))
1690;; phf 0.7.24
1691;; phf_codegen 0.7.24
1692;; phf_generator 0.7.24
1693;; phf_shared 0.7.24
1694 ;("pkg-config" . #+(package-source rust-pkg-config-0.3))
1695;; precomputed-hash 0.1
1696 ("proc-macro2" . #+(package-source rust-proc-macro2-1.0))
1697;; procedural-masquerade 0.1
1698 ("quote" . #+(package-source rust-quote-1.0))
1699 ;("rand" . #+(package-source rust-rand-0.6))
1700 ("rand_chacha" . #+(package-source rust-rand-chacha-0.1))
1701 ("rand_core-0.3.1" . #+(package-source rust-rand-core-0.3))
1702 ("rand_core" . #+(package-source rust-rand-core-0.4))
1703 ("rand_hc" . #+(package-source rust-rand-hc-0.1))
1704 ("rand_isaac" . #+(package-source rust-rand-isaac-0.1))
1705 ("rand_jitter" . #+(package-source rust-rand-jitter-0.1))
1706 ("rand_os" . #+(package-source rust-rand-os-0.1))
1707 ("rand_pcg" . #+(package-source rust-rand-pcg-0.1))
1708 ("rand_xorshift" . #+(package-source rust-rand-xorshift-0.1))
1709;; rand_xoshiro 0.1
1710 ;("rawpointer" . #+(package-source rust-rawpointer-0.1))
1711;; rayon 1.2
1712;; rayon-core 1.6
1713;; rctree 0.3
1714 ("rdrand" . #+(package-source rust-rdrand-0.4))
1715;; regex 1.3
1716;; regex-automata 0.1
1717 ;("regex-syntax" . #+(package-source rust-regex-syntax-0.6))
1718;; rustc_version 0.2
1719 ("ryu" . #+(package-source rust-ryu-1.0))
1720 ("same-file" . #+(package-source rust-same-file-1.0))
1721 ("scopeguard" . #+(package-source rust-scopeguard-1.0))
1722;; semver 0.9
1723 ;("semver-parser" . #+(package-source rust-semver-parser-0.7))
1724 ("serde" . #+(package-source rust-serde-1.0))
1725 ("serde_derive" . #+(package-source rust-serde-derive-1.0))
1726 ("serde_json" . #+(package-source rust-serde-json-1.0))
1727;; siphasher 0.2
1728;; smallvec 0.6
1729;; string_cache 0.7
1730;; string_cache_codegen 0.4
1731;; string_cache_shared 0.3
1732 ("syn" . #+(package-source rust-syn-1.0))
1733;; tendril 0.4
1734 ("textwrap" . #+(package-source rust-textwrap-0.11))
1735 ;("thread_local" . #+(package-source rust-thread-local-0.3))
1736;; tinytemplate 1.0
1737 ;("typenum" . #+(package-source rust-typenum-1.10))
1738;; unicode-bidi 0.3
1739;; unicode-normalization 0.1
1740 ("unicode-width" . #+(package-source rust-unicode-width-0.1))
1741 ("unicode-xid" . #+(package-source rust-unicode-xid-0.2))
1742;; url 2.1
1743;; utf-8 0.7
1744 ("walkdir" . #+(package-source rust-walkdir-2.2))
1745 ("winapi" . #+(package-source rust-winapi-0.3))
1746 ;("winapi-i686-pc-windows-gnu" . #+(package-source rust-winapi-i686-pc-windows-gnu-0.4))
1747 ("winapi-util" . #+(package-source rust-winapi-util-0.1))
1748 ;("winapi-x86_64-pc-windows-gnu" . #+(package-source rust-winapi-x86-64-pc-windows-gnu-0.4))
1749;; xml-rs 0.8
1750 )))
1751 (format #t "Replacing vendored crates in the tarball and repacking ...~%")
1752 (force-output)
1753 (invoke "tar" "cfa" #$output
1754 ;; Avoid non-determinism in the archive. We set the
1755 ;; mtime of files in the archive to early 1980 because
1756 ;; the build process fails if the mtime of source
1757 ;; files is pre-1980, due to the creation of zip
1758 ;; archives.
1759 "--mtime=@315619200" ; 1980-01-02 UTC
1760 "--owner=root:0"
1761 "--group=root:0"
1762 "--sort=name"
1763 (string-append "librsvg-" #$version))
1764 #t)))))))
1765
f67417a1 1766(define-public librsvg-next
63016e7c
LC
1767 (package
1768 (name "librsvg")
cf9dad6c 1769 (version "2.46.3")
8f523eb9 1770 (source librsvg-next-source)
63016e7c
LC
1771 (build-system gnu-build-system)
1772 (arguments
d953418a
RW
1773 `(#:configure-flags
1774 (list "--disable-static"
1775 "--enable-vala") ; needed for e.g. gnome-mines
7e0f4cb1 1776 #:make-flags '("CC=gcc")
8f523eb9 1777 #:imported-modules ,%cargo-utils-modules ;for `generate-all-checksums'
ec47c07d 1778 #:phases
b6239e45 1779 (modify-phases %standard-phases
8f523eb9 1780 (add-after 'configure 'patch-cargo-checksums
ec47c07d 1781 (lambda _
8f523eb9
EF
1782 (use-modules (guix build cargo-utils))
1783 (substitute* "librsvg/Cargo.toml"
1784 (("bitflags .*") "bitflags = \"1\"\n")) ; 1.2 is vendored
b665a246 1785 (generate-all-checksums "vendor")
8f523eb9
EF
1786 (delete-file "Cargo.lock")
1787 (invoke "cargo" "generate-lockfile")))
b6239e45
EF
1788 (add-before 'configure 'pre-configure
1789 (lambda* (#:key inputs #:allow-other-keys)
1790 (substitute* "gdk-pixbuf-loader/Makefile.in"
1791 ;; By default the gdk-pixbuf loader is installed under
1792 ;; gdk-pixbuf's prefix. Work around that.
1793 (("gdk_pixbuf_moduledir = .*$")
1794 (string-append "gdk_pixbuf_moduledir = "
1795 "$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
1796 "loaders\n"))
1797 ;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
1798 (("gdk_pixbuf_cache_file = .*$")
1799 "gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
1800 #t))
ec47c07d 1801 (add-before 'check 'remove-failing-tests
b6239e45 1802 (lambda _
64a153bd
MW
1803 (with-directory-excursion "tests/fixtures/reftests"
1804 (for-each delete-file
ec47c07d
MB
1805 '(;; The images produced by these tests differ slightly
1806 ;; from their reference counterparts due to differences
1807 ;; in the build environment (missing fonts, etc). See
1808 ;; <tests/README.md> for details.
1809 ;; These fail on x86_64.
1810 "svg1.1/coords-viewattr-02-b.svg"
1811 "svg1.1/filters-composite-04-f.svg"
1812 "svg1.1/filters-image-01-b.svg"
1813 "svg1.1/filters-conv-02-f.svg"
1814 "svg1.1/filters-conv-04-f.svg"
1815 ;; This test fails on i686:
64a153bd 1816 "svg1.1/masking-path-04-b.svg"
64a153bd
MW
1817 ;; This test fails on armhf:
1818 "svg1.1/masking-mask-01-b.svg"
64a153bd 1819 ;; This test fails on aarch64:
ec47c07d 1820 "bugs/777834-empty-text-children.svg")))
b6239e45 1821 #t)))))
63016e7c
LC
1822 (native-inputs
1823 `(("pkg-config" ,pkg-config)
64855281
MB
1824 ;; This is the minimum supported Rust version in Librsvg 2.46.
1825 ("rust" ,rust-1.34)
1826 ("cargo" ,rust-1.34 "cargo")
d953418a 1827 ("vala" ,vala)
44add1ce 1828 ("glib" ,glib "bin") ; glib-mkenums, etc.
63016e7c
LC
1829 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
1830 (inputs
1831 `(("pango" ,pango)
1832 ("libcroco" ,libcroco)
1833 ("bzip2" ,bzip2)
1834 ("libgsf" ,libgsf)
1835 ("libxml2" ,libxml2)))
1836 (propagated-inputs
1837 ;; librsvg-2.0.pc refers to all of that.
1838 `(("cairo" ,cairo)
1839 ("gdk-pixbuf" ,gdk-pixbuf)
1840 ("glib" ,glib)))
1841 (home-page "https://wiki.gnome.org/LibRsvg")
1842 (synopsis "Render SVG files using Cairo")
1843 (description
35b9e423 1844 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
63016e7c 1845library.")
cf9dad6c 1846 (license license:lgpl2.1+)))
5698b8b8
JD
1847
1848(define-public libidl
1849 (package
1850 (name "libidl")
1851 (version "0.8.14")
1852 (source (origin
1853 (method url-fetch)
80a06e62
EF
1854 (uri (string-append "mirror://gnome/sources/libIDL/"
1855 (version-major+minor version) "/"
1856 "libIDL-" version ".tar.bz2"))
5698b8b8
JD
1857 (sha256
1858 (base32
1859 "08129my8s9fbrk0vqvnmx6ph4nid744g5vbwphzkaik51664vln5"))))
1860 (build-system gnu-build-system)
1861 (inputs `(("glib" ,glib)))
1862 (native-inputs
1863 `(("pkg-config" ,pkg-config)
b3546174 1864 ("flex" ,flex)
5698b8b8
JD
1865 ("bison" ,bison)))
1866 (home-page "http://freecode.com/projects/libidl")
1867 (synopsis "Create trees of CORBA Interface Definition Language files")
35b9e423 1868 (description "Libidl is a library for creating trees of CORBA Interface
5698b8b8
JD
1869Definition Language (idl) files, which is a specification for defining
1870portable interfaces. libidl was initially written for orbit (the orb from the
35b9e423 1871GNOME project, and the primary means of libidl distribution). However, the
2e6ecc5c 1872functionality was designed to be as reusable and portable as possible.")
ef2c55bb 1873 (properties `((upstream-name . "libIDL")))
5698b8b8
JD
1874 (license license:lgpl2.0+)))
1875
1876
1877(define-public orbit2
1878 (package
1879 (name "orbit2")
1880 (version "2.14.19")
1881 (source (origin
1882 (method url-fetch)
2e6ecc5c 1883 (uri (let ((upstream-name "ORBit2"))
a124bbd2 1884 (string-append "mirror://gnome/sources/" upstream-name "/"
b38e45d8
EB
1885 (version-major+minor version) "/"
1886 upstream-name "-" version ".tar.bz2")))
5698b8b8 1887 (sha256
a124bbd2
SB
1888 (base32
1889 "0l3mhpyym9m5iz09fz0rgiqxl2ym6kpkwpsp1xrr4aa80nlh1jam"))))
5698b8b8
JD
1890 (build-system gnu-build-system)
1891 (arguments
a124bbd2 1892 `(#:configure-flags
8aad2e32
LC
1893 '(;; We don't need static libraries, plus they don't build reproducibly
1894 ;; (non-deterministic ordering of .o files in the archive.)
1895 "--disable-static"
1896
1897 ;; The programmer kindly gives us a hook to turn off deprecation
1898 ;; warnings ...
1899 "DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
a124bbd2
SB
1900 ;; ... which they then completly ignore !!
1901 #:phases
dc1d3cde
KK
1902 (modify-phases %standard-phases
1903 (add-before 'configure 'ignore-deprecations
1904 (lambda _
1905 (substitute* "linc2/src/Makefile.in"
1906 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
1907 #t)))))
5698b8b8
JD
1908 (inputs `(("glib" ,glib)
1909 ("libidl" ,libidl)))
1910 (native-inputs
1911 `(("pkg-config" ,pkg-config)))
1912 (home-page "https://projects.gnome.org/orbit2/")
1913 (synopsis "CORBA 2.4-compliant Object Request Broker")
35b9e423 1914 (description "ORBit2 is a CORBA 2.4-compliant Object Request Broker (orb)
2e6ecc5c 1915featuring mature C, C++ and Python bindings.")
a124bbd2
SB
1916 ;; Licence notice is unclear. The Web page simply say "GPL" without giving
1917 ;; a version. SOME of the code files have licence notices for GPLv2+.
1918 ;; The tarball contains files of the text of GPLv2 and LGPLv2.
892307ae
LC
1919 (license license:gpl2+)
1920 (properties `((upstream-name . "ORBit2")))))
5698b8b8
JD
1921
1922
1923(define-public libbonobo
1924 (package
1925 (name "libbonobo")
1926 (version "2.32.1")
1927 (source (origin
1928 (method url-fetch)
5becd025 1929 (uri (string-append "mirror://gnome/sources/" name "/"
29a7c98a 1930 (version-major+minor version)
5becd025 1931 "/" name "-" version ".tar.bz2"))
5698b8b8 1932 (sha256
f1fc45a9 1933 (base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))
fc1adab1
AK
1934 (patches (search-patches
1935 "libbonobo-activation-test-race.patch"))))
5698b8b8
JD
1936 (build-system gnu-build-system)
1937 (arguments
1938 ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
5becd025
EB
1939 `(#:configure-flags
1940 '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
1941 ;; ... which they then completly ignore !!
1942 #:phases
dc1d3cde
KK
1943 (modify-phases %standard-phases
1944 (add-before 'configure 'ignore-deprecations
1945 (lambda _
1946 (substitute* "activation-server/Makefile.in"
1947 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
994b5b1d
LC
1948 #t)))
1949
1950 ;; There's apparently a race condition between the server stub
1951 ;; generation and linking of the example under 'samples/echo' that can
1952 ;; lead do undefined references when building in parallel, as reported
1953 ;; at <https://forums.gentoo.org/viewtopic-t-223376-start-550.html>.
1954 ;; Thus, disable parallel builds.
1955 #:parallel-build? #f))
5698b8b8
JD
1956 (inputs `(("popt" ,popt)
1957 ("libxml2" ,libxml2)))
1958 ;; The following are Required by the .pc file
44add1ce 1959 (propagated-inputs
5698b8b8
JD
1960 `(("glib" ,glib)
1961 ("orbit2" ,orbit2)))
1962 (native-inputs
1963 `(("intltool" ,intltool)
1964 ("pkg-config" ,pkg-config)
221ed17a 1965 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
1966 ("flex" ,flex)
1967 ("bison" ,bison)))
1968 (home-page "https://developer.gnome.org/libbonobo/")
1969 (synopsis "Framework for creating reusable components for use in GNOME applications")
1970 (description "Bonobo is a framework for creating reusable components for
2e6ecc5c 1971use in GNOME applications, built on top of CORBA.")
5698b8b8
JD
1972 ;; Licence not explicitly stated. Source files contain no licence notices.
1973 ;; Tarball contains text of both GPLv2 and LGPLv2
1974 ;; GPLv2 covers both conditions
1975 (license license:gpl2+)))
1976
1977
1978(define-public gconf
1979 (package
1980 (name "gconf")
1981 (version "3.2.6")
1982 (source (origin
1983 (method url-fetch)
a124bbd2
SB
1984 (uri
1985 (let ((upstream-name "GConf"))
1986 (string-append "mirror://gnome/sources/" upstream-name "/"
b38e45d8
EB
1987 (version-major+minor version) "/"
1988 upstream-name "-" version ".tar.xz")))
5698b8b8
JD
1989 (sha256
1990 (base32 "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr"))))
1991 (build-system gnu-build-system)
2e88d113 1992 (inputs `(("dbus-glib" ,dbus-glib)
5698b8b8 1993 ("libxml2" ,libxml2)))
2e6ecc5c
AE
1994 (propagated-inputs `(("glib" ,glib) ; referred to in the .pc file
1995 ("orbit2" ,orbit2)))
5698b8b8
JD
1996 (native-inputs
1997 `(("intltool" ,intltool)
221ed17a 1998 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
1999 ("pkg-config" ,pkg-config)))
2000 (home-page "https://projects.gnome.org/gconf/")
35b9e423
EB
2001 (synopsis "Store application preferences")
2002 (description "Gconf is a system for storing application preferences. It
2003is intended for user preferences; not arbitrary data storage.")
29d2f451
LC
2004 (license license:lgpl2.0+)
2005 (properties '((upstream-name . "GConf")))))
5698b8b8
JD
2006
2007
2008(define-public gnome-mime-data
2009 (package
2010 (name "gnome-mime-data")
2011 (version "2.18.0")
2012 (source (origin
2013 (method url-fetch)
b38e45d8
EB
2014 (uri (string-append "mirror://gnome/sources/" name "/"
2015 (version-major+minor version) "/"
2016 name "-" version ".tar.bz2"))
5698b8b8
JD
2017 (sha256
2018 (base32
2019 "1mvg8glb2a40yilmyabmb7fkbzlqd3i3d31kbkabqnq86xdnn69p"))))
2020 (build-system gnu-build-system)
2021 (native-inputs
2022 `(("perl" ,perl)
2023 ("intltool" ,intltool)))
3e6add96
LC
2024 (arguments
2025 '(#:phases (modify-phases %standard-phases
2026 (add-after 'configure 'use-our-intltool
2027 (lambda _
2028 ;; Do not use the bundled intltool commands, which lack
2029 ;; the "dotless @INC" fixes of our 'intltool' package.
2030 (substitute* (find-files "." "^Makefile$")
2031 (("^INTLTOOL_(EXTRACT|UPDATE|MERGE) = .*$" _ tool)
2032 (string-append "INTLTOOL_" tool " = intltool-"
2033 (string-downcase tool) "\n")))
2034 #t)))))
f032d0be 2035 (home-page "https://www.gnome.org")
35b9e423 2036 (synopsis "Base MIME and Application database for GNOME")
5698b8b8
JD
2037 (description "GNOME Mime Data is a module which contains the base MIME
2038and Application database for GNOME. The data stored by this module is
2039designed to be accessed through the MIME functions in GnomeVFS.")
2040 (license license:gpl2+)))
2041
2042
2043(define-public gnome-vfs
2044 (package
2045 (name "gnome-vfs")
2046 (version "2.24.4")
2047 (source (origin
2048 (method url-fetch)
b38e45d8
EB
2049 (uri (string-append "mirror://gnome/sources/" name "/"
2050 (version-major+minor version) "/"
2051 name "-" version ".tar.bz2"))
5698b8b8 2052 (sha256
9e12bc34
MW
2053 (base32
2054 "1ajg8jb8k3snxc7rrgczlh8daxkjidmcv3zr9w809sq4p2sn9pk2"))))
5698b8b8
JD
2055 (build-system gnu-build-system)
2056 (arguments
db5127d8 2057 `(#:phases
dc1d3cde
KK
2058 (modify-phases %standard-phases
2059 (add-before 'configure 'ignore-deprecations
2060 (lambda _
2061 (substitute* '("libgnomevfs/Makefile.in"
2062 "daemon/Makefile.in")
2063 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
2064 #t))
2065 (add-before 'configure 'patch-test-async-cancel-to-never-fail
2066 (lambda _
2067 (substitute* "test/test-async-cancel.c"
2068 (("EXIT_FAILURE") "77"))
2069 #t)))))
2e6ecc5c 2070 (inputs `(("libxml2" ,libxml2)
5698b8b8 2071 ("dbus-glib" ,dbus-glib)
5698b8b8
JD
2072 ("gconf" ,gconf)
2073 ("gnome-mime-data" ,gnome-mime-data)
2074 ("zlib" ,zlib)))
2075 (native-inputs
221ed17a
EB
2076 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
2077 ("intltool" ,intltool)
5698b8b8
JD
2078 ("pkg-config" ,pkg-config)))
2079 (home-page "https://developer.gnome.org/gnome-vfs/")
35b9e423 2080 (synopsis "Access files and folders in GNOME applications")
9e12bc34
MW
2081 (description
2082 "GnomeVFS is the core library used to access files and folders in GNOME
2083applications. It provides a file system abstraction which allows applications
2084to access local and remote files with a single consistent API.")
5698b8b8
JD
2085 (license license:lgpl2.0+)))
2086
2087
2088
2089(define-public libgnome
2090 (package
2091 (name "libgnome")
2092 (version "2.32.1")
2093 (source (origin
2094 (method url-fetch)
b38e45d8
EB
2095 (uri (string-append "mirror://gnome/sources/" name "/"
2096 (version-major+minor version) "/"
2097 name "-" version ".tar.bz2"))
5698b8b8
JD
2098 (sha256
2099 (base32
17c3eea7
LC
2100 "197pnq8y0knqjhm2fg4j6hbqqm3qfzfnd0irhwxpk1b4hqb3kimj"))
2101 (patches (search-patches "libgnome-encoding.patch"))))
5698b8b8
JD
2102 (build-system gnu-build-system)
2103 (arguments
2104 `(#:phases
dc1d3cde
KK
2105 (modify-phases %standard-phases
2106 (add-before 'configure 'enable-deprecated
2107 (lambda _
2108 (substitute* "libgnome/Makefile.in"
2109 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
2110 #t)))))
25338e9f 2111 (inputs `(("libxml2" ,libxml2)))
5698b8b8 2112 (native-inputs
221ed17a
EB
2113 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
2114 ("intltool" ,intltool)
5698b8b8
JD
2115 ("pkg-config" ,pkg-config)))
2116 ;; The following are listed as Required in the .pc file
2117 ;; (except for libcanberra -- which seems to be oversight on the part
2118 ;; of the upstream developers -- anything that links against libgnome,
2119 ;; must also link against libcanberra
2120 (propagated-inputs
2121 `(("libcanberra" ,libcanberra)
2122 ("libbonobo" ,libbonobo)
2123 ("gconf" ,gconf)
a640d3d5
LC
2124 ("gnome-vfs" ,gnome-vfs)
2125 ("popt" ,popt))) ;gnome-program.h includes popt.h
5698b8b8
JD
2126 (home-page "https://developer.gnome.org/libgnome/")
2127 (synopsis "Useful routines for building applications")
2128 (description "The libgnome library provides a number of useful routines
2129for building modern applications, including session management, activation of
2130files and URIs, and displaying help.")
2131 (license license:lgpl2.0+)))
2132
2133
2134(define-public libart-lgpl
2135 (package
2136 (name "libart-lgpl")
76c9b6aa 2137 (version "2.3.21")
5698b8b8
JD
2138 (source (origin
2139 (method url-fetch)
2140 (uri (let ((upstream-name "libart_lgpl"))
b38e45d8
EB
2141 (string-append "mirror://gnome/sources/" upstream-name "/"
2142 (version-major+minor version) "/"
2143 upstream-name "-" version ".tar.bz2")))
5698b8b8
JD
2144 (sha256
2145 (base32
76c9b6aa 2146 "1yknfkyzgz9s616is0l9gp5aray0f2ry4dw533jgzj8gq5s1xhgx"))))
5698b8b8
JD
2147 (build-system gnu-build-system)
2148 (native-inputs
2149 `(("pkg-config" ,pkg-config)))
2150 (home-page "https://people.gnome.org/~mathieu/libart")
2151 (synopsis "2D drawing library")
2e6ecc5c 2152 (description "Libart is a 2D drawing library intended as a
5698b8b8
JD
2153high-quality vector-based 2D library with antialiasing and alpha composition.")
2154 (license license:lgpl2.0+)))
2155
2156
2157
2158(define-public libgnomecanvas
2159 (package
2160 (name "libgnomecanvas")
2161 (version "2.30.3")
2162 (source (origin
2163 (method url-fetch)
b38e45d8
EB
2164 (uri (string-append "mirror://gnome/sources/" name "/"
2165 (version-major+minor version) "/"
2166 name "-" version ".tar.gz"))
5698b8b8
JD
2167 (sha256
2168 (base32
2169 "1nhnq4lfkk8ljkdafscwaggx0h95mq0rxnd7zgqyq0xb6kkqbjm8"))))
2170 (build-system gnu-build-system)
2171 ;; Mentioned as Required in the .pc file
2172 (propagated-inputs `(("libart-lgpl" ,libart-lgpl)
2173 ("gtk+" ,gtk+-2)))
2174 (native-inputs
2175 `(("intltool" ,intltool)
221ed17a 2176 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
2177 ("pkg-config" ,pkg-config)))
2178 (home-page "https://developer.gnome.org/libgnomecanvas/")
2179 (synopsis "Flexible widget for creating interactive structured graphics")
2180 (description "The GnomeCanvas widget provides a flexible widget for
2181creating interactive structured graphics.")
2182 (license license:lgpl2.0+)))
2183
eadc734e
RW
2184(define-public libgnomecanvasmm
2185 (package
2186 (name "libgnomecanvasmm")
2187 (version "2.26.0")
2188 (source (origin
2189 (method url-fetch)
2190 (uri (string-append "mirror://gnome/sources/" name "/"
2191 (version-major+minor version) "/"
2192 name "-" version ".tar.bz2"))
2193 (sha256
2194 (base32
2195 "0679hcnpam2gkag2i63sm0wdm35gwvzafnz1354mg6j5gzwpfrcr"))))
2196 (build-system gnu-build-system)
2197 (propagated-inputs `(("libgnomecanvas" ,libgnomecanvas)))
2198 (native-inputs
2199 `(("gtkmm-2" ,gtkmm-2)
2200 ("pkg-config" ,pkg-config)))
8e933cb3 2201 (home-page "https://gtkmm.org")
eadc734e
RW
2202 (synopsis "C++ bindings to the GNOME Canvas library")
2203 (description "C++ bindings to the GNOME Canvas library.")
2204 (license license:lgpl2.0+)))
2205
5698b8b8
JD
2206(define-public libgnomeui
2207 (package
2208 (name "libgnomeui")
2209 (version "2.24.5")
2210 (source (origin
2211 (method url-fetch)
b38e45d8
EB
2212 (uri (string-append "mirror://gnome/sources/" name "/"
2213 (version-major+minor version) "/"
2214 name "-" version ".tar.bz2"))
8fa1872a 2215 (patches (search-patches "libgnomeui-utf8.patch"))
5698b8b8
JD
2216 (sha256
2217 (base32
2218 "03rwbli76crkjl6gp422wrc9lqpl174k56cp9i96b7l8jlj2yddf"))))
2219 (build-system gnu-build-system)
2220 ;; Mentioned as Required in the .pc file
0a38a497
AE
2221 (propagated-inputs `(("libbonoboui" ,libbonoboui)
2222 ("libgnome" ,libgnome)
2223 ("libgnomecanvas" ,libgnomecanvas)
5698b8b8 2224 ("libgnome-keyring" ,libgnome-keyring)))
0a38a497 2225 (inputs `(("libjpeg" ,libjpeg)
5698b8b8
JD
2226 ("popt" ,popt)
2227 ("libbonobo" ,libbonobo)
2228 ("libxml2" ,libxml2)
2229 ("libglade" ,libglade)))
2230 (native-inputs
221ed17a
EB
2231 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
2232 ("intltool" ,intltool)
5698b8b8
JD
2233 ("pkg-config" ,pkg-config)))
2234 (home-page "https://developer.gnome.org/libgnomeui/")
2235 (synopsis "Additional widgets for applications")
35b9e423 2236 (description "The libgnomeui library provides additional widgets for
e881752c
AK
2237applications. Many of the widgets from libgnomeui have already been
2238ported to GTK+.")
5698b8b8
JD
2239 (license license:lgpl2.0+)))
2240
2241(define-public libglade
2242 (package
2243 (name "libglade")
2244 (version "2.6.4")
2245 (source (origin
2246 (method url-fetch)
b38e45d8
EB
2247 (uri (string-append "mirror://gnome/sources/" name "/"
2248 (version-major+minor version) "/"
2249 name "-" version ".tar.bz2"))
5698b8b8
JD
2250 (sha256
2251 (base32
2252 "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4"))))
2253 (build-system gnu-build-system)
2254 (inputs
92dcc23d
AE
2255 `(("python" ,python))) ;; needed for the optional libglade-convert program
2256 (propagated-inputs
5698b8b8 2257 `(("gtk+-2" ,gtk+-2)
92dcc23d 2258 ("libxml2" ,libxml2))) ; required by libglade-2.0.pc
5698b8b8
JD
2259 (native-inputs
2260 `(("pkg-config" ,pkg-config)))
2261 (home-page "https://developer.gnome.org/libglade")
35b9e423
EB
2262 (synopsis "Load glade interfaces and access the glade built widgets")
2263 (description "Libglade is a library that provides interfaces for loading
5698b8b8
JD
2264graphical interfaces described in glade files and for accessing the
2265widgets built in the loading process.")
2266 (license license:gpl2+))) ; This is correct. GPL not LGPL
2267
2268(define-public libgnomeprint
eb497b66
LC
2269 ;; This library has been deprecated since 2006; see
2270 ;; <https://mail.gnome.org/archives/devel-announce-list/2006-August/msg00005.html>.
5698b8b8
JD
2271 (package
2272 (name "libgnomeprint")
d19db454 2273 (version "2.18.8")
5698b8b8
JD
2274 (source (origin
2275 (method url-fetch)
b38e45d8
EB
2276 (uri (string-append "mirror://gnome/sources/" name "/"
2277 (version-major+minor version) "/"
2278 name "-" version ".tar.bz2"))
5698b8b8
JD
2279 (sha256
2280 (base32
d19db454 2281 "14cnimvlc7ky22g2snyf4362412k3jk1syjf8b9887q5a63fqd0h"))))
5698b8b8
JD
2282 (build-system gnu-build-system)
2283 (inputs
2284 `(("popt" ,popt)
2285 ("libart-lgpl" ,libart-lgpl)
2286 ("gtk+" ,gtk+-2)
44add1ce 2287 ("libxml2" ,libxml2)))
5698b8b8
JD
2288 (native-inputs
2289 `(("intltool" ,intltool)
221ed17a 2290 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
2291 ("pkg-config" ,pkg-config)))
2292 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
35b9e423 2293 (synopsis "Printing framework for GNOME")
eb497b66
LC
2294 (description
2295 "GNOME-print was a printing framework for GNOME. It has been deprecated
2296since ca. 2006, when GTK+ itself incorporated printing support.")
5698b8b8
JD
2297 (license license:lgpl2.0+)))
2298
2299
2300(define-public libgnomeprintui
eb497b66 2301 ;; Deprecated; see libgnomeprint.
5698b8b8
JD
2302 (package
2303 (name "libgnomeprintui")
36053d7f 2304 (version "2.18.6")
5698b8b8
JD
2305 (source (origin
2306 (method url-fetch)
b38e45d8
EB
2307 (uri (string-append "mirror://gnome/sources/" name "/"
2308 (version-major+minor version) "/"
2309 name "-" version ".tar.bz2"))
5698b8b8
JD
2310 (sha256
2311 (base32
36053d7f 2312 "0spl8vinb5n6n1krnfnr61dwaxidg67h8j94z9p59k2xdsvfashm"))))
5698b8b8
JD
2313 (build-system gnu-build-system)
2314 ;; Mentioned as Required in the .pc file
2315 (propagated-inputs `(("libgnomeprint" ,libgnomeprint)))
2316 (inputs `(("gtk+" ,gtk+-2)
2317 ("glib" ,glib)
2318 ("gnome-icon-theme" ,gnome-icon-theme)
2319 ("libgnomecanvas" ,libgnomecanvas)
2e6ecc5c 2320 ("libxml2" ,libxml2)))
5698b8b8
JD
2321 (native-inputs
2322 `(("intltool" ,intltool)
2323 ("pkg-config" ,pkg-config)))
2324 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
2325 (synopsis "Printing framework for GNOME")
eb497b66 2326 (description (package-description libgnomeprint))
5698b8b8
JD
2327 (license license:lgpl2.0+)))
2328
5698b8b8
JD
2329(define-public libbonoboui
2330 (package
2331 (name "libbonoboui")
2332 (version "2.24.5")
2333 (source (origin
2334 (method url-fetch)
b38e45d8
EB
2335 (uri (string-append "mirror://gnome/sources/" name "/"
2336 (version-major+minor version) "/"
2337 name "-" version ".tar.bz2"))
5698b8b8
JD
2338 (sha256
2339 (base32
2340 "1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
2341 (build-system gnu-build-system)
2342 (arguments
2343 `(#:phases
dc1d3cde
KK
2344 (modify-phases %standard-phases
2345 (add-before 'check 'start-xserver
2346 (lambda* (#:key inputs #:allow-other-keys)
2347 (let ((xorg-server (assoc-ref inputs "xorg-server"))
2348 (disp ":1"))
2349
2350 (setenv "HOME" (getcwd))
2351 (setenv "DISPLAY" disp)
2352 ;; There must be a running X server and make check doesn't start one.
2353 ;; Therefore we must do it.
2354 (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))))))
5698b8b8
JD
2355 ;; Mentioned as Required by the .pc file
2356 (propagated-inputs `(("libxml2" ,libxml2)))
2357 (inputs
2358 `(("popt" ,popt)
2359 ("pangox-compat" ,pangox-compat)
2360 ("libgnome" ,libgnome)
2361 ("libgnomecanvas" ,libgnomecanvas)
2362 ("libglade" ,libglade)))
2363 (native-inputs
221ed17a
EB
2364 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
2365 ("intltool" ,intltool)
ff337525 2366 ("xorg-server" ,xorg-server-for-tests) ; For running the tests
5698b8b8
JD
2367 ("pkg-config" ,pkg-config)))
2368 (home-page "https://developer.gnome.org/libbonoboui/")
2369 (synopsis "Some user interface controls using Bonobo")
2370 (description "The Bonobo UI library provides a number of user interface
2371controls using the Bonobo component framework.")
2372 (license license:lgpl2.0+)))
2373
fecbf86e
SB
2374(define-public libwnck
2375 (package
2376 (name "libwnck")
d3b40696 2377 (version "3.32.0")
fecbf86e
SB
2378 (source (origin
2379 (method url-fetch)
2380 (uri (string-append "mirror://gnome/sources/" name "/"
2381 (version-major+minor version) "/"
2382 name "-" version ".tar.xz"))
2383 (sha256
ad9b8987 2384 (base32
d3b40696
KK
2385 "1jp3p1lnwnwi6fxl2rz3166cmwzwy9vqz896anpwc3wdy9f875cm"))))
2386 (build-system meson-build-system)
fecbf86e
SB
2387 (native-inputs
2388 `(("pkg-config" ,pkg-config)
d3b40696
KK
2389 ("glib" ,glib "bin") ; for glib-mkenums
2390 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
fecbf86e
SB
2391 ("intltool" ,intltool)))
2392 (propagated-inputs
427476d5
SB
2393 `(("gtk+" ,gtk+)
2394 ("libxres" ,libxres)
2395 ("startup-notification" ,startup-notification)))
fecbf86e
SB
2396 (home-page "https://developer.gnome.org/libwnck/")
2397 (synopsis "Window Navigator Construction Kit")
2398 (description
2399 "Libwnck is the Window Navigator Construction Kit, a library for use in
2400writing pagers, tasklists, and more generally applications that are dealing
2401with window management. It tries hard to respect the Extended Window Manager
2402Hints specification (EWMH).")
2403 (license license:lgpl2.0+)))
2404
2405;; stable version for gtk2, required by xfwm4.
dbb7a081 2406(define-public libwnck-2
fecbf86e
SB
2407 (package (inherit libwnck)
2408 (name "libwnck")
2409 (version "2.30.7")
2410 (source (origin
2411 (method url-fetch)
2412 (uri (string-append "mirror://gnome/sources/" name "/"
2413 (version-major+minor version) "/"
2414 name "-" version ".tar.xz"))
2415 (sha256
2416 (base32
2417 "15713yl0f8f3p99jzqqfmbicrdswd3vwpx7r3bkf1bgh6d9lvs4b"))))
ba7fed8e
MÁAV
2418 (build-system gnu-build-system)
2419 (native-inputs
2420 `(("pkg-config" ,pkg-config)
2421 ("intltool" ,intltool)))
fecbf86e 2422 (propagated-inputs
427476d5
SB
2423 `(("gtk+" ,gtk+-2)
2424 ("libxres" ,libxres)
2425 ("startup-notification" ,startup-notification)))))
b804c61e
JD
2426
2427(define-public goffice
2428 (package
2429 (name "goffice")
09abffcc 2430 (version "0.10.46")
b804c61e
JD
2431 (source (origin
2432 (method url-fetch)
16243f0b 2433 (uri (string-append "mirror://gnome/sources/goffice/"
b38e45d8 2434 (version-major+minor version) "/"
16243f0b 2435 "goffice-" version ".tar.xz"))
b804c61e 2436 (sha256
09abffcc 2437 (base32 "1a8kba36zwzr0ilafc0d1nsxxma1qibviiifd0jhbxp180x6v385"))))
b804c61e 2438 (build-system gnu-build-system)
72a06d3e 2439 (outputs '("out"
355420c6 2440 "doc")) ; 4.0 MiB of gtk-doc
72a06d3e
LC
2441 (arguments
2442 '(#:configure-flags (list (string-append "--with-html-dir="
2443 (assoc-ref %outputs "doc")
2444 "/share/gtk-doc/html"))))
b804c61e
JD
2445 (inputs
2446 `(("gtk+" ,gtk+)
2447 ("libgsf" ,libgsf)
2448 ("librsvg" ,librsvg)
2449 ("libxslt" ,libxslt)
2450 ("libxml2" ,libxml2)))
2451 (native-inputs
2452 `(("intltool" ,intltool)
f280cdb1 2453 ("glib" ,glib "bin")
b804c61e
JD
2454 ("pkg-config" ,pkg-config)))
2455 (home-page "https://developer.gnome.org/goffice/")
2456 (synopsis "Document-centric objects and utilities")
2457 (description "A GLib/GTK+ set of document-centric objects and utilities.")
2e6ecc5c 2458 (license
b804c61e
JD
2459 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
2460 ;; Note: NOT LGPL
2461 (list license:gpl2 license:gpl3))))
2462
c024ae36
RW
2463(define-public goffice-0.8
2464 (package (inherit goffice)
2465 (version "0.8.17")
2466 (source (origin
2467 (method url-fetch)
2468 (uri (string-append "mirror://gnome/sources/" (package-name goffice) "/"
2469 (version-major+minor version) "/"
2470 (package-name goffice) "-" version ".tar.xz"))
2471 (sha256
2472 (base32 "05fvzbs5bin05bbsr4dp79aiva3lnq0a3a40zq55i13vnsz70l0n"))))
2473 (arguments
2474 `(#:phases
dc1d3cde
KK
2475 (modify-phases %standard-phases
2476 (add-after 'unpack 'fix-pcre-check
2477 (lambda _
2478 ;; Only glib.h can be included directly. See
2479 ;; https://bugzilla.gnome.org/show_bug.cgi?id=670316
2480 (substitute* "configure"
2481 (("glib/gregex\\.h") "glib.h")) #t)))
72a06d3e
LC
2482
2483 ,@(package-arguments goffice)))
c024ae36
RW
2484 (propagated-inputs
2485 ;; libgoffice-0.8.pc mentions libgsf-1
2486 `(("libgsf" ,libgsf)))
2487 (inputs
2488 `(("gtk" ,gtk+-2)
2489 ,@(alist-delete "gtk" (package-inputs goffice))))))
2490
b804c61e
JD
2491(define-public gnumeric
2492 (package
2493 (name "gnumeric")
f0517b5d 2494 (version "1.12.46")
b804c61e
JD
2495 (source (origin
2496 (method url-fetch)
b7fd0217 2497 (uri (string-append "mirror://gnome/sources/gnumeric/"
b38e45d8 2498 (version-major+minor version) "/"
b7fd0217 2499 "gnumeric-" version ".tar.xz"))
b804c61e
JD
2500 (sha256
2501 (base32
f0517b5d 2502 "1qdmw2dp7rmq8fmjapgwaks7ajh270wm6kyvlxlzwbgmg8vngp4z"))))
bd1b1e05 2503 (build-system glib-or-gtk-build-system)
b804c61e
JD
2504 (arguments
2505 `(;; The gnumeric developers don't worry much about failing tests.
2506 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
2e6ecc5c 2507 #:tests? #f
b804c61e 2508 #:phases
7bcbd40d
EF
2509 (modify-phases %standard-phases
2510 (add-before
2511 'configure 'pre-conf
2512 (lambda* (#:key outputs #:allow-other-keys)
2513 ;; Make install tries to write into the directory of goffice
2514 ;; I am informed that this only affects the possibility to embed a
2515 ;; spreadsheet inside an Abiword document. So presumably when we
2516 ;; package Abiword we'll have to refer it to this directory.
2517 (substitute* "configure"
2518 (("^GOFFICE_PLUGINS_DIR=.*")
2519 (string-append "GOFFICE_PLUGINS_DIR="
2520 (assoc-ref outputs "out")
2521 "/goffice/plugins"))))))))
b804c61e
JD
2522 (inputs
2523 `(("glib" ,glib)
2524 ("gtk+" ,gtk+)
2525 ("goffice" ,goffice)
2526 ("libgsf" ,libgsf)
7bcbd40d 2527 ("librsvg" ,librsvg)
b804c61e 2528 ("libxml2" ,libxml2)
7bcbd40d 2529 ("libxslt" ,libxslt)
2e4c5457 2530 ("python" ,python-2)
6983ba56 2531 ("python2-pygobject" ,python2-pygobject)
b804c61e
JD
2532 ("zlib" ,zlib)))
2533 (native-inputs
6983ba56 2534 `(("bison" ,bison)
1ed398d1 2535 ("docbook-xml" ,docbook-xml)
6983ba56 2536 ("intltool" ,intltool)
785fcb62 2537 ("itstool" ,itstool)
b9663471 2538 ("glib:bin" ,glib "bin")
b804c61e
JD
2539 ("pkg-config" ,pkg-config)))
2540 (home-page "http://www.gnumeric.org")
66672a45
LC
2541 (synopsis "Spreadsheet application")
2542 (description
2543 "GNUmeric is a GNU spreadsheet application, running under GNOME. It is
2544interoperable with other spreadsheet applications. It has a vast array of
2545features beyond typical spreadsheet functionality, such as support for linear
2546and non-linear solvers, statistical analysis, and telecommunication
2547engineering.")
2548 (license
b804c61e
JD
2549 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
2550 (list license:gpl2 license:gpl3))))
6f885c05
FB
2551
2552(define-public gnome-themes-standard
2553 (package
2554 (name "gnome-themes-standard")
0b7b8fb0 2555 (version "3.22.3")
6f885c05
FB
2556 (source
2557 (origin
2558 (method url-fetch)
2e6ecc5c 2559 (uri (string-append "mirror://gnome/sources/" name "/"
6f885c05
FB
2560 (version-major+minor version) "/" name "-"
2561 version ".tar.xz"))
2562 (sha256
2563 (base32
0b7b8fb0 2564 "0smmiamrgcgf5sa88bsn8hwmvsyx4gczzs359nwxbkv14b2qgp31"))))
6f885c05 2565 (build-system gnu-build-system)
8ac70c7f
SB
2566 (arguments
2567 '(#:configure-flags
2568 ;; Don't create 'icon-theme.cache'.
2569 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
2570 (true (string-append coreutils "/bin/true")))
2571 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
6f885c05
FB
2572 (inputs
2573 `(("gtk+" ,gtk+)
2574 ("gtk+-2" ,gtk+-2)
2575 ("librsvg" ,librsvg)
2576 ("libxml2" ,libxml2)
2577 ("glib" ,glib)))
2578 (native-inputs
2579 `(("intltool" ,intltool)
2580 ("glib:bin" ,glib "bin")
2581 ("pkg-config" ,pkg-config)))
6f885c05
FB
2582 (home-page "https://launchpad.net/gnome-themes-standard")
2583 (synopsis "Default GNOME 3 themes")
2584 (description
2585 "The default GNOME 3 themes (Adwaita and some accessibility themes).")
2586 (license license:lgpl2.1+)))
5a659a48 2587
df90c701
RW
2588(define-public seahorse
2589 (package
2590 (name "seahorse")
bcea3c11 2591 (version "3.32.2")
df90c701
RW
2592 (source
2593 (origin
2594 (method url-fetch)
2595 (uri (string-append "mirror://gnome/sources/" name "/"
2596 (version-major+minor version) "/" name "-"
2597 version ".tar.xz"))
2598 (sha256
2599 (base32
bcea3c11 2600 "0d8zdzmlz7fjv9xl20zl4ckidf465mvdjnbpxy3k08y9iw423q4x"))
af561664
MÁAV
2601 (patches (search-patches
2602 "seahorse-gkr-use-0-on-empty-flags.patch"))))
2603 (build-system meson-build-system)
2604 (arguments
bcea3c11
KK
2605 '(#:glib-or-gtk? #t
2606 #:phases
af561664
MÁAV
2607 (modify-phases %standard-phases
2608 (add-after 'unpack 'skip-gtk-update-icon-cache
2609 ;; Don't create 'icon-theme.cache'.
2610 (lambda _
2611 (substitute* "build-aux/meson_post_install.py"
2612 (("gtk-update-icon-cache") "true"))
2613 #t)))))
df90c701
RW
2614 (inputs
2615 `(("gtk+" ,gtk+)
2616 ("gcr" ,gcr)
34b979b9 2617 ("gnupg" ,gnupg)
df90c701 2618 ("gpgme" ,gpgme)
34b979b9 2619 ("openldap" ,openldap)
4a1bf090 2620 ("openssh" ,openssh)
af561664 2621 ("avahi" ,avahi)
bcea3c11 2622 ("libpwquality" ,libpwquality)
34b979b9
EF
2623 ("libsecret" ,libsecret)
2624 ("libsoup" ,libsoup)))
df90c701 2625 (native-inputs
af561664 2626 `(("gettext" ,gettext-minimal)
df90c701
RW
2627 ("glib:bin" ,glib "bin")
2628 ("itstool" ,itstool)
bcb354ad 2629 ("pkg-config" ,pkg-config)
af561664 2630 ("vala" ,vala)
bcb354ad 2631 ("xmllint" ,libxml2)))
bcea3c11 2632 (home-page "https://wiki.gnome.org/Apps/Seahorse")
df90c701
RW
2633 (synopsis "Manage encryption keys and passwords in the GNOME keyring")
2634 (description
2635 "Seahorse is a GNOME application for managing encryption keys and
2636passwords in the GNOME keyring.")
2637 (license license:gpl2+)))
2638
5a659a48
SB
2639(define-public vala
2640 (package
2641 (name "vala")
2d6872f6 2642 (version "0.44.5")
5a659a48
SB
2643 (source (origin
2644 (method url-fetch)
2645 (uri (string-append "mirror://gnome/sources/" name "/"
2646 (version-major+minor version) "/"
2647 name "-" version ".tar.xz"))
2648 (sha256
2649 (base32
2d6872f6 2650 "0zy2kfcvhikczfzhk5l7pkw6mvn3d6vw8cv7g08iah85p22q33xv"))))
5a659a48 2651 (build-system gnu-build-system)
1ea90625
SB
2652 (arguments
2653 '(#:phases
2654 (modify-phases %standard-phases
f4925a4f 2655 (add-before 'check 'pre-check
1ea90625
SB
2656 (lambda _
2657 (setenv "CC" "gcc")
8839b6be
RW
2658 (substitute* "valadoc/tests/testrunner.sh"
2659 (("export PKG_CONFIG_PATH=" m)
2660 (string-append m "$PKG_CONFIG_PATH:")))
f4925a4f
SB
2661 ;; For missing '/etc/machine-id'.
2662 (setenv "DBUS_FATAL_WARNINGS" "0")
8839b6be 2663 #t)))))
5a659a48
SB
2664 (native-inputs
2665 `(("pkg-config" ,pkg-config)
2666 ("flex" ,flex)
2667 ("bison" ,bison)
2668 ("xsltproc" ,libxslt)
2669 ("dbus" ,dbus) ; for dbus tests
2670 ("gobject-introspection" ,gobject-introspection))) ; for gir tests
8839b6be
RW
2671 (inputs
2672 `(("graphviz" ,graphviz)))
5a659a48 2673 (propagated-inputs
8839b6be 2674 `(("glib" ,glib))) ; required by libvala-0.40.pc
f032d0be 2675 (home-page "https://live.gnome.org/Vala/")
5a659a48
SB
2676 (synopsis "Compiler for the GObject type system")
2677 (description
2678 "Vala is a programming language that aims to bring modern programming
2679language features to GNOME developers without imposing any additional runtime
2680requirements and without using a different ABI compared to applications and
2681libraries written in C.")
2682 (license license:lgpl2.1+)))
ea57378f
SB
2683
2684(define-public vte
2685 (package
2686 (name "vte")
68c47474 2687 (version "0.58.3")
ea57378f
SB
2688 (source (origin
2689 (method url-fetch)
ac87ffb8 2690 (uri (string-append "mirror://gnome/sources/vte/"
ea57378f 2691 (version-major+minor version) "/"
ac87ffb8 2692 "vte-" version ".tar.xz"))
ea57378f
SB
2693 (sha256
2694 (base32
68c47474
TGR
2695 "0xa9ipwic4jnhhbzlnqbhssz10xkzv61cpkl1ammc6mdq95bbp12"))))
2696 (build-system meson-build-system)
ea57378f
SB
2697 (native-inputs
2698 `(("pkg-config" ,pkg-config)
2699 ("intltool" ,intltool)
2700 ("vala" ,vala)
2701 ("gobject-introspection" ,gobject-introspection)
68c47474 2702 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
73f0e1ab 2703 ("gperf" ,gperf)
ea57378f
SB
2704 ("xmllint" ,libxml2)))
2705 (propagated-inputs
68c47474
TGR
2706 `(("gtk+" ,gtk+) ; required by vte-2.91.pc
2707 ("gnutls" ,gnutls) ; ditto
2708 ("pcre2" ,pcre2))) ; ditto
f032d0be 2709 (home-page "https://www.gnome.org/")
ea57378f
SB
2710 (synopsis "Virtual Terminal Emulator")
2711 (description
2712 "VTE is a library (libvte) implementing a terminal emulator widget for
2713GTK+, and a minimal sample application (vte) using that. Vte is mainly used in
2714gnome-terminal, but can also be used to embed a console/terminal in games,
2715editors, IDEs, etc.")
2716 (license license:lgpl2.1+)))
2717
c44fb4df
MO
2718(define-public vte-ng
2719 (package
2720 (inherit vte)
2721 (name "vte-ng")
24f4fcbe 2722 (version "0.58.2.a")
afd90f8d 2723 (home-page "https://github.com/thestinger/vte-ng")
6bc00737
MB
2724 (source (origin
2725 (method git-fetch)
2726 (uri (git-reference (url home-page) (commit version)))
2727 (file-name (git-file-name name version))
2728 (sha256
2729 (base32
24f4fcbe
MB
2730 "0rnm5c6m3abbm81jsfdas0y80z299ny54gr4syn4bfrms3s4g19l"))))
2731 (build-system meson-build-system)
c44fb4df
MO
2732 (native-inputs
2733 `(("gtk-doc" ,gtk-doc)
c44fb4df 2734 ,@(package-native-inputs vte)))
c44fb4df 2735 (arguments
24f4fcbe 2736 `(#:configure-flags '("-Ddocs=true")))
c44fb4df
MO
2737 (synopsis "Enhanced VTE terminal widget")
2738 (description
2739 "VTE is a library (libvte) implementing a terminal emulator widget for
2740GTK+, this fork provides additional functions exposed for keyboard text
2741selection and URL hints.")))
2742
2776d72c
EF
2743;; provides vte 2.90, required for some terminal emulators
2744;; tilda bug: https://github.com/lanoxx/tilda/issues/94
2745;; pantheon-terminal bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788021
2746;; roxterm bug: http://sourceforge.net/p/roxterm/bugs/107/
2747;; pantheon-terminal, roxterm are not currently packaged
2748(define-public vte-0.36
2749 (package (inherit vte)
2750 (name "vte")
2751 (version "0.36.5")
2752 (source (origin
2753 (method url-fetch)
2754 (uri (string-append "mirror://gnome/sources/" name "/"
2755 (version-major+minor version) "/"
2756 name "-" version ".tar.xz"))
2757 (sha256
2758 (base32
2759 "1psfnqsmxx4qzc55qwvb8jai824ix4pqcdqhgxk0g2zh82bcxhn2"))))
2760 (propagated-inputs
2761 `(("gtk" ,gtk+)
2762 ("ncurses" ,ncurses)))))
2763
ea57378f
SB
2764;; stable version for gtk2, required by xfce4-terminal.
2765(define-public vte/gtk+-2
2766 (package (inherit vte)
2767 (name "vte")
2768 (version "0.28.2")
2769 (source (origin
2770 (method url-fetch)
2771 (uri (string-append "mirror://gnome/sources/" name "/"
2772 (version-major+minor version) "/"
2773 name "-" version ".tar.xz"))
2774 (sha256
2775 (base32
7d48938a
EF
2776 "1bmhahkf8wdsra9whd3k5l5z4rv7r58ksr8mshzajgq2ma0hpkw6"))
2777 (patches (search-patches
2778 "vte-CVE-2012-2738-pt1.patch"
2779 "vte-CVE-2012-2738-pt2.patch"))))
8eebde74 2780 (build-system gnu-build-system)
ea57378f
SB
2781 (arguments
2782 '(#:configure-flags '("--disable-python")))
2783 (native-inputs
2784 `(("pkg-config" ,pkg-config)
2785 ("intltool" ,intltool)
2786 ("glib" ,glib "bin"))) ; for glib-genmarshal, etc.
2787 (propagated-inputs
2788 `(("gtk+" ,gtk+-2) ; required by libvte.pc
2789 ("ncurses" ,ncurses))))) ; required by libvte.la
b47e1b20 2790
cce0da5e
TD
2791(define-public vinagre
2792 (package
2793 (name "vinagre")
2794 (version "3.22.0")
2795 (source (origin
2796 (method url-fetch)
2797 (uri (string-append "mirror://gnome/sources/" name "/"
2798 (version-major+minor version) "/"
2799 name "-" version ".tar.xz"))
684f97f8
EF
2800 (patches (search-patches "vinagre-newer-freerdp.patch"
2801 "vinagre-newer-rdp-parameters.patch"))
cce0da5e
TD
2802 (sha256
2803 (base32
2804 "10jya3jyrm18nbw3v410gbkc7677bqamax44pzgd3j15randn76d"))))
2805 (build-system glib-or-gtk-build-system)
684f97f8 2806 (arguments
7f486d25
MC
2807 ;; Disable -Werror and such, to avoid build failures on compilation
2808 ;; warnings.
2809 '(#:configure-flags '("--enable-compile-warnings=minimum")
2810 #:phases
684f97f8 2811 (modify-phases %standard-phases
1839768c
EF
2812 (add-before 'install 'skip-gtk-update-icon-cache
2813 (lambda _
2814 ;; Don't create 'icon-theme.cache'
2815 (substitute* (find-files "." "^Makefile$")
2816 (("gtk-update-icon-cache") (which "true")))
2817 #t))
684f97f8
EF
2818 (add-after 'unpack 'patch-configure
2819 (lambda _
2820 (substitute* "configure"
2821 (("freerdp") "freerdp2"))
2822 #t)))))
cce0da5e
TD
2823 (native-inputs
2824 `(("pkg-config" ,pkg-config)
2825 ("intltool" ,intltool)
2826 ("itstool" ,itstool)
1839768c 2827 ("glib-bin" ,glib "bin"))) ;for glib-compile-schemas
cce0da5e
TD
2828 (inputs
2829 `(("libxml2" ,libxml2)
2830 ("gtk-vnc" ,gtk-vnc)
2831 ("gnome-keyring" ,gnome-keyring)
2832 ("libsecret" ,libsecret)
2833 ("freerdp" ,freerdp)
2834 ("spice" ,spice)
2835 ("spice-gtk" ,spice-gtk)
2836 ("telepathy-glib" ,telepathy-glib)
2837 ("vte" ,vte)))
cce0da5e
TD
2838 (home-page "https://wiki.gnome.org/Apps/Vinagre")
2839 (synopsis "Remote desktop viewer for GNOME")
2840 (description "Vinagre is a remote display client supporting the VNC, SPICE
2841and RDP protocols.")
2842 (license license:gpl3+)))
2843
b47e1b20
FB
2844(define-public dconf
2845 (package
2846 (name "dconf")
1e33331c 2847 (version "0.32.0")
b47e1b20
FB
2848 (source (origin
2849 (method url-fetch)
2850 (uri (string-append
2e6ecc5c 2851 "mirror://gnome/sources/" name "/"
b47e1b20
FB
2852 (version-major+minor version) "/"
2853 name "-" version ".tar.xz"))
2854 (sha256
f05c809f 2855 (base32
1e33331c 2856 "1azz4hb9z76yxn34yrrsiib3iqz5z4vpwn5q7cncp55w365ygg38"))))
35fa923d 2857 (build-system meson-build-system)
bc036f4c
MB
2858 (propagated-inputs
2859 ;; In Requires of dconf.pc.
2860 `(("glib" ,glib)))
b47e1b20
FB
2861 (inputs
2862 `(("gtk+" ,gtk+)
bc036f4c 2863 ("dbus" ,dbus)))
b47e1b20 2864 (native-inputs
1e33331c
MB
2865 `(("bash-completion" ,bash-completion)
2866 ("libxslt" ,libxslt) ;for xsltproc
bc036f4c 2867 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
b47e1b20
FB
2868 ("docbook-xml" ,docbook-xml-4.2)
2869 ("docbook-xsl" ,docbook-xsl)
35fa923d 2870 ("glib:bin" ,glib "bin")
03676d6f 2871 ("gtk-doc" ,gtk-doc)
35fa923d
MB
2872 ("pkg-config" ,pkg-config)
2873 ("vala" ,vala)))
b47e1b20
FB
2874 (arguments
2875 `(#:tests? #f ; To contact dbus it needs to load /var/lib/dbus/machine-id
2876 ; or /etc/machine-id.
35fa923d
MB
2877 #:glib-or-gtk? #t
2878 #:configure-flags '("-Denable-gtk-doc=true")))
b47e1b20
FB
2879 (home-page "https://developer.gnome.org/dconf")
2880 (synopsis "Low-level GNOME configuration system")
2881 (description "Dconf is a low-level configuration system. Its main purpose
2882is to provide a backend to GSettings on platforms that don't already have
2883configuration storage systems.")
e20e6b40 2884 (license license:lgpl2.1+)))
109da1c0
AE
2885
2886(define-public json-glib
2887 (package
2888 (name "json-glib")
4115e8ea 2889 (version "1.4.4")
109da1c0
AE
2890 (source (origin
2891 (method url-fetch)
2892 (uri (string-append "mirror://gnome/sources/" name "/"
2893 (version-major+minor version) "/"
2894 name "-" version ".tar.xz"))
2895 (sha256
2896 (base32
4115e8ea 2897 "0ixwyis47v5bkx6h8a1iqlw3638cxcv57ivxv4gw2gaig51my33j"))))
98afa184 2898 (build-system meson-build-system)
109da1c0 2899 (native-inputs
98afa184
MB
2900 `(("gettext" ,gettext-minimal)
2901 ("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
109da1c0
AE
2902 ("gobject-introspection" ,gobject-introspection)
2903 ("pkg-config" ,pkg-config)))
2904 (propagated-inputs
88c6b580 2905 `(("glib" ,glib))) ;according to json-glib-1.0.pc
109da1c0
AE
2906 (home-page "https://wiki.gnome.org/Projects/JsonGlib")
2907 (synopsis "Compiler for the GObject type system")
7c125ce0
AK
2908 (description
2909 "JSON-GLib is a C library based on GLib providing serialization and
2910deserialization support for the JavaScript Object Notation (JSON) format
2911described by RFC 4627. It provides parser and generator GObject classes and
2912various wrappers for the complex data types employed by JSON, such as arrays
2913and objects.")
109da1c0 2914 (license license:lgpl2.1+)))
6f96a359
SB
2915
2916(define-public libxklavier
2917 (package
2918 (name "libxklavier")
5f39050b 2919 (version "5.4")
6f96a359 2920 (source (origin
5f39050b 2921 ;; Note: There's no tarball at ftp.gnome.org for this version.
2922 (method git-fetch)
2923 (uri (git-reference
2924 (url "https://anongit.freedesktop.org/git/libxklavier")
2925 (commit (string-append "libxklavier-" version))))
6f96a359
SB
2926 (sha256
2927 (base32
5f39050b 2928 "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a"))
2929 (file-name (git-file-name name version))))
6f96a359
SB
2930 (build-system gnu-build-system)
2931 (arguments
5f39050b 2932 '(#:phases
2933 (modify-phases %standard-phases
2934 (add-after 'unpack 'no-configure
2935 (lambda* _
2936 (setenv "NOCONFIGURE" "1")
2937 #t)))
2938 #:configure-flags
6f96a359
SB
2939 (list (string-append "--with-xkb-base="
2940 (assoc-ref %build-inputs "xkeyboard-config")
5f39050b 2941 "/share/X11/xkb")
2942 "--disable-xmodmap-support")))
6f96a359
SB
2943 (native-inputs
2944 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
2945 ("gobject-introspection" ,gobject-introspection)
5f39050b 2946 ("pkg-config" ,pkg-config)
2947 ("gtk-doc" ,gtk-doc)
2948 ("intltool" ,intltool)
2949 ("which" ,which)
2950 ("autoconf" ,autoconf)
2951 ("automake" ,automake)
2952 ("libtool" ,libtool)))
6f96a359
SB
2953 (propagated-inputs
2954 ;; Required by libxklavier.pc.
2955 `(("glib" ,glib)
2956 ("libxml2" ,libxml2)))
2957 (inputs
2958 `(("iso-codes" ,iso-codes)
2959 ("libxi" ,libxi)
2960 ("libxkbfile" ,libxkbfile)
2961 ("xkbcomp" ,xkbcomp)
2962 ("xkeyboard-config" ,xkeyboard-config)))
57e7d748 2963 (home-page "https://www.freedesktop.org/wiki/Software/LibXklavier/")
6f96a359
SB
2964 (synopsis "High-level API for X Keyboard Extension")
2965 (description
2966 "LibXklavier is a library providing high-level API for X Keyboard
e881752c
AK
2967Extension known as XKB. This library is intended to support XFree86 and other
2968commercial X servers. It is useful for creating XKB-related software (layout
6f96a359
SB
2969indicators etc).")
2970 (license license:lgpl2.0+)))
619936a4
LC
2971
2972(define-public python2-rsvg
2973 ;; XXX: This is actually a subset of gnome-python-desktop.
2974 (package
2975 (name "python2-rsvg")
2976 (version "2.32.0")
2977 (source
2978 (origin
2979 (method url-fetch)
2980 (uri (string-append
2981 "mirror://gnome/sources/gnome-python-desktop/2.32/gnome-python-desktop-"
2982 version ".tar.bz2"))
2983 (sha256
2984 (base32
2985 "1s8f9rns9v7qlwjv9qh9lr8crp88dpzfm45hj47zc3ivpy0dbnq9"))))
2986 (build-system gnu-build-system)
2987 (native-inputs
2988 `(("pkg-config" ,pkg-config)))
2989 (inputs
2990 `(("python" ,python-2)
2991 ("python2-pygtk" ,python2-pygtk)
2992 ("librsvg" ,librsvg)))
f032d0be 2993 (home-page "https://www.gnome.org")
619936a4
LC
2994 (synopsis "Python bindings to librsvg")
2995 (description
3ad75446 2996 "This package provides Python bindings to librsvg, the SVG rendering
619936a4
LC
2997library.")
2998
2999 ;; This is the license of the rsvg bindings. The license of each module
3000 ;; of gnome-python-desktop is given in 'COPYING'.
3001 (license license:lgpl2.1+)))
a31a6d22 3002
f2ca414a
SB
3003(define-public glib-networking
3004 (package
3005 (name "glib-networking")
0d75c64d 3006 (version "2.60.3")
f2ca414a
SB
3007 (source (origin
3008 (method url-fetch)
3009 (uri (string-append "mirror://gnome/sources/glib-networking/"
3010 (version-major+minor version) "/"
fb8fe1e8 3011 "glib-networking-" version ".tar.xz"))
f2ca414a
SB
3012 (sha256
3013 (base32
0d75c64d 3014 "1mfw44qpmwvz6yzj8c6spx6z357wrmkk15byrkc5byagd82860fm"))))
65211552 3015 (build-system meson-build-system)
f2ca414a 3016 (arguments
0d75c64d 3017 `(#:configure-flags '("-Dlibproxy_support=false")))
f2ca414a
SB
3018 (native-inputs
3019 `(("pkg-config" ,pkg-config)
3020 ("intltool" ,intltool)))
3021 (inputs
3022 `(("glib" ,glib)
3023 ("gnutls" ,gnutls)
4b8f1313 3024 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
f032d0be 3025 (home-page "https://www.gnome.org")
f2ca414a
SB
3026 (synopsis "Network-related GIO modules")
3027 (description
3028 "This package contains various network related extensions for the GIO
3029library.")
3030 (license license:lgpl2.0+)))
3031
ca649680 3032(define-public rest
4510b2da 3033 (package
ca649680 3034 (name "rest")
a4194d16 3035 (version "0.8.1")
4510b2da
SB
3036 (source (origin
3037 (method url-fetch)
3038 (uri (string-append "mirror://gnome/sources/rest/"
ca649680
SB
3039 (version-major+minor version) "/"
3040 name "-" version ".tar.xz"))
4510b2da
SB
3041 (sha256
3042 (base32
a4194d16 3043 "1j81bgqmd55s5lxyaxcplym9n6xywcs1cm9wmvafsg2xiv9sl4q5"))))
4510b2da
SB
3044 (build-system gnu-build-system)
3045 (arguments
3046 '(#:tests? #f ; tests require internet connection
3047 #:configure-flags
3048 '("--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt")))
3049 (native-inputs
3050 `(("glib-mkenums" ,glib "bin")
3051 ("gobject-introspection" ,gobject-introspection)
3052 ("pkg-config" ,pkg-config)))
3053 (propagated-inputs
3054 ;; rest-0.7.pc refers to all these.
3055 `(("glib" ,glib)
3056 ("libsoup" ,libsoup)
3057 ("libxml2" ,libxml2)))
24d6cc1d 3058 (home-page "https://www.gtk.org/")
4510b2da
SB
3059 (synopsis "RESTful web api query library")
3060 (description
3061 "This library was designed to make it easier to access web services that
3062claim to be \"RESTful\". It includes convenience wrappers for libsoup and
3063libxml to ease remote use of the RESTful API.")
3064 (license license:lgpl2.1+)))
3065
6e1bb642
SB
3066(define-public libsoup
3067 (package
3068 (name "libsoup")
9ae87870 3069 (version "2.68.3")
6e1bb642
SB
3070 (source (origin
3071 (method url-fetch)
3072 (uri (string-append "mirror://gnome/sources/libsoup/"
3073 (version-major+minor version) "/"
c1b79b36 3074 "libsoup-" version ".tar.xz"))
6e1bb642
SB
3075 (sha256
3076 (base32
9ae87870 3077 "1yxs0ax4rq3g0lgkbv7mz497rqj16iyyizddyc13gzxh6n7b0jsk"))))
eccaa8bf 3078 (build-system meson-build-system)
6e1bb642
SB
3079 (outputs '("out" "doc"))
3080 (arguments
2deb146f 3081 `(#:modules ((guix build utils)
eccaa8bf 3082 (guix build meson-build-system)
2deb146f
LC
3083 (ice-9 popen))
3084
f8026a79 3085 #:configure-flags '("-Dgtk_doc=true")
6e1bb642
SB
3086 #:phases
3087 (modify-phases %standard-phases
eccaa8bf 3088 (add-after 'unpack 'adjust-tests
26c228f9 3089 (lambda _
eccaa8bf
MB
3090 ;; This test fails due to missing /etc/nsswitch.conf
3091 ;; in the build environment.
26c228f9
LC
3092 (substitute* "tests/socket-test.c"
3093 ((".*/sockets/unconnected.*") ""))
2deb146f 3094
f8026a79
MB
3095 ;; These fail because "subdomain.localhost" does not resolve in
3096 ;; the build environment.
3097 (substitute* "tests/hsts-test.c"
3098 ((".*/hsts/basic.*") "")
3099 ((".*/hsts/subdomains.*") "")
3100 ((".*/hsts/superdomain.*") "")
3101 ((".*/hsts/utf8-address.*") ""))
3102 (substitute* "tests/hsts-db-test.c"
3103 ((".*/hsts-db/subdomains.*") ""))
3104
2deb146f
LC
3105 ;; Generate a self-signed certificate that has "localhost" as its
3106 ;; 'dnsName'. Failing to do that, and starting with GnuTLS
3107 ;; 3.5.12, tests such as "ssl-tests" fail:
3108 ;;
3109 ;; ERROR:ssl-test.c:406:do_tls_interaction_test: Unexpected status 6 Unacceptable TLS certificate (expected 200 OK)
3110 ;;
3111 ;; 'certtool' is interactive so we have to pipe it the answers.
3112 ;; Reported at <https://bugzilla.gnome.org/show_bug.cgi?id=784696>.
3113 (let ((pipe (open-output-pipe "certtool --generate-self-signed \
3114 --load-privkey tests/test-key.pem --outfile tests/test-cert.pem")))
3115 (for-each (lambda (line)
3116 (display line pipe)
3117 (newline pipe))
3118 '("" ;Common name
3119 "" ;UID
3120 "Guix" ;Organizational unit name
3121 "GNU" ;Organization name
3122 "" ;Locality name
3123 "" ;State or province
3124 "" ;Country
3125 "" ;subject's domain component (DC)
3126 "" ;E-mail
3127 "" ;serial number
3128 "-1" ;expiration time
3129 "N" ;belong to authority?
3130 "N" ;web client certificate?
3131 "N" ;IPsec IKE?
3132 "Y" ;web server certificate?
3133 "localhost" ;dnsName of subject
3134 "" ;dnsName of subject (end)
3135 "" ;URI of subject
3136 "127.0.0.1" ;IP address of subject
3137 "" ;signing?
06f5bc4e
MB
3138 "" ;encryption (RSA)?
3139 "" ;data encryption?
2deb146f
LC
3140 "" ;sign OCSP requests?
3141 "" ;sign code?
3142 "" ;time stamping?
3143 "" ;email protection?
3144 "" ;URI of the CRL distribution point
3145 "y" ;above info OK?
3146 ))
3147 (close-pipe pipe))
26c228f9 3148 #t))
eccaa8bf
MB
3149 (add-after 'install 'move-doc
3150 (lambda* (#:key outputs #:allow-other-keys)
3151 (let ((out (assoc-ref outputs "out"))
3152 (doc (assoc-ref outputs "doc")))
3153 (mkdir-p (string-append doc "/share"))
3154 (copy-recursively (string-append out "/share/gtk-doc")
3155 (string-append doc "/share/gtk-doc"))
3156 (delete-file-recursively (string-append out "/share/gtk-doc"))
3157 #t))))))
6e1bb642 3158 (native-inputs
26c228f9 3159 `(("glib:bin" ,glib "bin") ; for glib-mkenums
6e1bb642 3160 ("gobject-introspection" ,gobject-introspection)
eccaa8bf 3161 ("gtk-doc" ,gtk-doc)
6e1bb642
SB
3162 ("intltool" ,intltool)
3163 ("pkg-config" ,pkg-config)
3164 ("python" ,python-wrapper)
fd730590 3165 ("vala" ,vala)
6e1bb642
SB
3166 ;; These are needed for the tests.
3167 ;; FIXME: Add PHP once available.
3168 ("curl" ,curl)
2deb146f 3169 ("gnutls" ,gnutls) ;for 'certtool'
6e1bb642
SB
3170 ("httpd" ,httpd)))
3171 (propagated-inputs
3172 ;; libsoup-2.4.pc refers to all these.
f8026a79
MB
3173 `(("brotli" ,google-brotli)
3174 ("glib" ,glib)
249846bf 3175 ("libpsl" ,libpsl)
eccaa8bf 3176 ("libxml2" ,libxml2)
f8026a79
MB
3177 ("sqlite" ,sqlite)
3178 ("zlib" ,zlib)))
eccaa8bf
MB
3179 (inputs
3180 `(("glib-networking" ,glib-networking)
3181 ("mit-krb5" ,mit-krb5)))
6e1bb642
SB
3182 (home-page "https://live.gnome.org/LibSoup/")
3183 (synopsis "GLib-based HTTP Library")
3184 (description
3185 "LibSoup is an HTTP client/server library for GNOME. It uses GObjects
3186and the GLib main loop, to integrate well with GNOME applications.")
3187 (license license:lgpl2.0+)))
3188
bba229a3
SB
3189(define-public libsecret
3190 (package
3191 (name "libsecret")
b243d2f7 3192 (version "0.19.1")
bba229a3
SB
3193 (source (origin
3194 (method url-fetch)
3195 (uri (string-append
896dcbc7
EF
3196 "mirror://gnome/sources/libsecret/"
3197 (version-major+minor version) "/"
0ada4e29 3198 "libsecret-" version ".tar.xz"))
bba229a3
SB
3199 (sha256
3200 (base32
b243d2f7 3201 "0fhflcsr70b1pps2pcvqcbdhip2ny5am9nbm634f4sj5g40y30w5"))))
bba229a3
SB
3202 (build-system gnu-build-system)
3203 (outputs '("out" "doc"))
3204 (arguments
3205 `(#:tests? #f ; FIXME: Testing hangs.
bba229a3
SB
3206 #:configure-flags
3207 (list (string-append "--with-html-dir="
3208 (assoc-ref %outputs "doc")
3209 "/share/gtk-doc/html"))))
3210 (native-inputs
c06ef010
MB
3211 `(("gettext" ,gettext-minimal)
3212 ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
bba229a3 3213 ("gobject-introspection" ,gobject-introspection)
bba229a3
SB
3214 ("pkg-config" ,pkg-config)
3215 ("vala" ,vala)
3216 ("xsltproc" ,libxslt)))
3217 ;; These are needed for the tests.
3218 ;; FIXME: Add gjs once available.
3219 ;("dbus" ,dbus)
3220 ;("python2" ,python-2)
3221 ;("python2-dbus" ,python2-dbus)
3222 ;("python2-pygobject" ,python2-pygobject)
3223 ;("python2-pygobject-2" ,python2-pygobject-2)))
3224 (propagated-inputs
3225 `(("glib" ,glib))) ; required by libsecret-1.pc
3226 (inputs
3227 `(("docbook-xsl" ,docbook-xsl)
3228 ("libgcrypt" ,libgcrypt)
3229 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
3230 (home-page "https://wiki.gnome.org/Projects/Libsecret/")
3231 (synopsis "GObject bindings for \"Secret Service\" API")
3232 (description
3233 "Libsecret is a GObject based library for storing and retrieving passwords
3234and other secrets. It communicates with the \"Secret Service\" using DBus.")
3235 (license license:lgpl2.1+)))
3236
b6821ee0 3237(define-public five-or-more
3238 (package
3239 (name "five-or-more")
d9795e93 3240 (version "3.32.0")
b6821ee0 3241 (source
3242 (origin
3243 (method url-fetch)
3244 (uri (string-append "mirror://gnome/sources/" name "/"
3245 (version-major+minor version) "/"
3246 name "-" version ".tar.xz"))
3247 (sha256
3248 (base32
d9795e93
KK
3249 "0v52i22ygv6y4zqs8nyb1qmacmj9whhqrw7qss6vn7by4nsikhrn"))))
3250 (build-system meson-build-system)
3251 (arguments
3252 '(#:glib-or-gtk? #t
3253 #:phases
3254 (modify-phases %standard-phases
3255 (add-after 'unpack 'skip-gtk-update-icon-cache
3256 (lambda _
3257 (substitute* "meson_post_install.py"
3258 (("gtk-update-icon-cache") (which "true")))
3259 #t)))))
b6821ee0 3260 (native-inputs
3261 `(("pkg-config" ,pkg-config)
d9795e93 3262 ("appstream-glib" ,appstream-glib)
b6821ee0 3263 ("desktop-file-utils" ,desktop-file-utils)
d9795e93 3264 ("glib:bin" ,glib "bin") ; for glib-compile-resources
b6821ee0 3265 ("intltool" ,intltool)
3266 ("itstool" ,itstool)
d9795e93 3267 ("vala" ,vala)
b6821ee0 3268 ("xmllint" ,libxml2)))
3269 (inputs
3270 `(("gtk+" ,gtk+)
d9795e93 3271 ("libgnome-games-support" ,libgnome-games-support)
b6821ee0 3272 ("librsvg" ,librsvg)))
3273 (home-page "https://wiki.gnome.org/Apps/Five%20or%20more")
3274 (synopsis "Logic puzzle game")
3275 (description "Five or More is a game where you try to align
3276 five or more objects of the same color and shape causing them to disappear.
3277 On every turn more objects will appear, until the board is full.
3278 Try to last as long as possible.")
3279 (license license:gpl2+)))
3280
a31a6d22
SB
3281(define-public gnome-mines
3282 (package
3283 (name "gnome-mines")
2d817e41 3284 (version "3.32.2")
a31a6d22
SB
3285 (source
3286 (origin
3287 (method url-fetch)
3288 (uri (string-append "mirror://gnome/sources/" name "/"
3289 (version-major+minor version) "/"
3290 name "-" version ".tar.xz"))
3291 (sha256
3292 (base32
2d817e41 3293 "1nv966wkp2rqxzcdb76bwlbzpjqadcaqzrnkxpzwnvjjr167yx8g"))))
8c0fab36 3294 (build-system meson-build-system)
a31a6d22 3295 (arguments
2d817e41
KK
3296 '(#:glib-or-gtk? #t
3297 #:phases
a31a6d22 3298 (modify-phases %standard-phases
2d817e41
KK
3299 (add-after 'unpack 'skip-gtk-update-icon-cache
3300 (lambda _
3301 (substitute* "build-aux/meson_post_install.py"
3302 (("gtk-update-icon-cache") (which "true")))
3303 #t)))))
a31a6d22 3304 (native-inputs
8c0fab36
RW
3305 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
3306 ("pkg-config" ,pkg-config)
a31a6d22
SB
3307 ("desktop-file-utils" ,desktop-file-utils)
3308 ("intltool" ,intltool)
bcb354ad 3309 ("itstool" ,itstool)
8c0fab36
RW
3310 ("vala" ,vala)
3311 ("yelp" ,yelp)
3312 ("appstream-glib" ,appstream-glib)))
a31a6d22
SB
3313 (inputs
3314 `(("gtk+" ,gtk+)
73992962 3315 ("libgnome-games-support" ,libgnome-games-support)
a31a6d22
SB
3316 ("librsvg" ,librsvg)))
3317 (home-page "https://wiki.gnome.org/Apps/Mines")
3318 (synopsis "Minesweeper game")
3319 (description
3320 "Mines (previously gnomine) is a puzzle game where you locate mines
3321floating in an ocean using only your brain and a little bit of luck.")
3322 (license license:gpl2+)))
88f70665 3323
dfc407f3
KY
3324(define-public gnome-sudoku
3325 (package
3326 (name "gnome-sudoku")
7dc728c4 3327 (version "3.32.0")
dfc407f3
KY
3328 (source
3329 (origin
3330 (method url-fetch)
3331 (uri (string-append "mirror://gnome/sources/" name "/"
3332 (version-major+minor version) "/"
3333 name "-" version ".tar.xz"))
3334 (sha256
3335 (base32
7dc728c4
KK
3336 "1wwdjflw1lbx3cv6gvqcgp5jnjkrq37ld6mjbjj03g3vr90qaf0l"))))
3337 (build-system meson-build-system)
3338 (arguments
3339 '(#:glib-or-gtk? #t
3340 #:phases
3341 (modify-phases %standard-phases
3342 (add-after 'unpack 'skip-gtk-update-icon-cache
3343 (lambda _
3344 (substitute* "build-aux/post_install.py"
3345 (("gtk-update-icon-cache") (which "true")))
3346 #t)))))
dfc407f3
KY
3347 (native-inputs
3348 `(("pkg-config" ,pkg-config)
3349 ("desktop-file-utils" ,desktop-file-utils)
7dc728c4 3350 ("glib:bin" ,glib "bin") ; for glib-compile-resources
dfc407f3
KY
3351 ("intltool" ,intltool)
3352 ("itstool" ,itstool)
7dc728c4 3353 ("vala" ,vala)
dfc407f3
KY
3354 ("xmllint" ,libxml2)))
3355 (inputs
3356 `(("gtk+" ,gtk+)
3357 ("json-glib" ,json-glib)
3358 ("libgee" ,libgee)
3359 ("librsvg" ,librsvg)
3360 ("qqwing" ,qqwing)))
3361 (home-page "https://wiki.gnome.org/Apps/Sudoku")
3362 (synopsis "Japanese logic game")
3363 (description
3364 "Sudoku is a Japanese logic game that exploded in popularity in 2005.
3365GNOME Sudoku is meant to have an interface as simple and unobstrusive as
3366possible while still providing features that make playing difficult Sudoku
3367more fun.")
3368 (license license:gpl2+)))
3369
88f70665
AW
3370(define-public gnome-terminal
3371 (package
3372 (name "gnome-terminal")
7dee3942 3373 (version "3.32.2")
88f70665
AW
3374 (source
3375 (origin
3376 (method url-fetch)
3377 (uri (string-append "mirror://gnome/sources/" name "/"
3378 (version-major+minor version) "/"
3379 name "-" version ".tar.xz"))
3380 (sha256
3381 (base32
7dee3942 3382 "0shhpnagasyp1kxgjczfrivcxbgrrl3y8lzvp1z101m67h4jp6km"))))
88f70665
AW
3383 (build-system glib-or-gtk-build-system)
3384 (arguments
3385 '(#:configure-flags
3386 (list "--disable-migration" "--disable-search-provider"
3387 "--without-nautilus-extension")
3388 #:phases
3389 (modify-phases %standard-phases
3a4de6b2 3390 (add-before 'configure 'patch-/bin/true
88f70665
AW
3391 (lambda _
3392 (substitute* "configure"
3393 (("/bin/true") (which "true"))))))))
3394 (native-inputs
3395 `(("pkg-config" ,pkg-config)
3396 ("desktop-file-utils" ,desktop-file-utils)
3397 ("intltool" ,intltool)
bcb354ad
SB
3398 ("itstool" ,itstool)
3399 ("xmllint" ,libxml2)))
68702167
MW
3400 (propagated-inputs
3401 `(("dconf" ,dconf)))
88f70665
AW
3402 (inputs
3403 `(("gtk+" ,gtk+)
3404 ("vte" ,vte)
3405 ("gnutls" ,gnutls)
88f70665
AW
3406 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3407 ("util-linux" ,util-linux)
3408 ("vala" ,vala)))
3409 (home-page "https://wiki.gnome.org/Apps/Terminal")
3410 (synopsis "Terminal emulator")
3411 (description
3412 "GNOME Terminal is a terminal emulator application for accessing a
3413UNIX shell environment which can be used to run programs available on
3414your system.
3415
3416It supports several profiles, multiple tabs and implements several
3417keyboard shortcuts.")
3418 (license license:gpl3+)))
75016d07
AW
3419
3420(define-public colord
3421 (package
3422 (name "colord")
f98be942 3423 (version "1.4.4")
75016d07
AW
3424 (source
3425 (origin
3426 (method url-fetch)
5cc3096c 3427 (uri (string-append "https://www.freedesktop.org/software/colord/releases/"
d21778aa 3428 "colord-" version ".tar.xz"))
75016d07 3429 (sha256
f98be942 3430 (base32 "19f0938fr7nvvm3jr263dlknaq7md40zrac2npfyz25zc00yh3ws"))))
a68544a8 3431 (build-system meson-build-system)
75016d07 3432 (arguments
a68544a8
RW
3433 '(;; FIXME: One test fails:
3434 ;; /colord/icc-store (in lib/colord/colord-self-test-private):
3435 ;; Incorrect content type for /tmp/colord-vkve/already-exists.icc, got
3436 ;; application/x-zerosize
75016d07 3437 #:tests? #f
a68544a8
RW
3438 #:glib-or-gtk? #t
3439 #:configure-flags (list "-Dlocalstatedir=/var"
75016d07 3440 ;; No dep on systemd.
a68544a8 3441 "-Dsystemd=false"
75016d07
AW
3442 ;; Wants to install to global completion dir;
3443 ;; punt.
a68544a8 3444 "-Dbash_completion=false"
a68544a8
RW
3445 "-Ddaemon_user=colord"
3446 "-Dsane=true"
dac26e22 3447 "-Dvapi=true"
6f20e2dc 3448 ;; Requires spotread.
a68544a8 3449 "-Dargyllcms_sensor=false"
6f20e2dc 3450 ;; TODO: Requires docbook2x.
a68544a8 3451 "-Dman=false")
75016d07
AW
3452 #:phases
3453 (modify-phases %standard-phases
a68544a8
RW
3454 (add-before 'configure 'patch-build-system
3455 (lambda* (#:key outputs #:allow-other-keys)
3456 (substitute* "rules/meson.build"
3457 (("udev.get_pkgconfig_variable\\('udevdir'\\)")
3458 (string-append "'" (assoc-ref outputs "out") "/lib/udev'")))
2a1f3e3f
LC
3459 #t))
3460 (add-before 'configure 'set-sqlite3-file-name
3461 (lambda* (#:key inputs #:allow-other-keys)
3462 ;; "colormgr dump" works by invoking the "sqlite3" command.
3463 ;; Record its absolute file name.
3464 (let ((sqlite (assoc-ref inputs "sqlite")))
3465 (substitute* "client/cd-util.c"
3466 (("\"sqlite3\"")
3467 (string-append "\"" sqlite "/bin/sqlite3\"")))
3468 #t))))))
75016d07 3469 (native-inputs
6f20e2dc 3470 `(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
75016d07 3471 ("gobject-introspection" ,gobject-introspection)
a68544a8 3472 ("gtk-doc" ,gtk-doc)
6f20e2dc 3473 ("intltool" ,intltool)
75016d07 3474 ("libtool" ,libtool)
dac26e22
TGR
3475 ("pkg-config" ,pkg-config)
3476 ("vala" ,vala)))
65cb2d61
SB
3477 (propagated-inputs
3478 ;; colord.pc refers to all these.
3479 `(("glib" ,glib)
6f20e2dc
TGR
3480 ("lcms" ,lcms)
3481 ("udev" ,eudev)))
75016d07 3482 (inputs
65cb2d61 3483 `(("dbus-glib" ,dbus-glib)
a68544a8 3484 ("gusb" ,gusb)
80c7dd1a 3485 ("libgudev" ,libgudev)
75016d07 3486 ("libusb" ,libusb)
75016d07 3487 ("polkit" ,polkit)
a68544a8 3488 ("python" ,python-wrapper)
6f20e2dc 3489 ("sqlite" ,sqlite)
4c928743 3490 ("sane-backends" ,sane-backends)))
57e7d748 3491 (home-page "https://www.freedesktop.org/software/colord/")
75016d07
AW
3492 (synopsis "Color management service")
3493 (description "Colord is a system service that makes it easy to manage,
3494install and generate color profiles to accurately color manage input and
3495output devices.")
3496 (license license:gpl2+)))
7b2abd00
AW
3497
3498(define-public geoclue
3499 (package
3500 (name "geoclue")
b433c7b3 3501 (version "2.4.8")
7b2abd00
AW
3502 (source
3503 (origin
3504 (method url-fetch)
5cc3096c 3505 (uri (string-append "https://www.freedesktop.org/software/" name
7b2abd00
AW
3506 "/releases/" (version-major+minor version) "/"
3507 name "-" version ".tar.xz"))
3508 (sha256
3509 (base32
b433c7b3 3510 "08yg1r7m0n9hwyvcy769qkmkf8lslqwv69cjfffwnc3zm5km25qj"))
fc1adab1 3511 (patches (search-patches "geoclue-config.patch"))))
7b2abd00
AW
3512 (build-system glib-or-gtk-build-system)
3513 (arguments
3514 '(;; The tests want to run the system bus.
3515 #:tests? #f
3516 #:configure-flags (list ;; Disable bits requiring ModemManager.
3517 "--disable-3g-source"
3518 "--disable-cdma-source"
3519 "--disable-modem-gps-source"
3520 "--with-dbus-service-user=geoclue")
3521 #:phases
3522 (modify-phases %standard-phases
3a4de6b2 3523 (add-before 'configure 'patch-/bin/true
7b2abd00
AW
3524 (lambda _
3525 (substitute* "configure"
e3eb53e7
MW
3526 (("/bin/true") (which "true")))
3527 #t)))))
7b2abd00
AW
3528 (native-inputs
3529 `(("pkg-config" ,pkg-config)
758798a9 3530 ("gobject-introspection" ,gobject-introspection)
7b2abd00
AW
3531 ("intltool" ,intltool)))
3532 (inputs
54e911bc
SB
3533 `(("avahi" ,avahi)
3534 ("glib" ,glib)
7b2abd00
AW
3535 ("json-glib" ,json-glib)
3536 ("libsoup" ,libsoup)))
99adfd7d 3537 (home-page "https://www.freedesktop.org/wiki/Software/GeoClue/")
7b2abd00
AW
3538 (synopsis "Geolocation service")
3539 (description "Geoclue is a D-Bus service that provides location
3540information. The primary goal of the Geoclue project is to make creating
3541location-aware applications as simple as possible, while the secondary goal is
3542to ensure that no application can access location information without explicit
e881752c 3543permission from user.")
7b2abd00 3544 (license license:gpl2+)))
2bfe7437
AW
3545
3546(define-public geocode-glib
3547 (package
3548 (name "geocode-glib")
65de725f 3549 (version "3.26.1")
2bfe7437
AW
3550 (source (origin
3551 (method url-fetch)
3552 (uri (string-append "mirror://gnome/sources/geocode-glib/"
3553 (version-major+minor version) "/"
d485cdc0 3554 "geocode-glib-" version ".tar.xz"))
2bfe7437
AW
3555 (sha256
3556 (base32
65de725f 3557 "076ydfpyc4n5c9dbqmf26i4pilfi5jpw6cjcgrbgrjbndavnmajv"))))
a7dd0c02 3558 (build-system meson-build-system)
2bfe7437 3559 (arguments
a7dd0c02
RW
3560 `(#:phases
3561 (modify-phases %standard-phases
3562 ;; The tests require a bunch of locales.
3563 (add-before 'check 'set-locales
3564 (lambda* (#:key inputs #:allow-other-keys)
3565 (setenv "GUIX_LOCPATH"
3566 (string-append (assoc-ref inputs "glibc-locales")
3567 "/lib/locale"))
3568 #t)))))
2bfe7437
AW
3569 (native-inputs
3570 `(("glib:bin" ,glib "bin") ; for glib-mkenums
a7dd0c02
RW
3571 ("glibc-locales" ,glibc-locales) ; for tests
3572 ("gettext" ,gettext-minimal)
2bfe7437 3573 ("gobject-introspection" ,gobject-introspection)
a7dd0c02 3574 ("gtk-doc" ,gtk-doc)
2bfe7437
AW
3575 ("pkg-config" ,pkg-config)
3576 ("json-glib" ,json-glib)))
3577 (propagated-inputs
3578 ;; geocode-glib-1.0.pc refers to GIO.
3579 `(("glib" ,glib)))
3580 (inputs
3581 `(("libsoup" ,libsoup)))
3582 (home-page "https://github.com/GNOME/geocode-glib/")
3583 (synopsis "Geocoding and reverse-geocoding library")
3584 (description
3585 "geocode-glib is a convenience library for geocoding (finding longitude,
3586and latitude from an address) and reverse geocoding (finding an address from
3587coordinates) using the Nominatim service. geocode-glib caches requests for
3588faster results and to avoid unnecessary server load.")
3589 (license license:lgpl2.0+)))
a1d5bb0e
AW
3590
3591(define-public upower
3592 (package
3593 (name "upower")
4088d809 3594 (version "0.99.10")
a1d5bb0e
AW
3595 (source (origin
3596 (method url-fetch)
9ec54965 3597 (uri (string-append "https://gitlab.freedesktop.org/upower/upower/"
4088d809 3598 "uploads/c438511024b9bc5a904f8775cfc8e4c4/"
9ec54965 3599 "upower-" version ".tar.xz"))
a1d5bb0e
AW
3600 (sha256
3601 (base32
4088d809 3602 "17d2bclv5fgma2y3g8bsn9pdvspn1zrzismzdnzfivc0f2wm28k4"))
fc1adab1 3603 (patches (search-patches "upower-builddir.patch"))))
a1d5bb0e
AW
3604 (build-system glib-or-gtk-build-system)
3605 (arguments
3606 '( ;; The tests want to contact the system bus, which can't be done in the
3607 ;; build environment. The integration test can run, but the last of
3608 ;; the up-self-tests doesn't. Disable tests for now.
3609 #:tests? #f
3610 #:configure-flags (list "--localstatedir=/var"
3611 (string-append "--with-udevrulesdir="
3612 (assoc-ref %outputs "out")
9ec54965 3613 "/lib/udev/rules.d"))))
a1d5bb0e 3614 (native-inputs
ebeabe2d
SB
3615 `(("gobject-introspection" ,gobject-introspection)
3616 ("pkg-config" ,pkg-config)
a1d5bb0e 3617 ("intltool" ,intltool)
55409295
LC
3618 ("python" ,python)
3619
3620 ;; For man pages.
3621 ("libxslt" ,libxslt) ;for 'xsltproc'
3622 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
3623 ("docbook-xsl" ,docbook-xsl)))
a1d5bb0e 3624 (inputs
ea226291
SB
3625 `(("dbus-glib" ,dbus-glib)
3626 ("libgudev" ,libgudev)
a1d5bb0e 3627 ("libusb" ,libusb)))
d7a503fc
MB
3628 (propagated-inputs
3629 ;; In Requires of upower-glib.pc.
3630 `(("glib" ,glib)))
57e7d748 3631 (home-page "https://upower.freedesktop.org/")
a1d5bb0e
AW
3632 (synopsis "System daemon for managing power devices")
3633 (description
3634 "UPower is an abstraction for enumerating power devices,
3635listening to device events and querying history and statistics. Any
3636application or service on the system can access the org.freedesktop.UPower
3637service via the system message bus.")
3638 (license license:gpl2+)))
6a180f6f
AW
3639
3640(define-public libgweather
3641 (package
3642 (name "libgweather")
794ce8ea 3643 (version "3.28.3")
6a180f6f
AW
3644 (source (origin
3645 (method url-fetch)
3646 (uri (string-append "mirror://gnome/sources/" name "/"
3647 (version-major+minor version) "/"
3648 name "-" version ".tar.xz"))
3649 (sha256
3650 (base32
794ce8ea 3651 "1xz60h59zgyk61y2wwzm0xlqav72i668g7v0x7rh9idz240hxls5"))))
cf6cbc34 3652 (build-system meson-build-system)
6a180f6f 3653 (arguments
cf6cbc34
RW
3654 `(#:tests? #f ; one of two tests requires network access
3655 #:configure-flags
3656 `(,(string-append "-Dzoneinfo_dir="
b6072e6b 3657 (assoc-ref %build-inputs "tzdata")
cf6cbc34 3658 "/share/zoneinfo"))))
6a180f6f
AW
3659 (native-inputs
3660 `(("glib:bin" ,glib "bin") ; for glib-mkenums
b6072e6b 3661 ("gobject-introspection" ,gobject-introspection)
6a180f6f 3662 ("pkg-config" ,pkg-config)
1d3fcf94 3663 ("vala" ,vala)
6a180f6f
AW
3664 ("intltool" ,intltool)))
3665 (propagated-inputs
3666 ;; gweather-3.0.pc refers to GTK+, GDK-Pixbuf, GLib/GObject, libxml, and
3667 ;; libsoup.
3668 `(("gtk+" ,gtk+)
3669 ("gdk-pixbuf" ,gdk-pixbuf)
3670 ("libxml2" ,libxml2)
cf6cbc34 3671 ("libsoup" ,libsoup)
6a180f6f 3672 ("geocode-glib" ,geocode-glib)))
cf6cbc34
RW
3673 (inputs
3674 `(("tzdata" ,tzdata)))
6a180f6f
AW
3675 (home-page "https://wiki.gnome.org/action/show/Projects/LibGWeather")
3676 (synopsis "Location, time zone, and weather library for GNOME")
3677 (description
3678 "libgweather is a library to access weather information from online
3679services for numerous locations.")
3680 (license license:gpl2+)))
23a22af6
AW
3681
3682(define-public gnome-settings-daemon
3683 (package
3684 (name "gnome-settings-daemon")
4be0719f 3685 (version "3.32.1")
23a22af6
AW
3686 (source
3687 (origin
3688 (method url-fetch)
3689 (uri (string-append "mirror://gnome/sources/" name "/"
3690 (version-major+minor version) "/"
3691 name "-" version ".tar.xz"))
3692 (sha256
3693 (base32
4be0719f 3694 "02d0s0g2mmqfib44r3sf0499r08p61s8l2ndsjssbam1bi7x2dks"))))
e644f9fa 3695 (build-system meson-build-system)
23a22af6 3696 (arguments
e644f9fa
RW
3697 `(#:glib-or-gtk? #t
3698 #:configure-flags
3699 (list (string-append "-Dudev_dir="
3700 (assoc-ref %outputs "out")
4d0e085b
RW
3701 "/lib/udev/rules.d/")
3702 ;; Otherwise, the RUNPATH will lack the final path component.
3703 (string-append "-Dc_link_args=-Wl,-rpath="
3704 (assoc-ref %outputs "out")
3705 "/lib/gnome-settings-daemon-3.0"))
e644f9fa 3706 ;; Color management test can't reach the colord system service.
23a22af6
AW
3707 #:tests? #f))
3708 (native-inputs
e644f9fa
RW
3709 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3710 ("pkg-config" ,pkg-config)
23a22af6
AW
3711 ("intltool" ,intltool)
3712 ("xsltproc" ,libxslt)
3713 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
3714 ("docbook-xml" ,docbook-xml-4.2)
3715 ("docbook-xsl" ,docbook-xsl)))
3716 (inputs
e644f9fa
RW
3717 `(("alsa-lib" ,alsa-lib)
3718 ("colord" ,colord)
ea226291 3719 ("libgudev" ,libgudev)
23a22af6
AW
3720 ("upower" ,upower)
3721 ("polkit" ,polkit)
3722 ("pulseaudio" ,pulseaudio)
3723 ("libcanberra" ,libcanberra)
3724 ("libx11" ,libx11)
3725 ("libxtst" ,libxtst)
3726 ("lcms" ,lcms)
3727 ("libnotify" ,libnotify)
3728 ("geoclue" ,geoclue)
3729 ("geocode-glib" ,geocode-glib)
3730 ("libgweather" ,libgweather)
3731 ("gnome-desktop" ,gnome-desktop)
3732 ("nss" ,nss)
3733 ("cups" ,cups)
ec2b1921
AW
3734 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3735 ("libwacom" ,libwacom)
3736 ("librsvg" ,librsvg)
eee7878f 3737 ("xf86-input-wacom" ,xf86-input-wacom)
e644f9fa 3738 ("wayland" ,wayland)
eee7878f 3739 ("network-manager" ,network-manager)))
f032d0be 3740 (home-page "https://www.gnome.org")
23a22af6
AW
3741 (synopsis "GNOME settings daemon")
3742 (description
3743 "This package contains the daemon responsible for setting the various
3744parameters of a GNOME session and the applications that run under it. It
3745handles settings such keyboard layout, shortcuts, and accessibility, clipboard
3746settings, themes, mouse settings, and startup of other daemons.")
3747 (license license:gpl2+)))
1e7464a9
DH
3748
3749(define-public totem-pl-parser
3750 (package
3751 (name "totem-pl-parser")
77425f04 3752 (version "3.26.3")
1e7464a9
DH
3753 (source (origin
3754 (method url-fetch)
e980cbe9
MW
3755 (uri (string-append "mirror://gnome/sources/totem-pl-parser/"
3756 (version-major+minor version) "/"
1e7464a9
DH
3757 "totem-pl-parser-" version ".tar.xz"))
3758 (sha256
3759 (base32
77425f04 3760 "13a45py2j1r9967zgww8kd24bn2fhycd4m3kzr90sxx9l2w03z8f"))))
1e9b19dd 3761 (build-system meson-build-system)
1e7464a9
DH
3762 (arguments
3763 ;; FIXME: Tests require gvfs.
3764 `(#:tests? #f))
3765 (native-inputs
3766 `(("intltool" ,intltool)
3767 ("glib" ,glib "bin")
4d6d8281 3768 ("gobject-introspection" ,gobject-introspection)
1e7464a9 3769 ("pkg-config" ,pkg-config)))
22a6ad6a 3770 (propagated-inputs
1e7464a9
DH
3771 `(("glib" ,glib)
3772 ("gmime" ,gmime)
1e9b19dd
RW
3773 ("libarchive" ,libarchive)
3774 ("libgcrypt" ,libgcrypt)
22a6ad6a
MW
3775 ("libxml2" ,libxml2)))
3776 (inputs
0a6e9e13 3777 `(("libsoup" ,libsoup)))
1e7464a9
DH
3778 (home-page "https://projects.gnome.org/totem")
3779 (synopsis "Library to parse and save media playlists for GNOME")
3780 (description "Totem-pl-parser is a GObjects-based library to parse and save
3781playlists in a variety of formats.")
3782 (license license:lgpl2.0+)))
3783
6b888eff
SB
3784(define-public aisleriot
3785 (package
3786 (name "aisleriot")
36ed9b46 3787 (version "3.22.9")
6b888eff
SB
3788 (source (origin
3789 (method url-fetch)
e43f622a 3790 (uri (string-append "mirror://gnome/sources/aisleriot/"
6b888eff 3791 (version-major+minor version) "/"
e43f622a 3792 "aisleriot-" version ".tar.xz"))
6b888eff
SB
3793 (sha256
3794 (base32
36ed9b46 3795 "0yzdh9cw5cjjgvfh75bihl968czlgfmpmn1z0fdk88sgvpjgzwji"))))
6b888eff
SB
3796 (build-system glib-or-gtk-build-system)
3797 (arguments
3798 '(#:configure-flags
3799 '("--with-platform=gtk-only"
3800 "--with-card-theme-formats=svg")))
3801 (native-inputs
3802 `(("desktop-file-utils" ,desktop-file-utils)
3803 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
3804 ("intltool" ,intltool)
3805 ("itstool" ,itstool)
3806 ("pkg-config" ,pkg-config)
3807 ("xmllint" ,libxml2)))
3808 (inputs
3809 `(("gtk+" ,gtk+)
226e57d6 3810 ("guile" ,guile-2.2)
6b888eff
SB
3811 ("libcanberra" ,libcanberra)
3812 ("librsvg" ,librsvg)))
3813 (home-page "https://wiki.gnome.org/Apps/Aisleriot")
3814 (synopsis "Solitaire card games")
3815 (description
3816 "Aisleriot (also known as Solitaire or sol) is a collection of card games
3817which are easy to play with the aid of a mouse.")
3818 (license license:gpl3+)))
4a79e256 3819
f828d05b
KK
3820(define-public amtk
3821 (package
3822 (name "amtk")
09c4e43f 3823 (version "5.0.1")
f828d05b
KK
3824 (source (origin
3825 (method url-fetch)
bf92ba6b 3826 (uri (string-append "mirror://gnome/sources/amtk/"
f828d05b 3827 (version-major+minor version) "/"
bf92ba6b 3828 "amtk-" version ".tar.xz"))
f828d05b
KK
3829 (sha256
3830 (base32
09c4e43f 3831 "09yy95w1s83c43mh9vha1jbb780yighf5pd2j0ygjmc68sjg871d"))))
f828d05b
KK
3832 (build-system gnu-build-system)
3833 (arguments
3834 '(#:configure-flags '("--enable-gtk-doc")))
3835 (native-inputs
3836 `(("gobject-introspection" ,gobject-introspection)
09c4e43f 3837 ("glib:bin" ,glib "bin") ; for glib-mkenums
f828d05b
KK
3838 ("gtk-doc" ,gtk-doc)
3839 ("pkg-config" ,pkg-config)))
3840 (inputs
3841 `(("glib" ,glib)
3842 ("gtk+" ,gtk+)))
3843 (home-page "https://wiki.gnome.org/Projects/Amtk")
3844 (synopsis "Actions, Menus and Toolbars Kit for GTK+ applications")
3845 (description
3846 "Amtk is the acronym for @acronym{Amtk, Actions Menus and Toolbars Kit}.
3847It is a basic GtkUIManager replacement based on GAction. It is suitable for
3848both a traditional UI or a modern UI with a GtkHeaderBar.")
3849 (license license:lgpl2.1+)))
3850
4a79e256
SB
3851(define-public devhelp
3852 (package
3853 (name "devhelp")
20db7a3d 3854 (version "3.32.0")
4a79e256
SB
3855 (source (origin
3856 (method url-fetch)
3857 (uri (string-append "mirror://gnome/sources/" name "/"
3858 (version-major+minor version) "/"
3859 name "-" version ".tar.xz"))
3860 (sha256
3861 (base32
20db7a3d 3862 "06sa83zggk29wcg75fl3gqh0rmi7cd3gsbk09a2z23r7vpy7xanq"))))
11d28bd9 3863 (build-system meson-build-system)
35407f94 3864 (arguments
20db7a3d
KK
3865 '(#:glib-or-gtk? #t
3866 #:phases
35407f94
EF
3867 (modify-phases %standard-phases
3868 (add-after 'unpack 'skip-gtk-update-icon-cache
3869 ;; Don't create 'icon-theme.cache'.
3870 (lambda _
3871 (substitute* "meson_post_install.py"
3872 (("gtk-update-icon-cache") "true"))
3873 #t)))))
4a79e256
SB
3874 (native-inputs
3875 `(("intltool" ,intltool)
5dd12afc 3876 ("itstool" ,itstool)
11d28bd9
KK
3877 ("gobject-introspection" ,gobject-introspection)
3878 ("glib:bin" ,glib "bin") ; for glib-mkmenus
4a79e256
SB
3879 ("pkg-config" ,pkg-config)))
3880 (inputs
11d28bd9
KK
3881 `(("amtk" ,amtk)
3882 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4a79e256
SB
3883 ("webkitgtk" ,webkitgtk)))
3884 (home-page "https://wiki.gnome.org/Apps/Devhelp")
3885 (synopsis "API documentation browser for GNOME")
3886 (description
3887 "Devhelp is an API documentation browser for GTK+ and GNOME. It works
3888natively with GTK-Doc (the API reference system developed for GTK+ and used
3889throughout GNOME for API documentation).")
3890 (license license:gpl2+)))
ba421ab7
MW
3891
3892(define-public cogl
3893 (package
3894 (name "cogl")
54c69ae1 3895 (version "1.22.4")
ba421ab7
MW
3896 (source
3897 (origin
3898 (method url-fetch)
5754f0cf 3899 (uri (string-append "mirror://gnome/sources/cogl/"
ba421ab7 3900 (version-major+minor version) "/"
5754f0cf 3901 "cogl-" version ".tar.xz"))
ba421ab7 3902 (sha256
54c69ae1 3903 (base32 "1q0drs82a8f6glg1v29bb6g2nf15fw0rvdx3d0rgcgfarfaby5sj"))))
a88d5a0c
MW
3904 ;; NOTE: mutter exports a bundled fork of cogl, so when making changes to
3905 ;; cogl, corresponding changes may be appropriate in mutter as well.
ba421ab7
MW
3906 (build-system gnu-build-system)
3907 (native-inputs
3908 `(("glib:bin" ,glib "bin") ; for glib-mkenums
3909 ("gobject-introspection" ,gobject-introspection)
3910 ;;("xorg-server" ,xorg-server) ; for the test suite
3911 ("pkg-config" ,pkg-config)))
3912 (propagated-inputs
3913 `(("glib" ,glib)
3914 ("gdk-pixbuf" ,gdk-pixbuf)
3915 ("libx11" ,libx11)
3916 ("libxext" ,libxext)
3917 ("libxfixes" ,libxfixes)
3918 ("libxdamage" ,libxdamage)
3919 ("libxcomposite" ,libxcomposite)
3920 ("libxrandr" ,libxrandr)))
3921 (inputs
3922 `(("mesa" ,mesa)
3923 ("cairo" ,cairo)
3924 ("pango" ,pango)
3925 ("gstreamer" ,gstreamer)
31860852
KK
3926 ("gst-plugins-base" ,gst-plugins-base)
3927 ("wayland" ,wayland)))
ba421ab7
MW
3928 (arguments
3929 `(#:configure-flags (list "--enable-cogl-gst"
31860852
KK
3930 "--enable-wayland-egl-platform"
3931 "--enable-wayland-egl-server"
3932
ba421ab7
MW
3933 ;; Arrange to pass an absolute file name to
3934 ;; dlopen for libGL.so.
3935 (string-append "--with-gl-libname="
3936 (assoc-ref %build-inputs "mesa")
3937 "/lib/libGL.so"))
3938 ;; XXX FIXME: All tests fail, with many warnings printed like this:
3939 ;; _FontTransOpen: Unable to Parse address
3940 ;; ${prefix}/share/fonts/X11/misc/
3941 #:tests? #f
3942 #; #:phases
3943 #;
3944 (modify-phases %standard-phases
3945 (add-before 'check 'start-xorg-server
3946 (lambda* (#:key inputs #:allow-other-keys)
3947 ;; The test suite requires a running X server.
3948 (system (format #f "~a/bin/Xvfb :1 &"
3949 (assoc-ref inputs "xorg-server")))
3950 (setenv "DISPLAY" ":1")
3951 #t)))))
3952 (home-page "http://www.cogl3d.org")
3953 (synopsis "Object oriented GL/GLES Abstraction/Utility Layer")
3954 (description
3955 "Cogl is a small library for using 3D graphics hardware to draw pretty
3956pictures. The API departs from the flat state machine style of OpenGL and is
3957designed to make it easy to write orthogonal components that can render
3958without stepping on each others toes.")
3959 (license (list license:expat ; most of the code
3960 license:bsd-3 ; cogl/cogl-point-in-poly.c
3961 license:sgifreeb2.0 ; cogl-path/tesselator/
3962 license:asl2.0)))) ; examples/android/
fb182b8a
MW
3963
3964(define-public clutter
3965 (package
3966 (name "clutter")
6a88e4ee 3967 (version "1.26.2")
fb182b8a
MW
3968 (source
3969 (origin
3970 (method url-fetch)
3971 (uri (string-append "mirror://gnome/sources/" name "/"
3972 (version-major+minor version) "/"
3973 name "-" version ".tar.xz"))
3974 (sha256
3975 (base32
6a88e4ee 3976 "0mif1qnrpkgxi43h7pimim6w6zwywa16ixcliw0yjm9hk0a368z7"))))
a88d5a0c
MW
3977 ;; NOTE: mutter exports a bundled fork of clutter, so when making changes
3978 ;; to clutter, corresponding changes may be appropriate in mutter as well.
fb182b8a 3979 (build-system gnu-build-system)
600233bd
LC
3980 (outputs '("out"
3981 "doc")) ;9 MiB of gtk-doc HTML pages
fb182b8a
MW
3982 (native-inputs
3983 `(("glib:bin" ,glib "bin") ; for glib-genmarshal
3984 ("gobject-introspection" ,gobject-introspection)
3985 ("pkg-config" ,pkg-config)
3986 ("xsltproc" ,libxslt)))
3987 (propagated-inputs
3988 `(("cogl" ,cogl)
3989 ("cairo" ,cairo)
3990 ("atk" ,atk)
3991 ("gtk+" ,gtk+)
3992 ("json-glib" ,json-glib)
3993 ("glib" ,glib)
3994 ("libxcomposite" ,libxcomposite)
3995 ("libxdamage" ,libxdamage)
3996 ("libxext" ,libxext)
3997 ("xinput" ,xinput)))
3998 (inputs
3999 `(("libxkbcommon" ,libxkbcommon)
4000 ("udev" ,eudev)))
4001 (arguments
600233bd
LC
4002 `(#:configure-flags (list "--enable-x11-backend=yes"
4003
4004 ;; This produces share/doc/{clutter,cally}.
4005 (string-append "--with-html-dir="
4006 (assoc-ref %outputs "doc")
4007 "/share/doc"))
fb182b8a
MW
4008 ;; XXX FIXME: Get test suite working. It would probably fail in the
4009 ;; same way the cogl tests fail, since clutter is based on cogl.
4010 #:tests? #f))
4011 (home-page "http://www.clutter-project.org")
476af713 4012 (synopsis "OpenGL-based interactive canvas library")
fb182b8a 4013 (description
476af713 4014 "Clutter is an OpenGL-based interactive canvas library, designed for
fb182b8a
MW
4015creating fast, mainly 2D single window applications such as media box UIs,
4016presentations, kiosk style applications and so on.")
4017 (license license:lgpl2.0+)))
bf7f17ba
MW
4018
4019(define-public clutter-gtk
4020 (package
4021 (name "clutter-gtk")
5d1a3219 4022 (version "1.8.4")
bf7f17ba
MW
4023 (source
4024 (origin
4025 (method url-fetch)
4026 (uri (string-append "mirror://gnome/sources/" name "/"
4027 (version-major+minor version) "/"
4028 name "-" version ".tar.xz"))
4029 (sha256
4030 (base32
5d1a3219 4031 "01ibniy4ich0fgpam53q252idm7f4fn5xg5qvizcfww90gn9652j"))))
bf7f17ba
MW
4032 (build-system gnu-build-system)
4033 (native-inputs
4034 `(("pkg-config" ,pkg-config)
4035 ("gobject-introspection" ,gobject-introspection)))
9a3a8b8e
SB
4036 (propagated-inputs
4037 ;; clutter-gtk.pc refers to all these.
bf7f17ba
MW
4038 `(("clutter" ,clutter)
4039 ("gtk+" ,gtk+)))
4040 (home-page "http://www.clutter-project.org")
476af713 4041 (synopsis "OpenGL-based interactive canvas library GTK+ widget")
bf7f17ba 4042 (description
476af713 4043 "Clutter is an OpenGL-based interactive canvas library, designed for
bf7f17ba
MW
4044creating fast, mainly 2D single window applications such as media box UIs,
4045presentations, kiosk style applications and so on.")
4046 (license license:lgpl2.0+)))
86d6a893
MW
4047
4048(define-public clutter-gst
4049 (package
4050 (name "clutter-gst")
ba07ac19 4051 (version "3.0.27")
86d6a893
MW
4052 (source
4053 (origin
4054 (method url-fetch)
f010f89b 4055 (uri (string-append "mirror://gnome/sources/clutter-gst/"
86d6a893 4056 (version-major+minor version) "/"
f010f89b 4057 "clutter-gst-" version ".tar.xz"))
86d6a893 4058 (sha256
ba07ac19 4059 (base32 "17czmpl92dzi4h3rn5rishk015yi3jwiw29zv8qan94xcmnbssgy"))))
86d6a893
MW
4060 (build-system gnu-build-system)
4061 (native-inputs
ba07ac19 4062 `(("glib:bin" ,glib "bin") ; for glib-mkenums
86d6a893
MW
4063 ("pkg-config" ,pkg-config)
4064 ("gobject-introspection" ,gobject-introspection)))
4065 (inputs
4066 `(("clutter" ,clutter)
4067 ("gstreamer" ,gstreamer)
4068 ("gst-plugins-base" ,gst-plugins-base)))
4069 (home-page "http://www.clutter-project.org")
4070 (synopsis "Integration library for using GStreamer with Clutter")
4071 (description
4072 "Clutter-Gst is an integration library for using GStreamer with Clutter.
4073It provides a GStreamer sink to upload frames to GL and an actor that
476af713
TGR
4074implements the ClutterGstPlayer interface using playbin. Clutter is an
4075OpenGL-based interactive canvas library.")
86d6a893 4076 (license license:lgpl2.0+)))
607a04ae 4077
30dc88d9
LC
4078(define-public libchamplain
4079 (package
4080 (name "libchamplain")
5564b2c5 4081 (version "0.12.16")
30dc88d9
LC
4082 (source (origin
4083 (method url-fetch)
4084 (uri (string-append
4085 "mirror://gnome/sources/libchamplain/0.12/libchamplain-"
4086 version ".tar.xz"))
4087 (sha256
4088 (base32
5564b2c5 4089 "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja"))))
30dc88d9 4090 (build-system gnu-build-system)
f7c6833f
LF
4091 (arguments '(#:configure-flags '("--enable-vala")))
4092 (native-inputs
4093 `(("gobject-introspection" ,gobject-introspection)
4094 ("pkg-config" ,pkg-config)
4095 ("vala" ,vala)))
30dc88d9
LC
4096 (propagated-inputs
4097 `(("libsoup" ,libsoup)
4098 ("sqlite" ,sqlite)
4099 ("clutter" ,clutter)
4100 ("clutter-gtk" ,clutter-gtk)
4101 ("glib:bin" ,glib "bin") ;glib-mkenums, etc.
4102 ("cairo" ,cairo)
4103 ("gtk+3" ,gtk+)
4104 ("glib" ,glib)))
f032d0be 4105 (home-page "https://projects.gnome.org/libchamplain/")
30dc88d9
LC
4106 (synopsis "C library providing a ClutterActor to display maps")
4107 (description
4108 "libchamplain is a C library providing a ClutterActor to display maps.
4109It also provides a Gtk+ widget to display maps in Gtk+ applications. Python
4110and Perl bindings are also available. It supports numerous free map sources
4111such as OpenStreetMap, OpenCycleMap, OpenAerialMap, and Maps for free.")
4112 (license license:lgpl2.1+)))
4113
607a04ae
MW
4114(define-public gom
4115 (package
4116 (name "gom")
0510440b 4117 (version "0.3.2")
607a04ae
MW
4118 (source
4119 (origin
4120 (method url-fetch)
6c8a0b6f 4121 (uri (string-append "mirror://gnome/sources/gom/"
607a04ae 4122 (version-major+minor version) "/"
6c8a0b6f 4123 "gom-" version ".tar.xz"))
607a04ae
MW
4124 (sha256
4125 (base32
0510440b 4126 "1zaqqwwkyiswib3v1v8wafpbifpbpak0nn2kp13pizzn9bwz1s5w"))))
607a04ae
MW
4127 (build-system gnu-build-system)
4128 (native-inputs
4129 `(("intltool" ,intltool)
4130 ("pkg-config" ,pkg-config)
4131 ("gobject-introspection" ,gobject-introspection)))
4132 (inputs
4133 `(("glib" ,glib)
4134 ("gdk-pixbuf" ,gdk-pixbuf)
4135 ("sqlite" ,sqlite)))
4136 ;; XXX TODO: Figure out how to run the test suite.
4137 (arguments `(#:tests? #f))
4138 (home-page "https://wiki.gnome.org/Projects/Gom")
4139 (synopsis "Object mapper from GObjects to SQLite")
4140 (description
4141 "Gom provides an object mapper from GObjects to SQLite. It helps you
4142write applications that need to store structured data as well as make complex
4143queries upon that data.")
4144 (license license:lgpl2.1+)))
b7a3cf11 4145
865aacc9 4146(define-public libgnome-games-support
f09520db 4147 (package
865aacc9 4148 (name "libgnome-games-support")
4c6d15cf 4149 (version "1.4.4")
f09520db
SB
4150 (source (origin
4151 (method url-fetch)
2d8dca9d 4152 (uri (string-append "mirror://gnome/sources/libgnome-games-support/"
f09520db 4153 (version-major+minor version) "/"
2d8dca9d 4154 "libgnome-games-support-" version ".tar.xz"))
f09520db
SB
4155 (sha256
4156 (base32
4c6d15cf 4157 "1zkbmnrn161p74qg6jhsn9f66yjjzxfm13pl1klv9av8k1bax9pq"))))
f09520db
SB
4158 (build-system gnu-build-system)
4159 (arguments
4160 '(#:phases
4161 (modify-phases %standard-phases
4162 (add-before 'check 'pre-check
4163 (lambda _
865aacc9 4164 ;; Tests require a writable HOME.
f09520db
SB
4165 (setenv "HOME" (getcwd))
4166 #t)))))
4167 (native-inputs
4168 `(("intltool" ,intltool)
4169 ("pkg-config" ,pkg-config)
4170 ("vala" ,vala)))
4171 (propagated-inputs
865aacc9 4172 ;; Required by libgnome-games-support-1.0.pc
f09520db
SB
4173 `(("gtk+" ,gtk+)
4174 ("libgee" ,libgee)))
4175 (home-page "https://www.gnome.org/")
4176 (synopsis "Useful functionality shared among GNOME games")
4177 (description
865aacc9 4178 "libgnome-games-support is a small library intended for internal use by
f09520db
SB
4179GNOME Games, but it may be used by others.")
4180 (license license:lgpl3+)))
4181
b7a3cf11
SB
4182(define-public gnome-klotski
4183 (package
4184 (name "gnome-klotski")
c1e419c4 4185 (version "3.32.0")
b7a3cf11
SB
4186 (source (origin
4187 (method url-fetch)
4188 (uri (string-append "mirror://gnome/sources/" name "/"
4189 (version-major+minor version) "/"
4190 name "-" version ".tar.xz"))
4191 (sha256
4192 (base32
c1e419c4
KK
4193 "1p4s15gxj6gasix22z9vlx2yrx196fvcxr6v6qrl569idfgjbi72"))))
4194 (build-system meson-build-system)
4195 (arguments
4196 '(#:glib-or-gtk? #t
4197 #:phases
4198 (modify-phases %standard-phases
4199 (add-after 'unpack 'skip-gtk-update-icon-cache
4200 ;; Don't create 'icon-theme.cache'.
4201 (lambda _
4202 (substitute* "build-aux/meson_post_install.py"
4203 (("gtk-update-icon-cache") (which "true")))
4204 #t)))))
b7a3cf11
SB
4205 (native-inputs
4206 `(("desktop-file-utils" ,desktop-file-utils)
c1e419c4 4207 ("glib:bin" ,glib "bin") ; for glib-compile-resources
b7a3cf11
SB
4208 ("intltool" ,intltool)
4209 ("itstool" ,itstool)
bcb354ad 4210 ("pkg-config" ,pkg-config)
c1e419c4 4211 ("vala" ,vala)
bcb354ad 4212 ("xmllint" ,libxml2)))
b7a3cf11
SB
4213 (inputs
4214 `(("gtk+" ,gtk+)
f4eae76f 4215 ("libgnome-games-support" ,libgnome-games-support)
b7a3cf11
SB
4216 ("librsvg" ,librsvg)))
4217 (home-page "https://wiki.gnome.org/Apps/Klotski")
4218 (synopsis "Sliding block puzzles")
4219 (description
4220 "GNOME Klotski is a set of block sliding puzzles. The objective is to move
4221the patterned block to the area bordered by green markers. To do so, you will
4222need to slide other blocks out of the way. Complete each puzzle in as few moves
4223as possible!")
4224 (license license:gpl2+)))
8d4791bf
MW
4225
4226(define-public grilo
4227 (package
4228 (name "grilo")
a865e938 4229 (version "0.3.10")
8d4791bf
MW
4230 (source
4231 (origin
4232 (method url-fetch)
4233 (uri (string-append "mirror://gnome/sources/" name "/"
4234 (version-major+minor version) "/"
4235 name "-" version ".tar.xz"))
4236 (sha256
4237 (base32
a865e938 4238 "1s7ilyywf18q26aj5c4709kfizqywjlnacp4jzmj9v9i9kkv4i3y"))))
d48d4c98 4239 (build-system meson-build-system)
8d4791bf
MW
4240 (native-inputs
4241 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
4242 ("intltool" ,intltool)
4243 ("pkg-config" ,pkg-config)
d48d4c98
KK
4244 ("gobject-introspection" ,gobject-introspection)
4245 ("gtk-doc" ,gtk-doc)
4246 ("vala" ,vala)))
8d4791bf 4247 (inputs
6d7273a0
KK
4248 `(("cyrus-sasl" ,cyrus-sasl)
4249 ("glib" ,glib)
8d4791bf
MW
4250 ("gtk+" ,gtk+)
4251 ("libxml2" ,libxml2)
6d7273a0 4252 ("liboauth" ,liboauth)
8d4791bf
MW
4253 ("libsoup" ,libsoup)
4254 ("totem-pl-parser" ,totem-pl-parser)))
8d4791bf
MW
4255 (native-search-paths
4256 (list (search-path-specification
4257 (variable "GRL_PLUGIN_PATH")
4258 (files (list (string-append "lib/grilo-"
4259 (version-major+minor version)))))))
d48d4c98 4260 (home-page "https://wiki.gnome.org/action/show/Projects/Grilo")
8d4791bf
MW
4261 (synopsis "Framework for discovering and browsing media")
4262 (description
4263 "Grilo is a framework focused on making media discovery and browsing easy
4264for application developers.")
4265 (license license:lgpl2.1+)))
7b212526
MW
4266
4267(define-public grilo-plugins
4268 (package
4269 (name "grilo-plugins")
22753632 4270 (version "0.3.3")
7b212526
MW
4271 (source
4272 (origin
4273 (method url-fetch)
4274 (uri (string-append "mirror://gnome/sources/" name "/"
4275 (version-major+minor version) "/"
4276 name "-" version ".tar.xz"))
4277 (sha256
4278 (base32
22753632 4279 "172vr1y98d2mzlmg5akjn4ibrcj3gh22cwnb3cv9rvvzhj3yhrpy"))))
7b212526
MW
4280 (build-system gnu-build-system)
4281 (native-inputs
4282 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
4283 ("intltool" ,intltool)
4284 ("itstool" ,itstool)
4285 ("pkg-config" ,pkg-config)))
4286 (inputs
4287 `(("grilo" ,grilo)
4288 ("glib" ,glib)
4289 ("libxml2" ,libxml2)
4290 ("sqlite" ,sqlite)
4291 ("gom" ,gom)
4292 ;; XXX TODO: Add oauth
4293 ;; XXX TODO: Add goa
4294 ;; XXX TODO: Add gdata (e.g. needed for youtube plugin)
4295 ;; XXX TODO: Add lua (needs help finding it)
4296 ("json-glib" ,json-glib)
4297 ("avahi" ,avahi)
4298 ("gmime" ,gmime)
4299 ("libsoup" ,libsoup)
4300 ("libarchive" ,libarchive)
4301 ("totem-pl-parser" ,totem-pl-parser)))
4302 (arguments
4303 `(#:make-flags (list (string-append "GRL_PLUGINS_DIR="
4304 %output
4305 "/lib/grilo-"
4306 ,(version-major+minor version)))
4307 ;; XXX FIXME: Try to get the test suite working. It appears to require
4308 ;; a working system dbus. Inside the build container, all tests fail
4309 ;; with: "assertion failed: (source)". Outside of the build container,
4310 ;; most tests succeed.
4311 #:tests? #f))
f032d0be 4312 (home-page "https://live.gnome.org/Grilo")
7b212526
MW
4313 (synopsis "Plugins for the Grilo media discovery library")
4314 (description
4315 "Grilo is a framework focused on making media discovery and browsing easy
4316for application developers.")
4317 (license license:lgpl2.1+)))
4e3fc547
MW
4318
4319(define-public totem
4320 (package
4321 (name "totem")
995ef5ea 4322 (version "3.32.1")
4e3fc547
MW
4323 (source
4324 (origin
4325 (method url-fetch)
4326 (uri (string-append "mirror://gnome/sources/" name "/"
4327 (version-major+minor version) "/"
4328 name "-" version ".tar.xz"))
4329 (sha256
4330 (base32
995ef5ea 4331 "0yra8apc7smpwf7d1k8crhrm8d4wix24ds6i9yxbch1v11jnhr3v"))))
7ad81b8b 4332 (build-system meson-build-system)
4e3fc547
MW
4333 (native-inputs
4334 `(("pkg-config" ,pkg-config)
4335 ("desktop-file-utils" ,desktop-file-utils)
4336 ("gobject-introspection" ,gobject-introspection)
7ad81b8b 4337 ("glib:bin" ,glib "bin") ;for 'glib-mkenums'
4e3fc547 4338 ("intltool" ,intltool)
bcb354ad 4339 ("itstool" ,itstool)
995ef5ea
KK
4340 ("xmllint" ,libxml2)
4341 ("python-pylint" ,python-pylint)
4342 ("xorg-server" ,xorg-server-for-tests)))
4e3fc547
MW
4343 (propagated-inputs
4344 `(("dconf" ,dconf)))
4345 (inputs
4346 `(("gtk+" ,gtk+)
4347 ("gdk-pixbuf" ,gdk-pixbuf)
4348 ("atk" ,atk)
4349 ("cairo" ,cairo)
4350 ("dbus-glib" ,dbus-glib)
4351 ("clutter" ,clutter)
4352 ("clutter-gtk" ,clutter-gtk)
4353 ("clutter-gst" ,clutter-gst)
6a6db57f 4354 ("xorgproto" ,xorgproto)
4e3fc547
MW
4355 ("libxxf86vm" ,libxxf86vm)
4356 ("libxtst" ,libxtst)
4357 ("libxrandr" ,libxrandr)
4358 ("libxml2" ,libxml2)
4359 ("libsoup" ,libsoup)
4360 ("libpeas" ,libpeas)
4361 ("librsvg" ,librsvg)
4362 ("lirc" ,lirc)
4363 ("gnome-desktop" ,gnome-desktop)
4364 ("gstreamer" ,gstreamer)
4365 ("gst-plugins-base" ,gst-plugins-base)
4366 ("gst-plugins-good" ,gst-plugins-good)
4367 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4368 ("adwaita-icon-theme" ,adwaita-icon-theme)
d7b63ba9 4369 ("python" ,python)
995ef5ea 4370 ("python-pygobject" ,python-pygobject)
4e3fc547
MW
4371 ("totem-pl-parser" ,totem-pl-parser)
4372 ("grilo" ,grilo)
4373 ("grilo-plugins" ,grilo-plugins)
4e3fc547
MW
4374 ("vala" ,vala)))
4375 (arguments
7ad81b8b
LC
4376 `(#:glib-or-gtk? #t
4377
4378 ;; Disable automatic GStreamer plugin installation via PackageKit and
ec5c24f9 4379 ;; all that.
7ad81b8b 4380 #:configure-flags '("-D" "enable-easy-codec-installation=no"
a388c951
LC
4381
4382 ;; Do not build .a files for the plugins, it's
4383 ;; completely useless. This saves 2 MiB.
7ad81b8b 4384 "--default-library" "shared")
ec5c24f9 4385 #:phases
4e3fc547 4386 (modify-phases %standard-phases
d51b19ad
EF
4387 (add-after 'unpack 'skip-gtk-update-icon-cache
4388 ;; Don't create 'icon-theme.cache'.
4389 (lambda _
4390 (substitute* "meson_post_install.py"
4391 (("gtk-update-icon-cache") "true"))
4392 #t))
6368eb39
DM
4393 (add-before
4394 'install 'disable-cache-generation
4395 (lambda _
4396 (setenv "DESTDIR" "/")
4397 #t))
995ef5ea
KK
4398 (add-before
4399 'check 'pre-check
4400 (lambda _
4401 ;; Tests require a running X server.
4402 (system "Xvfb :1 &")
4403 (setenv "DISPLAY" ":1")
4404 #t))
4e3fc547
MW
4405 (add-after
4406 'install 'wrap-totem
4407 (lambda* (#:key inputs outputs #:allow-other-keys)
4408 (let ((out (assoc-ref outputs "out"))
4409 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
4410 (grl-plugin-path (getenv "GRL_PLUGIN_PATH")))
4411 (wrap-program (string-append out "/bin/totem")
4412 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
39c853bd
AW
4413 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path)))
4414 (wrap-program (string-append out "/bin/totem-video-thumbnailer")
4415 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4e3fc547
MW
4416 #t)))))
4417 (home-page "https://wiki.gnome.org/Apps/Videos")
4418 (synopsis "Simple media player for GNOME based on GStreamer")
4419 (description "Totem is a simple yet featureful media player for GNOME
4420which can read a large number of file formats.")
4421 ;; GPL2+ with an exception clause for non-GPL compatible GStreamer plugins
4422 ;; to be used and distributed together with GStreamer and Totem. See
4423 ;; file://COPYING in the source distribution for details.
4424 (license license:gpl2+)))
f0afb0c8
DH
4425
4426(define-public rhythmbox
4427 (package
4428 (name "rhythmbox")
8190e1ed 4429 (version "3.4.3")
f0afb0c8
DH
4430 (source (origin
4431 (method url-fetch)
4432 (uri (string-append "mirror://gnome/sources/" name "/"
4433 (version-major+minor version) "/"
4434 name "-" version ".tar.xz"))
4435 (sha256
4436 (base32
8190e1ed 4437 "1yx3n7p9vmv23jsv98fxwq95n78awdxqm8idhyhxx2d6vk4w1hgx"))))
f0afb0c8
DH
4438 (build-system glib-or-gtk-build-system)
4439 (arguments
4440 `(#:configure-flags
4441 (list "--enable-lirc"
4442 "--enable-python"
4443 "--enable-vala"
4444 "--with-brasero"
4445 "--with-gudev"
4446 "--with-libsecret")
4447 #:phases
4448 (modify-phases %standard-phases
4449 (add-after
4450 'install 'wrap-rhythmbox
4451 (lambda* (#:key inputs outputs #:allow-other-keys)
4452 (let ((out (assoc-ref outputs "out"))
4453 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
4454 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
349cef58
TGR
4455 (grl-plugin-path (getenv "GRL_PLUGIN_PATH"))
4456 (python-path (getenv "PYTHONPATH")))
f0afb0c8
DH
4457 (wrap-program (string-append out "/bin/rhythmbox")
4458 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
4459 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
349cef58
TGR
4460 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path))
4461 `("PYTHONPATH" ":" prefix (,python-path))))
f0afb0c8
DH
4462 #t)))))
4463 (propagated-inputs
4464 `(("dconf" ,dconf)))
4465 (native-inputs
bcb354ad
SB
4466 `(("itstool" ,itstool)
4467 ("intltool" ,intltool)
f0afb0c8
DH
4468 ("glib" ,glib "bin")
4469 ("gobject-introspection" ,gobject-introspection)
4470 ("desktop-file-utils" ,desktop-file-utils)
bcb354ad
SB
4471 ("pkg-config" ,pkg-config)
4472 ("xmllint" ,libxml2)))
f0afb0c8
DH
4473 (inputs
4474 `(("json-glib" ,json-glib)
4475 ("tdb" ,tdb)
4476 ("gnome-desktop" ,gnome-desktop)
4477 ("python" ,python)
4478 ("python-pygobject" ,python2-pygobject)
4479 ("vala" ,vala)
4480 ("gmime" ,gmime)
f0afb0c8
DH
4481 ("adwaita-icon-theme" ,adwaita-icon-theme)
4482 ("grilo" ,grilo)
4483 ("grilo-plugins" ,grilo-plugins)
4484 ("gstreamer" ,gstreamer)
4485 ("gst-plugins-base" ,gst-plugins-base)
4486 ("gst-plugins-good" ,gst-plugins-good)
f0afb0c8 4487 ("totem-pl-parser" ,totem-pl-parser)
ea226291 4488 ("libgudev" ,libgudev)
f0afb0c8
DH
4489 ;;("libmtp" ,libmtp) FIXME: Not detected
4490 ("libsecret" ,libsecret)
4491 ("libsoup" ,libsoup)
4492 ("libnotify" ,libnotify)
4493 ("libpeas" ,libpeas)
4494 ("lirc" ,lirc)
4495 ;; TODO: clutter* only used by visualizer plugin, which also requires mx
4496 ;;("clutter" ,clutter)
4497 ;;("clutter-gtk" ,clutter-gtk)
4498 ;;("clutter-gst" ,clutter-gst)
4499 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4500 ("atk" ,atk)
4501 ("pango" ,pango)
4502 ("gtk+" ,gtk+)
4503 ;; TODO:
4504 ;; * libgpod
4505 ;; * mx
f0afb0c8
DH
4506 ("brasero" ,brasero)))
4507 (home-page "https://wiki.gnome.org/Apps/Rhythmbox")
4508 (synopsis "Music player for GNOME")
4509 (description "Rhythmbox is a music playing application for GNOME. It
4510supports playlists, song ratings, and any codecs installed through gstreamer.")
4511 (license license:gpl2+)))
f70d8383
DH
4512
4513(define-public eog
4514 (package
4515 (name "eog")
b0f24a82 4516 (version "3.32.2")
f70d8383
DH
4517 (source (origin
4518 (method url-fetch)
4519 (uri (string-append "mirror://gnome/sources/" name "/"
4520 (version-major+minor version) "/"
4521 name "-" version ".tar.xz"))
4522 (sha256
4523 (base32
b0f24a82 4524 "1bcxpqgzlk2cy4wfb3b5h66mhpj2fhrk1rrb5qqcv5xrr62ik5xy"))))
61fb581f 4525 (build-system meson-build-system)
f70d8383 4526 (arguments
34c44a34
RW
4527 `(#:configure-flags
4528 ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
4529 (list (string-append "-Dc_link_args=-Wl,-rpath="
4530 (assoc-ref %outputs "out") "/lib/eog"))
4531 #:phases
f70d8383 4532 (modify-phases %standard-phases
7a034665
EF
4533 (add-after 'unpack 'skip-gtk-update-icon-cache
4534 ;; Don't create 'icon-theme.cache'.
4535 (lambda _
4536 (substitute* "meson_post_install.py"
4537 (("gtk-update-icon-cache") "true"))
4538 #t))
61fb581f
RW
4539 (add-after 'install 'wrap-eog
4540 (lambda* (#:key outputs #:allow-other-keys)
4541 (let ((out (assoc-ref outputs "out"))
4542 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
4543 (wrap-program (string-append out "/bin/eog")
4544 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
4545 #t)))))
f70d8383
DH
4546 (propagated-inputs
4547 `(("dconf" ,dconf)))
4548 (native-inputs
4549 `(("intltool" ,intltool)
b3546174 4550 ("itstool" ,itstool)
f70d8383
DH
4551 ("glib" ,glib "bin")
4552 ("gobject-introspection" ,gobject-introspection)
bcb354ad
SB
4553 ("pkg-config" ,pkg-config)
4554 ("xmllint" ,libxml2)))
f70d8383
DH
4555 (inputs
4556 `(("gnome-desktop" ,gnome-desktop)
4557 ("shared-mime-info" ,shared-mime-info)
4558 ("adwaita-icon-theme" ,adwaita-icon-theme)
4559 ("exempi" ,exempi)
4560 ("lcms" ,lcms)
4561 ("libexif" ,libexif)
4562 ("libpeas" ,libpeas)
4563 ("libjpeg" ,libjpeg)
4564 ("librsvg" ,librsvg)
4565 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4566 ("gtk+" ,gtk+)))
4567 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
4568 (synopsis "GNOME image viewer")
4569 (description "Eye of GNOME is the GNOME image viewer. It
4570supports image conversion, rotation, and slideshows.")
4571 (license license:gpl2+)))
41af5e7b 4572
0c3f8cb8
LC
4573(define-public eog-plugins
4574 ;; Note: EOG looks for its plugins (via libpeas) in ~/.local as well as
4575 ;; $DATA/lib/eog/plugins, where DATA is one of the entries in
4576 ;; $XDG_DATA_DIRS. Thus, for EOG to find these, you have to have
4577 ;; 'XDG_DATA_DIRS' appropriately set.
4578 (package
4579 (name "eog-plugins")
54b74cc6 4580 (version "3.26.4")
0c3f8cb8
LC
4581 (source (origin
4582 (method url-fetch)
f3b88ed2 4583 (uri (string-append "mirror://gnome/sources/eog-plugins/"
0c3f8cb8 4584 (version-major+minor version) "/"
f3b88ed2 4585 "eog-plugins-" version ".tar.xz"))
0c3f8cb8
LC
4586 (sha256
4587 (base32
54b74cc6 4588 "0pd7fqa4ciy5844k5s1c6rlsqkk8pxd8cchxjcjhxlsngm9lynnx"))))
0c3f8cb8
LC
4589 (build-system gnu-build-system)
4590 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome/Plugins")
4591 (synopsis "Extensions for the Eye of GNOME image viewer")
4592 (native-inputs
4593 `(("pkg-config" ,pkg-config)
4594 ("gettext" ,gnu-gettext)))
4595 (inputs
4596 `(("eog" ,eog)
4597 ("glib" ,glib)
4598 ("gtk+" ,gtk+)
4599 ("libpeas" ,libpeas)
4600 ("libexif" ,libexif)
4601 ("libchamplain" ,libchamplain)))
4602 (description
4603 "This package provides plugins for the Eye of GNOME (EOG) image viewer,
4604notably:
4605
4606@itemize
4607@item @dfn{EXIF Display}, which displays camera (EXIF) information;
4608@item @dfn{Map}, which displays a map of where the picture was taken on the
4609side panel;
4610@item @dfn{Slideshow Shuffle}, to shuffle images in slideshow mode.
4611@end itemize\n")
4612
4613 ;; XXX: eog-postasa-plugin-resources.c (which we don't build) contains a
4614 ;; long suspicious byte stream that goes to a
4615 ;; ".gresource.eog_postasa_plugin" ELF section.
4616 (license license:gpl2+)))
4617
41af5e7b
SB
4618(define-public libgudev
4619 (package
4620 (name "libgudev")
b78f5118 4621 (version "232")
41af5e7b
SB
4622 (source (origin
4623 (method url-fetch)
4624 (uri (string-append "mirror://gnome/sources/" name "/"
4625 version "/" name "-" version ".tar.xz"))
4626 (sha256
4627 (base32
b78f5118 4628 "0q3qki451zzgdjazlgshsfzbbm0in40lyx7dyrag7kbkqnwv4k7f"))))
41af5e7b 4629 (build-system gnu-build-system)
b78f5118
RW
4630 (arguments
4631 '(#:configure-flags
4632 ;; umockdev depends on libgudev.
4633 (list "--disable-umockdev")))
41af5e7b
SB
4634 (native-inputs
4635 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
4636 ("gobject-introspection" ,gobject-introspection)
4637 ("pkg-config" ,pkg-config)))
4638 (propagated-inputs
4639 `(("glib" ,glib))) ; required by gudev-1.0.pc
4640 (inputs
4641 `(("udev" ,eudev)))
4642 (home-page "https://wiki.gnome.org/Projects/libgudev")
4643 (synopsis "GObject bindings for libudev")
4644 (description
4645 "This library provides GObject bindings for libudev. It was originally
4646part of udev-extras, then udev, then systemd. It's now a project on its own.")
4647 (license license:lgpl2.1+)))
3dc8828f
SB
4648
4649(define-public gvfs
4650 (package
4651 (name "gvfs")
12fe4846 4652 (version "1.40.1")
3dc8828f
SB
4653 (source (origin
4654 (method url-fetch)
1d68eb32 4655 (uri (string-append "mirror://gnome/sources/gvfs/"
3dc8828f 4656 (version-major+minor version) "/"
1d68eb32 4657 "gvfs-" version ".tar.xz"))
3dc8828f
SB
4658 (sha256
4659 (base32
12fe4846 4660 "1cfnzamr4mvgpf6yhm28lh9cafy9z6842s8jpbqnfizfxybg8ylj"))))
e762d943 4661 (build-system meson-build-system)
3dc8828f 4662 (arguments
e762d943
RW
4663 '(#:glib-or-gtk? #t
4664 #:configure-flags
4665 (list "-Dsystemduserunitdir=no"
4666 "-Dtmpfilesdir=no"
4667 ;; Otherwise, the RUNPATH will lack the final path component.
4668 (string-append "-Dc_link_args=-Wl,-rpath="
4669 (assoc-ref %outputs "out") "/lib/gvfs"))))
3dc8828f
SB
4670 (native-inputs
4671 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
0ab9f949
RW
4672 ("gettext" ,gettext-minimal)
4673 ("gtk-doc" ,gtk-doc)
3dc8828f
SB
4674 ("pkg-config" ,pkg-config)
4675 ("xsltproc" ,libxslt)))
4676 (inputs
4677 `(("avahi" ,avahi)
4678 ("docbook-xml" ,docbook-xml-4.2)
4679 ("docbook-xsl" ,docbook-xsl)
4680 ("dbus" ,dbus)
e762d943 4681 ("elogind" ,elogind)
3dc8828f 4682 ("fuse" ,fuse)
24a78aa6 4683 ("gcr" ,gcr)
3dc8828f 4684 ("glib" ,glib)
e762d943 4685 ("gnome-online-accounts" ,gnome-online-accounts)
3dc8828f
SB
4686 ("libarchive" ,libarchive)
4687 ("libbluray" ,libbluray)
8852ca24 4688 ("libcap" ,libcap)
3dc8828f
SB
4689 ("libcdio-paranoia" ,libcdio-paranoia)
4690 ("libgcrypt" ,libgcrypt)
e762d943 4691 ("libgdata" ,libgdata)
3dc8828f
SB
4692 ("libgphoto2" ,libgphoto2)
4693 ("libgudev" ,libgudev)
0ab9f949 4694 ("libimobiledevice" ,libimobiledevice)
3dc8828f 4695 ("libmtp" ,libmtp)
e762d943 4696 ("libnfs" ,libnfs)
3dc8828f
SB
4697 ("libsecret" ,libsecret)
4698 ("libsmbclient" ,samba)
4699 ("libsoup" ,libsoup)
4700 ("libxml2" ,libxml2)
e762d943 4701 ("openssh" ,openssh)
8852ca24 4702 ("polkit" ,polkit)
3dc8828f
SB
4703 ("udisks" ,udisks)))
4704 (home-page "https://wiki.gnome.org/gvfs/")
8f65585b 4705 (synopsis "Userspace virtual file system for GIO")
3dc8828f 4706 (description
8f65585b 4707 "GVFS is a userspace virtual file system designed to work with the I/O
3dc8828f
SB
4708abstraction of GIO. It contains a GIO module that seamlessly adds GVFS support
4709to all applications using the GIO API. It also supports exposing the GVFS
4710mounts to non-GIO applications using FUSE.
4711
4712GVFS comes with a set of backends, including trash support, SFTP, SMB, HTTP,
4713DAV, and others.")
4714 (license license:lgpl2.0+)))
7c88b6bd
AW
4715
4716(define-public gusb
4717 (package
4718 (name "gusb")
536b3274 4719 (version "0.3.0")
7c88b6bd 4720 (source (origin
bbfb36f9
EF
4721 (method git-fetch)
4722 (uri (git-reference
4723 (url "https://github.com/hughsie/libgusb.git")
4724 (commit version)))
4725 (file-name (git-file-name name version))
7c88b6bd
AW
4726 (sha256
4727 (base32
bbfb36f9 4728 "002pg0p4qzzk5dkyiynm483ir26zxrn4k71c7f6j85mfsdzbgli7"))))
536b3274 4729 (build-system meson-build-system)
7c88b6bd 4730 (native-inputs
536b3274 4731 `(("gobject-introspection" ,gobject-introspection)
7c88b6bd
AW
4732 ("pkg-config" ,pkg-config)
4733 ("vala" ,vala)
7c88b6bd
AW
4734 ("gtk-doc" ,gtk-doc)))
4735 (propagated-inputs
4736 ;; Both of these are required by gusb.pc.
4737 `(("glib" ,glib)
4738 ("libusb" ,libusb)))
4739 (arguments
536b3274 4740 `(#:tests? #f)) ;libusb fails to initialize. Wonder what that is.
8f1640ed 4741 (home-page "https://github.com/hughsie/libgusb")
a124bbd2 4742 (synopsis "GLib binding for libusb1")
7c88b6bd
AW
4743 (description
4744 "GUsb is a GObject wrapper for libusb1 that makes it easy to do
4745asynchronous control, bulk and interrupt transfers with proper cancellation
4746and integration into a mainloop. This makes it easy to integrate low level
4747USB transfers with your high-level application or system daemon.")
4748 (license license:lgpl2.1+)))
0abe1d86
AW
4749
4750(define-public simple-scan
4751 (package
4752 (name "simple-scan")
4afb7dd9 4753 (version "3.34.2")
d9f6d587
TGR
4754 (source
4755 (origin
4756 (method url-fetch)
4757 (uri (string-append "mirror://gnome/sources/simple-scan/"
4758 (version-major+minor version) "/"
4759 "simple-scan-" version ".tar.xz"))
4760 (sha256
4afb7dd9 4761 (base32 "1fk3g4f9slckqfwm576jrjq1d1qihw0dlgzdf00ns7qbhzb0kxsp"))))
d9f6d587
TGR
4762 (build-system meson-build-system)
4763 ;; TODO: Fix icons in home screen, About dialogue, and scan menu.
4764 (arguments
4765 '(#:glib-or-gtk? #t))
0abe1d86
AW
4766 (inputs
4767 `(("gtk" ,gtk+)
4768 ("zlib" ,zlib)
4769 ("cairo" ,cairo)
c501f592 4770 ("colord" ,colord)
0abe1d86
AW
4771 ("gdk-pixbuf" ,gdk-pixbuf)
4772 ("gusb" ,gusb)
4c928743 4773 ("libsane" ,sane-backends)))
0abe1d86 4774 (native-inputs
b94a6ca0 4775 `(("gettext" ,gettext-minimal)
0abe1d86 4776 ("itstool" ,itstool)
c501f592 4777 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
0abe1d86 4778 ("pkg-config" ,pkg-config)
bcb354ad
SB
4779 ("vala" ,vala)
4780 ("xmllint" ,libxml2)))
dff0eedb 4781 (home-page "https://gitlab.gnome.org/GNOME/simple-scan")
0abe1d86 4782 (synopsis "Document and image scanner")
d9f6d587
TGR
4783 (description
4784 "Document Scanner is an easy-to-use application that lets you connect your
4785scanner and quickly capture images and documents in an appropriate format. It
4786supports any scanner for which a suitable SANE driver is available, which is
4787almost all of them.")
0abe1d86 4788 (license license:gpl3+)))
7549f984 4789
ab466d79
RW
4790(define-public eolie
4791 (package
4792 (name "eolie")
fa8ef3ed 4793 (version "0.9.63")
ab466d79
RW
4794 (source (origin
4795 (method url-fetch)
00014781 4796 (uri (string-append "https://gitlab.gnome.org/World/eolie/"
fa8ef3ed 4797 "uploads/d42b466752729a0d3fa828a721e25043/"
00014781 4798 "eolie-" version ".tar.xz"))
ab466d79
RW
4799 (sha256
4800 (base32
fa8ef3ed 4801 "11pp8g0w22h1q0bbj9517l5838gcymvvp8fp9kh6h2dmgir2ssih"))))
00014781 4802 (build-system meson-build-system)
ab466d79 4803 (arguments
00014781
RW
4804 `(#:glib-or-gtk? #t
4805 #:phases
ab466d79 4806 (modify-phases %standard-phases
f0c68100
EF
4807 (add-after 'unpack 'skip-gtk-update-icon-cache
4808 ;; Don't create 'icon-theme.cache'.
4809 (lambda _
4810 (substitute* "meson_post_install.py"
4811 (("gtk-update-icon-cache") "true"))
4812 #t))
ab466d79
RW
4813 (add-after 'wrap 'wrap-more
4814 (lambda* (#:key inputs outputs #:allow-other-keys)
4815 (let* ((out (assoc-ref outputs "out"))
4816 ;; These libraries must be on LD_LIBRARY_PATH.
4817 (libs '("gtkspell3" "webkitgtk" "libsoup" "libsecret"
4818 "atk" "gtk+" "gsettings-desktop-schemas"
4819 "gobject-introspection"))
4820 (path (string-join
4821 (map (lambda (lib)
4822 (string-append (assoc-ref inputs lib) "/lib"))
4823 libs)
4824 ":")))
4825 (wrap-program (string-append out "/bin/eolie")
4826 `("LD_LIBRARY_PATH" ":" prefix (,path))
4827 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
4828 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
4829 #t)))))
4830 (native-inputs
f85ca6ed 4831 `(("intltool" ,intltool)
ab466d79 4832 ("itstool" ,itstool)
d95f1041 4833 ("pkg-config" ,pkg-config)
d95f1041 4834 ("python" ,python)
f0c68100 4835 ("glib:bin" ,glib "bin")))
ab466d79
RW
4836 (inputs
4837 `(("gobject-introspection" ,gobject-introspection)
4838 ("glib-networking" ,glib-networking)
4839 ("cairo" ,cairo)
4840 ("gtk+" ,gtk+)
4841 ("atk" ,atk) ; propagated by gtk+, but we need it in LD_LIBRARY_PATH
4842 ("python" ,python-wrapper)
d72f76df 4843 ("python-dateutil" ,python-dateutil)
00014781 4844 ("python-pyfxa" ,python-pyfxa)
ab466d79
RW
4845 ("python-pygobject" ,python-pygobject)
4846 ("python-pycairo" ,python-pycairo)
00014781 4847 ("python-pycrypto" ,python-pycrypto)
ab466d79
RW
4848 ("libsecret" ,libsecret)
4849 ("gtkspell3" ,gtkspell3)
4850 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
f85ca6ed 4851 ("webkitgtk" ,webkitgtk)))
166b2c97 4852 (home-page "https://wiki.gnome.org/Apps/Eolie")
ab466d79
RW
4853 (synopsis "Web browser for GNOME")
4854 (description
4855 "Eolie is a new web browser for GNOME. It features Firefox sync support,
4856a secret password store, an adblocker, and a modern UI.")
4857 (license license:gpl3+)))
4858
7549f984
SB
4859(define-public epiphany
4860 (package
4861 (name "epiphany")
60680365 4862 (version "3.32.5")
7549f984
SB
4863 (source (origin
4864 (method url-fetch)
dd3266ec 4865 (uri (string-append "mirror://gnome/sources/epiphany/"
7549f984 4866 (version-major+minor version) "/"
dd3266ec 4867 "epiphany-" version ".tar.xz"))
7549f984
SB
4868 (sha256
4869 (base32
60680365 4870 "1hj4yy53fwh96h17cqiw3gxc070vmc7yqwc7phvhnpyinkp9g5my"))))
fc5c5b92
R
4871
4872 (build-system meson-build-system)
7549f984
SB
4873 (arguments
4874 ;; FIXME: tests run under Xvfb, but fail with:
4875 ;; /src/bookmarks/ephy-bookmarks/create:
4876 ;; ** (test-ephy-bookmarks:19591): WARNING **: Unable to start Zeroconf
4877 ;; subsystem
4878 ;; FAIL
6f48d9db 4879 '(#:tests? #f
e19f9c24 4880 #:glib-or-gtk? #t
bb7ff88f
EF
4881 #:phases
4882 (modify-phases %standard-phases
4883 (add-after 'unpack 'skip-gtk-update-icon-cache
4884 ;; Don't create 'icon-theme.cache'.
4885 (lambda _
4886 (substitute* "post_install.py"
4887 (("gtk-update-icon-cache") "true"))
4888 #t)))
e19f9c24
LF
4889 #:configure-flags
4890 ;; Otherwise, the RUNPATH will lack the final 'epiphany' path component.
4891 (list (string-append "-Dc_link_args=-Wl,-rpath="
4892 (assoc-ref %outputs "out") "/lib/epiphany"))))
80a747c4
SB
4893 (propagated-inputs
4894 `(("dconf" ,dconf)))
7549f984 4895 (native-inputs
fc5c5b92
R
4896 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
4897 ("glib:bin" ,glib "bin") ; for glib-mkenums
fc5c5b92 4898 ("intltool" ,intltool)
7549f984 4899 ("itstool" ,itstool)
bcb354ad
SB
4900 ("pkg-config" ,pkg-config)
4901 ("xmllint" ,libxml2)))
7549f984
SB
4902 (inputs
4903 `(("avahi" ,avahi)
4904 ("gcr" ,gcr)
fc5c5b92 4905 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg) ; for loading SVG files
7549f984
SB
4906 ("glib-networking" ,glib-networking)
4907 ("gnome-desktop" ,gnome-desktop)
4908 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
eb6f315b 4909 ("json-glib" ,json-glib)
7549f984 4910 ("iso-codes" ,iso-codes)
8748e29c 4911 ("libdazzle" ,libdazzle)
7549f984
SB
4912 ("libnotify" ,libnotify)
4913 ("libsecret" ,libsecret)
7549f984 4914 ("libxslt" ,libxslt)
fc5c5b92 4915 ("nettle" ,nettle) ; for hogweed
7549f984 4916 ("sqlite" ,sqlite)
f85ca6ed 4917 ("webkitgtk" ,webkitgtk)))
7549f984
SB
4918 (home-page "https://wiki.gnome.org/Apps/Web")
4919 (synopsis "GNOME web browser")
4920 (description
4921 "Epiphany is a GNOME web browser targeted at non-technical users. Its
4922principles are simplicity and standards compliance.")
4923 (license license:gpl2+)))
a3856b2c
SB
4924
4925(define-public d-feet
4926 (package
4927 (name "d-feet")
458e9221 4928 (version "0.3.14")
a3856b2c
SB
4929 (source (origin
4930 (method url-fetch)
4931 (uri (string-append "mirror://gnome/sources/" name "/"
4932 (version-major+minor version) "/"
4933 name "-" version ".tar.xz"))
4934 (sha256
4935 (base32
458e9221 4936 "1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f"))))
a3856b2c
SB
4937 (build-system glib-or-gtk-build-system)
4938 (arguments
4939 '(#:out-of-source? #f ; tests need to run in the source directory.
4940 #:phases
4941 (modify-phases %standard-phases
4942 (add-before
4943 'check 'pre-check
86aff791 4944 (lambda _
a3856b2c
SB
4945 ;; The test suite requires a running X server.
4946 (system "Xvfb :1 &")
4947 (setenv "DISPLAY" ":1")
4948 ;; Don't fail on missing '/etc/machine-id'.
4949 (setenv "DBUS_FATAL_WARNINGS" "0")
4950 ;; tests.py and window.py don't meet E402:
4951 ;; E402 module level import not at top of file
4952 (substitute* "src/tests/Makefile"
86aff791
MW
4953 (("--ignore=E123") "--ignore=E123,E402"))
4954 #t))
a3856b2c
SB
4955 (add-after
4956 'install 'wrap-program
4957 (lambda* (#:key outputs #:allow-other-keys)
4958 (let ((prog (string-append (assoc-ref outputs "out")
4959 "/bin/d-feet")))
4960 (wrap-program prog
4961 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
86aff791
MW
4962 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
4963 #t))))))
a3856b2c
SB
4964 (native-inputs
4965 `(("intltool" ,intltool)
4966 ("itstool" ,itstool)
4967 ("pkg-config" ,pkg-config)
4968 ("python-pep8" ,python-pep8)
4969 ("xmllint" ,libxml2)
ff337525 4970 ("xorg-server" ,xorg-server-for-tests)))
a3856b2c
SB
4971 (inputs
4972 `(("gobject-introspection" ,gobject-introspection)
4973 ("gtk+" ,gtk+)
4974 ("python" ,python-wrapper)
458e9221 4975 ("hicolor-icon-theme" ,hicolor-icon-theme)
a3856b2c
SB
4976 ("python-pygobject" ,python-pygobject)))
4977 (home-page "https://wiki.gnome.org/Apps/DFeet")
4978 (synopsis "D-Bus debugger")
4979 (description
4980 "D-Feet is a D-Bus debugger, which can be used to inspect D-Bus interfaces
4981of running programs and invoke methods on those interfaces.")
4982 (license license:gpl2+)))
c3b97bd9
SB
4983
4984(define-public yelp-xsl
4985 (package
4986 (name "yelp-xsl")
b3640e79 4987 (version "3.32.1")
c3b97bd9
SB
4988 (source (origin
4989 (method url-fetch)
4990 (uri (string-append "mirror://gnome/sources/" name "/"
4991 (version-major+minor version) "/"
4992 name "-" version ".tar.xz"))
4993 (sha256
4994 (base32
b3640e79 4995 "013z2ixx9kfrs6hq79qpil093xfbc12y1p0mvsh6lpala30iphya"))))
c3b97bd9
SB
4996 (build-system gnu-build-system)
4997 (native-inputs
4998 `(("intltool" ,intltool)
4999 ("itstool" ,itstool)
5000 ("xmllint" ,libxml2)))
5001 (home-page "https://wiki.gnome.org/Apps/Yelp")
5002 (synopsis "XSL stylesheets for Yelp")
5003 (description
5004 "Yelp-xsl contains XSL stylesheets that are used by the yelp help browser
5005to format Docbook and Mallard documents.")
5006 (license license:gpl2+)))
de3d612a
SB
5007
5008(define-public yelp
5009 (package
5010 (name "yelp")
1f1b6d60 5011 (version "3.32.2")
de3d612a
SB
5012 (source (origin
5013 (method url-fetch)
5014 (uri (string-append "mirror://gnome/sources/" name "/"
5015 (version-major+minor version) "/"
5016 name "-" version ".tar.xz"))
5017 (sha256
5018 (base32
1f1b6d60 5019 "0yrl96icmmrxvg7sxl519gzg9qb368cmzgrr9ddh181ignkxzx7f"))))
de3d612a
SB
5020 (build-system glib-or-gtk-build-system)
5021 (native-inputs
5022 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
5023 ("intltool" ,intltool)
5024 ("itstool" ,itstool)
5025 ("pkg-config" ,pkg-config)))
5026 (propagated-inputs
5027 `(("dconf" ,dconf)))
5028 (inputs
ad1b7d8b
SB
5029 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5030 ("libxslt" ,libxslt)
de3d612a 5031 ("sqlite" ,sqlite)
4c28ca1d
SB
5032 ("webkitgtk" ,webkitgtk)
5033 ("yelp-xsl" ,yelp-xsl)))
de3d612a
SB
5034 (home-page "https://wiki.gnome.org/Apps/Yelp")
5035 (synopsis "GNOME help browser")
5036 (description
5037 "Yelp is the help viewer in Gnome. It natively views Mallard, DocBook,
5038man, info, and HTML documents. It can locate documents according to the
5039freedesktop.org help system specification.")
5040 (license license:gpl2+)))
122d0d10
SB
5041
5042(define-public yelp-tools
5043 (package
5044 (name "yelp-tools")
2089bca5 5045 (version "3.28.0")
122d0d10
SB
5046 (source (origin
5047 (method url-fetch)
5048 (uri (string-append "mirror://gnome/sources/" name "/"
5049 (version-major+minor version) "/"
5050 name "-" version ".tar.xz"))
5051 (sha256
5052 (base32
2089bca5 5053 "1b61dmlb1sd50fgq6zgnkcpx2s1py33q0x9cx67fzpsr4gmgxnw2"))))
122d0d10
SB
5054 (build-system gnu-build-system)
5055 (native-inputs
5056 `(("pkg-config" ,pkg-config)))
5057 (propagated-inputs
5058 ;; Needed by `yelp-build', `yelp-check' or 'yelp.m4'.
5059 `(("itstool" ,itstool)
5060 ("xmllint" ,libxml2)
5061 ("xsltproc" ,libxslt)))
5062 (inputs
5063 `(("yelp-xsl" ,yelp-xsl)))
5064 (home-page "https://wiki.gnome.org/Apps/Yelp/Tools")
5065 (synopsis "Yelp documentation tools")
5066 (description
5067 "Yelp-tools is a collection of scripts and build utilities to help create,
5068manage, and publish documentation for Yelp and the web. Most of the heavy
5069lifting is done by packages like yelp-xsl and itstool. This package just
5070wraps things up in a developer-friendly way.")
5071 (license license:gpl2+)))
af8f9f23
RW
5072
5073(define-public libgee
5074 (package
5075 (name "libgee")
4c2c5ae6 5076 (version "0.20.2")
af8f9f23
RW
5077 (source (origin
5078 (method url-fetch)
84a1b007 5079 (uri (string-append "mirror://gnome/sources/libgee/"
af8f9f23 5080 (version-major+minor version) "/"
84a1b007 5081 "libgee-" version ".tar.xz"))
af8f9f23
RW
5082 (sha256
5083 (base32
4c2c5ae6 5084 "0g1mhl7nidg82v4cikkk8dakzc18hg7wv0dsf2pbyijzfm5mq0wy"))))
af8f9f23
RW
5085 (build-system gnu-build-system)
5086 (arguments
5087 `(#:phases
5088 (modify-phases %standard-phases
5089 (add-after 'unpack 'fix-introspection-install-dir
5090 (lambda* (#:key outputs #:allow-other-keys)
5091 (let ((out (assoc-ref outputs "out")))
5092 (substitute* "gee/Makefile.in"
5093 (("@INTROSPECTION_GIRDIR@")
5094 (string-append out "/share/gir-1.0/"))
5095 (("@INTROSPECTION_TYPELIBDIR@")
5096 (string-append out "/lib/girepository-1.0/")))))))))
5097 (native-inputs
5098 `(("glib" ,glib "bin")
5099 ("pkg-config" ,pkg-config)))
5100 (inputs
5101 `(("glib" ,glib)
5102 ("gobject-introspection" ,gobject-introspection)))
5103 (home-page "https://wiki.gnome.org/Projects/Libgee")
5104 (synopsis "GObject collection library")
5105 (description
5106 "Libgee is a utility library providing GObject-based interfaces and
5107classes for commonly used data structures.")
5108 (license license:lgpl2.1+)))
b0f9c4b8
RW
5109
5110(define-public gexiv2
5111 (package
5112 (name "gexiv2")
b1a8b408 5113 (version "0.12.0")
b0f9c4b8
RW
5114 (source (origin
5115 (method url-fetch)
5116 (uri (string-append "mirror://gnome/sources/" name "/"
5117 (version-major+minor version) "/"
5118 name "-" version ".tar.xz"))
5119 (sha256
5120 (base32
b1a8b408 5121 "0slj5yj8c90l9pp5i3z74x5r3r4da0xfmbzkfq5k0dkg72q3kxaq"))))
51c482e4 5122 (build-system meson-build-system)
b0f9c4b8 5123 (native-inputs
b1a8b408
KK
5124 `(("gcr" ,gcr)
5125 ("glib" ,glib "bin")
5126 ("pkg-config" ,pkg-config)
5127 ("vala" ,vala)))
b0f9c4b8
RW
5128 (propagated-inputs
5129 ;; Listed in "Requires" section of gexiv2.pc
5130 `(("exiv2" ,exiv2)))
5131 (inputs
5132 `(("glib" ,glib)
5133 ("gobject-introspection" ,gobject-introspection)))
5134 (home-page "https://wiki.gnome.org/Projects/gexiv2")
5135 (synopsis "GObject wrapper around the Exiv2 photo metadata library")
5136 (description
5137 "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library. It
5138allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
5139metadata in photo and video files of various formats.")
5140 (license license:gpl2+)))
fed5a689
RW
5141
5142(define-public shotwell
5143 (package
5144 (name "shotwell")
a1c6fb52 5145 (version "0.30.7")
fed5a689
RW
5146 (source (origin
5147 (method url-fetch)
5497d682 5148 (uri (string-append "mirror://gnome/sources/shotwell/"
fed5a689 5149 (version-major+minor version) "/"
5497d682 5150 "shotwell-" version ".tar.xz"))
fed5a689
RW
5151 (sha256
5152 (base32
a1c6fb52 5153 "1m9i8r4gyd2hzlxjjwfyck4kz7gdg2vz2k6l6d0ga9hdfq2l4p9l"))))
3b79afa6
KK
5154 (build-system meson-build-system)
5155 (arguments
5a0beca3
EF
5156 '(#:glib-or-gtk? #t
5157 #:phases
5158 (modify-phases %standard-phases
5159 (add-after 'unpack 'skip-gtk-update-icon-cache
5160 (lambda _
5161 (substitute* "build-aux/meson/postinstall.py"
5162 (("gtk-update-icon-cache") (which "true"))
5163 (("update-desktop-database") (which "true")))
5164 #t)))))
735b8db6
TGR
5165 (propagated-inputs
5166 `(("dconf" ,dconf)))
fed5a689 5167 (native-inputs
5a0beca3
EF
5168 `(("gettext" ,gettext-minimal)
5169 ("glib:bin" ,glib "bin")
735b8db6 5170 ("itstool" ,itstool)
3b79afa6 5171 ("pkg-config" ,pkg-config)
735b8db6 5172 ("vala" ,vala)))
fed5a689 5173 (inputs
5a0beca3
EF
5174 `(("gcr" ,gcr)
5175 ("gexiv2" ,gexiv2)
fed5a689 5176 ("gst-plugins-base" ,gst-plugins-base)
5a0beca3
EF
5177 ("gstreamer" ,gstreamer)
5178 ("json-glib" ,json-glib)
dfb0323d 5179 ("libgdata" ,libgdata)
fed5a689 5180 ("libgee" ,libgee)
5a0beca3
EF
5181 ("libgphoto2" ,libgphoto2)
5182 ("libgudev" ,libgudev)
fed5a689 5183 ("libraw" ,libraw)
fed5a689
RW
5184 ("libsoup" ,libsoup)
5185 ("libxml2" ,libxml2)
5a0beca3
EF
5186 ("sqlite" ,sqlite)
5187 ("webkitgtk" ,webkitgtk)))
fed5a689
RW
5188 (home-page "https://wiki.gnome.org/Apps/Shotwell")
5189 (synopsis "Photo manager for GNOME 3")
5190 (description
5191 "Shotwell is a digital photo manager designed for the GNOME desktop
5192environment. It allows you to import photos from disk or camera, organize
5193them by keywords and events, view them in full-window or fullscreen mode, and
5194share them with others via social networking and more.")
5195 (license license:lgpl2.1+)))
293ff8b2
DT
5196
5197(define-public file-roller
5198 (package
5199 (name "file-roller")
2b019199 5200 (version "3.32.2")
293ff8b2
DT
5201 (source (origin
5202 (method url-fetch)
5203 (uri (string-append "mirror://gnome/sources/" name "/"
5204 (version-major+minor version) "/"
5205 name "-" version ".tar.xz"))
5206 (sha256
5207 (base32
2b019199 5208 "0w8s6hakgsvb2nqwbv0lr8ki4cbf1pz5z3qwkb0b2k7ppbh7j2n6"))))
0a500745 5209 (build-system meson-build-system)
293ff8b2 5210 (native-inputs
0a500745
RW
5211 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
5212 ("intltool" ,intltool)
4c96e5d1 5213 ("itstool" ,itstool)
0a500745
RW
5214 ("pkg-config" ,pkg-config)
5215 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
5216 ("glib:bin" ,glib "bin")))
293ff8b2
DT
5217 ;; TODO: Add libnautilus.
5218 (inputs
5219 `(("gtk+" ,gtk+)
5220 ("gdk-pixbuf" ,gdk-pixbuf)
5221 ("json-glib" ,json-glib)
5222 ("libarchive" ,libarchive)
5223 ("libnotify" ,libnotify)
4c96e5d1 5224 ("nettle" ,nettle)
293ff8b2
DT
5225 ("libxml2" ,libxml2)))
5226 (synopsis "Graphical archive manager for GNOME")
5227 (description "File Roller is an archive manager for the GNOME desktop
5228environment that allows users to view, unpack, and create compressed archives
5229such as gzip tarballs.")
5230 (home-page "http://fileroller.sourceforge.net/")
5231 (license license:gpl2+)))
7ce49365
SB
5232
5233(define-public gnome-session
5234 (package
5235 (name "gnome-session")
1fc2ec79 5236 (version "3.32.0")
7ce49365
SB
5237 (source (origin
5238 (method url-fetch)
5239 (uri (string-append "mirror://gnome/sources/" name "/"
5240 (version-major+minor version) "/"
5241 name "-" version ".tar.xz"))
5242 (sha256
5243 (base32
1fc2ec79 5244 "0zrzkpd406i159mla7bfs5npa32fgqh66aip1rfq02rgsgmc9m5v"))))
2914af3c 5245 (arguments
df278071
RW
5246 '(#:glib-or-gtk? #t
5247 #:phases
2914af3c
AW
5248 (modify-phases %standard-phases
5249 (add-before 'configure 'pre-configure
5250 (lambda* (#:key outputs #:allow-other-keys)
5251 ;; Use elogind instead of systemd.
df278071
RW
5252 (substitute* "meson.build"
5253 (("libsystemd-login") "libelogind")
5254 (("and libsystemd_daemon_dep.found.*") ","))
2914af3c
AW
5255 (substitute* "gnome-session/gsm-systemd.c"
5256 (("#include <systemd/sd-login.h>")
5257 "#include <elogind/sd-login.h>"))
df278071 5258 ;; Remove uses of the systemd daemon.
803ab416
SB
5259 (substitute* "gnome-session/gsm-autostart-app.c"
5260 (("#ifdef HAVE_SYSTEMD") "#if 0"))
a0d7baaf
LC
5261 #t))
5262 (add-after 'install 'wrap-gnome-session
5263 (lambda* (#:key inputs outputs #:allow-other-keys)
5264 ;; Make sure 'gnome-session' finds the 'gsettings' program.
5265 (let ((glib (assoc-ref inputs "glib:bin"))
5266 (out (assoc-ref outputs "out")))
5267 (wrap-program (string-append out "/bin/gnome-session")
5268 `("PATH" ":" prefix (,(string-append glib "/bin"))))
5269 #t))))
6cbc8d57 5270
2914af3c 5271 #:configure-flags
df278071
RW
5272 '("-Ddocbook=false" ; FIXME: disabled because of docbook validation error
5273 "-Dman=false" ; FIXME: disabled because of docbook validation error
5274 "-Dsystemd_journal=false")))
5275 (build-system meson-build-system)
7ce49365
SB
5276 (native-inputs
5277 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5278 ("pkg-config" ,pkg-config)
5279 ("intltool" ,intltool)
df278071
RW
5280 ("xsltproc" ,libxslt)
5281 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
5282 ("docbook-xsl" ,docbook-xsl)
5283 ("docbook-xml" ,docbook-xml)
5284 ("xmlto" ,xmlto)))
7ce49365 5285 (inputs
2914af3c
AW
5286 `(("elogind" ,elogind)
5287 ("gnome-desktop" ,gnome-desktop)
ba3cb5ab 5288 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7ce49365
SB
5289 ("gtk+" ,gtk+)
5290 ("json-glib" ,json-glib)
5291 ("libsm" ,libsm)
5292 ("libxcomposite" ,libxcomposite)
5293 ("libxtst" ,libxtst)
5294 ("mesa" ,mesa)
5295 ("upower" ,upower)
5296 ("xtrans" ,xtrans)))
5297 (synopsis "Session manager for GNOME")
5298 (description
5299 "This package contains the GNOME session manager, as well as a
5300configuration program to choose applications starting on login.")
5301 (home-page "https://wiki.gnome.org/Projects/SessionManagement")
5302 (license license:gpl2+)))
f47ba77e
SB
5303
5304(define-public gjs
5305 (package
5306 (name "gjs")
d054fbf5 5307 (version "1.56.2")
f47ba77e
SB
5308 (source (origin
5309 (method url-fetch)
5310 (uri (string-append "mirror://gnome/sources/" name "/"
5311 (version-major+minor version) "/"
5312 name "-" version ".tar.xz"))
5313 (sha256
5314 (base32
d054fbf5 5315 "1b5321krn89p3f7s2ik6gpfnc61apzljhlnbqky8c88f7n6832ac"))))
f47ba77e
SB
5316 (build-system gnu-build-system)
5317 (arguments
5318 '(#:phases
5319 (modify-phases %standard-phases
5320 (add-before
5321 'check 'pre-check
5322 (lambda _
fc119619
MW
5323 ;; The test suite requires a running X server.
5324 (system "Xvfb :1 &")
5325 (setenv "DISPLAY" ":1")
5326
f47ba77e
SB
5327 ;; For the missing /etc/machine-id.
5328 (setenv "DBUS_FATAL_WARNINGS" "0")
ba666b07 5329
144f94d0
KK
5330 ;; Our mozjs-38 package does not compile the required Intl API
5331 ;; support for these failing tests.
5332 (substitute* "installed-tests/js/testLocale.js"
5333 ((".*toBeDefined.*") "")
5334 ((".*expect\\(datestr\\).*") ""))
d054fbf5
KK
5335 (substitute* "installed-tests/scripts/testCommandLine.sh"
5336 (("Valentín") "")
5337 (("☭") ""))
f47ba77e
SB
5338 #t)))))
5339 (native-inputs
8a831c6f 5340 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
f47ba77e
SB
5341 ("pkg-config" ,pkg-config)
5342 ("xmllint" ,libxml2)
5343 ;; For testing
5344 ("dbus-launch" ,dbus)
5345 ("uuidgen" ,util-linux)
ebebee94 5346 ("xvfb" ,xorg-server-for-tests)))
f47ba77e
SB
5347 (propagated-inputs
5348 ;; These are all in the Requires.private field of gjs-1.0.pc.
144f94d0
KK
5349 `(("cairo" ,cairo)
5350 ("gobject-introspection" ,gobject-introspection)
d054fbf5 5351 ("mozjs" ,mozjs-60)))
f47ba77e
SB
5352 (inputs
5353 `(("gtk+" ,gtk+)
5354 ("readline" ,readline)))
5355 (synopsis "Javascript bindings for GNOME")
f032d0be 5356 (home-page "https://live.gnome.org/Gjs")
f47ba77e
SB
5357 (description
5358 "Gjs is a javascript binding for GNOME. It's mainly based on spidermonkey
5359javascript engine and the GObject introspection framework.")
5360 (license license:gpl2+)))
329d731b
DH
5361
5362(define-public gedit
5363 (package
5364 (name "gedit")
480c9226 5365 (version "3.32.2")
329d731b
DH
5366 (source (origin
5367 (method url-fetch)
5368 (uri (string-append "mirror://gnome/sources/" name "/"
5369 (version-major+minor version) "/"
5370 name "-" version ".tar.xz"))
5371 (sha256
5372 (base32
480c9226
KK
5373 "1q2rk7fym542c7k3bn2wlnzgy384gxacbifsjny0spbg95gfybvl"))))
5374 (build-system meson-build-system)
329d731b 5375 (arguments
480c9226
KK
5376 `(#:glib-or-gtk? #t
5377 #:configure-flags
5378 ;; Otherwise, the RUNPATH will lack the final path component.
5379 (list (string-append "-Dc_link_args=-Wl,-rpath="
5380 (assoc-ref %outputs "out") "/lib/gedit"))
d9b4022c
LC
5381
5382 ;; XXX: Generated .h files are sometimes used before being built.
5383 #:parallel-build? #f
5384
480c9226 5385 #:phases
329d731b 5386 (modify-phases %standard-phases
480c9226
KK
5387 (add-after 'unpack 'skip-gtk-update-icon-cache
5388 ;; Don't create 'icon-theme.cache'.
5389 (lambda _
5390 (substitute* "build-aux/meson/post_install.py"
5391 (("gtk-update-icon-cache") (which "true")))
5392 #t))
5393 (add-after 'unpack 'patch-libgd-fetch
5394 (lambda* (#:key inputs #:allow-other-keys)
5395 (let ((libgd (assoc-ref inputs "libgd")))
5396 ;; Calling git is unnecessary because libgd is fetched as a
5397 ;; native input to this package.
5398 (substitute* "meson.build"
5399 ((".*git.*") ""))
5400 (copy-recursively libgd "subprojects/libgd")
5401 #t)))
5402 (add-after 'install 'wrap-gedit
5403 (lambda* (#:key inputs outputs #:allow-other-keys)
5404 (let ((out (assoc-ref outputs "out"))
5405 (gtksourceview (assoc-ref inputs "gtksourceview"))
5406 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
5407 (python-path (getenv "PYTHONPATH")))
5408 (wrap-program (string-append out "/bin/gedit")
5409 ;; For plugins.
5410 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
5411 `("PYTHONPATH" ":" prefix (,python-path))
5412 ;; For language-specs.
5413 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
5414 "/share")))))
5415 #t)))))
329d731b
DH
5416 (propagated-inputs
5417 `(("dconf" ,dconf)))
5418 (native-inputs
480c9226
KK
5419 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
5420 ("intltool" ,intltool)
b3546174 5421 ("itstool" ,itstool)
480c9226 5422 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
329d731b 5423 ("gobject-introspection" ,gobject-introspection)
480c9226
KK
5424 ("libgd"
5425 ,(origin
5426 (method git-fetch)
5427 (uri (git-reference
5428 (url "https://gitlab.gnome.org/GNOME/libgd")
5429 (commit "c7c7ff4e05d3fe82854219091cf116cce6b19de0")))
5430 (file-name (git-file-name "libgd" version))
5431 (sha256
5432 (base32 "16yld0ap7qj1n96h4f2sqkjmibg7xx5xwkqxdfzam2nmyfdlrrrs"))))
329d731b
DH
5433 ("pkg-config" ,pkg-config)))
5434 (inputs
5435 `(("glib" ,glib)
0d2df50c 5436 ("gspell" ,gspell)
329d731b 5437 ("gtk+" ,gtk+)
480c9226 5438 ("gtksourceview" ,gtksourceview)
329d731b
DH
5439 ("libpeas" ,libpeas)
5440 ("libxml2" ,libxml2)
329d731b
DH
5441 ("iso-codes" ,iso-codes)
5442 ("python-pygobject" ,python-pygobject)
5443 ("python" ,python)
5444 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5445 ("libx11" ,libx11)
5446 ("vala" ,vala)
5447 ("adwaita-icon-theme" ,adwaita-icon-theme)
5448 ("libsoup" ,libsoup)
5449 ("gnome-desktop" ,gnome-desktop)))
5450 (home-page "https://wiki.gnome.org/Apps/Gedit")
5451 (synopsis "GNOME text editor")
5452 (description "While aiming at simplicity and ease of use, gedit is a
5453powerful general purpose text editor.")
5454 (license license:gpl2+)))
b7179363
SB
5455
5456(define-public zenity
5457 (package
5458 (name "zenity")
4f581bd0 5459 (version "3.32.0")
b7179363
SB
5460 (source (origin
5461 (method url-fetch)
5958df04 5462 (uri (string-append "mirror://gnome/sources/zenity/"
b7179363 5463 (version-major+minor version) "/"
5958df04 5464 "zenity-" version ".tar.xz"))
b7179363
SB
5465 (sha256
5466 (base32
4f581bd0 5467 "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7"))))
b7179363
SB
5468 (build-system gnu-build-system)
5469 (native-inputs
b94a6ca0 5470 `(("gettext" ,gettext-minimal)
b7179363
SB
5471 ("itstool" ,itstool)
5472 ("pkg-config" ,pkg-config)))
5473 (inputs
5474 `(("libnotify" ,libnotify)
5475 ("webkitgtk" ,webkitgtk)))
5476 (synopsis "Display graphical dialog boxes from shell scripts")
f032d0be 5477 (home-page "https://www.gnome.org")
b7179363
SB
5478 (description
5479 "Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you
5480to display dialog boxes from the commandline and shell scripts.")
5481 (license license:lgpl2.0+)))
60c3627c
SB
5482
5483(define-public mutter
5484 (package
5485 (name "mutter")
edf43f68 5486 (version "3.32.2")
60c3627c 5487 (source (origin
86c44e72
KK
5488 (method url-fetch)
5489 (uri (string-append "mirror://gnome/sources/" name "/"
5490 (version-major+minor version) "/"
5491 name "-" version ".tar.xz"))
60c3627c
SB
5492 (sha256
5493 (base32
edf43f68 5494 "1h577i2ap7dpfy1jg101jvc6nzccc0csgvd55ahydlr8f94frcva"))))
86c44e72
KK
5495 ;; NOTE: Since version 3.21.x, mutter now bundles and exports forked
5496 ;; versions of cogl and clutter. As a result, many of the inputs,
5497 ;; propagated-inputs, and configure flags used in cogl and clutter are
5498 ;; needed here as well.
edf43f68 5499 (build-system meson-build-system)
60c3627c 5500 (arguments
edf43f68
KK
5501 '(;; XXX: All mutter tests fail with the following error:
5502 ;; Settings schema 'org.gnome.mutter' is not installed
5503 #:tests? #f
5504 #:glib-or-gtk? #t
5505 #:configure-flags
5506 ;; Otherwise, the RUNPATH will lack the final path component.
5507 (list (string-append "-Dc_link_args=-Wl,-rpath="
5508 (assoc-ref %outputs "out") "/lib:"
5509 (assoc-ref %outputs "out") "/lib/mutter-4")
a88d5a0c
MW
5510
5511 ;; The following flags are needed for the bundled clutter
edf43f68 5512 (string-append "-Dxwayland_path="
d633f2f6
RH
5513 (assoc-ref %build-inputs "xorg-server-xwayland")
5514 "/bin/Xwayland")
5515
a88d5a0c 5516 ;; the remaining flags are needed for the bundled cogl
edf43f68 5517 (string-append "-Dopengl_libname="
a88d5a0c 5518 (assoc-ref %build-inputs "mesa")
f23052a6
DC
5519 "/lib/libGL.so"))
5520 #:phases
5521 (modify-phases %standard-phases
edf43f68
KK
5522 (add-after 'unpack 'disable-werror
5523 (lambda _
5524 ;; XXX: build fails with [-Werror]:
5525 ;; backends/meta-cursor-renderer.c:112:5: error:
5526 ;; implicit declaration of function ?roundf?
5527 (substitute* "meson.build"
5528 (("'-Werror=.*',") ""))
5529 #t))
86c44e72
KK
5530 ;; Replace references to systemd libraries to elogind references.
5531 (add-before 'configure 'use-elogind
5532 (lambda _
edf43f68 5533 (substitute* (list "meson.build"
86c44e72
KK
5534 "src/backends/native/meta-launcher.c"
5535 "src/core/main.c")
5536 (("systemd") "elogind"))
5537 #t)))))
60c3627c
SB
5538 (native-inputs
5539 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5540 ("gobject-introspection" ,gobject-introspection)
5541 ("intltool" ,intltool)
f23052a6 5542 ("pkg-config" ,pkg-config)
edf43f68 5543 ("xorg-server" ,xorg-server-for-tests)
f23052a6
DC
5544 ;; For git build
5545 ("autoconf" ,autoconf)
5546 ("automake" ,automake)
5547 ("libtool" ,libtool)))
60c3627c 5548 (propagated-inputs
a88d5a0c
MW
5549 `(;; libmutter.pc refers to these:
5550 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5551 ("gtk+" ,gtk+)
5552 ;; mutter-clutter-1.0.pc and mutter-cogl-1.0.pc refer to these:
5553 ("atk" ,atk)
5554 ("cairo" ,cairo)
5555 ("gdk-pixbuf" ,gdk-pixbuf)
5556 ("glib" ,glib)
a88d5a0c
MW
5557 ("json-glib" ,json-glib)
5558 ("libinput" ,libinput)
5559 ("libx11" ,libx11)
5560 ("libxcomposite" ,libxcomposite)
5561 ("libxdamage" ,libxdamage)
5562 ("libxext" ,libxext)
5563 ("libxfixes" ,libxfixes)
5564 ("libxkbcommon" ,libxkbcommon)
5565 ("libxrandr" ,libxrandr)
5566 ("mesa" ,mesa)
5567 ("pango" ,pango)
5568 ("udev" ,eudev)
a88d5a0c 5569 ("xinput" ,xinput)))
60c3627c 5570 (inputs
86c44e72
KK
5571 `(("elogind" ,elogind)
5572 ("gnome-desktop" ,gnome-desktop)
edf43f68 5573 ("gnome-settings-daemon" ,gnome-settings-daemon)
60c3627c 5574 ("libcanberra-gtk" ,libcanberra)
a88d5a0c 5575 ("libgudev" ,libgudev)
60c3627c
SB
5576 ("libice" ,libice)
5577 ("libsm" ,libsm)
edf43f68 5578 ("libwacom" ,libwacom)
60c3627c 5579 ("libxkbfile" ,libxkbfile)
a88d5a0c 5580 ("libxrandr" ,libxrandr)
86c44e72 5581 ("libxtst" ,libxtst)
edf43f68 5582 ("pipewire" ,pipewire)
60c3627c
SB
5583 ("startup-notification" ,startup-notification)
5584 ("upower-glib" ,upower)
5585 ("xkeyboard-config" ,xkeyboard-config)
d633f2f6 5586 ("xorg-server-xwayland" ,xorg-server-xwayland)
60c3627c
SB
5587 ("zenity" ,zenity)))
5588 (synopsis "Window and compositing manager")
f032d0be 5589 (home-page "https://www.gnome.org")
60c3627c
SB
5590 (description
5591 "Mutter is a window and compositing manager that displays and manages your
5592desktop via OpenGL. Mutter combines a sophisticated display engine using the
5593Clutter toolkit with solid window-management logic inherited from the Metacity
5594window manager.")
86c44e72 5595 (license license:gpl2+)))
685cee87
SB
5596
5597(define-public gnome-online-accounts
5598 (package
5599 (name "gnome-online-accounts")
aa200347 5600 (version "3.32.1")
685cee87
SB
5601 (source (origin
5602 (method url-fetch)
5603 (uri (string-append "mirror://gnome/sources/" name "/"
5604 (version-major+minor version) "/"
5605 name "-" version ".tar.xz"))
5606 (sha256
5607 (base32
aa200347 5608 "08g9kdj8fzcgp76z2zsj9m7wfjks9z6xfrfrbfmcr69k40mapfx8"))))
14c297fd 5609 (outputs '("out" "lib"))
685cee87 5610 (build-system glib-or-gtk-build-system)
14c297fd
TS
5611 (arguments
5612 `(#:configure-flags
5613 (list (string-append "--libdir=" (assoc-ref %outputs "out") "/lib"))
5614 #:phases
5615 (modify-phases %standard-phases
5616 (add-before 'configure 'patch-libgoa-output
5617 (lambda* (#:key outputs #:allow-other-keys)
5618 (let ((lib (assoc-ref outputs "lib")))
5619 (substitute* '("src/goa/Makefile.in" "src/goa/goa-1.0.pc.in")
5620 (("@prefix@") lib)
5621 (("@exec_prefix@") lib)
5622 (("@libdir@") (string-append lib "/lib"))
5623 (("@includedir@") (string-append lib "/include"))
5624 (("@datadir@") (string-append lib "/share")))
7555d539
MB
5625 ;; Make sure gobject-introspection knows about the output
5626 ;; too (see <https://bugs.gnu.org/36535>).
5627 (setenv "outputs" "out lib")
14c297fd 5628 #t))))))
685cee87
SB
5629 (native-inputs
5630 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5631 ("gobject-introspection" ,gobject-introspection)
5632 ("intltool" ,intltool)
5633 ("pkg-config" ,pkg-config)
ebb2873d 5634 ("vala" ,vala)
685cee87
SB
5635 ("xsltproc" ,libxslt)))
5636 (propagated-inputs
5637 `(("glib" ,glib) ; required by goa-1.0.pc
5638 ("gtk+" ,gtk+))) ; required by goa-backend-1.0.pc
5639 (inputs
5640 `(("docbook-xsl" ,docbook-xsl)
5641 ("json-glib" ,json-glib)
5642 ("libsecret" ,libsecret)
5643 ("rest" ,rest)
685cee87
SB
5644 ("webkitgtk" ,webkitgtk)))
5645 (synopsis "Single sign-on framework for GNOME")
5646 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineAccounts")
5647 (description
5648 "GNOME Online Accounts provides interfaces so that applications and
5649libraries in GNOME can access the user's online accounts. It has providers for
5650Google, ownCloud, Facebook, Flickr, Windows Live, Pocket, Foursquare, Microsoft
5651Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
5652 (license license:lgpl2.0+)))
df217748
SB
5653
5654(define-public evolution-data-server
5655 (package
5656 (name "evolution-data-server")
2196a8d4 5657 (version "3.32.4")
df217748
SB
5658 (source (origin
5659 (method url-fetch)
5660 (uri (string-append "mirror://gnome/sources/" name "/"
5661 (version-major+minor version) "/"
5662 name "-" version ".tar.xz"))
e1f174ae 5663 (patches (search-patches "evolution-data-server-locales.patch"))
df217748
SB
5664 (sha256
5665 (base32
2196a8d4 5666 "0zsc9xwy6ixk3x0dx69ax5isrdw8qxjdxg2i5fr95s40nss7rxl3"))))
743aebd7 5667 (build-system cmake-build-system)
df217748 5668 (arguments
b468eedc
RW
5669 '(#:configure-flags
5670 (let* ((lib (string-append (assoc-ref %outputs "out") "/lib"))
5671 (runpaths (map (lambda (s)
5672 (string-append lib "/evolution-data-server/" s))
ac033c7b
MB
5673 '("addressbook-backends" "calendar-backends"
5674 "camel-providers" "credential-modules"
5675 "registry-modules"))))
5676 (list "-DENABLE_UOA=OFF" ;disable Ubuntu Online Accounts support
5677 "-DENABLE_GOOGLE=OFF" ;disable Google Contacts support
5678 "-DENABLE_GOOGLE_AUTH=OFF" ;disable Google authentication
5679 "-DENABLE_VALA_BINDINGS=ON"
ac033c7b
MB
5680 (string-append "-DCMAKE_INSTALL_RPATH=" lib ";"
5681 (string-append lib "/evolution-data-server;")
5682 (string-join runpaths ";"))
5683 "-DENABLE_INTROSPECTION=ON")) ;required for Vala bindings
df217748
SB
5684 #:phases
5685 (modify-phases %standard-phases
b468eedc
RW
5686 (add-after 'unpack 'disable-failing-tests
5687 (lambda _
5688 ;; tests/book-migration/test-migration.c:160:test_fetch_contacts:
5689 ;; assertion failed (g_slist_length (contacts) == 20): (0 == 20)
5690 (delete-file-recursively "tests/book-migration")
5691 (substitute* "tests/CMakeLists.txt"
5692 (("add_subdirectory\\(book-migration\\)") ""))
2196a8d4
KK
5693 ;; tests/libebook/client/test-book-client-view-operations:8077):
5694 ;; e-data-server-WARNING **:
5695 ;; (src/libedataserver/e-source-registry.c:264):thread_closure_free:
5696 ;; runtime check failed:
5697 ;; (!g_main_context_pending (closure->main_context))
5698 (substitute* "tests/libebook/client/CMakeLists.txt"
5699 (("test-book-client-view-operations") ""))
b468eedc 5700 #t))
743aebd7 5701 (add-after 'unpack 'patch-paths
df217748 5702 (lambda _
b468eedc
RW
5703 (substitute* '("tests/test-server-utils/e-test-server-utils.c"
5704 "tests/libedata-book/data-test-utils.c"
5705 "tests/libedata-book/test-book-cache-utils.c"
5706 "tests/libedata-cal/test-cal-cache-utils.c")
df217748 5707 (("/bin/rm") (which "rm")))
ac033c7b
MB
5708 #t))
5709 (add-before 'configure 'dont-override-rpath
5710 (lambda _
5711 (substitute* "CMakeLists.txt"
5712 ;; CMakeLists.txt hard-codes runpath to just the libdir.
5713 ;; Remove it so the configure flag is respected.
5714 (("SET\\(CMAKE_INSTALL_RPATH .*") ""))
b63c06f1 5715 #t)))))
df217748
SB
5716 (native-inputs
5717 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
5718 ("gobject-introspection" ,gobject-introspection)
5719 ("gperf" ,gperf)
5720 ("intltool" ,intltool)
5721 ("pkg-config" ,pkg-config)
a73c1cf8 5722 ("vala" ,vala)
743aebd7 5723 ("python" ,python-wrapper)))
df217748
SB
5724 (propagated-inputs
5725 ;; These are all in the Requires field of .pc files.
5726 `(("gtk+" ,gtk+)
5727 ("libical" ,libical)
5728 ("libsecret" ,libsecret)
5729 ("libsoup" ,libsoup)
5730 ("nss" ,nss)
5731 ("sqlite" ,sqlite)))
5732 (inputs
5733 `(("bdb" ,bdb)
5734 ("gcr" ,gcr)
14c297fd 5735 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
891199c6 5736 ("json-glib" ,json-glib)
b468eedc 5737 ("libcanberra" ,libcanberra)
743aebd7
MB
5738 ("libgweather" ,libgweather)
5739 ("mit-krb5" ,mit-krb5)
891199c6
MW
5740 ("openldap" ,openldap)
5741 ("webkitgtk" ,webkitgtk)))
df217748
SB
5742 (synopsis "Store address books and calendars")
5743 (home-page "https://wiki.gnome.org/Apps/Evolution")
5744 (description
5745 "This package provides a unified backend for programs that work with
5746contacts, tasks, and calendar information. It was originally developed for
5747Evolution (hence the name), but is now used by other packages as well.")
5748 (license license:lgpl2.0)))
bd7dfafa
SB
5749
5750(define-public caribou
5751 (package
5752 (name "caribou")
fe964bb5 5753 (version "0.4.21")
bd7dfafa
SB
5754 (source (origin
5755 (method url-fetch)
5756 (uri (string-append "mirror://gnome/sources/" name "/"
5757 (version-major+minor version) "/"
5758 name "-" version ".tar.xz"))
5759 (sha256
5760 (base32
fe964bb5 5761 "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
bd7dfafa
SB
5762 (build-system glib-or-gtk-build-system)
5763 (arguments
5764 '(#:phases
5765 (modify-phases %standard-phases
5766 (add-before
5767 'build 'pre-build
5768 (lambda* (#:key outputs #:allow-other-keys)
5769 (let ((out (assoc-ref outputs "out")))
5770 ;; Use absolute shared library path in Caribou-1.0.typelib.
5771 (substitute* "libcaribou/Makefile"
5772 (("--shared-library=libcaribou.so")
5773 (string-append "--shared-library="
5774 out "/lib/libcaribou.so")))
5775 #t)))
5776 (add-after 'install 'wrap-programs
5777 (lambda* (#:key outputs #:allow-other-keys)
5778 (let* ((out (assoc-ref outputs "out"))
5779 (python-path (getenv "PYTHONPATH"))
5780 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
5781 (for-each
5782 (lambda (prog)
5783 (wrap-program prog
5784 `("PYTHONPATH" ":" prefix (,python-path))
5785 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
5786 (list (string-append out "/bin/caribou-preferences")
5787 (string-append out "/libexec/antler-keyboard"))))
5788 #t)))))
5789 (native-inputs
5790 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5791 ("gobject-introspection" ,gobject-introspection)
5792 ("intltool" ,intltool)
5793 ("pkg-config" ,pkg-config)
5794 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
5795 ("vala" ,vala)
5796 ("xsltproc" ,libxslt)))
5797 (propagated-inputs
5798 ;; caribou-1.0.pc refers to all these.
5799 `(("libgee" ,libgee)
5800 ("libxklavier" ,libxklavier)
5801 ("libxtst" ,libxtst)
5802 ("gtk+" ,gtk+)))
5803 (inputs
5804 `(("clutter" ,clutter)
5805 ("dconf" ,dconf)
5806 ("gtk+-2" ,gtk+-2)
5807 ("python-pygobject" ,python2-pygobject)))
5808 (synopsis "Text entry and UI navigation application")
5809 (home-page "https://wiki.gnome.org/Projects/Caribou")
5810 (description
5811 "Caribou is an input assistive technology intended for switch and pointer
5812users.")
5813 (license license:lgpl2.1)))
ba5dd105 5814
ba5dd105
SB
5815(define-public network-manager
5816 (package
5817 (name "network-manager")
6425d87a 5818 (version "1.18.4")
ba5dd105
SB
5819 (source (origin
5820 (method url-fetch)
5821 (uri (string-append "mirror://gnome/sources/NetworkManager/"
5822 (version-major+minor version) "/"
5823 "NetworkManager-" version ".tar.xz"))
7d1861e2 5824 (patches (search-patches "nm-plugin-path.patch"))
ba5dd105
SB
5825 (sha256
5826 (base32
6425d87a 5827 "0pnh1wr2p1fqa5pr945fr3lngfc5ccfrmgddqsg55lxnjpv0ggd3"))
02710a9b 5828 (modules '((guix build utils)))
fd070f35 5829 (snippet
02710a9b
RW
5830 '(begin
5831 (substitute* "src/devices/wwan/nm-modem-manager.c"
5832 (("systemd") "elogind"))
5833 #t))))
ba5dd105
SB
5834 (build-system gnu-build-system)
5835 (outputs '("out"
5836 "doc")) ; 8 MiB of gtk-doc HTML
5837 (arguments
5838 '(#:configure-flags
5839 (let ((out (assoc-ref %outputs "out"))
5840 (doc (assoc-ref %outputs "doc"))
5841 (dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
5842 "/sbin/dhclient")))
02710a9b
RW
5843 (list "--with-libnm-glib" ; needed by network-manager-applet
5844 "--with-systemd-journal=no"
5845 "--with-session-tracking=elogind"
5846 "--with-suspend-resume=elogind"
fd070f35
CM
5847 "--with-consolekit=no"
5848 "--with-crypto=gnutls"
ba5dd105
SB
5849 "--disable-config-plugin-ibft"
5850 "--sysconfdir=/etc"
5851 "--localstatedir=/var"
5852 (string-append "--with-udev-dir="
5853 out "/lib/udev")
5854 (string-append "--with-dbus-sys-dir="
5855 out "/etc/dbus-1/system.d")
5856 (string-append "--with-html-dir="
5857 doc "/share/gtk-doc/html")
5858 (string-append "--with-dhclient=" dhclient)))
5859 #:phases
5860 (modify-phases %standard-phases
02710a9b
RW
5861 ;; This bare "ls" invocation breaks some tests.
5862 (add-after 'unpack 'patch-ls-invocation
5863 (lambda _
5864 (substitute* "build-aux/ltmain.sh"
5865 (("`ls -")
5866 (string-append "`" (which "ls") " -")))
5867 #t))
b4f59d87
AW
5868 (add-before 'configure 'pre-configure
5869 (lambda _
5870 ;; These tests try to test aspects of network-manager's
5871 ;; functionality within restricted containers, but they don't
5872 ;; cope with being already in the Guix build jail as that jail
5873 ;; lacks some features that they would like to proxy over (like
5874 ;; a /sys mount).
d04687dc
HG
5875 (substitute* '("Makefile.in")
5876 (("src/platform/tests/test-address-linux") " ")
5877 (("src/platform/tests/test-cleanup-linux") " ")
5878 (("src/platform/tests/test-link-linux") " ")
5879 (("src/platform/tests/test-route-linux") " ")
02710a9b 5880 (("src/devices/tests/test-acd") "")
d04687dc
HG
5881 (("src/devices/tests/test-arping") " ")
5882 (("src/devices/tests/test-lldp") " ")
5883 (("src/tests/test-route-manager-linux") " "))
b4f59d87 5884 #t))
45f80fce
RW
5885 (add-after 'unpack 'delete-failing-tests
5886 (lambda _
02710a9b 5887 ;; FIXME: These three tests fail for unknown reasons.
45f80fce
RW
5888 ;; ERROR:libnm-core/tests/test-general.c:5842:
5889 ;; _json_config_check_valid: assertion failed (res == expected): (1 == 0)
5890 ;; ERROR:libnm-core/tests/test-keyfile.c:647:
5891 ;; test_team_conf_read_invalid: assertion failed: (nm_setting_team_get_config (s_team) == NULL)
5892 ;; ERROR:libnm-core/tests/test-setting.c:907:
5893 ;; _test_team_config_sync: assertion failed: (nm_streq0 (nm_setting_team_get_runner (s_team), runner))
45f80fce
RW
5894 (substitute* "Makefile.in"
5895 (("libnm-core/tests/test-general") " ")
5896 (("libnm-core/tests/test-keyfile") " ")
02710a9b 5897 (("libnm-core/tests/test-setting\\$\\(EXEEXT\\)") " "))
45f80fce 5898 #t))
ba5dd105
SB
5899 (add-before 'check 'pre-check
5900 (lambda _
5901 ;; For the missing /etc/machine-id.
5902 (setenv "DBUS_FATAL_WARNINGS" "0")
5903 #t))
5904 (replace 'install
5905 (lambda _
45f80fce
RW
5906 (invoke "make"
5907 "sysconfdir=/tmp"
5908 "rundir=/tmp"
5909 "statedir=/tmp"
5910 "nmstatedir=/tmp/nm"
5911 "install")
5912 #t)))))
b93502d6
DC
5913 (propagated-inputs
5914 `(("glib" ,glib)))
ba5dd105
SB
5915 (native-inputs
5916 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
5917 ("gobject-introspection" ,gobject-introspection)
d04687dc 5918 ("docbook-xsl" ,docbook-xsl)
ba5dd105 5919 ("intltool" ,intltool)
d04687dc
HG
5920 ("libxslt" ,libxslt)
5921 ("libxml2" ,libxml2)
ba5dd105
SB
5922 ("pkg-config" ,pkg-config)
5923 ;; For testing.
5924 ("python" ,python-wrapper)
5925 ("python-dbus" ,python-dbus)
5926 ("python-pygobject" ,python-pygobject)))
5927 (inputs
02710a9b
RW
5928 `(("coreutils" ,coreutils) ; for ls
5929 ("curl" ,curl)
856ca567
KK
5930 ("cyrus-sasl" ,cyrus-sasl)
5931 ("dbus-glib" ,dbus-glib)
ba5dd105 5932 ("dnsmasq" ,dnsmasq)
856ca567 5933 ("eudev" ,eudev)
ba5dd105
SB
5934 ("gnutls" ,gnutls)
5935 ("iptables" ,iptables)
5936 ("isc-dhcp" ,isc-dhcp)
d04687dc 5937 ("jansson" ,jansson)
ba5dd105
SB
5938 ("libgcrypt" ,libgcrypt)
5939 ("libgudev" ,libgudev)
5940 ("libndp" ,libndp)
5941 ("libnl" ,libnl)
5942 ("libsoup" ,libsoup)
142bdcbc 5943 ("modem-manager" ,modem-manager)
c27e02bf 5944 ("newt" ,newt) ;for the 'nmtui' console interface
ba5dd105
SB
5945 ("polkit" ,polkit)
5946 ("ppp" ,ppp)
5947 ("readline" ,readline)
fd070f35
CM
5948 ("util-linux" ,util-linux)
5949 ("elogind" ,elogind)))
ba5dd105 5950 (synopsis "Network connection manager")
f032d0be 5951 (home-page "https://www.gnome.org/projects/NetworkManager/")
ba5dd105
SB
5952 (description
5953 "NetworkManager is a system network service that manages your network
5954devices and connections, attempting to keep active network connectivity when
5955available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE
5956devices, and provides VPN integration with a variety of different VPN
5957services.")
29d2f451
LC
5958 (license license:gpl2+)
5959 (properties '((upstream-name . "NetworkManager")))))
4d62a9d3 5960
f2b96b3a
LC
5961(define-public network-manager-openvpn
5962 (package
5963 (name "network-manager-openvpn")
be1c4b07 5964 ;; Updating? Check whether network-manager-applet still needs libnm_gtk.
7d87eede 5965 (version "1.8.10")
f2b96b3a
LC
5966 (source (origin
5967 (method url-fetch)
5968 (uri (string-append
5969 "mirror://gnome/sources/NetworkManager-openvpn/"
5970 (version-major+minor version)
5971 "/NetworkManager-openvpn-" version ".tar.xz"))
5972 (sha256
5973 (base32
7d87eede 5974 "1vri49yff4lj13dnzkpq9nx3a4z1bmbrv807r151plj8m1mwhg5g"))))
f2b96b3a
LC
5975 (build-system gnu-build-system)
5976 (arguments
633422b0
JL
5977 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
5978 #:phases
5979 (modify-phases %standard-phases
5980 (add-after 'configure 'patch-path
5981 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
5982 (let* ((ovpn (string-append (assoc-ref inputs "openvpn")
5983 "/sbin/openvpn"))
5984 (modprobe (string-append (assoc-ref inputs "kmod")
5985 "/bin/modprobe"))
5986 (pretty-ovpn (string-append "\"" ovpn "\"")))
5987 (for-each
5988 (lambda (file)
5989 (substitute* file
5990 (("\"/usr/local/sbin/openvpn\"") pretty-ovpn)
5991 (("\"/usr/sbin/openvpn\"") pretty-ovpn)
5992 (("\"/sbin/openvpn\"") pretty-ovpn)
5993 (("/sbin/modprobe") modprobe)))
5994 '("src/nm-openvpn-service.c" "properties/nm-openvpn-editor.c")))
5995 #t)))))
f2b96b3a
LC
5996 (native-inputs
5997 `(("pkg-config" ,pkg-config)
5998 ("intltool" ,intltool)))
5999 (inputs
6000 `(("gtk+" ,gtk+)
633422b0 6001 ("kmod" ,kmod)
f2b96b3a
LC
6002 ("openvpn" ,openvpn)
6003 ("network-manager" ,network-manager)
6004 ("network-manager-applet" ,network-manager-applet) ;for libnma
6005 ("libsecret" ,libsecret)))
6006 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
6007 (synopsis "OpenVPN plug-in for NetworkManager")
6008 (description
6009 "This extension of NetworkManager allows it to take care of connections
6010to virtual private networks (VPNs) via OpenVPN.")
6011 (license license:gpl2+)
6012 (properties `((upstream-name . "NetworkManager-openvpn")))))
6013
d376129f
JL
6014(define-public network-manager-vpnc
6015 (package
6016 (name "network-manager-vpnc")
6017 (version "1.2.6")
6018 (source (origin
6019 (method url-fetch)
6020 (uri (string-append
6021 "mirror://gnome/sources/NetworkManager-vpnc/"
6022 (version-major+minor version)
6023 "/NetworkManager-vpnc-" version ".tar.xz"))
6024 (sha256
6025 (base32
6026 "1js5lwcsqws4klgypfxl4ikmakv7v7xgddij1fj6b0y0qicx0kyy"))))
6027 (build-system gnu-build-system)
6028 (arguments
6029 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
6030 #:phases
6031 (modify-phases %standard-phases
6032 (add-after 'configure 'patch-path
6033 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
6034 (let* ((vpnc (string-append (assoc-ref inputs "vpnc")
6035 "/sbin/vpnc"))
6036 (modprobe (string-append (assoc-ref inputs "kmod")
6037 "/bin/modprobe"))
6038 (pretty-ovpn (string-append "\"" vpnc "\"")))
6039 (substitute* "src/nm-vpnc-service.c"
6040 (("\"/usr/local/sbin/vpnc\"") pretty-ovpn)
6041 (("\"/usr/sbin/vpnc\"") pretty-ovpn)
6042 (("\"/sbin/vpnc\"") pretty-ovpn)
6043 (("/sbin/modprobe") modprobe)))
6044 #t)))))
6045 (native-inputs
6046 `(("pkg-config" ,pkg-config)
6047 ("intltool" ,intltool)))
6048 (inputs
6049 `(("gtk+" ,gtk+)
6050 ("kmod" ,kmod)
6051 ("vpnc" ,vpnc)
6052 ("network-manager" ,network-manager)
6053 ("network-manager-applet" ,network-manager-applet) ;for libnma
6054 ("libsecret" ,libsecret)))
6055 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
6056 (synopsis "VPNC plug-in for NetworkManager")
6057 (description
6058 "Support for configuring virtual private networks based on VPNC.
6059Compatible with Cisco VPN concentrators configured to use IPsec.")
6060 (license license:gpl2+)
6061 (properties `((upstream-name . "NetworkManager-vpnc")))))
6062
8378c87a
EF
6063(define-public network-manager-openconnect
6064 (package
6065 (name "network-manager-openconnect")
6066 (version "1.2.6")
6067 (source (origin
6068 (method url-fetch)
6069 (uri (string-append
6070 "mirror://gnome/sources/NetworkManager-openconnect/"
6071 (version-major+minor version)
6072 "/NetworkManager-openconnect-" version ".tar.xz"))
6073 (sha256
6074 (base32
6075 "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m"))))
6076 (build-system gnu-build-system)
6077 (arguments
6078 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
6079 #:phases
6080 (modify-phases %standard-phases
6081 (add-after 'configure 'patch-path
6082 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
6083 (let* ((openconnect (string-append (assoc-ref inputs "openconnect")
6084 "/sbin/openconnect"))
6085 (modprobe (string-append (assoc-ref inputs "kmod")
6086 "/bin/modprobe"))
6087 (pretty-ovpn (string-append "\"" openconnect "\"")))
6088 (substitute* "src/nm-openconnect-service.c"
6089 (("\"/usr/local/sbin/openconnect\"") pretty-ovpn)
6090 (("\"/usr/sbin/openconnect\"") pretty-ovpn)
6091 (("/sbin/modprobe") modprobe)))
6092 #t)))))
6093 (native-inputs
6094 `(("intltool" ,intltool)
6095 ("network-manager-applet" ,network-manager-applet) ;for libnma
6096 ("pkg-config" ,pkg-config)))
6097 (inputs
6098 `(("gcr" ,gcr)
6099 ("gtk+" ,gtk+)
6100 ("kmod" ,kmod)
6101 ("libsecret" ,libsecret)
6102 ("libxml2" ,libxml2)
6103 ("network-manager" ,network-manager)
6104 ("openconnect" ,openconnect)))
6105 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
6106 (synopsis "OpenConnect plug-in for NetworkManager")
6107 (description
6108 "This extension of NetworkManager allows it to take care of connections
6109to @acronym{VPNs, virtual private networks} via OpenConnect, an open client for
6110Cisco's AnyConnect SSL VPN.")
6111 (license license:gpl2+)
e52b9534
LC
6112 (properties `((upstream-name . "NetworkManager-openconnect")
6113
6114 ;; The 'etc/dbus-1/system.d/nm-openconnect-service.conf'
6115 ;; file refers to account "nm-openconnect". Specify it here
6116 ;; so that 'network-manager-service-type' creates it.
6117 (user-accounts . ("nm-openconnect"))))))
8378c87a 6118
e5e1df4d
DC
6119(define-public mobile-broadband-provider-info
6120 (package
6121 (name "mobile-broadband-provider-info")
310c89e3 6122 (version "20190116")
e5e1df4d
DC
6123 (source (origin
6124 (method url-fetch)
6125 (uri (string-append
6126 "mirror://gnome/sources/"
6127 "mobile-broadband-provider-info/" version "/"
6128 "mobile-broadband-provider-info-" version ".tar.xz"))
6129 (sha256
6130 (base32
310c89e3 6131 "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"))))
e5e1df4d
DC
6132 (build-system gnu-build-system)
6133 (arguments
310c89e3 6134 `(#:tests? #f)) ; no tests
e5e1df4d
DC
6135 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
6136 (synopsis "Database of broadband connection configuration")
6137 (description "Database of broadband connection configuration.")
6138 (license license:public-domain)))
6139
4d62a9d3
SB
6140(define-public network-manager-applet
6141 (package
6142 (name "network-manager-applet")
8fc3a337 6143 (version "1.8.24")
4d62a9d3
SB
6144 (source (origin
6145 (method url-fetch)
3df63444 6146 (uri (string-append "mirror://gnome/sources/network-manager-applet/"
4d62a9d3 6147 (version-major+minor version) "/"
3df63444 6148 "network-manager-applet-" version ".tar.xz"))
4d62a9d3
SB
6149 (sha256
6150 (base32
8fc3a337 6151 "1gzvz4wfqfsfclqg56y954al8x6fmz71cnxlx1i4nqr7a25bp2qi"))))
cd7f718e
RW
6152 (build-system meson-build-system)
6153 (arguments
be1c4b07
TGR
6154 '(#:configure-flags
6155 ;; ‘Nobody should be using this’ but network-manager-openvpn 1.8.10 does.
6156 (list "-Dlibnm_gtk=true")
6157 #:glib-or-gtk? #t))
4d62a9d3
SB
6158 (native-inputs
6159 `(("intltool" ,intltool)
cd7f718e 6160 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
4d62a9d3 6161 ("gobject-introspection" ,gobject-introspection)
cd7f718e 6162 ("gtk-doc" ,gtk-doc)
4d62a9d3
SB
6163 ("pkg-config" ,pkg-config)))
6164 (propagated-inputs
6165 ;; libnm-gtk.pc refers to all these.
6166 `(("dbus-glib" ,dbus-glib)
6167 ("gtk+" ,gtk+)
6168 ("network-manager" ,network-manager)))
6169 (inputs
cd7f718e
RW
6170 `(("gcr" ,gcr)
6171 ("iso-codes" ,iso-codes)
4d62a9d3
SB
6172 ("libgudev" ,libgudev)
6173 ("libnotify" ,libnotify)
2116bfb3 6174 ("libsecret" ,libsecret)
240cee8a
KK
6175 ("libselinux" ,libselinux)
6176 ("jansson" ,jansson) ; for team support
3e9c80b2
FP
6177 ("modem-manager" ,modem-manager)
6178 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)))
4d62a9d3 6179 (synopsis "Applet for managing network connections")
f032d0be 6180 (home-page "https://www.gnome.org/projects/NetworkManager/")
4d62a9d3
SB
6181 (description
6182 "This package contains a systray applet for NetworkManager. It displays
6183the available networks and allows users to easily switch between them.")
6184 (license license:gpl2+)))
56196594
RW
6185
6186(define-public libxml++
6187 (package
6188 (name "libxml++")
8344a85e 6189 (version "3.0.1")
56196594
RW
6190 (source (origin
6191 (method url-fetch)
6192 (uri (string-append "mirror://gnome/sources/" name "/"
6193 (version-major+minor version) "/"
6194 name "-" version ".tar.xz"))
6195 (sha256
6196 (base32
8344a85e 6197 "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"))))
56196594
RW
6198 (build-system gnu-build-system)
6199 ;; libxml++-3.0.pc refers to all these.
6200 (propagated-inputs
6201 `(("libxml2" ,libxml2)
6202 ("glibmm" ,glibmm)))
6203 (native-inputs
6204 `(("perl" ,perl)
6205 ("pkg-config" ,pkg-config)))
6206 (home-page "http://libxmlplusplus.sourceforge.net/")
6207 (synopsis "C++ wrapper for XML parser library libxml2")
6208 (description
6209 "This package provides a C++ wrapper for the XML parser library
6210libxml2.")
6211 (license license:lgpl2.1+)))
df12f04a 6212
b61d9627
AW
6213(define-public libxml++-2
6214 (package
6215 (inherit libxml++)
6216 (name "libxml++")
6217 (version "2.40.1")
6218 (source (origin
6219 (method url-fetch)
6220 (uri (string-append "mirror://gnome/sources/" name "/"
6221 (version-major+minor version) "/"
6222 name "-" version ".tar.xz"))
6223 (sha256
6224 (base32
6225 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
6226
df12f04a
SB
6227(define-public gdm
6228 (package
6229 (name "gdm")
bcca95dc 6230 (version "3.32.0")
df12f04a
SB
6231 (source (origin
6232 (method url-fetch)
6233 (uri (string-append "mirror://gnome/sources/" name "/"
6234 (version-major+minor version) "/"
6235 name "-" version ".tar.xz"))
6236 (sha256
6237 (base32
bcca95dc 6238 "12ypdz9i24hwbl1d1wnnxb8zlvfa4f49n9ac5cl9d6h8qp4b0gb4"))))
957dbc0a 6239 (build-system glib-or-gtk-build-system)
df12f04a
SB
6240 (arguments
6241 '(#:configure-flags
af37e6bb 6242 `("--without-plymouth"
957dbc0a 6243 "--disable-systemd-journal"
51bc8357
TS
6244
6245 ;; Using --with-initial-vt=7 allows GDM to run alongside TTY 1,
6246 ;; instead of having to replace it (i.e., stopping the mingetty
6247 ;; service for TTY 1 before starting GDM).
6248 "--with-initial-vt=7"
6249
89c86562
TS
6250 ;; Use '/etc/environment' for locale settings instead of the
6251 ;; systemd-specific '/etc/locale.conf'.
6252 "--with-lang-file=/etc/environment"
6253
b74ef0ba
RW
6254 ,(string-append "--with-udevdir="
6255 (assoc-ref %outputs "out") "/lib/udev")
6256
af37e6bb
AW
6257 "--localstatedir=/var"
6258 ,(string-append "--with-default-path="
6259 (string-join '("/run/setuid-programs"
6260 "/run/current-system/profile/bin"
6261 "/run/current-system/profile/sbin")
957dbc0a
AW
6262 ":"))
6263 ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
6264 ;; XDG_DATA_DIRS so that it finds its schemas.
6265 "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
df12f04a
SB
6266 #:phases
6267 (modify-phases %standard-phases
6268 (add-before
6269 'configure 'pre-configure
e8c6e771 6270 (lambda* (#:key inputs outputs #:allow-other-keys)
df12f04a
SB
6271 ;; We don't have <systemd/sd-daemon.h>.
6272 (substitute* '("common/gdm-log.c"
6273 "daemon/gdm-server.c"
6274 "daemon/gdm-session-worker.c"
6275 "daemon/gdm-session-worker-job.c")
6276 (("#include <systemd/sd-daemon\\.h>") ""))
6277 ;; Use elogind for sd-login.
6278 (substitute* '("common/gdm-common.c"
6279 "daemon/gdm-manager.c"
6280 "libgdm/gdm-user-switching.c")
6281 (("#include <systemd/sd-login\\.h>")
6282 "#include <elogind/sd-login.h>"))
957dbc0a
AW
6283 ;; Check for elogind.
6284 (substitute* '("configure")
6285 (("libsystemd")
6286 "libelogind"))
af37e6bb
AW
6287 ;; Look for system-installed sessions in
6288 ;; /run/current-system/profile/share.
6289 (substitute* '("libgdm/gdm-sessions.c"
6290 "daemon/gdm-session.c"
6291 "daemon/gdm-display.c"
6292 "daemon/gdm-launch-environment.c")
6293 (("DATADIR \"/x")
6294 "\"/run/current-system/profile/share/x")
6295 (("DATADIR \"/wayland")
6296 "\"/run/current-system/profile/share/wayland")
6297 (("DATADIR \"/gnome")
6298 "\"/run/current-system/profile/share/gnome"))
c9ff92b5 6299 (let ((propagate '("GDM_CUSTOM_CONF"
1f564c15 6300 "GDM_DBUS_DAEMON"
c9ff92b5 6301 "GDM_X_SERVER"
41fa9f18 6302 "GDM_X_SESSION"
c9ff92b5
TS
6303 ;; XXX: Remove this once GNOME Shell is
6304 ;; a dependency of GDM.
6305 "XDG_DATA_DIRS")))
6306 (substitute* "daemon/gdm-session.c"
6307 (("set_up_session_environment \\(self\\);")
6308 (apply string-append
6309 "set_up_session_environment (self);\n"
6310 (map (lambda (name)
6311 (string-append
6312 "gdm_session_set_environment_variable "
6313 "(self, \"" name "\","
6314 "g_getenv (\"" name "\"));\n"))
6315 propagate)))))
a430a350
TS
6316 ;; Find the configuration file using an environment variable.
6317 (substitute* '("common/gdm-settings.c")
e0e6756f 6318 (("GDM_CUSTOM_CONF")
e57c2adb
TS
6319 (string-append "(g_getenv(\"GDM_CUSTOM_CONF\") != NULL"
6320 " ? g_getenv(\"GDM_CUSTOM_CONF\")"
6321 " : GDM_CUSTOM_CONF)")))
e0e6756f
AW
6322 ;; Use service-supplied path to X.
6323 (substitute* '("daemon/gdm-server.c")
6324 (("\\(X_SERVER X_SERVER_ARG_FORMAT")
6325 "(\"%s\" X_SERVER_ARG_FORMAT, g_getenv (\"GDM_X_SERVER\")"))
6326 (substitute* '("daemon/gdm-x-session.c")
1f564c15
TS
6327 (("\"dbus-daemon\"")
6328 "g_getenv (\"GDM_DBUS_DAEMON\")")
e0e6756f 6329 (("X_SERVER")
41fa9f18
TS
6330 "g_getenv (\"GDM_X_SERVER\")")
6331 (("GDMCONFDIR \"/Xsession\"")
6332 "g_getenv (\"GDM_X_SESSION\")"))
def6d6b6
TS
6333 ;; Use an absolute path for GNOME Session.
6334 (substitute* "daemon/gdm-launch-environment.c"
6335 (("\"gnome-session\"")
6336 (string-append "\"" (assoc-ref inputs "gnome-session")
6337 "/bin/gnome-session\"")))
e8c6e771
TS
6338 ;; Do not automatically select the placeholder session.
6339 (substitute* "daemon/gdm-session.c"
6340 (("!g_str_has_suffix [(]base_name, \"\\.desktop\"[)]")
6341 (string-append "!g_str_has_suffix (base_name, \".desktop\") || "
6342 "(g_strcmp0(search_dirs[i], \""
6343 (assoc-ref outputs "out") "/share/gdm/BuiltInSessions/"
6344 "\") == 0 && "
6345 "g_strcmp0(base_name, \"fail.desktop\") == 0)"))
6346 (("g_error [(]\"GdmSession: no session desktop files installed, aborting\\.\\.\\.\"[)];")
bcca95dc 6347 "{ self->fallback_session_name = g_strdup(\"fail\"); goto out; }"))
69544798 6348 #t))
8caa4589
TS
6349 ;; GDM requires that there be at least one desktop entry
6350 ;; file. This phase installs a hidden one that simply
6351 ;; fails. This enables users to use GDM with a
6352 ;; '~/.xsession' script with no other desktop entry files.
6353 ;; See <https://bugs.gnu.org/35068>.
6354 (add-after 'install 'install-placeholder-desktop-entry
6355 (lambda* (#:key inputs outputs #:allow-other-keys)
6356 (let* ((out (assoc-ref outputs "out"))
6357 (sessions (string-append out "/share/gdm/BuiltInSessions"))
6358 (fail (string-append sessions "/fail.desktop")))
6359 (mkdir-p sessions)
6360 (with-output-to-file fail
6361 (lambda ()
6362 (for-each
6363 display
6364 '("[Desktop Entry]\n"
6365 "Encoding=UTF-8\n"
6366 "Type=Application\n"
6367 "Name=Fail\n"
6368 "Comment=This session fails immediately.\n"
6369 "NoDisplay=true\n"
6370 "Exec=false\n"))))
6371 #t)))
69544798
TS
6372 ;; GDM needs GNOME Session to run these applications. We link
6373 ;; their autostart files in `share/gdm/greeter/autostart'
6374 ;; because GDM explicitly tells GNOME Session to look there.
6375 ;;
6376 ;; XXX: GNOME Shell should be linked here too, but currently
6377 ;; GNOME Shell depends on GDM.
6378 (add-after 'install 'link-autostart-files
6379 (lambda* (#:key inputs outputs #:allow-other-keys)
6380 (let* ((out (assoc-ref outputs "out"))
6381 (autostart (string-append out "/share/gdm/"
6382 "greeter/autostart"))
6383 (settings (assoc-ref inputs "gnome-settings-daemon")))
6384 (mkdir-p autostart)
6385 (with-directory-excursion autostart
6386 (for-each (lambda (desktop)
6387 (symlink desktop (basename desktop)))
6388 (find-files (string-append settings "/etc/xdg"))))
6389 #t))))))
df12f04a
SB
6390 (native-inputs
6391 `(("dconf" ,dconf)
6392 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6393 ("gobject-introspection" ,gobject-introspection)
6394 ("intltool" ,intltool)
6395 ("itstool" ,itstool)
6396 ("pkg-config" ,pkg-config)
6397 ("xmllint" ,libxml2)))
6398 (inputs
6399 `(("accountsservice" ,accountsservice)
6400 ("check" ,check) ; for testing
6401 ("elogind" ,elogind)
def6d6b6 6402 ("gnome-session" ,gnome-session)
69544798 6403 ("gnome-settings-daemon" ,gnome-settings-daemon)
df12f04a
SB
6404 ("gtk+" ,gtk+)
6405 ("iso-codes" ,iso-codes)
6406 ("libcanberra" ,libcanberra)
6407 ("linux-pam" ,linux-pam)))
6408 (synopsis "Display manager for GNOME")
f032d0be 6409 (home-page "https://wiki.gnome.org/Projects/GDM/")
df12f04a
SB
6410 (description
6411 "GNOME Display Manager is a system service that is responsible for
6412providing graphical log-ins and managing local and remote displays.")
6413 (license license:gpl2+)))
8e1dd04f
SB
6414
6415(define-public libgtop
6416 (package
6417 (name "libgtop")
015fc036 6418 (version "2.40.0")
8e1dd04f
SB
6419 (source (origin
6420 (method url-fetch)
59487fc2 6421 (uri (string-append "mirror://gnome/sources/libgtop/"
8e1dd04f 6422 (version-major+minor version) "/"
59487fc2 6423 "libgtop-" version ".tar.xz"))
8e1dd04f
SB
6424 (sha256
6425 (base32
015fc036 6426 "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq"))))
8e1dd04f
SB
6427 (build-system gnu-build-system)
6428 (native-inputs
6429 `(("gobject-introspection" ,gobject-introspection)
6430 ("intltool" ,intltool)
6431 ("perl" ,perl)
6432 ("pkg-config" ,pkg-config)))
6433 (propagated-inputs
6434 `(("glib" ,glib))) ; required by libgtop-2.0.pc
6435 (synopsis "Portable system access library")
6436 (home-page "https://www.gnome.org/")
6437 (description
6438 "LibGTop is a library to get system specific data such as CPU and memory
6439usage and information about running processes.")
6440 (license license:gpl2+)))
b96c4260
SB
6441
6442(define-public gnome-bluetooth
6443 (package
6444 (name "gnome-bluetooth")
723afae6 6445 (version "3.32.1")
b96c4260
SB
6446 (source (origin
6447 (method url-fetch)
6448 (uri (string-append "mirror://gnome/sources/" name "/"
6449 (version-major+minor version) "/"
6450 name "-" version ".tar.xz"))
6451 (sha256
6452 (base32
723afae6 6453 "1am1gf0nzwg6x1s8ly13j0xnjzgrfj06j0dp52x4zy9s67ywlhb4"))))
fd3b1171 6454 (build-system meson-build-system)
b96c4260
SB
6455 (native-inputs
6456 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
fd3b1171 6457 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
b96c4260
SB
6458 ("gobject-introspection" ,gobject-introspection)
6459 ("intltool" ,intltool)
6460 ("pkg-config" ,pkg-config)
6461 ("xmllint" ,libxml2)))
6462 (propagated-inputs
6463 ;; gnome-bluetooth-1.0.pc refers to all these.
723afae6
KK
6464 `(("glib" ,glib)
6465 ("gtk+" ,gtk+)))
b96c4260 6466 (inputs
723afae6
KK
6467 `(("eudev" ,eudev)
6468 ("libcanberra" ,libcanberra)
b96c4260
SB
6469 ("libnotify" ,libnotify)))
6470 (synopsis "GNOME Bluetooth subsystem")
6471 (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
6472 (description
6473 "This package contains tools for managing and manipulating Bluetooth
6474devices using the GNOME desktop.")
6475 (license license:lgpl2.1+)))
b645146f
SB
6476
6477(define-public gnome-control-center
6478 (package
6479 (name "gnome-control-center")
a6938bac 6480 (version "3.32.2")
b645146f
SB
6481 (source (origin
6482 (method url-fetch)
6483 (uri (string-append "mirror://gnome/sources/" name "/"
6484 (version-major+minor version) "/"
6485 name "-" version ".tar.xz"))
6486 (sha256
6487 (base32
a6938bac 6488 "03np0mhfl9kkdw4cb711pda0cli9zgh2bq2gqn2zwbdi3qnhk9gs"))))
59dac026 6489 (build-system meson-build-system)
b645146f 6490 (arguments
59dac026
RW
6491 '(#:glib-or-gtk? #t
6492 #:configure-flags
64c70430
KK
6493 (list "-Dcheese=false"
6494 (string-append "-Dgnome_session_libexecdir="
6495 (assoc-ref %build-inputs "gnome-session")
6496 "/libexec"))
59dac026 6497 #:phases
b645146f
SB
6498 (modify-phases %standard-phases
6499 (add-before 'configure 'patch-paths
6500 (lambda* (#:key inputs #:allow-other-keys)
6501 (let ((libc (assoc-ref inputs "libc"))
1df38cfc 6502 (tzdata (assoc-ref inputs "tzdata"))
341225ac 6503 (libgnomekbd (assoc-ref inputs "libgnomekbd"))
64c70430
KK
6504 (nm-applet (assoc-ref inputs "network-manager-applet"))
6505 (gnome-desktop (assoc-ref inputs "gnome-desktop")))
b645146f
SB
6506 (substitute* "panels/datetime/tz.h"
6507 (("/usr/share/zoneinfo/zone.tab")
6508 (string-append tzdata "/share/zoneinfo/zone.tab")))
982c0b36 6509 (substitute* "tests/datetime/test-endianess.c"
b645146f
SB
6510 (("/usr/share/locale")
6511 (string-append libc "/share/locale")))
1df38cfc
LC
6512 (substitute* "panels/region/cc-region-panel.c"
6513 (("\"gkbd-keyboard-display")
6514 (string-append "\"" libgnomekbd
6515 "/bin/gkbd-keyboard-display")))
341225ac
LC
6516 (substitute* '("panels/network/net-device-wifi.c"
6517 "panels/network/net-device.c"
6518 "panels/network/connection-editor/net-connection-editor.c")
6519 (("\"nm-connection-editor")
6520 (string-append "\"" nm-applet
6521 "/bin/nm-connection-editor")))
1acd107c
FP
6522 (substitute* '("panels/user-accounts/run-passwd.c")
6523 (("/usr/bin/passwd")
6524 "/run/setuid-programs/passwd"))
64c70430
KK
6525 (substitute* "panels/info/cc-info-overview-panel.c"
6526 (("DATADIR \"/gnome/gnome-version.xml\"")
6527 (string-append "\"" gnome-desktop
6528 "/share/gnome/gnome-version.xml\"")))
b645146f
SB
6529 #t))))))
6530 (native-inputs
6531 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
59dac026 6532 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
b645146f
SB
6533 ("intltool" ,intltool)
6534 ("pkg-config" ,pkg-config)
a6938bac
KK
6535 ("xsltproc" ,libxslt)
6536 ;; For tests
6537 ("hicolor-icon-theme" ,hicolor-icon-theme)
6538 ("python-dbusmock" ,python-dbusmock)
6539 ("xorg-server" ,xorg-server-for-tests)))
b645146f
SB
6540 (inputs
6541 `(("accountsservice" ,accountsservice)
6542 ("clutter-gtk" ,clutter-gtk)
6543 ("colord-gtk" ,colord-gtk)
6544 ("cups" ,cups)
6545 ("dconf" ,dconf)
6546 ("docbook-xsl" ,docbook-xsl)
3446ffb5 6547 ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
b645146f
SB
6548 ("gnome-bluetooth" ,gnome-bluetooth)
6549 ("gnome-desktop" ,gnome-desktop)
6550 ("gnome-online-accounts" ,gnome-online-accounts)
14c297fd 6551 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
64c70430 6552 ("gnome-session" ,gnome-session)
b645146f
SB
6553 ("gnome-settings-daemon" ,gnome-settings-daemon)
6554 ("grilo" ,grilo)
a6938bac 6555 ("gsound" ,gsound)
b645146f
SB
6556 ("ibus" ,ibus)
6557 ("libcanberra" ,libcanberra)
1df38cfc 6558 ("libgnomekbd" ,libgnomekbd)
b645146f
SB
6559 ("libgudev" ,libgudev)
6560 ("libgtop" ,libgtop)
6561 ("libpwquality" ,libpwquality)
982c0b36 6562 ("libsecret" ,libsecret)
b645146f
SB
6563 ("libsoup" ,libsoup)
6564 ("libxml2" ,libxml2)
6565 ("libwacom" ,libwacom)
6566 ("mesa" ,mesa)
6567 ("mit-krb5" ,mit-krb5)
6568 ("modem-manager" ,modem-manager)
6569 ("network-manager-applet" ,network-manager-applet)
6570 ("polkit" ,polkit)
6571 ("pulseaudio" ,pulseaudio)
6572 ("smbclient" ,samba)
6573 ("tzdata" ,tzdata)
982c0b36 6574 ("udisks" ,udisks)
b645146f
SB
6575 ("upower" ,upower)))
6576 (synopsis "Utilities to configure the GNOME desktop")
6577 (home-page "https://www.gnome.org/")
6578 (description
6579 "This package contains configuration applets for the GNOME desktop,
6580allowing to set accessibility configuration, desktop fonts, keyboard and mouse
6581properties, sound setup, desktop theme and background, user interface
6582properties, screen resolution, and other GNOME parameters.")
6583 (license license:gpl2+)))
a4df5756
SB
6584
6585(define-public gnome-shell
6586 (package
6587 (name "gnome-shell")
d5e615ca 6588 (version "3.32.2")
a4df5756
SB
6589 (source (origin
6590 (method url-fetch)
6591 (uri (string-append "mirror://gnome/sources/" name "/"
6592 (version-major+minor version) "/"
6593 name "-" version ".tar.xz"))
6594 (sha256
6595 (base32
d5e615ca 6596 "0anlkdnqsp5fqvmg95rqjpp1ifcx5xzsvwcrdsvb1cqzbh6inmp5"))
a76d0f03
LC
6597 (patches (search-patches "gnome-shell-theme.patch"))
6598 (modules '((guix build utils)))
6599 (snippet
6600 #~(begin
a76d0f03
LC
6601 ;; Copy images for use on the GDM log-in screen.
6602 (copy-file #$(file-append %artwork-repository
6603 "/slim/0.x/background.png")
6604 "data/theme/guix-background.png")
45fef894
LC
6605 (copy-file #$(file-append %artwork-repository
6606 "/logo/Guix-horizontal-white.svg")
6607 "data/theme/guix-logo.svg")
a76d0f03 6608 #t))))
2b0c755d 6609 (build-system meson-build-system)
a4df5756 6610 (arguments
08185081
MB
6611 `(#:glib-or-gtk? #t
6612 #:disallowed-references ((,glib "bin")
11e1df56
LC
6613 ,inkscape ,libxslt
6614 ,ruby-sass)
2b0c755d
RW
6615 #:configure-flags
6616 (list "-Dsystemd=false"
6617 ;; Otherwise, the RUNPATH will lack the final path component.
6618 (string-append "-Dc_link_args=-Wl,-rpath="
6619 (assoc-ref %outputs "out")
6620 "/lib/gnome-shell"))
11e1df56 6621
08185081 6622 #:modules ((guix build meson-build-system)
11e1df56
LC
6623 (guix build utils)
6624 (srfi srfi-1))
6625
2b0c755d 6626 #:phases
a4df5756 6627 (modify-phases %standard-phases
2b0c755d 6628 (add-after 'unpack 'fix-keysdir
a4df5756
SB
6629 (lambda* (#:key outputs #:allow-other-keys)
6630 (let* ((out (assoc-ref outputs "out"))
6631 (keysdir (string-append
6632 out "/share/gnome-control-center/keybindings")))
2b0c755d
RW
6633 (substitute* "meson.build"
6634 (("keysdir =.*")
6635 (string-append "keysdir = '" keysdir "'\n")))
6636 #t)))
ebfe259f
MB
6637 (add-before 'configure 'convert-logo-to-png
6638 (lambda* (#:key inputs #:allow-other-keys)
6639 ;; Convert the logo from SVG to PNG.
6640 (invoke "inkscape" "--export-png=data/theme/guix-logo.png"
6641 "data/theme/guix-logo.svg")))
ba00235a 6642 (add-before 'configure 'record-absolute-file-names
2472cdec
LC
6643 (lambda* (#:key inputs #:allow-other-keys)
6644 (substitute* "js/misc/ibusManager.js"
6645 (("'ibus-daemon'")
6646 (string-append "'" (assoc-ref inputs "ibus")
6647 "/bin/ibus-daemon'")))
d6fda4d3
LC
6648 (substitute* "js/ui/status/keyboard.js"
6649 (("'gkbd-keyboard-display'")
6650 (string-append "'" (assoc-ref inputs "libgnomekbd")
6651 "/bin/gkbd-keyboard-display'")))
2472cdec 6652 #t))
2b0c755d
RW
6653 (add-before 'check 'pre-check
6654 (lambda* (#:key inputs #:allow-other-keys)
6655 ;; Tests require a running X server.
6656 (system "Xvfb :1 &")
6657 (setenv "DISPLAY" ":1")
6658 #t))
6659 (add-after 'install 'wrap-programs
6660 (lambda* (#:key inputs outputs #:allow-other-keys)
6661 (let ((out (assoc-ref outputs "out"))
6662 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6663 (python-path (getenv "PYTHONPATH")))
6664 (wrap-program (string-append out "/bin/gnome-shell")
6665 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6666 ;; FIXME: gnome-shell loads these libraries with unqualified
6667 ;; names only, so they need to be on LD_LIBRARY_PATH. The
6668 ;; alternative might be to patch gnome-shell.
6669 `("LD_LIBRARY_PATH" ":" prefix
6670 ,(map (lambda (pkg)
6671 (string-append (assoc-ref inputs pkg) "/lib"))
cd8dce8a
RW
6672 '("gdk-pixbuf"
6673 "gnome-bluetooth" "librsvg" "libgweather"))))
2b0c755d
RW
6674 (for-each
6675 (lambda (prog)
6676 (wrap-program (string-append out "/bin/" prog)
6677 `("PYTHONPATH" ":" prefix (,python-path))
6678 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6679 '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
08185081 6680 #t)))
11e1df56
LC
6681 (replace 'glib-or-gtk-wrap
6682 (let ((wrap (assoc-ref %standard-phases 'glib-or-gtk-wrap)))
6683 (lambda* (#:key inputs outputs #:allow-other-keys #:rest rest)
6684 ;; By default Inkscape et al. would end up in the XDG_DATA_DIRS
6685 ;; settings of the wrappers created by the 'glib-or-gtk-wrap'
6686 ;; phase. Fix that since we don't need these.
6687 (wrap #:inputs (fold alist-delete inputs
6688 '("inkscape" "intltool" "glib:bin"))
6689 #:outputs outputs)))))))
a4df5756
SB
6690 (native-inputs
6691 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
2b0c755d 6692 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
a4df5756 6693 ("gobject-introspection" ,gobject-introspection)
ebfe259f 6694 ("inkscape" ,inkscape)
a4df5756
SB
6695 ("intltool" ,intltool)
6696 ("pkg-config" ,pkg-config)
6697 ("python" ,python)
2b0c755d
RW
6698 ("ruby-sass" ,ruby-sass)
6699 ("sassc" ,sassc)
a76d0f03 6700 ("xsltproc" ,libxslt)
2b0c755d 6701 ;; For tests
0b4504f6 6702 ("xorg-server" ,xorg-server-for-tests)))
a4df5756
SB
6703 (inputs
6704 `(("accountsservice" ,accountsservice)
6705 ("caribou" ,caribou)
6706 ("docbook-xsl" ,docbook-xsl)
6707 ("evolution-data-server" ,evolution-data-server)
6708 ("gcr" ,gcr)
6709 ("gdm" ,gdm)
c5db31d4 6710 ("gdk-pixbuf" ,gdk-pixbuf+svg)
a4df5756
SB
6711 ("gjs" ,gjs)
6712 ("gnome-bluetooth" ,gnome-bluetooth)
a4df5756
SB
6713 ("gnome-desktop" ,gnome-desktop)
6714 ("gnome-settings-daemon" ,gnome-settings-daemon)
6715 ("gst-plugins-base" ,gst-plugins-base)
6716 ("ibus" ,ibus)
6717 ("libcanberra" ,libcanberra)
6718 ("libcroco" ,libcroco)
d6fda4d3 6719 ("libgnomekbd" ,libgnomekbd) ;for gkbd-keyboard-display
a4df5756
SB
6720 ("libgweather" ,libgweather)
6721 ("libsoup" ,libsoup)
6722 ("mesa-headers" ,mesa-headers)
6723 ("mutter" ,mutter)
6724 ("network-manager-applet" ,network-manager-applet)
6725 ("polkit" ,polkit)
6726 ("pulseaudio" ,pulseaudio)
6727 ("python-pygobject" ,python-pygobject)
6728 ("startup-notification" ,startup-notification)
6729 ("telepathy-logger" ,telepathy-logger)
6730 ("upower" ,upower)
30e760f0
MB
6731 ;; XXX: These requirements were added in 3.24, but no mention in NEWS.
6732 ;; Missing propagation? See also: <https://bugs.gnu.org/27264>
6733 ("librsvg" ,librsvg)
2b0c755d 6734 ("geoclue" ,geoclue)))
a4df5756
SB
6735 (synopsis "Desktop shell for GNOME")
6736 (home-page "https://wiki.gnome.org/Projects/GnomeShell")
6737 (description
6738 "GNOME Shell provides core user interface functions for the GNOME desktop,
6739like switching to windows and launching applications.")
6740 (license license:gpl2+)))
c3f29bc9
RS
6741
6742(define-public gtk-vnc
6743 (package
6744 (name "gtk-vnc")
965ff023 6745 (version "0.9.0")
c3f29bc9
RS
6746 (source
6747 (origin
6748 (method url-fetch)
6749 (uri (string-append "mirror://gnome/sources/" name "/"
6750 (version-major+minor version) "/"
6751 name "-" version ".tar.xz"))
6752 (sha256
6753 (base32
965ff023 6754 "1dya1wc9vis8h0fv625pii1n70cckf1xjg1m2hndz989d118i6is"))))
c3f29bc9
RS
6755 (build-system gnu-build-system)
6756 (arguments
6757 '(#:configure-flags '("--with-gtk=3.0")))
6758 (propagated-inputs
6759 `(("gtk+" ,gtk+))) ; required by gtk-vnc-2.0.pc.
6760 (inputs
6761 `(("cyrus-sasl" ,cyrus-sasl)
6762 ("gnutls" ,gnutls)
6763 ("libgcrypt" ,libgcrypt)
6764 ("pulseaudio" ,pulseaudio)))
6765 (native-inputs
6766 `(("glib:bin" ,glib "bin")
6767 ("gobject-introspection" ,gobject-introspection)
6768 ("intltool" ,intltool)
6769 ("pkg-config" ,pkg-config)
2f17e939 6770 ("python-wrapper" ,python-wrapper)
c3f29bc9
RS
6771 ("vala" ,vala)))
6772 (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
6773 (synopsis "VNC viewer widget for GTK+")
6774 (description
6775 "GTK-VNC is a VNC viewer widget for GTK+, used by remote desktop viewing
6776applications, for instance the Vinagre client, GNOME Boxes and virt-viewer.
6777GTK-VNC implements client side RFB protocol and authentication extensions such
6778as SASL, TLS and VeNCrypt. Additionally it supports encoding extensions.")
6779 (license license:lgpl2.1+)))
8b877545 6780
dc69fe18
MW
6781(define-public gnome-autoar
6782 (package
6783 (name "gnome-autoar")
c7da8510 6784 (version "0.2.3")
dc69fe18
MW
6785 (source (origin
6786 (method url-fetch)
6787 (uri (string-append "mirror://gnome/sources/" name "/"
6788 (version-major+minor version) "/"
6789 name "-" version ".tar.xz"))
6790 (sha256
6791 (base32
c7da8510 6792 "02i4zgqqqj56h7bcys6dz7n78m4nj2x4dv1ggjmnrk98n06xpsax"))))
dc69fe18
MW
6793 (build-system glib-or-gtk-build-system)
6794 (native-inputs
6795 `(("gnome-common" ,gnome-common)
6796 ("gobject-introspection" ,gobject-introspection)
6797 ("pkg-config" ,pkg-config)))
6798 (propagated-inputs
6799 `(("libarchive" ,libarchive))) ; XXX document why
6800 (inputs
0a6e9e13 6801 `(("gtk+" ,gtk+)))
dc69fe18
MW
6802 (synopsis "Archives integration support for GNOME")
6803 (home-page "https://git.gnome.org/browse/gnome-autoar/")
6804 (description
6805 "GNOME Autoar is a library which makes creating and extracting archives
6806easy, safe, and automatic.")
6807 (license license:lgpl2.1+)))
6808
b64e217f
MW
6809(define-public tracker
6810 (package
6811 (name "tracker")
5ada561c 6812 (version "2.2.2")
b64e217f
MW
6813 (source (origin
6814 (method url-fetch)
b5b0fd23 6815 (uri (string-append "mirror://gnome/sources/tracker/"
b64e217f 6816 (version-major+minor version) "/"
b5b0fd23 6817 "tracker-" version ".tar.xz"))
b64e217f
MW
6818 (sha256
6819 (base32
5ada561c
KK
6820 "1rp2c6k7ajcm553p9kpni87zgi9aplm3s01rl7pk575az5i399y6"))))
6821 (build-system meson-build-system)
c8bdf589 6822 (arguments
5ada561c
KK
6823 `(#:glib-or-gtk? #t
6824 #:configure-flags
6825 ;; Otherwise, the RUNPATH will lack the final path component.
6826 (list (string-append "-Dc_link_args=-Wl,-rpath="
6827 (assoc-ref %outputs "out") "/lib:"
6828 (assoc-ref %outputs "out") "/lib/tracker-2.0"))
6829 #:phases
c8bdf589
RW
6830 (modify-phases %standard-phases
6831 (add-after 'unpack 'disable-broken-tests
6832 (lambda _
c8bdf589
RW
6833 ;; These fail because the SPARQL backend could not be loaded.
6834 ;; That's because /etc/machine-id is missing, but
6835 ;; DBUS_FATAL_WARNINGS does not help here.
5ada561c
KK
6836 (substitute* "tests/libtracker-sparql/meson.build"
6837 (("'sparql',") ""))
6838 (substitute* "tests/tracker-steroids/meson.build"
6839 (("test\\(.*") ""))
c8bdf589
RW
6840 #t))
6841 ;; Two tests fail if LANG is not set.
6842 (add-before 'check 'pre-check
6843 (lambda _
6844 (setenv "LANG" "en_US.UTF-8")
6845 ;; For the missing /etc/machine-id.
6846 (setenv "DBUS_FATAL_WARNINGS" "0")
6847 #t)))))
b64e217f 6848 (native-inputs
5ada561c
KK
6849 `(("glib:bin" ,glib "bin")
6850 ("gnome-common" ,gnome-common)
b64e217f 6851 ("gobject-introspection" ,gobject-introspection)
5ada561c 6852 ("python-pygobject" ,python-pygobject)
b64e217f
MW
6853 ("intltool" ,intltool)
6854 ("pkg-config" ,pkg-config)
6855 ("vala" ,vala)))
6856 (inputs
6857 `(("gtk+" ,gtk+)
6858 ("dbus" ,dbus)
44ed6284 6859 ("sqlite" ,sqlite)
c8bdf589 6860 ("python" ,python)
b64e217f 6861 ("poppler" ,poppler)
b64e217f
MW
6862 ("libpng" ,libpng)
6863 ("libtiff" ,libtiff)
b64e217f 6864 ("zlib" ,zlib)
b64e217f 6865 ("libxml2" ,libxml2)
b64e217f 6866 ("libunistring" ,libunistring)
0ef48cd9 6867 ("json-glib" ,json-glib)
b64e217f 6868 ("openjpeg" ,openjpeg-1)
b64e217f 6869 ("libseccomp" ,libseccomp)
0ef48cd9 6870 ("libsoup" ,libsoup)
5ada561c
KK
6871 ("libuuid" ,util-linux)
6872 ("network-manager" ,network-manager)))
b64e217f
MW
6873 (synopsis "Metadata database, indexer and search tool")
6874 (home-page "https://wiki.gnome.org/Projects/Tracker")
6875 (description
6876 "Tracker is an advanced framework for first class objects with associated
6877metadata and tags. It provides a one stop solution for all metadata, tags,
6878shared object databases, search tools and indexing.")
6879 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
6880 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
6881 (license (list license:gpl2+
6882 license:lgpl2.1+
6883 license:lgpl2.0+))))
6884
03be9874
KK
6885(define-public tracker-miners
6886 (package
6887 (name "tracker-miners")
6888 (version "2.2.2")
6889 (source (origin
6890 (method url-fetch)
6891 (uri (string-append "mirror://gnome/sources/tracker-miners/"
6892 (version-major+minor version)
6893 "/tracker-miners-" version ".tar.xz"))
6894 (sha256
6895 (base32
6896 "0kk5xaajamb8jlm6cfdbc2m3axzr6bnph84m7697xmb0pkg8hdiw"))))
6897 (build-system meson-build-system)
6898 (arguments
6899 `(#:glib-or-gtk? #t
6900 #:configure-flags
6901 (list "-Dminer_rss=false" ; libgrss is required.
6902 ;; Ensure the RUNPATH contains all installed library locations.
6903 (string-append "-Dc_link_args=-Wl,-rpath="
6904 (assoc-ref %outputs "out")
6905 "/lib/tracker-miners-2.0")
6906 ;; TODO: Enable functional tests. Currently, the following error
6907 ;; appears:
6908 ;; Exception: The functional tests require DConf to be the default
6909 ;; GSettings backend. Got GKeyfileSettingsBackend instead.
6910 "-Dfunctional_tests=false")))
6911 (native-inputs
6912 `(("dbus" ,dbus)
6913 ("intltool" ,intltool)
6914 ("glib:bin" ,glib "bin")
6915 ("gobject-introspection" ,gobject-introspection)
6916 ("pkg-config" ,pkg-config)
6917 ("python-pygobject" ,python-pygobject)))
6918 (inputs
6919 `(("exempi" ,exempi)
6920 ("ffmpeg" ,ffmpeg)
6921 ("flac" ,flac)
6922 ("giflib" ,giflib)
6923 ("glib" ,glib)
6924 ("gstreamer" ,gstreamer)
6925 ("icu4c" ,icu4c)
6926 ("libcue" ,libcue)
6927 ("libexif" ,libexif)
6928 ("libgsf" ,libgsf)
6929 ("libgxps" ,libgxps)
6930 ("libiptcdata" ,libiptcdata)
6931 ("libjpeg" ,libjpeg)
6932 ("libosinfo" ,libosinfo)
6933 ("libpng" ,libpng)
6934 ("libseccomp" ,libseccomp)
6935 ("libtiff" ,libtiff)
6936 ("libvorbis" ,libvorbis)
6937 ("libxml2" ,libxml2)
6938 ("poppler" ,poppler)
6939 ("taglib" ,taglib)
6940 ("totem-pl-parser" ,totem-pl-parser)
6941 ("tracker" ,tracker)
6942 ("upower" ,upower)
6943 ("zlib" ,zlib)))
b64e217f
MW
6944 (synopsis "Metadata database, indexer and search tool")
6945 (home-page "https://wiki.gnome.org/Projects/Tracker")
6946 (description
6947 "Tracker is an advanced framework for first class objects with associated
6948metadata and tags. It provides a one stop solution for all metadata, tags,
6949shared object databases, search tools and indexing.")
6950 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
6951 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
6952 (license (list license:gpl2+
6953 license:lgpl2.1+
6954 license:lgpl2.0+))))
6955
8b877545
RS
6956(define-public nautilus
6957 (package
6958 (name "nautilus")
d682c599 6959 (version "3.32.3")
8b877545
RS
6960 (source (origin
6961 (method url-fetch)
6962 (uri (string-append "mirror://gnome/sources/" name "/"
6963 (version-major+minor version) "/"
6964 name "-" version ".tar.xz"))
6965 (sha256
6966 (base32
d682c599 6967 "1x9crzbj6rrrf8w5dkcx0c14j40byr4ijpzkwd5dcrbfvvdy1r01"))))
35e2d0cf 6968 (build-system meson-build-system)
8b877545 6969 (arguments
35e2d0cf 6970 '(#:glib-or-gtk? #t
8b877545
RS
6971 ;; XXX: FAIL: check-nautilus
6972 ;; Settings schema 'org.gnome.nautilus.preferences' is not installed
6973 #:tests? #f))
6974 (native-inputs
35e2d0cf
R
6975 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6976 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
6977 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8b877545
RS
6978 ("gobject-introspection" ,gobject-introspection)
6979 ("intltool" ,intltool)
6980 ("pkg-config" ,pkg-config)))
8b877545 6981 (inputs
8b877545 6982 `(("dconf" ,dconf)
caf6c363 6983 ("gexiv2" ,gexiv2)
dd05e731 6984 ("gvfs" ,gvfs)
8b877545
RS
6985 ("exempi" ,exempi)
6986 ("gnome-desktop" ,gnome-desktop)
09d88905 6987 ("gnome-autoar" ,gnome-autoar)
3cafb9d4 6988 ("gst-plugins-base" ,gst-plugins-base)
ec66ebd4 6989 ("libseccomp" ,libseccomp)
35e2d0cf 6990 ("libselinux" ,libselinux)
09d88905 6991 ("tracker" ,tracker)
3cafb9d4 6992 ("tracker-miners" ,tracker-miners)
ce6027bf
SB
6993 ;; XXX: gtk+ is required by libnautilus-extension.pc
6994 ;;
6995 ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
6996 ;; package. See:
6997 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
6998 ("gtk+" ,gtk+)
8b877545
RS
6999 ("libexif" ,libexif)
7000 ("libxml2" ,libxml2)))
7001 (synopsis "File manager for GNOME")
7002 (home-page "https://wiki.gnome.org/Apps/Nautilus")
7003 (description
7004 "Nautilus (Files) is a file manager designed to fit the GNOME desktop
7005design and behaviour, giving the user a simple way to navigate and manage its
7006files.")
7007 (license license:gpl2+)))
3c697ffd
JR
7008
7009(define-public baobab
7010 (package
7011 (name "baobab")
e0c5f20c 7012 (version "3.32.0")
3c697ffd
JR
7013 (source (origin
7014 (method url-fetch)
7015 (uri (string-append
7016 "mirror://gnome/sources/" name "/"
7017 (version-major+minor version) "/"
7018 name "-" version ".tar.xz"))
7019 (sha256
7020 (base32
e0c5f20c 7021 "0b33s9bhpiffv5wl76cq2bbnqhvx3qs2vxyxmil5gcs583llqh9r"))))
d233d373
RJ
7022 (build-system meson-build-system)
7023 (arguments
7024 '(#:glib-or-gtk? #t))
3c697ffd
JR
7025 (native-inputs
7026 `(("intltool" ,intltool)
7027 ("pkg-config" ,pkg-config)
d233d373
RJ
7028 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
7029 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
3c697ffd
JR
7030 ("itstool" ,itstool)
7031 ("xmllint" ,libxml2)
7032 ("glib" ,glib "bin")
7033 ("vala" ,vala)))
7034 (inputs
7035 `(("gtk+" ,gtk+)))
7036 (synopsis "Disk usage analyzer for GNOME")
7037 (description
7038 "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
7039usage in the GNOME desktop environment. It can easily scan device volumes or
7040a specific user-requested directory branch (local or remote). Once the scan
7041is complete it provides a graphical representation of each selected folder.")
7042 (home-page "https://wiki.gnome.org/Apps/Baobab")
7043 (license license:gpl2+)))
dc050251 7044
fdba447c
RS
7045(define-public gnome-backgrounds
7046 (package
7047 (name "gnome-backgrounds")
e04e8a8c 7048 (version "3.32.0")
fdba447c
RS
7049 (source
7050 (origin
7051 (method url-fetch)
7052 (uri (string-append "mirror://gnome/sources/" name "/"
7053 (version-major+minor version) "/"
7054 name "-" version ".tar.xz"))
7055 (sha256
7056 (base32
e04e8a8c 7057 "1s5krdmd3md44p1fgr2lqm5ifxb8s1vzx6hm11sb4cgzr4dw6lrz"))))
9ca381f0 7058 (build-system meson-build-system)
fdba447c
RS
7059 (native-inputs
7060 `(("intltool" ,intltool)))
e04e8a8c 7061 (home-page "https://gitlab.gnome.org/GNOME/gnome-backgrounds")
fdba447c
RS
7062 (synopsis "Background images for the GNOME desktop")
7063 (description
7064 "GNOME backgrounds package contains a collection of graphics files which
7065can be used as backgrounds in the GNOME Desktop environment. Additionally,
7066the package creates the proper framework and directory structure so that you
7067can add your own files to the collection.")
7068 (license (list license:gpl2+
7069 license:cc-by2.0
7070 license:cc-by-sa2.0
7071 license:cc-by-sa3.0))))
7072
b784b1a9
RS
7073(define-public gnome-screenshot
7074 (package
7075 (name "gnome-screenshot")
6acf4033 7076 (version "3.32.0")
b784b1a9
RS
7077 (source
7078 (origin
7079 (method url-fetch)
7080 (uri (string-append "mirror://gnome/sources/" name "/"
7081 (version-major+minor version) "/"
7082 name "-" version ".tar.xz"))
7083 (sha256
7084 (base32
6acf4033 7085 "09ha7dizjm5ymqpjyrqd10ijfb3xlqc1mwg9ajkrbfry11q9yq4b"))))
8356aefa 7086 (build-system meson-build-system)
b784b1a9
RS
7087 (native-inputs
7088 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8356aefa
RW
7089 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
7090 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
b784b1a9 7091 ("intltool" ,intltool)
8356aefa 7092 ("appstream-glib" ,appstream-glib)
b784b1a9
RS
7093 ("pkg-config" ,pkg-config)))
7094 (inputs
7095 `(("gtk+" ,gtk+)
7096 ("libcanberra" ,libcanberra)
7097 ("libx11" ,libx11)
7098 ("libxext" ,libxext)))
676e7cb4 7099 (home-page "https://gitlab.gnome.org/GNOME/gnome-screenshot")
b784b1a9
RS
7100 (synopsis "Take pictures of your screen")
7101 (description
7102 "GNOME Screenshot is a utility used for taking screenshots of the entire
7103screen, a window or a user defined area of the screen, with optional
7104beautifying border effects.")
7105 (license license:gpl2+)))
7106
66d59111
RS
7107(define-public dconf-editor
7108 (package
7109 (name "dconf-editor")
66261451 7110 (version "3.32.0")
66d59111
RS
7111 (source
7112 (origin
7113 (method url-fetch)
7114 (uri (string-append "mirror://gnome/sources/" name "/"
7115 (version-major+minor version) "/"
7116 name "-" version ".tar.xz"))
7117 (sha256
7118 (base32
66261451 7119 "1fmsmlh16njjm948grz20mzrsvb4wjj7pl1fvkrkxqi7mhr177gi"))))
294ff39d 7120 (build-system meson-build-system)
86f2124b
LC
7121 (arguments
7122 '(#:phases (modify-phases %standard-phases
7123 (add-before 'configure 'set-glib-minimum-version
7124 (lambda _
7125 ;; Change the minimum required GLib version so that
7126 ;; 'valac' is passed '--target-glib 2.60.0'; failing to
7127 ;; do that, it complains that "55" is not an even
7128 ;; number. See <https://bugs.gnu.org/37503>.
7129 (substitute* "editor/meson.build"
7130 (("2\\.55\\.1") "2.60.0"))
7131 #t)))))
66d59111
RS
7132 (native-inputs
7133 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
294ff39d 7134 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
66d59111 7135 ("intltool" ,intltool)
294ff39d
RW
7136 ("pkg-config" ,pkg-config)
7137 ("vala" ,vala)))
66d59111
RS
7138 (inputs
7139 `(("dconf" ,dconf)
7140 ("gtk+" ,gtk+)
7141 ("libxml2" ,libxml2)))
7142 (home-page "https://git.gnome.org/browse/dconf-editor")
7143 (synopsis "Graphical editor for GNOME's dconf configuration system")
7144 (description
7145 "Dconf-editor is a graphical tool for browsing and editing the dconf
7146configuration system for GNOME. It allows users to configure desktop
7147software that do not provide their own configuration interface.")
7148 (license license:lgpl2.1+)))
7149
96d36f38
AW
7150(define-public gnome-default-applications
7151 (package
7152 (name "gnome-default-applications")
7153 (version "0")
7154 (build-system trivial-build-system)
7155 (source #f)
7156 (propagated-inputs
8ad4f0aa
LC
7157 `(("nautilus" ,nautilus)
7158 ("evince" ,evince)))
96d36f38
AW
7159 (arguments
7160 `(#:modules ((guix build utils))
7161 #:builder
7162 (begin
7163 (use-modules (guix build utils))
7164 (let* ((out (assoc-ref %outputs "out"))
7165 (apps (string-append out "/share/applications")))
7166 (mkdir-p apps)
7167 (call-with-output-file (string-append apps "/defaults.list")
7168 (lambda (port)
7169 (format port "[Default Applications]\n")
8ad4f0aa
LC
7170 (format port "inode/directory=org.gnome.Nautilus.desktop\n")
7171 (format port "application/pdf=evince.desktop\n")
7172 (format port "application/postscript=evince.desktop\n")))
96d36f38
AW
7173 #t))))
7174 (synopsis "Default MIME type associations for the GNOME desktop")
7175 (description
7176 "Given many installed packages which might handle a given MIME type, a
7177user running the GNOME desktop probably has some preferences: for example,
7178that folders be opened by default by the Nautilus file manager, not the Baobab
7179disk usage analyzer. This package establishes that set of default MIME type
7180associations for GNOME.")
7181 (license license:gpl3+)
7182 (home-page #f)))
7183
dc050251
SB
7184(define-public gnome
7185 (package
7186 (name "gnome")
7187 (version (package-version gnome-shell))
7188 (source #f)
7189 (build-system trivial-build-system)
e3cfef22 7190 (arguments '(#:builder (begin (mkdir %output) #t)))
dc050251 7191 (propagated-inputs
8d8c6bff 7192 ;; TODO: Add or remove packages according to:
a8cda7f5 7193 ;; <https://calc.disroot.org/2nu6mpf88ynq.html>.
8d8c6bff
RG
7194 ;; GNOME-Core-OS-Services
7195 `(("accountsservice" ,accountsservice)
7196 ("network-manager" ,network-manager)
7197 ("packagekit" ,packagekit)
7198 ("upower" ,upower)
7199 ;; GNOME-Core-Shell
7200 ("adwaita-icon-theme" ,adwaita-icon-theme)
7201 ("gdm" ,gdm)
7202 ("glib-networking" ,glib-networking)
7203 ("gnome-backgrounds" ,gnome-backgrounds)
7204 ("gnome-bluetooth" ,gnome-bluetooth)
7205 ("gnome-control-center" ,gnome-control-center)
7206 ("gnome-desktop" ,gnome-desktop)
7207 ("gnome-keyring" ,gnome-keyring)
7208 ("gnome-session" ,gnome-session)
7209 ("gnome-settings-daemon" ,gnome-settings-daemon)
7210 ("gnome-shell-extensions" ,gnome-shell-extensions)
7211 ("gnome-shell" ,gnome-shell)
7212 ("gnome-themes-extra" ,gnome-themes-extra)
a8cda7f5 7213 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8d8c6bff
RG
7214 ("gvfs" ,gvfs)
7215 ("mutter" ,mutter)
7216 ("orca" ,orca)
7217 ;; GNOME-Core-Utilities
7218 ("baobab" ,baobab)
7219 ("cheese" ,cheese)
7220 ("eog" ,eog)
7221 ("epiphany" ,epiphany)
7222 ("evince" ,evince)
7223 ("file-roller" ,file-roller)
7224 ("gedit" ,gedit)
7225 ("gnome-calculator" ,gnome-calculator)
7226 ("gnome-calendar" ,gnome-calendar)
7227 ("gnome-characters" ,gnome-characters)
7228 ("gnome-clocks" ,gnome-clocks)
7229 ("gnome-contacts" ,gnome-contacts)
7230 ("gnome-disk-utility" ,gnome-disk-utility)
7231 ("gnome-font-viewer" ,gnome-font-viewer)
7232 ("gnome-maps" ,gnome-maps)
7233 ("gnome-screenshot" ,gnome-screenshot)
7234 ("gnome-system-monitor" ,gnome-system-monitor)
7235 ("gnome-terminal" ,gnome-terminal)
7236 ("nautilus" ,nautilus)
7237 ("simple-scan" ,simple-scan)
7238 ("totem" ,totem)
7239 ("yelp" ,yelp)))
fe4e698d 7240 (synopsis "The GNU desktop environment")
dc050251
SB
7241 (home-page "https://www.gnome.org/")
7242 (description
fe4e698d
LC
7243 "GNOME is the graphical desktop for GNU. It includes a wide variety of
7244applications for browsing the web, editing text and images, creating
7245documents and diagrams, playing media, scanning, and much more.")
dc050251 7246 (license license:gpl2+)))
4a526711
DT
7247
7248(define-public byzanz
7249 ;; The last stable release of Byzanz was in 2011, but there have been many
7250 ;; useful commits made to the Byzanz repository since then that it would be
7251 ;; silly to use such an old release.
7252 (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
7253 (package
7254 (name "byzanz")
7255 (version (string-append "0.2-1." (string-take commit 7)))
7256 (source (origin
7257 (method git-fetch)
7258 (uri (git-reference
5f13bf09 7259 (url "https://git.gnome.org/browse/byzanz")
4a526711 7260 (commit commit)))
5a6527e4 7261 (file-name (string-append name "-" version "-checkout"))
4a526711
DT
7262 (sha256
7263 (base32
7264 "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
7265 (build-system glib-or-gtk-build-system)
7266 (arguments
7267 '(#:phases
7268 (modify-phases %standard-phases
189be331 7269 (replace 'bootstrap
4a526711
DT
7270 (lambda _
7271 ;; The build system cleverly detects that we're not building from
7272 ;; a release tarball and turns on -Werror for GCC.
7273 ;; Unsurprisingly, there is a warning during compilation that
7274 ;; causes the build to fail unnecessarily, so we remove the flag.
7275 (substitute* '("configure.ac")
7276 (("-Werror") ""))
7277 ;; The autogen.sh script in gnome-common will run ./configure
7278 ;; by default, which is problematic because source shebangs
7279 ;; have not yet been patched.
7280 (setenv "NOCONFIGURE" "t")
7281 (zero? (system* "sh" "autogen.sh")))))))
7282 (native-inputs
7283 `(("autoconf" ,autoconf)
7284 ("automake" ,automake)
7285 ("gnome-common" ,gnome-common)
7286 ("intltool" ,intltool)
7287 ("libtool" ,libtool)
7288 ("pkg-config" ,pkg-config)
7289 ("which" ,which)))
7290 (inputs
7291 `(("glib" ,glib)
7292 ("gstreamer" ,gstreamer)
7293 ("gst-plugins-base" ,gst-plugins-base)
7294 ("gtk+" ,gtk+)))
7295 (synopsis "Desktop recording program")
7296 (description "Byzanz is a simple desktop recording program with a
7297command-line interface. It can record part or all of an X display for a
7298specified duration and save it as a GIF encoded animated image file.")
7299 (home-page "https://git.gnome.org/browse/byzanz")
7300 (license license:gpl2+))))
3a9a4c51 7301
0ec171ec
MS
7302(define-public gsound
7303 (package
7304 (name "gsound")
7305 (version "1.0.2")
7306 (source (origin
7307 (method url-fetch)
7308 (uri (string-append "mirror://gnome/sources/" name "/"
7309 (version-major+minor version) "/"
7310 name "-" version ".tar.xz"))
7311 (sha256
7312 (base32
7313 "0lwfwx2c99qrp08pfaj59pks5dphsnxjgrxyadz065d8xqqgza5v"))))
7314 (build-system glib-or-gtk-build-system)
7315 (native-inputs
7316 `(("pkg-config" ,pkg-config)
7317 ("gobject-introspection" ,gobject-introspection)
7318 ("vala" ,vala)))
7319 (inputs
7320 `(("glib" ,glib)
7321 ("libcanberra" ,libcanberra)))
7322 (home-page "https://wiki.gnome.org/Projects/GSound")
7323 (synopsis "GObject wrapper for libcanberra")
7324 (description
7325 "GSound is a small library for playing system sounds. It's designed to be
7326used via GObject Introspection, and is a thin wrapper around the libcanberra C
7327library.")
7328 (license license:lgpl2.1+)))
7329
3a9a4c51
RS
7330(define-public libzapojit
7331 (package
7332 (name "libzapojit")
7333 (version "0.0.3")
7334 (source (origin
7335 (method url-fetch)
7336 (uri (string-append "mirror://gnome/sources/" name "/"
7337 (version-major+minor version) "/"
7338 name "-" version ".tar.xz"))
7339 (sha256
7340 (base32
7341 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
7342 (build-system gnu-build-system)
7343 (native-inputs
7344 `(("gobject-introspection" ,gobject-introspection)
7345 ("intltool" ,intltool)
7346 ("pkg-config" ,pkg-config)))
7347 (inputs
14c297fd 7348 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
3a9a4c51
RS
7349 ("json-glib" ,json-glib)
7350 ("rest" ,rest)))
7351 (home-page "https://wiki.gnome.org/Projects/Zapojit")
7352 (synopsis "Library for accessing SkyDrive and Hotmail")
7353 (description
7354 "Libzapojit is a GLib-based library for accessing online service APIs of
7355Microsoft SkyDrive and Hotmail, using their REST protocols.")
7356 (license license:lgpl2.1+)))
9365ee1c 7357
60e2a9ae
MS
7358(define-public gnome-clocks
7359 (package
7360 (name "gnome-clocks")
c76d0dbc 7361 (version "3.32.0")
60e2a9ae
MS
7362 (source (origin
7363 (method url-fetch)
7364 (uri (string-append "mirror://gnome/sources/" name "/"
7365 (version-major+minor version) "/"
7366 name "-" version ".tar.xz"))
7367 (sha256
7368 (base32
c76d0dbc 7369 "1w6lgjdak3x76c9gyhd1lqrdmjfh8q77sjnrkcimylsg0jq913bc"))))
60e2a9ae
MS
7370 (build-system meson-build-system)
7371 (arguments
7372 '(#:glib-or-gtk? #t))
7373 (native-inputs
7374 `(("vala" ,vala)
7375 ("pkg-config" ,pkg-config)
7376 ("glib" ,glib "bin") ; for glib-compile-resources
7377 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
7378 ("desktop-file-utils" ,desktop-file-utils)
7379 ("gettext" ,gettext-minimal)
7380 ("itstool" ,itstool)))
7381 (inputs
7382 `(("glib" ,glib)
7383 ("gtk+" ,gtk+)
7384 ("gsound" ,gsound)
7385 ("geoclue" ,geoclue)
7386 ("geocode-glib" ,geocode-glib)
7387 ("libgweather" ,libgweather)
7388 ("gnome-desktop" ,gnome-desktop)))
7389 (home-page "https://wiki.gnome.org/Apps/Clocks")
7390 (synopsis "GNOME's clock application")
7391 (description
7392 "GNOME Clocks is a simple clocks application designed to fit the GNOME
7393desktop. It supports world clock, stop watch, alarms, and count down timer.")
7394 (license license:gpl3+)))
7395
3c474897
KY
7396(define-public gnome-calendar
7397 (package
7398 (name "gnome-calendar")
339b59bf 7399 (version "3.32.2")
3c474897
KY
7400 (source (origin
7401 (method url-fetch)
7402 (uri (string-append "mirror://gnome/sources/" name "/"
7403 (version-major+minor version) "/"
7404 name "-" version ".tar.xz"))
7405 (sha256
7406 (base32
339b59bf 7407 "07p73cvzj8idr80npja5yiv9pjfyi6qqfhaz5jwcgqspqbnhnl7k"))))
a49d3e37
MS
7408 (build-system meson-build-system)
7409 (arguments
7410 '(#:glib-or-gtk? #t
7411 ;; gnome-calendar has to be installed before the tests can be run
7412 ;; https://bugzilla.gnome.org/show_bug.cgi?id=788224
7413 #:tests? #f))
3c474897 7414 (native-inputs
a49d3e37
MS
7415 `(("gettext" ,gettext-minimal)
7416 ("glib-bin" ,glib "bin") ; For glib-compile-schemas
7417 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
3c474897
KY
7418 ("pkg-config" ,pkg-config)))
7419 (inputs
a49d3e37 7420 `(("evolution-data-server" ,evolution-data-server)
14c297fd 7421 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
a286b5eb
RW
7422 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7423 ("libdazzle" ,libdazzle)
b63c06f1 7424 ("libedataserverui" ,evolution-data-server)
a286b5eb
RW
7425 ("libgweather" ,libgweather)
7426 ("geoclue" ,geoclue)))
3c474897
KY
7427 (home-page "https://wiki.gnome.org/Apps/Calendar")
7428 (synopsis "GNOME's calendar application")
7429 (description
7430 "GNOME Calendar is a simple calendar application designed to fit the GNOME
a49d3e37 7431desktop. It supports multiple calendars, month, week and year view.")
3c474897
KY
7432 (license license:gpl3+)))
7433
57b14665
MS
7434(define-public gnome-todo
7435 (package
7436 (name "gnome-todo")
9f3c6c88 7437 (version "3.28.1")
57b14665
MS
7438 (source (origin
7439 (method url-fetch)
7440 (uri (string-append "mirror://gnome/sources/" name "/"
7441 (version-major+minor version) "/"
7442 name "-" version ".tar.xz"))
7443 (sha256
7444 (base32
9f3c6c88 7445 "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"))))
57b14665
MS
7446 (build-system meson-build-system)
7447 (arguments
7448 '(#:glib-or-gtk? #t
7449 #:phases (modify-phases %standard-phases
7450 (add-after
7451 'install 'wrap-gnome-todo
7452 (lambda* (#:key inputs outputs #:allow-other-keys)
7453 (let ((out (assoc-ref outputs "out"))
7454 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
7455 (python-path (getenv "PYTHONPATH")))
7456 (wrap-program (string-append out "/bin/gnome-todo")
7457 ;; XXX: gi plugins are broken.
7458 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=787212
7459 ;; For plugins.
7460 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
7461 `("PYTHONPATH" ":" prefix (,python-path))))
7462 #t)))))
7463 (native-inputs
7464 `(("gettext" ,gettext-minimal)
7465 ("gobject-introspection" ,gobject-introspection)
7466 ("glib:bin" ,glib "bin") ; For glib-compile-resources
7467 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7468 ("pkg-config" ,pkg-config)))
7469 (inputs
7470 `(("rest" ,rest) ; For Todoist plugin
7471 ("json-glib" ,json-glib) ; For Todoist plugin
b63c06f1 7472 ("libedataserverui" ,evolution-data-server)
57b14665
MS
7473 ("libical" ,libical)
7474 ("libpeas" ,libpeas)
7475 ("python-pygobject" ,python-pygobject)
7476 ("evolution-data-server" ,evolution-data-server)
14c297fd 7477 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
57b14665
MS
7478 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
7479 (home-page "https://wiki.gnome.org/Apps/Todo")
7480 (synopsis "GNOME's ToDo Application")
7481 (description
7482 "GNOME To Do is a simplistic personal task manager designed to perfectly
7483fit the GNOME desktop.")
7484 (license license:gpl3+)))
7485
ab179eaf
SB
7486(define-public gnome-dictionary
7487 (package
7488 (name "gnome-dictionary")
cf81ddef 7489 (version "3.26.1")
ab179eaf
SB
7490 (source (origin
7491 (method url-fetch)
7492 (uri (string-append "mirror://gnome/sources/" name "/"
7493 (version-major+minor version) "/"
7494 name "-" version ".tar.xz"))
7495 (sha256
7496 (base32
cf81ddef
LC
7497 "007k2bq8iplg4psdpz074r5d4zxvn4s95qym4rw9hs6giljbrf0n"))))
7498 (build-system meson-build-system)
2776b5d5
MB
7499 (arguments '(#:glib-or-gtk? #t
7500 #:phases (modify-phases %standard-phases
7501 (add-after 'unpack 'patch-install-script
7502 (lambda _
7503 ;; This script attempts to compile glib schemas
7504 ;; and create an empty MIME database. We do
7505 ;; that elsewhere, so prevent it from running.
7506 (substitute* "build-aux/post-install.sh"
7507 (("\\[ -z \"\\$DESTDIR\" \\]") "false"))
7508 #t)))))
ab179eaf
SB
7509 (native-inputs
7510 `(("glib:bin" ,glib "bin")
7511 ("gobject-introspection" ,gobject-introspection)
7512 ("intltool" ,intltool)
7513 ("itstool" ,itstool)
7514 ("pkg-config" ,pkg-config)
7515 ("xmllint" ,libxml2)))
7516 (inputs
7517 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7518 ("gtk+" ,gtk+)))
7519 (home-page "https://wiki.gnome.org/Apps/Dictionary")
7520 (synopsis "Look up words in dictionary sources")
7521 (description
7522 "GNOME Dictionary can look for the definition or translation of a word in
7523existing databases over the internet.")
7524 (license license:gpl3+)))
7525
d13f3a03 7526(define-public gnome-tweaks
9365ee1c 7527 (package
d13f3a03 7528 (name "gnome-tweaks")
652af676 7529 (version "3.32.0")
9365ee1c
JN
7530 (source (origin
7531 (method url-fetch)
d13f3a03 7532 (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
9365ee1c 7533 (version-major+minor version) "/"
d13f3a03
RW
7534 "gnome-tweaks-" version ".tar.xz"))
7535 (patches
7536 (list (search-patch "gnome-tweaks-search-paths.patch")))
9365ee1c
JN
7537 (sha256
7538 (base32
652af676 7539 "037r35cw34ifcs676fq9n2v4mh1nkqx0qk474bznf18mr6r62h55"))))
d13f3a03 7540 (build-system meson-build-system)
9365ee1c 7541 (arguments
d13f3a03
RW
7542 `(#:glib-or-gtk? #t
7543 #:configure-flags '("-Dlocalstatedir=/tmp"
7544 "-Dsysconfdir=/tmp")
9365ee1c 7545 #:imported-modules ((guix build python-build-system)
d13f3a03
RW
7546 ,@%meson-build-system-modules)
7547 #:phases
7548 (modify-phases %standard-phases
7549 (add-after 'install 'wrap
7550 (@@ (guix build python-build-system) wrap))
7551 (add-after 'wrap 'wrap-gi-typelib
7552 (lambda* (#:key inputs outputs #:allow-other-keys)
7553 (let ((out (assoc-ref outputs "out"))
7554 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7555 (wrap-program (string-append out "/bin/gnome-tweaks")
7556 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7557 #t)))))
9365ee1c 7558 (native-inputs
c7fc414e
RH
7559 `(("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7560 ("intltool" ,intltool)
9365ee1c
JN
7561 ("pkg-config" ,pkg-config)))
7562 (inputs
c7fc414e
RH
7563 `(("gnome-desktop" ,gnome-desktop)
7564 ("gtk+" ,gtk+)
9365ee1c
JN
7565 ("gobject-introspection" ,gobject-introspection)
7566 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
c7fc414e
RH
7567 ("libnotify" ,libnotify)
7568 ("libsoup" ,libsoup)
7569 ("nautilus" ,nautilus)
7570 ("python" ,python)
7571 ("python-pygobject" ,python-pygobject)))
9365ee1c 7572 (synopsis "Customize advanced GNOME 3 options")
d13f3a03 7573 (home-page "https://wiki.gnome.org/Apps/Tweaks")
9365ee1c 7574 (description
d13f3a03 7575 "GNOME Tweaks allows adjusting advanced configuration settings in
9365ee1c
JN
7576GNOME 3. This includes things like the fonts used in user interface elements,
7577alternative user interface themes, changes in window management behavior,
7578GNOME Shell appearance and extension, etc.")
7579 (license license:gpl3+)))
813f814a 7580
d13f3a03
RW
7581;; This package has been renamed by upstream.
7582(define-public gnome-tweak-tool
7583 (deprecated-package "gnome-tweak-tool" gnome-tweaks))
7584
32ac717c
DT
7585(define-public gnome-shell-extensions
7586 (package
7587 (name "gnome-shell-extensions")
ae4c05e0 7588 (version "3.32.1")
32ac717c
DT
7589 (source (origin
7590 (method url-fetch)
7591 (uri (string-append "mirror://gnome/sources/" name "/"
7592 (version-major+minor version) "/"
7593 name "-" version ".tar.xz"))
7594 (sha256
7595 (base32
ae4c05e0 7596 "07libf6z24n42hpdsq163w0j8xyrav0lxqrwxrvq5kbz8zxv5ch2"))))
100f625b 7597 (build-system meson-build-system)
32ac717c 7598 (arguments
100f625b 7599 '(#:configure-flags '("-Dextension_set=all")))
32ac717c 7600 (native-inputs
c9ea8873
LP
7601 `(("glib:bin" ,glib "bin")
7602 ("intltool" ,intltool)
32ac717c
DT
7603 ("pkg-config" ,pkg-config)))
7604 (propagated-inputs
c9ea8873 7605 `(("glib" ,glib)))
32ac717c
DT
7606 (synopsis "Extensions for GNOME Shell")
7607 (description "GNOME Shell extensions modify and extend GNOME Shell
7608functionality and behavior.")
7609 (home-page "https://extensions.gnome.org/")
7610 (license license:gpl3+)))
7611
813f814a
DT
7612(define-public arc-theme
7613 (package
7614 (name "arc-theme")
37781323 7615 (version "20190917")
813f814a 7616 (source (origin
a18f8eaf
BH
7617 (method git-fetch)
7618 (uri (git-reference
7619 (url "https://github.com/NicoHood/arc-theme.git")
7620 (commit version)))
7621 (file-name (git-file-name name version))
813f814a
DT
7622 (sha256
7623 (base32
37781323 7624 "1qgpk4p2hi5hd4yy0hj93kq1vs0b32wb8qkaj1wi90c8gwddq5wa"))))
813f814a 7625 (build-system gnu-build-system)
d88884fa
EF
7626 (arguments
7627 '(#:phases
7628 (modify-phases %standard-phases
7629 ;; autogen.sh calls configure at the end of the script.
7630 (replace 'bootstrap
7631 (lambda _ (invoke "autoreconf" "-vfi"))))))
813f814a
DT
7632 (native-inputs
7633 `(("autoconf" ,autoconf)
7634 ("automake" ,automake)
a18f8eaf
BH
7635 ("glib" ,glib "bin") ; for glib-compile-resources
7636 ("gnome-shell" ,gnome-shell)
7637 ("gtk+" ,gtk+)
7638 ("inkscape" ,inkscape)
7639 ("optipng" ,optipng)
7640 ("pkg-config" ,pkg-config)
7641 ("sassc" ,sassc)))
813f814a
DT
7642 (synopsis "A flat GTK+ theme with transparent elements")
7643 (description "Arc is a flat theme with transparent elements for GTK 3, GTK
76442, and GNOME Shell which supports GTK 3 and GTK 2 based desktop environments
7645like GNOME, Unity, Budgie, Pantheon, XFCE, Mate, etc.")
7646 (home-page "https://github.com/horst3180/arc-theme")
7647 ;; No "or later" language found.
a18f8eaf 7648 (license license:gpl3+)))
9987c57c 7649
d935e6a1 7650(define-public faba-icon-theme
9987c57c 7651 (package
d935e6a1 7652 (name "faba-icon-theme")
2eee7ee3 7653 (version "4.3")
d935e6a1
BT
7654 (source
7655 (origin
757e4027
TGR
7656 (method git-fetch)
7657 (uri (git-reference
7658 (url "https://github.com/snwh/faba-icon-theme.git")
7659 (commit (string-append "v" version))))
7660 (file-name (git-file-name name version))
d935e6a1 7661 (sha256
757e4027 7662 (base32 "0xh6ppr73p76z60ym49b4d0liwdc96w41cc5p07d48hxjsa6qd6n"))))
f6a9b345 7663 (build-system meson-build-system)
9987c57c 7664 (arguments
82da291a 7665 `(#:phases
9987c57c 7666 (modify-phases %standard-phases
82da291a 7667 (add-before 'configure 'disable-post-install
9987c57c 7668 (lambda _
82da291a
JL
7669 (substitute* "meson.build"
7670 (("meson.add_install_script.*") "")))))))
9987c57c
DT
7671 (native-inputs
7672 `(("autoconf" ,autoconf)
7673 ("automake" ,automake)))
d935e6a1
BT
7674 (synopsis "Faba icon theme")
7675 (description
7676 "Faba is a minimal icon set used as a basis for other themes such as
7677Moka")
7678 (home-page "https://snwh.org/moka")
7679 (license (list license:lgpl3+
7680 license:cc-by-sa4.0))))
7681
9987c57c
DT
7682(define-public moka-icon-theme
7683 (package
8b0e4177 7684 (inherit faba-icon-theme)
9987c57c 7685 (name "moka-icon-theme")
105a3625 7686 (version "5.4.0")
8c3f2170
TGR
7687 (source
7688 (origin
7689 (method git-fetch)
7690 (uri (git-reference
7691 (url "https://github.com/snwh/moka-icon-theme.git")
7692 (commit (string-append "v" version))))
7693 (file-name (git-file-name name version))
7694 (sha256
7695 (base32 "015l02im4mha5z91dbchxf6xkp66d346bg3xskwg0rh3lglhjsrd"))))
550281fb
BT
7696 (propagated-inputs
7697 ;; Moka is based on Faba by using it as a fallback icon set instead of
7698 ;; bundling it, so we need to add it as a propagated input.
7699 `(("faba-icon-theme" ,faba-icon-theme)))
9987c57c
DT
7700 (synopsis "Moka icon theme")
7701 (description "Moka is a stylized desktop icon set, designed to be clear,
7702simple and consistent.")
fedde43b
BT
7703 (license (list license:gpl3+
7704 license:cc-by-sa4.0))))
6fd8f8d6
DT
7705
7706(define-public arc-icon-theme
7707 (package
7708 (name "arc-icon-theme")
c4180240 7709 (version "20161122")
bbf66cbf
TGR
7710 (source
7711 (origin
7712 (method git-fetch)
7713 (uri (git-reference
7714 (url "https://github.com/horst3180/arc-icon-theme.git")
7715 (commit version)))
7716 (file-name (git-file-name name version))
7717 (sha256
7718 (base32 "1ch3hp08qri93510hypzz6m2x4xgg2h15wvnhjwh1x1s1b7jvxjd"))))
6fd8f8d6 7719 (build-system gnu-build-system)
9e1ede95
JL
7720 (arguments
7721 `(#:phases
7722 (modify-phases %standard-phases
7723 (add-after 'unpack 'disable-configure-during-bootstrap
7724 (lambda _
7725 (substitute* "autogen.sh"
7726 (("^\"\\$srcdir/configure\".*") ""))
7727 #t)))))
6fd8f8d6
DT
7728 (native-inputs
7729 `(("autoconf" ,autoconf)
7730 ("automake" ,automake)))
7731 ;; When Arc is missing an icon, it looks in the Moka icon theme for it.
7732 (propagated-inputs
7733 `(("moka-icon-theme" ,moka-icon-theme)))
7734 (synopsis "Arc icon theme")
7735 (description "The Arc icon theme provides a set of icons matching the
7736style of the Arc GTK theme. Icons missing from the Arc theme are provided by
7737the Moka icon theme.")
7738 (home-page "https://github.com/horst3180/arc-icon-theme")
7739 (license license:gpl3+)))
6064a4e8
LF
7740
7741(define-public folks
7742 (package
7743 (name "folks")
d23495fa 7744 (version "0.11.4")
6064a4e8
LF
7745 (source (origin
7746 (method url-fetch)
7747 (uri (string-append
e5f4796e 7748 "mirror://gnome/sources/folks/"
6064a4e8 7749 (version-major+minor version) "/"
e5f4796e 7750 "folks-" version ".tar.xz"))
6064a4e8
LF
7751 (sha256
7752 (base32
d23495fa 7753 "16hqh2gxlbx0b0hgq216hndr1m72vj54jvryzii9zqkk0g9kxc57"))))
6064a4e8
LF
7754 (build-system glib-or-gtk-build-system)
7755 (inputs
7756 `(("bdb" ,bdb)
7757 ("dbus-glib" ,dbus-glib)
7758 ("evolution-data-server" ,evolution-data-server)
7759 ("glib" ,glib)
7760 ("libgee" ,libgee)
7761 ("telepathy-glib" ,telepathy-glib)))
7762 (native-inputs
7763 `(("gobject-introspection" ,gobject-introspection)
7764 ("intltool" ,intltool)
7765 ("pkg-config" ,pkg-config)
7766 ("vala" ,vala)))
7767 (synopsis "Library to aggregate data about people")
7768 (description "Libfolks is a library that aggregates information about people
7769from multiple sources (e.g., Telepathy connection managers for IM contacts,
7770Evolution Data Server for local contacts, libsocialweb for web service contacts,
7771etc.) to create metacontacts. It's written in Vala, which generates C code when
7772compiled.")
7773 (home-page "https://wiki.gnome.org/Projects/Folks")
7774 (license license:lgpl2.1+)))
01ea778f
LF
7775
7776(define-public gfbgraph
7777 (package
7778 (name "gfbgraph")
7779 (version "0.2.3")
7780 (source (origin
7781 (method url-fetch)
7782 (uri (string-append
237d4cf7 7783 "mirror://gnome/sources/gfbgraph/"
01ea778f 7784 (version-major+minor version) "/"
237d4cf7 7785 "gfbgraph-" version ".tar.xz"))
01ea778f
LF
7786 (sha256
7787 (base32
7788 "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs"))))
7789 (build-system glib-or-gtk-build-system)
7790 (arguments
7791 `(#:tests? #f ; Tests appear to require the network.
7792 ;; FIXME --enable-gtk-doc fails even with gtk-doc as a native-input.
7793 #:configure-flags '("--disable-gtk-doc"
7794 "--disable-static"
7795 "--enable-introspection")))
7796 (native-inputs
7797 `(("pkg-config" ,pkg-config)
7798 ("gobject-introspection" ,gobject-introspection)))
7799 (inputs
7800 `(("json-glib" ,json-glib)
14c297fd 7801 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
01ea778f
LF
7802 ("rest" ,rest)))
7803 (synopsis "GLib/GObject wrapper for the Facebook API")
7804 (description "This library allows you to use the Facebook API from
7805GLib/GObject code.")
7806 (home-page "https://wiki.gnome.org/Projects/GFBGraph")
7807 (license license:lgpl2.1+)))
3920868c 7808
7809(define-public libgnomekbd
7810 (package
7811 (name "libgnomekbd")
70f2b0f9 7812 (version "3.26.1")
3920868c 7813 (source (origin
7814 (method url-fetch)
d47fa82d 7815 (uri (string-append "mirror://gnome/sources/libgnomekbd/"
3920868c 7816 (version-major+minor version) "/"
d47fa82d 7817 "libgnomekbd-" version ".tar.xz"))
3920868c 7818 (sha256
7819 (base32
70f2b0f9 7820 "0y962ykn3rr9gylj0pwpww7bi20lmhvsw6qvxs5bisbn2mih5jpp"))))
3920868c 7821 (build-system gnu-build-system)
7822 (native-inputs
7823 `(("pkg-config" ,pkg-config)
7824 ("glib" ,glib "bin")
7825 ("intltool" ,intltool)))
7826 (propagated-inputs
7827 ;; Referred to in .h files and .pc.
7828 `(("glib" ,glib)
7829 ("gtk+" ,gtk+)
7830 ("libxklavier" ,libxklavier)))
7831 (home-page "https://www.gnome.org")
7832 (synopsis "GNOME keyboard configuration library")
7833 (description
7834 "Libgnomekbd is a keyboard configuration library for the GNOME desktop
7835environment, which can notably display keyboard layouts.")
7836 (license license:lgpl2.0+)))
85327d0d 7837
7838;;; This package is no longer maintained:
7839;;; https://wiki.gnome.org/Attic/LibUnique
7840;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
7841;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
7842(define-public libunique
7843 (package
7844 (name "libunique")
7845 (version "3.0.2")
7846 (source (origin
7847 (method url-fetch)
7848 (uri (string-append "mirror://gnome/sources/" name "/"
7849 (version-major+minor version) "/"
7850 name "-" version ".tar.xz"))
7851 (sha256
7852 (base32
7853 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
7854 (build-system glib-or-gtk-build-system)
7855 (arguments
7856 `(#:configure-flags '("--disable-static"
7857 "--disable-dbus" ; use gdbus
7858 "--enable-introspection")))
7859 (native-inputs
7860 `(("pkg-config" ,pkg-config)
7861 ("gobject-introspection" ,gobject-introspection)
7862 ("glib:bin" ,glib "bin")
7863 ("gtk-doc" ,gtk-doc)))
7864 (propagated-inputs
7865 ;; Referred to in .h files and .pc.
7866 `(("gtk+" ,gtk+)))
7867 (home-page "https://wiki.gnome.org/Attic/LibUnique")
7868 (synopsis "Library for writing single instance applications")
7869 (description
7870 "Libunique is a library for writing single instance applications. If you
7871launch a single instance application twice, the second instance will either just
7872quit or will send a message to the running instance. Libunique makes it easy to
7873write this kind of application, by providing a base class, taking care of all
7874the IPC machinery needed to send messages to a running instance, and also
7875handling the startup notification side.")
7876 (license license:lgpl2.1+)))
54021cd8
RS
7877
7878(define-public gnome-calculator
7879 (package
7880 (name "gnome-calculator")
07ace641 7881 (version "3.32.2")
54021cd8
RS
7882 (source
7883 (origin
7884 (method url-fetch)
7885 (uri (string-append "mirror://gnome/sources/" name "/"
7886 (version-major+minor version) "/"
7887 name "-" version ".tar.xz"))
7888 (sha256
7889 (base32
07ace641 7890 "0fgpn3sc226s9fpzhik5rkkrf669037gc659ga2kn9jsyckj6p41"))))
2d475910
RW
7891 (build-system meson-build-system)
7892 (arguments '(#:glib-or-gtk? #t))
54021cd8
RS
7893 (native-inputs
7894 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
2d475910 7895 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
54021cd8
RS
7896 ("intltool" ,intltool)
7897 ("itstool" ,itstool)
2d475910 7898 ("vala" ,vala)
54021cd8
RS
7899 ("pkg-config" ,pkg-config)))
7900 (inputs
112e9083 7901 `(("glib" ,glib)
07ace641 7902 ("gtksourceview" ,gtksourceview)
54021cd8 7903 ("libsoup" ,libsoup)
112e9083 7904 ("libxml2" ,libxml2)
2c2da7ec 7905 ("mpc" ,mpc)
54021cd8
RS
7906 ("mpfr" ,mpfr)))
7907 (home-page "https://wiki.gnome.org/Apps/Calculator")
7908 (synopsis "Desktop calculator")
7909 (description
7910 "Calculator is an application that solves mathematical equations and
7911is suitable as a default application in a Desktop environment.")
7912 (license license:gpl3)))
0bd69759
RS
7913
7914(define-public xpad
7915 (package
7916 (name "xpad")
c85626bb 7917 (version "5.1.0")
0bd69759
RS
7918 (source
7919 (origin
7920 (method url-fetch)
08fda9c6
R
7921 (uri (string-append "https://launchpad.net/xpad/trunk/"
7922 version "/+download/"
0bd69759
RS
7923 name "-" version ".tar.bz2"))
7924 (sha256
7925 (base32
c85626bb 7926 "0l0g5x8g6dwhf5ksnqqrjjsycy57kcvdslkmsr6bl3vrsjd7qml3"))))
0bd69759
RS
7927 (build-system gnu-build-system)
7928 (native-inputs
08fda9c6
R
7929 `(("autoconf" ,autoconf)
7930 ("automake" ,automake)
7931 ("gtk+:bin" ,gtk+ "bin")
7932 ("intltool" ,intltool)
0bd69759
RS
7933 ("pkg-config" ,pkg-config)))
7934 (inputs
c72647fb 7935 `(("gtksourceview" ,gtksourceview-3)
0bd69759
RS
7936 ("libsm" ,libsm)))
7937 (home-page "https://wiki.gnome.org/Apps/Xpad")
7938 (synopsis "Virtual sticky note")
7939 (description
7940 "Xpad is a sticky note that strives to be simple, fault tolerant,
7941and customizable. Xpad consists of independent pad windows, each is
7942basically a text box in which notes can be written.")
7943 (license license:gpl3+)))
3ad7dce1
RS
7944
7945(define-public gucharmap
c60063ea
RW
7946 (let ((unicode-files
7947 '(("Blocks.txt"
1f8b5515 7948 "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1")
c60063ea 7949 ("DerivedAge.txt"
1f8b5515 7950 "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6")
c60063ea 7951 ("NamesList.txt"
1f8b5515 7952 "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61")
c60063ea 7953 ("Scripts.txt"
1f8b5515 7954 "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx")
c60063ea 7955 ("UnicodeData.txt"
1f8b5515 7956 "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap")
c60063ea 7957 ("Unihan.zip"
1f8b5515 7958 "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"))))
c60063ea
RW
7959 (package
7960 (name "gucharmap")
1f8b5515 7961 (version "12.0.1")
c60063ea
RW
7962 (source
7963 (origin
7964 (method url-fetch)
7965 (uri (string-append "mirror://gnome/sources/" name "/"
7966 (version-major+minor version) "/"
7967 name "-" version ".tar.xz"))
7968 (sha256
7969 (base32
1f8b5515 7970 "0m915hm2b2d6r3vs1l80rqpssvg78pv8j6nv54yg62kzknnqmpir"))))
c60063ea
RW
7971 (build-system glib-or-gtk-build-system)
7972 (arguments
7973 `(#:modules ((ice-9 match)
7974 (guix build glib-or-gtk-build-system)
7975 (guix build utils))
7976 #:configure-flags
7977 (list "--with-unicode-data=../unicode-data")
7978 #:phases
7979 (modify-phases %standard-phases
7980 (add-after 'unpack 'prepare-unicode-data
7981 (lambda* (#:key inputs #:allow-other-keys)
7982 (mkdir-p "../unicode-data")
7983 (with-directory-excursion "../unicode-data"
7984 (for-each (match-lambda
7985 ((file _)
7986 (install-file (assoc-ref inputs file) ".")))
7987 ',unicode-files))
7988 #t)))))
7989 (native-inputs
7990 `(("desktop-file-utils" ,desktop-file-utils)
7991 ("glib:bin" ,glib "bin") ; for glib-compile-resources.
7992 ("gobject-introspection" ,gobject-introspection)
7993 ("intltool" ,intltool)
7994 ("itstool" ,itstool)
7995 ("pkg-config" ,pkg-config)
7996 ,@(map (match-lambda
7997 ((file hash)
7998 `(,file
7999 ,(origin
8000 (method url-fetch)
8001 (uri (string-append
1f8b5515 8002 "http://www.unicode.org/Public/12.0.0/ucd/"
c60063ea
RW
8003 file))
8004 (sha256 (base32 hash))))))
8005 unicode-files)
8006 ("unzip" ,unzip)))
8007 (inputs
8008 `(("gtk+" ,gtk+)
8009 ("xmllint" ,libxml2)))
8010 (home-page "https://wiki.gnome.org/Apps/Gucharmap")
8011 (synopsis "Unicode character picker and font browser")
8012 (description
8013 "This program allows you to browse through all the available Unicode
3ad7dce1
RS
8014characters and categories for the installed fonts, and to examine their
8015detailed properties. It is an easy way to find the character you might
8016only know by its Unicode name or code point.")
c60063ea 8017 (license license:gpl3+))))
04ce840a
RS
8018
8019(define-public bluefish
8020 (package
8021 (name "bluefish")
ea8afaf3 8022 (version "2.2.10")
04ce840a
RS
8023 (source
8024 (origin
8025 (method url-fetch)
8026 (uri (string-append "http://www.bennewitz.com/bluefish/stable/source/"
8027 name "-" version ".tar.gz"))
8028 (sha256
8029 (base32
ea8afaf3 8030 "1jw4has7lbp77lqmzvnnjmqcf0lacjfnka873lkkwdyrpzc4c1q4"))))
04ce840a
RS
8031 (build-system gnu-build-system)
8032 (native-inputs
8033 `(("desktop-file-utils" ,desktop-file-utils)
8034 ("intltool" ,intltool)
8035 ("pkg-config" ,pkg-config)))
8036 (inputs
8037 `(("enchant" ,enchant)
8038 ("gtk+" ,gtk+)
8039 ("python" ,python-2)
8040 ("xmllint" ,libxml2)
8041 ("gucharmap" ,gucharmap)))
8042 (home-page "http://bluefish.openoffice.nl")
8043 (synopsis "Web development studio")
8044 (description
8045 "Bluefish is an editor targeted towards programmers and web developers,
8046with many options to write web sites, scripts and other code.
8047Bluefish supports many programming and markup languages.")
8048 (license license:gpl3+)))
1f6a73ee
RS
8049
8050(define-public gnome-system-monitor
8051 (package
8052 (name "gnome-system-monitor")
083cffaf 8053 (version "3.32.1")
1f6a73ee
RS
8054 (source
8055 (origin
8056 (method url-fetch)
8057 (uri (string-append "mirror://gnome/sources/" name "/"
8058 (version-major+minor version) "/"
8059 name "-" version ".tar.xz"))
8060 (sha256
8061 (base32
083cffaf 8062 "1wd43qdgjav6xamq5z5cy8fri5zr01jga3plc9w95gcia0rk3ha8"))))
85fb3df3
RW
8063 (build-system meson-build-system)
8064 (arguments
8065 '(#:glib-or-gtk? #t
8066 #:configure-flags '("-Dsystemd=false")))
1f6a73ee
RS
8067 (native-inputs
8068 `(("glib:bin" ,glib "bin") ; for glib-mkenums.
85fb3df3 8069 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
1f6a73ee
RS
8070 ("intltool" ,intltool)
8071 ("itstool" ,itstool)
8072 ("libgtop" ,libgtop)
4985d9aa 8073 ("polkit" ,polkit)
1f6a73ee
RS
8074 ("pkg-config" ,pkg-config)))
8075 (inputs
8076 `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
8077 ("gtk+" ,gtk+)
8078 ("gtkmm" ,gtkmm)
8079 ("librsvg" ,librsvg)
4985d9aa
RW
8080 ("libxml2" ,libxml2)
8081 ("libwnck" ,libwnck)))
1f6a73ee
RS
8082 (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
8083 (synopsis "Process viewer and system resource monitor for GNOME")
8084 (description
8085 "GNOME System Monitor is a GNOME process viewer and system monitor with
8086an attractive, easy-to-use interface. It has features, such as a tree view
8087for process dependencies, icons for processes, the ability to hide processes,
8088graphical time histories of CPU/memory/swap usage and the ability to
8089kill/reinice processes.")
8090 (license license:gpl2+)))
3e00ac47
SB
8091
8092(define-public python-pyatspi
8093 (package
8094 (name "python-pyatspi")
4f937a32 8095 (version "2.34.0")
3e00ac47
SB
8096 (source (origin
8097 (method url-fetch)
8098 (uri (string-append
8099 "mirror://gnome/sources/pyatspi/"
8100 (version-major+minor version)
8101 "/pyatspi-" version ".tar.xz"))
8102 (sha256
8103 (base32
4f937a32 8104 "0j3f75j0zd6ca8msg7yr19qsfirqkn9fk8pqbjnlhqrpri455g4p"))))
3e00ac47 8105 (build-system gnu-build-system)
b95af3f6
JL
8106 (arguments
8107 `(#:phases
8108 (modify-phases %standard-phases
8109 (add-before 'build 'fix-atk-load
8110 (lambda _
8111 (substitute* "pyatspi/__init__.py"
8112 (("from gi.repository import Atspi")
8113 "gi.require_version('Gtk', '3.0')
8114from gi.repository import Gtk
8115from gi.repository import Atspi"))
8116 #t)))))
3e00ac47
SB
8117 (native-inputs
8118 `(("pkg-config" ,pkg-config)))
8119 (inputs
8120 `(("python" ,python)
8121 ("python-pygobject" ,python-pygobject)))
8122 (synopsis "Python client bindings for D-Bus AT-SPI")
8123 (home-page "https://wiki.linuxfoundation.org/accessibility\
8124/atk/at-spi/at-spi_on_d-bus")
8125 (description
8126 "This package includes a python client library for the AT-SPI D-Bus
8127accessibility infrastructure.")
8128 (license license:lgpl2.0)
8129 (properties '((upstream-name . "pyatspi")))))
53201c0d
SB
8130
8131(define-public orca
8132 (package
8133 (name "orca")
089e8585 8134 (version "3.32.0")
53201c0d
SB
8135 (source (origin
8136 (method url-fetch)
8137 (uri (string-append
8138 "mirror://gnome/sources/" name "/"
8139 (version-major+minor version) "/"
8140 name "-" version ".tar.xz"))
8141 (sha256
8142 (base32
089e8585 8143 "05jqzlg0f1x53hyl0l9282ynmw37159g6dsbrid12b7sjs12cc1i"))))
53201c0d
SB
8144 (build-system glib-or-gtk-build-system)
8145 (arguments
8146 '(#:phases
8147 (modify-phases %standard-phases
8148 (add-before 'configure 'qualify-xkbcomp
8149 (lambda* (#:key inputs #:allow-other-keys)
8150 (let ((xkbcomp (string-append
8151 (assoc-ref inputs "xkbcomp") "/bin/xkbcomp")))
8152 (substitute* "src/orca/orca.py"
8153 (("'xkbcomp'") (format #f "'~a'" xkbcomp))))
8154 #t))
8155 (add-after 'install 'wrap-orca
8156 (lambda* (#:key outputs #:allow-other-keys)
8157 (let* ((out (assoc-ref outputs "out"))
8158 (prog (string-append out "/bin/orca")))
8159 (wrap-program prog
8160 `("GI_TYPELIB_PATH" ":" prefix
8161 (,(getenv "GI_TYPELIB_PATH")))
8162 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
8163 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
8164 `("PYTHONPATH" ":" prefix
8165 (,(getenv "PYTHONPATH")))))
8166 #t)))))
8167 (native-inputs
8168 `(("intltool" ,intltool)
8169 ("itstool" ,itstool)
8170 ("pkg-config" ,pkg-config)
8171 ("xmllint" ,libxml2)))
8172 (inputs
8173 `(("at-spi2-atk" ,at-spi2-atk)
8174 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8175 ("gstreamer" ,gstreamer)
8176 ("gst-plugins-base" ,gst-plugins-base)
8177 ("gst-plugins-good" ,gst-plugins-good)
8178 ("gtk+" ,gtk+)
8179 ("python" ,python)
8180 ("python-pygobject" ,python-pygobject)
8181 ("python-pyatspi" ,python-pyatspi)
8182 ("python-speechd" ,speech-dispatcher)
8183 ("xkbcomp" ,xkbcomp)))
8184 (synopsis
8185 "Screen reader for individuals who are blind or visually impaired")
8186 (home-page "https://wiki.gnome.org/Projects/Orca")
8187 (description
8188 "Orca is a screen reader that provides access to the graphical desktop
8189via speech and refreshable braille. Orca works with applications and toolkits
8190that support the Assistive Technology Service Provider Interface (AT-SPI).")
8191 (license license:lgpl2.1+)))
411ba511
LC
8192
8193(define-public gspell
8194 (package
8195 (name "gspell")
7a6bbe9b 8196 (version "1.8.2")
411ba511
LC
8197 (source (origin
8198 (method url-fetch)
8199 (uri (string-append "mirror://gnome/sources/" name "/"
8200 (version-major+minor version) "/"
8201 name "-" version ".tar.xz"))
8202 (sha256
8203 (base32
7a6bbe9b 8204 "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
411ba511
LC
8205 (patches (search-patches "gspell-dash-test.patch"))))
8206 (build-system glib-or-gtk-build-system)
8207 (arguments
8208 '(#:phases
8209 (modify-phases %standard-phases
8210 (add-before 'check 'pre-check
8211 (lambda* (#:key inputs #:allow-other-keys)
8212 ;; Tests require a running X server.
8213 (system "Xvfb :1 &")
8214 (setenv "DISPLAY" ":1")
8215
8216 ;; For the missing /etc/machine-id.
8217 (setenv "DBUS_FATAL_WARNINGS" "0")
8218
8219 ;; Allow Enchant and its Aspell backend to find the en_US
8220 ;; dictionary.
8221 (setenv "ASPELL_DICT_DIR"
8222 (string-append (assoc-ref inputs "aspell-dict-en")
8223 "/lib/aspell"))
8224 #t)))))
8225 (inputs
eccd35be 8226 `(("gtk+" ,gtk+)
a801ae4c
TGR
8227 ("glib" ,glib)
8228 ("iso-codes" ,iso-codes)))
411ba511
LC
8229 (native-inputs
8230 `(("glib" ,glib "bin")
26ba3f07 8231 ("gobject-introspection" ,gobject-introspection)
411ba511
LC
8232 ("pkg-config" ,pkg-config)
8233 ("xmllint" ,libxml2)
8234
8235 ;; For tests.
a801ae4c 8236 ("aspell-dict-en" ,aspell-dict-en)
ff337525 8237 ("xorg-server" ,xorg-server-for-tests)))
eccd35be 8238 (propagated-inputs
9b1bb757 8239 `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
411ba511
LC
8240 (home-page "https://wiki.gnome.org/Projects/gspell")
8241 (synopsis "GNOME's alternative spell checker")
8242 (description
8243 "gspell provides a flexible API to add spell-checking to a GTK+
8244application. It provides a GObject API, spell-checking to text entries and
8245text views, and buttons to choose the language.")
8246 (license license:gpl2+)))
d1d739fa
CM
8247
8248(define-public gnome-planner
8249 (package
8250 (name "gnome-planner")
8251 (version "0.14.6")
8252 (source (origin
8253 (method url-fetch)
8254 (uri (string-append "mirror://gnome/sources/planner/"
8255 (version-major+minor version) "/planner-"
8256 version ".tar.xz"))
8257 (sha256
8258 (base32
8259 "15h6ps58giy5r1g66sg1l4xzhjssl362mfny2x09khdqsvk2j38k"))))
8260 (build-system glib-or-gtk-build-system)
8261 (arguments
8262 ;; Disable the Python bindings because the Planner program functions
8263 ;; without them, and (as of 2017-06-13) we have not packaged all of
8264 ;; packages that are necessary for building the Python bindings.
20b7b75c
EF
8265 `(#:configure-flags
8266 (list "--disable-python"
8267 ,@(if (string=? "aarch64-linux" (%current-system))
8268 '("--build=aarch64-unknown-linux-gnu")
8269 '()))))
d1d739fa
CM
8270 (inputs
8271 `(("libgnomecanvas" ,libgnomecanvas)
8272 ("libgnomeui" ,libgnomeui)
8273 ("libglade" ,libglade)
8274 ("gnome-vfs" ,gnome-vfs)
8275 ("gconf" ,gconf)
8276 ("libxml2" ,libxml2)
8277 ("libxslt" ,libxslt)
8278 ("gtk+" ,gtk+)
8279 ("glib" ,glib)))
8280 (native-inputs
8281 `(("intltool" ,intltool)
8282 ("scrollkeeper" ,scrollkeeper)
8283 ("pkg-config" ,pkg-config)))
8284 (home-page "https://wiki.gnome.org/Apps/Planner")
8285 (synopsis "Project management software for the GNOME desktop")
8286 (description
8287 "GNOME Planner is a project management tool based on the Work Breakdown
8288Structure (WBS). Its goal is to enable you to easily plan projects. Based on
8289the resources, tasks, and constraints that you define, Planner generates
8290various views into a project. For example, Planner can show a Gantt chart of
8291the project. It can show a detailed summary of tasks including their
8292duration, cost, and current progress. It can also show a report of resource
8293utilization that highlights under-utilized and over-utilized resources. These
8294views can be printed as PDF or PostScript files, or exported to HTML.")
4b926cb6 8295 (license license:gpl2+)))
64fce637
RS
8296
8297(define-public lollypop
8298 (package
8299 (name "lollypop")
ca32627a 8300 (version "1.2.7")
64fce637
RS
8301 (source
8302 (origin
8303 (method url-fetch)
b98eace8 8304 (uri (string-append "https://gitlab.gnome.org/World/lollypop/uploads/"
ca32627a 8305 "08f973788c7ca46d9285eec2ac818edb/"
3275d43d 8306 "lollypop-" version ".tar.xz"))
64fce637 8307 (sha256
ca32627a 8308 (base32 "0hvq6m4i62i0m63bg4gzpfb9rv1fk6vq5jl2g3ppcgm4srmfm77j"))))
aa498fc0 8309 (build-system meson-build-system)
64fce637
RS
8310 (arguments
8311 `(#:imported-modules ((guix build python-build-system)
aa498fc0
TD
8312 ,@%meson-build-system-modules)
8313 #:glib-or-gtk? #t
5fc9b6c1
EF
8314 #:tests? #f ; no test suite
8315 #:phases
8316 (modify-phases %standard-phases
5fc9b6c1
EF
8317 (add-after 'install 'wrap-program
8318 (lambda* (#:key outputs #:allow-other-keys)
8319 (let ((out (assoc-ref outputs "out"))
8320 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
8321 (wrap-program (string-append out "/bin/lollypop")
8322 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
8323 #t))
8ac8b3b3
TGR
8324 (add-after 'install 'wrap-python
8325 (@@ (guix build python-build-system) wrap))
8326 (add-after 'install 'wrap-glib-or-gtk
8327 (@@ (guix build glib-or-gtk-build-system) wrap-all-programs)))))
64fce637
RS
8328 (native-inputs
8329 `(("intltool" ,intltool)
8330 ("itstool" ,itstool)
aa498fc0
TD
8331 ("glib:bin" ,glib "bin") ; For glib-compile-resources
8332 ("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
64fce637
RS
8333 ("pkg-config" ,pkg-config)))
8334 (inputs
8335 `(("gobject-introspection" ,gobject-introspection)
8ac8b3b3 8336 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5fc9b6c1 8337 ("gst-plugins-base" ,gst-plugins-base)
64fce637
RS
8338 ("libnotify" ,libnotify)
8339 ("libsecret" ,libsecret)
8340 ("libsoup" ,libsoup)
8341 ("python" ,python)
8342 ("python-beautifulsoup4" ,python-beautifulsoup4)
8343 ("python-gst" ,python-gst)
d029afdd 8344 ("python-pil" ,python-pillow)
64fce637 8345 ("python-pycairo" ,python-pycairo)
7460f346 8346 ("python-pygobject" ,python-pygobject-3.34)
64fce637
RS
8347 ("python-pylast" ,python-pylast)
8348 ("totem-pl-parser" ,totem-pl-parser)
8349 ("webkitgtk" ,webkitgtk)))
8350 (propagated-inputs
8351 `(;; gst-plugins-base is required to start Lollypop,
8352 ;; the others are required to play streaming.
64fce637
RS
8353 ("gst-plugins-good" ,gst-plugins-good)
8354 ("gst-plugins-ugly" ,gst-plugins-ugly)))
b98eace8 8355 (home-page "https://wiki.gnome.org/Apps/Lollypop")
64fce637
RS
8356 (synopsis "GNOME music playing application")
8357 (description
8358 "Lollypop is a music player designed to play well with GNOME desktop.
8359Lollypop plays audio formats such as mp3, mp4, ogg and flac and gets information
8360from artists and tracks from the web. It also fetches cover artworks
8361automatically and it can stream songs from online music services and charts.")
8362 (license license:gpl3+)))
d831d49d
AW
8363
8364(define-public gnome-video-effects
8365 (package
8366 (name "gnome-video-effects")
8367 (version "0.4.3")
8368 (source (origin
8369 (method url-fetch)
8370 (uri (string-append "mirror://gnome/sources/" name "/"
8371 (version-major+minor version) "/" name "-"
8372 version ".tar.xz"))
8373 (sha256
8374 (base32
8375 "06c2f1kihyhawap1s3zg5w7q7fypsybkp7xry4hxkdz4mpsy0zjs"))))
8376 (build-system glib-or-gtk-build-system)
8377 (arguments
8378 `(#:out-of-source? #f))
8379 (native-inputs
8380 `(("glib:bin" ,glib "bin")
8381 ("intltool" ,intltool)
8382 ("gettext" ,gettext-minimal)
8383 ("pkg-config" ,pkg-config)))
8384 (home-page "https://wiki.gnome.org/Projects/GnomeVideoEffects")
8385 (synopsis "Video effects for Cheese and other GNOME applications")
8386 (description
8387 "A collection of GStreamer video filters and effects to be used in
8388photo-booth-like software, such as Cheese.")
8389 (license license:gpl2+)))
3511c780
AW
8390
8391(define-public cheese
8392 (package
8393 (name "cheese")
dd33b337 8394 (version "3.32.1")
3511c780
AW
8395 (source (origin
8396 (method url-fetch)
8397 (uri (string-append "mirror://gnome/sources/" name "/"
8398 (version-major+minor version) "/" name "-"
8399 version ".tar.xz"))
8400 (sha256
8401 (base32
dd33b337 8402 "1xlmsm4zsx05ahvpd4mgy1hfhxbag0r5i6p63bksjxdligdd36kv"))))
3511c780
AW
8403 (arguments
8404 ;; Tests require GDK.
8405 `(#:tests? #f
8406 #:phases
8407 (modify-phases %standard-phases
8408 (add-before 'install 'skip-gtk-update-icon-cache
8409 (lambda _
8410 ;; Don't create 'icon-theme.cache'
8411 (substitute* "Makefile"
8412 (("gtk-update-icon-cache") (which "true")))
8413 #t))
8414 (add-after 'install 'wrap-cheese
8415 (lambda* (#:key inputs outputs #:allow-other-keys)
8416 (let ((out (assoc-ref outputs "out"))
8417 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
8418 (wrap-program (string-append out "/bin/cheese")
8419 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
8420 #t)))))
8421 (build-system glib-or-gtk-build-system)
8422 (native-inputs
8423 `(("glib:bin" ,glib "bin")
8424 ("intltool" ,intltool)
8425 ("itstool" ,itstool)
8426 ("libxml2" ,libxml2)
8427 ("pkg-config" ,pkg-config)
8428 ("vala" ,vala)))
8429 (propagated-inputs
6a19f03e
RW
8430 `(("gnome-video-effects" ,gnome-video-effects)
8431 ("clutter" ,clutter)
3511c780
AW
8432 ("clutter-gst" ,clutter-gst)
8433 ("clutter-gtk" ,clutter-gtk)
6a19f03e 8434 ("libcanberra" ,libcanberra)
3511c780
AW
8435 ("gdk-pixbuf" ,gdk-pixbuf)
8436 ("glib" ,glib)
6a19f03e
RW
8437 ("gstreamer" ,gstreamer)))
8438 (inputs
8439 `(("gnome-desktop" ,gnome-desktop)
3511c780 8440 ("gobject-introspection" ,gobject-introspection)
3511c780
AW
8441 ("gst-plugins-base" ,gst-plugins-base)
8442 ("gst-plugins-bad" ,gst-plugins-bad)
8443 ("gtk+" ,gtk+)
3511c780
AW
8444 ("libx11" ,libx11)
8445 ("libxtst" ,libxtst)))
8446 (home-page "https://wiki.gnome.org/Apps/Cheese")
8447 (synopsis "Webcam photo booth software for GNOME")
8448 (description
8449 "Cheese uses your webcam to take photos and videos. Cheese can also
8450apply fancy special effects and lets you share the fun with others.")
8451 (license license:gpl2+)))
3c5dbd2b 8452
8453(define-public sound-juicer
8454 (package
8455 (name "sound-juicer")
8456 (version "3.24.0")
8457 (source
8458 (origin
8459 (method url-fetch)
8460 (uri (string-append "mirror://gnome/sources/" name "/"
8461 (version-major+minor version) "/"
8462 name "-" version ".tar.xz"))
8463 (sha256
8464 (base32
8465 "19qg4xv0f9rkq34lragkmhii1llxsa87llbl28i759b0ks4f6sny"))))
8466 (build-system glib-or-gtk-build-system)
8467 (native-inputs
8468 `(("desktop-file-utils" ,desktop-file-utils)
8469 ("intltool" ,intltool)
8470 ("itstool" ,itstool)
8471 ("pkg-config" ,pkg-config)
8472 ("xmllint" ,libxml2)))
8473 (inputs
8474 `(("gtk+" ,gtk+)
8475 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8476 ("gstreamer" ,gstreamer)
8477 ("gst-plugins-base" ,gst-plugins-base)
8478 ("gst-plugins-good" ,gst-plugins-good)
8479 ("iso-codes" ,iso-codes)
8480 ("libbrasero-media3" ,brasero)
8481 ("libcanberra" ,libcanberra)
8482 ("libdiscid" ,libdiscid)
8483 ("libmusicbrainz" ,libmusicbrainz)
8484 ("neon" ,neon)))
8485 (home-page "https://wiki.gnome.org/Apps/SoundJuicer")
8486 (synopsis "Audio music cd ripper")
8487 (description "Sound Juicer extracts audio from compact discs and convert it
8488into audio files that a personal computer or digital audio player can play.
8489It supports ripping to any audio codec supported by a GStreamer plugin, such as
8490mp3, Ogg Vorbis and FLAC")
8491 (license license:gpl2+)))
4e3fdeb7 8492
0d3f1708
CB
8493(define-public soundconverter
8494 (package
8495 (name "soundconverter")
fa75a213 8496 (version "3.0.1")
0d3f1708
CB
8497 (source
8498 (origin
8499 (method url-fetch)
8500 (uri (string-append "https://launchpad.net/soundconverter/trunk/"
8501 version "/+download/"
8502 "soundconverter-" version ".tar.xz"))
8503
8504 (sha256
fa75a213 8505 (base32 "1d6x1yf8psqbd9zbybxivfqg55khcnngp2mn92l161dfdk9512c5"))
0d3f1708
CB
8506 (patches
8507 (search-patches
8508 "soundconverter-remove-gconf-dependency.patch"))))
8509 (build-system glib-or-gtk-build-system)
8510 (arguments
8511 `(#:imported-modules ((guix build python-build-system)
8512 (guix build glib-or-gtk-build-system)
8513 ,@%gnu-build-system-modules)
8514
8515 #:modules ((guix build glib-or-gtk-build-system)
8516 (guix build utils)
8517 ((guix build gnu-build-system) #:prefix gnu:)
8518 ((guix build python-build-system) #:prefix python:))
8519
8520 #:phases
8521 (modify-phases %standard-phases
0d3f1708
CB
8522 (add-after 'install 'wrap-soundconverter-for-python
8523 (assoc-ref python:%standard-phases 'wrap))
8524 (add-after 'install 'wrap-soundconverter
8525 (lambda* (#:key inputs outputs #:allow-other-keys)
8526 (let ((out (assoc-ref outputs "out"))
8527 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
8528 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
8529 (wrap-program (string-append out "/bin/soundconverter")
8530 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
8531 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
8532 #t)))))
8533 (native-inputs
8534 `(("intltool" ,intltool)
8535 ("pkg-config" ,pkg-config)
8536 ("glib:bin" ,glib "bin")))
8537 (inputs
8538 `(("gtk+" ,gtk+)
8539 ("python" ,python)
8540 ("python-pygobject" ,python-pygobject)
8541 ("gstreamer" ,gstreamer)
8542 ("gst-plugins-base" ,gst-plugins-base)))
8543 (home-page "http://soundconverter.org/")
8544 (synopsis "Convert between audio formats with a graphical interface")
8545 (description
8546 "SoundConverter supports converting between many audio formats including
8547Opus, Ogg Vorbis, FLAC and more. It supports parallel conversion, and
8548configurable file renaming. ")
8549 (license license:gpl3)))
8550
4e3fdeb7 8551(define-public workrave
89f2d736
TGR
8552 (package
8553 (name "workrave")
aa51d92c 8554 (version "1.10.34")
89f2d736
TGR
8555 (source
8556 (origin
8557 (method git-fetch)
8558 (uri (git-reference
8559 (url "https://github.com/rcaelers/workrave.git")
c2e50474
TGR
8560 (commit (string-append "v" (string-map
8561 (match-lambda (#\. #\_) (chr chr))
8562 version)))))
89f2d736
TGR
8563 (file-name (git-file-name name version))
8564 (sha256
aa51d92c 8565 (base32 "0czwhr7nw523753ajcjjfwrf91mq8pmzr19gp0srqsvb1dsn1zcf"))))
89f2d736 8566 (build-system glib-or-gtk-build-system)
d1c96847
MC
8567 (inputs `(("glib" ,glib)
8568 ("gtk+" ,gtk+)
8569 ("gdk-pixbuf" ,gdk-pixbuf)
8570 ("gtkmm" ,gtkmm)
8571 ("glibmm" ,glibmm)
8572 ("libx11" ,libx11)
8573 ("libxtst" ,libxtst)
8574 ("dconf" ,dconf)
8575 ("libice" ,libice)
8576 ("libsm" ,libsm)
8577 ("libxscrnsaver" ,libxscrnsaver)))
aa51d92c 8578 (native-inputs `(("boost" ,boost)
89f2d736
TGR
8579 ("pkg-config" ,pkg-config)
8580 ("gettext" ,gnu-gettext)
8581 ("autoconf" ,autoconf)
8582 ("autoconf-archive" , autoconf-archive)
8583 ("automake" ,automake)
8584 ("libtool" ,libtool)
8585 ("intltool" ,intltool)
89f2d736 8586 ("gobject-introspection" ,gobject-introspection)
aa51d92c
MC
8587 ("python3" ,python-3)
8588 ("python-jinja2" ,python-jinja2)))
89f2d736
TGR
8589 (synopsis "Tool to help prevent repetitive strain injury (RSI)")
8590 (description
8591 "Workrave is a program that assists in the recovery and prevention of
cc00249b
TGR
8592repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
8593micro-pauses and rest breaks, and restricts you to your daily limit.")
89f2d736
TGR
8594 (home-page "http://www.workrave.org")
8595 (license license:gpl3+)))
312afa7d
LC
8596
8597(define-public ghex
8598 (package
8599 (name "ghex")
3748992a 8600 (version "3.18.4")
312afa7d
LC
8601 (source (origin
8602 (method url-fetch)
2fbab848 8603 (uri (string-append "mirror://gnome/sources/ghex/"
312afa7d 8604 (version-major+minor version) "/"
2fbab848 8605 "ghex-" version ".tar.xz"))
312afa7d
LC
8606 (sha256
8607 (base32
3748992a
KK
8608 "1h1pjrr9wynclfykizqd78dbi785wjz6b63p31k87kjvzy8w3nf2"))))
8609 (build-system meson-build-system)
8610 (arguments
8611 '(#:glib-or-gtk? #t
8612 #:phases
8613 (modify-phases %standard-phases
8614 (add-after 'unpack 'skip-gtk-update-icon-cache
8615 ;; Don't create 'icon-theme.cache'.
8616 (lambda _
8617 (substitute* "meson_post_install.py"
8618 (("gtk-update-icon-cache") (which "true")))
8619 #t)))))
312afa7d
LC
8620 (native-inputs
8621 `(("pkg-config" ,pkg-config)
3748992a 8622 ("glib:bin" ,glib "bin") ; for glib-compile-schemas
312afa7d
LC
8623 ("gnome-common" ,gnome-common)
8624 ("which" ,which)
8625 ("intltool" ,intltool)
8626 ("yelp-tools" ,yelp-tools)
2fbab848 8627 ("desktop-file-utils" ,desktop-file-utils))) ; for 'desktop-file-validate'
312afa7d
LC
8628 (inputs
8629 `(("atk" ,atk)
8630 ("gtk" ,gtk+)))
8631 (synopsis "GNOME hexadecimal editor")
8632 (description "The GHex program can view and edit files in two ways:
8633hexadecimal or ASCII. It is useful for editing binary files in general.")
8634 (home-page "https://wiki.gnome.org/Apps/Ghex")
8635 (license license:gpl2)))
4b2ed6c2
RW
8636
8637(define-public libdazzle
8638 (package
8639 (name "libdazzle")
64fa66ba 8640 (version "3.33.90")
4b2ed6c2
RW
8641 (source (origin
8642 (method url-fetch)
687b4909 8643 (uri (string-append "mirror://gnome/sources/libdazzle/"
4b2ed6c2 8644 (version-major+minor version) "/"
687b4909 8645 "libdazzle-" version ".tar.xz"))
4b2ed6c2
RW
8646 (sha256
8647 (base32
64fa66ba 8648 "189m7q88d1a7bq0yyal9f3yhm9kz46lb61379nn4wsnnhpa1d0qs"))))
4b2ed6c2
RW
8649 (build-system meson-build-system)
8650 (arguments
8651 `(#:phases
8652 (modify-phases %standard-phases
4b2ed6c2
RW
8653 (add-before 'check 'pre-check
8654 (lambda _
8655 ;; Tests require a running X server.
8656 (system "Xvfb :1 &")
8657 (setenv "DISPLAY" ":1")
8658 #t)))))
8659 (native-inputs
687b4909 8660 `(("glib" ,glib "bin") ; glib-compile-resources
4b2ed6c2 8661 ("pkg-config" ,pkg-config)
687b4909 8662 ;; For tests.
ff337525 8663 ("xorg-server" ,xorg-server-for-tests)))
4b2ed6c2
RW
8664 (inputs
8665 `(("glib" ,glib)
8666 ("gobject-introspection" ,gobject-introspection)
8667 ("gtk+" ,gtk+)
8668 ("vala" ,vala)))
8669 (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
8670 (synopsis "Companion library to GObject and Gtk+")
8671 (description "The libdazzle library is a companion library to GObject and
8672Gtk+. It provides various features that the authors wish were in the
8673underlying library but cannot for various reasons. In most cases, they are
8674wildly out of scope for those libraries. In other cases, they are not quite
8675generic enough to work for everyone.")
8676 (license license:gpl3+)))
7d3bb433
RW
8677
8678(define-public evolution
8679 (package
8680 (name "evolution")
06141f83 8681 (version "3.32.4")
7d3bb433
RW
8682 (source (origin
8683 (method url-fetch)
8684 (uri (string-append "mirror://gnome/sources/evolution/"
8685 (version-major+minor version) "/"
8686 "evolution-" version ".tar.xz"))
8687 (sha256
8688 (base32
06141f83 8689 "00hmmg4hfns8rq9rcilmy0gi1xkksld27lfbd9zmw2xw37wjmbqh"))))
7d3bb433
RW
8690 (build-system cmake-build-system)
8691 (arguments
5229bea1
KK
8692 `(#:imported-modules (,@%cmake-build-system-modules
8693 (guix build glib-or-gtk-build-system))
8694 #:modules ((guix build cmake-build-system)
8695 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
8696 (guix build utils))
8697 #:configure-flags
7d3bb433 8698 (list "-DENABLE_PST_IMPORT=OFF" ; libpst is not packaged
5229bea1 8699 "-DENABLE_LIBCRYPTUI=OFF") ; libcryptui hasn't seen a release
7d3bb433 8700 ; in four years and cannot be built.
5229bea1
KK
8701 #:phases
8702 (modify-phases %standard-phases
8703 ;; The build system attempts to install user interface modules to the
8704 ;; output directory of the "evolution-data-server" package. This
8705 ;; change redirects that change.
8706 (add-after 'unpack 'patch-ui-module-dir
8707 (lambda* (#:key outputs #:allow-other-keys)
8708 (substitute* "src/modules/alarm-notify/CMakeLists.txt"
8709 (("\\$\\{edsuimoduledir\\}")
8710 (string-append (assoc-ref outputs "out")
8711 "/lib/evolution-data-server/ui-modules")))
8712 #t))
8713 (add-after 'install 'glib-or-gtk-compile-schemas
8714 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
8715 (add-after 'install 'glib-or-gtk-wrap
8716 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
7d3bb433 8717 (native-inputs
ad6e168b 8718 `(("glib" ,glib "bin") ; glib-mkenums
7d3bb433
RW
8719 ("pkg-config" ,pkg-config)
8720 ("intltool" ,intltool)
8721 ("itstool" ,itstool)))
8722 (inputs
8723 `(("enchant" ,enchant)
8724 ("evolution-data-server" ,evolution-data-server) ; must be the same version
8725 ("gcr" ,gcr)
ad6e168b 8726 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7d3bb433
RW
8727 ("gnome-autoar" ,gnome-autoar)
8728 ("gnome-desktop" ,gnome-desktop)
8729 ("gtkspell3" ,gtkspell3)
8730 ("highlight" ,highlight)
8731 ("libcanberra" ,libcanberra)
b63c06f1 8732 ("libedataserverui" ,evolution-data-server)
7d3bb433
RW
8733 ("libgweather" ,libgweather)
8734 ("libnotify" ,libnotify)
8735 ("libsoup" ,libsoup)
8736 ("nss" ,nss)
8737 ("openldap" ,openldap)
8738 ("webkitgtk" ,webkitgtk)
8739 ("ytnef" ,ytnef)))
8740 (home-page "https://gitlab.gnome.org/GNOME/evolution")
8741 (synopsis "Manage your email, contacts and schedule")
8742 (description "Evolution is a personal information management application
8743that provides integrated mail, calendaring and address book
8744functionality.")
8745 ;; See COPYING for details.
23dbe621 8746 (license (list license:lgpl2.1 license:lgpl3 ; either one of these
7d3bb433 8747 license:openldap2.8 ; addressbook/gui/component/openldap-extract.h
23dbe621 8748 license:lgpl2.1+)))) ; smime/lib/*
169d63f5
AT
8749
8750(define-public gthumb
8751 (package
8752 (name "gthumb")
8280676b 8753 (version "3.8.2")
169d63f5
AT
8754 (source (origin
8755 (method url-fetch)
8756 (uri (string-append "mirror://gnome/sources/gthumb/"
8757 (version-major+minor version) "/"
8758 "gthumb-" version ".tar.xz"))
8759 (sha256
8760 (base32
8280676b 8761 "15wqks35ks5dm7zj046dfd45vvrilan2ayfy2sxiprv7q74cip2q"))))
169d63f5
AT
8762 (build-system meson-build-system)
8763 (arguments
8764 `(#:glib-or-gtk? #t
8765 #:configure-flags
8766 ;; Ensure the RUNPATH contains all installed library locations.
8767 (list (string-append "-Dc_link_args=-Wl,-rpath="
8768 (assoc-ref %outputs "out")
8769 "/lib/gthumb/extensions")
8770 (string-append "-Dcpp_link_args=-Wl,-rpath="
8771 (assoc-ref %outputs "out")
8772 "/lib/gthumb/extensions"))))
8773 (native-inputs
8774 `(("pkg-config" ,pkg-config)
8775 ("glib:bin" ,glib "bin") ; for glib-compile-resources
8776 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8777 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8778 ("intltool" ,intltool)
8779 ("itstool" ,itstool)))
8780 (inputs
8781 `(("exiv2" ,exiv2)
8782 ("gtk" ,gtk+)
8783 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8784 ("gstreamer" ,gstreamer)
8785 ("clutter" ,clutter)
8786 ("clutter-gst" ,clutter-gst)
8787 ("clutter-gtk" ,clutter-gtk)
8788 ("libjpeg" ,libjpeg)
8789 ("libtiff" ,libtiff)
8790 ("libraw" ,libraw)))
8791 (home-page "https://wiki.gnome.org/Apps/Gthumb")
8792 (synopsis "GNOME image viewer and browser")
8793 (description "GThumb is an image viewer, browser, organizer, editor and
8794advanced image management tool")
8795 (license license:gpl2+)))
08be02be
AT
8796
8797(define-public terminator
8798 (package
8799 (name "terminator")
8800 (version "1.91")
8801 (source (origin
8802 (method url-fetch)
8803 (uri (string-append "https://launchpad.net/" name "/"
8804 "gtk3/" version "/" "+download/"
8805 name "-" version ".tar.gz"))
8806 (sha256
8807 (base32
8808 "0sdyqwydmdnh7j6mn74vrywz35m416kqsbxbrqcnv5ak08y6xxwm"))))
8809 (build-system python-build-system)
8810 (native-inputs
8811 `(("intltool" ,intltool)
8812 ("glib:bin" ,glib "bin") ; for glib-compile-resources
8813 ("gettext" ,gettext-minimal)
8814 ("pkg-config" ,pkg-config)))
8815 (inputs
8816 `(("cairo" ,cairo)
8817 ("gobject-introspection" ,gobject-introspection)
96681d4b 8818 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
08be02be
AT
8819 ("python2-pycairo" ,python2-pycairo)
8820 ("python2-pygobject" ,python2-pygobject)
8821 ("python2-psutil" ,python2-psutil)
8822 ("vte" ,vte)))
8823 (arguments
96681d4b
TGR
8824 `(#:python ,python-2 ; Python 3 isn't supported
8825 #:imported-modules ((guix build glib-or-gtk-build-system)
8826 ,@%python-build-system-modules)
8827 #:modules ((guix build python-build-system)
8828 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
8829 (guix build utils))
08be02be
AT
8830 #:phases
8831 (modify-phases %standard-phases
8832 (add-after
8833 'install 'wrap-program
8834 (lambda* (#:key outputs #:allow-other-keys)
8835 (let ((prog (string-append (assoc-ref outputs "out")
8836 "/bin/terminator")))
8837 (wrap-program prog
8838 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
8839 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
96681d4b
TGR
8840 #t)))
8841 (add-after 'wrap-program 'glib-or-gtk-wrap
8842 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
08be02be
AT
8843 (home-page "https://gnometerminator.blogspot.com/")
8844 (synopsis "Store and run multiple GNOME terminals in one window")
8845 (description
8846 "Terminator allows you to run multiple GNOME terminals in a grid and
8847+tabs, and it supports drag and drop re-ordering of terminals.")
8848 (license license:gpl2)))
213315d4
JF
8849
8850(define-public libhandy
8851 (package
8852 (name "libhandy")
f6501b9f 8853 (version "0.0.12")
213315d4
JF
8854 (source
8855 (origin
8856 (method git-fetch)
8857 (uri (git-reference
8858 (url "https://source.puri.sm/Librem5/libhandy")
8859 (commit (string-append "v" version))))
8860 (file-name (git-file-name name version))
8861 (sha256
f6501b9f 8862 (base32 "09wlknarzsbk9hr5ws6s7x5kibkhx9ayrbhshfqib4zkhq2f76hw"))))
213315d4
JF
8863 (build-system meson-build-system)
8864 (arguments
8865 `(#:configure-flags
8866 '("-Dglade_catalog=disabled"
8867 "-Dgtk_doc=true")
8868 #:phases
8869 (modify-phases %standard-phases
213315d4
JF
8870 (add-before 'check 'pre-check
8871 (lambda _
8872 ;; Tests require a running X server.
8873 (system "Xvfb :1 &")
8874 (setenv "DISPLAY" ":1")
8875 #t)))))
8876 (inputs
8877 `(("gtk+" ,gtk+)))
8878 (native-inputs
8879 `(("glib:bin" ,glib "bin")
8880 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
8881 ("vala" ,vala)
8882 ("gtk-doc" ,gtk-doc)
8883 ("pkg-config" ,pkg-config)
8884 ("gettext" ,gettext-minimal)
d41ee146
TGR
8885
8886 ;; Test suite dependencies.
ff337525 8887 ("xorg-server" ,xorg-server-for-tests)
d41ee146 8888 ("hicolor-icon-theme" ,hicolor-icon-theme)))
213315d4
JF
8889 (home-page "https://source.puri.sm/Librem5/libhandy")
8890 (synopsis "Library full of GTK+ widgets for mobile phones")
8891 (description "The aim of the handy library is to help with developing user
ae4e1414
JB
8892interfaces for mobile devices using GTK+. It provides responsive GTK+ widgets
8893for usage on small and big screens.")
213315d4 8894 (license license:lgpl2.1+)))
a830d14d
GL
8895
8896(define-public libgit2-glib
8897 (package
8898 (name "libgit2-glib")
8899 (version "0.28.0.1")
8900 (source (origin
8901 (method url-fetch)
8902 (uri (string-append "mirror://gnome/sources/" name "/"
8903 (version-major+minor version) "/"
8904 name "-" version ".tar.xz"))
8905 (sha256
8906 (base32
8907 "0a0g7aw66rfgnqr4z7fgbk5zzcjq66m4rp8v4val3a212941h0g7"))))
8908 (build-system meson-build-system)
8909 (native-inputs
8910 `(("glib:bin" ,glib "bin") ;; For glib-mkenums
8911 ("gobject-introspection" ,gobject-introspection)
8912 ("intltool" ,intltool)
8913 ("libssh2" ,libssh2)
8914 ("pkg-config" ,pkg-config)
8915 ("python-pygobject" ,python-pygobject)
8916 ("python-wrapper" ,python-wrapper)
8917 ("vala" ,vala)))
8918 (inputs
8919 `(("glib" ,glib)
8920 ("libgit2" ,libgit2)))
8921 (synopsis "GLib wrapper around the libgit2 Git access library")
8922 (description "libgit2-glib is a GLib wrapper library around the libgit2 Git
8923access library. It only implements the core plumbing functions, not really the
8924higher level porcelain stuff.")
8925 (home-page "https://wiki.gnome.org/Projects/Libgit2-glib")
8926 (license license:gpl2+)))
93beace0 8927
08db81c9
LP
8928(define-public gitg
8929 (package
8930 (name "gitg")
8931 (version "3.32.1")
8932 (source (origin
8933 (method url-fetch)
8934 (uri (string-append "mirror://gnome/sources/" name "/"
8935 (version-major+minor version) "/"
8936 name "-" version ".tar.xz"))
8937 (sha256
8938 (base32
8939 "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914"))))
8940 (build-system meson-build-system)
8941 (arguments
8942 `(#:glib-or-gtk? #t
8943 #:phases
8944 (modify-phases %standard-phases
8945 (add-after 'unpack 'disable-post-install-partially
8946 (lambda _
8947 (substitute* "meson_post_install.py"
8948 (("'python'") ; there are no python sources to compile
8949 (string-append "'" (which "true") "'"))
8950 (("gtk-update-icon-cache") (which "true")))
8951 #t))
8952 (add-after 'unpack 'fix-test-sources
8953 (lambda _
8954 (substitute* "tests/libgitg/test-commit.vala"
8955 (("/bin/bash") (which "bash")))
8956 #t))
8957 (add-after 'glib-or-gtk-wrap 'wrap-typelib
8958 (lambda* (#:key outputs #:allow-other-keys)
8959 (let ((prog (string-append (assoc-ref outputs "out")
8960 "/bin/gitg")))
8961 (wrap-program prog
8962 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
8963 #t))))))
8964 (inputs
8965 `(("glib" ,glib)
8966 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8967 ("gtk+" ,gtk+)
8968 ("gtkspell3" ,gtkspell3)
8969 ("gtksourceview" ,gtksourceview-3)
8970 ("json-glib" ,json-glib)
8971 ("libdazzle" ,libdazzle)
8972 ("libgee" ,libgee)
8973 ("libgit2" ,libgit2) ; propagated by libgit2-glib
8974 ("libgit2-glib" ,libgit2-glib)
8975 ("libpeas" ,libpeas)
8976 ("libsecret" ,libsecret)
8977 ("libsoup" ,libsoup)
8978 ("libxml2" ,libxml2)))
8979 (native-inputs
8980 `(("glib:bin" ,glib "bin")
8981 ("gtk+:bin" ,gtk+ "bin")
8982 ("gobject-introspection" ,gobject-introspection)
8983 ("intltool" ,intltool)
8984 ("pkg-config" ,pkg-config)
8985 ("vala" ,vala)))
8986 (synopsis "Graphical user interface for git")
8987 (description
8988 "gitg is a graphical user interface for git. It aims at being a small,
8989fast and convenient tool to visualize the history of git repositories.
8990Besides visualization, gitg also provides several utilities to manage your
8991repository and commit your work.")
8992 (home-page "https://wiki.gnome.org/Apps/Gitg")
8993 (license license:gpl2+)))
8994
1e600ed0
RW
8995(define-public gamin
8996 (package
8997 (name "gamin")
8998 (version "0.1.10")
8999 (source (origin
9000 (method url-fetch)
9001 (uri (string-append "mirror://gnome/sources/" name "/"
9002 (version-major+minor version) "/"
9003 name "-" version ".tar.bz2"))
9004 (sha256
9005 (base32
9006 "02n1zr9y8q9lyczhcz0nxar1vmf8p2mmbw8kq0v43wg21jr4i6d5"))))
9007 (build-system gnu-build-system)
9008 (arguments
9009 `(#:phases
9010 (modify-phases %standard-phases
9011 (add-after 'unpack 'remove-deprecated-macro
9012 (lambda _
9013 (substitute* '("server/gam_node.c"
9014 "server/gam_subscription.h"
9015 "server/gam_node.h"
9016 "server/gam_subscription.c")
9017 (("G_CONST_RETURN") "const"))
9018 #t)))))
9019 (inputs
9020 `(("glib" ,glib)))
9021 (native-inputs
9022 `(("intltool" ,intltool)
9023 ("pkg-config" ,pkg-config)))
9024 (home-page "https://people.gnome.org/~veillard/gamin/")
9025 (synopsis "File alteration monitor")
9026 (description
9027 "Gamin is a file and directory monitoring system defined to be a subset
9028of the FAM (File Alteration Monitor) system. This is a service provided by a
9029library which allows to detect when a file or a directory has been modified.")
9030 (license license:gpl2+)))
9031
93beace0
DW
9032(define-public gnome-mahjongg
9033 (package
9034 (name "gnome-mahjongg")
9035 (version "3.35.1")
9036 (source (origin
9037 (method git-fetch)
9038 (uri (git-reference
9039 (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
9040 (commit version)))
9041 (file-name (git-file-name name version))
9042 (sha256
9043 (base32
9044 "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
9045 (build-system meson-build-system)
9046 (arguments
9047 `(#:glib-or-gtk? #t))
9048 (native-inputs
9049 `(("appstream-glib" ,appstream-glib)
9050 ("gettext" ,gettext-minimal)
9051 ("glib:bin" ,glib "bin") ;; For glib-compile-resources
9052 ("gtk+" ,gtk+ "bin") ;; For gtk-update-icon-cache
9053 ("itstool" ,itstool)
9054 ("pkg-config" ,pkg-config)
9055 ("vala" ,vala)))
9056 (propagated-inputs
9057 `(("dconf" ,dconf)))
9058 (inputs
9059 `(("glib" ,glib)
9060 ("gtk+" ,gtk+)
9061 ("librsvg" ,librsvg)))
9062 (synopsis "Mahjongg tile-matching game")
9063 (description "GNOME Mahjongg is a game based on the classic Chinese
9064tile-matching game Mahjong. It features multiple board layouts, tile themes,
9065and a high score table.")
9066 (home-page "https://wiki.gnome.org/Apps/Mahjongg")
9067 (license license:gpl2+)))
f825476c 9068
76ea7632
RG
9069(define-public gnome-themes-extra
9070 (package
9071 (name "gnome-themes-extra")
9072 (version "3.28")
9073 (source
9074 (origin
9075 (method url-fetch)
9076 (uri (string-append "mirror://gnome/sources/" name "/"
9077 (version-major+minor version) "/" name "-"
9078 version ".tar.xz"))
9079 (sha256
9080 (base32
9081 "06aqg9asq2vqi9wr29bs4v8z2bf4manhbhfghf4nvw01y2zs0jvw"))))
9082 (build-system gnu-build-system)
885424bf
RG
9083 (arguments
9084 '(#:configure-flags
9085 ;; Don't create 'icon-theme.cache'.
9086 (let* ((coreutils (assoc-ref %build-inputs "coreutils"))
9087 (true (string-append coreutils "/bin/true")))
9088 (list (string-append "GTK_UPDATE_ICON_CACHE=" true)))))
76ea7632
RG
9089 (native-inputs
9090 `(("glib:bin" ,glib "bin")
9091 ("intltool" ,intltool)
9092 ("pkg-config" ,pkg-config)))
9093 (inputs
9094 `(("glib" ,glib)
9095 ("gtk+" ,gtk+)
9096 ("gtk+-2" ,gtk+-2)
9097 ("librsvg" ,librsvg)
9098 ("libxml2" ,libxml2)))
9099 (home-page "https://gitlab.gnome.org/GNOME/gnome-themes-extra")
9100 (synopsis "GNOME Extra Themes")
9101 (description "This package provides themes and related elements that don't
9102really fit in other upstream packages. It offers legacy support for GTK+ 2
9103versions of Adwaita, Adwaita-dark and HighContrast themes. It also provides
9104index files needed for Adwaita to be used outside of GNOME.")
9105 (license license:lgpl2.1+)))
9106
f825476c
LP
9107(define-public polari
9108 (package
9109 (name "polari")
9110 (version "3.32.2")
9111 (source (origin
9112 (method url-fetch)
9113 (uri (string-append "mirror://gnome/sources/polari/"
9114 (version-major+minor version)
9115 "/polari-" version ".tar.xz"))
9116 (sha256
9117 (base32
9118 "0h0w9j3y067l911gpj446b3a2w1i2vzr1w2a7cz7i5rhn6qkf2sp"))))
9119 (build-system meson-build-system)
9120 (arguments
9121 `(#:glib-or-gtk? #t
9122 #:phases
9123 (modify-phases %standard-phases
9124 (add-after 'unpack 'skip-gtk-update-icon-cache
9125 (lambda _
9126 (substitute* "meson/meson-postinstall.sh"
9127 (("gtk-update-icon-cache") (which "true")))
9128 #t))
9129 (add-after 'glib-or-gtk-wrap 'wrap-typelib
9130 (lambda* (#:key outputs #:allow-other-keys)
9131 (let ((prog (string-append (assoc-ref outputs "out")
9132 "/bin/polari")))
9133 (wrap-program prog
9134 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
9135 #t))))))
9136 (inputs
9137 `(("glib" ,glib)
9138 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
9139 ("gspell" ,gspell)
9140 ("gtk+" ,gtk+)
9141 ("gjs" ,gjs)
9142 ("libsecret" ,libsecret)
9143 ("libsoup" ,libsoup)
9144 ("telepathy-glib" ,telepathy-glib)
9145 ("telepathy-logger" ,telepathy-logger)))
9146 (native-inputs
9147 `(("glib:bin" ,glib "bin")
9148 ("gobject-introspection" ,gobject-introspection)
9149 ("intltool" ,intltool)
9150 ("pkg-config" ,pkg-config)
9151 ("yelp-tools" ,yelp-tools)))
9152 (propagated-inputs
9153 `(("telepathy-idle" ,telepathy-idle)
9154 ("telepathy-mission-control" ,telepathy-mission-control)))
9155 (synopsis "Simple IRC Client")
9156 (description
9157 "Polari is a simple Internet Relay Chat (IRC) client that is designed to
9158integrate seamlessly with the GNOME desktop.")
9159 (home-page "https://wiki.gnome.org/Apps/Polari")
9160 (license license:gpl2+)))