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