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