gnu: Add pipewire.
[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")
d48d4c98 4049 (version "0.3.9")
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
d48d4c98
KK
4058 "1wnabc69730jsv8dljj5ik8g7p581nw60mw1mkgamkzjcb6821bk"))))
4059 (build-system meson-build-system)
8d4791bf
MW
4060 (native-inputs
4061 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
4062 ("intltool" ,intltool)
4063 ("pkg-config" ,pkg-config)
d48d4c98
KK
4064 ("gobject-introspection" ,gobject-introspection)
4065 ("gtk-doc" ,gtk-doc)
4066 ("vala" ,vala)))
8d4791bf 4067 (inputs
6d7273a0
KK
4068 `(("cyrus-sasl" ,cyrus-sasl)
4069 ("glib" ,glib)
8d4791bf
MW
4070 ("gtk+" ,gtk+)
4071 ("libxml2" ,libxml2)
6d7273a0 4072 ("liboauth" ,liboauth)
8d4791bf
MW
4073 ("libsoup" ,libsoup)
4074 ("totem-pl-parser" ,totem-pl-parser)))
8d4791bf
MW
4075 (native-search-paths
4076 (list (search-path-specification
4077 (variable "GRL_PLUGIN_PATH")
4078 (files (list (string-append "lib/grilo-"
4079 (version-major+minor version)))))))
d48d4c98 4080 (home-page "https://wiki.gnome.org/action/show/Projects/Grilo")
8d4791bf
MW
4081 (synopsis "Framework for discovering and browsing media")
4082 (description
4083 "Grilo is a framework focused on making media discovery and browsing easy
4084for application developers.")
4085 (license license:lgpl2.1+)))
7b212526
MW
4086
4087(define-public grilo-plugins
4088 (package
4089 (name "grilo-plugins")
22753632 4090 (version "0.3.3")
7b212526
MW
4091 (source
4092 (origin
4093 (method url-fetch)
4094 (uri (string-append "mirror://gnome/sources/" name "/"
4095 (version-major+minor version) "/"
4096 name "-" version ".tar.xz"))
4097 (sha256
4098 (base32
22753632 4099 "172vr1y98d2mzlmg5akjn4ibrcj3gh22cwnb3cv9rvvzhj3yhrpy"))))
7b212526
MW
4100 (build-system gnu-build-system)
4101 (native-inputs
4102 `(("glib:bin" ,glib "bin") ; for glib-mkenums and glib-genmarshal
4103 ("intltool" ,intltool)
4104 ("itstool" ,itstool)
4105 ("pkg-config" ,pkg-config)))
4106 (inputs
4107 `(("grilo" ,grilo)
4108 ("glib" ,glib)
4109 ("libxml2" ,libxml2)
4110 ("sqlite" ,sqlite)
4111 ("gom" ,gom)
4112 ;; XXX TODO: Add oauth
4113 ;; XXX TODO: Add goa
4114 ;; XXX TODO: Add gdata (e.g. needed for youtube plugin)
4115 ;; XXX TODO: Add lua (needs help finding it)
4116 ("json-glib" ,json-glib)
4117 ("avahi" ,avahi)
4118 ("gmime" ,gmime)
4119 ("libsoup" ,libsoup)
4120 ("libarchive" ,libarchive)
4121 ("totem-pl-parser" ,totem-pl-parser)))
4122 (arguments
4123 `(#:make-flags (list (string-append "GRL_PLUGINS_DIR="
4124 %output
4125 "/lib/grilo-"
4126 ,(version-major+minor version)))
4127 ;; XXX FIXME: Try to get the test suite working. It appears to require
4128 ;; a working system dbus. Inside the build container, all tests fail
4129 ;; with: "assertion failed: (source)". Outside of the build container,
4130 ;; most tests succeed.
4131 #:tests? #f))
f032d0be 4132 (home-page "https://live.gnome.org/Grilo")
7b212526
MW
4133 (synopsis "Plugins for the Grilo media discovery library")
4134 (description
4135 "Grilo is a framework focused on making media discovery and browsing easy
4136for application developers.")
4137 (license license:lgpl2.1+)))
4e3fc547
MW
4138
4139(define-public totem
4140 (package
4141 (name "totem")
995ef5ea 4142 (version "3.32.1")
4e3fc547
MW
4143 (source
4144 (origin
4145 (method url-fetch)
4146 (uri (string-append "mirror://gnome/sources/" name "/"
4147 (version-major+minor version) "/"
4148 name "-" version ".tar.xz"))
4149 (sha256
4150 (base32
995ef5ea 4151 "0yra8apc7smpwf7d1k8crhrm8d4wix24ds6i9yxbch1v11jnhr3v"))))
7ad81b8b 4152 (build-system meson-build-system)
4e3fc547
MW
4153 (native-inputs
4154 `(("pkg-config" ,pkg-config)
4155 ("desktop-file-utils" ,desktop-file-utils)
4156 ("gobject-introspection" ,gobject-introspection)
7ad81b8b 4157 ("glib:bin" ,glib "bin") ;for 'glib-mkenums'
4e3fc547 4158 ("intltool" ,intltool)
bcb354ad 4159 ("itstool" ,itstool)
995ef5ea
KK
4160 ("xmllint" ,libxml2)
4161 ("python-pylint" ,python-pylint)
4162 ("xorg-server" ,xorg-server-for-tests)))
4e3fc547
MW
4163 (propagated-inputs
4164 `(("dconf" ,dconf)))
4165 (inputs
4166 `(("gtk+" ,gtk+)
4167 ("gdk-pixbuf" ,gdk-pixbuf)
4168 ("atk" ,atk)
4169 ("cairo" ,cairo)
4170 ("dbus-glib" ,dbus-glib)
4171 ("clutter" ,clutter)
4172 ("clutter-gtk" ,clutter-gtk)
4173 ("clutter-gst" ,clutter-gst)
6a6db57f 4174 ("xorgproto" ,xorgproto)
4e3fc547
MW
4175 ("libxxf86vm" ,libxxf86vm)
4176 ("libxtst" ,libxtst)
4177 ("libxrandr" ,libxrandr)
4178 ("libxml2" ,libxml2)
4179 ("libsoup" ,libsoup)
4180 ("libpeas" ,libpeas)
4181 ("librsvg" ,librsvg)
4182 ("lirc" ,lirc)
4183 ("gnome-desktop" ,gnome-desktop)
4184 ("gstreamer" ,gstreamer)
4185 ("gst-plugins-base" ,gst-plugins-base)
4186 ("gst-plugins-good" ,gst-plugins-good)
4187 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4188 ("adwaita-icon-theme" ,adwaita-icon-theme)
d7b63ba9 4189 ("python" ,python)
995ef5ea 4190 ("python-pygobject" ,python-pygobject)
4e3fc547
MW
4191 ("totem-pl-parser" ,totem-pl-parser)
4192 ("grilo" ,grilo)
4193 ("grilo-plugins" ,grilo-plugins)
4e3fc547
MW
4194 ("vala" ,vala)))
4195 (arguments
7ad81b8b
LC
4196 `(#:glib-or-gtk? #t
4197
4198 ;; Disable automatic GStreamer plugin installation via PackageKit and
ec5c24f9 4199 ;; all that.
7ad81b8b 4200 #:configure-flags '("-D" "enable-easy-codec-installation=no"
a388c951
LC
4201
4202 ;; Do not build .a files for the plugins, it's
4203 ;; completely useless. This saves 2 MiB.
7ad81b8b 4204 "--default-library" "shared")
ec5c24f9 4205 #:phases
4e3fc547 4206 (modify-phases %standard-phases
d51b19ad
EF
4207 (add-after 'unpack 'skip-gtk-update-icon-cache
4208 ;; Don't create 'icon-theme.cache'.
4209 (lambda _
4210 (substitute* "meson_post_install.py"
4211 (("gtk-update-icon-cache") "true"))
4212 #t))
6368eb39
DM
4213 (add-before
4214 'install 'disable-cache-generation
4215 (lambda _
4216 (setenv "DESTDIR" "/")
4217 #t))
995ef5ea
KK
4218 (add-before
4219 'check 'pre-check
4220 (lambda _
4221 ;; Tests require a running X server.
4222 (system "Xvfb :1 &")
4223 (setenv "DISPLAY" ":1")
4224 #t))
4e3fc547
MW
4225 (add-after
4226 'install 'wrap-totem
4227 (lambda* (#:key inputs outputs #:allow-other-keys)
4228 (let ((out (assoc-ref outputs "out"))
4229 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
4230 (grl-plugin-path (getenv "GRL_PLUGIN_PATH")))
4231 (wrap-program (string-append out "/bin/totem")
4232 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
39c853bd
AW
4233 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path)))
4234 (wrap-program (string-append out "/bin/totem-video-thumbnailer")
4235 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4e3fc547
MW
4236 #t)))))
4237 (home-page "https://wiki.gnome.org/Apps/Videos")
4238 (synopsis "Simple media player for GNOME based on GStreamer")
4239 (description "Totem is a simple yet featureful media player for GNOME
4240which can read a large number of file formats.")
4241 ;; GPL2+ with an exception clause for non-GPL compatible GStreamer plugins
4242 ;; to be used and distributed together with GStreamer and Totem. See
4243 ;; file://COPYING in the source distribution for details.
4244 (license license:gpl2+)))
f0afb0c8
DH
4245
4246(define-public rhythmbox
4247 (package
4248 (name "rhythmbox")
8190e1ed 4249 (version "3.4.3")
f0afb0c8
DH
4250 (source (origin
4251 (method url-fetch)
4252 (uri (string-append "mirror://gnome/sources/" name "/"
4253 (version-major+minor version) "/"
4254 name "-" version ".tar.xz"))
4255 (sha256
4256 (base32
8190e1ed 4257 "1yx3n7p9vmv23jsv98fxwq95n78awdxqm8idhyhxx2d6vk4w1hgx"))))
f0afb0c8
DH
4258 (build-system glib-or-gtk-build-system)
4259 (arguments
4260 `(#:configure-flags
4261 (list "--enable-lirc"
4262 "--enable-python"
4263 "--enable-vala"
4264 "--with-brasero"
4265 "--with-gudev"
4266 "--with-libsecret")
4267 #:phases
4268 (modify-phases %standard-phases
4269 (add-after
4270 'install 'wrap-rhythmbox
4271 (lambda* (#:key inputs outputs #:allow-other-keys)
4272 (let ((out (assoc-ref outputs "out"))
4273 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
4274 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
349cef58
TGR
4275 (grl-plugin-path (getenv "GRL_PLUGIN_PATH"))
4276 (python-path (getenv "PYTHONPATH")))
f0afb0c8
DH
4277 (wrap-program (string-append out "/bin/rhythmbox")
4278 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
4279 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
349cef58
TGR
4280 `("GRL_PLUGIN_PATH" ":" prefix (,grl-plugin-path))
4281 `("PYTHONPATH" ":" prefix (,python-path))))
f0afb0c8
DH
4282 #t)))))
4283 (propagated-inputs
4284 `(("dconf" ,dconf)))
4285 (native-inputs
bcb354ad
SB
4286 `(("itstool" ,itstool)
4287 ("intltool" ,intltool)
f0afb0c8
DH
4288 ("glib" ,glib "bin")
4289 ("gobject-introspection" ,gobject-introspection)
4290 ("desktop-file-utils" ,desktop-file-utils)
bcb354ad
SB
4291 ("pkg-config" ,pkg-config)
4292 ("xmllint" ,libxml2)))
f0afb0c8
DH
4293 (inputs
4294 `(("json-glib" ,json-glib)
4295 ("tdb" ,tdb)
4296 ("gnome-desktop" ,gnome-desktop)
4297 ("python" ,python)
4298 ("python-pygobject" ,python2-pygobject)
4299 ("vala" ,vala)
4300 ("gmime" ,gmime)
f0afb0c8
DH
4301 ("adwaita-icon-theme" ,adwaita-icon-theme)
4302 ("grilo" ,grilo)
4303 ("grilo-plugins" ,grilo-plugins)
4304 ("gstreamer" ,gstreamer)
4305 ("gst-plugins-base" ,gst-plugins-base)
4306 ("gst-plugins-good" ,gst-plugins-good)
f0afb0c8 4307 ("totem-pl-parser" ,totem-pl-parser)
ea226291 4308 ("libgudev" ,libgudev)
f0afb0c8
DH
4309 ;;("libmtp" ,libmtp) FIXME: Not detected
4310 ("libsecret" ,libsecret)
4311 ("libsoup" ,libsoup)
4312 ("libnotify" ,libnotify)
4313 ("libpeas" ,libpeas)
4314 ("lirc" ,lirc)
4315 ;; TODO: clutter* only used by visualizer plugin, which also requires mx
4316 ;;("clutter" ,clutter)
4317 ;;("clutter-gtk" ,clutter-gtk)
4318 ;;("clutter-gst" ,clutter-gst)
4319 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4320 ("atk" ,atk)
4321 ("pango" ,pango)
4322 ("gtk+" ,gtk+)
4323 ;; TODO:
4324 ;; * libgpod
4325 ;; * mx
f0afb0c8
DH
4326 ("brasero" ,brasero)))
4327 (home-page "https://wiki.gnome.org/Apps/Rhythmbox")
4328 (synopsis "Music player for GNOME")
4329 (description "Rhythmbox is a music playing application for GNOME. It
4330supports playlists, song ratings, and any codecs installed through gstreamer.")
4331 (license license:gpl2+)))
f70d8383
DH
4332
4333(define-public eog
4334 (package
4335 (name "eog")
b0f24a82 4336 (version "3.32.2")
f70d8383
DH
4337 (source (origin
4338 (method url-fetch)
4339 (uri (string-append "mirror://gnome/sources/" name "/"
4340 (version-major+minor version) "/"
4341 name "-" version ".tar.xz"))
4342 (sha256
4343 (base32
b0f24a82 4344 "1bcxpqgzlk2cy4wfb3b5h66mhpj2fhrk1rrb5qqcv5xrr62ik5xy"))))
61fb581f 4345 (build-system meson-build-system)
f70d8383 4346 (arguments
34c44a34
RW
4347 `(#:configure-flags
4348 ;; Otherwise, the RUNPATH will lack the final 'eog' path component.
4349 (list (string-append "-Dc_link_args=-Wl,-rpath="
4350 (assoc-ref %outputs "out") "/lib/eog"))
4351 #:phases
f70d8383 4352 (modify-phases %standard-phases
7a034665
EF
4353 (add-after 'unpack 'skip-gtk-update-icon-cache
4354 ;; Don't create 'icon-theme.cache'.
4355 (lambda _
4356 (substitute* "meson_post_install.py"
4357 (("gtk-update-icon-cache") "true"))
4358 #t))
61fb581f
RW
4359 (add-after 'install 'wrap-eog
4360 (lambda* (#:key outputs #:allow-other-keys)
4361 (let ((out (assoc-ref outputs "out"))
4362 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
4363 (wrap-program (string-append out "/bin/eog")
4364 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
4365 #t)))))
f70d8383
DH
4366 (propagated-inputs
4367 `(("dconf" ,dconf)))
4368 (native-inputs
4369 `(("intltool" ,intltool)
b3546174 4370 ("itstool" ,itstool)
f70d8383
DH
4371 ("glib" ,glib "bin")
4372 ("gobject-introspection" ,gobject-introspection)
bcb354ad
SB
4373 ("pkg-config" ,pkg-config)
4374 ("xmllint" ,libxml2)))
f70d8383
DH
4375 (inputs
4376 `(("gnome-desktop" ,gnome-desktop)
4377 ("shared-mime-info" ,shared-mime-info)
4378 ("adwaita-icon-theme" ,adwaita-icon-theme)
4379 ("exempi" ,exempi)
4380 ("lcms" ,lcms)
4381 ("libexif" ,libexif)
4382 ("libpeas" ,libpeas)
4383 ("libjpeg" ,libjpeg)
4384 ("librsvg" ,librsvg)
4385 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4386 ("gtk+" ,gtk+)))
4387 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
4388 (synopsis "GNOME image viewer")
4389 (description "Eye of GNOME is the GNOME image viewer. It
4390supports image conversion, rotation, and slideshows.")
4391 (license license:gpl2+)))
41af5e7b 4392
0c3f8cb8
LC
4393(define-public eog-plugins
4394 ;; Note: EOG looks for its plugins (via libpeas) in ~/.local as well as
4395 ;; $DATA/lib/eog/plugins, where DATA is one of the entries in
4396 ;; $XDG_DATA_DIRS. Thus, for EOG to find these, you have to have
4397 ;; 'XDG_DATA_DIRS' appropriately set.
4398 (package
4399 (name "eog-plugins")
54b74cc6 4400 (version "3.26.4")
0c3f8cb8
LC
4401 (source (origin
4402 (method url-fetch)
f3b88ed2 4403 (uri (string-append "mirror://gnome/sources/eog-plugins/"
0c3f8cb8 4404 (version-major+minor version) "/"
f3b88ed2 4405 "eog-plugins-" version ".tar.xz"))
0c3f8cb8
LC
4406 (sha256
4407 (base32
54b74cc6 4408 "0pd7fqa4ciy5844k5s1c6rlsqkk8pxd8cchxjcjhxlsngm9lynnx"))))
0c3f8cb8
LC
4409 (build-system gnu-build-system)
4410 (home-page "https://wiki.gnome.org/Apps/EyeOfGnome/Plugins")
4411 (synopsis "Extensions for the Eye of GNOME image viewer")
4412 (native-inputs
4413 `(("pkg-config" ,pkg-config)
4414 ("gettext" ,gnu-gettext)))
4415 (inputs
4416 `(("eog" ,eog)
4417 ("glib" ,glib)
4418 ("gtk+" ,gtk+)
4419 ("libpeas" ,libpeas)
4420 ("libexif" ,libexif)
4421 ("libchamplain" ,libchamplain)))
4422 (description
4423 "This package provides plugins for the Eye of GNOME (EOG) image viewer,
4424notably:
4425
4426@itemize
4427@item @dfn{EXIF Display}, which displays camera (EXIF) information;
4428@item @dfn{Map}, which displays a map of where the picture was taken on the
4429side panel;
4430@item @dfn{Slideshow Shuffle}, to shuffle images in slideshow mode.
4431@end itemize\n")
4432
4433 ;; XXX: eog-postasa-plugin-resources.c (which we don't build) contains a
4434 ;; long suspicious byte stream that goes to a
4435 ;; ".gresource.eog_postasa_plugin" ELF section.
4436 (license license:gpl2+)))
4437
41af5e7b
SB
4438(define-public libgudev
4439 (package
4440 (name "libgudev")
b78f5118 4441 (version "232")
41af5e7b
SB
4442 (source (origin
4443 (method url-fetch)
4444 (uri (string-append "mirror://gnome/sources/" name "/"
4445 version "/" name "-" version ".tar.xz"))
4446 (sha256
4447 (base32
b78f5118 4448 "0q3qki451zzgdjazlgshsfzbbm0in40lyx7dyrag7kbkqnwv4k7f"))))
41af5e7b 4449 (build-system gnu-build-system)
b78f5118
RW
4450 (arguments
4451 '(#:configure-flags
4452 ;; umockdev depends on libgudev.
4453 (list "--disable-umockdev")))
41af5e7b
SB
4454 (native-inputs
4455 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
4456 ("gobject-introspection" ,gobject-introspection)
4457 ("pkg-config" ,pkg-config)))
4458 (propagated-inputs
4459 `(("glib" ,glib))) ; required by gudev-1.0.pc
4460 (inputs
4461 `(("udev" ,eudev)))
4462 (home-page "https://wiki.gnome.org/Projects/libgudev")
4463 (synopsis "GObject bindings for libudev")
4464 (description
4465 "This library provides GObject bindings for libudev. It was originally
4466part of udev-extras, then udev, then systemd. It's now a project on its own.")
4467 (license license:lgpl2.1+)))
3dc8828f
SB
4468
4469(define-public gvfs
4470 (package
4471 (name "gvfs")
12fe4846 4472 (version "1.40.1")
3dc8828f
SB
4473 (source (origin
4474 (method url-fetch)
1d68eb32 4475 (uri (string-append "mirror://gnome/sources/gvfs/"
3dc8828f 4476 (version-major+minor version) "/"
1d68eb32 4477 "gvfs-" version ".tar.xz"))
3dc8828f
SB
4478 (sha256
4479 (base32
12fe4846 4480 "1cfnzamr4mvgpf6yhm28lh9cafy9z6842s8jpbqnfizfxybg8ylj"))))
e762d943 4481 (build-system meson-build-system)
3dc8828f 4482 (arguments
e762d943
RW
4483 '(#:glib-or-gtk? #t
4484 #:configure-flags
4485 (list "-Dsystemduserunitdir=no"
4486 "-Dtmpfilesdir=no"
4487 ;; Otherwise, the RUNPATH will lack the final path component.
4488 (string-append "-Dc_link_args=-Wl,-rpath="
4489 (assoc-ref %outputs "out") "/lib/gvfs"))))
3dc8828f
SB
4490 (native-inputs
4491 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
0ab9f949
RW
4492 ("gettext" ,gettext-minimal)
4493 ("gtk-doc" ,gtk-doc)
3dc8828f
SB
4494 ("pkg-config" ,pkg-config)
4495 ("xsltproc" ,libxslt)))
4496 (inputs
4497 `(("avahi" ,avahi)
4498 ("docbook-xml" ,docbook-xml-4.2)
4499 ("docbook-xsl" ,docbook-xsl)
4500 ("dbus" ,dbus)
e762d943 4501 ("elogind" ,elogind)
3dc8828f 4502 ("fuse" ,fuse)
24a78aa6 4503 ("gcr" ,gcr)
3dc8828f 4504 ("glib" ,glib)
e762d943 4505 ("gnome-online-accounts" ,gnome-online-accounts)
3dc8828f
SB
4506 ("libarchive" ,libarchive)
4507 ("libbluray" ,libbluray)
8852ca24 4508 ("libcap" ,libcap)
3dc8828f
SB
4509 ("libcdio-paranoia" ,libcdio-paranoia)
4510 ("libgcrypt" ,libgcrypt)
e762d943 4511 ("libgdata" ,libgdata)
3dc8828f
SB
4512 ("libgphoto2" ,libgphoto2)
4513 ("libgudev" ,libgudev)
0ab9f949 4514 ("libimobiledevice" ,libimobiledevice)
3dc8828f 4515 ("libmtp" ,libmtp)
e762d943 4516 ("libnfs" ,libnfs)
3dc8828f
SB
4517 ("libsecret" ,libsecret)
4518 ("libsmbclient" ,samba)
4519 ("libsoup" ,libsoup)
4520 ("libxml2" ,libxml2)
e762d943 4521 ("openssh" ,openssh)
8852ca24 4522 ("polkit" ,polkit)
3dc8828f
SB
4523 ("udisks" ,udisks)))
4524 (home-page "https://wiki.gnome.org/gvfs/")
8f65585b 4525 (synopsis "Userspace virtual file system for GIO")
3dc8828f 4526 (description
8f65585b 4527 "GVFS is a userspace virtual file system designed to work with the I/O
3dc8828f
SB
4528abstraction of GIO. It contains a GIO module that seamlessly adds GVFS support
4529to all applications using the GIO API. It also supports exposing the GVFS
4530mounts to non-GIO applications using FUSE.
4531
4532GVFS comes with a set of backends, including trash support, SFTP, SMB, HTTP,
4533DAV, and others.")
4534 (license license:lgpl2.0+)))
7c88b6bd
AW
4535
4536(define-public gusb
4537 (package
4538 (name "gusb")
536b3274 4539 (version "0.3.0")
7c88b6bd 4540 (source (origin
bbfb36f9
EF
4541 (method git-fetch)
4542 (uri (git-reference
4543 (url "https://github.com/hughsie/libgusb.git")
4544 (commit version)))
4545 (file-name (git-file-name name version))
7c88b6bd
AW
4546 (sha256
4547 (base32
bbfb36f9 4548 "002pg0p4qzzk5dkyiynm483ir26zxrn4k71c7f6j85mfsdzbgli7"))))
536b3274 4549 (build-system meson-build-system)
7c88b6bd 4550 (native-inputs
536b3274 4551 `(("gobject-introspection" ,gobject-introspection)
7c88b6bd
AW
4552 ("pkg-config" ,pkg-config)
4553 ("vala" ,vala)
7c88b6bd
AW
4554 ("gtk-doc" ,gtk-doc)))
4555 (propagated-inputs
4556 ;; Both of these are required by gusb.pc.
4557 `(("glib" ,glib)
4558 ("libusb" ,libusb)))
4559 (arguments
536b3274 4560 `(#:tests? #f)) ;libusb fails to initialize. Wonder what that is.
8f1640ed 4561 (home-page "https://github.com/hughsie/libgusb")
a124bbd2 4562 (synopsis "GLib binding for libusb1")
7c88b6bd
AW
4563 (description
4564 "GUsb is a GObject wrapper for libusb1 that makes it easy to do
4565asynchronous control, bulk and interrupt transfers with proper cancellation
4566and integration into a mainloop. This makes it easy to integrate low level
4567USB transfers with your high-level application or system daemon.")
4568 (license license:lgpl2.1+)))
0abe1d86
AW
4569
4570(define-public simple-scan
4571 (package
4572 (name "simple-scan")
4afb7dd9 4573 (version "3.34.2")
d9f6d587
TGR
4574 (source
4575 (origin
4576 (method url-fetch)
4577 (uri (string-append "mirror://gnome/sources/simple-scan/"
4578 (version-major+minor version) "/"
4579 "simple-scan-" version ".tar.xz"))
4580 (sha256
4afb7dd9 4581 (base32 "1fk3g4f9slckqfwm576jrjq1d1qihw0dlgzdf00ns7qbhzb0kxsp"))))
d9f6d587
TGR
4582 (build-system meson-build-system)
4583 ;; TODO: Fix icons in home screen, About dialogue, and scan menu.
4584 (arguments
4585 '(#:glib-or-gtk? #t))
0abe1d86
AW
4586 (inputs
4587 `(("gtk" ,gtk+)
4588 ("zlib" ,zlib)
4589 ("cairo" ,cairo)
c501f592 4590 ("colord" ,colord)
0abe1d86
AW
4591 ("gdk-pixbuf" ,gdk-pixbuf)
4592 ("gusb" ,gusb)
4c928743 4593 ("libsane" ,sane-backends)))
0abe1d86 4594 (native-inputs
b94a6ca0 4595 `(("gettext" ,gettext-minimal)
0abe1d86 4596 ("itstool" ,itstool)
c501f592 4597 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
0abe1d86 4598 ("pkg-config" ,pkg-config)
bcb354ad
SB
4599 ("vala" ,vala)
4600 ("xmllint" ,libxml2)))
dff0eedb 4601 (home-page "https://gitlab.gnome.org/GNOME/simple-scan")
0abe1d86 4602 (synopsis "Document and image scanner")
d9f6d587
TGR
4603 (description
4604 "Document Scanner is an easy-to-use application that lets you connect your
4605scanner and quickly capture images and documents in an appropriate format. It
4606supports any scanner for which a suitable SANE driver is available, which is
4607almost all of them.")
0abe1d86 4608 (license license:gpl3+)))
7549f984 4609
ab466d79
RW
4610(define-public eolie
4611 (package
4612 (name "eolie")
fa8ef3ed 4613 (version "0.9.63")
ab466d79
RW
4614 (source (origin
4615 (method url-fetch)
00014781 4616 (uri (string-append "https://gitlab.gnome.org/World/eolie/"
fa8ef3ed 4617 "uploads/d42b466752729a0d3fa828a721e25043/"
00014781 4618 "eolie-" version ".tar.xz"))
ab466d79
RW
4619 (sha256
4620 (base32
fa8ef3ed 4621 "11pp8g0w22h1q0bbj9517l5838gcymvvp8fp9kh6h2dmgir2ssih"))))
00014781 4622 (build-system meson-build-system)
ab466d79 4623 (arguments
00014781
RW
4624 `(#:glib-or-gtk? #t
4625 #:phases
ab466d79 4626 (modify-phases %standard-phases
f0c68100
EF
4627 (add-after 'unpack 'skip-gtk-update-icon-cache
4628 ;; Don't create 'icon-theme.cache'.
4629 (lambda _
4630 (substitute* "meson_post_install.py"
4631 (("gtk-update-icon-cache") "true"))
4632 #t))
ab466d79
RW
4633 (add-after 'wrap 'wrap-more
4634 (lambda* (#:key inputs outputs #:allow-other-keys)
4635 (let* ((out (assoc-ref outputs "out"))
4636 ;; These libraries must be on LD_LIBRARY_PATH.
4637 (libs '("gtkspell3" "webkitgtk" "libsoup" "libsecret"
4638 "atk" "gtk+" "gsettings-desktop-schemas"
4639 "gobject-introspection"))
4640 (path (string-join
4641 (map (lambda (lib)
4642 (string-append (assoc-ref inputs lib) "/lib"))
4643 libs)
4644 ":")))
4645 (wrap-program (string-append out "/bin/eolie")
4646 `("LD_LIBRARY_PATH" ":" prefix (,path))
4647 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
4648 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
4649 #t)))))
4650 (native-inputs
f85ca6ed 4651 `(("intltool" ,intltool)
ab466d79 4652 ("itstool" ,itstool)
d95f1041 4653 ("pkg-config" ,pkg-config)
d95f1041 4654 ("python" ,python)
f0c68100 4655 ("glib:bin" ,glib "bin")))
ab466d79
RW
4656 (inputs
4657 `(("gobject-introspection" ,gobject-introspection)
4658 ("glib-networking" ,glib-networking)
4659 ("cairo" ,cairo)
4660 ("gtk+" ,gtk+)
4661 ("atk" ,atk) ; propagated by gtk+, but we need it in LD_LIBRARY_PATH
4662 ("python" ,python-wrapper)
d72f76df 4663 ("python-dateutil" ,python-dateutil)
00014781 4664 ("python-pyfxa" ,python-pyfxa)
ab466d79
RW
4665 ("python-pygobject" ,python-pygobject)
4666 ("python-pycairo" ,python-pycairo)
00014781 4667 ("python-pycrypto" ,python-pycrypto)
ab466d79
RW
4668 ("libsecret" ,libsecret)
4669 ("gtkspell3" ,gtkspell3)
4670 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
f85ca6ed 4671 ("webkitgtk" ,webkitgtk)))
166b2c97 4672 (home-page "https://wiki.gnome.org/Apps/Eolie")
ab466d79
RW
4673 (synopsis "Web browser for GNOME")
4674 (description
4675 "Eolie is a new web browser for GNOME. It features Firefox sync support,
4676a secret password store, an adblocker, and a modern UI.")
4677 (license license:gpl3+)))
4678
7549f984
SB
4679(define-public epiphany
4680 (package
4681 (name "epiphany")
644b60d4 4682 (version "3.32.3")
7549f984
SB
4683 (source (origin
4684 (method url-fetch)
dd3266ec 4685 (uri (string-append "mirror://gnome/sources/epiphany/"
7549f984 4686 (version-major+minor version) "/"
dd3266ec 4687 "epiphany-" version ".tar.xz"))
7549f984
SB
4688 (sha256
4689 (base32
644b60d4 4690 "0gx386k1p78ppjhvdanv99hfiwana0ccn9d499qrp0rvlicnijrw"))))
fc5c5b92
R
4691
4692 (build-system meson-build-system)
7549f984
SB
4693 (arguments
4694 ;; FIXME: tests run under Xvfb, but fail with:
4695 ;; /src/bookmarks/ephy-bookmarks/create:
4696 ;; ** (test-ephy-bookmarks:19591): WARNING **: Unable to start Zeroconf
4697 ;; subsystem
4698 ;; FAIL
6f48d9db 4699 '(#:tests? #f
e19f9c24 4700 #:glib-or-gtk? #t
bb7ff88f
EF
4701 #:phases
4702 (modify-phases %standard-phases
4703 (add-after 'unpack 'skip-gtk-update-icon-cache
4704 ;; Don't create 'icon-theme.cache'.
4705 (lambda _
4706 (substitute* "post_install.py"
4707 (("gtk-update-icon-cache") "true"))
4708 #t)))
e19f9c24
LF
4709 #:configure-flags
4710 ;; Otherwise, the RUNPATH will lack the final 'epiphany' path component.
4711 (list (string-append "-Dc_link_args=-Wl,-rpath="
4712 (assoc-ref %outputs "out") "/lib/epiphany"))))
80a747c4
SB
4713 (propagated-inputs
4714 `(("dconf" ,dconf)))
7549f984 4715 (native-inputs
fc5c5b92
R
4716 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
4717 ("glib:bin" ,glib "bin") ; for glib-mkenums
fc5c5b92 4718 ("intltool" ,intltool)
7549f984 4719 ("itstool" ,itstool)
bcb354ad
SB
4720 ("pkg-config" ,pkg-config)
4721 ("xmllint" ,libxml2)))
7549f984
SB
4722 (inputs
4723 `(("avahi" ,avahi)
4724 ("gcr" ,gcr)
fc5c5b92 4725 ("gdk-pixbuf+svg" ,gdk-pixbuf+svg) ; for loading SVG files
7549f984
SB
4726 ("glib-networking" ,glib-networking)
4727 ("gnome-desktop" ,gnome-desktop)
4728 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
eb6f315b 4729 ("json-glib" ,json-glib)
7549f984 4730 ("iso-codes" ,iso-codes)
8748e29c 4731 ("libdazzle" ,libdazzle)
7549f984
SB
4732 ("libnotify" ,libnotify)
4733 ("libsecret" ,libsecret)
7549f984 4734 ("libxslt" ,libxslt)
fc5c5b92 4735 ("nettle" ,nettle) ; for hogweed
7549f984 4736 ("sqlite" ,sqlite)
f85ca6ed 4737 ("webkitgtk" ,webkitgtk)))
7549f984
SB
4738 (home-page "https://wiki.gnome.org/Apps/Web")
4739 (synopsis "GNOME web browser")
4740 (description
4741 "Epiphany is a GNOME web browser targeted at non-technical users. Its
4742principles are simplicity and standards compliance.")
4743 (license license:gpl2+)))
a3856b2c
SB
4744
4745(define-public d-feet
4746 (package
4747 (name "d-feet")
458e9221 4748 (version "0.3.14")
a3856b2c
SB
4749 (source (origin
4750 (method url-fetch)
4751 (uri (string-append "mirror://gnome/sources/" name "/"
4752 (version-major+minor version) "/"
4753 name "-" version ".tar.xz"))
4754 (sha256
4755 (base32
458e9221 4756 "1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f"))))
a3856b2c
SB
4757 (build-system glib-or-gtk-build-system)
4758 (arguments
4759 '(#:out-of-source? #f ; tests need to run in the source directory.
4760 #:phases
4761 (modify-phases %standard-phases
4762 (add-before
4763 'check 'pre-check
86aff791 4764 (lambda _
a3856b2c
SB
4765 ;; The test suite requires a running X server.
4766 (system "Xvfb :1 &")
4767 (setenv "DISPLAY" ":1")
4768 ;; Don't fail on missing '/etc/machine-id'.
4769 (setenv "DBUS_FATAL_WARNINGS" "0")
4770 ;; tests.py and window.py don't meet E402:
4771 ;; E402 module level import not at top of file
4772 (substitute* "src/tests/Makefile"
86aff791
MW
4773 (("--ignore=E123") "--ignore=E123,E402"))
4774 #t))
a3856b2c
SB
4775 (add-after
4776 'install 'wrap-program
4777 (lambda* (#:key outputs #:allow-other-keys)
4778 (let ((prog (string-append (assoc-ref outputs "out")
4779 "/bin/d-feet")))
4780 (wrap-program prog
4781 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
86aff791
MW
4782 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
4783 #t))))))
a3856b2c
SB
4784 (native-inputs
4785 `(("intltool" ,intltool)
4786 ("itstool" ,itstool)
4787 ("pkg-config" ,pkg-config)
4788 ("python-pep8" ,python-pep8)
4789 ("xmllint" ,libxml2)
ff337525 4790 ("xorg-server" ,xorg-server-for-tests)))
a3856b2c
SB
4791 (inputs
4792 `(("gobject-introspection" ,gobject-introspection)
4793 ("gtk+" ,gtk+)
4794 ("python" ,python-wrapper)
458e9221 4795 ("hicolor-icon-theme" ,hicolor-icon-theme)
a3856b2c
SB
4796 ("python-pygobject" ,python-pygobject)))
4797 (home-page "https://wiki.gnome.org/Apps/DFeet")
4798 (synopsis "D-Bus debugger")
4799 (description
4800 "D-Feet is a D-Bus debugger, which can be used to inspect D-Bus interfaces
4801of running programs and invoke methods on those interfaces.")
4802 (license license:gpl2+)))
c3b97bd9
SB
4803
4804(define-public yelp-xsl
4805 (package
4806 (name "yelp-xsl")
b3640e79 4807 (version "3.32.1")
c3b97bd9
SB
4808 (source (origin
4809 (method url-fetch)
4810 (uri (string-append "mirror://gnome/sources/" name "/"
4811 (version-major+minor version) "/"
4812 name "-" version ".tar.xz"))
4813 (sha256
4814 (base32
b3640e79 4815 "013z2ixx9kfrs6hq79qpil093xfbc12y1p0mvsh6lpala30iphya"))))
c3b97bd9
SB
4816 (build-system gnu-build-system)
4817 (native-inputs
4818 `(("intltool" ,intltool)
4819 ("itstool" ,itstool)
4820 ("xmllint" ,libxml2)))
4821 (home-page "https://wiki.gnome.org/Apps/Yelp")
4822 (synopsis "XSL stylesheets for Yelp")
4823 (description
4824 "Yelp-xsl contains XSL stylesheets that are used by the yelp help browser
4825to format Docbook and Mallard documents.")
4826 (license license:gpl2+)))
de3d612a
SB
4827
4828(define-public yelp
4829 (package
4830 (name "yelp")
9d029b7f 4831 (version "3.30.0")
de3d612a
SB
4832 (source (origin
4833 (method url-fetch)
4834 (uri (string-append "mirror://gnome/sources/" name "/"
4835 (version-major+minor version) "/"
4836 name "-" version ".tar.xz"))
4837 (sha256
4838 (base32
9d029b7f 4839 "060a902j15k76fyhk8xfl38ipvrrcc0qd7nm2mcck4ifb45b0zv4"))))
de3d612a
SB
4840 (build-system glib-or-gtk-build-system)
4841 (native-inputs
4842 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
4843 ("intltool" ,intltool)
4844 ("itstool" ,itstool)
4845 ("pkg-config" ,pkg-config)))
4846 (propagated-inputs
4847 `(("dconf" ,dconf)))
4848 (inputs
ad1b7d8b
SB
4849 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
4850 ("libxslt" ,libxslt)
de3d612a 4851 ("sqlite" ,sqlite)
4c28ca1d
SB
4852 ("webkitgtk" ,webkitgtk)
4853 ("yelp-xsl" ,yelp-xsl)))
de3d612a
SB
4854 (home-page "https://wiki.gnome.org/Apps/Yelp")
4855 (synopsis "GNOME help browser")
4856 (description
4857 "Yelp is the help viewer in Gnome. It natively views Mallard, DocBook,
4858man, info, and HTML documents. It can locate documents according to the
4859freedesktop.org help system specification.")
4860 (license license:gpl2+)))
122d0d10
SB
4861
4862(define-public yelp-tools
4863 (package
4864 (name "yelp-tools")
2089bca5 4865 (version "3.28.0")
122d0d10
SB
4866 (source (origin
4867 (method url-fetch)
4868 (uri (string-append "mirror://gnome/sources/" name "/"
4869 (version-major+minor version) "/"
4870 name "-" version ".tar.xz"))
4871 (sha256
4872 (base32
2089bca5 4873 "1b61dmlb1sd50fgq6zgnkcpx2s1py33q0x9cx67fzpsr4gmgxnw2"))))
122d0d10
SB
4874 (build-system gnu-build-system)
4875 (native-inputs
4876 `(("pkg-config" ,pkg-config)))
4877 (propagated-inputs
4878 ;; Needed by `yelp-build', `yelp-check' or 'yelp.m4'.
4879 `(("itstool" ,itstool)
4880 ("xmllint" ,libxml2)
4881 ("xsltproc" ,libxslt)))
4882 (inputs
4883 `(("yelp-xsl" ,yelp-xsl)))
4884 (home-page "https://wiki.gnome.org/Apps/Yelp/Tools")
4885 (synopsis "Yelp documentation tools")
4886 (description
4887 "Yelp-tools is a collection of scripts and build utilities to help create,
4888manage, and publish documentation for Yelp and the web. Most of the heavy
4889lifting is done by packages like yelp-xsl and itstool. This package just
4890wraps things up in a developer-friendly way.")
4891 (license license:gpl2+)))
af8f9f23 4892
4ed041d9
MB
4893(define-public yelp-tools/fixed
4894 ;; This variant fixes a python-libxml2 crash when processing UTF-8
4895 ;; sequences: <https://bugs.gnu.org/37468>. TODO: Remove this in
4896 ;; the next rebuild cycle.
4897 (hidden-package
4898 (package/inherit
4899 yelp-tools
4900 (propagated-inputs
4901 `(("itstool" ,itstool/fixed)
4902 ,@(alist-delete "itstool" (package-propagated-inputs yelp-tools)))))))
4903
af8f9f23
RW
4904(define-public libgee
4905 (package
4906 (name "libgee")
4c2c5ae6 4907 (version "0.20.2")
af8f9f23
RW
4908 (source (origin
4909 (method url-fetch)
84a1b007 4910 (uri (string-append "mirror://gnome/sources/libgee/"
af8f9f23 4911 (version-major+minor version) "/"
84a1b007 4912 "libgee-" version ".tar.xz"))
af8f9f23
RW
4913 (sha256
4914 (base32
4c2c5ae6 4915 "0g1mhl7nidg82v4cikkk8dakzc18hg7wv0dsf2pbyijzfm5mq0wy"))))
af8f9f23
RW
4916 (build-system gnu-build-system)
4917 (arguments
4918 `(#:phases
4919 (modify-phases %standard-phases
4920 (add-after 'unpack 'fix-introspection-install-dir
4921 (lambda* (#:key outputs #:allow-other-keys)
4922 (let ((out (assoc-ref outputs "out")))
4923 (substitute* "gee/Makefile.in"
4924 (("@INTROSPECTION_GIRDIR@")
4925 (string-append out "/share/gir-1.0/"))
4926 (("@INTROSPECTION_TYPELIBDIR@")
4927 (string-append out "/lib/girepository-1.0/")))))))))
4928 (native-inputs
4929 `(("glib" ,glib "bin")
4930 ("pkg-config" ,pkg-config)))
4931 (inputs
4932 `(("glib" ,glib)
4933 ("gobject-introspection" ,gobject-introspection)))
4934 (home-page "https://wiki.gnome.org/Projects/Libgee")
4935 (synopsis "GObject collection library")
4936 (description
4937 "Libgee is a utility library providing GObject-based interfaces and
4938classes for commonly used data structures.")
4939 (license license:lgpl2.1+)))
b0f9c4b8
RW
4940
4941(define-public gexiv2
4942 (package
4943 (name "gexiv2")
b1a8b408 4944 (version "0.12.0")
b0f9c4b8
RW
4945 (source (origin
4946 (method url-fetch)
4947 (uri (string-append "mirror://gnome/sources/" name "/"
4948 (version-major+minor version) "/"
4949 name "-" version ".tar.xz"))
4950 (sha256
4951 (base32
b1a8b408 4952 "0slj5yj8c90l9pp5i3z74x5r3r4da0xfmbzkfq5k0dkg72q3kxaq"))))
51c482e4 4953 (build-system meson-build-system)
b0f9c4b8 4954 (native-inputs
b1a8b408
KK
4955 `(("gcr" ,gcr)
4956 ("glib" ,glib "bin")
4957 ("pkg-config" ,pkg-config)
4958 ("vala" ,vala)))
b0f9c4b8
RW
4959 (propagated-inputs
4960 ;; Listed in "Requires" section of gexiv2.pc
4961 `(("exiv2" ,exiv2)))
4962 (inputs
4963 `(("glib" ,glib)
4964 ("gobject-introspection" ,gobject-introspection)))
4965 (home-page "https://wiki.gnome.org/Projects/gexiv2")
4966 (synopsis "GObject wrapper around the Exiv2 photo metadata library")
4967 (description
4968 "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library. It
4969allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
4970metadata in photo and video files of various formats.")
4971 (license license:gpl2+)))
fed5a689
RW
4972
4973(define-public shotwell
4974 (package
4975 (name "shotwell")
a1c6fb52 4976 (version "0.30.7")
fed5a689
RW
4977 (source (origin
4978 (method url-fetch)
5497d682 4979 (uri (string-append "mirror://gnome/sources/shotwell/"
fed5a689 4980 (version-major+minor version) "/"
5497d682 4981 "shotwell-" version ".tar.xz"))
fed5a689
RW
4982 (sha256
4983 (base32
a1c6fb52 4984 "1m9i8r4gyd2hzlxjjwfyck4kz7gdg2vz2k6l6d0ga9hdfq2l4p9l"))))
3b79afa6
KK
4985 (build-system meson-build-system)
4986 (arguments
4987 '(#:glib-or-gtk? #t))
735b8db6
TGR
4988 (propagated-inputs
4989 `(("dconf" ,dconf)))
fed5a689 4990 (native-inputs
3b79afa6 4991 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
b94a6ca0 4992 ("gettext" ,gettext-minimal)
77e9c993 4993 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
735b8db6 4994 ("itstool" ,itstool)
3b79afa6 4995 ("pkg-config" ,pkg-config)
735b8db6 4996 ("vala" ,vala)))
fed5a689 4997 (inputs
735b8db6
TGR
4998 `(("glib:bin" ,glib "bin")
4999 ("gstreamer" ,gstreamer)
fed5a689 5000 ("gst-plugins-base" ,gst-plugins-base)
dfb0323d 5001 ("libgdata" ,libgdata)
fed5a689
RW
5002 ("libgee" ,libgee)
5003 ("gexiv2" ,gexiv2)
5004 ("libraw" ,libraw)
5005 ("json-glib" ,json-glib)
7108425c 5006 ("webkitgtk" ,webkitgtk)
fed5a689
RW
5007 ("sqlite" ,sqlite)
5008 ("libsoup" ,libsoup)
5009 ("libxml2" ,libxml2)
fed5a689 5010 ("libgudev" ,libgudev)
522fc32e
LF
5011 ("libgphoto2" ,libgphoto2)
5012 ("gcr" ,gcr)))
fed5a689
RW
5013 (home-page "https://wiki.gnome.org/Apps/Shotwell")
5014 (synopsis "Photo manager for GNOME 3")
5015 (description
5016 "Shotwell is a digital photo manager designed for the GNOME desktop
5017environment. It allows you to import photos from disk or camera, organize
5018them by keywords and events, view them in full-window or fullscreen mode, and
5019share them with others via social networking and more.")
5020 (license license:lgpl2.1+)))
293ff8b2
DT
5021
5022(define-public file-roller
5023 (package
5024 (name "file-roller")
4c96e5d1 5025 (version "3.32.1")
293ff8b2
DT
5026 (source (origin
5027 (method url-fetch)
5028 (uri (string-append "mirror://gnome/sources/" name "/"
5029 (version-major+minor version) "/"
5030 name "-" version ".tar.xz"))
5031 (sha256
5032 (base32
4c96e5d1 5033 "0irm72cf8222h93skivn0nn0ckahiiiimy4rb9r3ccjvhi3hiaqw"))))
0a500745 5034 (build-system meson-build-system)
293ff8b2 5035 (native-inputs
0a500745
RW
5036 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
5037 ("intltool" ,intltool)
4c96e5d1 5038 ("itstool" ,itstool)
0a500745
RW
5039 ("pkg-config" ,pkg-config)
5040 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
5041 ("glib:bin" ,glib "bin")))
293ff8b2
DT
5042 ;; TODO: Add libnautilus.
5043 (inputs
5044 `(("gtk+" ,gtk+)
5045 ("gdk-pixbuf" ,gdk-pixbuf)
5046 ("json-glib" ,json-glib)
5047 ("libarchive" ,libarchive)
5048 ("libnotify" ,libnotify)
4c96e5d1 5049 ("nettle" ,nettle)
293ff8b2
DT
5050 ("libxml2" ,libxml2)))
5051 (synopsis "Graphical archive manager for GNOME")
5052 (description "File Roller is an archive manager for the GNOME desktop
5053environment that allows users to view, unpack, and create compressed archives
5054such as gzip tarballs.")
5055 (home-page "http://fileroller.sourceforge.net/")
5056 (license license:gpl2+)))
7ce49365
SB
5057
5058(define-public gnome-session
5059 (package
5060 (name "gnome-session")
da886d6f 5061 (version "3.30.1")
7ce49365
SB
5062 (source (origin
5063 (method url-fetch)
5064 (uri (string-append "mirror://gnome/sources/" name "/"
5065 (version-major+minor version) "/"
5066 name "-" version ".tar.xz"))
5067 (sha256
5068 (base32
da886d6f 5069 "0fbpq103md4g9gi67rxnwvha21629nxx7qazddy6q6494sbqbzpa"))))
2914af3c 5070 (arguments
df278071
RW
5071 '(#:glib-or-gtk? #t
5072 #:phases
2914af3c
AW
5073 (modify-phases %standard-phases
5074 (add-before 'configure 'pre-configure
5075 (lambda* (#:key outputs #:allow-other-keys)
5076 ;; Use elogind instead of systemd.
df278071
RW
5077 (substitute* "meson.build"
5078 (("libsystemd-login") "libelogind")
5079 (("and libsystemd_daemon_dep.found.*") ","))
2914af3c
AW
5080 (substitute* "gnome-session/gsm-systemd.c"
5081 (("#include <systemd/sd-login.h>")
5082 "#include <elogind/sd-login.h>"))
df278071 5083 ;; Remove uses of the systemd daemon.
803ab416
SB
5084 (substitute* "gnome-session/gsm-autostart-app.c"
5085 (("#ifdef HAVE_SYSTEMD") "#if 0"))
a0d7baaf
LC
5086 #t))
5087 (add-after 'install 'wrap-gnome-session
5088 (lambda* (#:key inputs outputs #:allow-other-keys)
5089 ;; Make sure 'gnome-session' finds the 'gsettings' program.
5090 (let ((glib (assoc-ref inputs "glib:bin"))
5091 (out (assoc-ref outputs "out")))
5092 (wrap-program (string-append out "/bin/gnome-session")
5093 `("PATH" ":" prefix (,(string-append glib "/bin"))))
5094 #t))))
6cbc8d57 5095
2914af3c 5096 #:configure-flags
df278071
RW
5097 '("-Ddocbook=false" ; FIXME: disabled because of docbook validation error
5098 "-Dman=false" ; FIXME: disabled because of docbook validation error
5099 "-Dsystemd_journal=false")))
5100 (build-system meson-build-system)
7ce49365
SB
5101 (native-inputs
5102 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5103 ("pkg-config" ,pkg-config)
5104 ("intltool" ,intltool)
df278071
RW
5105 ("xsltproc" ,libxslt)
5106 ("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
5107 ("docbook-xsl" ,docbook-xsl)
5108 ("docbook-xml" ,docbook-xml)
5109 ("xmlto" ,xmlto)))
7ce49365 5110 (inputs
2914af3c
AW
5111 `(("elogind" ,elogind)
5112 ("gnome-desktop" ,gnome-desktop)
ba3cb5ab 5113 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7ce49365
SB
5114 ("gtk+" ,gtk+)
5115 ("json-glib" ,json-glib)
5116 ("libsm" ,libsm)
5117 ("libxcomposite" ,libxcomposite)
5118 ("libxtst" ,libxtst)
5119 ("mesa" ,mesa)
5120 ("upower" ,upower)
5121 ("xtrans" ,xtrans)))
5122 (synopsis "Session manager for GNOME")
5123 (description
5124 "This package contains the GNOME session manager, as well as a
5125configuration program to choose applications starting on login.")
5126 (home-page "https://wiki.gnome.org/Projects/SessionManagement")
5127 (license license:gpl2+)))
f47ba77e
SB
5128
5129(define-public gjs
5130 (package
5131 (name "gjs")
d054fbf5 5132 (version "1.56.2")
f47ba77e
SB
5133 (source (origin
5134 (method url-fetch)
5135 (uri (string-append "mirror://gnome/sources/" name "/"
5136 (version-major+minor version) "/"
5137 name "-" version ".tar.xz"))
5138 (sha256
5139 (base32
d054fbf5 5140 "1b5321krn89p3f7s2ik6gpfnc61apzljhlnbqky8c88f7n6832ac"))))
f47ba77e
SB
5141 (build-system gnu-build-system)
5142 (arguments
5143 '(#:phases
5144 (modify-phases %standard-phases
5145 (add-before
5146 'check 'pre-check
5147 (lambda _
fc119619
MW
5148 ;; The test suite requires a running X server.
5149 (system "Xvfb :1 &")
5150 (setenv "DISPLAY" ":1")
5151
f47ba77e
SB
5152 ;; For the missing /etc/machine-id.
5153 (setenv "DBUS_FATAL_WARNINGS" "0")
ba666b07 5154
144f94d0
KK
5155 ;; Our mozjs-38 package does not compile the required Intl API
5156 ;; support for these failing tests.
5157 (substitute* "installed-tests/js/testLocale.js"
5158 ((".*toBeDefined.*") "")
5159 ((".*expect\\(datestr\\).*") ""))
d054fbf5
KK
5160 (substitute* "installed-tests/scripts/testCommandLine.sh"
5161 (("Valentín") "")
5162 (("☭") ""))
f47ba77e
SB
5163 #t)))))
5164 (native-inputs
8a831c6f 5165 `(("glib:bin" ,glib "bin") ; for glib-compile-resources
f47ba77e
SB
5166 ("pkg-config" ,pkg-config)
5167 ("xmllint" ,libxml2)
5168 ;; For testing
5169 ("dbus-launch" ,dbus)
5170 ("uuidgen" ,util-linux)
ebebee94 5171 ("xvfb" ,xorg-server-for-tests)))
f47ba77e
SB
5172 (propagated-inputs
5173 ;; These are all in the Requires.private field of gjs-1.0.pc.
144f94d0
KK
5174 `(("cairo" ,cairo)
5175 ("gobject-introspection" ,gobject-introspection)
d054fbf5 5176 ("mozjs" ,mozjs-60)))
f47ba77e
SB
5177 (inputs
5178 `(("gtk+" ,gtk+)
5179 ("readline" ,readline)))
5180 (synopsis "Javascript bindings for GNOME")
f032d0be 5181 (home-page "https://live.gnome.org/Gjs")
f47ba77e
SB
5182 (description
5183 "Gjs is a javascript binding for GNOME. It's mainly based on spidermonkey
5184javascript engine and the GObject introspection framework.")
5185 (license license:gpl2+)))
329d731b
DH
5186
5187(define-public gedit
5188 (package
5189 (name "gedit")
480c9226 5190 (version "3.32.2")
329d731b
DH
5191 (source (origin
5192 (method url-fetch)
5193 (uri (string-append "mirror://gnome/sources/" name "/"
5194 (version-major+minor version) "/"
5195 name "-" version ".tar.xz"))
5196 (sha256
5197 (base32
480c9226
KK
5198 "1q2rk7fym542c7k3bn2wlnzgy384gxacbifsjny0spbg95gfybvl"))))
5199 (build-system meson-build-system)
329d731b 5200 (arguments
480c9226
KK
5201 `(#:glib-or-gtk? #t
5202 #:configure-flags
5203 ;; Otherwise, the RUNPATH will lack the final path component.
5204 (list (string-append "-Dc_link_args=-Wl,-rpath="
5205 (assoc-ref %outputs "out") "/lib/gedit"))
5206 #:phases
329d731b 5207 (modify-phases %standard-phases
480c9226
KK
5208 (add-after 'unpack 'skip-gtk-update-icon-cache
5209 ;; Don't create 'icon-theme.cache'.
5210 (lambda _
5211 (substitute* "build-aux/meson/post_install.py"
5212 (("gtk-update-icon-cache") (which "true")))
5213 #t))
5214 (add-after 'unpack 'patch-libgd-fetch
5215 (lambda* (#:key inputs #:allow-other-keys)
5216 (let ((libgd (assoc-ref inputs "libgd")))
5217 ;; Calling git is unnecessary because libgd is fetched as a
5218 ;; native input to this package.
5219 (substitute* "meson.build"
5220 ((".*git.*") ""))
5221 (copy-recursively libgd "subprojects/libgd")
5222 #t)))
5223 (add-after 'install 'wrap-gedit
5224 (lambda* (#:key inputs outputs #:allow-other-keys)
5225 (let ((out (assoc-ref outputs "out"))
5226 (gtksourceview (assoc-ref inputs "gtksourceview"))
5227 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
5228 (python-path (getenv "PYTHONPATH")))
5229 (wrap-program (string-append out "/bin/gedit")
5230 ;; For plugins.
5231 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
5232 `("PYTHONPATH" ":" prefix (,python-path))
5233 ;; For language-specs.
5234 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
5235 "/share")))))
5236 #t)))))
329d731b
DH
5237 (propagated-inputs
5238 `(("dconf" ,dconf)))
5239 (native-inputs
480c9226
KK
5240 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
5241 ("intltool" ,intltool)
b3546174 5242 ("itstool" ,itstool)
480c9226 5243 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
329d731b 5244 ("gobject-introspection" ,gobject-introspection)
480c9226
KK
5245 ("libgd"
5246 ,(origin
5247 (method git-fetch)
5248 (uri (git-reference
5249 (url "https://gitlab.gnome.org/GNOME/libgd")
5250 (commit "c7c7ff4e05d3fe82854219091cf116cce6b19de0")))
5251 (file-name (git-file-name "libgd" version))
5252 (sha256
5253 (base32 "16yld0ap7qj1n96h4f2sqkjmibg7xx5xwkqxdfzam2nmyfdlrrrs"))))
329d731b
DH
5254 ("pkg-config" ,pkg-config)))
5255 (inputs
5256 `(("glib" ,glib)
0d2df50c 5257 ("gspell" ,gspell)
329d731b 5258 ("gtk+" ,gtk+)
480c9226 5259 ("gtksourceview" ,gtksourceview)
329d731b
DH
5260 ("libpeas" ,libpeas)
5261 ("libxml2" ,libxml2)
329d731b
DH
5262 ("iso-codes" ,iso-codes)
5263 ("python-pygobject" ,python-pygobject)
5264 ("python" ,python)
5265 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5266 ("libx11" ,libx11)
5267 ("vala" ,vala)
5268 ("adwaita-icon-theme" ,adwaita-icon-theme)
5269 ("libsoup" ,libsoup)
5270 ("gnome-desktop" ,gnome-desktop)))
5271 (home-page "https://wiki.gnome.org/Apps/Gedit")
5272 (synopsis "GNOME text editor")
5273 (description "While aiming at simplicity and ease of use, gedit is a
5274powerful general purpose text editor.")
5275 (license license:gpl2+)))
b7179363
SB
5276
5277(define-public zenity
5278 (package
5279 (name "zenity")
4f581bd0 5280 (version "3.32.0")
b7179363
SB
5281 (source (origin
5282 (method url-fetch)
5958df04 5283 (uri (string-append "mirror://gnome/sources/zenity/"
b7179363 5284 (version-major+minor version) "/"
5958df04 5285 "zenity-" version ".tar.xz"))
b7179363
SB
5286 (sha256
5287 (base32
4f581bd0 5288 "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7"))))
b7179363
SB
5289 (build-system gnu-build-system)
5290 (native-inputs
b94a6ca0 5291 `(("gettext" ,gettext-minimal)
b7179363
SB
5292 ("itstool" ,itstool)
5293 ("pkg-config" ,pkg-config)))
5294 (inputs
5295 `(("libnotify" ,libnotify)
5296 ("webkitgtk" ,webkitgtk)))
5297 (synopsis "Display graphical dialog boxes from shell scripts")
f032d0be 5298 (home-page "https://www.gnome.org")
b7179363
SB
5299 (description
5300 "Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you
5301to display dialog boxes from the commandline and shell scripts.")
5302 (license license:lgpl2.0+)))
60c3627c
SB
5303
5304(define-public mutter
5305 (package
5306 (name "mutter")
e402eae6 5307 (version "3.30.2")
60c3627c 5308 (source (origin
86c44e72
KK
5309 (method url-fetch)
5310 (uri (string-append "mirror://gnome/sources/" name "/"
5311 (version-major+minor version) "/"
5312 name "-" version ".tar.xz"))
60c3627c
SB
5313 (sha256
5314 (base32
e402eae6 5315 "0qr3w480p31nbiad49213rj9rk6p9fl82a68pzznpz36p30dq96z"))))
86c44e72
KK
5316 ;; NOTE: Since version 3.21.x, mutter now bundles and exports forked
5317 ;; versions of cogl and clutter. As a result, many of the inputs,
5318 ;; propagated-inputs, and configure flags used in cogl and clutter are
5319 ;; needed here as well.
60c3627c
SB
5320 (build-system gnu-build-system)
5321 (arguments
5322 '(#:configure-flags
5323 ;; XXX: build fails with [-Werror]:
5324 ;; backends/meta-cursor-renderer.c:112:5: error:
5325 ;; implicit declaration of function ?roundf?
a88d5a0c
MW
5326 (list "--enable-compile-warnings=minimum"
5327
86c44e72 5328 "--enable-native-backend"
a88d5a0c
MW
5329
5330 ;; The following flags are needed for the bundled clutter
5331 "--enable-x11-backend=yes"
5332
d633f2f6
RH
5333 (string-append "--with-xwayland-path="
5334 (assoc-ref %build-inputs "xorg-server-xwayland")
5335 "/bin/Xwayland")
5336
a88d5a0c
MW
5337 ;; the remaining flags are needed for the bundled cogl
5338 "--enable-cogl-gst"
5339 (string-append "--with-gl-libname="
5340 (assoc-ref %build-inputs "mesa")
f23052a6
DC
5341 "/lib/libGL.so"))
5342 #:phases
5343 (modify-phases %standard-phases
86c44e72
KK
5344 ;; Replace references to systemd libraries to elogind references.
5345 (add-before 'configure 'use-elogind
5346 (lambda _
5347 (substitute* (list "configure"
5348 "src/backends/native/meta-launcher.c"
5349 "src/core/main.c")
5350 (("systemd") "elogind"))
5351 #t)))))
60c3627c
SB
5352 (native-inputs
5353 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5354 ("gobject-introspection" ,gobject-introspection)
5355 ("intltool" ,intltool)
f23052a6
DC
5356 ("pkg-config" ,pkg-config)
5357 ;; For git build
5358 ("autoconf" ,autoconf)
5359 ("automake" ,automake)
5360 ("libtool" ,libtool)))
60c3627c 5361 (propagated-inputs
a88d5a0c
MW
5362 `(;; libmutter.pc refers to these:
5363 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5364 ("gtk+" ,gtk+)
5365 ;; mutter-clutter-1.0.pc and mutter-cogl-1.0.pc refer to these:
5366 ("atk" ,atk)
5367 ("cairo" ,cairo)
5368 ("gdk-pixbuf" ,gdk-pixbuf)
5369 ("glib" ,glib)
a88d5a0c
MW
5370 ("json-glib" ,json-glib)
5371 ("libinput" ,libinput)
5372 ("libx11" ,libx11)
5373 ("libxcomposite" ,libxcomposite)
5374 ("libxdamage" ,libxdamage)
5375 ("libxext" ,libxext)
5376 ("libxfixes" ,libxfixes)
5377 ("libxkbcommon" ,libxkbcommon)
5378 ("libxrandr" ,libxrandr)
5379 ("mesa" ,mesa)
5380 ("pango" ,pango)
5381 ("udev" ,eudev)
a88d5a0c 5382 ("xinput" ,xinput)))
60c3627c 5383 (inputs
86c44e72
KK
5384 `(("elogind" ,elogind)
5385 ("gnome-desktop" ,gnome-desktop)
60c3627c 5386 ("libcanberra-gtk" ,libcanberra)
a88d5a0c 5387 ("libgudev" ,libgudev)
60c3627c
SB
5388 ("libice" ,libice)
5389 ("libsm" ,libsm)
60c3627c 5390 ("libxkbfile" ,libxkbfile)
a88d5a0c 5391 ("libxrandr" ,libxrandr)
86c44e72 5392 ("libxtst" ,libxtst)
60c3627c
SB
5393 ("startup-notification" ,startup-notification)
5394 ("upower-glib" ,upower)
5395 ("xkeyboard-config" ,xkeyboard-config)
d633f2f6 5396 ("xorg-server-xwayland" ,xorg-server-xwayland)
60c3627c
SB
5397 ("zenity" ,zenity)))
5398 (synopsis "Window and compositing manager")
f032d0be 5399 (home-page "https://www.gnome.org")
60c3627c
SB
5400 (description
5401 "Mutter is a window and compositing manager that displays and manages your
5402desktop via OpenGL. Mutter combines a sophisticated display engine using the
5403Clutter toolkit with solid window-management logic inherited from the Metacity
5404window manager.")
86c44e72 5405 (license license:gpl2+)))
685cee87
SB
5406
5407(define-public gnome-online-accounts
5408 (package
5409 (name "gnome-online-accounts")
ebb2873d 5410 (version "3.32.0")
685cee87
SB
5411 (source (origin
5412 (method url-fetch)
5413 (uri (string-append "mirror://gnome/sources/" name "/"
5414 (version-major+minor version) "/"
5415 name "-" version ".tar.xz"))
5416 (sha256
5417 (base32
ebb2873d 5418 "1anlx0rb2hafg9929pgfms25mdz23sd0vdva06h6zlf8f5byc68w"))))
14c297fd 5419 (outputs '("out" "lib"))
685cee87 5420 (build-system glib-or-gtk-build-system)
14c297fd
TS
5421 (arguments
5422 `(#:configure-flags
5423 (list (string-append "--libdir=" (assoc-ref %outputs "out") "/lib"))
5424 #:phases
5425 (modify-phases %standard-phases
5426 (add-before 'configure 'patch-libgoa-output
5427 (lambda* (#:key outputs #:allow-other-keys)
5428 (let ((lib (assoc-ref outputs "lib")))
5429 (substitute* '("src/goa/Makefile.in" "src/goa/goa-1.0.pc.in")
5430 (("@prefix@") lib)
5431 (("@exec_prefix@") lib)
5432 (("@libdir@") (string-append lib "/lib"))
5433 (("@includedir@") (string-append lib "/include"))
5434 (("@datadir@") (string-append lib "/share")))
7555d539
MB
5435 ;; Make sure gobject-introspection knows about the output
5436 ;; too (see <https://bugs.gnu.org/36535>).
5437 (setenv "outputs" "out lib")
14c297fd 5438 #t))))))
685cee87
SB
5439 (native-inputs
5440 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5441 ("gobject-introspection" ,gobject-introspection)
5442 ("intltool" ,intltool)
5443 ("pkg-config" ,pkg-config)
ebb2873d 5444 ("vala" ,vala)
685cee87
SB
5445 ("xsltproc" ,libxslt)))
5446 (propagated-inputs
5447 `(("glib" ,glib) ; required by goa-1.0.pc
5448 ("gtk+" ,gtk+))) ; required by goa-backend-1.0.pc
5449 (inputs
5450 `(("docbook-xsl" ,docbook-xsl)
5451 ("json-glib" ,json-glib)
5452 ("libsecret" ,libsecret)
5453 ("rest" ,rest)
685cee87
SB
5454 ("webkitgtk" ,webkitgtk)))
5455 (synopsis "Single sign-on framework for GNOME")
5456 (home-page "https://wiki.gnome.org/Projects/GnomeOnlineAccounts")
5457 (description
5458 "GNOME Online Accounts provides interfaces so that applications and
5459libraries in GNOME can access the user's online accounts. It has providers for
5460Google, ownCloud, Facebook, Flickr, Windows Live, Pocket, Foursquare, Microsoft
5461Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
5462 (license license:lgpl2.0+)))
df217748
SB
5463
5464(define-public evolution-data-server
5465 (package
5466 (name "evolution-data-server")
2196a8d4 5467 (version "3.32.4")
df217748
SB
5468 (source (origin
5469 (method url-fetch)
5470 (uri (string-append "mirror://gnome/sources/" name "/"
5471 (version-major+minor version) "/"
5472 name "-" version ".tar.xz"))
e1f174ae 5473 (patches (search-patches "evolution-data-server-locales.patch"))
df217748
SB
5474 (sha256
5475 (base32
2196a8d4 5476 "0zsc9xwy6ixk3x0dx69ax5isrdw8qxjdxg2i5fr95s40nss7rxl3"))))
743aebd7 5477 (build-system cmake-build-system)
df217748 5478 (arguments
b468eedc
RW
5479 '(#:configure-flags
5480 (let* ((lib (string-append (assoc-ref %outputs "out") "/lib"))
5481 (runpaths (map (lambda (s)
5482 (string-append lib "/evolution-data-server/" s))
ac033c7b
MB
5483 '("addressbook-backends" "calendar-backends"
5484 "camel-providers" "credential-modules"
5485 "registry-modules"))))
5486 (list "-DENABLE_UOA=OFF" ;disable Ubuntu Online Accounts support
5487 "-DENABLE_GOOGLE=OFF" ;disable Google Contacts support
5488 "-DENABLE_GOOGLE_AUTH=OFF" ;disable Google authentication
5489 "-DENABLE_VALA_BINDINGS=ON"
ac033c7b
MB
5490 (string-append "-DCMAKE_INSTALL_RPATH=" lib ";"
5491 (string-append lib "/evolution-data-server;")
5492 (string-join runpaths ";"))
5493 "-DENABLE_INTROSPECTION=ON")) ;required for Vala bindings
df217748
SB
5494 #:phases
5495 (modify-phases %standard-phases
b468eedc
RW
5496 (add-after 'unpack 'disable-failing-tests
5497 (lambda _
5498 ;; tests/book-migration/test-migration.c:160:test_fetch_contacts:
5499 ;; assertion failed (g_slist_length (contacts) == 20): (0 == 20)
5500 (delete-file-recursively "tests/book-migration")
5501 (substitute* "tests/CMakeLists.txt"
5502 (("add_subdirectory\\(book-migration\\)") ""))
2196a8d4
KK
5503 ;; tests/libebook/client/test-book-client-view-operations:8077):
5504 ;; e-data-server-WARNING **:
5505 ;; (src/libedataserver/e-source-registry.c:264):thread_closure_free:
5506 ;; runtime check failed:
5507 ;; (!g_main_context_pending (closure->main_context))
5508 (substitute* "tests/libebook/client/CMakeLists.txt"
5509 (("test-book-client-view-operations") ""))
b468eedc 5510 #t))
743aebd7 5511 (add-after 'unpack 'patch-paths
df217748 5512 (lambda _
b468eedc
RW
5513 (substitute* '("tests/test-server-utils/e-test-server-utils.c"
5514 "tests/libedata-book/data-test-utils.c"
5515 "tests/libedata-book/test-book-cache-utils.c"
5516 "tests/libedata-cal/test-cal-cache-utils.c")
df217748 5517 (("/bin/rm") (which "rm")))
ac033c7b
MB
5518 #t))
5519 (add-before 'configure 'dont-override-rpath
5520 (lambda _
5521 (substitute* "CMakeLists.txt"
5522 ;; CMakeLists.txt hard-codes runpath to just the libdir.
5523 ;; Remove it so the configure flag is respected.
5524 (("SET\\(CMAKE_INSTALL_RPATH .*") ""))
b63c06f1 5525 #t)))))
df217748
SB
5526 (native-inputs
5527 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
5528 ("gobject-introspection" ,gobject-introspection)
5529 ("gperf" ,gperf)
5530 ("intltool" ,intltool)
5531 ("pkg-config" ,pkg-config)
a73c1cf8 5532 ("vala" ,vala)
743aebd7 5533 ("python" ,python-wrapper)))
df217748
SB
5534 (propagated-inputs
5535 ;; These are all in the Requires field of .pc files.
5536 `(("gtk+" ,gtk+)
5537 ("libical" ,libical)
5538 ("libsecret" ,libsecret)
5539 ("libsoup" ,libsoup)
5540 ("nss" ,nss)
5541 ("sqlite" ,sqlite)))
5542 (inputs
5543 `(("bdb" ,bdb)
5544 ("gcr" ,gcr)
14c297fd 5545 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
891199c6 5546 ("json-glib" ,json-glib)
b468eedc 5547 ("libcanberra" ,libcanberra)
743aebd7
MB
5548 ("libgweather" ,libgweather)
5549 ("mit-krb5" ,mit-krb5)
891199c6
MW
5550 ("openldap" ,openldap)
5551 ("webkitgtk" ,webkitgtk)))
df217748
SB
5552 (synopsis "Store address books and calendars")
5553 (home-page "https://wiki.gnome.org/Apps/Evolution")
5554 (description
5555 "This package provides a unified backend for programs that work with
5556contacts, tasks, and calendar information. It was originally developed for
5557Evolution (hence the name), but is now used by other packages as well.")
5558 (license license:lgpl2.0)))
bd7dfafa
SB
5559
5560(define-public caribou
5561 (package
5562 (name "caribou")
fe964bb5 5563 (version "0.4.21")
bd7dfafa
SB
5564 (source (origin
5565 (method url-fetch)
5566 (uri (string-append "mirror://gnome/sources/" name "/"
5567 (version-major+minor version) "/"
5568 name "-" version ".tar.xz"))
5569 (sha256
5570 (base32
fe964bb5 5571 "0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
bd7dfafa
SB
5572 (build-system glib-or-gtk-build-system)
5573 (arguments
5574 '(#:phases
5575 (modify-phases %standard-phases
5576 (add-before
5577 'build 'pre-build
5578 (lambda* (#:key outputs #:allow-other-keys)
5579 (let ((out (assoc-ref outputs "out")))
5580 ;; Use absolute shared library path in Caribou-1.0.typelib.
5581 (substitute* "libcaribou/Makefile"
5582 (("--shared-library=libcaribou.so")
5583 (string-append "--shared-library="
5584 out "/lib/libcaribou.so")))
5585 #t)))
5586 (add-after 'install 'wrap-programs
5587 (lambda* (#:key outputs #:allow-other-keys)
5588 (let* ((out (assoc-ref outputs "out"))
5589 (python-path (getenv "PYTHONPATH"))
5590 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
5591 (for-each
5592 (lambda (prog)
5593 (wrap-program prog
5594 `("PYTHONPATH" ":" prefix (,python-path))
5595 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
5596 (list (string-append out "/bin/caribou-preferences")
5597 (string-append out "/libexec/antler-keyboard"))))
5598 #t)))))
5599 (native-inputs
5600 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
5601 ("gobject-introspection" ,gobject-introspection)
5602 ("intltool" ,intltool)
5603 ("pkg-config" ,pkg-config)
5604 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
5605 ("vala" ,vala)
5606 ("xsltproc" ,libxslt)))
5607 (propagated-inputs
5608 ;; caribou-1.0.pc refers to all these.
5609 `(("libgee" ,libgee)
5610 ("libxklavier" ,libxklavier)
5611 ("libxtst" ,libxtst)
5612 ("gtk+" ,gtk+)))
5613 (inputs
5614 `(("clutter" ,clutter)
5615 ("dconf" ,dconf)
5616 ("gtk+-2" ,gtk+-2)
5617 ("python-pygobject" ,python2-pygobject)))
5618 (synopsis "Text entry and UI navigation application")
5619 (home-page "https://wiki.gnome.org/Projects/Caribou")
5620 (description
5621 "Caribou is an input assistive technology intended for switch and pointer
5622users.")
5623 (license license:lgpl2.1)))
ba5dd105 5624
ba5dd105
SB
5625(define-public network-manager
5626 (package
5627 (name "network-manager")
02710a9b 5628 (version "1.14.4")
ba5dd105
SB
5629 (source (origin
5630 (method url-fetch)
5631 (uri (string-append "mirror://gnome/sources/NetworkManager/"
5632 (version-major+minor version) "/"
5633 "NetworkManager-" version ".tar.xz"))
7d1861e2 5634 (patches (search-patches "nm-plugin-path.patch"))
ba5dd105
SB
5635 (sha256
5636 (base32
02710a9b
RW
5637 "064cgj9za0kzarks0lrv0qw2ysdphb5l97iw0c964bfiqzjfv8rm"))
5638 (modules '((guix build utils)))
fd070f35 5639 (snippet
02710a9b
RW
5640 '(begin
5641 (substitute* "src/devices/wwan/nm-modem-manager.c"
5642 (("systemd") "elogind"))
5643 #t))))
ba5dd105
SB
5644 (build-system gnu-build-system)
5645 (outputs '("out"
5646 "doc")) ; 8 MiB of gtk-doc HTML
5647 (arguments
5648 '(#:configure-flags
5649 (let ((out (assoc-ref %outputs "out"))
5650 (doc (assoc-ref %outputs "doc"))
5651 (dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
5652 "/sbin/dhclient")))
02710a9b
RW
5653 (list "--with-libnm-glib" ; needed by network-manager-applet
5654 "--with-systemd-journal=no"
5655 "--with-session-tracking=elogind"
5656 "--with-suspend-resume=elogind"
fd070f35
CM
5657 "--with-consolekit=no"
5658 "--with-crypto=gnutls"
ba5dd105
SB
5659 "--disable-config-plugin-ibft"
5660 "--sysconfdir=/etc"
5661 "--localstatedir=/var"
5662 (string-append "--with-udev-dir="
5663 out "/lib/udev")
5664 (string-append "--with-dbus-sys-dir="
5665 out "/etc/dbus-1/system.d")
5666 (string-append "--with-html-dir="
5667 doc "/share/gtk-doc/html")
5668 (string-append "--with-dhclient=" dhclient)))
5669 #:phases
5670 (modify-phases %standard-phases
02710a9b
RW
5671 ;; This bare "ls" invocation breaks some tests.
5672 (add-after 'unpack 'patch-ls-invocation
5673 (lambda _
5674 (substitute* "build-aux/ltmain.sh"
5675 (("`ls -")
5676 (string-append "`" (which "ls") " -")))
5677 #t))
b4f59d87
AW
5678 (add-before 'configure 'pre-configure
5679 (lambda _
5680 ;; These tests try to test aspects of network-manager's
5681 ;; functionality within restricted containers, but they don't
5682 ;; cope with being already in the Guix build jail as that jail
5683 ;; lacks some features that they would like to proxy over (like
5684 ;; a /sys mount).
d04687dc
HG
5685 (substitute* '("Makefile.in")
5686 (("src/platform/tests/test-address-linux") " ")
5687 (("src/platform/tests/test-cleanup-linux") " ")
5688 (("src/platform/tests/test-link-linux") " ")
5689 (("src/platform/tests/test-route-linux") " ")
02710a9b 5690 (("src/devices/tests/test-acd") "")
d04687dc
HG
5691 (("src/devices/tests/test-arping") " ")
5692 (("src/devices/tests/test-lldp") " ")
5693 (("src/tests/test-route-manager-linux") " "))
b4f59d87 5694 #t))
45f80fce
RW
5695 (add-after 'unpack 'delete-failing-tests
5696 (lambda _
02710a9b 5697 ;; FIXME: These three tests fail for unknown reasons.
45f80fce
RW
5698 ;; ERROR:libnm-core/tests/test-general.c:5842:
5699 ;; _json_config_check_valid: assertion failed (res == expected): (1 == 0)
5700 ;; ERROR:libnm-core/tests/test-keyfile.c:647:
5701 ;; test_team_conf_read_invalid: assertion failed: (nm_setting_team_get_config (s_team) == NULL)
5702 ;; ERROR:libnm-core/tests/test-setting.c:907:
5703 ;; _test_team_config_sync: assertion failed: (nm_streq0 (nm_setting_team_get_runner (s_team), runner))
45f80fce
RW
5704 (substitute* "Makefile.in"
5705 (("libnm-core/tests/test-general") " ")
5706 (("libnm-core/tests/test-keyfile") " ")
02710a9b 5707 (("libnm-core/tests/test-setting\\$\\(EXEEXT\\)") " "))
45f80fce 5708 #t))
ba5dd105
SB
5709 (add-before 'check 'pre-check
5710 (lambda _
5711 ;; For the missing /etc/machine-id.
5712 (setenv "DBUS_FATAL_WARNINGS" "0")
5713 #t))
5714 (replace 'install
5715 (lambda _
45f80fce
RW
5716 (invoke "make"
5717 "sysconfdir=/tmp"
5718 "rundir=/tmp"
5719 "statedir=/tmp"
5720 "nmstatedir=/tmp/nm"
5721 "install")
5722 #t)))))
b93502d6
DC
5723 (propagated-inputs
5724 `(("glib" ,glib)))
ba5dd105
SB
5725 (native-inputs
5726 `(("glib:bin" ,glib "bin") ; for gdbus-codegen
5727 ("gobject-introspection" ,gobject-introspection)
d04687dc 5728 ("docbook-xsl" ,docbook-xsl)
ba5dd105 5729 ("intltool" ,intltool)
d04687dc
HG
5730 ("libxslt" ,libxslt)
5731 ("libxml2" ,libxml2)
ba5dd105
SB
5732 ("pkg-config" ,pkg-config)
5733 ;; For testing.
5734 ("python" ,python-wrapper)
5735 ("python-dbus" ,python-dbus)
5736 ("python-pygobject" ,python-pygobject)))
5737 (inputs
02710a9b
RW
5738 `(("coreutils" ,coreutils) ; for ls
5739 ("curl" ,curl)
856ca567
KK
5740 ("cyrus-sasl" ,cyrus-sasl)
5741 ("dbus-glib" ,dbus-glib)
ba5dd105 5742 ("dnsmasq" ,dnsmasq)
856ca567 5743 ("eudev" ,eudev)
ba5dd105
SB
5744 ("gnutls" ,gnutls)
5745 ("iptables" ,iptables)
5746 ("isc-dhcp" ,isc-dhcp)
d04687dc 5747 ("jansson" ,jansson)
ba5dd105
SB
5748 ("libgcrypt" ,libgcrypt)
5749 ("libgudev" ,libgudev)
5750 ("libndp" ,libndp)
5751 ("libnl" ,libnl)
5752 ("libsoup" ,libsoup)
142bdcbc 5753 ("modem-manager" ,modem-manager)
c27e02bf 5754 ("newt" ,newt) ;for the 'nmtui' console interface
ba5dd105
SB
5755 ("polkit" ,polkit)
5756 ("ppp" ,ppp)
5757 ("readline" ,readline)
fd070f35
CM
5758 ("util-linux" ,util-linux)
5759 ("elogind" ,elogind)))
ba5dd105 5760 (synopsis "Network connection manager")
f032d0be 5761 (home-page "https://www.gnome.org/projects/NetworkManager/")
ba5dd105
SB
5762 (description
5763 "NetworkManager is a system network service that manages your network
5764devices and connections, attempting to keep active network connectivity when
5765available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE
5766devices, and provides VPN integration with a variety of different VPN
5767services.")
29d2f451
LC
5768 (license license:gpl2+)
5769 (properties '((upstream-name . "NetworkManager")))))
4d62a9d3 5770
f2b96b3a
LC
5771(define-public network-manager-openvpn
5772 (package
5773 (name "network-manager-openvpn")
be1c4b07 5774 ;; Updating? Check whether network-manager-applet still needs libnm_gtk.
7d87eede 5775 (version "1.8.10")
f2b96b3a
LC
5776 (source (origin
5777 (method url-fetch)
5778 (uri (string-append
5779 "mirror://gnome/sources/NetworkManager-openvpn/"
5780 (version-major+minor version)
5781 "/NetworkManager-openvpn-" version ".tar.xz"))
5782 (sha256
5783 (base32
7d87eede 5784 "1vri49yff4lj13dnzkpq9nx3a4z1bmbrv807r151plj8m1mwhg5g"))))
f2b96b3a
LC
5785 (build-system gnu-build-system)
5786 (arguments
633422b0
JL
5787 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
5788 #:phases
5789 (modify-phases %standard-phases
5790 (add-after 'configure 'patch-path
5791 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
5792 (let* ((ovpn (string-append (assoc-ref inputs "openvpn")
5793 "/sbin/openvpn"))
5794 (modprobe (string-append (assoc-ref inputs "kmod")
5795 "/bin/modprobe"))
5796 (pretty-ovpn (string-append "\"" ovpn "\"")))
5797 (for-each
5798 (lambda (file)
5799 (substitute* file
5800 (("\"/usr/local/sbin/openvpn\"") pretty-ovpn)
5801 (("\"/usr/sbin/openvpn\"") pretty-ovpn)
5802 (("\"/sbin/openvpn\"") pretty-ovpn)
5803 (("/sbin/modprobe") modprobe)))
5804 '("src/nm-openvpn-service.c" "properties/nm-openvpn-editor.c")))
5805 #t)))))
f2b96b3a
LC
5806 (native-inputs
5807 `(("pkg-config" ,pkg-config)
5808 ("intltool" ,intltool)))
5809 (inputs
5810 `(("gtk+" ,gtk+)
633422b0 5811 ("kmod" ,kmod)
f2b96b3a
LC
5812 ("openvpn" ,openvpn)
5813 ("network-manager" ,network-manager)
5814 ("network-manager-applet" ,network-manager-applet) ;for libnma
5815 ("libsecret" ,libsecret)))
5816 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
5817 (synopsis "OpenVPN plug-in for NetworkManager")
5818 (description
5819 "This extension of NetworkManager allows it to take care of connections
5820to virtual private networks (VPNs) via OpenVPN.")
5821 (license license:gpl2+)
5822 (properties `((upstream-name . "NetworkManager-openvpn")))))
5823
d376129f
JL
5824(define-public network-manager-vpnc
5825 (package
5826 (name "network-manager-vpnc")
5827 (version "1.2.6")
5828 (source (origin
5829 (method url-fetch)
5830 (uri (string-append
5831 "mirror://gnome/sources/NetworkManager-vpnc/"
5832 (version-major+minor version)
5833 "/NetworkManager-vpnc-" version ".tar.xz"))
5834 (sha256
5835 (base32
5836 "1js5lwcsqws4klgypfxl4ikmakv7v7xgddij1fj6b0y0qicx0kyy"))))
5837 (build-system gnu-build-system)
5838 (arguments
5839 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
5840 #:phases
5841 (modify-phases %standard-phases
5842 (add-after 'configure 'patch-path
5843 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
5844 (let* ((vpnc (string-append (assoc-ref inputs "vpnc")
5845 "/sbin/vpnc"))
5846 (modprobe (string-append (assoc-ref inputs "kmod")
5847 "/bin/modprobe"))
5848 (pretty-ovpn (string-append "\"" vpnc "\"")))
5849 (substitute* "src/nm-vpnc-service.c"
5850 (("\"/usr/local/sbin/vpnc\"") pretty-ovpn)
5851 (("\"/usr/sbin/vpnc\"") pretty-ovpn)
5852 (("\"/sbin/vpnc\"") pretty-ovpn)
5853 (("/sbin/modprobe") modprobe)))
5854 #t)))))
5855 (native-inputs
5856 `(("pkg-config" ,pkg-config)
5857 ("intltool" ,intltool)))
5858 (inputs
5859 `(("gtk+" ,gtk+)
5860 ("kmod" ,kmod)
5861 ("vpnc" ,vpnc)
5862 ("network-manager" ,network-manager)
5863 ("network-manager-applet" ,network-manager-applet) ;for libnma
5864 ("libsecret" ,libsecret)))
5865 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
5866 (synopsis "VPNC plug-in for NetworkManager")
5867 (description
5868 "Support for configuring virtual private networks based on VPNC.
5869Compatible with Cisco VPN concentrators configured to use IPsec.")
5870 (license license:gpl2+)
5871 (properties `((upstream-name . "NetworkManager-vpnc")))))
5872
8378c87a
EF
5873(define-public network-manager-openconnect
5874 (package
5875 (name "network-manager-openconnect")
5876 (version "1.2.6")
5877 (source (origin
5878 (method url-fetch)
5879 (uri (string-append
5880 "mirror://gnome/sources/NetworkManager-openconnect/"
5881 (version-major+minor version)
5882 "/NetworkManager-openconnect-" version ".tar.xz"))
5883 (sha256
5884 (base32
5885 "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m"))))
5886 (build-system gnu-build-system)
5887 (arguments
5888 `(#:configure-flags '("--enable-absolute-paths" "--localstatedir=/var")
5889 #:phases
5890 (modify-phases %standard-phases
5891 (add-after 'configure 'patch-path
5892 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
5893 (let* ((openconnect (string-append (assoc-ref inputs "openconnect")
5894 "/sbin/openconnect"))
5895 (modprobe (string-append (assoc-ref inputs "kmod")
5896 "/bin/modprobe"))
5897 (pretty-ovpn (string-append "\"" openconnect "\"")))
5898 (substitute* "src/nm-openconnect-service.c"
5899 (("\"/usr/local/sbin/openconnect\"") pretty-ovpn)
5900 (("\"/usr/sbin/openconnect\"") pretty-ovpn)
5901 (("/sbin/modprobe") modprobe)))
5902 #t)))))
5903 (native-inputs
5904 `(("intltool" ,intltool)
5905 ("network-manager-applet" ,network-manager-applet) ;for libnma
5906 ("pkg-config" ,pkg-config)))
5907 (inputs
5908 `(("gcr" ,gcr)
5909 ("gtk+" ,gtk+)
5910 ("kmod" ,kmod)
5911 ("libsecret" ,libsecret)
5912 ("libxml2" ,libxml2)
5913 ("network-manager" ,network-manager)
5914 ("openconnect" ,openconnect)))
5915 (home-page "https://wiki.gnome.org/Projects/NetworkManager/VPN")
5916 (synopsis "OpenConnect plug-in for NetworkManager")
5917 (description
5918 "This extension of NetworkManager allows it to take care of connections
5919to @acronym{VPNs, virtual private networks} via OpenConnect, an open client for
5920Cisco's AnyConnect SSL VPN.")
5921 (license license:gpl2+)
e52b9534
LC
5922 (properties `((upstream-name . "NetworkManager-openconnect")
5923
5924 ;; The 'etc/dbus-1/system.d/nm-openconnect-service.conf'
5925 ;; file refers to account "nm-openconnect". Specify it here
5926 ;; so that 'network-manager-service-type' creates it.
5927 (user-accounts . ("nm-openconnect"))))))
8378c87a 5928
e5e1df4d
DC
5929(define-public mobile-broadband-provider-info
5930 (package
5931 (name "mobile-broadband-provider-info")
310c89e3 5932 (version "20190116")
e5e1df4d
DC
5933 (source (origin
5934 (method url-fetch)
5935 (uri (string-append
5936 "mirror://gnome/sources/"
5937 "mobile-broadband-provider-info/" version "/"
5938 "mobile-broadband-provider-info-" version ".tar.xz"))
5939 (sha256
5940 (base32
310c89e3 5941 "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"))))
e5e1df4d
DC
5942 (build-system gnu-build-system)
5943 (arguments
310c89e3 5944 `(#:tests? #f)) ; no tests
e5e1df4d
DC
5945 (home-page "https://wiki.gnome.org/Projects/NetworkManager")
5946 (synopsis "Database of broadband connection configuration")
5947 (description "Database of broadband connection configuration.")
5948 (license license:public-domain)))
5949
4d62a9d3
SB
5950(define-public network-manager-applet
5951 (package
5952 (name "network-manager-applet")
8fc3a337 5953 (version "1.8.24")
4d62a9d3
SB
5954 (source (origin
5955 (method url-fetch)
3df63444 5956 (uri (string-append "mirror://gnome/sources/network-manager-applet/"
4d62a9d3 5957 (version-major+minor version) "/"
3df63444 5958 "network-manager-applet-" version ".tar.xz"))
4d62a9d3
SB
5959 (sha256
5960 (base32
8fc3a337 5961 "1gzvz4wfqfsfclqg56y954al8x6fmz71cnxlx1i4nqr7a25bp2qi"))))
cd7f718e
RW
5962 (build-system meson-build-system)
5963 (arguments
be1c4b07
TGR
5964 '(#:configure-flags
5965 ;; ‘Nobody should be using this’ but network-manager-openvpn 1.8.10 does.
5966 (list "-Dlibnm_gtk=true")
5967 #:glib-or-gtk? #t))
4d62a9d3
SB
5968 (native-inputs
5969 `(("intltool" ,intltool)
cd7f718e 5970 ("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
4d62a9d3 5971 ("gobject-introspection" ,gobject-introspection)
cd7f718e 5972 ("gtk-doc" ,gtk-doc)
4d62a9d3
SB
5973 ("pkg-config" ,pkg-config)))
5974 (propagated-inputs
5975 ;; libnm-gtk.pc refers to all these.
5976 `(("dbus-glib" ,dbus-glib)
5977 ("gtk+" ,gtk+)
5978 ("network-manager" ,network-manager)))
5979 (inputs
cd7f718e
RW
5980 `(("gcr" ,gcr)
5981 ("iso-codes" ,iso-codes)
4d62a9d3
SB
5982 ("libgudev" ,libgudev)
5983 ("libnotify" ,libnotify)
2116bfb3 5984 ("libsecret" ,libsecret)
240cee8a
KK
5985 ("libselinux" ,libselinux)
5986 ("jansson" ,jansson) ; for team support
3e9c80b2
FP
5987 ("modem-manager" ,modem-manager)
5988 ("mobile-broadband-provider-info" ,mobile-broadband-provider-info)))
4d62a9d3 5989 (synopsis "Applet for managing network connections")
f032d0be 5990 (home-page "https://www.gnome.org/projects/NetworkManager/")
4d62a9d3
SB
5991 (description
5992 "This package contains a systray applet for NetworkManager. It displays
5993the available networks and allows users to easily switch between them.")
5994 (license license:gpl2+)))
56196594
RW
5995
5996(define-public libxml++
5997 (package
5998 (name "libxml++")
8344a85e 5999 (version "3.0.1")
56196594
RW
6000 (source (origin
6001 (method url-fetch)
6002 (uri (string-append "mirror://gnome/sources/" name "/"
6003 (version-major+minor version) "/"
6004 name "-" version ".tar.xz"))
6005 (sha256
6006 (base32
8344a85e 6007 "19kik79fmg61nv0by0a5f9wchrcfjwzvih4v2waw01hqflhqvp0r"))))
56196594
RW
6008 (build-system gnu-build-system)
6009 ;; libxml++-3.0.pc refers to all these.
6010 (propagated-inputs
6011 `(("libxml2" ,libxml2)
6012 ("glibmm" ,glibmm)))
6013 (native-inputs
6014 `(("perl" ,perl)
6015 ("pkg-config" ,pkg-config)))
6016 (home-page "http://libxmlplusplus.sourceforge.net/")
6017 (synopsis "C++ wrapper for XML parser library libxml2")
6018 (description
6019 "This package provides a C++ wrapper for the XML parser library
6020libxml2.")
6021 (license license:lgpl2.1+)))
df12f04a 6022
b61d9627
AW
6023(define-public libxml++-2
6024 (package
6025 (inherit libxml++)
6026 (name "libxml++")
6027 (version "2.40.1")
6028 (source (origin
6029 (method url-fetch)
6030 (uri (string-append "mirror://gnome/sources/" name "/"
6031 (version-major+minor version) "/"
6032 name "-" version ".tar.xz"))
6033 (sha256
6034 (base32
6035 "1sb3akryklvh2v6m6dihdnbpf1lkx441v972q9hlz1sq6bfspm2a"))))))
6036
df12f04a
SB
6037(define-public gdm
6038 (package
6039 (name "gdm")
7734b4a2 6040 (version "3.30.3")
df12f04a
SB
6041 (source (origin
6042 (method url-fetch)
6043 (uri (string-append "mirror://gnome/sources/" name "/"
6044 (version-major+minor version) "/"
6045 name "-" version ".tar.xz"))
6046 (sha256
6047 (base32
7734b4a2 6048 "15f7lz7z75krgbq8vb800afj96h8mw2fpy1s28za2911x5vgq0ak"))))
957dbc0a 6049 (build-system glib-or-gtk-build-system)
df12f04a
SB
6050 (arguments
6051 '(#:configure-flags
af37e6bb 6052 `("--without-plymouth"
957dbc0a 6053 "--disable-systemd-journal"
51bc8357
TS
6054
6055 ;; Using --with-initial-vt=7 allows GDM to run alongside TTY 1,
6056 ;; instead of having to replace it (i.e., stopping the mingetty
6057 ;; service for TTY 1 before starting GDM).
6058 "--with-initial-vt=7"
6059
89c86562
TS
6060 ;; Use '/etc/environment' for locale settings instead of the
6061 ;; systemd-specific '/etc/locale.conf'.
6062 "--with-lang-file=/etc/environment"
6063
b74ef0ba
RW
6064 ,(string-append "--with-udevdir="
6065 (assoc-ref %outputs "out") "/lib/udev")
6066
af37e6bb
AW
6067 "--localstatedir=/var"
6068 ,(string-append "--with-default-path="
6069 (string-join '("/run/setuid-programs"
6070 "/run/current-system/profile/bin"
6071 "/run/current-system/profile/sbin")
957dbc0a
AW
6072 ":"))
6073 ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
6074 ;; XDG_DATA_DIRS so that it finds its schemas.
6075 "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
df12f04a
SB
6076 #:phases
6077 (modify-phases %standard-phases
6078 (add-before
6079 'configure 'pre-configure
e8c6e771 6080 (lambda* (#:key inputs outputs #:allow-other-keys)
df12f04a
SB
6081 ;; We don't have <systemd/sd-daemon.h>.
6082 (substitute* '("common/gdm-log.c"
6083 "daemon/gdm-server.c"
6084 "daemon/gdm-session-worker.c"
6085 "daemon/gdm-session-worker-job.c")
6086 (("#include <systemd/sd-daemon\\.h>") ""))
6087 ;; Use elogind for sd-login.
6088 (substitute* '("common/gdm-common.c"
6089 "daemon/gdm-manager.c"
6090 "libgdm/gdm-user-switching.c")
6091 (("#include <systemd/sd-login\\.h>")
6092 "#include <elogind/sd-login.h>"))
957dbc0a
AW
6093 ;; Check for elogind.
6094 (substitute* '("configure")
6095 (("libsystemd")
6096 "libelogind"))
af37e6bb
AW
6097 ;; Look for system-installed sessions in
6098 ;; /run/current-system/profile/share.
6099 (substitute* '("libgdm/gdm-sessions.c"
6100 "daemon/gdm-session.c"
6101 "daemon/gdm-display.c"
6102 "daemon/gdm-launch-environment.c")
6103 (("DATADIR \"/x")
6104 "\"/run/current-system/profile/share/x")
6105 (("DATADIR \"/wayland")
6106 "\"/run/current-system/profile/share/wayland")
6107 (("DATADIR \"/gnome")
6108 "\"/run/current-system/profile/share/gnome"))
c9ff92b5 6109 (let ((propagate '("GDM_CUSTOM_CONF"
1f564c15 6110 "GDM_DBUS_DAEMON"
c9ff92b5 6111 "GDM_X_SERVER"
41fa9f18 6112 "GDM_X_SESSION"
c9ff92b5
TS
6113 ;; XXX: Remove this once GNOME Shell is
6114 ;; a dependency of GDM.
6115 "XDG_DATA_DIRS")))
6116 (substitute* "daemon/gdm-session.c"
6117 (("set_up_session_environment \\(self\\);")
6118 (apply string-append
6119 "set_up_session_environment (self);\n"
6120 (map (lambda (name)
6121 (string-append
6122 "gdm_session_set_environment_variable "
6123 "(self, \"" name "\","
6124 "g_getenv (\"" name "\"));\n"))
6125 propagate)))))
a430a350
TS
6126 ;; Find the configuration file using an environment variable.
6127 (substitute* '("common/gdm-settings.c")
e0e6756f 6128 (("GDM_CUSTOM_CONF")
e57c2adb
TS
6129 (string-append "(g_getenv(\"GDM_CUSTOM_CONF\") != NULL"
6130 " ? g_getenv(\"GDM_CUSTOM_CONF\")"
6131 " : GDM_CUSTOM_CONF)")))
e0e6756f
AW
6132 ;; Use service-supplied path to X.
6133 (substitute* '("daemon/gdm-server.c")
6134 (("\\(X_SERVER X_SERVER_ARG_FORMAT")
6135 "(\"%s\" X_SERVER_ARG_FORMAT, g_getenv (\"GDM_X_SERVER\")"))
6136 (substitute* '("daemon/gdm-x-session.c")
1f564c15
TS
6137 (("\"dbus-daemon\"")
6138 "g_getenv (\"GDM_DBUS_DAEMON\")")
e0e6756f 6139 (("X_SERVER")
41fa9f18
TS
6140 "g_getenv (\"GDM_X_SERVER\")")
6141 (("GDMCONFDIR \"/Xsession\"")
6142 "g_getenv (\"GDM_X_SESSION\")"))
def6d6b6
TS
6143 ;; Use an absolute path for GNOME Session.
6144 (substitute* "daemon/gdm-launch-environment.c"
6145 (("\"gnome-session\"")
6146 (string-append "\"" (assoc-ref inputs "gnome-session")
6147 "/bin/gnome-session\"")))
e8c6e771
TS
6148 ;; Do not automatically select the placeholder session.
6149 (substitute* "daemon/gdm-session.c"
6150 (("!g_str_has_suffix [(]base_name, \"\\.desktop\"[)]")
6151 (string-append "!g_str_has_suffix (base_name, \".desktop\") || "
6152 "(g_strcmp0(search_dirs[i], \""
6153 (assoc-ref outputs "out") "/share/gdm/BuiltInSessions/"
6154 "\") == 0 && "
6155 "g_strcmp0(base_name, \"fail.desktop\") == 0)"))
6156 (("g_error [(]\"GdmSession: no session desktop files installed, aborting\\.\\.\\.\"[)];")
6157 "{ self->priv->fallback_session_name = g_strdup(\"fail\"); goto out; }"))
69544798 6158 #t))
8caa4589
TS
6159 ;; GDM requires that there be at least one desktop entry
6160 ;; file. This phase installs a hidden one that simply
6161 ;; fails. This enables users to use GDM with a
6162 ;; '~/.xsession' script with no other desktop entry files.
6163 ;; See <https://bugs.gnu.org/35068>.
6164 (add-after 'install 'install-placeholder-desktop-entry
6165 (lambda* (#:key inputs outputs #:allow-other-keys)
6166 (let* ((out (assoc-ref outputs "out"))
6167 (sessions (string-append out "/share/gdm/BuiltInSessions"))
6168 (fail (string-append sessions "/fail.desktop")))
6169 (mkdir-p sessions)
6170 (with-output-to-file fail
6171 (lambda ()
6172 (for-each
6173 display
6174 '("[Desktop Entry]\n"
6175 "Encoding=UTF-8\n"
6176 "Type=Application\n"
6177 "Name=Fail\n"
6178 "Comment=This session fails immediately.\n"
6179 "NoDisplay=true\n"
6180 "Exec=false\n"))))
6181 #t)))
69544798
TS
6182 ;; GDM needs GNOME Session to run these applications. We link
6183 ;; their autostart files in `share/gdm/greeter/autostart'
6184 ;; because GDM explicitly tells GNOME Session to look there.
6185 ;;
6186 ;; XXX: GNOME Shell should be linked here too, but currently
6187 ;; GNOME Shell depends on GDM.
6188 (add-after 'install 'link-autostart-files
6189 (lambda* (#:key inputs outputs #:allow-other-keys)
6190 (let* ((out (assoc-ref outputs "out"))
6191 (autostart (string-append out "/share/gdm/"
6192 "greeter/autostart"))
6193 (settings (assoc-ref inputs "gnome-settings-daemon")))
6194 (mkdir-p autostart)
6195 (with-directory-excursion autostart
6196 (for-each (lambda (desktop)
6197 (symlink desktop (basename desktop)))
6198 (find-files (string-append settings "/etc/xdg"))))
6199 #t))))))
df12f04a
SB
6200 (native-inputs
6201 `(("dconf" ,dconf)
6202 ("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
6203 ("gobject-introspection" ,gobject-introspection)
6204 ("intltool" ,intltool)
6205 ("itstool" ,itstool)
6206 ("pkg-config" ,pkg-config)
6207 ("xmllint" ,libxml2)))
6208 (inputs
6209 `(("accountsservice" ,accountsservice)
6210 ("check" ,check) ; for testing
6211 ("elogind" ,elogind)
def6d6b6 6212 ("gnome-session" ,gnome-session)
69544798 6213 ("gnome-settings-daemon" ,gnome-settings-daemon)
df12f04a
SB
6214 ("gtk+" ,gtk+)
6215 ("iso-codes" ,iso-codes)
6216 ("libcanberra" ,libcanberra)
6217 ("linux-pam" ,linux-pam)))
6218 (synopsis "Display manager for GNOME")
f032d0be 6219 (home-page "https://wiki.gnome.org/Projects/GDM/")
df12f04a
SB
6220 (description
6221 "GNOME Display Manager is a system service that is responsible for
6222providing graphical log-ins and managing local and remote displays.")
6223 (license license:gpl2+)))
8e1dd04f
SB
6224
6225(define-public libgtop
6226 (package
6227 (name "libgtop")
015fc036 6228 (version "2.40.0")
8e1dd04f
SB
6229 (source (origin
6230 (method url-fetch)
59487fc2 6231 (uri (string-append "mirror://gnome/sources/libgtop/"
8e1dd04f 6232 (version-major+minor version) "/"
59487fc2 6233 "libgtop-" version ".tar.xz"))
8e1dd04f
SB
6234 (sha256
6235 (base32
015fc036 6236 "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq"))))
8e1dd04f
SB
6237 (build-system gnu-build-system)
6238 (native-inputs
6239 `(("gobject-introspection" ,gobject-introspection)
6240 ("intltool" ,intltool)
6241 ("perl" ,perl)
6242 ("pkg-config" ,pkg-config)))
6243 (propagated-inputs
6244 `(("glib" ,glib))) ; required by libgtop-2.0.pc
6245 (synopsis "Portable system access library")
6246 (home-page "https://www.gnome.org/")
6247 (description
6248 "LibGTop is a library to get system specific data such as CPU and memory
6249usage and information about running processes.")
6250 (license license:gpl2+)))
b96c4260
SB
6251
6252(define-public gnome-bluetooth
6253 (package
6254 (name "gnome-bluetooth")
723afae6 6255 (version "3.32.1")
b96c4260
SB
6256 (source (origin
6257 (method url-fetch)
6258 (uri (string-append "mirror://gnome/sources/" name "/"
6259 (version-major+minor version) "/"
6260 name "-" version ".tar.xz"))
6261 (sha256
6262 (base32
723afae6 6263 "1am1gf0nzwg6x1s8ly13j0xnjzgrfj06j0dp52x4zy9s67ywlhb4"))))
fd3b1171 6264 (build-system meson-build-system)
b96c4260
SB
6265 (native-inputs
6266 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
fd3b1171 6267 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
b96c4260
SB
6268 ("gobject-introspection" ,gobject-introspection)
6269 ("intltool" ,intltool)
6270 ("pkg-config" ,pkg-config)
6271 ("xmllint" ,libxml2)))
6272 (propagated-inputs
6273 ;; gnome-bluetooth-1.0.pc refers to all these.
723afae6
KK
6274 `(("glib" ,glib)
6275 ("gtk+" ,gtk+)))
b96c4260 6276 (inputs
723afae6
KK
6277 `(("eudev" ,eudev)
6278 ("libcanberra" ,libcanberra)
b96c4260
SB
6279 ("libnotify" ,libnotify)))
6280 (synopsis "GNOME Bluetooth subsystem")
6281 (home-page "https://wiki.gnome.org/Projects/GnomeBluetooth")
6282 (description
6283 "This package contains tools for managing and manipulating Bluetooth
6284devices using the GNOME desktop.")
6285 (license license:lgpl2.1+)))
b645146f
SB
6286
6287(define-public gnome-control-center
6288 (package
6289 (name "gnome-control-center")
a6938bac 6290 (version "3.32.2")
b645146f
SB
6291 (source (origin
6292 (method url-fetch)
6293 (uri (string-append "mirror://gnome/sources/" name "/"
6294 (version-major+minor version) "/"
6295 name "-" version ".tar.xz"))
6296 (sha256
6297 (base32
a6938bac 6298 "03np0mhfl9kkdw4cb711pda0cli9zgh2bq2gqn2zwbdi3qnhk9gs"))))
59dac026 6299 (build-system meson-build-system)
b645146f 6300 (arguments
59dac026
RW
6301 '(#:glib-or-gtk? #t
6302 #:configure-flags
64c70430
KK
6303 (list "-Dcheese=false"
6304 (string-append "-Dgnome_session_libexecdir="
6305 (assoc-ref %build-inputs "gnome-session")
6306 "/libexec"))
59dac026 6307 #:phases
b645146f
SB
6308 (modify-phases %standard-phases
6309 (add-before 'configure 'patch-paths
6310 (lambda* (#:key inputs #:allow-other-keys)
6311 (let ((libc (assoc-ref inputs "libc"))
1df38cfc 6312 (tzdata (assoc-ref inputs "tzdata"))
341225ac 6313 (libgnomekbd (assoc-ref inputs "libgnomekbd"))
64c70430
KK
6314 (nm-applet (assoc-ref inputs "network-manager-applet"))
6315 (gnome-desktop (assoc-ref inputs "gnome-desktop")))
b645146f
SB
6316 (substitute* "panels/datetime/tz.h"
6317 (("/usr/share/zoneinfo/zone.tab")
6318 (string-append tzdata "/share/zoneinfo/zone.tab")))
982c0b36 6319 (substitute* "tests/datetime/test-endianess.c"
b645146f
SB
6320 (("/usr/share/locale")
6321 (string-append libc "/share/locale")))
1df38cfc
LC
6322 (substitute* "panels/region/cc-region-panel.c"
6323 (("\"gkbd-keyboard-display")
6324 (string-append "\"" libgnomekbd
6325 "/bin/gkbd-keyboard-display")))
341225ac
LC
6326 (substitute* '("panels/network/net-device-wifi.c"
6327 "panels/network/net-device.c"
6328 "panels/network/connection-editor/net-connection-editor.c")
6329 (("\"nm-connection-editor")
6330 (string-append "\"" nm-applet
6331 "/bin/nm-connection-editor")))
1acd107c
FP
6332 (substitute* '("panels/user-accounts/run-passwd.c")
6333 (("/usr/bin/passwd")
6334 "/run/setuid-programs/passwd"))
64c70430
KK
6335 (substitute* "panels/info/cc-info-overview-panel.c"
6336 (("DATADIR \"/gnome/gnome-version.xml\"")
6337 (string-append "\"" gnome-desktop
6338 "/share/gnome/gnome-version.xml\"")))
b645146f
SB
6339 #t))))))
6340 (native-inputs
6341 `(("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
59dac026 6342 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
b645146f
SB
6343 ("intltool" ,intltool)
6344 ("pkg-config" ,pkg-config)
a6938bac
KK
6345 ("xsltproc" ,libxslt)
6346 ;; For tests
6347 ("hicolor-icon-theme" ,hicolor-icon-theme)
6348 ("python-dbusmock" ,python-dbusmock)
6349 ("xorg-server" ,xorg-server-for-tests)))
b645146f
SB
6350 (inputs
6351 `(("accountsservice" ,accountsservice)
6352 ("clutter-gtk" ,clutter-gtk)
6353 ("colord-gtk" ,colord-gtk)
6354 ("cups" ,cups)
6355 ("dconf" ,dconf)
6356 ("docbook-xsl" ,docbook-xsl)
3446ffb5 6357 ("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files
b645146f
SB
6358 ("gnome-bluetooth" ,gnome-bluetooth)
6359 ("gnome-desktop" ,gnome-desktop)
6360 ("gnome-online-accounts" ,gnome-online-accounts)
14c297fd 6361 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
64c70430 6362 ("gnome-session" ,gnome-session)
b645146f
SB
6363 ("gnome-settings-daemon" ,gnome-settings-daemon)
6364 ("grilo" ,grilo)
a6938bac 6365 ("gsound" ,gsound)
b645146f
SB
6366 ("ibus" ,ibus)
6367 ("libcanberra" ,libcanberra)
1df38cfc 6368 ("libgnomekbd" ,libgnomekbd)
b645146f
SB
6369 ("libgudev" ,libgudev)
6370 ("libgtop" ,libgtop)
6371 ("libpwquality" ,libpwquality)
982c0b36 6372 ("libsecret" ,libsecret)
b645146f
SB
6373 ("libsoup" ,libsoup)
6374 ("libxml2" ,libxml2)
6375 ("libwacom" ,libwacom)
6376 ("mesa" ,mesa)
6377 ("mit-krb5" ,mit-krb5)
6378 ("modem-manager" ,modem-manager)
6379 ("network-manager-applet" ,network-manager-applet)
6380 ("polkit" ,polkit)
6381 ("pulseaudio" ,pulseaudio)
6382 ("smbclient" ,samba)
6383 ("tzdata" ,tzdata)
982c0b36 6384 ("udisks" ,udisks)
b645146f
SB
6385 ("upower" ,upower)))
6386 (synopsis "Utilities to configure the GNOME desktop")
6387 (home-page "https://www.gnome.org/")
6388 (description
6389 "This package contains configuration applets for the GNOME desktop,
6390allowing to set accessibility configuration, desktop fonts, keyboard and mouse
6391properties, sound setup, desktop theme and background, user interface
6392properties, screen resolution, and other GNOME parameters.")
6393 (license license:gpl2+)))
a4df5756
SB
6394
6395(define-public gnome-shell
6396 (package
6397 (name "gnome-shell")
bd0dc2df 6398 (version "3.30.2")
a4df5756
SB
6399 (source (origin
6400 (method url-fetch)
6401 (uri (string-append "mirror://gnome/sources/" name "/"
6402 (version-major+minor version) "/"
6403 name "-" version ".tar.xz"))
6404 (sha256
6405 (base32
bd0dc2df 6406 "0kacd4w9lc5finsvs170i7827qkxwd1ddj0g2giizwffpjdjqqr2"))
a76d0f03
LC
6407 (patches (search-patches "gnome-shell-theme.patch"))
6408 (modules '((guix build utils)))
6409 (snippet
6410 #~(begin
a76d0f03
LC
6411 ;; Copy images for use on the GDM log-in screen.
6412 (copy-file #$(file-append %artwork-repository
6413 "/slim/0.x/background.png")
6414 "data/theme/guix-background.png")
45fef894
LC
6415 (copy-file #$(file-append %artwork-repository
6416 "/logo/Guix-horizontal-white.svg")
6417 "data/theme/guix-logo.svg")
a76d0f03 6418 #t))))
2b0c755d 6419 (build-system meson-build-system)
a4df5756 6420 (arguments
08185081
MB
6421 `(#:glib-or-gtk? #t
6422 #:disallowed-references ((,glib "bin")
11e1df56
LC
6423 ,inkscape ,libxslt
6424 ,ruby-sass)
2b0c755d
RW
6425 #:configure-flags
6426 (list "-Dsystemd=false"
6427 ;; Otherwise, the RUNPATH will lack the final path component.
6428 (string-append "-Dc_link_args=-Wl,-rpath="
6429 (assoc-ref %outputs "out")
6430 "/lib/gnome-shell"))
11e1df56 6431
08185081 6432 #:modules ((guix build meson-build-system)
11e1df56
LC
6433 (guix build utils)
6434 (srfi srfi-1))
6435
2b0c755d 6436 #:phases
a4df5756 6437 (modify-phases %standard-phases
2b0c755d 6438 (add-after 'unpack 'fix-keysdir
a4df5756
SB
6439 (lambda* (#:key outputs #:allow-other-keys)
6440 (let* ((out (assoc-ref outputs "out"))
6441 (keysdir (string-append
6442 out "/share/gnome-control-center/keybindings")))
2b0c755d
RW
6443 (substitute* "meson.build"
6444 (("keysdir =.*")
6445 (string-append "keysdir = '" keysdir "'\n")))
6446 #t)))
ebfe259f
MB
6447 (add-before 'configure 'convert-logo-to-png
6448 (lambda* (#:key inputs #:allow-other-keys)
6449 ;; Convert the logo from SVG to PNG.
6450 (invoke "inkscape" "--export-png=data/theme/guix-logo.png"
6451 "data/theme/guix-logo.svg")))
ba00235a 6452 (add-before 'configure 'record-absolute-file-names
2472cdec
LC
6453 (lambda* (#:key inputs #:allow-other-keys)
6454 (substitute* "js/misc/ibusManager.js"
6455 (("'ibus-daemon'")
6456 (string-append "'" (assoc-ref inputs "ibus")
6457 "/bin/ibus-daemon'")))
d6fda4d3
LC
6458 (substitute* "js/ui/status/keyboard.js"
6459 (("'gkbd-keyboard-display'")
6460 (string-append "'" (assoc-ref inputs "libgnomekbd")
6461 "/bin/gkbd-keyboard-display'")))
2472cdec 6462 #t))
2b0c755d
RW
6463 (add-before 'check 'pre-check
6464 (lambda* (#:key inputs #:allow-other-keys)
6465 ;; Tests require a running X server.
6466 (system "Xvfb :1 &")
6467 (setenv "DISPLAY" ":1")
6468 #t))
6469 (add-after 'install 'wrap-programs
6470 (lambda* (#:key inputs outputs #:allow-other-keys)
6471 (let ((out (assoc-ref outputs "out"))
6472 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
6473 (python-path (getenv "PYTHONPATH")))
6474 (wrap-program (string-append out "/bin/gnome-shell")
6475 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
6476 ;; FIXME: gnome-shell loads these libraries with unqualified
6477 ;; names only, so they need to be on LD_LIBRARY_PATH. The
6478 ;; alternative might be to patch gnome-shell.
6479 `("LD_LIBRARY_PATH" ":" prefix
6480 ,(map (lambda (pkg)
6481 (string-append (assoc-ref inputs pkg) "/lib"))
cd8dce8a
RW
6482 '("gdk-pixbuf"
6483 "gnome-bluetooth" "librsvg" "libgweather"))))
2b0c755d
RW
6484 (for-each
6485 (lambda (prog)
6486 (wrap-program (string-append out "/bin/" prog)
6487 `("PYTHONPATH" ":" prefix (,python-path))
6488 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
6489 '("gnome-shell-extension-tool" "gnome-shell-perf-tool"))
08185081 6490 #t)))
11e1df56
LC
6491 (replace 'glib-or-gtk-wrap
6492 (let ((wrap (assoc-ref %standard-phases 'glib-or-gtk-wrap)))
6493 (lambda* (#:key inputs outputs #:allow-other-keys #:rest rest)
6494 ;; By default Inkscape et al. would end up in the XDG_DATA_DIRS
6495 ;; settings of the wrappers created by the 'glib-or-gtk-wrap'
6496 ;; phase. Fix that since we don't need these.
6497 (wrap #:inputs (fold alist-delete inputs
6498 '("inkscape" "intltool" "glib:bin"))
6499 #:outputs outputs)))))))
a4df5756
SB
6500 (native-inputs
6501 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
2b0c755d 6502 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
a4df5756 6503 ("gobject-introspection" ,gobject-introspection)
ebfe259f 6504 ("inkscape" ,inkscape)
a4df5756
SB
6505 ("intltool" ,intltool)
6506 ("pkg-config" ,pkg-config)
6507 ("python" ,python)
2b0c755d
RW
6508 ("ruby-sass" ,ruby-sass)
6509 ("sassc" ,sassc)
a76d0f03 6510 ("xsltproc" ,libxslt)
2b0c755d 6511 ;; For tests
0b4504f6 6512 ("xorg-server" ,xorg-server-for-tests)))
a4df5756
SB
6513 (inputs
6514 `(("accountsservice" ,accountsservice)
6515 ("caribou" ,caribou)
6516 ("docbook-xsl" ,docbook-xsl)
6517 ("evolution-data-server" ,evolution-data-server)
6518 ("gcr" ,gcr)
6519 ("gdm" ,gdm)
c5db31d4 6520 ("gdk-pixbuf" ,gdk-pixbuf+svg)
a4df5756
SB
6521 ("gjs" ,gjs)
6522 ("gnome-bluetooth" ,gnome-bluetooth)
a4df5756
SB
6523 ("gnome-desktop" ,gnome-desktop)
6524 ("gnome-settings-daemon" ,gnome-settings-daemon)
6525 ("gst-plugins-base" ,gst-plugins-base)
6526 ("ibus" ,ibus)
6527 ("libcanberra" ,libcanberra)
6528 ("libcroco" ,libcroco)
d6fda4d3 6529 ("libgnomekbd" ,libgnomekbd) ;for gkbd-keyboard-display
a4df5756
SB
6530 ("libgweather" ,libgweather)
6531 ("libsoup" ,libsoup)
6532 ("mesa-headers" ,mesa-headers)
6533 ("mutter" ,mutter)
6534 ("network-manager-applet" ,network-manager-applet)
6535 ("polkit" ,polkit)
6536 ("pulseaudio" ,pulseaudio)
6537 ("python-pygobject" ,python-pygobject)
6538 ("startup-notification" ,startup-notification)
6539 ("telepathy-logger" ,telepathy-logger)
6540 ("upower" ,upower)
30e760f0
MB
6541 ;; XXX: These requirements were added in 3.24, but no mention in NEWS.
6542 ;; Missing propagation? See also: <https://bugs.gnu.org/27264>
6543 ("librsvg" ,librsvg)
2b0c755d 6544 ("geoclue" ,geoclue)))
a4df5756
SB
6545 (synopsis "Desktop shell for GNOME")
6546 (home-page "https://wiki.gnome.org/Projects/GnomeShell")
6547 (description
6548 "GNOME Shell provides core user interface functions for the GNOME desktop,
6549like switching to windows and launching applications.")
6550 (license license:gpl2+)))
c3f29bc9
RS
6551
6552(define-public gtk-vnc
6553 (package
6554 (name "gtk-vnc")
965ff023 6555 (version "0.9.0")
c3f29bc9
RS
6556 (source
6557 (origin
6558 (method url-fetch)
6559 (uri (string-append "mirror://gnome/sources/" name "/"
6560 (version-major+minor version) "/"
6561 name "-" version ".tar.xz"))
6562 (sha256
6563 (base32
965ff023 6564 "1dya1wc9vis8h0fv625pii1n70cckf1xjg1m2hndz989d118i6is"))))
c3f29bc9
RS
6565 (build-system gnu-build-system)
6566 (arguments
6567 '(#:configure-flags '("--with-gtk=3.0")))
6568 (propagated-inputs
6569 `(("gtk+" ,gtk+))) ; required by gtk-vnc-2.0.pc.
6570 (inputs
6571 `(("cyrus-sasl" ,cyrus-sasl)
6572 ("gnutls" ,gnutls)
6573 ("libgcrypt" ,libgcrypt)
6574 ("pulseaudio" ,pulseaudio)))
6575 (native-inputs
6576 `(("glib:bin" ,glib "bin")
6577 ("gobject-introspection" ,gobject-introspection)
6578 ("intltool" ,intltool)
6579 ("pkg-config" ,pkg-config)
2f17e939 6580 ("python-wrapper" ,python-wrapper)
c3f29bc9
RS
6581 ("vala" ,vala)))
6582 (home-page "https://wiki.gnome.org/Projects/gtk-vnc")
6583 (synopsis "VNC viewer widget for GTK+")
6584 (description
6585 "GTK-VNC is a VNC viewer widget for GTK+, used by remote desktop viewing
6586applications, for instance the Vinagre client, GNOME Boxes and virt-viewer.
6587GTK-VNC implements client side RFB protocol and authentication extensions such
6588as SASL, TLS and VeNCrypt. Additionally it supports encoding extensions.")
6589 (license license:lgpl2.1+)))
8b877545 6590
dc69fe18
MW
6591(define-public gnome-autoar
6592 (package
6593 (name "gnome-autoar")
c7da8510 6594 (version "0.2.3")
dc69fe18
MW
6595 (source (origin
6596 (method url-fetch)
6597 (uri (string-append "mirror://gnome/sources/" name "/"
6598 (version-major+minor version) "/"
6599 name "-" version ".tar.xz"))
6600 (sha256
6601 (base32
c7da8510 6602 "02i4zgqqqj56h7bcys6dz7n78m4nj2x4dv1ggjmnrk98n06xpsax"))))
dc69fe18
MW
6603 (build-system glib-or-gtk-build-system)
6604 (native-inputs
6605 `(("gnome-common" ,gnome-common)
6606 ("gobject-introspection" ,gobject-introspection)
6607 ("pkg-config" ,pkg-config)))
6608 (propagated-inputs
6609 `(("libarchive" ,libarchive))) ; XXX document why
6610 (inputs
0a6e9e13 6611 `(("gtk+" ,gtk+)))
dc69fe18
MW
6612 (synopsis "Archives integration support for GNOME")
6613 (home-page "https://git.gnome.org/browse/gnome-autoar/")
6614 (description
6615 "GNOME Autoar is a library which makes creating and extracting archives
6616easy, safe, and automatic.")
6617 (license license:lgpl2.1+)))
6618
b64e217f
MW
6619(define-public tracker
6620 (package
6621 (name "tracker")
5ada561c 6622 (version "2.2.2")
b64e217f
MW
6623 (source (origin
6624 (method url-fetch)
b5b0fd23 6625 (uri (string-append "mirror://gnome/sources/tracker/"
b64e217f 6626 (version-major+minor version) "/"
b5b0fd23 6627 "tracker-" version ".tar.xz"))
b64e217f
MW
6628 (sha256
6629 (base32
5ada561c
KK
6630 "1rp2c6k7ajcm553p9kpni87zgi9aplm3s01rl7pk575az5i399y6"))))
6631 (build-system meson-build-system)
c8bdf589 6632 (arguments
5ada561c
KK
6633 `(#:glib-or-gtk? #t
6634 #:configure-flags
6635 ;; Otherwise, the RUNPATH will lack the final path component.
6636 (list (string-append "-Dc_link_args=-Wl,-rpath="
6637 (assoc-ref %outputs "out") "/lib:"
6638 (assoc-ref %outputs "out") "/lib/tracker-2.0"))
6639 #:phases
c8bdf589
RW
6640 (modify-phases %standard-phases
6641 (add-after 'unpack 'disable-broken-tests
6642 (lambda _
c8bdf589
RW
6643 ;; These fail because the SPARQL backend could not be loaded.
6644 ;; That's because /etc/machine-id is missing, but
6645 ;; DBUS_FATAL_WARNINGS does not help here.
5ada561c
KK
6646 (substitute* "tests/libtracker-sparql/meson.build"
6647 (("'sparql',") ""))
6648 (substitute* "tests/tracker-steroids/meson.build"
6649 (("test\\(.*") ""))
c8bdf589
RW
6650 #t))
6651 ;; Two tests fail if LANG is not set.
6652 (add-before 'check 'pre-check
6653 (lambda _
6654 (setenv "LANG" "en_US.UTF-8")
6655 ;; For the missing /etc/machine-id.
6656 (setenv "DBUS_FATAL_WARNINGS" "0")
6657 #t)))))
b64e217f 6658 (native-inputs
5ada561c
KK
6659 `(("glib:bin" ,glib "bin")
6660 ("gnome-common" ,gnome-common)
b64e217f 6661 ("gobject-introspection" ,gobject-introspection)
5ada561c 6662 ("python-pygobject" ,python-pygobject)
b64e217f
MW
6663 ("intltool" ,intltool)
6664 ("pkg-config" ,pkg-config)
6665 ("vala" ,vala)))
6666 (inputs
6667 `(("gtk+" ,gtk+)
6668 ("dbus" ,dbus)
44ed6284 6669 ("sqlite" ,sqlite)
c8bdf589 6670 ("python" ,python)
b64e217f 6671 ("poppler" ,poppler)
b64e217f
MW
6672 ("libpng" ,libpng)
6673 ("libtiff" ,libtiff)
b64e217f 6674 ("zlib" ,zlib)
b64e217f 6675 ("libxml2" ,libxml2)
b64e217f 6676 ("libunistring" ,libunistring)
0ef48cd9 6677 ("json-glib" ,json-glib)
b64e217f 6678 ("openjpeg" ,openjpeg-1)
b64e217f 6679 ("libseccomp" ,libseccomp)
0ef48cd9 6680 ("libsoup" ,libsoup)
5ada561c
KK
6681 ("libuuid" ,util-linux)
6682 ("network-manager" ,network-manager)))
b64e217f
MW
6683 (synopsis "Metadata database, indexer and search tool")
6684 (home-page "https://wiki.gnome.org/Projects/Tracker")
6685 (description
6686 "Tracker is an advanced framework for first class objects with associated
6687metadata and tags. It provides a one stop solution for all metadata, tags,
6688shared object databases, search tools and indexing.")
6689 ;; src/libtracker-*/* and src/tracker-extract/* are covered by lgpl2.1+,
6690 ;; src/gvdb/* are covered by lgpl2.0+, and the rest is gpl2+.
6691 (license (list license:gpl2+
6692 license:lgpl2.1+
6693 license:lgpl2.0+))))
6694
8b877545
RS
6695(define-public nautilus
6696 (package
6697 (name "nautilus")
c71bb3f2 6698 (version "3.30.5")
8b877545
RS
6699 (source (origin
6700 (method url-fetch)
6701 (uri (string-append "mirror://gnome/sources/" name "/"
6702 (version-major+minor version) "/"
6703 name "-" version ".tar.xz"))
6704 (sha256
6705 (base32
c71bb3f2 6706 "144r4py9b8w9ycsg6fggjg05kwvymh003qsb3h6apgpch5y3zgnv"))))
35e2d0cf 6707 (build-system meson-build-system)
8b877545 6708 (arguments
35e2d0cf 6709 '(#:glib-or-gtk? #t
8b877545
RS
6710 ;; XXX: FAIL: check-nautilus
6711 ;; Settings schema 'org.gnome.nautilus.preferences' is not installed
6712 #:tests? #f))
6713 (native-inputs
35e2d0cf
R
6714 `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6715 ("glib:bin" ,glib "bin") ; for glib-mkenums, etc.
6716 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8b877545
RS
6717 ("gobject-introspection" ,gobject-introspection)
6718 ("intltool" ,intltool)
6719 ("pkg-config" ,pkg-config)))
8b877545 6720 (inputs
8b877545 6721 `(("dconf" ,dconf)
caf6c363 6722 ("gexiv2" ,gexiv2)
dd05e731 6723 ("gvfs" ,gvfs)
8b877545
RS
6724 ("exempi" ,exempi)
6725 ("gnome-desktop" ,gnome-desktop)
09d88905 6726 ("gnome-autoar" ,gnome-autoar)
ec66ebd4 6727 ("libseccomp" ,libseccomp)
35e2d0cf 6728 ("libselinux" ,libselinux)
09d88905 6729 ("tracker" ,tracker)
ce6027bf
SB
6730 ;; XXX: gtk+ is required by libnautilus-extension.pc
6731 ;;
6732 ;; Don't propagate it to reduces "profile pollution" of the 'gnome' meta
6733 ;; package. See:
6734 ;; <http://lists.gnu.org/archive/html/guix-devel/2016-03/msg00283.html>.
6735 ("gtk+" ,gtk+)
8b877545
RS
6736 ("libexif" ,libexif)
6737 ("libxml2" ,libxml2)))
6738 (synopsis "File manager for GNOME")
6739 (home-page "https://wiki.gnome.org/Apps/Nautilus")
6740 (description
6741 "Nautilus (Files) is a file manager designed to fit the GNOME desktop
6742design and behaviour, giving the user a simple way to navigate and manage its
6743files.")
6744 (license license:gpl2+)))
3c697ffd
JR
6745
6746(define-public baobab
6747 (package
6748 (name "baobab")
e0c5f20c 6749 (version "3.32.0")
3c697ffd
JR
6750 (source (origin
6751 (method url-fetch)
6752 (uri (string-append
6753 "mirror://gnome/sources/" name "/"
6754 (version-major+minor version) "/"
6755 name "-" version ".tar.xz"))
6756 (sha256
6757 (base32
e0c5f20c 6758 "0b33s9bhpiffv5wl76cq2bbnqhvx3qs2vxyxmil5gcs583llqh9r"))))
d233d373
RJ
6759 (build-system meson-build-system)
6760 (arguments
6761 '(#:glib-or-gtk? #t))
3c697ffd
JR
6762 (native-inputs
6763 `(("intltool" ,intltool)
6764 ("pkg-config" ,pkg-config)
d233d373
RJ
6765 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
6766 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
3c697ffd
JR
6767 ("itstool" ,itstool)
6768 ("xmllint" ,libxml2)
6769 ("glib" ,glib "bin")
6770 ("vala" ,vala)))
6771 (inputs
6772 `(("gtk+" ,gtk+)))
6773 (synopsis "Disk usage analyzer for GNOME")
6774 (description
6775 "Baobab (Disk Usage Analyzer) is a graphical application to analyse disk
6776usage in the GNOME desktop environment. It can easily scan device volumes or
6777a specific user-requested directory branch (local or remote). Once the scan
6778is complete it provides a graphical representation of each selected folder.")
6779 (home-page "https://wiki.gnome.org/Apps/Baobab")
6780 (license license:gpl2+)))
dc050251 6781
fdba447c
RS
6782(define-public gnome-backgrounds
6783 (package
6784 (name "gnome-backgrounds")
e04e8a8c 6785 (version "3.32.0")
fdba447c
RS
6786 (source
6787 (origin
6788 (method url-fetch)
6789 (uri (string-append "mirror://gnome/sources/" name "/"
6790 (version-major+minor version) "/"
6791 name "-" version ".tar.xz"))
6792 (sha256
6793 (base32
e04e8a8c 6794 "1s5krdmd3md44p1fgr2lqm5ifxb8s1vzx6hm11sb4cgzr4dw6lrz"))))
9ca381f0 6795 (build-system meson-build-system)
fdba447c
RS
6796 (native-inputs
6797 `(("intltool" ,intltool)))
e04e8a8c 6798 (home-page "https://gitlab.gnome.org/GNOME/gnome-backgrounds")
fdba447c
RS
6799 (synopsis "Background images for the GNOME desktop")
6800 (description
6801 "GNOME backgrounds package contains a collection of graphics files which
6802can be used as backgrounds in the GNOME Desktop environment. Additionally,
6803the package creates the proper framework and directory structure so that you
6804can add your own files to the collection.")
6805 (license (list license:gpl2+
6806 license:cc-by2.0
6807 license:cc-by-sa2.0
6808 license:cc-by-sa3.0))))
6809
b784b1a9
RS
6810(define-public gnome-screenshot
6811 (package
6812 (name "gnome-screenshot")
676e7cb4 6813 (version "3.30.0")
b784b1a9
RS
6814 (source
6815 (origin
6816 (method url-fetch)
6817 (uri (string-append "mirror://gnome/sources/" name "/"
6818 (version-major+minor version) "/"
6819 name "-" version ".tar.xz"))
6820 (sha256
6821 (base32
676e7cb4 6822 "06dx3svxq6sar4913mrz5lzb7hmc66wck138vmyxj8x8iv1iw0w8"))))
8356aefa 6823 (build-system meson-build-system)
b784b1a9
RS
6824 (native-inputs
6825 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
8356aefa
RW
6826 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
6827 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
b784b1a9 6828 ("intltool" ,intltool)
8356aefa 6829 ("appstream-glib" ,appstream-glib)
b784b1a9
RS
6830 ("pkg-config" ,pkg-config)))
6831 (inputs
6832 `(("gtk+" ,gtk+)
6833 ("libcanberra" ,libcanberra)
6834 ("libx11" ,libx11)
6835 ("libxext" ,libxext)))
676e7cb4 6836 (home-page "https://gitlab.gnome.org/GNOME/gnome-screenshot")
b784b1a9
RS
6837 (synopsis "Take pictures of your screen")
6838 (description
6839 "GNOME Screenshot is a utility used for taking screenshots of the entire
6840screen, a window or a user defined area of the screen, with optional
6841beautifying border effects.")
6842 (license license:gpl2+)))
6843
66d59111
RS
6844(define-public dconf-editor
6845 (package
6846 (name "dconf-editor")
66261451 6847 (version "3.32.0")
66d59111
RS
6848 (source
6849 (origin
6850 (method url-fetch)
6851 (uri (string-append "mirror://gnome/sources/" name "/"
6852 (version-major+minor version) "/"
6853 name "-" version ".tar.xz"))
6854 (sha256
6855 (base32
66261451 6856 "1fmsmlh16njjm948grz20mzrsvb4wjj7pl1fvkrkxqi7mhr177gi"))))
294ff39d 6857 (build-system meson-build-system)
86f2124b
LC
6858 (arguments
6859 '(#:phases (modify-phases %standard-phases
6860 (add-before 'configure 'set-glib-minimum-version
6861 (lambda _
6862 ;; Change the minimum required GLib version so that
6863 ;; 'valac' is passed '--target-glib 2.60.0'; failing to
6864 ;; do that, it complains that "55" is not an even
6865 ;; number. See <https://bugs.gnu.org/37503>.
6866 (substitute* "editor/meson.build"
6867 (("2\\.55\\.1") "2.60.0"))
6868 #t)))))
66d59111
RS
6869 (native-inputs
6870 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
294ff39d 6871 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
66d59111 6872 ("intltool" ,intltool)
294ff39d
RW
6873 ("pkg-config" ,pkg-config)
6874 ("vala" ,vala)))
66d59111
RS
6875 (inputs
6876 `(("dconf" ,dconf)
6877 ("gtk+" ,gtk+)
6878 ("libxml2" ,libxml2)))
6879 (home-page "https://git.gnome.org/browse/dconf-editor")
6880 (synopsis "Graphical editor for GNOME's dconf configuration system")
6881 (description
6882 "Dconf-editor is a graphical tool for browsing and editing the dconf
6883configuration system for GNOME. It allows users to configure desktop
6884software that do not provide their own configuration interface.")
6885 (license license:lgpl2.1+)))
6886
96d36f38
AW
6887(define-public gnome-default-applications
6888 (package
6889 (name "gnome-default-applications")
6890 (version "0")
6891 (build-system trivial-build-system)
6892 (source #f)
6893 (propagated-inputs
8ad4f0aa
LC
6894 `(("nautilus" ,nautilus)
6895 ("evince" ,evince)))
96d36f38
AW
6896 (arguments
6897 `(#:modules ((guix build utils))
6898 #:builder
6899 (begin
6900 (use-modules (guix build utils))
6901 (let* ((out (assoc-ref %outputs "out"))
6902 (apps (string-append out "/share/applications")))
6903 (mkdir-p apps)
6904 (call-with-output-file (string-append apps "/defaults.list")
6905 (lambda (port)
6906 (format port "[Default Applications]\n")
8ad4f0aa
LC
6907 (format port "inode/directory=org.gnome.Nautilus.desktop\n")
6908 (format port "application/pdf=evince.desktop\n")
6909 (format port "application/postscript=evince.desktop\n")))
96d36f38
AW
6910 #t))))
6911 (synopsis "Default MIME type associations for the GNOME desktop")
6912 (description
6913 "Given many installed packages which might handle a given MIME type, a
6914user running the GNOME desktop probably has some preferences: for example,
6915that folders be opened by default by the Nautilus file manager, not the Baobab
6916disk usage analyzer. This package establishes that set of default MIME type
6917associations for GNOME.")
6918 (license license:gpl3+)
6919 (home-page #f)))
6920
dc050251
SB
6921(define-public gnome
6922 (package
6923 (name "gnome")
6924 (version (package-version gnome-shell))
6925 (source #f)
6926 (build-system trivial-build-system)
e3cfef22 6927 (arguments '(#:builder (begin (mkdir %output) #t)))
dc050251
SB
6928 (propagated-inputs
6929 ;; TODO: Add more packages according to:
6930 ;; <https://packages.debian.org/jessie/gnome-core>.
6931 `(("adwaita-icon-theme" ,adwaita-icon-theme)
05f651c4 6932 ("baobab" ,baobab)
0bd3597b 6933 ("font-cantarell" ,font-cantarell)
a9dbefdc 6934 ("font-dejavu" ,font-dejavu)
dc050251
SB
6935 ("at-spi2-core" ,at-spi2-core)
6936 ("dbus" ,dbus)
6937 ("dconf" ,dconf)
72360453 6938 ("desktop-file-utils" ,desktop-file-utils)
dc050251
SB
6939 ("eog" ,eog)
6940 ("epiphany" ,epiphany)
6941 ("evince" ,evince)
71d9b980 6942 ("file-roller" ,file-roller)
dc050251
SB
6943 ("gedit" ,gedit)
6944 ("glib-networking" ,glib-networking)
05f651c4 6945 ("gnome-backgrounds" ,gnome-backgrounds)
63ad9b80
AW
6946 ("gnome-bluetooth" ,gnome-bluetooth)
6947 ("gnome-calculator" ,gnome-calculator)
dc050251 6948 ("gnome-control-center" ,gnome-control-center)
63ad9b80 6949 ("gnome-disk-utility" ,gnome-disk-utility)
96d36f38 6950 ("gnome-default-applications" ,gnome-default-applications)
dc050251 6951 ("gnome-keyring" ,gnome-keyring)
63ad9b80 6952 ("gnome-online-accounts" ,gnome-online-accounts)
56987d78 6953 ("gnome-screenshot" ,gnome-screenshot)
dc050251
SB
6954 ("gnome-session" ,gnome-session)
6955 ("gnome-settings-daemon" ,gnome-settings-daemon)
6956 ("gnome-shell" ,gnome-shell)
63ad9b80 6957 ("gnome-system-monitor" ,gnome-system-monitor)
dc050251
SB
6958 ("gnome-terminal" ,gnome-terminal)
6959 ("gnome-themes-standard" ,gnome-themes-standard)
2999dcd5
AW
6960 ("gst-plugins-base" ,gst-plugins-base)
6961 ("gst-plugins-good" ,gst-plugins-good)
63ad9b80 6962 ("gucharmap" ,gucharmap)
05f651c4 6963 ("gvfs" ,gvfs)
dc050251
SB
6964 ("hicolor-icon-theme" ,hicolor-icon-theme)
6965 ("nautilus" ,nautilus)
69308043 6966 ("pinentry-gnome3" ,pinentry-gnome3)
dc050251
SB
6967 ("pulseaudio" ,pulseaudio)
6968 ("shared-mime-info" ,shared-mime-info)
f6f4370f 6969 ("system-config-printer" ,system-config-printer)
dc050251 6970 ("totem" ,totem)
c20cd0d2 6971 ("xdg-user-dirs" ,xdg-user-dirs)
dc050251
SB
6972 ("yelp" ,yelp)
6973 ("zenity" ,zenity)))
fe4e698d 6974 (synopsis "The GNU desktop environment")
dc050251
SB
6975 (home-page "https://www.gnome.org/")
6976 (description
fe4e698d
LC
6977 "GNOME is the graphical desktop for GNU. It includes a wide variety of
6978applications for browsing the web, editing text and images, creating
6979documents and diagrams, playing media, scanning, and much more.")
dc050251 6980 (license license:gpl2+)))
4a526711
DT
6981
6982(define-public byzanz
6983 ;; The last stable release of Byzanz was in 2011, but there have been many
6984 ;; useful commits made to the Byzanz repository since then that it would be
6985 ;; silly to use such an old release.
6986 (let ((commit "f7af3a5bd252db84af8365bd059c117a7aa5c4af"))
6987 (package
6988 (name "byzanz")
6989 (version (string-append "0.2-1." (string-take commit 7)))
6990 (source (origin
6991 (method git-fetch)
6992 (uri (git-reference
5f13bf09 6993 (url "https://git.gnome.org/browse/byzanz")
4a526711 6994 (commit commit)))
5a6527e4 6995 (file-name (string-append name "-" version "-checkout"))
4a526711
DT
6996 (sha256
6997 (base32
6998 "1l60myzxf9cav27v5v3nsijlslz9r7ip6d5kiirfpkf9k0w26hz3"))))
6999 (build-system glib-or-gtk-build-system)
7000 (arguments
7001 '(#:phases
7002 (modify-phases %standard-phases
189be331 7003 (replace 'bootstrap
4a526711
DT
7004 (lambda _
7005 ;; The build system cleverly detects that we're not building from
7006 ;; a release tarball and turns on -Werror for GCC.
7007 ;; Unsurprisingly, there is a warning during compilation that
7008 ;; causes the build to fail unnecessarily, so we remove the flag.
7009 (substitute* '("configure.ac")
7010 (("-Werror") ""))
7011 ;; The autogen.sh script in gnome-common will run ./configure
7012 ;; by default, which is problematic because source shebangs
7013 ;; have not yet been patched.
7014 (setenv "NOCONFIGURE" "t")
7015 (zero? (system* "sh" "autogen.sh")))))))
7016 (native-inputs
7017 `(("autoconf" ,autoconf)
7018 ("automake" ,automake)
7019 ("gnome-common" ,gnome-common)
7020 ("intltool" ,intltool)
7021 ("libtool" ,libtool)
7022 ("pkg-config" ,pkg-config)
7023 ("which" ,which)))
7024 (inputs
7025 `(("glib" ,glib)
7026 ("gstreamer" ,gstreamer)
7027 ("gst-plugins-base" ,gst-plugins-base)
7028 ("gtk+" ,gtk+)))
7029 (synopsis "Desktop recording program")
7030 (description "Byzanz is a simple desktop recording program with a
7031command-line interface. It can record part or all of an X display for a
7032specified duration and save it as a GIF encoded animated image file.")
7033 (home-page "https://git.gnome.org/browse/byzanz")
7034 (license license:gpl2+))))
3a9a4c51 7035
0ec171ec
MS
7036(define-public gsound
7037 (package
7038 (name "gsound")
7039 (version "1.0.2")
7040 (source (origin
7041 (method url-fetch)
7042 (uri (string-append "mirror://gnome/sources/" name "/"
7043 (version-major+minor version) "/"
7044 name "-" version ".tar.xz"))
7045 (sha256
7046 (base32
7047 "0lwfwx2c99qrp08pfaj59pks5dphsnxjgrxyadz065d8xqqgza5v"))))
7048 (build-system glib-or-gtk-build-system)
7049 (native-inputs
7050 `(("pkg-config" ,pkg-config)
7051 ("gobject-introspection" ,gobject-introspection)
7052 ("vala" ,vala)))
7053 (inputs
7054 `(("glib" ,glib)
7055 ("libcanberra" ,libcanberra)))
7056 (home-page "https://wiki.gnome.org/Projects/GSound")
7057 (synopsis "GObject wrapper for libcanberra")
7058 (description
7059 "GSound is a small library for playing system sounds. It's designed to be
7060used via GObject Introspection, and is a thin wrapper around the libcanberra C
7061library.")
7062 (license license:lgpl2.1+)))
7063
3a9a4c51
RS
7064(define-public libzapojit
7065 (package
7066 (name "libzapojit")
7067 (version "0.0.3")
7068 (source (origin
7069 (method url-fetch)
7070 (uri (string-append "mirror://gnome/sources/" name "/"
7071 (version-major+minor version) "/"
7072 name "-" version ".tar.xz"))
7073 (sha256
7074 (base32
7075 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"))))
7076 (build-system gnu-build-system)
7077 (native-inputs
7078 `(("gobject-introspection" ,gobject-introspection)
7079 ("intltool" ,intltool)
7080 ("pkg-config" ,pkg-config)))
7081 (inputs
14c297fd 7082 `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
3a9a4c51
RS
7083 ("json-glib" ,json-glib)
7084 ("rest" ,rest)))
7085 (home-page "https://wiki.gnome.org/Projects/Zapojit")
7086 (synopsis "Library for accessing SkyDrive and Hotmail")
7087 (description
7088 "Libzapojit is a GLib-based library for accessing online service APIs of
7089Microsoft SkyDrive and Hotmail, using their REST protocols.")
7090 (license license:lgpl2.1+)))
9365ee1c 7091
60e2a9ae
MS
7092(define-public gnome-clocks
7093 (package
7094 (name "gnome-clocks")
757f863b 7095 (version "3.30.1")
60e2a9ae
MS
7096 (source (origin
7097 (method url-fetch)
7098 (uri (string-append "mirror://gnome/sources/" name "/"
7099 (version-major+minor version) "/"
7100 name "-" version ".tar.xz"))
7101 (sha256
7102 (base32
757f863b 7103 "009fr6zwv37wryi0c0syi4i7pxpdbn3gliws68l99cjsbn2qd6pc"))))
60e2a9ae
MS
7104 (build-system meson-build-system)
7105 (arguments
7106 '(#:glib-or-gtk? #t))
7107 (native-inputs
7108 `(("vala" ,vala)
7109 ("pkg-config" ,pkg-config)
7110 ("glib" ,glib "bin") ; for glib-compile-resources
7111 ("gtk+-bin" ,gtk+ "bin") ; for gtk-update-icon-cache
7112 ("desktop-file-utils" ,desktop-file-utils)
7113 ("gettext" ,gettext-minimal)
7114 ("itstool" ,itstool)))
7115 (inputs
7116 `(("glib" ,glib)
7117 ("gtk+" ,gtk+)
7118 ("gsound" ,gsound)
7119 ("geoclue" ,geoclue)
7120 ("geocode-glib" ,geocode-glib)
7121 ("libgweather" ,libgweather)
7122 ("gnome-desktop" ,gnome-desktop)))
7123 (home-page "https://wiki.gnome.org/Apps/Clocks")
7124 (synopsis "GNOME's clock application")
7125 (description
7126 "GNOME Clocks is a simple clocks application designed to fit the GNOME
7127desktop. It supports world clock, stop watch, alarms, and count down timer.")
7128 (license license:gpl3+)))
7129
3c474897
KY
7130(define-public gnome-calendar
7131 (package
7132 (name "gnome-calendar")
496d7ccd 7133 (version "3.30.1")
3c474897
KY
7134 (source (origin
7135 (method url-fetch)
7136 (uri (string-append "mirror://gnome/sources/" name "/"
7137 (version-major+minor version) "/"
7138 name "-" version ".tar.xz"))
7139 (sha256
7140 (base32
496d7ccd 7141 "1avi7a29y8d8kzwslp51nwy6s692alms7917454j0xpfc6hnw62s"))))
a49d3e37
MS
7142 (build-system meson-build-system)
7143 (arguments
7144 '(#:glib-or-gtk? #t
7145 ;; gnome-calendar has to be installed before the tests can be run
7146 ;; https://bugzilla.gnome.org/show_bug.cgi?id=788224
7147 #:tests? #f))
3c474897 7148 (native-inputs
a49d3e37
MS
7149 `(("gettext" ,gettext-minimal)
7150 ("glib-bin" ,glib "bin") ; For glib-compile-schemas
7151 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
3c474897
KY
7152 ("pkg-config" ,pkg-config)))
7153 (inputs
a49d3e37 7154 `(("evolution-data-server" ,evolution-data-server)
14c297fd 7155 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
a286b5eb
RW
7156 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7157 ("libdazzle" ,libdazzle)
b63c06f1 7158 ("libedataserverui" ,evolution-data-server)
a286b5eb
RW
7159 ("libgweather" ,libgweather)
7160 ("geoclue" ,geoclue)))
3c474897
KY
7161 (home-page "https://wiki.gnome.org/Apps/Calendar")
7162 (synopsis "GNOME's calendar application")
7163 (description
7164 "GNOME Calendar is a simple calendar application designed to fit the GNOME
a49d3e37 7165desktop. It supports multiple calendars, month, week and year view.")
3c474897
KY
7166 (license license:gpl3+)))
7167
57b14665
MS
7168(define-public gnome-todo
7169 (package
7170 (name "gnome-todo")
9f3c6c88 7171 (version "3.28.1")
57b14665
MS
7172 (source (origin
7173 (method url-fetch)
7174 (uri (string-append "mirror://gnome/sources/" name "/"
7175 (version-major+minor version) "/"
7176 name "-" version ".tar.xz"))
7177 (sha256
7178 (base32
9f3c6c88 7179 "08ygqbib72jlf9y0a16k54zz51sncpq2wa18wp81v46q8301ymy7"))))
57b14665
MS
7180 (build-system meson-build-system)
7181 (arguments
7182 '(#:glib-or-gtk? #t
7183 #:phases (modify-phases %standard-phases
7184 (add-after
7185 'install 'wrap-gnome-todo
7186 (lambda* (#:key inputs outputs #:allow-other-keys)
7187 (let ((out (assoc-ref outputs "out"))
7188 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
7189 (python-path (getenv "PYTHONPATH")))
7190 (wrap-program (string-append out "/bin/gnome-todo")
7191 ;; XXX: gi plugins are broken.
7192 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=787212
7193 ;; For plugins.
7194 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
7195 `("PYTHONPATH" ":" prefix (,python-path))))
7196 #t)))))
7197 (native-inputs
7198 `(("gettext" ,gettext-minimal)
7199 ("gobject-introspection" ,gobject-introspection)
7200 ("glib:bin" ,glib "bin") ; For glib-compile-resources
7201 ("gtk+-bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7202 ("pkg-config" ,pkg-config)))
7203 (inputs
7204 `(("rest" ,rest) ; For Todoist plugin
7205 ("json-glib" ,json-glib) ; For Todoist plugin
b63c06f1 7206 ("libedataserverui" ,evolution-data-server)
57b14665
MS
7207 ("libical" ,libical)
7208 ("libpeas" ,libpeas)
7209 ("python-pygobject" ,python-pygobject)
7210 ("evolution-data-server" ,evolution-data-server)
14c297fd 7211 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
57b14665
MS
7212 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
7213 (home-page "https://wiki.gnome.org/Apps/Todo")
7214 (synopsis "GNOME's ToDo Application")
7215 (description
7216 "GNOME To Do is a simplistic personal task manager designed to perfectly
7217fit the GNOME desktop.")
7218 (license license:gpl3+)))
7219
ab179eaf
SB
7220(define-public gnome-dictionary
7221 (package
7222 (name "gnome-dictionary")
cf81ddef 7223 (version "3.26.1")
ab179eaf
SB
7224 (source (origin
7225 (method url-fetch)
7226 (uri (string-append "mirror://gnome/sources/" name "/"
7227 (version-major+minor version) "/"
7228 name "-" version ".tar.xz"))
7229 (sha256
7230 (base32
cf81ddef
LC
7231 "007k2bq8iplg4psdpz074r5d4zxvn4s95qym4rw9hs6giljbrf0n"))))
7232 (build-system meson-build-system)
2776b5d5
MB
7233 (arguments '(#:glib-or-gtk? #t
7234 #:phases (modify-phases %standard-phases
7235 (add-after 'unpack 'patch-install-script
7236 (lambda _
7237 ;; This script attempts to compile glib schemas
7238 ;; and create an empty MIME database. We do
7239 ;; that elsewhere, so prevent it from running.
7240 (substitute* "build-aux/post-install.sh"
7241 (("\\[ -z \"\\$DESTDIR\" \\]") "false"))
7242 #t)))))
ab179eaf
SB
7243 (native-inputs
7244 `(("glib:bin" ,glib "bin")
7245 ("gobject-introspection" ,gobject-introspection)
7246 ("intltool" ,intltool)
7247 ("itstool" ,itstool)
7248 ("pkg-config" ,pkg-config)
7249 ("xmllint" ,libxml2)))
7250 (inputs
7251 `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7252 ("gtk+" ,gtk+)))
7253 (home-page "https://wiki.gnome.org/Apps/Dictionary")
7254 (synopsis "Look up words in dictionary sources")
7255 (description
7256 "GNOME Dictionary can look for the definition or translation of a word in
7257existing databases over the internet.")
7258 (license license:gpl3+)))
7259
d13f3a03 7260(define-public gnome-tweaks
9365ee1c 7261 (package
d13f3a03 7262 (name "gnome-tweaks")
9d4d439b 7263 (version "3.30.2")
9365ee1c
JN
7264 (source (origin
7265 (method url-fetch)
d13f3a03 7266 (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
9365ee1c 7267 (version-major+minor version) "/"
d13f3a03
RW
7268 "gnome-tweaks-" version ".tar.xz"))
7269 (patches
7270 (list (search-patch "gnome-tweaks-search-paths.patch")))
9365ee1c
JN
7271 (sha256
7272 (base32
9d4d439b 7273 "0j63siy1i5pl2g6di1r9vjn54m9ahh42wj20j6689pza2lamay1z"))))
d13f3a03 7274 (build-system meson-build-system)
9365ee1c 7275 (arguments
d13f3a03
RW
7276 `(#:glib-or-gtk? #t
7277 #:configure-flags '("-Dlocalstatedir=/tmp"
7278 "-Dsysconfdir=/tmp")
9365ee1c 7279 #:imported-modules ((guix build python-build-system)
d13f3a03
RW
7280 ,@%meson-build-system-modules)
7281 #:phases
7282 (modify-phases %standard-phases
7283 (add-after 'install 'wrap
7284 (@@ (guix build python-build-system) wrap))
7285 (add-after 'wrap 'wrap-gi-typelib
7286 (lambda* (#:key inputs outputs #:allow-other-keys)
7287 (let ((out (assoc-ref outputs "out"))
7288 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
7289 (wrap-program (string-append out "/bin/gnome-tweaks")
7290 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
7291 #t)))))
9365ee1c 7292 (native-inputs
c7fc414e
RH
7293 `(("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
7294 ("intltool" ,intltool)
9365ee1c
JN
7295 ("pkg-config" ,pkg-config)))
7296 (inputs
c7fc414e
RH
7297 `(("gnome-desktop" ,gnome-desktop)
7298 ("gtk+" ,gtk+)
9365ee1c
JN
7299 ("gobject-introspection" ,gobject-introspection)
7300 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
c7fc414e
RH
7301 ("libnotify" ,libnotify)
7302 ("libsoup" ,libsoup)
7303 ("nautilus" ,nautilus)
7304 ("python" ,python)
7305 ("python-pygobject" ,python-pygobject)))
9365ee1c 7306 (synopsis "Customize advanced GNOME 3 options")
d13f3a03 7307 (home-page "https://wiki.gnome.org/Apps/Tweaks")
9365ee1c 7308 (description
d13f3a03 7309 "GNOME Tweaks allows adjusting advanced configuration settings in
9365ee1c
JN
7310GNOME 3. This includes things like the fonts used in user interface elements,
7311alternative user interface themes, changes in window management behavior,
7312GNOME Shell appearance and extension, etc.")
7313 (license license:gpl3+)))
813f814a 7314
d13f3a03
RW
7315;; This package has been renamed by upstream.
7316(define-public gnome-tweak-tool
7317 (deprecated-package "gnome-tweak-tool" gnome-tweaks))
7318
32ac717c
DT
7319(define-public gnome-shell-extensions
7320 (package
7321 (name "gnome-shell-extensions")
2aabc647 7322 (version "3.30.1")
32ac717c
DT
7323 (source (origin
7324 (method url-fetch)
7325 (uri (string-append "mirror://gnome/sources/" name "/"
7326 (version-major+minor version) "/"
7327 name "-" version ".tar.xz"))
7328 (sha256
7329 (base32
2aabc647 7330 "1grxn4f5x754r172wmnf0h0xpy69afmj359zsj1rwgqlzw4i4c5p"))))
100f625b 7331 (build-system meson-build-system)
32ac717c 7332 (arguments
100f625b 7333 '(#:configure-flags '("-Dextension_set=all")))
32ac717c
DT
7334 (native-inputs
7335 `(("intltool" ,intltool)
7336 ("pkg-config" ,pkg-config)))
7337 (propagated-inputs
7338 `(("glib" ,glib)
7339 ("glib" ,glib "bin")))
7340 (synopsis "Extensions for GNOME Shell")
7341 (description "GNOME Shell extensions modify and extend GNOME Shell
7342functionality and behavior.")
7343 (home-page "https://extensions.gnome.org/")
7344 (license license:gpl3+)))
7345
813f814a
DT
7346(define-public arc-theme
7347 (package
7348 (name "arc-theme")
37781323 7349 (version "20190917")
813f814a 7350 (source (origin
a18f8eaf
BH
7351 (method git-fetch)
7352 (uri (git-reference
7353 (url "https://github.com/NicoHood/arc-theme.git")
7354 (commit version)))
7355 (file-name (git-file-name name version))
813f814a
DT
7356 (sha256
7357 (base32
37781323 7358 "1qgpk4p2hi5hd4yy0hj93kq1vs0b32wb8qkaj1wi90c8gwddq5wa"))))
813f814a 7359 (build-system gnu-build-system)
d88884fa
EF
7360 (arguments
7361 '(#:phases
7362 (modify-phases %standard-phases
7363 ;; autogen.sh calls configure at the end of the script.
7364 (replace 'bootstrap
7365 (lambda _ (invoke "autoreconf" "-vfi"))))))
813f814a
DT
7366 (native-inputs
7367 `(("autoconf" ,autoconf)
7368 ("automake" ,automake)
a18f8eaf
BH
7369 ("glib" ,glib "bin") ; for glib-compile-resources
7370 ("gnome-shell" ,gnome-shell)
7371 ("gtk+" ,gtk+)
7372 ("inkscape" ,inkscape)
7373 ("optipng" ,optipng)
7374 ("pkg-config" ,pkg-config)
7375 ("sassc" ,sassc)))
813f814a
DT
7376 (synopsis "A flat GTK+ theme with transparent elements")
7377 (description "Arc is a flat theme with transparent elements for GTK 3, GTK
73782, and GNOME Shell which supports GTK 3 and GTK 2 based desktop environments
7379like GNOME, Unity, Budgie, Pantheon, XFCE, Mate, etc.")
7380 (home-page "https://github.com/horst3180/arc-theme")
7381 ;; No "or later" language found.
a18f8eaf 7382 (license license:gpl3+)))
9987c57c 7383
d935e6a1 7384(define-public faba-icon-theme
9987c57c 7385 (package
d935e6a1 7386 (name "faba-icon-theme")
2eee7ee3 7387 (version "4.3")
d935e6a1
BT
7388 (source
7389 (origin
757e4027
TGR
7390 (method git-fetch)
7391 (uri (git-reference
7392 (url "https://github.com/snwh/faba-icon-theme.git")
7393 (commit (string-append "v" version))))
7394 (file-name (git-file-name name version))
d935e6a1 7395 (sha256
757e4027 7396 (base32 "0xh6ppr73p76z60ym49b4d0liwdc96w41cc5p07d48hxjsa6qd6n"))))
f6a9b345 7397 (build-system meson-build-system)
9987c57c 7398 (arguments
82da291a 7399 `(#:phases
9987c57c 7400 (modify-phases %standard-phases
82da291a 7401 (add-before 'configure 'disable-post-install
9987c57c 7402 (lambda _
82da291a
JL
7403 (substitute* "meson.build"
7404 (("meson.add_install_script.*") "")))))))
9987c57c
DT
7405 (native-inputs
7406 `(("autoconf" ,autoconf)
7407 ("automake" ,automake)))
d935e6a1
BT
7408 (synopsis "Faba icon theme")
7409 (description
7410 "Faba is a minimal icon set used as a basis for other themes such as
7411Moka")
7412 (home-page "https://snwh.org/moka")
7413 (license (list license:lgpl3+
7414 license:cc-by-sa4.0))))
7415
9987c57c
DT
7416(define-public moka-icon-theme
7417 (package
8b0e4177 7418 (inherit faba-icon-theme)
9987c57c 7419 (name "moka-icon-theme")
105a3625 7420 (version "5.4.0")
8c3f2170
TGR
7421 (source
7422 (origin
7423 (method git-fetch)
7424 (uri (git-reference
7425 (url "https://github.com/snwh/moka-icon-theme.git")
7426 (commit (string-append "v" version))))
7427 (file-name (git-file-name name version))
7428 (sha256
7429 (base32 "015l02im4mha5z91dbchxf6xkp66d346bg3xskwg0rh3lglhjsrd"))))
550281fb
BT
7430 (propagated-inputs
7431 ;; Moka is based on Faba by using it as a fallback icon set instead of
7432 ;; bundling it, so we need to add it as a propagated input.
7433 `(("faba-icon-theme" ,faba-icon-theme)))
9987c57c
DT
7434 (synopsis "Moka icon theme")
7435 (description "Moka is a stylized desktop icon set, designed to be clear,
7436simple and consistent.")
fedde43b
BT
7437 (license (list license:gpl3+
7438 license:cc-by-sa4.0))))
6fd8f8d6
DT
7439
7440(define-public arc-icon-theme
7441 (package
7442 (name "arc-icon-theme")
c4180240 7443 (version "20161122")
bbf66cbf
TGR
7444 (source
7445 (origin
7446 (method git-fetch)
7447 (uri (git-reference
7448 (url "https://github.com/horst3180/arc-icon-theme.git")
7449 (commit version)))
7450 (file-name (git-file-name name version))
7451 (sha256
7452 (base32 "1ch3hp08qri93510hypzz6m2x4xgg2h15wvnhjwh1x1s1b7jvxjd"))))
6fd8f8d6 7453 (build-system gnu-build-system)
9e1ede95
JL
7454 (arguments
7455 `(#:phases
7456 (modify-phases %standard-phases
7457 (add-after 'unpack 'disable-configure-during-bootstrap
7458 (lambda _
7459 (substitute* "autogen.sh"
7460 (("^\"\\$srcdir/configure\".*") ""))
7461 #t)))))
6fd8f8d6
DT
7462 (native-inputs
7463 `(("autoconf" ,autoconf)
7464 ("automake" ,automake)))
7465 ;; When Arc is missing an icon, it looks in the Moka icon theme for it.
7466 (propagated-inputs
7467 `(("moka-icon-theme" ,moka-icon-theme)))
7468 (synopsis "Arc icon theme")
7469 (description "The Arc icon theme provides a set of icons matching the
7470style of the Arc GTK theme. Icons missing from the Arc theme are provided by
7471the Moka icon theme.")
7472 (home-page "https://github.com/horst3180/arc-icon-theme")
7473 (license license:gpl3+)))
6064a4e8
LF
7474
7475(define-public folks
7476 (package
7477 (name "folks")
d23495fa 7478 (version "0.11.4")
6064a4e8
LF
7479 (source (origin
7480 (method url-fetch)
7481 (uri (string-append
e5f4796e 7482 "mirror://gnome/sources/folks/"
6064a4e8 7483 (version-major+minor version) "/"
e5f4796e 7484 "folks-" version ".tar.xz"))
6064a4e8
LF
7485 (sha256
7486 (base32
d23495fa 7487 "16hqh2gxlbx0b0hgq216hndr1m72vj54jvryzii9zqkk0g9kxc57"))))
6064a4e8
LF
7488 (build-system glib-or-gtk-build-system)
7489 (inputs
7490 `(("bdb" ,bdb)
7491 ("dbus-glib" ,dbus-glib)
7492 ("evolution-data-server" ,evolution-data-server)
7493 ("glib" ,glib)
7494 ("libgee" ,libgee)
7495 ("telepathy-glib" ,telepathy-glib)))
7496 (native-inputs
7497 `(("gobject-introspection" ,gobject-introspection)
7498 ("intltool" ,intltool)
7499 ("pkg-config" ,pkg-config)
7500 ("vala" ,vala)))
7501 (synopsis "Library to aggregate data about people")
7502 (description "Libfolks is a library that aggregates information about people
7503from multiple sources (e.g., Telepathy connection managers for IM contacts,
7504Evolution Data Server for local contacts, libsocialweb for web service contacts,
7505etc.) to create metacontacts. It's written in Vala, which generates C code when
7506compiled.")
7507 (home-page "https://wiki.gnome.org/Projects/Folks")
7508 (license license:lgpl2.1+)))
01ea778f
LF
7509
7510(define-public gfbgraph
7511 (package
7512 (name "gfbgraph")
7513 (version "0.2.3")
7514 (source (origin
7515 (method url-fetch)
7516 (uri (string-append
237d4cf7 7517 "mirror://gnome/sources/gfbgraph/"
01ea778f 7518 (version-major+minor version) "/"
237d4cf7 7519 "gfbgraph-" version ".tar.xz"))
01ea778f
LF
7520 (sha256
7521 (base32
7522 "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs"))))
7523 (build-system glib-or-gtk-build-system)
7524 (arguments
7525 `(#:tests? #f ; Tests appear to require the network.
7526 ;; FIXME --enable-gtk-doc fails even with gtk-doc as a native-input.
7527 #:configure-flags '("--disable-gtk-doc"
7528 "--disable-static"
7529 "--enable-introspection")))
7530 (native-inputs
7531 `(("pkg-config" ,pkg-config)
7532 ("gobject-introspection" ,gobject-introspection)))
7533 (inputs
7534 `(("json-glib" ,json-glib)
14c297fd 7535 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
01ea778f
LF
7536 ("rest" ,rest)))
7537 (synopsis "GLib/GObject wrapper for the Facebook API")
7538 (description "This library allows you to use the Facebook API from
7539GLib/GObject code.")
7540 (home-page "https://wiki.gnome.org/Projects/GFBGraph")
7541 (license license:lgpl2.1+)))
3920868c 7542
7543(define-public libgnomekbd
7544 (package
7545 (name "libgnomekbd")
70f2b0f9 7546 (version "3.26.1")
3920868c 7547 (source (origin
7548 (method url-fetch)
d47fa82d 7549 (uri (string-append "mirror://gnome/sources/libgnomekbd/"
3920868c 7550 (version-major+minor version) "/"
d47fa82d 7551 "libgnomekbd-" version ".tar.xz"))
3920868c 7552 (sha256
7553 (base32
70f2b0f9 7554 "0y962ykn3rr9gylj0pwpww7bi20lmhvsw6qvxs5bisbn2mih5jpp"))))
3920868c 7555 (build-system gnu-build-system)
7556 (native-inputs
7557 `(("pkg-config" ,pkg-config)
7558 ("glib" ,glib "bin")
7559 ("intltool" ,intltool)))
7560 (propagated-inputs
7561 ;; Referred to in .h files and .pc.
7562 `(("glib" ,glib)
7563 ("gtk+" ,gtk+)
7564 ("libxklavier" ,libxklavier)))
7565 (home-page "https://www.gnome.org")
7566 (synopsis "GNOME keyboard configuration library")
7567 (description
7568 "Libgnomekbd is a keyboard configuration library for the GNOME desktop
7569environment, which can notably display keyboard layouts.")
7570 (license license:lgpl2.0+)))
85327d0d 7571
7572;;; This package is no longer maintained:
7573;;; https://wiki.gnome.org/Attic/LibUnique
7574;;; "Unique is now in maintenance mode, and its usage is strongly discouraged.
7575;;; Applications should use the GtkApplication class provided by GTK+ 3.0."
7576(define-public libunique
7577 (package
7578 (name "libunique")
7579 (version "3.0.2")
7580 (source (origin
7581 (method url-fetch)
7582 (uri (string-append "mirror://gnome/sources/" name "/"
7583 (version-major+minor version) "/"
7584 name "-" version ".tar.xz"))
7585 (sha256
7586 (base32
7587 "0f70lkw66v9cj72q0iw1s2546r6bwwcd8idcm3621fg2fgh2rw58"))))
7588 (build-system glib-or-gtk-build-system)
7589 (arguments
7590 `(#:configure-flags '("--disable-static"
7591 "--disable-dbus" ; use gdbus
7592 "--enable-introspection")))
7593 (native-inputs
7594 `(("pkg-config" ,pkg-config)
7595 ("gobject-introspection" ,gobject-introspection)
7596 ("glib:bin" ,glib "bin")
7597 ("gtk-doc" ,gtk-doc)))
7598 (propagated-inputs
7599 ;; Referred to in .h files and .pc.
7600 `(("gtk+" ,gtk+)))
7601 (home-page "https://wiki.gnome.org/Attic/LibUnique")
7602 (synopsis "Library for writing single instance applications")
7603 (description
7604 "Libunique is a library for writing single instance applications. If you
7605launch a single instance application twice, the second instance will either just
7606quit or will send a message to the running instance. Libunique makes it easy to
7607write this kind of application, by providing a base class, taking care of all
7608the IPC machinery needed to send messages to a running instance, and also
7609handling the startup notification side.")
7610 (license license:lgpl2.1+)))
54021cd8
RS
7611
7612(define-public gnome-calculator
7613 (package
7614 (name "gnome-calculator")
07ace641 7615 (version "3.32.2")
54021cd8
RS
7616 (source
7617 (origin
7618 (method url-fetch)
7619 (uri (string-append "mirror://gnome/sources/" name "/"
7620 (version-major+minor version) "/"
7621 name "-" version ".tar.xz"))
7622 (sha256
7623 (base32
07ace641 7624 "0fgpn3sc226s9fpzhik5rkkrf669037gc659ga2kn9jsyckj6p41"))))
2d475910
RW
7625 (build-system meson-build-system)
7626 (arguments '(#:glib-or-gtk? #t))
54021cd8
RS
7627 (native-inputs
7628 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
2d475910 7629 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
54021cd8
RS
7630 ("intltool" ,intltool)
7631 ("itstool" ,itstool)
2d475910 7632 ("vala" ,vala)
54021cd8
RS
7633 ("pkg-config" ,pkg-config)))
7634 (inputs
112e9083 7635 `(("glib" ,glib)
07ace641 7636 ("gtksourceview" ,gtksourceview)
54021cd8 7637 ("libsoup" ,libsoup)
112e9083 7638 ("libxml2" ,libxml2)
2c2da7ec 7639 ("mpc" ,mpc)
54021cd8
RS
7640 ("mpfr" ,mpfr)))
7641 (home-page "https://wiki.gnome.org/Apps/Calculator")
7642 (synopsis "Desktop calculator")
7643 (description
7644 "Calculator is an application that solves mathematical equations and
7645is suitable as a default application in a Desktop environment.")
7646 (license license:gpl3)))
0bd69759
RS
7647
7648(define-public xpad
7649 (package
7650 (name "xpad")
c85626bb 7651 (version "5.1.0")
0bd69759
RS
7652 (source
7653 (origin
7654 (method url-fetch)
08fda9c6
R
7655 (uri (string-append "https://launchpad.net/xpad/trunk/"
7656 version "/+download/"
0bd69759
RS
7657 name "-" version ".tar.bz2"))
7658 (sha256
7659 (base32
c85626bb 7660 "0l0g5x8g6dwhf5ksnqqrjjsycy57kcvdslkmsr6bl3vrsjd7qml3"))))
0bd69759
RS
7661 (build-system gnu-build-system)
7662 (native-inputs
08fda9c6
R
7663 `(("autoconf" ,autoconf)
7664 ("automake" ,automake)
7665 ("gtk+:bin" ,gtk+ "bin")
7666 ("intltool" ,intltool)
0bd69759
RS
7667 ("pkg-config" ,pkg-config)))
7668 (inputs
c72647fb 7669 `(("gtksourceview" ,gtksourceview-3)
0bd69759
RS
7670 ("libsm" ,libsm)))
7671 (home-page "https://wiki.gnome.org/Apps/Xpad")
7672 (synopsis "Virtual sticky note")
7673 (description
7674 "Xpad is a sticky note that strives to be simple, fault tolerant,
7675and customizable. Xpad consists of independent pad windows, each is
7676basically a text box in which notes can be written.")
7677 (license license:gpl3+)))
3ad7dce1
RS
7678
7679(define-public gucharmap
c60063ea
RW
7680 (let ((unicode-files
7681 '(("Blocks.txt"
1f8b5515 7682 "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1")
c60063ea 7683 ("DerivedAge.txt"
1f8b5515 7684 "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6")
c60063ea 7685 ("NamesList.txt"
1f8b5515 7686 "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61")
c60063ea 7687 ("Scripts.txt"
1f8b5515 7688 "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx")
c60063ea 7689 ("UnicodeData.txt"
1f8b5515 7690 "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap")
c60063ea 7691 ("Unihan.zip"
1f8b5515 7692 "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"))))
c60063ea
RW
7693 (package
7694 (name "gucharmap")
1f8b5515 7695 (version "12.0.1")
c60063ea
RW
7696 (source
7697 (origin
7698 (method url-fetch)
7699 (uri (string-append "mirror://gnome/sources/" name "/"
7700 (version-major+minor version) "/"
7701 name "-" version ".tar.xz"))
7702 (sha256
7703 (base32
1f8b5515 7704 "0m915hm2b2d6r3vs1l80rqpssvg78pv8j6nv54yg62kzknnqmpir"))))
c60063ea
RW
7705 (build-system glib-or-gtk-build-system)
7706 (arguments
7707 `(#:modules ((ice-9 match)
7708 (guix build glib-or-gtk-build-system)
7709 (guix build utils))
7710 #:configure-flags
7711 (list "--with-unicode-data=../unicode-data")
7712 #:phases
7713 (modify-phases %standard-phases
7714 (add-after 'unpack 'prepare-unicode-data
7715 (lambda* (#:key inputs #:allow-other-keys)
7716 (mkdir-p "../unicode-data")
7717 (with-directory-excursion "../unicode-data"
7718 (for-each (match-lambda
7719 ((file _)
7720 (install-file (assoc-ref inputs file) ".")))
7721 ',unicode-files))
7722 #t)))))
7723 (native-inputs
7724 `(("desktop-file-utils" ,desktop-file-utils)
7725 ("glib:bin" ,glib "bin") ; for glib-compile-resources.
7726 ("gobject-introspection" ,gobject-introspection)
7727 ("intltool" ,intltool)
7728 ("itstool" ,itstool)
7729 ("pkg-config" ,pkg-config)
7730 ,@(map (match-lambda
7731 ((file hash)
7732 `(,file
7733 ,(origin
7734 (method url-fetch)
7735 (uri (string-append
1f8b5515 7736 "http://www.unicode.org/Public/12.0.0/ucd/"
c60063ea
RW
7737 file))
7738 (sha256 (base32 hash))))))
7739 unicode-files)
7740 ("unzip" ,unzip)))
7741 (inputs
7742 `(("gtk+" ,gtk+)
7743 ("xmllint" ,libxml2)))
7744 (home-page "https://wiki.gnome.org/Apps/Gucharmap")
7745 (synopsis "Unicode character picker and font browser")
7746 (description
7747 "This program allows you to browse through all the available Unicode
3ad7dce1
RS
7748characters and categories for the installed fonts, and to examine their
7749detailed properties. It is an easy way to find the character you might
7750only know by its Unicode name or code point.")
c60063ea 7751 (license license:gpl3+))))
04ce840a
RS
7752
7753(define-public bluefish
7754 (package
7755 (name "bluefish")
ea8afaf3 7756 (version "2.2.10")
04ce840a
RS
7757 (source
7758 (origin
7759 (method url-fetch)
7760 (uri (string-append "http://www.bennewitz.com/bluefish/stable/source/"
7761 name "-" version ".tar.gz"))
7762 (sha256
7763 (base32
ea8afaf3 7764 "1jw4has7lbp77lqmzvnnjmqcf0lacjfnka873lkkwdyrpzc4c1q4"))))
04ce840a
RS
7765 (build-system gnu-build-system)
7766 (native-inputs
7767 `(("desktop-file-utils" ,desktop-file-utils)
7768 ("intltool" ,intltool)
7769 ("pkg-config" ,pkg-config)))
7770 (inputs
7771 `(("enchant" ,enchant)
7772 ("gtk+" ,gtk+)
7773 ("python" ,python-2)
7774 ("xmllint" ,libxml2)
7775 ("gucharmap" ,gucharmap)))
7776 (home-page "http://bluefish.openoffice.nl")
7777 (synopsis "Web development studio")
7778 (description
7779 "Bluefish is an editor targeted towards programmers and web developers,
7780with many options to write web sites, scripts and other code.
7781Bluefish supports many programming and markup languages.")
7782 (license license:gpl3+)))
1f6a73ee
RS
7783
7784(define-public gnome-system-monitor
7785 (package
7786 (name "gnome-system-monitor")
85fb3df3 7787 (version "3.30.0")
1f6a73ee
RS
7788 (source
7789 (origin
7790 (method url-fetch)
7791 (uri (string-append "mirror://gnome/sources/" name "/"
7792 (version-major+minor version) "/"
7793 name "-" version ".tar.xz"))
7794 (sha256
7795 (base32
85fb3df3
RW
7796 "0g0y565bjs6bdszrnxsz1f7hcm1x59i3mfvplysirh7nz3hpz888"))))
7797 (build-system meson-build-system)
7798 (arguments
7799 '(#:glib-or-gtk? #t
7800 #:configure-flags '("-Dsystemd=false")))
1f6a73ee
RS
7801 (native-inputs
7802 `(("glib:bin" ,glib "bin") ; for glib-mkenums.
85fb3df3 7803 ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
1f6a73ee
RS
7804 ("intltool" ,intltool)
7805 ("itstool" ,itstool)
7806 ("libgtop" ,libgtop)
4985d9aa 7807 ("polkit" ,polkit)
1f6a73ee
RS
7808 ("pkg-config" ,pkg-config)))
7809 (inputs
7810 `(("gdk-pixbuf" ,gdk-pixbuf) ; for loading SVG files.
7811 ("gtk+" ,gtk+)
7812 ("gtkmm" ,gtkmm)
7813 ("librsvg" ,librsvg)
4985d9aa
RW
7814 ("libxml2" ,libxml2)
7815 ("libwnck" ,libwnck)))
1f6a73ee
RS
7816 (home-page "https://wiki.gnome.org/Apps/SystemMonitor")
7817 (synopsis "Process viewer and system resource monitor for GNOME")
7818 (description
7819 "GNOME System Monitor is a GNOME process viewer and system monitor with
7820an attractive, easy-to-use interface. It has features, such as a tree view
7821for process dependencies, icons for processes, the ability to hide processes,
7822graphical time histories of CPU/memory/swap usage and the ability to
7823kill/reinice processes.")
7824 (license license:gpl2+)))
3e00ac47
SB
7825
7826(define-public python-pyatspi
7827 (package
7828 (name "python-pyatspi")
84548bd7 7829 (version "2.26.0")
3e00ac47
SB
7830 (source (origin
7831 (method url-fetch)
7832 (uri (string-append
7833 "mirror://gnome/sources/pyatspi/"
7834 (version-major+minor version)
7835 "/pyatspi-" version ".tar.xz"))
7836 (sha256
7837 (base32
b95af3f6
JL
7838 "0xdnix7gxzgf75xy9ris4dd6b05mqwicw190b98xqmypydyf95n6"))
7839 ;; Patch from upstream, fixed in newer versions.
7840 (patches (search-patches "python-pyatspi-python-37.patch"))))
3e00ac47 7841 (build-system gnu-build-system)
b95af3f6
JL
7842 (arguments
7843 `(#:phases
7844 (modify-phases %standard-phases
7845 (add-before 'build 'fix-atk-load
7846 (lambda _
7847 (substitute* "pyatspi/__init__.py"
7848 (("from gi.repository import Atspi")
7849 "gi.require_version('Gtk', '3.0')
7850from gi.repository import Gtk
7851from gi.repository import Atspi"))
7852 #t)))))
3e00ac47
SB
7853 (native-inputs
7854 `(("pkg-config" ,pkg-config)))
7855 (inputs
7856 `(("python" ,python)
7857 ("python-pygobject" ,python-pygobject)))
7858 (synopsis "Python client bindings for D-Bus AT-SPI")
7859 (home-page "https://wiki.linuxfoundation.org/accessibility\
7860/atk/at-spi/at-spi_on_d-bus")
7861 (description
7862 "This package includes a python client library for the AT-SPI D-Bus
7863accessibility infrastructure.")
7864 (license license:lgpl2.0)
7865 (properties '((upstream-name . "pyatspi")))))
53201c0d
SB
7866
7867(define-public orca
7868 (package
7869 (name "orca")
ef9b7d4c 7870 (version "3.30.2")
53201c0d
SB
7871 (source (origin
7872 (method url-fetch)
7873 (uri (string-append
7874 "mirror://gnome/sources/" name "/"
7875 (version-major+minor version) "/"
7876 name "-" version ".tar.xz"))
7877 (sha256
7878 (base32
ef9b7d4c 7879 "17asibc46i5gr2fw04jvvdi85zzmxwlnhyq7r6cr3m5prrdr8a53"))))
53201c0d
SB
7880 (build-system glib-or-gtk-build-system)
7881 (arguments
7882 '(#:phases
7883 (modify-phases %standard-phases
7884 (add-before 'configure 'qualify-xkbcomp
7885 (lambda* (#:key inputs #:allow-other-keys)
7886 (let ((xkbcomp (string-append
7887 (assoc-ref inputs "xkbcomp") "/bin/xkbcomp")))
7888 (substitute* "src/orca/orca.py"
7889 (("'xkbcomp'") (format #f "'~a'" xkbcomp))))
7890 #t))
7891 (add-after 'install 'wrap-orca
7892 (lambda* (#:key outputs #:allow-other-keys)
7893 (let* ((out (assoc-ref outputs "out"))
7894 (prog (string-append out "/bin/orca")))
7895 (wrap-program prog
7896 `("GI_TYPELIB_PATH" ":" prefix
7897 (,(getenv "GI_TYPELIB_PATH")))
7898 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix
7899 (,(getenv "GST_PLUGIN_SYSTEM_PATH")))
7900 `("PYTHONPATH" ":" prefix
7901 (,(getenv "PYTHONPATH")))))
7902 #t)))))
7903 (native-inputs
7904 `(("intltool" ,intltool)
7905 ("itstool" ,itstool)
7906 ("pkg-config" ,pkg-config)
7907 ("xmllint" ,libxml2)))
7908 (inputs
7909 `(("at-spi2-atk" ,at-spi2-atk)
7910 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7911 ("gstreamer" ,gstreamer)
7912 ("gst-plugins-base" ,gst-plugins-base)
7913 ("gst-plugins-good" ,gst-plugins-good)
7914 ("gtk+" ,gtk+)
7915 ("python" ,python)
7916 ("python-pygobject" ,python-pygobject)
7917 ("python-pyatspi" ,python-pyatspi)
7918 ("python-speechd" ,speech-dispatcher)
7919 ("xkbcomp" ,xkbcomp)))
7920 (synopsis
7921 "Screen reader for individuals who are blind or visually impaired")
7922 (home-page "https://wiki.gnome.org/Projects/Orca")
7923 (description
7924 "Orca is a screen reader that provides access to the graphical desktop
7925via speech and refreshable braille. Orca works with applications and toolkits
7926that support the Assistive Technology Service Provider Interface (AT-SPI).")
7927 (license license:lgpl2.1+)))
411ba511
LC
7928
7929(define-public gspell
7930 (package
7931 (name "gspell")
7a6bbe9b 7932 (version "1.8.2")
411ba511
LC
7933 (source (origin
7934 (method url-fetch)
7935 (uri (string-append "mirror://gnome/sources/" name "/"
7936 (version-major+minor version) "/"
7937 name "-" version ".tar.xz"))
7938 (sha256
7939 (base32
7a6bbe9b 7940 "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
411ba511
LC
7941 (patches (search-patches "gspell-dash-test.patch"))))
7942 (build-system glib-or-gtk-build-system)
7943 (arguments
7944 '(#:phases
7945 (modify-phases %standard-phases
7946 (add-before 'check 'pre-check
7947 (lambda* (#:key inputs #:allow-other-keys)
7948 ;; Tests require a running X server.
7949 (system "Xvfb :1 &")
7950 (setenv "DISPLAY" ":1")
7951
7952 ;; For the missing /etc/machine-id.
7953 (setenv "DBUS_FATAL_WARNINGS" "0")
7954
7955 ;; Allow Enchant and its Aspell backend to find the en_US
7956 ;; dictionary.
7957 (setenv "ASPELL_DICT_DIR"
7958 (string-append (assoc-ref inputs "aspell-dict-en")
7959 "/lib/aspell"))
7960 #t)))))
7961 (inputs
eccd35be 7962 `(("gtk+" ,gtk+)
a801ae4c
TGR
7963 ("glib" ,glib)
7964 ("iso-codes" ,iso-codes)))
411ba511
LC
7965 (native-inputs
7966 `(("glib" ,glib "bin")
7967 ("pkg-config" ,pkg-config)
7968 ("xmllint" ,libxml2)
7969
7970 ;; For tests.
a801ae4c 7971 ("aspell-dict-en" ,aspell-dict-en)
ff337525 7972 ("xorg-server" ,xorg-server-for-tests)))
eccd35be 7973 (propagated-inputs
9b1bb757 7974 `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
411ba511
LC
7975 (home-page "https://wiki.gnome.org/Projects/gspell")
7976 (synopsis "GNOME's alternative spell checker")
7977 (description
7978 "gspell provides a flexible API to add spell-checking to a GTK+
7979application. It provides a GObject API, spell-checking to text entries and
7980text views, and buttons to choose the language.")
7981 (license license:gpl2+)))
d1d739fa
CM
7982
7983(define-public gnome-planner
7984 (package
7985 (name "gnome-planner")
7986 (version "0.14.6")
7987 (source (origin
7988 (method url-fetch)
7989 (uri (string-append "mirror://gnome/sources/planner/"
7990 (version-major+minor version) "/planner-"
7991 version ".tar.xz"))
7992 (sha256
7993 (base32
7994 "15h6ps58giy5r1g66sg1l4xzhjssl362mfny2x09khdqsvk2j38k"))))
7995 (build-system glib-or-gtk-build-system)
7996 (arguments
7997 ;; Disable the Python bindings because the Planner program functions
7998 ;; without them, and (as of 2017-06-13) we have not packaged all of
7999 ;; packages that are necessary for building the Python bindings.
20b7b75c
EF
8000 `(#:configure-flags
8001 (list "--disable-python"
8002 ,@(if (string=? "aarch64-linux" (%current-system))
8003 '("--build=aarch64-unknown-linux-gnu")
8004 '()))))
d1d739fa
CM
8005 (inputs
8006 `(("libgnomecanvas" ,libgnomecanvas)
8007 ("libgnomeui" ,libgnomeui)
8008 ("libglade" ,libglade)
8009 ("gnome-vfs" ,gnome-vfs)
8010 ("gconf" ,gconf)
8011 ("libxml2" ,libxml2)
8012 ("libxslt" ,libxslt)
8013 ("gtk+" ,gtk+)
8014 ("glib" ,glib)))
8015 (native-inputs
8016 `(("intltool" ,intltool)
8017 ("scrollkeeper" ,scrollkeeper)
8018 ("pkg-config" ,pkg-config)))
8019 (home-page "https://wiki.gnome.org/Apps/Planner")
8020 (synopsis "Project management software for the GNOME desktop")
8021 (description
8022 "GNOME Planner is a project management tool based on the Work Breakdown
8023Structure (WBS). Its goal is to enable you to easily plan projects. Based on
8024the resources, tasks, and constraints that you define, Planner generates
8025various views into a project. For example, Planner can show a Gantt chart of
8026the project. It can show a detailed summary of tasks including their
8027duration, cost, and current progress. It can also show a report of resource
8028utilization that highlights under-utilized and over-utilized resources. These
8029views can be printed as PDF or PostScript files, or exported to HTML.")
4b926cb6 8030 (license license:gpl2+)))
64fce637
RS
8031
8032(define-public lollypop
8033 (package
8034 (name "lollypop")
ca32627a 8035 (version "1.2.7")
64fce637
RS
8036 (source
8037 (origin
8038 (method url-fetch)
b98eace8 8039 (uri (string-append "https://gitlab.gnome.org/World/lollypop/uploads/"
ca32627a 8040 "08f973788c7ca46d9285eec2ac818edb/"
3275d43d 8041 "lollypop-" version ".tar.xz"))
64fce637 8042 (sha256
ca32627a 8043 (base32 "0hvq6m4i62i0m63bg4gzpfb9rv1fk6vq5jl2g3ppcgm4srmfm77j"))))
aa498fc0 8044 (build-system meson-build-system)
64fce637
RS
8045 (arguments
8046 `(#:imported-modules ((guix build python-build-system)
aa498fc0
TD
8047 ,@%meson-build-system-modules)
8048 #:glib-or-gtk? #t
5fc9b6c1
EF
8049 #:tests? #f ; no test suite
8050 #:phases
8051 (modify-phases %standard-phases
5fc9b6c1
EF
8052 (add-after 'install 'wrap-program
8053 (lambda* (#:key outputs #:allow-other-keys)
8054 (let ((out (assoc-ref outputs "out"))
8055 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
8056 (wrap-program (string-append out "/bin/lollypop")
8057 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
8058 #t))
8ac8b3b3
TGR
8059 (add-after 'install 'wrap-python
8060 (@@ (guix build python-build-system) wrap))
8061 (add-after 'install 'wrap-glib-or-gtk
8062 (@@ (guix build glib-or-gtk-build-system) wrap-all-programs)))))
64fce637
RS
8063 (native-inputs
8064 `(("intltool" ,intltool)
8065 ("itstool" ,itstool)
aa498fc0
TD
8066 ("glib:bin" ,glib "bin") ; For glib-compile-resources
8067 ("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
64fce637
RS
8068 ("pkg-config" ,pkg-config)))
8069 (inputs
8070 `(("gobject-introspection" ,gobject-introspection)
8ac8b3b3 8071 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5fc9b6c1 8072 ("gst-plugins-base" ,gst-plugins-base)
64fce637
RS
8073 ("libnotify" ,libnotify)
8074 ("libsecret" ,libsecret)
8075 ("libsoup" ,libsoup)
8076 ("python" ,python)
8077 ("python-beautifulsoup4" ,python-beautifulsoup4)
8078 ("python-gst" ,python-gst)
d029afdd 8079 ("python-pil" ,python-pillow)
64fce637 8080 ("python-pycairo" ,python-pycairo)
7460f346 8081 ("python-pygobject" ,python-pygobject-3.34)
64fce637
RS
8082 ("python-pylast" ,python-pylast)
8083 ("totem-pl-parser" ,totem-pl-parser)
8084 ("webkitgtk" ,webkitgtk)))
8085 (propagated-inputs
8086 `(;; gst-plugins-base is required to start Lollypop,
8087 ;; the others are required to play streaming.
64fce637
RS
8088 ("gst-plugins-good" ,gst-plugins-good)
8089 ("gst-plugins-ugly" ,gst-plugins-ugly)))
b98eace8 8090 (home-page "https://wiki.gnome.org/Apps/Lollypop")
64fce637
RS
8091 (synopsis "GNOME music playing application")
8092 (description
8093 "Lollypop is a music player designed to play well with GNOME desktop.
8094Lollypop plays audio formats such as mp3, mp4, ogg and flac and gets information
8095from artists and tracks from the web. It also fetches cover artworks
8096automatically and it can stream songs from online music services and charts.")
8097 (license license:gpl3+)))
d831d49d
AW
8098
8099(define-public gnome-video-effects
8100 (package
8101 (name "gnome-video-effects")
8102 (version "0.4.3")
8103 (source (origin
8104 (method url-fetch)
8105 (uri (string-append "mirror://gnome/sources/" name "/"
8106 (version-major+minor version) "/" name "-"
8107 version ".tar.xz"))
8108 (sha256
8109 (base32
8110 "06c2f1kihyhawap1s3zg5w7q7fypsybkp7xry4hxkdz4mpsy0zjs"))))
8111 (build-system glib-or-gtk-build-system)
8112 (arguments
8113 `(#:out-of-source? #f))
8114 (native-inputs
8115 `(("glib:bin" ,glib "bin")
8116 ("intltool" ,intltool)
8117 ("gettext" ,gettext-minimal)
8118 ("pkg-config" ,pkg-config)))
8119 (home-page "https://wiki.gnome.org/Projects/GnomeVideoEffects")
8120 (synopsis "Video effects for Cheese and other GNOME applications")
8121 (description
8122 "A collection of GStreamer video filters and effects to be used in
8123photo-booth-like software, such as Cheese.")
8124 (license license:gpl2+)))
3511c780
AW
8125
8126(define-public cheese
8127 (package
8128 (name "cheese")
00b14dbb 8129 (version "3.30.0")
3511c780
AW
8130 (source (origin
8131 (method url-fetch)
8132 (uri (string-append "mirror://gnome/sources/" name "/"
8133 (version-major+minor version) "/" name "-"
8134 version ".tar.xz"))
8135 (sha256
8136 (base32
00b14dbb 8137 "0zz2bgjaf2lsmfs3zn24925vbjb0rycr39i288brlbzixrpcyljr"))))
3511c780
AW
8138 (arguments
8139 ;; Tests require GDK.
8140 `(#:tests? #f
8141 #:phases
8142 (modify-phases %standard-phases
8143 (add-before 'install 'skip-gtk-update-icon-cache
8144 (lambda _
8145 ;; Don't create 'icon-theme.cache'
8146 (substitute* "Makefile"
8147 (("gtk-update-icon-cache") (which "true")))
8148 #t))
8149 (add-after 'install 'wrap-cheese
8150 (lambda* (#:key inputs outputs #:allow-other-keys)
8151 (let ((out (assoc-ref outputs "out"))
8152 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
8153 (wrap-program (string-append out "/bin/cheese")
8154 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
8155 #t)))))
8156 (build-system glib-or-gtk-build-system)
8157 (native-inputs
8158 `(("glib:bin" ,glib "bin")
8159 ("intltool" ,intltool)
8160 ("itstool" ,itstool)
8161 ("libxml2" ,libxml2)
8162 ("pkg-config" ,pkg-config)
8163 ("vala" ,vala)))
8164 (propagated-inputs
6a19f03e
RW
8165 `(("gnome-video-effects" ,gnome-video-effects)
8166 ("clutter" ,clutter)
3511c780
AW
8167 ("clutter-gst" ,clutter-gst)
8168 ("clutter-gtk" ,clutter-gtk)
6a19f03e 8169 ("libcanberra" ,libcanberra)
3511c780
AW
8170 ("gdk-pixbuf" ,gdk-pixbuf)
8171 ("glib" ,glib)
6a19f03e
RW
8172 ("gstreamer" ,gstreamer)))
8173 (inputs
8174 `(("gnome-desktop" ,gnome-desktop)
3511c780 8175 ("gobject-introspection" ,gobject-introspection)
3511c780
AW
8176 ("gst-plugins-base" ,gst-plugins-base)
8177 ("gst-plugins-bad" ,gst-plugins-bad)
8178 ("gtk+" ,gtk+)
3511c780
AW
8179 ("libx11" ,libx11)
8180 ("libxtst" ,libxtst)))
8181 (home-page "https://wiki.gnome.org/Apps/Cheese")
8182 (synopsis "Webcam photo booth software for GNOME")
8183 (description
8184 "Cheese uses your webcam to take photos and videos. Cheese can also
8185apply fancy special effects and lets you share the fun with others.")
8186 (license license:gpl2+)))
3c5dbd2b 8187
8188(define-public sound-juicer
8189 (package
8190 (name "sound-juicer")
8191 (version "3.24.0")
8192 (source
8193 (origin
8194 (method url-fetch)
8195 (uri (string-append "mirror://gnome/sources/" name "/"
8196 (version-major+minor version) "/"
8197 name "-" version ".tar.xz"))
8198 (sha256
8199 (base32
8200 "19qg4xv0f9rkq34lragkmhii1llxsa87llbl28i759b0ks4f6sny"))))
8201 (build-system glib-or-gtk-build-system)
8202 (native-inputs
8203 `(("desktop-file-utils" ,desktop-file-utils)
8204 ("intltool" ,intltool)
8205 ("itstool" ,itstool)
8206 ("pkg-config" ,pkg-config)
8207 ("xmllint" ,libxml2)))
8208 (inputs
8209 `(("gtk+" ,gtk+)
8210 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8211 ("gstreamer" ,gstreamer)
8212 ("gst-plugins-base" ,gst-plugins-base)
8213 ("gst-plugins-good" ,gst-plugins-good)
8214 ("iso-codes" ,iso-codes)
8215 ("libbrasero-media3" ,brasero)
8216 ("libcanberra" ,libcanberra)
8217 ("libdiscid" ,libdiscid)
8218 ("libmusicbrainz" ,libmusicbrainz)
8219 ("neon" ,neon)))
8220 (home-page "https://wiki.gnome.org/Apps/SoundJuicer")
8221 (synopsis "Audio music cd ripper")
8222 (description "Sound Juicer extracts audio from compact discs and convert it
8223into audio files that a personal computer or digital audio player can play.
8224It supports ripping to any audio codec supported by a GStreamer plugin, such as
8225mp3, Ogg Vorbis and FLAC")
8226 (license license:gpl2+)))
4e3fdeb7 8227
0d3f1708
CB
8228(define-public soundconverter
8229 (package
8230 (name "soundconverter")
fa75a213 8231 (version "3.0.1")
0d3f1708
CB
8232 (source
8233 (origin
8234 (method url-fetch)
8235 (uri (string-append "https://launchpad.net/soundconverter/trunk/"
8236 version "/+download/"
8237 "soundconverter-" version ".tar.xz"))
8238
8239 (sha256
fa75a213 8240 (base32 "1d6x1yf8psqbd9zbybxivfqg55khcnngp2mn92l161dfdk9512c5"))
0d3f1708
CB
8241 (patches
8242 (search-patches
8243 "soundconverter-remove-gconf-dependency.patch"))))
8244 (build-system glib-or-gtk-build-system)
8245 (arguments
8246 `(#:imported-modules ((guix build python-build-system)
8247 (guix build glib-or-gtk-build-system)
8248 ,@%gnu-build-system-modules)
8249
8250 #:modules ((guix build glib-or-gtk-build-system)
8251 (guix build utils)
8252 ((guix build gnu-build-system) #:prefix gnu:)
8253 ((guix build python-build-system) #:prefix python:))
8254
8255 #:phases
8256 (modify-phases %standard-phases
0d3f1708
CB
8257 (add-after 'install 'wrap-soundconverter-for-python
8258 (assoc-ref python:%standard-phases 'wrap))
8259 (add-after 'install 'wrap-soundconverter
8260 (lambda* (#:key inputs outputs #:allow-other-keys)
8261 (let ((out (assoc-ref outputs "out"))
8262 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
8263 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
8264 (wrap-program (string-append out "/bin/soundconverter")
8265 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
8266 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
8267 #t)))))
8268 (native-inputs
8269 `(("intltool" ,intltool)
8270 ("pkg-config" ,pkg-config)
8271 ("glib:bin" ,glib "bin")))
8272 (inputs
8273 `(("gtk+" ,gtk+)
8274 ("python" ,python)
8275 ("python-pygobject" ,python-pygobject)
8276 ("gstreamer" ,gstreamer)
8277 ("gst-plugins-base" ,gst-plugins-base)))
8278 (home-page "http://soundconverter.org/")
8279 (synopsis "Convert between audio formats with a graphical interface")
8280 (description
8281 "SoundConverter supports converting between many audio formats including
8282Opus, Ogg Vorbis, FLAC and more. It supports parallel conversion, and
8283configurable file renaming. ")
8284 (license license:gpl3)))
8285
4e3fdeb7 8286(define-public workrave
89f2d736
TGR
8287 (package
8288 (name "workrave")
aa51d92c 8289 (version "1.10.34")
89f2d736
TGR
8290 (source
8291 (origin
8292 (method git-fetch)
8293 (uri (git-reference
8294 (url "https://github.com/rcaelers/workrave.git")
c2e50474
TGR
8295 (commit (string-append "v" (string-map
8296 (match-lambda (#\. #\_) (chr chr))
8297 version)))))
89f2d736
TGR
8298 (file-name (git-file-name name version))
8299 (sha256
aa51d92c 8300 (base32 "0czwhr7nw523753ajcjjfwrf91mq8pmzr19gp0srqsvb1dsn1zcf"))))
89f2d736 8301 (build-system glib-or-gtk-build-system)
d1c96847
MC
8302 (inputs `(("glib" ,glib)
8303 ("gtk+" ,gtk+)
8304 ("gdk-pixbuf" ,gdk-pixbuf)
8305 ("gtkmm" ,gtkmm)
8306 ("glibmm" ,glibmm)
8307 ("libx11" ,libx11)
8308 ("libxtst" ,libxtst)
8309 ("dconf" ,dconf)
8310 ("libice" ,libice)
8311 ("libsm" ,libsm)
8312 ("libxscrnsaver" ,libxscrnsaver)))
aa51d92c 8313 (native-inputs `(("boost" ,boost)
89f2d736
TGR
8314 ("pkg-config" ,pkg-config)
8315 ("gettext" ,gnu-gettext)
8316 ("autoconf" ,autoconf)
8317 ("autoconf-archive" , autoconf-archive)
8318 ("automake" ,automake)
8319 ("libtool" ,libtool)
8320 ("intltool" ,intltool)
89f2d736 8321 ("gobject-introspection" ,gobject-introspection)
aa51d92c
MC
8322 ("python3" ,python-3)
8323 ("python-jinja2" ,python-jinja2)))
89f2d736
TGR
8324 (synopsis "Tool to help prevent repetitive strain injury (RSI)")
8325 (description
8326 "Workrave is a program that assists in the recovery and prevention of
cc00249b
TGR
8327repetitive strain injury (@dfn{RSI}). The program frequently alerts you to take
8328micro-pauses and rest breaks, and restricts you to your daily limit.")
89f2d736
TGR
8329 (home-page "http://www.workrave.org")
8330 (license license:gpl3+)))
312afa7d
LC
8331
8332(define-public ghex
8333 (package
8334 (name "ghex")
8335 (version "3.18.3")
8336 (source (origin
8337 (method url-fetch)
2fbab848 8338 (uri (string-append "mirror://gnome/sources/ghex/"
312afa7d 8339 (version-major+minor version) "/"
2fbab848 8340 "ghex-" version ".tar.xz"))
312afa7d
LC
8341 (sha256
8342 (base32
8343 "1lq8920ad2chi9ibmyq0x9hg9yk63b0kdbzid03w42cwdzw50x66"))))
8344 (build-system glib-or-gtk-build-system)
8345 (native-inputs
8346 `(("pkg-config" ,pkg-config)
8347 ("gnome-common" ,gnome-common)
8348 ("which" ,which)
8349 ("intltool" ,intltool)
8350 ("yelp-tools" ,yelp-tools)
2fbab848 8351 ("desktop-file-utils" ,desktop-file-utils))) ; for 'desktop-file-validate'
312afa7d
LC
8352 (inputs
8353 `(("atk" ,atk)
8354 ("gtk" ,gtk+)))
8355 (synopsis "GNOME hexadecimal editor")
8356 (description "The GHex program can view and edit files in two ways:
8357hexadecimal or ASCII. It is useful for editing binary files in general.")
8358 (home-page "https://wiki.gnome.org/Apps/Ghex")
8359 (license license:gpl2)))
4b2ed6c2
RW
8360
8361(define-public libdazzle
8362 (package
8363 (name "libdazzle")
64fa66ba 8364 (version "3.33.90")
4b2ed6c2
RW
8365 (source (origin
8366 (method url-fetch)
687b4909 8367 (uri (string-append "mirror://gnome/sources/libdazzle/"
4b2ed6c2 8368 (version-major+minor version) "/"
687b4909 8369 "libdazzle-" version ".tar.xz"))
4b2ed6c2
RW
8370 (sha256
8371 (base32
64fa66ba 8372 "189m7q88d1a7bq0yyal9f3yhm9kz46lb61379nn4wsnnhpa1d0qs"))))
4b2ed6c2
RW
8373 (build-system meson-build-system)
8374 (arguments
8375 `(#:phases
8376 (modify-phases %standard-phases
4b2ed6c2
RW
8377 (add-before 'check 'pre-check
8378 (lambda _
8379 ;; Tests require a running X server.
8380 (system "Xvfb :1 &")
8381 (setenv "DISPLAY" ":1")
8382 #t)))))
8383 (native-inputs
687b4909 8384 `(("glib" ,glib "bin") ; glib-compile-resources
4b2ed6c2 8385 ("pkg-config" ,pkg-config)
687b4909 8386 ;; For tests.
ff337525 8387 ("xorg-server" ,xorg-server-for-tests)))
4b2ed6c2
RW
8388 (inputs
8389 `(("glib" ,glib)
8390 ("gobject-introspection" ,gobject-introspection)
8391 ("gtk+" ,gtk+)
8392 ("vala" ,vala)))
8393 (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
8394 (synopsis "Companion library to GObject and Gtk+")
8395 (description "The libdazzle library is a companion library to GObject and
8396Gtk+. It provides various features that the authors wish were in the
8397underlying library but cannot for various reasons. In most cases, they are
8398wildly out of scope for those libraries. In other cases, they are not quite
8399generic enough to work for everyone.")
8400 (license license:gpl3+)))
7d3bb433
RW
8401
8402(define-public evolution
8403 (package
8404 (name "evolution")
06141f83 8405 (version "3.32.4")
7d3bb433
RW
8406 (source (origin
8407 (method url-fetch)
8408 (uri (string-append "mirror://gnome/sources/evolution/"
8409 (version-major+minor version) "/"
8410 "evolution-" version ".tar.xz"))
8411 (sha256
8412 (base32
06141f83 8413 "00hmmg4hfns8rq9rcilmy0gi1xkksld27lfbd9zmw2xw37wjmbqh"))))
7d3bb433
RW
8414 (build-system cmake-build-system)
8415 (arguments
5229bea1
KK
8416 `(#:imported-modules (,@%cmake-build-system-modules
8417 (guix build glib-or-gtk-build-system))
8418 #:modules ((guix build cmake-build-system)
8419 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
8420 (guix build utils))
8421 #:configure-flags
7d3bb433 8422 (list "-DENABLE_PST_IMPORT=OFF" ; libpst is not packaged
5229bea1 8423 "-DENABLE_LIBCRYPTUI=OFF") ; libcryptui hasn't seen a release
7d3bb433 8424 ; in four years and cannot be built.
5229bea1
KK
8425 #:phases
8426 (modify-phases %standard-phases
8427 ;; The build system attempts to install user interface modules to the
8428 ;; output directory of the "evolution-data-server" package. This
8429 ;; change redirects that change.
8430 (add-after 'unpack 'patch-ui-module-dir
8431 (lambda* (#:key outputs #:allow-other-keys)
8432 (substitute* "src/modules/alarm-notify/CMakeLists.txt"
8433 (("\\$\\{edsuimoduledir\\}")
8434 (string-append (assoc-ref outputs "out")
8435 "/lib/evolution-data-server/ui-modules")))
8436 #t))
8437 (add-after 'install 'glib-or-gtk-compile-schemas
8438 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
8439 (add-after 'install 'glib-or-gtk-wrap
8440 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
7d3bb433 8441 (native-inputs
ad6e168b 8442 `(("glib" ,glib "bin") ; glib-mkenums
7d3bb433
RW
8443 ("pkg-config" ,pkg-config)
8444 ("intltool" ,intltool)
8445 ("itstool" ,itstool)))
8446 (inputs
8447 `(("enchant" ,enchant)
8448 ("evolution-data-server" ,evolution-data-server) ; must be the same version
8449 ("gcr" ,gcr)
ad6e168b 8450 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
7d3bb433
RW
8451 ("gnome-autoar" ,gnome-autoar)
8452 ("gnome-desktop" ,gnome-desktop)
8453 ("gtkspell3" ,gtkspell3)
8454 ("highlight" ,highlight)
8455 ("libcanberra" ,libcanberra)
b63c06f1 8456 ("libedataserverui" ,evolution-data-server)
7d3bb433
RW
8457 ("libgweather" ,libgweather)
8458 ("libnotify" ,libnotify)
8459 ("libsoup" ,libsoup)
8460 ("nss" ,nss)
8461 ("openldap" ,openldap)
8462 ("webkitgtk" ,webkitgtk)
8463 ("ytnef" ,ytnef)))
8464 (home-page "https://gitlab.gnome.org/GNOME/evolution")
8465 (synopsis "Manage your email, contacts and schedule")
8466 (description "Evolution is a personal information management application
8467that provides integrated mail, calendaring and address book
8468functionality.")
8469 ;; See COPYING for details.
23dbe621 8470 (license (list license:lgpl2.1 license:lgpl3 ; either one of these
7d3bb433 8471 license:openldap2.8 ; addressbook/gui/component/openldap-extract.h
23dbe621 8472 license:lgpl2.1+)))) ; smime/lib/*
169d63f5
AT
8473
8474(define-public gthumb
8475 (package
8476 (name "gthumb")
8280676b 8477 (version "3.8.2")
169d63f5
AT
8478 (source (origin
8479 (method url-fetch)
8480 (uri (string-append "mirror://gnome/sources/gthumb/"
8481 (version-major+minor version) "/"
8482 "gthumb-" version ".tar.xz"))
8483 (sha256
8484 (base32
8280676b 8485 "15wqks35ks5dm7zj046dfd45vvrilan2ayfy2sxiprv7q74cip2q"))))
169d63f5
AT
8486 (build-system meson-build-system)
8487 (arguments
8488 `(#:glib-or-gtk? #t
8489 #:configure-flags
8490 ;; Ensure the RUNPATH contains all installed library locations.
8491 (list (string-append "-Dc_link_args=-Wl,-rpath="
8492 (assoc-ref %outputs "out")
8493 "/lib/gthumb/extensions")
8494 (string-append "-Dcpp_link_args=-Wl,-rpath="
8495 (assoc-ref %outputs "out")
8496 "/lib/gthumb/extensions"))))
8497 (native-inputs
8498 `(("pkg-config" ,pkg-config)
8499 ("glib:bin" ,glib "bin") ; for glib-compile-resources
8500 ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
8501 ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
8502 ("intltool" ,intltool)
8503 ("itstool" ,itstool)))
8504 (inputs
8505 `(("exiv2" ,exiv2)
8506 ("gtk" ,gtk+)
8507 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8508 ("gstreamer" ,gstreamer)
8509 ("clutter" ,clutter)
8510 ("clutter-gst" ,clutter-gst)
8511 ("clutter-gtk" ,clutter-gtk)
8512 ("libjpeg" ,libjpeg)
8513 ("libtiff" ,libtiff)
8514 ("libraw" ,libraw)))
8515 (home-page "https://wiki.gnome.org/Apps/Gthumb")
8516 (synopsis "GNOME image viewer and browser")
8517 (description "GThumb is an image viewer, browser, organizer, editor and
8518advanced image management tool")
8519 (license license:gpl2+)))
08be02be
AT
8520
8521(define-public terminator
8522 (package
8523 (name "terminator")
8524 (version "1.91")
8525 (source (origin
8526 (method url-fetch)
8527 (uri (string-append "https://launchpad.net/" name "/"
8528 "gtk3/" version "/" "+download/"
8529 name "-" version ".tar.gz"))
8530 (sha256
8531 (base32
8532 "0sdyqwydmdnh7j6mn74vrywz35m416kqsbxbrqcnv5ak08y6xxwm"))))
8533 (build-system python-build-system)
8534 (native-inputs
8535 `(("intltool" ,intltool)
8536 ("glib:bin" ,glib "bin") ; for glib-compile-resources
8537 ("gettext" ,gettext-minimal)
8538 ("pkg-config" ,pkg-config)))
8539 (inputs
8540 `(("cairo" ,cairo)
8541 ("gobject-introspection" ,gobject-introspection)
96681d4b 8542 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
08be02be
AT
8543 ("python2-pycairo" ,python2-pycairo)
8544 ("python2-pygobject" ,python2-pygobject)
8545 ("python2-psutil" ,python2-psutil)
8546 ("vte" ,vte)))
8547 (arguments
96681d4b
TGR
8548 `(#:python ,python-2 ; Python 3 isn't supported
8549 #:imported-modules ((guix build glib-or-gtk-build-system)
8550 ,@%python-build-system-modules)
8551 #:modules ((guix build python-build-system)
8552 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
8553 (guix build utils))
08be02be
AT
8554 #:phases
8555 (modify-phases %standard-phases
8556 (add-after
8557 'install 'wrap-program
8558 (lambda* (#:key outputs #:allow-other-keys)
8559 (let ((prog (string-append (assoc-ref outputs "out")
8560 "/bin/terminator")))
8561 (wrap-program prog
8562 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
8563 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
96681d4b
TGR
8564 #t)))
8565 (add-after 'wrap-program 'glib-or-gtk-wrap
8566 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
08be02be
AT
8567 (home-page "https://gnometerminator.blogspot.com/")
8568 (synopsis "Store and run multiple GNOME terminals in one window")
8569 (description
8570 "Terminator allows you to run multiple GNOME terminals in a grid and
8571+tabs, and it supports drag and drop re-ordering of terminals.")
8572 (license license:gpl2)))
213315d4
JF
8573
8574(define-public libhandy
8575 (package
8576 (name "libhandy")
d41ee146 8577 (version "0.0.11")
213315d4
JF
8578 (source
8579 (origin
8580 (method git-fetch)
8581 (uri (git-reference
8582 (url "https://source.puri.sm/Librem5/libhandy")
8583 (commit (string-append "v" version))))
8584 (file-name (git-file-name name version))
8585 (sha256
d41ee146 8586 (base32 "0622zp5wrvn5bvgardijxd11y76g1i54fs32y03dw9nrar7i6vb0"))))
213315d4
JF
8587 (build-system meson-build-system)
8588 (arguments
8589 `(#:configure-flags
8590 '("-Dglade_catalog=disabled"
8591 "-Dgtk_doc=true")
8592 #:phases
8593 (modify-phases %standard-phases
213315d4
JF
8594 (add-before 'check 'pre-check
8595 (lambda _
8596 ;; Tests require a running X server.
8597 (system "Xvfb :1 &")
8598 (setenv "DISPLAY" ":1")
8599 #t)))))
8600 (inputs
8601 `(("gtk+" ,gtk+)))
8602 (native-inputs
8603 `(("glib:bin" ,glib "bin")
8604 ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
8605 ("vala" ,vala)
8606 ("gtk-doc" ,gtk-doc)
8607 ("pkg-config" ,pkg-config)
8608 ("gettext" ,gettext-minimal)
d41ee146
TGR
8609
8610 ;; Test suite dependencies.
ff337525 8611 ("xorg-server" ,xorg-server-for-tests)
d41ee146 8612 ("hicolor-icon-theme" ,hicolor-icon-theme)))
213315d4
JF
8613 (home-page "https://source.puri.sm/Librem5/libhandy")
8614 (synopsis "Library full of GTK+ widgets for mobile phones")
8615 (description "The aim of the handy library is to help with developing user
8616intefaces for mobile devices using GTK+.")
8617 (license license:lgpl2.1+)))
a830d14d
GL
8618
8619(define-public libgit2-glib
8620 (package
8621 (name "libgit2-glib")
8622 (version "0.28.0.1")
8623 (source (origin
8624 (method url-fetch)
8625 (uri (string-append "mirror://gnome/sources/" name "/"
8626 (version-major+minor version) "/"
8627 name "-" version ".tar.xz"))
8628 (sha256
8629 (base32
8630 "0a0g7aw66rfgnqr4z7fgbk5zzcjq66m4rp8v4val3a212941h0g7"))))
8631 (build-system meson-build-system)
8632 (native-inputs
8633 `(("glib:bin" ,glib "bin") ;; For glib-mkenums
8634 ("gobject-introspection" ,gobject-introspection)
8635 ("intltool" ,intltool)
8636 ("libssh2" ,libssh2)
8637 ("pkg-config" ,pkg-config)
8638 ("python-pygobject" ,python-pygobject)
8639 ("python-wrapper" ,python-wrapper)
8640 ("vala" ,vala)))
8641 (inputs
8642 `(("glib" ,glib)
8643 ("libgit2" ,libgit2)))
8644 (synopsis "GLib wrapper around the libgit2 Git access library")
8645 (description "libgit2-glib is a GLib wrapper library around the libgit2 Git
8646access library. It only implements the core plumbing functions, not really the
8647higher level porcelain stuff.")
8648 (home-page "https://wiki.gnome.org/Projects/Libgit2-glib")
8649 (license license:gpl2+)))
93beace0 8650
08db81c9
LP
8651(define-public gitg
8652 (package
8653 (name "gitg")
8654 (version "3.32.1")
8655 (source (origin
8656 (method url-fetch)
8657 (uri (string-append "mirror://gnome/sources/" name "/"
8658 (version-major+minor version) "/"
8659 name "-" version ".tar.xz"))
8660 (sha256
8661 (base32
8662 "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914"))))
8663 (build-system meson-build-system)
8664 (arguments
8665 `(#:glib-or-gtk? #t
8666 #:phases
8667 (modify-phases %standard-phases
8668 (add-after 'unpack 'disable-post-install-partially
8669 (lambda _
8670 (substitute* "meson_post_install.py"
8671 (("'python'") ; there are no python sources to compile
8672 (string-append "'" (which "true") "'"))
8673 (("gtk-update-icon-cache") (which "true")))
8674 #t))
8675 (add-after 'unpack 'fix-test-sources
8676 (lambda _
8677 (substitute* "tests/libgitg/test-commit.vala"
8678 (("/bin/bash") (which "bash")))
8679 #t))
8680 (add-after 'glib-or-gtk-wrap 'wrap-typelib
8681 (lambda* (#:key outputs #:allow-other-keys)
8682 (let ((prog (string-append (assoc-ref outputs "out")
8683 "/bin/gitg")))
8684 (wrap-program prog
8685 `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
8686 #t))))))
8687 (inputs
8688 `(("glib" ,glib)
8689 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
8690 ("gtk+" ,gtk+)
8691 ("gtkspell3" ,gtkspell3)
8692 ("gtksourceview" ,gtksourceview-3)
8693 ("json-glib" ,json-glib)
8694 ("libdazzle" ,libdazzle)
8695 ("libgee" ,libgee)
8696 ("libgit2" ,libgit2) ; propagated by libgit2-glib
8697 ("libgit2-glib" ,libgit2-glib)
8698 ("libpeas" ,libpeas)
8699 ("libsecret" ,libsecret)
8700 ("libsoup" ,libsoup)
8701 ("libxml2" ,libxml2)))
8702 (native-inputs
8703 `(("glib:bin" ,glib "bin")
8704 ("gtk+:bin" ,gtk+ "bin")
8705 ("gobject-introspection" ,gobject-introspection)
8706 ("intltool" ,intltool)
8707 ("pkg-config" ,pkg-config)
8708 ("vala" ,vala)))
8709 (synopsis "Graphical user interface for git")
8710 (description
8711 "gitg is a graphical user interface for git. It aims at being a small,
8712fast and convenient tool to visualize the history of git repositories.
8713Besides visualization, gitg also provides several utilities to manage your
8714repository and commit your work.")
8715 (home-page "https://wiki.gnome.org/Apps/Gitg")
8716 (license license:gpl2+)))
8717
93beace0
DW
8718(define-public gnome-mahjongg
8719 (package
8720 (name "gnome-mahjongg")
8721 (version "3.35.1")
8722 (source (origin
8723 (method git-fetch)
8724 (uri (git-reference
8725 (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
8726 (commit version)))
8727 (file-name (git-file-name name version))
8728 (sha256
8729 (base32
8730 "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
8731 (build-system meson-build-system)
8732 (arguments
8733 `(#:glib-or-gtk? #t))
8734 (native-inputs
8735 `(("appstream-glib" ,appstream-glib)
8736 ("gettext" ,gettext-minimal)
8737 ("glib:bin" ,glib "bin") ;; For glib-compile-resources
8738 ("gtk+" ,gtk+ "bin") ;; For gtk-update-icon-cache
8739 ("itstool" ,itstool)
8740 ("pkg-config" ,pkg-config)
8741 ("vala" ,vala)))
8742 (propagated-inputs
8743 `(("dconf" ,dconf)))
8744 (inputs
8745 `(("glib" ,glib)
8746 ("gtk+" ,gtk+)
8747 ("librsvg" ,librsvg)))
8748 (synopsis "Mahjongg tile-matching game")
8749 (description "GNOME Mahjongg is a game based on the classic Chinese
8750tile-matching game Mahjong. It features multiple board layouts, tile themes,
8751and a high score table.")
8752 (home-page "https://wiki.gnome.org/Apps/Mahjongg")
8753 (license license:gpl2+)))