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