1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
4 ;;; Copyright © 2015, 2017 Andy Wingo <wingo@pobox.com>
5 ;;; Copyright © 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
6 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
8 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
10 ;;; Copyright © 2017 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
13 ;;; This file is part of GNU Guix.
15 ;;; GNU Guix is free software; you can redistribute it and/or modify it
16 ;;; under the terms of the GNU General Public License as published by
17 ;;; the Free Software Foundation; either version 3 of the License, or (at
18 ;;; your option) any later version.
20 ;;; GNU Guix is distributed in the hope that it will be useful, but
21 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
22 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 ;;; GNU General Public License for more details.
25 ;;; You should have received a copy of the GNU General Public License
26 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
28 (define-module (gnu packages freedesktop)
29 #:use-module ((guix licenses) #:prefix license:)
30 #:use-module (guix packages)
31 #:use-module (guix download)
32 #:use-module (guix git-download)
33 #:use-module (guix build-system gnu)
34 #:use-module (guix build-system python)
35 #:use-module (gnu packages acl)
36 #:use-module (gnu packages admin)
37 #:use-module (gnu packages autotools)
38 #:use-module (gnu packages bash)
39 #:use-module (gnu packages boost)
40 #:use-module (gnu packages compression)
41 #:use-module (gnu packages databases)
42 #:use-module (gnu packages docbook)
43 #:use-module (gnu packages documentation)
44 #:use-module (gnu packages gettext)
45 #:use-module (gnu packages gl)
46 #:use-module (gnu packages glib) ;intltool
47 #:use-module (gnu packages gnome)
48 #:use-module (gnu packages gnuzilla)
49 #:use-module (gnu packages gperf)
50 #:use-module (gnu packages graphviz)
51 #:use-module (gnu packages gtk)
52 #:use-module (gnu packages libffi)
53 #:use-module (gnu packages libunwind)
54 #:use-module (gnu packages libusb)
55 #:use-module (gnu packages linux)
56 #:use-module (gnu packages m4)
57 #:use-module (gnu packages polkit)
58 #:use-module (gnu packages pkg-config)
59 #:use-module (gnu packages python)
60 #:use-module (gnu packages w3m)
61 #:use-module (gnu packages xml)
62 #:use-module (gnu packages xdisorg)
63 #:use-module (gnu packages xorg))
65 (define-public xdg-utils
73 "https://portland.freedesktop.org/download/xdg-utils-"
77 "09a1pk3ifsndc5qz2kcd1557i137gpgnv3d739pv22vfayi67pdh"))))
78 (build-system gnu-build-system)
80 `(("docbook-xsl" ,docbook-xsl)
81 ("docbook-xml" ,docbook-xml-4.1.2)
86 `(("xprop" ,xprop) ; for Xfce detecting
87 ("xset" ,xset))) ; for xdg-screensaver
89 `(#:tests? #f ; no check target
91 (modify-phases %standard-phases
92 (add-after 'unpack 'patch-hardcoded-paths
94 (substitute* "scripts/xdg-mime.in"
95 (("/usr/bin/file") (which "file")))
96 (substitute* "scripts/xdg-open.in"
97 (("/usr/bin/printf") (which "printf")))
99 (add-before 'build 'locate-catalog-files
100 (lambda* (#:key inputs #:allow-other-keys)
101 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
103 (xsldoc (string-append (assoc-ref inputs "docbook-xsl")
104 "/xml/xsl/docbook-xsl-"
105 ,(package-version docbook-xsl))))
106 (for-each (lambda (file)
108 (("http://.*/docbookx\\.dtd")
109 (string-append xmldoc "/docbookx.dtd"))))
110 (find-files "scripts/desc" "\\.xml$"))
111 (substitute* "scripts/Makefile"
112 ;; Apparently `xmlto' does not bother to looks up the stylesheets
113 ;; specified in the XML, unlike the above substitition. Instead it
114 ;; uses a hard-coded URL. Work around it here, but if this is
115 ;; common perhaps we should hardcode this path in xmlto itself.
116 (("\\$\\(XMLTO\\) man")
117 (string-append "$(XMLTO) -x " xsldoc
118 "/manpages/docbook.xsl man")))
120 (string-append xsldoc "/html/docbook.xsl"))
122 (home-page "https://www.freedesktop.org/wiki/Software/xdg-utils/")
123 (synopsis "Freedesktop.org scripts for desktop integration")
124 (description "The xdg-utils package is a set of simple scripts that
125 provide basic desktop integration functions in the framework of the
126 freedesktop.org project.")
127 (license license:expat)))
129 (define-public libinput
135 (uri (string-append "https://freedesktop.org/software/libinput/"
136 name "-" version ".tar.xz"))
139 "07fbzxddvhjcch43hdxb24sj7ri96zzpcjalvsicmw0i4wnn2v89"))))
140 (build-system gnu-build-system)
144 ("pkg-config" ,pkg-config)))
146 `(("libudev" ,eudev))) ; required by libinput.pc
149 ("libevdev" ,libevdev)
151 ("libwacom" ,libwacom)))
152 (home-page "https://www.freedesktop.org/wiki/Software/libinput/")
153 (synopsis "Input devices handling library")
155 "Libinput is a library to handle input devices for display servers and
156 other applications that need to directly deal with input devices.")
157 (license license:x11)))
159 (define-public libinput-minimal
160 (package (inherit libinput)
161 (name "libinput-minimal")
163 `(("pkg-config" ,pkg-config)))
165 `(("libevdev" ,libevdev)
169 '("--disable-libwacom")))))
171 (define-public libxdg-basedir
173 (name "libxdg-basedir")
178 "https://github.com/devnev/libxdg-basedir/archive/"
179 name "-" version ".tar.gz"))
182 "0s28c7sfwqimsmb3kn91mx7wi55fs3flhbmynl9k60rrllr00aqw"))))
183 (build-system gnu-build-system)
186 (modify-phases %standard-phases
187 (add-after 'unpack 'autogen
189 ;; Run 'configure' in its own phase, not now.
190 (substitute* "autogen.sh"
191 (("^.*\\./configure.*") ""))
192 (zero? (system* "sh" "autogen.sh")))))))
194 `(("autoconf" ,autoconf)
195 ("automake" ,automake)
196 ("libtool" ,libtool)))
197 (home-page "https://github.com/devnev/libxdg-basedir")
198 (synopsis "Implementation of the XDG Base Directory specification")
200 "libxdg-basedir is a C library providing some functions to use with
201 the freedesktop.org XDG Base Directory specification.")
202 (license license:expat)))
204 (define-public elogind
210 (uri (string-append "https://wingolog.org/pub/" name "/"
211 name "-" version ".tar.xz"))
214 "1jckc4wx199n1q4r4fv43ibjs6nlq91s39w9r78ilk1z383m1hcx"))
215 (modules '((guix build utils)))
218 (use-modules (guix build utils))
219 (substitute* "Makefile.am"
220 ;; Avoid validation against DTD because the DTDs for
221 ;; both doctype 4.2 and 4.5 are needed.
222 (("XSLTPROC_FLAGS = ") "XSLTPROC_FLAGS = --novalid"))))))
223 (build-system gnu-build-system)
226 (list (string-append "--with-libcap="
227 (assoc-ref %build-inputs "libcap"))
228 (string-append "--with-udevrulesdir="
229 (assoc-ref %outputs "out")
230 "/lib/udev/rules.d"))
231 #:make-flags '("PKTTYAGENT=/run/current-system/profile/bin/pkttyagent")
232 #:phases (modify-phases %standard-phases
233 (add-before 'build 'fix-service-file
234 (lambda* (#:key outputs #:allow-other-keys)
235 ;; Fix the file name of the 'elogind' binary in the D-Bus
237 (substitute* "src/login/org.freedesktop.login1.service"
239 (string-append "Exec=" (assoc-ref %outputs "out")
240 "/libexec/elogind/elogind\n"))))))))
242 `(("intltool" ,intltool)
243 ("gettext" ,gettext-minimal)
244 ("docbook-xsl" ,docbook-xsl)
245 ("docbook-xml" ,docbook-xml)
246 ("xsltproc" ,libxslt)
248 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
249 ("pkg-config" ,pkg-config)
251 ;; Use gperf 3.0 to work around
252 ;; <https://github.com/wingo/elogind/issues/8>.
253 ("gperf" ,gperf-3.0)))
255 `(("linux-pam" ,linux-pam)
256 ("linux-libre-headers" ,linux-libre-headers)
258 ("shepherd" ,shepherd) ;for 'halt' and 'reboot', invoked
259 ;when pressing the power button
262 ("acl" ,acl))) ;to add individual users to ACLs on /dev nodes
263 (home-page "https://github.com/wingo/elogind")
264 (synopsis "User, seat, and session management service")
265 (description "Elogind is the systemd project's \"logind\" service,
266 extracted out as a separate project. Elogind integrates with PAM to provide
267 the org.freedesktop.login1 interface over the system bus, allowing other parts
268 of a the system to know what users are logged in, and where.")
269 (license license:lgpl2.1+)))
271 (define-public packagekit
278 "https://www.freedesktop.org/software/"
279 "PackageKit/releases/"
280 "PackageKit-" version ".tar.xz"))
283 "035pqxgkyki813hyw2frrbpfllq113zfk5qcp9wvsq5lsp74ix2h"))))
284 (build-system gnu-build-system)
287 #:make-flags (list (string-append "BASH_COMPLETIONS_DIR="
288 %output "/etc/bash_completion.d"))
290 '("--disable-systemd")))
292 `(("intltool" ,intltool)
293 ("pkg-config" ,pkg-config)
294 ("python" ,python-wrapper)
295 ("glib:bin" ,glib "bin")))
298 ("bash-completion", bash-completion)
301 `(("sqlite" ,sqlite)))
302 (home-page "https://www.freedesktop.org/software/PackageKit/")
303 (synopsis "API for package management, through D-Bus")
305 "PackageKit provides a way of performing package management tasks,
306 e.g. updating, removing and installing software. Through supporting many
307 backends, PackageKit can perform these tasks using the appropriate package
308 manager for the current system.")
309 (license license:gpl2+)))
311 (define-public python-pyxdg
313 (name "python-pyxdg")
319 "https://pypi.python.org/packages/source/p/pyxdg/pyxdg-"
323 "179767h8m634ydlm4v8lnz01ba42gckfp684id764zaip7h87s41"))))
324 (build-system python-build-system)
329 (lambda* (#:key inputs #:allow-other-keys)
330 (setenv "XDG_DATA_DIRS"
331 (string-append (assoc-ref inputs "shared-mime-info")
333 (substitute* "test/test-icon.py"
334 (("/usr/share/icons/hicolor/index.theme")
335 (string-append (assoc-ref inputs "hicolor-icon-theme")
336 "/share/icons/hicolor/index.theme")))
338 ;; One test fails with:
339 ;; AssertionError: 'x-apple-ios-png' != 'png'
340 (substitute* "test/test-mime.py"
341 (("self.check_mimetype\\(imgpng, 'image', 'png'\\)") "#"))
342 (zero? (system* "nosetests" "-v")))
345 `(("shared-mime-info" ,shared-mime-info) ;for tests
346 ("hicolor-icon-theme" ,hicolor-icon-theme) ;for tests
347 ("python-nose" ,python-nose)))
348 (home-page "http://freedesktop.org/wiki/Software/pyxdg")
349 (synopsis "Implementations of freedesktop.org standards in Python")
351 "PyXDG is a collection of implementations of freedesktop.org standards in
353 (license license:lgpl2.0)))
355 (define-public python2-pyxdg
356 (package-with-python2 python-pyxdg))
358 (define-public wayland
364 (uri (string-append "https://wayland.freedesktop.org/releases/"
365 name "-" version ".tar.xz"))
368 "0lgywr1m0d79vr4s8aimj8a307nss29hhy68gjpqj7m667055c39"))))
369 (build-system gnu-build-system)
370 (arguments `(#:parallel-tests? #f))
372 `(("doxygen" ,doxygen)
373 ("graphviz" ,graphviz)
374 ("pkg-config" ,pkg-config)
376 ("xsltproc" ,libxslt)))
378 `(("docbook-xml" ,docbook-xml)
379 ("docbook-xsl" ,docbook-xsl)
382 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
383 (home-page "https://wayland.freedesktop.org/")
384 (synopsis "Display server protocol")
386 "Wayland is a protocol for a compositor to talk to its clients as well as
387 a C library implementation of that protocol. The compositor can be a standalone
388 display server running on Linux kernel modesetting and evdev input devices, an X
389 application, or a wayland client itself. The clients can be traditional
390 applications, X servers (rootless or fullscreen) or other display servers.")
391 (license license:x11)))
393 (define-public wayland-protocols
395 (name "wayland-protocols")
400 "https://wayland.freedesktop.org/releases/"
401 "wayland-protocols-" version ".tar.xz"))
404 "0xag2yci0l13brmq2k12vdv0wlnb2j0rxk2cnp170fya63g74sv6"))))
405 (build-system gnu-build-system)
407 `(("wayland" ,wayland)))
409 `(("pkg-config" ,pkg-config)))
410 (synopsis "Wayland protocols")
411 (description "This package contains XML definitions of the Wayland protocols.")
412 (home-page "https://wayland.freedesktop.org")
413 (license license:expat)))
415 (define-public weston
422 "https://wayland.freedesktop.org/releases/"
423 "weston-" version ".tar.xz"))
426 "1n35acsknwqfhsni854q5mjq2gnbnfdvinh92rpij67i4yn4dr5l"))))
427 (build-system gnu-build-system)
429 `(("pkg-config" ,pkg-config)
430 ("xorg-server" ,xorg-server)))
432 `(("cairo" ,cairo-xcb)
435 ("libinput" ,libinput-minimal)
436 ("libunwind" ,libunwind)
437 ("libxcursor" ,libxcursor)
438 ("libxkbcommon" ,libxkbcommon)
441 ("linux-pam" ,linux-pam)
443 ("wayland-protocols" ,wayland-protocols)
444 ("xorg-server-xwayland" ,xorg-server-xwayland)))
447 (list "--disable-setuid-install"
448 "--enable-systemd-login"
449 (string-append "--with-xserver-path="
450 (assoc-ref %build-inputs "xorg-server-xwayland")
453 (modify-phases %standard-phases
454 (add-before 'configure 'use-elogind
456 ;; Use elogind instead of systemd
457 (substitute* "configure"
458 (("libsystemd-login >= 198") "libelogind"))
459 (substitute* '("libweston/launcher-logind.c"
460 "libweston/weston-launch.c")
461 (("#include <systemd/sd-login.h>")
462 "#include <elogind/sd-login.h>"))
464 (add-after 'configure 'patch-confdefs.h
466 (system "echo \"#define HAVE_SYSTEMD_LOGIN_209 1\" >> confdefs.h")))
467 (add-before 'check 'setup
469 (setenv "HOME" (getcwd))
470 (setenv "XDG_RUNTIME_DIR" (getcwd))
472 (add-before 'check 'start-xorg-server
473 (lambda* (#:key inputs #:allow-other-keys)
474 ;; The test suite requires a running X server.
475 (system (string-append (assoc-ref inputs "xorg-server")
477 (setenv "DISPLAY" ":1")
479 (home-page "https://wayland.freedesktop.org")
480 (synopsis "Reference implementation of a Wayland compositor")
481 (description "Weston is the reference implementation of a Wayland
482 compositor, and a useful compositor in its own right.
484 A Wayland compositor allows applications to render to a shared offscreen
485 buffer using OpenGL ES. The compositor then culls the hidden parts and
486 composes the final output. A Wayland compositor is essentially a
487 multiplexer to the KMS/DRM Linux kernel devices.")
488 (license license:expat)))
490 (define-public exempi
497 "https://libopenraw.freedesktop.org/download/"
498 name "-" version ".tar.bz2"))
501 "1v665fc7x0yi7x6lzskvd8bd2anf7951svn2vd5384dblmgv43av"))))
502 (build-system gnu-build-system)
504 `(#:configure-flags (list (string-append "--with-boost="
505 (assoc-ref %build-inputs "boost")))))
507 `(("boost" ,boost))) ; tests
511 (home-page "https://wiki.freedesktop.org/libopenraw/Exempi")
512 (synopsis "XMP metadata handling library")
513 (description "Exempi is an implementation of the Extensible Metadata
514 Platform (XMP), which enables embedding metadata in PDF and image formats.")
515 (license license:bsd-3)))
517 (define-public libatasmart
523 (uri (string-append "http://0pointer.de/public/"
524 name "-" version ".tar.xz"))
527 "138gvgdwk6h4ljrjsr09pxk1nrki4b155hqdzyr8mlk3bwsfmw31"))))
528 (build-system gnu-build-system)
530 `(("pkg-config" ,pkg-config)))
533 (home-page "http://0pointer.de/blog/projects/being-smart.html")
534 (synopsis "ATA S.M.A.R.T. reading and parsing library")
536 "This library supports a subset of the ATA S.M.A.R.T. (Self-Monitoring,
537 Analysis and Reporting Technology) functionality.")
538 (license license:lgpl2.1+)))
540 (define-public udisks
546 (uri (string-append "https://udisks.freedesktop.org/releases/"
547 name "-" version ".tar.bz2"))
550 "1nkxhnqh39c9pzvm4zfj50rgv6apqawdx09bv3sfaxrah4a6jhfs"))))
551 (build-system gnu-build-system)
553 `(("docbook-xml" ,docbook-xml-4.3) ; to build the manpages
554 ("docbook-xsl" ,docbook-xsl)
555 ("glib:bin" ,glib "bin") ; for glib-mkenums
556 ("gobject-introspection" ,gobject-introspection)
557 ("intltool" ,intltool)
558 ("pkg-config" ,pkg-config)
559 ("xsltproc" ,libxslt)))
561 `(("glib" ,glib))) ; required by udisks2.pc
564 ("libatasmart" ,libatasmart)
565 ("libgudev" ,libgudev)
567 ("util-linux" ,util-linux)))
569 "doc")) ;5 MiB of gtk-doc HTML
571 `(#:tests? #f ; requiring system message dbus
572 #:disallowed-references ("doc") ;enforce separation of "doc"
575 "--localstatedir=/var"
576 "--enable-fhs-media" ;mount devices in /media, not /run/media
577 (string-append "--with-html-dir="
578 (assoc-ref %outputs "doc")
579 "/share/doc/udisks/html")
580 (string-append "--with-udevdir=" %output "/lib/udev"))
582 (let* ((docbook-xsl-name-version ,(string-append
583 (package-name docbook-xsl) "-"
584 (package-version docbook-xsl)))
585 (docbook-xsl-catalog-file (string-append
586 (assoc-ref %build-inputs "docbook-xsl")
588 docbook-xsl-name-version
590 (docbook-xml-catalog-file (string-append
591 (assoc-ref %build-inputs "docbook-xml")
592 "/xml/dtd/docbook/catalog.xml")))
593 ;; Reference the catalog files required to build the manpages.
594 (list (string-append "XML_CATALOG_FILES=" docbook-xsl-catalog-file " "
595 docbook-xml-catalog-file)))
597 (modify-phases %standard-phases
599 'configure 'fix-girdir
601 ;; Install introspection data to its own output.
602 (substitute* "udisks/Makefile.in"
604 "girdir = $(datadir)/gir-1.0\n")
605 (("typelibsdir = .*")
606 "typelibsdir = $(libdir)/girepository-1.0\n"))))
607 (add-after 'install 'set-mount-file-name
608 (lambda* (#:key outputs inputs #:allow-other-keys)
609 ;; Tell 'udisksd' where to find the 'mount' command.
610 (let ((out (assoc-ref outputs "out"))
611 (utils (assoc-ref inputs "util-linux")))
612 (wrap-program (string-append out "/libexec/udisks2/udisksd")
614 (,(string-append utils "/bin") ;for 'mount'
615 "/run/current-system/profile/bin"
616 "/run/current-system/profile/sbin")))
618 (home-page "https://www.freedesktop.org/wiki/Software/udisks/")
619 (synopsis "Disk manager service")
621 "UDisks provides interfaces to enumerate and perform operations on disks
622 and storage devices. Any application (including unprivileged ones) can access
623 the udisksd(8) daemon via the name org.freedesktop.UDisks2 on the system
625 ;; The dynamic library are under LGPLv2+, others are GPLv2+.
626 (license (list license:gpl2+ license:lgpl2.0+))))
628 (define-public accountsservice
630 (name "accountsservice")
634 (uri (string-append "https://www.freedesktop.org/software/"
635 name "/" name "-" version ".tar.xz"))
638 "1k6n9079001sgcwlkq0bz6mkn4m8y4dwf6hs1qm85swcld5ajfzd"))))
639 (build-system gnu-build-system)
641 '(#:tests? #f ; XXX: tests require DocBook 4.1.2
643 '("--localstatedir=/var")
645 (modify-phases %standard-phases
647 'configure 'pre-configure
648 (lambda* (#:key inputs #:allow-other-keys)
649 ;; Don't try to create /var/lib/AccountsService.
650 (substitute* "src/Makefile.in"
651 (("\\$\\(MKDIR_P\\).*/lib/AccountsService.*") "true"))
652 (let ((shadow (assoc-ref inputs "shadow")))
653 (substitute* '("src/user.c" "src/daemon.c")
654 (("/usr/sbin/usermod") (string-append shadow "/sbin/usermod"))
655 (("/usr/sbin/useradd") (string-append shadow "/sbin/useradd"))
656 (("/usr/sbin/userdel") (string-append shadow "/sbin/userdel"))
657 (("/usr/bin/passwd") (string-append shadow "/bin/passwd"))
658 (("/usr/bin/chage") (string-append shadow "/bin/chage"))))
661 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
662 ("gobject-introspection" ,gobject-introspection)
663 ("intltool" ,intltool)
664 ("pkg-config" ,pkg-config)))
668 (home-page "http://www.freedesktop.org/wiki/Software/AccountsService/")
669 (synopsis "D-Bus interface for user account query and manipulation")
671 "The AccountService project provides a set of D-Bus interfaces for querying
672 and manipulating user account information and an implementation of these
673 interfaces, based on the useradd, usermod and userdel commands.")
674 (license license:gpl3+)))
676 (define-public libmbim
683 "https://www.freedesktop.org/software/" name "/"
684 name "-" version ".tar.xz"))
687 "0flpgzsqpjgybjkx4smbb4rjxf2w1xgd1v9gmz61rvl89qasznbv"))))
688 (build-system gnu-build-system)
690 `(("glib:bin" ,glib "bin") ; for glib-mkenums
691 ("pkg-config" ,pkg-config)
692 ("python" ,python-wrapper)))
694 `(("glib" ,glib))) ; required by mbim-glib.pc
696 `(("libgudev" ,libgudev)))
697 (synopsis "Library to communicate with MBIM-powered modems")
698 (home-page "https://www.freedesktop.org/wiki/Software/libmbim/")
700 "Libmbim is a GLib-based library for talking to WWAN modems and devices
701 which speak the Mobile Interface Broadband Model (MBIM) protocol.")
703 ;; The libmbim-glib library is released under the LGPLv2+ license.
704 ;; The mbimcli tool is released under the GPLv2+ license.
705 (list license:lgpl2.0+ license:gpl2+))))
707 (define-public libqmi
714 "https://www.freedesktop.org/software/" name "/"
715 name "-" version ".tar.xz"))
718 "0h009bzss4bal47nk21lyp4s3mmlcivhhaaj7r9229qvx85bi0v2"))))
719 (build-system gnu-build-system)
721 `(("glib:bin" ,glib "bin") ; for glib-mkenums
722 ("pkg-config" ,pkg-config)
723 ("python" ,python-wrapper)))
725 `(("glib" ,glib))) ; required by qmi-glib.pc
726 (synopsis "Library to communicate with QMI-powered modems")
727 (home-page "https://www.freedesktop.org/wiki/Software/libqmi/")
729 "Libqmi is a GLib-based library for talking to WWAN modems and devices
730 which speak the Qualcomm MSM Interface (QMI) protocol.")
732 ;; The libqmi-glib library is released under the LGPLv2+ license.
733 ;; The qmicli tool is released under the GPLv2+ license.
734 (list license:lgpl2.0+ license:gpl2+))))
736 (define-public modem-manager
738 (name "modem-manager")
743 "https://www.freedesktop.org/software/ModemManager/"
744 "ModemManager-" version ".tar.xz"))
747 "18hvffwcncwz14kdzk42jbkh362n0kjv3kgx7axbqx572pawvrmb"))))
748 (build-system gnu-build-system)
751 `(,(string-append "--with-udev-base-dir=" %output "/lib/udev"))))
753 `(("glib:bin" ,glib "bin") ; for glib-mkenums
754 ("gobject-introspection" ,gobject-introspection)
755 ("intltool" ,intltool)
756 ("pkg-config" ,pkg-config)
761 `(("glib" ,glib))) ; required by mm-glib.pc
763 `(("libgudev" ,libgudev)
767 (synopsis "Mobile broadband modems manager")
768 (home-page "http://www.freedesktop.org/wiki/Software/ModemManager/")
770 "ModemManager is a DBus-activated daemon which controls mobile
771 broadband (2G/3G/4G) devices and connections. Whether built-in devices, USB
772 dongles, bluetooth-paired telephones, or professional RS232/USB devices with
773 external power supplies, ModemManager is able to prepare and configure the
774 modems and setup connections with them.")
775 (license license:gpl2+)))
777 (define-public telepathy-logger
779 (name "telepathy-logger")
783 (uri (string-append "https://telepathy.freedesktop.org/releases/"
784 name "/" name "-" version ".tar.bz2"))
787 "1bjx85k7jyfi5pvl765fzc7q2iz9va51anrc2djv7caksqsdbjlg"))))
788 (build-system gnu-build-system)
790 '(#:parallel-tests? #f
792 (modify-phases %standard-phases
793 (add-before 'check 'pre-check
795 (setenv "HOME" (getenv "TMPDIR"))
798 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
799 ("gobject-introspection" ,gobject-introspection)
800 ("intltool" ,intltool)
801 ("pkg-config" ,pkg-config)
803 ("xsltproc" ,libxslt)))
805 ;; telepathy-logger-0.2.pc refers to all these.
806 `(("libxml2" ,libxml2)
808 ("telepathy-glib" ,telepathy-glib)))
809 (synopsis "Telepathy logger library")
810 (home-page "http://telepathy.freedesktop.org/")
812 "Telepathy logger is a headless observer client that logs information
813 received by the Telepathy framework. It features pluggable backends to log
814 different sorts of messages in different formats.")
815 (license license:lgpl2.1+)))
817 (define-public telepathy-idle
819 (name "telepathy-idle")
823 (uri (string-append "https://telepathy.freedesktop.org/releases/"
824 name "/" name "-" version ".tar.bz2"))
827 "1argdzbif1vdmwp5vqbgkadq9ancjmgdm2ncp0qfckni715ss4rh"))))
828 (build-system gnu-build-system)
830 `(("pkg-config" ,pkg-config)))
832 `(("xsltproc" ,libxslt)
834 ("python-dbus" ,python2-dbus)))
836 `(("telepathy-glib" ,telepathy-glib)))
837 (home-page "http://telepathy.freedesktop.org/")
838 (synopsis "Telepathy IRC connection manager")
840 "Idle is an IRC connection manager for the Telepathy framework. This
841 package enables usage of IRC channels and private messages in Telepathy instant
842 messaging clients such as Empathy, GNOME Shell or KDE Telepathy.")
843 (license (list license:lgpl2.1 license:lgpl2.1+))))
845 (define-public telepathy-mission-control
847 (name "telepathy-mission-control")
851 (uri (string-append "https://telepathy.freedesktop.org/releases/"
852 name "/" name "-" version ".tar.gz"))
855 "1jz6wwgsfxixha6ys2hbzbk5faqnj9kh2m5qdlgx5anqgandsscp"))))
856 (build-system gnu-build-system)
858 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
859 ("pkg-config" ,pkg-config)))
863 ("libgnome-keyring" ,libgnome-keyring)
865 ("xsltproc" ,libxslt)))
867 `(("telepathy-glib" ,telepathy-glib)))
868 (home-page "https://telepathy.freedesktop.org/wiki/Components/Mission_Control/")
869 (synopsis "Telepathy real-time communication framework management daemon")
871 "Telepathy Mission Control 5 is an account manager and channel dispatcher
872 for the Telepathy framework, allowing user interfaces and other clients to
873 share connections to real-time communication services without conflicting.")
874 (license license:lgpl2.1)))
876 (define-public colord-gtk
882 (uri (string-append "https://www.freedesktop.org/software/colord"
883 "/releases/" name "-" version ".tar.xz"))
886 "0i9y3bb5apj6a0f8cx36l6mjzs7xc0k7nf0magmf58vy2mzhpl18"))))
887 (build-system gnu-build-system)
888 (arguments '(#:tests? #f)) ; require the colord system service
890 `(("gobject-introspection" ,gobject-introspection)
891 ("intltool" ,intltool)
892 ("pkg-config" ,pkg-config)
895 ;; colord-gtk.pc refers to all these.
898 (synopsis "GTK integration for libcolord")
899 (home-page "http://www.freedesktop.org/software/colord/")
901 "This is a GTK+ convenience library for interacting with colord. It is
902 useful for both applications which need colour management and applications that
903 wish to perform colour calibration.")
904 (license license:lgpl2.1+)))
906 (define-public libfprint
912 (uri (string-append "https://people.freedesktop.org/~hadess/"
913 name "-" version ".tar.xz"))
916 "1giwh2z63mn45galsjb59rhyrvgwcy01hvvp4g01iaa2snvzr0r5"))))
917 (build-system gnu-build-system)
919 '(#:configure-flags (list (string-append "--with-udev-rules-dir="
920 (assoc-ref %outputs "out")
921 "/lib/udev/rules.d"))))
923 `(("pkg-config" ,pkg-config)))
930 (home-page "https://www.freedesktop.org/wiki/Software/fprint/libfprint/")
931 (synopsis "Library to access fingerprint readers")
933 "libfprint is a library designed to make it easy for application
934 developers to add support for consumer fingerprint readers to their
936 (license license:lgpl2.1+)))
938 (define-public fprintd
945 "https://people.freedesktop.org/~hadess/fprintd-"
949 "05915i0bv7q62fqrs5diqwr8dz3pwqa1c1ivcgggkjyw0xk4ldp5"))))
950 (build-system gnu-build-system)
952 '(#:phases (modify-phases %standard-phases
953 (add-before 'build 'set-sysconfdir
954 (lambda* (#:key outputs #:allow-other-keys)
955 ;; Work around a bug whereby the 'SYSCONFDIR' macro
956 ;; expands literally to '${prefix}/etc'.
957 (let ((out (assoc-ref outputs "out")))
958 (substitute* "src/main.c"
959 (("SYSCONFDIR, \"fprintd.conf\"")
960 (string-append "\"" out "/etc\", "
961 "\"fprintd.conf\"")))
964 `(("pkg-config" ,pkg-config)
965 ("intltool" ,intltool)))
967 `(("libfprint" ,libfprint)
968 ("dbus-glib" ,dbus-glib)
970 ("linux-pam" ,linux-pam))) ;for pam_fprintd
971 (home-page "https://www.freedesktop.org/wiki/Software/fprint/fprintd/")
972 (synopsis "D-Bus daemon that exposes fingerprint reader functionality")
974 "fprintd is a D-Bus daemon that offers functionality of libfprint, a
975 library to access fingerprint readers, over the D-Bus interprocess
976 communication bus. This daemon layer above libfprint solves problems related
977 to applications simultaneously competing for fingerprint readers.")
978 (license license:gpl2+)))
980 (define-public desktop-file-utils
982 (name "desktop-file-utils")
986 (uri (string-append "https://www.freedesktop.org/software/" name
987 "/releases/" name "-" version ".tar.xz"))
990 "119kj2w0rrxkhg4f9cf5waa55jz1hj8933vh47vcjipcplql02bc"))))
991 (build-system gnu-build-system)
993 `(("pkg-config" ,pkg-config)))
996 (home-page "http://www.freedesktop.org/wiki/Software/desktop-file-utils/")
997 (synopsis "Utilities for working with desktop entries")
999 "This package contains a few command line utilities for working with
1002 desktop-file-validate: validates a desktop file and prints warnings/errors
1003 about desktop entry specification violations.
1005 desktop-file-install: installs a desktop file to the applications directory,
1006 optionally munging it a bit in transit.
1008 update-desktop-database: updates the database containing a cache of MIME types
1009 handled by desktop files.")
1010 (license license:gpl2+)))
1012 (define-public xdg-user-dirs
1014 (name "xdg-user-dirs")
1018 (uri (string-append "http://user-dirs.freedesktop.org/releases/"
1019 name "-" version ".tar.gz"))
1021 (base32 "1rp3c94hxjlfsryvwajklynfnrcvxplhwnjqc7395l89i0nb83vp"))))
1022 (build-system gnu-build-system)
1024 `(("gettext" ,gettext-minimal)
1025 ("docbook-xsl" ,docbook-xsl)
1026 ("docbook-xml" ,docbook-xml-4.3)
1027 ("xsltproc" ,libxslt)))
1030 (modify-phases %standard-phases
1031 (add-before 'build 'locate-catalog-files
1032 (lambda* (#:key inputs #:allow-other-keys)
1033 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
1034 "/xml/dtd/docbook"))
1035 (xsldoc (string-append (assoc-ref inputs "docbook-xsl")
1036 "/xml/xsl/docbook-xsl-"
1037 ,(package-version docbook-xsl))))
1038 (for-each (lambda (file)
1040 (("http://.*/docbookx\\.dtd")
1041 (string-append xmldoc "/docbookx.dtd"))))
1042 (find-files "man" "\\.xml$"))
1043 (substitute* "man/Makefile"
1044 (("http://.*/docbook\\.xsl")
1045 (string-append xsldoc "/manpages/docbook.xsl")))
1047 (home-page "https://www.freedesktop.org/wiki/Software/xdg-user-dirs/")
1048 (synopsis "Tool to help manage \"well known\" user directories")
1049 (description "xdg-user-dirs is a tool to help manage \"well known\" user
1050 directories, such as the desktop folder or the music folder. It also handles
1051 localization (i.e. translation) of the file names. Designed to be
1052 automatically run when a user logs in, xdg-user-dirs can also be run
1053 manually by a user.")
1054 (license license:gpl2)))