gnu: util-linux: Move libraries to separate output.
[jackhill/guix/guix.git] / gnu / packages / freedesktop.scm
CommitLineData
0b0e11a9
AE
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
dac354fe 3;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
e76008db 4;;; Copyright © 2015, 2017 Andy Wingo <wingo@pobox.com>
aff0cce9 5;;; Copyright © 2015, 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org>
15dc8ed5 6;;; Copyright © 2015, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
177b4255 7;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
959a7d73 8;;; Copyright © 2016, 2017, 2019 Efraim Flashner <efraim@flashner.co.il>
3c8ba11a 9;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
d4040f6e 10;;; Copyright © 2017, 2018 Mark H Weaver <mhw@netris.org>
1f2e0601 11;;; Copyright © 2017, 2018, 2019 Marius Bakke <mbakke@fastmail.com>
a6037072 12;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
dcfa0acd 13;;; Copyright © 2017 Brendan Tildesley <mail@brendan.scot>
67c23790 14;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
4715f92e 15;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
4163f246 16;;; Copyright © 2018 Stefan Stefanović <stefanx2ovic@gmail.com>
748ca12f 17;;; Copyright © 2019 Reza Alizadeh Majd <r.majd@pantherx.org>
d29d04c9 18;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
2e4bb893 19;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
0b0e11a9
AE
20;;;
21;;; This file is part of GNU Guix.
22;;;
23;;; GNU Guix is free software; you can redistribute it and/or modify it
24;;; under the terms of the GNU General Public License as published by
25;;; the Free Software Foundation; either version 3 of the License, or (at
26;;; your option) any later version.
27;;;
28;;; GNU Guix is distributed in the hope that it will be useful, but
29;;; WITHOUT ANY WARRANTY; without even the implied warranty of
30;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31;;; GNU General Public License for more details.
32;;;
33;;; You should have received a copy of the GNU General Public License
34;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
35
36(define-module (gnu packages freedesktop)
366553e4 37 #:use-module ((guix licenses) #:prefix license:)
285c091e 38 #:use-module (guix utils)
0b0e11a9
AE
39 #:use-module (guix packages)
40 #:use-module (guix download)
366553e4 41 #:use-module (guix git-download)
1f2e0601 42 #:use-module (guix build-system cmake)
dac354fe 43 #:use-module (guix build-system gnu)
285c091e 44 #:use-module (guix build-system meson)
b32596ec 45 #:use-module (guix build-system perl)
e8444b26 46 #:use-module (guix build-system python)
d4040f6e 47 #:use-module (gnu packages)
73bb984e
EF
48 #:use-module (gnu packages acl)
49 #:use-module (gnu packages admin)
366553e4 50 #:use-module (gnu packages autotools)
2e4bb893 51 #:use-module (gnu packages base)
fe4e0b0a 52 #:use-module (gnu packages bash)
73bb984e 53 #:use-module (gnu packages boost)
ac257f12 54 #:use-module (gnu packages check)
73bb984e 55 #:use-module (gnu packages compression)
03800de1 56 #:use-module (gnu packages cryptsetup)
03800de1 57 #:use-module (gnu packages disk)
73bb984e
EF
58 #:use-module (gnu packages docbook)
59 #:use-module (gnu packages documentation)
2e4bb893 60 #:use-module (gnu packages gawk)
366553e4 61 #:use-module (gnu packages gettext)
23635b2e 62 #:use-module (gnu packages ghostscript)
24e051cb 63 #:use-module (gnu packages gl)
73bb984e
EF
64 #:use-module (gnu packages glib) ;intltool
65 #:use-module (gnu packages gnome)
366553e4 66 #:use-module (gnu packages gperf)
55ba649d 67 #:use-module (gnu packages graphviz)
e6823279 68 #:use-module (gnu packages gtk)
23635b2e 69 #:use-module (gnu packages image)
171ae35c 70 #:use-module (gnu packages libffi)
24e051cb 71 #:use-module (gnu packages libunwind)
dfb01bae 72 #:use-module (gnu packages libusb)
73bb984e
EF
73 #:use-module (gnu packages linux)
74 #:use-module (gnu packages m4)
aff0cce9 75 #:use-module (gnu packages nss)
825cebdb
BT
76 #:use-module (gnu packages perl)
77 #:use-module (gnu packages perl-check)
73bb984e 78 #:use-module (gnu packages pkg-config)
5d46c8b4 79 #:use-module (gnu packages polkit)
73bb984e 80 #:use-module (gnu packages python)
d29d04c9 81 #:use-module (gnu packages python-crypto)
44d10b1f 82 #:use-module (gnu packages python-xyz)
cd0322a3 83 #:use-module (gnu packages sqlite)
285c091e 84 #:use-module (gnu packages valgrind)
23635b2e 85 #:use-module (gnu packages video)
fa8a585e 86 #:use-module (gnu packages w3m)
825cebdb 87 #:use-module (gnu packages web)
73bb984e 88 #:use-module (gnu packages xdisorg)
5d46c8b4 89 #:use-module (gnu packages xml)
285c091e
MB
90 #:use-module (gnu packages xorg)
91 #:use-module (srfi srfi-1))
0b0e11a9
AE
92
93(define-public xdg-utils
94 (package
95 (name "xdg-utils")
4d0f463d 96 (version "1.1.3")
0b0e11a9
AE
97 (source
98 (origin
99 (method url-fetch)
100 (uri (string-append
5cc3096c 101 "https://portland.freedesktop.org/download/xdg-utils-"
fa8a585e 102 version ".tar.gz"))
0b0e11a9
AE
103 (sha256
104 (base32
4d0f463d 105 "1nai806smz3zcb2l5iny4x7li0fak0rzmjg6vlyhdqm8z25b166p"))))
0b0e11a9 106 (build-system gnu-build-system)
fa8a585e
MB
107 (native-inputs
108 `(("docbook-xsl" ,docbook-xsl)
109 ("docbook-xml" ,docbook-xml-4.1.2)
110 ("libxslt" ,libxslt)
111 ("w3m" ,w3m)
112 ("xmlto" ,xmlto)))
2e4bb893
JK
113 (inputs
114 `(("awk" ,gawk)
115 ("coreutils" ,coreutils)
116 ("grep" ,grep)
117 ("inetutils" ,inetutils) ; xdg-screensaver uses `hostname'
118 ("perl-file-mimeinfo" ,perl-file-mimeinfo) ; for mimeopen fallback
119 ("sed" ,sed)
04c35737 120 ("xprop" ,xprop) ; for Xfce detecting
b3546174 121 ("xset" ,xset))) ; for xdg-screensaver
0b0e11a9 122 (arguments
fa8a585e 123 `(#:tests? #f ; no check target
2e4bb893
JK
124 #:modules ((srfi srfi-26)
125 ,@%gnu-build-system-modules)
fa8a585e
MB
126 #:phases
127 (modify-phases %standard-phases
128 (add-after 'unpack 'patch-hardcoded-paths
129 (lambda _
130 (substitute* "scripts/xdg-mime.in"
131 (("/usr/bin/file") (which "file")))
132 (substitute* "scripts/xdg-open.in"
133 (("/usr/bin/printf") (which "printf")))
134 #t))
135 (add-before 'build 'locate-catalog-files
136 (lambda* (#:key inputs #:allow-other-keys)
137 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
138 "/xml/dtd/docbook"))
139 (xsldoc (string-append (assoc-ref inputs "docbook-xsl")
140 "/xml/xsl/docbook-xsl-"
141 ,(package-version docbook-xsl))))
142 (for-each (lambda (file)
143 (substitute* file
144 (("http://.*/docbookx\\.dtd")
145 (string-append xmldoc "/docbookx.dtd"))))
146 (find-files "scripts/desc" "\\.xml$"))
147 (substitute* "scripts/Makefile"
148 ;; Apparently `xmlto' does not bother to looks up the stylesheets
149 ;; specified in the XML, unlike the above substitition. Instead it
150 ;; uses a hard-coded URL. Work around it here, but if this is
151 ;; common perhaps we should hardcode this path in xmlto itself.
152 (("\\$\\(XMLTO\\) man")
153 (string-append "$(XMLTO) -x " xsldoc
154 "/manpages/docbook.xsl man")))
155 (setenv "STYLESHEET"
156 (string-append xsldoc "/html/docbook.xsl"))
2e4bb893
JK
157 #t)))
158 (add-after 'install 'wrap-executables
159 (lambda* (#:key inputs outputs #:allow-other-keys)
160 (let ((out (assoc-ref outputs "out")))
161 (with-directory-excursion (string-append out "/bin")
162 (let ((path-ext
163 (map (cute string-append <> "/bin")
164 (cons out
165 (map (cute assoc-ref inputs <>)
166 '("awk" "coreutils" "grep" "inetutils"
167 "perl-file-mimeinfo" "sed" "xprop"
168 "xset"))))))
169 (for-each (cute wrap-program <>
170 `("PATH" ":" prefix ,path-ext))
171 (find-files "."))))
fa8a585e
MB
172 #t))))))
173 (home-page "https://www.freedesktop.org/wiki/Software/xdg-utils/")
0b0e11a9
AE
174 (synopsis "Freedesktop.org scripts for desktop integration")
175 (description "The xdg-utils package is a set of simple scripts that
176provide basic desktop integration functions in the framework of the
177freedesktop.org project.")
366553e4 178 (license license:expat)))
dac354fe
SB
179
180(define-public libinput
181 (package
182 (name "libinput")
70255a1a 183 (version "1.14.3")
dac354fe
SB
184 (source (origin
185 (method url-fetch)
521b1d88 186 (uri (string-append "https://freedesktop.org/software/libinput/"
b4ed7c3e 187 "libinput-" version ".tar.xz"))
dac354fe
SB
188 (sha256
189 (base32
70255a1a 190 "1dy58j8dvr7ri34bx0lppmh5638m956azgwk501w373hi42kmsqg"))))
285c091e
MB
191 (build-system meson-build-system)
192 (arguments
794c773d
MB
193 `(#:configure-flags '("-Ddocumentation=false")
194
195 ;; XXX: Using 'debug' or 'debugoptimized' pulls in an additional test that
196 ;; hangs, and the comments around it suggests that we should be using this
197 ;; Meson target anyway.
198 #:build-type "release"))
dac354fe 199 (native-inputs
285c091e 200 `(("check" ,check)
411c27e2 201 ("pkg-config" ,pkg-config)))
c6deabf9
MB
202 (inputs
203 `(("cairo" ,cairo)
204 ("glib" ,glib)
205 ("gtk+" ,gtk+)
7ca37da8 206 ("libevdev" ,libevdev)
285c091e
MB
207 ("libwacom" ,libwacom)
208 ("mtdev" ,mtdev)))
0dbb6c2f
MB
209 (propagated-inputs
210 `(;; libinput.h requires <libudev.h>, so propagate it.
211 ("udev" ,eudev)))
6aabc87d 212 (home-page "https://www.freedesktop.org/wiki/Software/libinput/")
dac354fe
SB
213 (synopsis "Input devices handling library")
214 (description
215 "Libinput is a library to handle input devices for display servers and
216other applications that need to directly deal with input devices.")
366553e4
RW
217 (license license:x11)))
218
c38fb02e
DC
219(define-public libinput-minimal
220 (package (inherit libinput)
221 (name "libinput-minimal")
c6deabf9
MB
222 (inputs
223 (fold alist-delete (package-inputs libinput)
224 '("cairo" "glib" "gtk+" "libwacom")))
c38fb02e 225 (arguments
285c091e
MB
226 (substitute-keyword-arguments (package-arguments libinput)
227 ((#:configure-flags flags ''())
228 `(cons* "-Dlibwacom=false"
229 "-Ddebug-gui=false" ;requires gtk+@3
230 ,flags))))))
c38fb02e 231
60a5617b
AK
232(define-public libxdg-basedir
233 (package
234 (name "libxdg-basedir")
235 (version "1.2.0")
236 (source (origin
959a7d73
EF
237 (method git-fetch)
238 (uri (git-reference
239 (url "https://github.com/devnev/libxdg-basedir")
240 (commit (string-append name "-" version))))
241 (file-name (git-file-name name version))
60a5617b
AK
242 (sha256
243 (base32
959a7d73 244 "12yz53ny5bi2dii3zwcr6b9ay0yy1g1xv13jg097k7gjligcq11m"))))
60a5617b
AK
245 (build-system gnu-build-system)
246 (arguments
247 '(#:phases
248 (modify-phases %standard-phases
15dc8ed5 249 (add-after 'unpack 'patch-autogen
60a5617b
AK
250 (lambda _
251 ;; Run 'configure' in its own phase, not now.
252 (substitute* "autogen.sh"
253 (("^.*\\./configure.*") ""))
15dc8ed5 254 #t)))))
60a5617b
AK
255 (native-inputs
256 `(("autoconf" ,autoconf)
257 ("automake" ,automake)
258 ("libtool" ,libtool)))
259 (home-page "https://github.com/devnev/libxdg-basedir")
260 (synopsis "Implementation of the XDG Base Directory specification")
261 (description
262 "libxdg-basedir is a C library providing some functions to use with
263the freedesktop.org XDG Base Directory specification.")
264 (license license:expat)))
265
366553e4 266(define-public elogind
5c91962a
AW
267 (package
268 (name "elogind")
7809ddc2 269 (version "241.4")
5c91962a 270 (source (origin
1f9b1d3d
SS
271 (method git-fetch)
272 (uri (git-reference
273 (url "https://github.com/elogind/elogind")
274 (commit (string-append "v" version))))
275 (file-name (git-file-name name version))
5c91962a
AW
276 (sha256
277 (base32
7809ddc2 278 "13nd0chackqclgvw43910k4pkw2q773dh6wq9s5f3d97ibnik48k"))))
4163f246 279 (build-system meson-build-system)
5c91962a 280 (arguments
4163f246
SS
281 `(#:configure-flags
282 (let* ((out (assoc-ref %outputs "out"))
283 (sysconf (string-append out "/etc"))
284 (libexec (string-append out "/libexec/elogind"))
285 (dbuspolicy (string-append out "/etc/dbus-1/system.d"))
286 (shepherd (assoc-ref %build-inputs "shepherd"))
287 (halt-path (string-append shepherd "/sbin/halt"))
288 (kexec-path "") ;not available in Guix yet
289 (poweroff-path (string-append shepherd "/sbin/shutdown"))
290 (reboot-path (string-append shepherd "/sbin/reboot")))
291 (list
292 (string-append "-Drootprefix=" out)
293 (string-append "-Dsysconfdir=" sysconf)
294 (string-append "-Drootlibexecdir=" libexec)
295 (string-append "-Ddbuspolicydir=" dbuspolicy)
296 (string-append "-Dc_link_args=-Wl,-rpath=" libexec)
297 (string-append "-Dcpp_link_args=-Wl,-rpath=" libexec)
298 (string-append "-Dhalt-path=" halt-path)
299 (string-append "-Dkexec-path=" kexec-path)
300 (string-append "-Dpoweroff-path=" poweroff-path)
301 (string-append "-Dreboot-path=" reboot-path)
302 "-Dcgroup-controller=elogind"
303 ;; Disable some tests.
304 "-Dtests=false"
305 "-Dslow-tests=false"))
fa67d565
RW
306 #:phases
307 (modify-phases %standard-phases
4163f246 308 (add-after 'unpack 'fix-pkttyagent-path
fa67d565 309 (lambda _
4163f246
SS
310 (substitute* "meson.build"
311 (("join_paths\\(bindir, 'pkttyagent'\\)")
312 "'\"/run/current-system/profile/bin/pkttyagent\"'"))
3f54fd1e 313 #t))
4163f246 314 (add-after 'unpack 'change-pid-file-path
f8446df6 315 (lambda _
4163f246
SS
316 (substitute* "src/login/elogind.c"
317 (("\"/run/elogind.pid\"") "\"/run/systemd/elogind.pid\""))
f8446df6 318 #t)))))
5c91962a 319 (native-inputs
4163f246
SS
320 `(("docbook-xml" ,docbook-xml)
321 ("docbook-xml-4.2" ,docbook-xml-4.2)
5c91962a 322 ("docbook-xsl" ,docbook-xsl)
4163f246
SS
323 ("gettext" ,gettext-minimal)
324 ("gperf" ,gperf)
5c91962a 325 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
4163f246 326 ("m4" ,m4)
b3546174 327 ("pkg-config" ,pkg-config)
4163f246
SS
328 ("python" ,python)
329 ("xsltproc" ,libxslt)))
5c91962a
AW
330 (inputs
331 `(("linux-pam" ,linux-pam)
5c91962a 332 ("libcap" ,libcap)
d312a832 333 ("shepherd" ,shepherd) ;for 'halt' and 'reboot', invoked
1d19bc11 334 ;when pressing the power button
5c91962a 335 ("dbus" ,dbus)
95d7d0c5
CM
336 ("eudev" ,eudev)
337 ("acl" ,acl))) ;to add individual users to ACLs on /dev nodes
fa67d565 338 (home-page "https://github.com/elogind/elogind")
5c91962a
AW
339 (synopsis "User, seat, and session management service")
340 (description "Elogind is the systemd project's \"logind\" service,
366553e4
RW
341extracted out as a separate project. Elogind integrates with PAM to provide
342the org.freedesktop.login1 interface over the system bus, allowing other parts
343of a the system to know what users are logged in, and where.")
5c91962a 344 (license license:lgpl2.1+)))
e8444b26 345
f63861b5
LC
346(define-public localed
347 ;; XXX: This package is extracted from systemd but we retain so little of it
348 ;; that it would make more sense to maintain a fork of the bits we need.
349 (package
350 (name "localed")
351 (version "241")
352 (source (origin
353 (method git-fetch)
354 (uri (git-reference
355 (url "https://github.com/systemd/systemd")
356 (commit (string-append "v" version))))
357 (sha256
358 (base32
359 "0sy91flzbhpq58k7v0294pa2gxpr0bk27rcnxlbhk2fi6nc51d28"))
360 (file-name (git-file-name name version))
361 (modules '((guix build utils)))
362 (snippet
363 '(begin
364 ;; Connect to the right location for our D-Bus daemon.
365 (substitute* '("src/basic/def.h"
366 "src/libsystemd/sd-bus/sd-bus.c"
367 "src/stdio-bridge/stdio-bridge.c")
368 (("/run/dbus/system_bus_socket")
369 "/var/run/dbus/system_bus_socket"))
370
371 ;; Don't insist on having systemd as PID 1 (otherwise
372 ;; 'localectl' would exit without doing anything.)
373 (substitute* "src/shared/bus-util.c"
374 (("sd_booted\\(\\)")
375 "(1)"))
376 #t))
377 (patches (search-patches "localed-xorg-keyboard.patch"))))
378 (build-system meson-build-system)
379 (arguments
380 ;; Try to build as little as possible (list of components taken from the
381 ;; top-level 'meson.build' file.)
382 (let ((components '("utmp"
383 "hibernate"
384 "environment-d"
385 "binfmt"
386 "coredump"
387 "resolve"
388 "logind"
389 "hostnamed"
390 "localed"
391 "machined"
392 "portabled"
393 "networkd"
394 "timedated"
395 "timesyncd"
396 "firstboot"
397 "randomseed"
398 "backlight"
399 "vconsole"
400 "quotacheck"
401 "sysusers"
402 "tmpfiles"
403 "hwdb"
404 "rfkill"
405 "ldconfig"
406 "efi"
407 "tpm"
408 "ima"
409 "smack"
410 "gshadow"
411 "idn"
412 "nss-myhostname"
413 "nss-systemd")))
414 `(#:configure-flags ',(map (lambda (component)
415 (string-append "-D" component "=false"))
416 (delete "localed" components))
417
418 ;; It doesn't make sense to test all of systemd.
419 #:tests? #f
420
421 #:phases (modify-phases %standard-phases
422 (add-after 'unpack 'set-xkeyboard-config-file-name
423 (lambda* (#:key inputs #:allow-other-keys)
424 ;; Set the file name to xkeyboard-config and kbd.
425 ;; This is used by 'localectl list-x11-keymap-layouts'
426 ;; and similar functions.
427 (let ((xkb (assoc-ref inputs "xkeyboard-config"))
428 (kbd (assoc-ref inputs "kbd")))
429 (substitute* "src/locale/localectl.c"
430 (("/usr/share/X11/xkb/rules")
431 (string-append xkb "/share/X11/xkb/rules")))
432 (substitute* "src/basic/def.h"
433 (("/usr/share/keymaps")
434 (string-append kbd "/share/keymaps")))
435 #t)))
436 (replace 'install
437 (lambda* (#:key outputs #:allow-other-keys)
438 ;; Install 'localed', the D-Bus and polkit files, and
439 ;; 'localectl'.
440 (let* ((out (assoc-ref outputs "out"))
441 (libexec (string-append out "/libexec/localed"))
442 (bin (string-append out "/bin"))
443 (lib (string-append out "/lib"))
444 (dbus (string-append out
445 "/share/dbus-1/system-services"))
446 (conf (string-append out
447 "/etc/dbus-1/system.d/"))
448 (polkit (string-append out
449 "/share/polkit-1/actions"))
450 (data (string-append out "/share/systemd")))
451 (define (source-file regexp)
452 (car (find-files ".." regexp)))
453
454 (mkdir-p libexec)
455 (copy-file "systemd-localed"
456 (string-append libexec "/localed"))
457 (install-file "localectl" bin)
458
459 (let ((service-file (source-file
460 "\\.locale1\\.service$")))
461 (substitute* service-file
462 (("^Exec=.*$")
463 (string-append "Exec=" libexec "/localed\n")))
464 (install-file service-file dbus))
465 (install-file (source-file "\\.locale1\\.policy$")
466 polkit)
467 (install-file (source-file "\\.locale1\\.conf$")
468 conf)
469 (for-each (lambda (file)
470 (install-file file lib))
471 (find-files "src/shared"
472 "libsystemd-shared.*\\.so"))
473
474 (for-each (lambda (map)
475 (install-file map data))
476 (find-files ".." "^(kbd-model-map|language-fallback-map)$"))
477 #t)))))))
478 (native-inputs (package-native-inputs elogind))
bb93042c 479 (inputs `(("libmount" ,util-linux "lib")
f63861b5
LC
480 ("xkeyboard-config" ,xkeyboard-config)
481 ("kbd" ,kbd)
482 ,@(package-inputs elogind)))
483 (home-page "https://www.freedesktop.org/wiki/Software/systemd/localed/")
484 (synopsis "Control the system locale and keyboard layout")
485 (description
486 "Localed is a tiny daemon that can be used to control the system locale
487and keyboard mapping from user programs. It is used among other things by the
488GNOME Shell. The @command{localectl} command-line tool allows you to interact
489with localed. This package is extracted from the broader systemd package.")
490 (license license:lgpl2.1+)))
491
fe4e0b0a
CB
492(define-public packagekit
493 (package
494 (name "packagekit")
79b8a2af 495 (version "1.1.12")
fe4e0b0a
CB
496 (source (origin
497 (method url-fetch)
498 (uri (string-append
499 "https://www.freedesktop.org/software/"
500 "PackageKit/releases/"
501 "PackageKit-" version ".tar.xz"))
502 (sha256
503 (base32
79b8a2af 504 "00css16dv3asaxrklvyxy9dyjzhw82wmfrqxqpca9w2xryz58i8z"))))
fe4e0b0a
CB
505 (build-system gnu-build-system)
506 (arguments
507 `(#:tests? #f
508 #:make-flags (list (string-append "BASH_COMPLETIONS_DIR="
509 %output "/etc/bash_completion.d"))
510 #:configure-flags
511 '("--disable-systemd")))
512 (native-inputs
513 `(("intltool" ,intltool)
514 ("pkg-config" ,pkg-config)
515 ("python" ,python-wrapper)
516 ("glib:bin" ,glib "bin")))
517 (inputs
518 `(("glib" ,glib)
c695fb76 519 ("bash-completion" ,bash-completion)
fe4e0b0a
CB
520 ("polkit" ,polkit)))
521 (propagated-inputs
522 `(("sqlite" ,sqlite)))
523 (home-page "https://www.freedesktop.org/software/PackageKit/")
524 (synopsis "API for package management, through D-Bus")
525 (description
526 "PackageKit provides a way of performing package management tasks,
527e.g. updating, removing and installing software. Through supporting many
528backends, PackageKit can perform these tasks using the appropriate package
529manager for the current system.")
530 (license license:gpl2+)))
531
e8444b26
RW
532(define-public python-pyxdg
533 (package
534 (name "python-pyxdg")
535 (version "0.25")
536 (source
537 (origin
538 (method url-fetch)
8f60e533 539 (uri (pypi-uri "pyxdg" version))
e8444b26
RW
540 (sha256
541 (base32
542 "179767h8m634ydlm4v8lnz01ba42gckfp684id764zaip7h87s41"))))
543 (build-system python-build-system)
544 (arguments
545 '(#:phases
dc1d3cde
KK
546 (modify-phases %standard-phases
547 (replace 'check
548 (lambda* (#:key inputs #:allow-other-keys)
549 (setenv "XDG_DATA_DIRS"
550 (string-append (assoc-ref inputs "shared-mime-info")
551 "/share/"))
552 (substitute* "test/test-icon.py"
553 (("/usr/share/icons/hicolor/index.theme")
554 (string-append (assoc-ref inputs "hicolor-icon-theme")
ffcff272
MB
555 "/share/icons/hicolor/index.theme"))
556 ;; FIXME: This test fails because the theme contains the unknown
557 ;; key "Scale".
558 (("theme.validate\\(\\)") "#"))
e8444b26 559
dc1d3cde
KK
560 ;; One test fails with:
561 ;; AssertionError: 'x-apple-ios-png' != 'png'
562 (substitute* "test/test-mime.py"
563 (("self.check_mimetype\\(imgpng, 'image', 'png'\\)") "#"))
10ee03c1 564 (invoke "nosetests" "-v"))))))
e8444b26 565 (native-inputs
10ee03c1
TGR
566 ;; For tests.
567 `(("shared-mime-info" ,shared-mime-info)
568 ("hicolor-icon-theme" ,hicolor-icon-theme)
f3b98f4f 569 ("python-nose" ,python-nose)))
57e7d748 570 (home-page "https://www.freedesktop.org/wiki/Software/pyxdg")
e8444b26
RW
571 (synopsis "Implementations of freedesktop.org standards in Python")
572 (description
573 "PyXDG is a collection of implementations of freedesktop.org standards in
e881752c 574Python.")
e8444b26
RW
575 (license license:lgpl2.0)))
576
577(define-public python2-pyxdg
578 (package-with-python2 python-pyxdg))
6178d947
SB
579
580(define-public wayland
581 (package
582 (name "wayland")
a6037072 583 (version "1.17.0")
6178d947
SB
584 (source (origin
585 (method url-fetch)
5cc3096c 586 (uri (string-append "https://wayland.freedesktop.org/releases/"
6178d947
SB
587 name "-" version ".tar.xz"))
588 (sha256
589 (base32
a6037072 590 "194ibzwpdcn6fvk4xngr4bf5axpciwg2bj82fdvz88kfmjw13akj"))))
6178d947 591 (build-system gnu-build-system)
28a96f2a 592 (arguments
62a91d2e 593 `(#:parallel-tests? #f))
6178d947
SB
594 (native-inputs
595 `(("doxygen" ,doxygen)
55ba649d 596 ("graphviz" ,graphviz)
6178d947
SB
597 ("pkg-config" ,pkg-config)
598 ("xmlto" ,xmlto)
599 ("xsltproc" ,libxslt)))
600 (inputs
601 `(("docbook-xml" ,docbook-xml)
602 ("docbook-xsl" ,docbook-xsl)
603 ("expat" ,expat)
604 ("libffi" ,libffi)
605 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
9012e118 606 (home-page "https://wayland.freedesktop.org/")
6178d947
SB
607 (synopsis "Display server protocol")
608 (description
609 "Wayland is a protocol for a compositor to talk to its clients as well as
610a C library implementation of that protocol. The compositor can be a standalone
611display server running on Linux kernel modesetting and evdev input devices, an X
612application, or a wayland client itself. The clients can be traditional
613applications, X servers (rootless or fullscreen) or other display servers.")
614 (license license:x11)))
177b4255 615
eca4c011
DC
616(define-public wayland-protocols
617 (package
618 (name "wayland-protocols")
5ceb1a3d 619 (version "1.18")
eca4c011
DC
620 (source (origin
621 (method url-fetch)
622 (uri (string-append
623 "https://wayland.freedesktop.org/releases/"
624 "wayland-protocols-" version ".tar.xz"))
625 (sha256
626 (base32
5ceb1a3d 627 "1cvl93h83ymbfhb567jv5gzyq08181w7c46rsw4xqqqpcvkvfwrx"))))
eca4c011
DC
628 (build-system gnu-build-system)
629 (inputs
630 `(("wayland" ,wayland)))
631 (native-inputs
632 `(("pkg-config" ,pkg-config)))
633 (synopsis "Wayland protocols")
634 (description "This package contains XML definitions of the Wayland protocols.")
635 (home-page "https://wayland.freedesktop.org")
636 (license license:expat)))
637
1f2e0601
MB
638(define-public waylandpp
639 (package
640 (name "waylandpp")
641 (version "0.2.5")
642 (home-page "https://github.com/NilsBrause/waylandpp")
643 (source (origin
644 (method git-fetch)
645 (uri (git-reference (url home-page) (commit version)))
f1d4d79f 646 (file-name (git-file-name name version))
1f2e0601
MB
647 (sha256
648 (base32
649 "16h57hzd688664qcyznzhjp3hxipdkzgv46x82yhkww24av8b55n"))))
650 (build-system cmake-build-system)
651 (arguments
652 `(#:tests? #f)) ;no tests
653 (native-inputs
654 `(("pkg-config" ,pkg-config)))
655 (inputs
656 `(("mesa" ,mesa)
657 ("pugixml" ,pugixml)))
658 (propagated-inputs
659 `(;; In Requires of the .pc files.
660 ("wayland" ,wayland)))
661 (synopsis "Wayland C++ bindings")
662 (description
663 "This package provides C++ bindings for the Wayland display protocol.")
664 (license license:bsd-2)))
665
24e051cb
DC
666(define-public weston
667 (package
668 (name "weston")
38c8437e 669 (version "6.0.1")
24e051cb
DC
670 (source (origin
671 (method url-fetch)
672 (uri (string-append
673 "https://wayland.freedesktop.org/releases/"
674 "weston-" version ".tar.xz"))
675 (sha256
676 (base32
38c8437e 677 "1d2m658ll8x7prlsfk71qgw89c7dz6y7d6nndfxwl49fmrd6sbxz"))))
23635b2e 678 (build-system meson-build-system)
24e051cb
DC
679 (native-inputs
680 `(("pkg-config" ,pkg-config)
681 ("xorg-server" ,xorg-server)))
682 (inputs
683 `(("cairo" ,cairo-xcb)
23635b2e 684 ("colord" ,colord)
24e051cb
DC
685 ("dbus" ,dbus)
686 ("elogind" ,elogind)
23635b2e
RH
687 ("lcms" ,lcms)
688 ("libevdev" ,libevdev)
24e051cb 689 ("libinput" ,libinput-minimal)
23635b2e 690 ("libjpeg" ,libjpeg)
24e051cb 691 ("libunwind" ,libunwind)
23635b2e
RH
692 ("libva" ,libva)
693 ("libwebp" ,libwebp)
24e051cb
DC
694 ("libxcursor" ,libxcursor)
695 ("libxkbcommon" ,libxkbcommon)
23635b2e 696 ("libxml2" ,libxml2)
24e051cb
DC
697 ("mesa" ,mesa)
698 ("mtdev" ,mtdev)
699 ("linux-pam" ,linux-pam)
23635b2e 700 ("pango" ,pango)
24e051cb
DC
701 ("wayland" ,wayland)
702 ("wayland-protocols" ,wayland-protocols)
703 ("xorg-server-xwayland" ,xorg-server-xwayland)))
704 (arguments
705 `(#:configure-flags
23635b2e
RH
706 (list "-Dbackend-rdp=false" ; TODO: Enable.
707 "-Dremoting=false" ; TODO: Enable.
708 "-Dsimple-dmabuf-drm=auto"
709 "-Dsystemd=false"
710 (string-append "-Dxwayland-path="
24e051cb
DC
711 (assoc-ref %build-inputs "xorg-server-xwayland")
712 "/bin/Xwayland"))
26bcd2a2 713 #:parallel-tests? #f ; Parallel tests cause failures.
24e051cb
DC
714 #:phases
715 (modify-phases %standard-phases
716 (add-before 'configure 'use-elogind
717 (lambda _
718 ;; Use elogind instead of systemd
23635b2e
RH
719 (substitute* "libweston/meson.build"
720 (("libsystemd-login") "libelogind"))
b23992af
MB
721 (substitute* '("libweston/launcher-logind.c"
722 "libweston/weston-launch.c")
24e051cb 723 (("#include <systemd/sd-login.h>")
b23992af
MB
724 "#include <elogind/sd-login.h>"))
725 #t))
24e051cb
DC
726 (add-after 'configure 'patch-confdefs.h
727 (lambda _
23635b2e
RH
728 (system "echo \"#define HAVE_SYSTEMD_LOGIN_209 1\" >> confdefs.h")
729 #t))
24e051cb
DC
730 (add-before 'check 'setup
731 (lambda _
732 (setenv "HOME" (getcwd))
733 (setenv "XDG_RUNTIME_DIR" (getcwd))
734 #t))
735 (add-before 'check 'start-xorg-server
736 (lambda* (#:key inputs #:allow-other-keys)
737 ;; The test suite requires a running X server.
738 (system (string-append (assoc-ref inputs "xorg-server")
739 "/bin/Xvfb :1 &"))
740 (setenv "DISPLAY" ":1")
741 #t)))))
742 (home-page "https://wayland.freedesktop.org")
743 (synopsis "Reference implementation of a Wayland compositor")
744 (description "Weston is the reference implementation of a Wayland
745compositor, and a useful compositor in its own right.
746
747A Wayland compositor allows applications to render to a shared offscreen
748buffer using OpenGL ES. The compositor then culls the hidden parts and
749composes the final output. A Wayland compositor is essentially a
750multiplexer to the KMS/DRM Linux kernel devices.")
751 (license license:expat)))
752
177b4255
DH
753(define-public exempi
754 (package
755 (name "exempi")
df3db975 756 (version "2.5.1")
177b4255
DH
757 (source (origin
758 (method url-fetch)
759 (uri (string-append
5cc3096c 760 "https://libopenraw.freedesktop.org/download/"
177b4255
DH
761 name "-" version ".tar.bz2"))
762 (sha256
763 (base32
df3db975 764 "1j4vx054l1c2cggw4aka4iw48jkcf68qk5y064pbqw1k3ddks2qh"))))
177b4255
DH
765 (build-system gnu-build-system)
766 (arguments
767 `(#:configure-flags (list (string-append "--with-boost="
768 (assoc-ref %build-inputs "boost")))))
769 (native-inputs
770 `(("boost" ,boost))) ; tests
771 (inputs
772 `(("expat" ,expat)
773 ("zlib" ,zlib)))
c96ec771 774 (home-page "https://libopenraw.freedesktop.org/exempi/")
177b4255
DH
775 (synopsis "XMP metadata handling library")
776 (description "Exempi is an implementation of the Extensible Metadata
0b042591
TGR
777Platform (@dfn{XMP}), which enables embedding metadata in PDF and image
778formats.")
177b4255 779 (license license:bsd-3)))
cfbbff31
SB
780
781(define-public libatasmart
782 (package
783 (name "libatasmart")
784 (version "0.19")
785 (source (origin
786 (method url-fetch)
787 (uri (string-append "http://0pointer.de/public/"
788 name "-" version ".tar.xz"))
789 (sha256
790 (base32
791 "138gvgdwk6h4ljrjsr09pxk1nrki4b155hqdzyr8mlk3bwsfmw31"))))
792 (build-system gnu-build-system)
793 (native-inputs
794 `(("pkg-config" ,pkg-config)))
795 (inputs
796 `(("udev" ,eudev)))
797 (home-page "http://0pointer.de/blog/projects/being-smart.html")
798 (synopsis "ATA S.M.A.R.T. reading and parsing library")
799 (description
800 "This library supports a subset of the ATA S.M.A.R.T. (Self-Monitoring,
801Analysis and Reporting Technology) functionality.")
802 (license license:lgpl2.1+)))
171ae35c
SB
803
804(define-public udisks
805 (package
806 (name "udisks")
92eb7aff 807 (version "2.7.7")
171ae35c
SB
808 (source (origin
809 (method url-fetch)
92eb7aff
PN
810 (uri (string-append
811 "https://github.com/storaged-project/udisks/releases/download/udisks-"
812 version "/udisks-" version ".tar.bz2"))
171ae35c
SB
813 (sha256
814 (base32
92eb7aff 815 "1dnlxqgy9v0mjdknv3b1s64szdykyk3hk0rxj3chwhpd415lrwgs"))))
171ae35c
SB
816 (build-system gnu-build-system)
817 (native-inputs
aef5055f
MC
818 `(("docbook-xml" ,docbook-xml-4.3) ; to build the manpages
819 ("docbook-xsl" ,docbook-xsl)
92eb7aff
PN
820 ("glib:bin" ,glib "bin") ; for glib-mkenums
821 ("gnome-common" ,gnome-common) ; TODO: Why is this needed?
171ae35c 822 ("gobject-introspection" ,gobject-introspection)
92eb7aff 823 ("gtk-doc" ,gtk-doc)
171ae35c
SB
824 ("intltool" ,intltool)
825 ("pkg-config" ,pkg-config)
826 ("xsltproc" ,libxslt)))
827 (propagated-inputs
828 `(("glib" ,glib))) ; required by udisks2.pc
829 (inputs
830 `(("acl" ,acl)
92eb7aff 831 ("cryptsetup" ,cryptsetup)
171ae35c 832 ("libatasmart" ,libatasmart)
92eb7aff 833 ("libblockdev" ,libblockdev)
171ae35c 834 ("libgudev" ,libgudev)
5905114a 835 ("polkit" ,polkit)
92eb7aff 836 ("util-linux" ,util-linux)))
daa3b04c
LC
837 (outputs '("out"
838 "doc")) ;5 MiB of gtk-doc HTML
171ae35c
SB
839 (arguments
840 `(#:tests? #f ; requiring system message dbus
c0351459 841 #:disallowed-references ("doc") ;enforce separation of "doc"
171ae35c 842 #:configure-flags
aef5055f 843 (list "--enable-man"
92eb7aff
PN
844 "--enable-gtk-doc" ; Without this the HTML doc does not seem to build automatically.
845 "--enable-available-modules" ; Such as lvm2, btrfs, etc.
171ae35c 846 "--localstatedir=/var"
35263cd8 847 "--enable-fhs-media" ;mount devices in /media, not /run/media
daa3b04c
LC
848 (string-append "--with-html-dir="
849 (assoc-ref %outputs "doc")
850 "/share/doc/udisks/html")
171ae35c 851 (string-append "--with-udevdir=" %output "/lib/udev"))
aef5055f
MC
852 #:make-flags
853 (let* ((docbook-xsl-name-version ,(string-append
854 (package-name docbook-xsl) "-"
855 (package-version docbook-xsl)))
856 (docbook-xsl-catalog-file (string-append
857 (assoc-ref %build-inputs "docbook-xsl")
858 "/xml/xsl/"
859 docbook-xsl-name-version
860 "/catalog.xml"))
861 (docbook-xml-catalog-file (string-append
862 (assoc-ref %build-inputs "docbook-xml")
863 "/xml/dtd/docbook/catalog.xml")))
864 ;; Reference the catalog files required to build the manpages.
865 (list (string-append "XML_CATALOG_FILES=" docbook-xsl-catalog-file " "
866 docbook-xml-catalog-file)))
171ae35c
SB
867 #:phases
868 (modify-phases %standard-phases
869 (add-before
870 'configure 'fix-girdir
871 (lambda _
872 ;; Install introspection data to its own output.
873 (substitute* "udisks/Makefile.in"
874 (("girdir = .*")
875 "girdir = $(datadir)/gir-1.0\n")
876 (("typelibsdir = .*")
5905114a 877 "typelibsdir = $(libdir)/girepository-1.0\n"))))
03800de1 878 (add-after 'install 'wrap-udisksd
5905114a
LC
879 (lambda* (#:key outputs inputs #:allow-other-keys)
880 ;; Tell 'udisksd' where to find the 'mount' command.
881 (let ((out (assoc-ref outputs "out"))
03800de1
CB
882 (utils (assoc-ref inputs "util-linux"))
883 (cryptsetup (assoc-ref inputs "cryptsetup"))
884 (parted (assoc-ref inputs "parted")))
5905114a
LC
885 (wrap-program (string-append out "/libexec/udisks2/udisksd")
886 `("PATH" ":" prefix
887 (,(string-append utils "/bin") ;for 'mount'
03800de1
CB
888 ;; cryptsetup is required for setting encrypted
889 ;; partitions, e.g. in gnome-disks
890 ,(string-append cryptsetup "/sbin")
5905114a
LC
891 "/run/current-system/profile/bin"
892 "/run/current-system/profile/sbin")))
893 #t))))))
988e1dca 894 (home-page "https://www.freedesktop.org/wiki/Software/udisks/")
171ae35c
SB
895 (synopsis "Disk manager service")
896 (description
897 "UDisks provides interfaces to enumerate and perform operations on disks
898and storage devices. Any application (including unprivileged ones) can access
899the udisksd(8) daemon via the name org.freedesktop.UDisks2 on the system
900message bus.")
901 ;; The dynamic library are under LGPLv2+, others are GPLv2+.
902 (license (list license:gpl2+ license:lgpl2.0+))))
83a2e492
SB
903
904(define-public accountsservice
905 (package
906 (name "accountsservice")
0981ec13 907 (version "0.6.50")
2a6403c1
TGR
908 (source
909 (origin
910 (method url-fetch)
911 (uri (string-append "https://www.freedesktop.org/software/"
912 "accountsservice/accountsservice-" version ".tar.xz"))
913 (sha256
914 (base32 "0jn7vg1z4vxnna0hl33hbcb4bb3zpilxc2vyclh24vx4vvsjhn83"))))
83a2e492
SB
915 (build-system gnu-build-system)
916 (arguments
917 '(#:tests? #f ; XXX: tests require DocBook 4.1.2
918 #:configure-flags
0981ec13
MB
919 '("--localstatedir=/var"
920 "--disable-systemd"
921 "--enable-elogind")
83a2e492
SB
922 #:phases
923 (modify-phases %standard-phases
924 (add-before
925 'configure 'pre-configure
e76008db
AW
926 (lambda* (#:key inputs #:allow-other-keys)
927 ;; Don't try to create /var/lib/AccountsService.
83a2e492 928 (substitute* "src/Makefile.in"
571ffdeb 929 (("\\$\\(MKDIR_P\\).*/lib/AccountsService.*") "true"))
e76008db
AW
930 (let ((shadow (assoc-ref inputs "shadow")))
931 (substitute* '("src/user.c" "src/daemon.c")
932 (("/usr/sbin/usermod") (string-append shadow "/sbin/usermod"))
933 (("/usr/sbin/useradd") (string-append shadow "/sbin/useradd"))
934 (("/usr/sbin/userdel") (string-append shadow "/sbin/userdel"))
935 (("/usr/bin/passwd") (string-append shadow "/bin/passwd"))
936 (("/usr/bin/chage") (string-append shadow "/bin/chage"))))
571ffdeb 937 #t)))))
83a2e492
SB
938 (native-inputs
939 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
940 ("gobject-introspection" ,gobject-introspection)
941 ("intltool" ,intltool)
942 ("pkg-config" ,pkg-config)))
943 (inputs
0981ec13
MB
944 `(("elogind" ,elogind)
945 ("polkit" ,polkit)
946 ("shadow" ,shadow)))
57e7d748 947 (home-page "https://www.freedesktop.org/wiki/Software/AccountsService/")
83a2e492
SB
948 (synopsis "D-Bus interface for user account query and manipulation")
949 (description
950 "The AccountService project provides a set of D-Bus interfaces for querying
951and manipulating user account information and an implementation of these
952interfaces, based on the useradd, usermod and userdel commands.")
953 (license license:gpl3+)))
f3ad1490
SB
954
955(define-public libmbim
956 (package
957 (name "libmbim")
fdb88305 958 (version "1.20.2")
f3ad1490
SB
959 (source (origin
960 (method url-fetch)
961 (uri (string-append
351c8042
TGR
962 "https://www.freedesktop.org/software/libmbim/"
963 "libmbim-" version ".tar.xz"))
f3ad1490
SB
964 (sha256
965 (base32
fdb88305 966 "16q550sy84izi5ic3sbbhjnnka2fwhj8vvdrirpn9xspbsgbc3sm"))))
f3ad1490
SB
967 (build-system gnu-build-system)
968 (native-inputs
969 `(("glib:bin" ,glib "bin") ; for glib-mkenums
970 ("pkg-config" ,pkg-config)
971 ("python" ,python-wrapper)))
972 (propagated-inputs
973 `(("glib" ,glib))) ; required by mbim-glib.pc
974 (inputs
975 `(("libgudev" ,libgudev)))
976 (synopsis "Library to communicate with MBIM-powered modems")
66056126 977 (home-page "https://www.freedesktop.org/wiki/Software/libmbim/")
f3ad1490
SB
978 (description
979 "Libmbim is a GLib-based library for talking to WWAN modems and devices
980which speak the Mobile Interface Broadband Model (MBIM) protocol.")
981 (license
982 ;; The libmbim-glib library is released under the LGPLv2+ license.
983 ;; The mbimcli tool is released under the GPLv2+ license.
984 (list license:lgpl2.0+ license:gpl2+))))
5302c5ff
SB
985
986(define-public libqmi
987 (package
988 (name "libqmi")
5e6c6007 989 (version "1.22.4")
5302c5ff
SB
990 (source (origin
991 (method url-fetch)
992 (uri (string-append
6c5101f8
MB
993 "https://www.freedesktop.org/software/libqmi/"
994 "libqmi-" version ".tar.xz"))
5302c5ff
SB
995 (sha256
996 (base32
5e6c6007 997 "1wgrrb9vb3myl8xgck8ik86876ycbg8crylybs3ssi21vrxqwnsc"))))
5302c5ff 998 (build-system gnu-build-system)
b707140b
MW
999 (inputs
1000 `(("libgudev" ,libgudev)))
5302c5ff
SB
1001 (native-inputs
1002 `(("glib:bin" ,glib "bin") ; for glib-mkenums
1003 ("pkg-config" ,pkg-config)
1004 ("python" ,python-wrapper)))
1005 (propagated-inputs
1006 `(("glib" ,glib))) ; required by qmi-glib.pc
1007 (synopsis "Library to communicate with QMI-powered modems")
97a08595 1008 (home-page "https://www.freedesktop.org/wiki/Software/libqmi/")
5302c5ff
SB
1009 (description
1010 "Libqmi is a GLib-based library for talking to WWAN modems and devices
1011which speak the Qualcomm MSM Interface (QMI) protocol.")
1012 (license
1013 ;; The libqmi-glib library is released under the LGPLv2+ license.
1014 ;; The qmicli tool is released under the GPLv2+ license.
1015 (list license:lgpl2.0+ license:gpl2+))))
1509a1dc
SB
1016
1017(define-public modem-manager
1018 (package
1019 (name "modem-manager")
352f710b 1020 (version "1.10.8")
1509a1dc
SB
1021 (source (origin
1022 (method url-fetch)
1023 (uri (string-append
e9f68a64 1024 "https://www.freedesktop.org/software/ModemManager/"
1509a1dc
SB
1025 "ModemManager-" version ".tar.xz"))
1026 (sha256
1027 (base32
352f710b 1028 "16hnl0sdriqgv4v30mfs64mdl9rw7lsh802zlm3ggwxxil3p9qfb"))))
1509a1dc
SB
1029 (build-system gnu-build-system)
1030 (arguments
1031 '(#:configure-flags
660c9b47
RW
1032 `(,(string-append "--with-udev-base-dir=" %output "/lib/udev")
1033 ;; FIXME: Without this flag the build fails with "error: assignment
1034 ;; from incompatible pointer type" whenever the return value of
1035 ;; "g_object_ref" is assigned to "ctx->self".
1036 "--disable-more-warnings")))
1509a1dc
SB
1037 (native-inputs
1038 `(("glib:bin" ,glib "bin") ; for glib-mkenums
1039 ("gobject-introspection" ,gobject-introspection)
1040 ("intltool" ,intltool)
1041 ("pkg-config" ,pkg-config)
1042 ("vala" ,vala)
1043 ;; For testing.
1044 ("dbus" ,dbus)))
1045 (propagated-inputs
1046 `(("glib" ,glib))) ; required by mm-glib.pc
1047 (inputs
1048 `(("libgudev" ,libgudev)
1049 ("libmbim" ,libmbim)
1050 ("libqmi" ,libqmi)
1051 ("polkit" ,polkit)))
1052 (synopsis "Mobile broadband modems manager")
57e7d748 1053 (home-page "https://www.freedesktop.org/wiki/Software/ModemManager/")
1509a1dc
SB
1054 (description
1055 "ModemManager is a DBus-activated daemon which controls mobile
1056broadband (2G/3G/4G) devices and connections. Whether built-in devices, USB
1057dongles, bluetooth-paired telephones, or professional RS232/USB devices with
1058external power supplies, ModemManager is able to prepare and configure the
1059modems and setup connections with them.")
1060 (license license:gpl2+)))
6976e7d2
SB
1061
1062(define-public telepathy-logger
1063 (package
1064 (name "telepathy-logger")
1065 (version "0.8.2")
1066 (source (origin
1067 (method url-fetch)
5cc3096c 1068 (uri (string-append "https://telepathy.freedesktop.org/releases/"
6976e7d2
SB
1069 name "/" name "-" version ".tar.bz2"))
1070 (sha256
1071 (base32
1072 "1bjx85k7jyfi5pvl765fzc7q2iz9va51anrc2djv7caksqsdbjlg"))))
1073 (build-system gnu-build-system)
1074 (arguments
8758efe0
LF
1075 '(#:parallel-tests? #f
1076 #:phases
6976e7d2
SB
1077 (modify-phases %standard-phases
1078 (add-before 'check 'pre-check
1079 (lambda _
1080 (setenv "HOME" (getenv "TMPDIR"))
1081 #t)))))
1082 (native-inputs
1083 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
1084 ("gobject-introspection" ,gobject-introspection)
1085 ("intltool" ,intltool)
1086 ("pkg-config" ,pkg-config)
1087 ("python" ,python-2)
1088 ("xsltproc" ,libxslt)))
1089 (propagated-inputs
1090 ;; telepathy-logger-0.2.pc refers to all these.
1091 `(("libxml2" ,libxml2)
1092 ("sqlite" ,sqlite)
1093 ("telepathy-glib" ,telepathy-glib)))
1094 (synopsis "Telepathy logger library")
57e7d748 1095 (home-page "https://telepathy.freedesktop.org/")
6976e7d2
SB
1096 (description
1097 "Telepathy logger is a headless observer client that logs information
1098received by the Telepathy framework. It features pluggable backends to log
1099different sorts of messages in different formats.")
1100 (license license:lgpl2.1+)))
e6823279 1101
bb8b543a
KK
1102(define-public telepathy-idle
1103 (package
1104 (name "telepathy-idle")
1105 (version "0.2.0")
1106 (source (origin
1107 (method url-fetch)
1108 (uri (string-append "https://telepathy.freedesktop.org/releases/"
1109 name "/" name "-" version ".tar.bz2"))
1110 (sha256
1111 (base32
1112 "1argdzbif1vdmwp5vqbgkadq9ancjmgdm2ncp0qfckni715ss4rh"))))
1113 (build-system gnu-build-system)
1114 (native-inputs
1115 `(("pkg-config" ,pkg-config)))
1116 (inputs
1117 `(("xsltproc" ,libxslt)
1118 ("python" ,python-2)
1119 ("python-dbus" ,python2-dbus)))
1120 (propagated-inputs
1121 `(("telepathy-glib" ,telepathy-glib)))
57e7d748 1122 (home-page "https://telepathy.freedesktop.org/")
bb8b543a
KK
1123 (synopsis "Telepathy IRC connection manager")
1124 (description
1125 "Idle is an IRC connection manager for the Telepathy framework. This
1126package enables usage of IRC channels and private messages in Telepathy instant
1127messaging clients such as Empathy, GNOME Shell or KDE Telepathy.")
1128 (license (list license:lgpl2.1 license:lgpl2.1+))))
1129
261b3da5
KK
1130(define-public telepathy-mission-control
1131 (package
1132 (name "telepathy-mission-control")
6c5401fc 1133 (version "5.16.5")
da42873c
TGR
1134 (source
1135 (origin
1136 (method url-fetch)
1137 (uri (string-append "https://telepathy.freedesktop.org/releases/"
1138 "telepathy-mission-control/"
1139 "telepathy-mission-control-" version ".tar.gz"))
1140 (sha256
6c5401fc 1141 (base32 "00xxv38cfdirnfvgyd56m60j0nkmsv5fz6p2ydyzsychicxl6ssc"))))
261b3da5
KK
1142 (build-system gnu-build-system)
1143 (native-inputs
1144 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
1145 ("pkg-config" ,pkg-config)))
1146 (inputs
1147 `(("dconf" ,dconf)
1148 ("gtk-doc" ,gtk-doc)
1149 ("libgnome-keyring" ,libgnome-keyring)
1150 ("python" ,python-2)
1151 ("xsltproc" ,libxslt)))
1152 (propagated-inputs
1153 `(("telepathy-glib" ,telepathy-glib)))
1154 (home-page "https://telepathy.freedesktop.org/wiki/Components/Mission_Control/")
1155 (synopsis "Telepathy real-time communication framework management daemon")
1156 (description
1157 "Telepathy Mission Control 5 is an account manager and channel dispatcher
1158for the Telepathy framework, allowing user interfaces and other clients to
1159share connections to real-time communication services without conflicting.")
1160 (license license:lgpl2.1)))
1161
e6823279
SB
1162(define-public colord-gtk
1163 (package
1164 (name "colord-gtk")
1165 (version "0.1.26")
1166 (source (origin
1167 (method url-fetch)
5cc3096c 1168 (uri (string-append "https://www.freedesktop.org/software/colord"
e6823279
SB
1169 "/releases/" name "-" version ".tar.xz"))
1170 (sha256
1171 (base32
1172 "0i9y3bb5apj6a0f8cx36l6mjzs7xc0k7nf0magmf58vy2mzhpl18"))))
1173 (build-system gnu-build-system)
1174 (arguments '(#:tests? #f)) ; require the colord system service
1175 (native-inputs
1176 `(("gobject-introspection" ,gobject-introspection)
1177 ("intltool" ,intltool)
1178 ("pkg-config" ,pkg-config)
1179 ("vala" ,vala)))
1180 (propagated-inputs
1181 ;; colord-gtk.pc refers to all these.
1182 `(("colord" ,colord)
1183 ("gtk+" ,gtk+)))
1184 (synopsis "GTK integration for libcolord")
57e7d748 1185 (home-page "https://www.freedesktop.org/software/colord/")
e6823279
SB
1186 (description
1187 "This is a GTK+ convenience library for interacting with colord. It is
1188useful for both applications which need colour management and applications that
1189wish to perform colour calibration.")
1190 (license license:lgpl2.1+)))
dfb01bae
LC
1191
1192(define-public libfprint
1193 (package
1194 (name "libfprint")
1195 (version "0.6.0")
1196 (source (origin
1197 (method url-fetch)
1198 (uri (string-append "https://people.freedesktop.org/~hadess/"
1199 name "-" version ".tar.xz"))
1200 (sha256
1201 (base32
1202 "1giwh2z63mn45galsjb59rhyrvgwcy01hvvp4g01iaa2snvzr0r5"))))
1203 (build-system gnu-build-system)
1204 (arguments
1205 '(#:configure-flags (list (string-append "--with-udev-rules-dir="
1206 (assoc-ref %outputs "out")
1207 "/lib/udev/rules.d"))))
1208 (native-inputs
1209 `(("pkg-config" ,pkg-config)))
1210 (inputs
1211 `(("libusb" ,libusb)
1212 ("nss" ,nss)
1213 ("glib" ,glib)
1214 ("eudev" ,eudev)
1215 ("pixman" ,pixman)))
1216 (home-page "https://www.freedesktop.org/wiki/Software/fprint/libfprint/")
1217 (synopsis "Library to access fingerprint readers")
1218 (description
1219 "libfprint is a library designed to make it easy for application
1220developers to add support for consumer fingerprint readers to their
1221software.")
1222 (license license:lgpl2.1+)))
9e3e972d
LC
1223
1224(define-public fprintd
1225 (package
1226 (name "fprintd")
1227 (version "0.7.0")
1228 (source (origin
1229 (method url-fetch)
1230 (uri (string-append
1231 "https://people.freedesktop.org/~hadess/fprintd-"
1232 version ".tar.xz"))
1233 (sha256
1234 (base32
1235 "05915i0bv7q62fqrs5diqwr8dz3pwqa1c1ivcgggkjyw0xk4ldp5"))))
1236 (build-system gnu-build-system)
5c3d6c1d
LC
1237 (arguments
1238 '(#:phases (modify-phases %standard-phases
1239 (add-before 'build 'set-sysconfdir
1240 (lambda* (#:key outputs #:allow-other-keys)
1241 ;; Work around a bug whereby the 'SYSCONFDIR' macro
1242 ;; expands literally to '${prefix}/etc'.
1243 (let ((out (assoc-ref outputs "out")))
1244 (substitute* "src/main.c"
1245 (("SYSCONFDIR, \"fprintd.conf\"")
1246 (string-append "\"" out "/etc\", "
1247 "\"fprintd.conf\"")))
1248 #t))))))
9e3e972d
LC
1249 (native-inputs
1250 `(("pkg-config" ,pkg-config)
1251 ("intltool" ,intltool)))
1252 (inputs
1253 `(("libfprint" ,libfprint)
1254 ("dbus-glib" ,dbus-glib)
1255 ("polkit" ,polkit)
1256 ("linux-pam" ,linux-pam))) ;for pam_fprintd
1257 (home-page "https://www.freedesktop.org/wiki/Software/fprint/fprintd/")
1258 (synopsis "D-Bus daemon that exposes fingerprint reader functionality")
1259 (description
1260 "fprintd is a D-Bus daemon that offers functionality of libfprint, a
1261library to access fingerprint readers, over the D-Bus interprocess
1262communication bus. This daemon layer above libfprint solves problems related
1263to applications simultaneously competing for fingerprint readers.")
1264 (license license:gpl2+)))
324b0040
DM
1265
1266(define-public desktop-file-utils
1267 (package
1268 (name "desktop-file-utils")
1269 (version "0.23")
1270 (source (origin
1271 (method url-fetch)
1272 (uri (string-append "https://www.freedesktop.org/software/" name
1273 "/releases/" name "-" version ".tar.xz"))
1274 (sha256
1275 (base32
1276 "119kj2w0rrxkhg4f9cf5waa55jz1hj8933vh47vcjipcplql02bc"))))
1277 (build-system gnu-build-system)
1278 (native-inputs
1279 `(("pkg-config" ,pkg-config)))
1280 (inputs
1281 `(("glib" ,glib)))
57e7d748 1282 (home-page "https://www.freedesktop.org/wiki/Software/desktop-file-utils/")
324b0040
DM
1283 (synopsis "Utilities for working with desktop entries")
1284 (description
1285 "This package contains a few command line utilities for working with
1286desktop entries:
1287
1288desktop-file-validate: validates a desktop file and prints warnings/errors
1289 about desktop entry specification violations.
1290
1291desktop-file-install: installs a desktop file to the applications directory,
1292 optionally munging it a bit in transit.
1293
1294update-desktop-database: updates the database containing a cache of MIME types
1295 handled by desktop files.")
1296 (license license:gpl2+)))
b9bf08f0
AW
1297
1298(define-public xdg-user-dirs
1299 (package
1300 (name "xdg-user-dirs")
7c9b7c5c 1301 (version "0.17")
b9bf08f0
AW
1302 (source (origin
1303 (method url-fetch)
1304 (uri (string-append "http://user-dirs.freedesktop.org/releases/"
1305 name "-" version ".tar.gz"))
1306 (sha256
7c9b7c5c 1307 (base32 "13216b8rfkzak5k6bvpx6jvqv3cnbgpijnjwj8a8d3kq4cl0a1ra"))))
b9bf08f0
AW
1308 (build-system gnu-build-system)
1309 (native-inputs
1310 `(("gettext" ,gettext-minimal)
1311 ("docbook-xsl" ,docbook-xsl)
1312 ("docbook-xml" ,docbook-xml-4.3)
1313 ("xsltproc" ,libxslt)))
1314 (arguments
1315 `(#:phases
1316 (modify-phases %standard-phases
1317 (add-before 'build 'locate-catalog-files
1318 (lambda* (#:key inputs #:allow-other-keys)
1319 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
1320 "/xml/dtd/docbook"))
1321 (xsldoc (string-append (assoc-ref inputs "docbook-xsl")
1322 "/xml/xsl/docbook-xsl-"
1323 ,(package-version docbook-xsl))))
1324 (for-each (lambda (file)
1325 (substitute* file
1326 (("http://.*/docbookx\\.dtd")
1327 (string-append xmldoc "/docbookx.dtd"))))
1328 (find-files "man" "\\.xml$"))
1329 (substitute* "man/Makefile"
1330 (("http://.*/docbook\\.xsl")
1331 (string-append xsldoc "/manpages/docbook.xsl")))
1332 #t))))))
1333 (home-page "https://www.freedesktop.org/wiki/Software/xdg-user-dirs/")
1334 (synopsis "Tool to help manage \"well known\" user directories")
1335 (description "xdg-user-dirs is a tool to help manage \"well known\" user
1336directories, such as the desktop folder or the music folder. It also handles
1337localization (i.e. translation) of the file names. Designed to be
1338automatically run when a user logs in, xdg-user-dirs can also be run
1339manually by a user.")
1340 (license license:gpl2)))
b32596ec
BT
1341
1342(define-public perl-file-basedir
1343 (package
1344 (name "perl-file-basedir")
12c069db 1345 (version "0.08")
b32596ec
BT
1346 (source
1347 (origin
1348 (method url-fetch)
1349 (uri (string-append "mirror://cpan/authors/id/K/KI/KIMRYAN/"
1350 "File-BaseDir-" version ".tar.gz"))
1351 (sha256
1352 (base32
12c069db 1353 "1qq5ag9zffx8zc5i9b4z03ar80pqj4drgk3vjdlyfapjwb9zqrf0"))))
b32596ec
BT
1354 (build-system perl-build-system)
1355 (native-inputs
1356 `(("perl-module-build" ,perl-module-build)
1357 ("perl-file-which" ,perl-file-which)
1358 ("perl-test-pod" ,perl-test-pod)
1359 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
1360 ("xdg-user-dirs" ,xdg-user-dirs)))
1361 (propagated-inputs
1362 `(("perl-ipc-system-simple" ,perl-ipc-system-simple)))
9aba9b12 1363 (home-page "https://metacpan.org/release/File-BaseDir")
b32596ec
BT
1364 (synopsis "Use the Freedesktop.org base directory specification")
1365 (description
1366 "@code{File::Basedir} can be used to find directories and files as
1367specified by the Freedesktop.org Base Directory Specification. This
1368specifications gives a mechanism to locate directories for configuration,
1369application data and cache data.")
1370 (license license:perl-license)))
825cebdb
BT
1371
1372(define-public perl-file-desktopentry
1373 (package
1374 (name "perl-file-desktopentry")
1375 (version "0.22")
1376 (source
1377 (origin
1378 (method url-fetch)
1379 (uri (string-append "mirror://cpan/authors/id/M/MI/MICHIELB/"
1380 "File-DesktopEntry-" version ".tar.gz"))
1381 (sha256
1382 (base32
1383 "1f1maqix2kbfg2rf008m7mqnvv6nvcf9y6pcgdv2kxp2vbih370n"))))
1384 (build-system perl-build-system)
1385 (native-inputs
1386 `(("perl-test-pod" ,perl-test-pod)
1387 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1388 (propagated-inputs
1389 `(("perl-file-basedir" ,perl-file-basedir)
1390 ("perl-uri" ,perl-uri)))
9aba9b12 1391 (home-page "https://metacpan.org/release/File-DesktopEntry")
825cebdb
BT
1392 (synopsis "Handle @file{.desktop} files")
1393 (description
1394 "@code{File::DesktopEntry} parses @file{.desktop} files defined by the
1395Freedesktop.org @dfn{Desktop Entry} specification. It can also run the
1396applications define in those files.")
1397 (license license:perl-license)))
d0ce96bc
BT
1398
1399(define-public perl-file-mimeinfo
1400 (package
1401 (name "perl-file-mimeinfo")
2f989172 1402 (version "0.29")
d0ce96bc
BT
1403 (source
1404 (origin
1405 (method url-fetch)
1406 (uri (string-append "mirror://cpan/authors/id/M/MI/MICHIELB/"
1407 "File-MimeInfo-" version ".tar.gz"))
1408 (sha256
1409 (base32
2f989172 1410 "1sh8r6vczyz08zm8vfsjmkg6a165wch54akjdrd1vbifcmwjg5pi"))))
d0ce96bc
BT
1411 (build-system perl-build-system)
1412 ;; If the tests are fixed, add perl-test-pod, perl-test-pod-coverage, and
1413 ;; perl-test-tiny as native-inputs.
1414 (propagated-inputs
1415 `(("shared-mime-info" ,shared-mime-info)
1416 ("perl-file-desktopentry" ,perl-file-desktopentry)))
1417 (arguments
1418 ;; Some tests fail due to requiring the mimetype of perl files to be
1419 ;; text/plain when they are actually application/x-perl.
1420 `(#:tests? #f
1421 #:phases
1422 (modify-phases %standard-phases
1423 (add-after 'install 'wrap-programs
1424 (lambda* (#:key outputs #:allow-other-keys)
1425 (let ((out (assoc-ref outputs "out")))
1426 (for-each (lambda (prog)
1427 (wrap-program (string-append out "/bin/" prog)
1428 `("PERL5LIB" ":" prefix
1429 (,(string-append (getenv "PERL5LIB") ":" out
1430 "/lib/perl5/site_perl")))))
1431 '("mimeopen" "mimetype")))
1432 #t)))))
9aba9b12 1433 (home-page "https://metacpan.org/release/File-MimeInfo")
d0ce96bc
BT
1434 (synopsis "Determine file type from the file name")
1435 (description
1436 "@code{File::Mimeinfo} can be used to determine the MIME type of a file.
1437It tries to implement the Freedesktop specification for a shared MIME
1438database.
1439
1440This package also contains two related utilities:
1441
1442@itemize
1443@item @command{mimetype} determines a file's MIME type;
1444@item @command{mimeopen} opens files in an appropriate program according to
1445their MIME type.
1446@end itemize")
1447 (license license:perl-license)))
748ca12f
RAM
1448
1449(define-public uchardet
1450 (package
1451 (name "uchardet")
1452 (version "0.0.6")
1453 (source
1454 (origin
1455 (method url-fetch)
1456 (uri (string-append "https://www.freedesktop.org/software/"
1457 name "/releases/" name "-" version ".tar.xz"))
1458 (sha256
1459 (base32 "0q9c02b6nmw41yfsiqsnphgc3f0yg3fj31wkccp47cmwvy634lc3"))))
1460 (build-system cmake-build-system)
1461 (home-page "https://www.freedesktop.org/wiki/Software/uchardet/")
1462 (synopsis "Encoding detector library")
1463 (description "uchardet is an encoding detector library, which takes a
1464sequence of bytes in an unknown character encoding without any additional
1465information, and attempts to determine the encoding of the text. Returned
1466encoding names are iconv-compatible.")
1467
1468 ;; This combines code under MPL 1.1, LGPL 2.1+, and GPL 2.0+, so the
1469 ;; combination is GPL 2.0+.
1470 (license license:gpl2+)))
d29d04c9
GLV
1471
1472(define-public udiskie
1473 (package
1474 (name "udiskie")
1475 (version "1.7.7")
1476 (source
1477 (origin
1478 (method url-fetch)
1479 (uri (pypi-uri "udiskie" version))
1480 (sha256
1481 (base32
1482 "121g9dkr7drv9igpdbcbkj59x15mm72rzp3198bp50zj0lr4wbvi"))
1483 ;; Remove support for the libappindicator library of the
1484 ;; Unity desktop environment which is not in Guix.
1485 (patches (search-patches "udiskie-no-appindicator.patch"))))
1486 (build-system python-build-system)
1487 (native-inputs
1488 `(("asciidoc" ,asciidoc)
1489 ("gettext" ,gettext-minimal)
1490 ("gobject-introspection" ,gobject-introspection)))
1491 (inputs
1492 `(("gobject-introspection" ,gobject-introspection)
1493 ("gtk+" ,gtk+)
1494 ("libnotify" ,libnotify)
1495 ("udisks" ,udisks)))
1496 (propagated-inputs
1497 `(("python-docopt" ,python-docopt)
1498 ("python-pygobject" ,python-pygobject)
1499 ("python-keyutils" ,python-keyutils)
1500 ("python-pyxdg" ,python-pyxdg)
1501 ("python-pyyaml" ,python-pyyaml)))
1502 (arguments
1503 `(#:phases
1504 (modify-phases %standard-phases
1505 (add-after 'install 'wrap-gi-typelib
1506 (lambda* (#:key outputs #:allow-other-keys)
1507 (let ((out (assoc-ref outputs "out"))
1508 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
1509 (wrap-program (string-append out "/bin/udiskie")
1510 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
1511 #t)))))
1512 (home-page "https://github.com/coldfix/udiskie")
1513 (synopsis "Automounter for removable media")
1514 (description
1515 "The @command{udiskie} program is a udisks2 front-end that allows to
1516manage removable media such as CDs or flash drives from userspace.
1517
1518Its features include:
1519
1520@itemize
1521@item automount removable media,
1522@item notifications,
1523@item tray icon,
1524@item command line tools for manual (un)mounting,
1525@item LUKS encrypted devices,
1526@item unlocking with keyfiles,
1527@item loop devices (mounting ISO archives),
1528@item password caching.
1529@end itemize
1530")
1531 (license license:expat)))