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