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 Andy Wingo <wingo@pobox.com>
5 ;;; Copyright © 2015, 2016 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 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
11 ;;; This file is part of GNU Guix.
13 ;;; GNU Guix is free software; you can redistribute it and/or modify it
14 ;;; under the terms of the GNU General Public License as published by
15 ;;; the Free Software Foundation; either version 3 of the License, or (at
16 ;;; your option) any later version.
18 ;;; GNU Guix is distributed in the hope that it will be useful, but
19 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;;; GNU General Public License for more details.
23 ;;; You should have received a copy of the GNU General Public License
24 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
26 (define-module (gnu packages freedesktop)
27 #:use-module ((guix licenses) #:prefix license:)
28 #:use-module (guix packages)
29 #:use-module (guix download)
30 #:use-module (guix git-download)
31 #:use-module (guix build-system gnu)
32 #:use-module (guix build-system python)
33 #:use-module (gnu packages gnome)
34 #:use-module (gnu packages python)
35 #:use-module (gnu packages linux)
36 #:use-module (gnu packages pkg-config)
37 #:use-module (gnu packages autotools)
38 #:use-module (gnu packages gettext)
39 #:use-module (gnu packages gperf)
40 #:use-module (gnu packages graphviz)
41 #:use-module (gnu packages gtk)
42 #:use-module (gnu packages xml)
43 #:use-module (gnu packages docbook)
44 #:use-module (gnu packages glib) ;intltool
45 #:use-module (gnu packages xdisorg)
46 #:use-module (gnu packages xorg)
47 #:use-module (gnu packages boost)
48 #:use-module (gnu packages m4)
49 #:use-module (gnu packages compression)
50 #:use-module (gnu packages documentation)
51 #:use-module (gnu packages libffi)
52 #:use-module (gnu packages acl)
53 #:use-module (gnu packages admin)
54 #:use-module (gnu packages polkit)
55 #:use-module (gnu packages databases))
57 (define-public xdg-utils
65 "https://portland.freedesktop.org/download/xdg-utils-"
69 "1b019d3r1379b60p33d6z44kx589xjgga62ijz9vha95dg8vgbi1"))))
70 (build-system gnu-build-system)
72 `(("xprop" ,xprop) ; for Xfce detecting
73 ("xset" ,xset))) ; for xdg-screensaver
75 `(#:tests? #f)) ; no check target
76 (home-page "http://portland.freedesktop.org/")
77 (synopsis "Freedesktop.org scripts for desktop integration")
78 (description "The xdg-utils package is a set of simple scripts that
79 provide basic desktop integration functions in the framework of the
80 freedesktop.org project.")
81 (license license:expat)))
83 (define-public libinput
89 (uri (string-append "https://freedesktop.org/software/libinput/"
90 name "-" version ".tar.xz"))
93 "085lcxy111j8r1lwyghsc6zrysqh0vg8xip5axxsdl8r8n3i1vvn"))))
94 (build-system gnu-build-system)
96 `(("pkg-config" ,pkg-config)))
98 `(("libudev" ,eudev))) ; required by libinput.pc
100 `(("libevdev" ,libevdev)
102 ("libwacom" ,libwacom)))
103 (home-page "https://www.freedesktop.org/wiki/Software/libinput/")
104 (synopsis "Input devices handling library")
106 "Libinput is a library to handle input devices for display servers and
107 other applications that need to directly deal with input devices.")
108 (license license:x11)))
110 (define-public libinput-minimal
111 (package (inherit libinput)
112 (name "libinput-minimal")
114 `(("libevdev" ,libevdev)
118 '("--disable-libwacom")))))
120 (define-public libxdg-basedir
122 (name "libxdg-basedir")
127 "https://github.com/devnev/libxdg-basedir/archive/"
128 name "-" version ".tar.gz"))
131 "0s28c7sfwqimsmb3kn91mx7wi55fs3flhbmynl9k60rrllr00aqw"))))
132 (build-system gnu-build-system)
135 (modify-phases %standard-phases
136 (add-after 'unpack 'autogen
138 ;; Run 'configure' in its own phase, not now.
139 (substitute* "autogen.sh"
140 (("^.*\\./configure.*") ""))
141 (zero? (system* "sh" "autogen.sh")))))))
143 `(("autoconf" ,autoconf)
144 ("automake" ,automake)
145 ("libtool" ,libtool)))
146 (home-page "https://github.com/devnev/libxdg-basedir")
147 (synopsis "Implementation of the XDG Base Directory specification")
149 "libxdg-basedir is a C library providing some functions to use with
150 the freedesktop.org XDG Base Directory specification.")
151 (license license:expat)))
153 (define-public elogind
159 (uri (string-append "https://wingolog.org/pub/" name "/"
160 name "-" version ".tar.xz"))
163 "1jckc4wx199n1q4r4fv43ibjs6nlq91s39w9r78ilk1z383m1hcx"))
164 (modules '((guix build utils)))
167 (use-modules (guix build utils))
168 (substitute* "Makefile.am"
169 ;; Avoid validation against DTD because the DTDs for
170 ;; both doctype 4.2 and 4.5 are needed.
171 (("XSLTPROC_FLAGS = ") "XSLTPROC_FLAGS = --novalid"))))))
172 (build-system gnu-build-system)
175 (list (string-append "--with-libcap="
176 (assoc-ref %build-inputs "libcap"))
177 (string-append "--with-udevrulesdir="
178 (assoc-ref %outputs "out")
179 "/lib/udev/rules.d"))
180 #:make-flags '("PKTTYAGENT=/run/current-system/profile/bin/pkttyagent")
181 #:phases (modify-phases %standard-phases
182 (add-before 'build 'fix-service-file
183 (lambda* (#:key outputs #:allow-other-keys)
184 ;; Fix the file name of the 'elogind' binary in the D-Bus
186 (substitute* "src/login/org.freedesktop.login1.service"
188 (string-append "Exec=" (assoc-ref %outputs "out")
189 "/libexec/elogind/elogind\n"))))))))
191 `(("intltool" ,intltool)
192 ("gettext" ,gnu-gettext)
193 ("docbook-xsl" ,docbook-xsl)
194 ("docbook-xml" ,docbook-xml)
195 ("xsltproc" ,libxslt)
197 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
198 ("pkg-config" ,pkg-config)
201 `(("linux-pam" ,linux-pam)
202 ("linux-libre-headers" ,linux-libre-headers)
204 ("shepherd" ,shepherd) ;for 'halt' and 'reboot', invoked
205 ;when pressing the power button
208 (home-page "https://github.com/wingo/elogind")
209 (synopsis "User, seat, and session management service")
210 (description "Elogind is the systemd project's \"logind\" service,
211 extracted out as a separate project. Elogind integrates with PAM to provide
212 the org.freedesktop.login1 interface over the system bus, allowing other parts
213 of a the system to know what users are logged in, and where.")
214 (license license:lgpl2.1+)))
216 (define-public python-pyxdg
218 (name "python-pyxdg")
224 "https://pypi.python.org/packages/source/p/pyxdg/pyxdg-"
228 "179767h8m634ydlm4v8lnz01ba42gckfp684id764zaip7h87s41"))))
229 (build-system python-build-system)
234 (lambda* (#:key inputs #:allow-other-keys)
235 (setenv "XDG_DATA_DIRS"
236 (string-append (assoc-ref inputs "shared-mime-info")
238 (substitute* "test/test-icon.py"
239 (("/usr/share/icons/hicolor/index.theme")
240 (string-append (assoc-ref inputs "hicolor-icon-theme")
241 "/share/icons/hicolor/index.theme")))
243 ;; One test fails with:
244 ;; AssertionError: 'x-apple-ios-png' != 'png'
245 (substitute* "test/test-mime.py"
246 (("self.check_mimetype\\(imgpng, 'image', 'png'\\)") "#"))
247 (zero? (system* "nosetests" "-v")))
250 `(("shared-mime-info" ,shared-mime-info) ;for tests
251 ("hicolor-icon-theme" ,hicolor-icon-theme) ;for tests
252 ("python-nose" ,python-nose)
253 ("python-setuptools" ,python-setuptools)))
254 (home-page "http://freedesktop.org/wiki/Software/pyxdg")
255 (synopsis "Implementations of freedesktop.org standards in Python")
257 "PyXDG is a collection of implementations of freedesktop.org standards in
259 (license license:lgpl2.0)))
261 (define-public python2-pyxdg
262 (package-with-python2 python-pyxdg))
264 (define-public wayland
270 (uri (string-append "https://wayland.freedesktop.org/releases/"
271 name "-" version ".tar.xz"))
274 "1c0d5ivy9n44hykvw2ggrvqrnn7naw3wg11vbvgwzgi8g5gr4h4m"))))
275 (build-system gnu-build-system)
276 (arguments `(#:parallel-tests? #f))
278 `(("doxygen" ,doxygen)
279 ("graphviz" ,graphviz)
280 ("pkg-config" ,pkg-config)
282 ("xsltproc" ,libxslt)))
284 `(("docbook-xml" ,docbook-xml)
285 ("docbook-xsl" ,docbook-xsl)
288 ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
289 (home-page "https://wayland.freedesktop.org/")
290 (synopsis "Display server protocol")
292 "Wayland is a protocol for a compositor to talk to its clients as well as
293 a C library implementation of that protocol. The compositor can be a standalone
294 display server running on Linux kernel modesetting and evdev input devices, an X
295 application, or a wayland client itself. The clients can be traditional
296 applications, X servers (rootless or fullscreen) or other display servers.")
297 (license license:x11)))
299 (define-public wayland-protocols
301 (name "wayland-protocols")
306 "https://wayland.freedesktop.org/releases/"
307 "wayland-protocols-" version ".tar.xz"))
310 "0wpm7mz7ww6nn3vrgz7a9iyk7mk6za73wnq0n54lzl8yq8irljh1"))))
311 (build-system gnu-build-system)
313 `(("wayland" ,wayland)))
315 `(("pkg-config" ,pkg-config)))
316 (synopsis "Wayland protocols")
317 (description "This package contains XML definitions of the Wayland protocols.")
318 (home-page "https://wayland.freedesktop.org")
319 (license license:expat)))
321 (define-public exempi
328 "https://libopenraw.freedesktop.org/download/"
329 name "-" version ".tar.bz2"))
332 "0jcrv3w8m415cq8xi886hcxfqbrn5dczxbzybx9bhf3dbqsyv6nq"))))
333 (build-system gnu-build-system)
335 `(#:configure-flags (list (string-append "--with-boost="
336 (assoc-ref %build-inputs "boost")))))
338 `(("boost" ,boost))) ; tests
342 (home-page "https://wiki.freedesktop.org/libopenraw/Exempi")
343 (synopsis "XMP metadata handling library")
344 (description "Exempi is an implementation of the Extensible Metadata
345 Platform (XMP), which enables embedding metadata in PDF and image formats.")
346 (license license:bsd-3)))
348 (define-public libatasmart
354 (uri (string-append "http://0pointer.de/public/"
355 name "-" version ".tar.xz"))
358 "138gvgdwk6h4ljrjsr09pxk1nrki4b155hqdzyr8mlk3bwsfmw31"))))
359 (build-system gnu-build-system)
361 `(("pkg-config" ,pkg-config)))
364 (home-page "http://0pointer.de/blog/projects/being-smart.html")
365 (synopsis "ATA S.M.A.R.T. reading and parsing library")
367 "This library supports a subset of the ATA S.M.A.R.T. (Self-Monitoring,
368 Analysis and Reporting Technology) functionality.")
369 (license license:lgpl2.1+)))
371 (define-public udisks
377 (uri (string-append "https://udisks.freedesktop.org/releases/"
378 name "-" version ".tar.bz2"))
381 "119pr2zbff8vkwlhghim7d7ir24c1dil9hp4q49wm4f6pnrjpbmb"))))
382 (build-system gnu-build-system)
384 `(("glib:bin" ,glib "bin") ; for glib-mkenums
385 ("gobject-introspection" ,gobject-introspection)
386 ("intltool" ,intltool)
387 ("pkg-config" ,pkg-config)
388 ("xsltproc" ,libxslt)))
390 `(("glib" ,glib))) ; required by udisks2.pc
393 ("libatasmart" ,libatasmart)
394 ("libgudev" ,libgudev)
396 ("util-linux" ,util-linux)))
398 "doc")) ;5 MiB of gtk-doc HTML
400 `(#:tests? #f ; requiring system message dbus
401 #:disallowed-references ("doc") ;enforce separation of "doc"
403 (list "--disable-man"
404 "--localstatedir=/var"
405 "--enable-fhs-media" ;mount devices in /media, not /run/media
406 (string-append "--with-html-dir="
407 (assoc-ref %outputs "doc")
408 "/share/doc/udisks/html")
409 (string-append "--with-udevdir=" %output "/lib/udev"))
411 (modify-phases %standard-phases
413 'configure 'fix-girdir
415 ;; Install introspection data to its own output.
416 (substitute* "udisks/Makefile.in"
418 "girdir = $(datadir)/gir-1.0\n")
419 (("typelibsdir = .*")
420 "typelibsdir = $(libdir)/girepository-1.0\n"))))
421 (add-after 'install 'set-mount-file-name
422 (lambda* (#:key outputs inputs #:allow-other-keys)
423 ;; Tell 'udisksd' where to find the 'mount' command.
424 (let ((out (assoc-ref outputs "out"))
425 (utils (assoc-ref inputs "util-linux")))
426 (wrap-program (string-append out "/libexec/udisks2/udisksd")
428 (,(string-append utils "/bin") ;for 'mount'
429 "/run/current-system/profile/bin"
430 "/run/current-system/profile/sbin")))
432 (home-page "http://www.freedesktop.org/wiki/Software/udisks/")
433 (synopsis "Disk manager service")
435 "UDisks provides interfaces to enumerate and perform operations on disks
436 and storage devices. Any application (including unprivileged ones) can access
437 the udisksd(8) daemon via the name org.freedesktop.UDisks2 on the system
439 ;; The dynamic library are under LGPLv2+, others are GPLv2+.
440 (license (list license:gpl2+ license:lgpl2.0+))))
442 (define-public accountsservice
444 (name "accountsservice")
448 (uri (string-append "https://www.freedesktop.org/software/"
449 name "/" name "-" version ".tar.xz"))
452 "0ayb3y3l25dmwxlh9g071h02mphjfbkvi2k5f635bayb01k7akzh"))))
453 (build-system gnu-build-system)
455 '(#:tests? #f ; XXX: tests require DocBook 4.1.2
457 '("--localstatedir=/var")
459 (modify-phases %standard-phases
461 'configure 'pre-configure
463 ;; Don't try to create /var/lib/AccoutsService.
464 (substitute* "src/Makefile.in"
465 (("\\$\\(MKDIR_P\\).*/lib/AccountsService.*") "true")))))))
467 `(("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
468 ("gobject-introspection" ,gobject-introspection)
469 ("intltool" ,intltool)
470 ("pkg-config" ,pkg-config)))
472 `(("polkit" ,polkit)))
473 (home-page "http://www.freedesktop.org/wiki/Software/AccountsService/")
474 (synopsis "D-Bus interface for user account query and manipulation")
476 "The AccountService project provides a set of D-Bus interfaces for querying
477 and manipulating user account information and an implementation of these
478 interfaces, based on the useradd, usermod and userdel commands.")
479 (license license:gpl3+)))
481 (define-public libmbim
488 "https://www.freedesktop.org/software/" name "/"
489 name "-" version ".tar.xz"))
492 "0flpgzsqpjgybjkx4smbb4rjxf2w1xgd1v9gmz61rvl89qasznbv"))))
493 (build-system gnu-build-system)
495 `(("glib:bin" ,glib "bin") ; for glib-mkenums
496 ("pkg-config" ,pkg-config)
497 ("python" ,python-wrapper)))
499 `(("glib" ,glib))) ; required by mbim-glib.pc
501 `(("libgudev" ,libgudev)))
502 (synopsis "Library to communicate with MBIM-powered modems")
503 (home-page "https://www.freedesktop.org/wiki/Software/libmbim/")
505 "Libmbim is a GLib-based library for talking to WWAN modems and devices
506 which speak the Mobile Interface Broadband Model (MBIM) protocol.")
508 ;; The libmbim-glib library is released under the LGPLv2+ license.
509 ;; The mbimcli tool is released under the GPLv2+ license.
510 (list license:lgpl2.0+ license:gpl2+))))
512 (define-public libqmi
519 "https://www.freedesktop.org/software/" name "/"
520 name "-" version ".tar.xz"))
523 "0h009bzss4bal47nk21lyp4s3mmlcivhhaaj7r9229qvx85bi0v2"))))
524 (build-system gnu-build-system)
526 `(("glib:bin" ,glib "bin") ; for glib-mkenums
527 ("pkg-config" ,pkg-config)
528 ("python" ,python-wrapper)))
530 `(("glib" ,glib))) ; required by qmi-glib.pc
531 (synopsis "Library to communicate with QMI-powered modems")
532 (home-page "https://www.freedesktop.org/wiki/Software/libqmi/")
534 "Libqmi is a GLib-based library for talking to WWAN modems and devices
535 which speak the Qualcomm MSM Interface (QMI) protocol.")
537 ;; The libqmi-glib library is released under the LGPLv2+ license.
538 ;; The qmicli tool is released under the GPLv2+ license.
539 (list license:lgpl2.0+ license:gpl2+))))
541 (define-public modem-manager
543 (name "modem-manager")
548 "https://www.freedesktop.org/software/ModemManager/"
549 "ModemManager-" version ".tar.xz"))
552 "18hvffwcncwz14kdzk42jbkh362n0kjv3kgx7axbqx572pawvrmb"))))
553 (build-system gnu-build-system)
556 `(,(string-append "--with-udev-base-dir=" %output "/lib/udev"))))
558 `(("glib:bin" ,glib "bin") ; for glib-mkenums
559 ("gobject-introspection" ,gobject-introspection)
560 ("intltool" ,intltool)
561 ("pkg-config" ,pkg-config)
566 `(("glib" ,glib))) ; required by mm-glib.pc
568 `(("libgudev" ,libgudev)
572 (synopsis "Mobile broadband modems manager")
573 (home-page "http://www.freedesktop.org/wiki/Software/ModemManager/")
575 "ModemManager is a DBus-activated daemon which controls mobile
576 broadband (2G/3G/4G) devices and connections. Whether built-in devices, USB
577 dongles, bluetooth-paired telephones, or professional RS232/USB devices with
578 external power supplies, ModemManager is able to prepare and configure the
579 modems and setup connections with them.")
580 (license license:gpl2+)))
582 (define-public telepathy-logger
584 (name "telepathy-logger")
588 (uri (string-append "https://telepathy.freedesktop.org/releases/"
589 name "/" name "-" version ".tar.bz2"))
592 "1bjx85k7jyfi5pvl765fzc7q2iz9va51anrc2djv7caksqsdbjlg"))))
593 (build-system gnu-build-system)
595 '(#:parallel-tests? #f
597 (modify-phases %standard-phases
598 (add-before 'check 'pre-check
600 (setenv "HOME" (getenv "TMPDIR"))
603 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
604 ("gobject-introspection" ,gobject-introspection)
605 ("intltool" ,intltool)
606 ("pkg-config" ,pkg-config)
608 ("xsltproc" ,libxslt)))
610 ;; telepathy-logger-0.2.pc refers to all these.
611 `(("libxml2" ,libxml2)
613 ("telepathy-glib" ,telepathy-glib)))
614 (synopsis "Telepathy logger library")
615 (home-page "http://telepathy.freedesktop.org/")
617 "Telepathy logger is a headless observer client that logs information
618 received by the Telepathy framework. It features pluggable backends to log
619 different sorts of messages in different formats.")
620 (license license:lgpl2.1+)))
622 (define-public telepathy-idle
624 (name "telepathy-idle")
628 (uri (string-append "https://telepathy.freedesktop.org/releases/"
629 name "/" name "-" version ".tar.bz2"))
632 "1argdzbif1vdmwp5vqbgkadq9ancjmgdm2ncp0qfckni715ss4rh"))))
633 (build-system gnu-build-system)
635 `(("pkg-config" ,pkg-config)))
637 `(("xsltproc" ,libxslt)
639 ("python-dbus" ,python2-dbus)))
641 `(("telepathy-glib" ,telepathy-glib)))
642 (home-page "http://telepathy.freedesktop.org/")
643 (synopsis "Telepathy IRC connection manager")
645 "Idle is an IRC connection manager for the Telepathy framework. This
646 package enables usage of IRC channels and private messages in Telepathy instant
647 messaging clients such as Empathy, GNOME Shell or KDE Telepathy.")
648 (license (list license:lgpl2.1 license:lgpl2.1+))))
650 (define-public telepathy-mission-control
652 (name "telepathy-mission-control")
656 (uri (string-append "https://telepathy.freedesktop.org/releases/"
657 name "/" name "-" version ".tar.bz2"))
660 "0zcbx69k0d3p2pjh3g7sa3q2zkd5xchxkqsmlfn3fwxaz0pmsmvi"))))
661 (build-system gnu-build-system)
663 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
664 ("pkg-config" ,pkg-config)))
668 ("libgnome-keyring" ,libgnome-keyring)
670 ("xsltproc" ,libxslt)))
672 `(("telepathy-glib" ,telepathy-glib)))
673 (home-page "https://telepathy.freedesktop.org/wiki/Components/Mission_Control/")
674 (synopsis "Telepathy real-time communication framework management daemon")
676 "Telepathy Mission Control 5 is an account manager and channel dispatcher
677 for the Telepathy framework, allowing user interfaces and other clients to
678 share connections to real-time communication services without conflicting.")
679 (license license:lgpl2.1)))
681 (define-public colord-gtk
687 (uri (string-append "https://www.freedesktop.org/software/colord"
688 "/releases/" name "-" version ".tar.xz"))
691 "0i9y3bb5apj6a0f8cx36l6mjzs7xc0k7nf0magmf58vy2mzhpl18"))))
692 (build-system gnu-build-system)
693 (arguments '(#:tests? #f)) ; require the colord system service
695 `(("gobject-introspection" ,gobject-introspection)
696 ("intltool" ,intltool)
697 ("pkg-config" ,pkg-config)
700 ;; colord-gtk.pc refers to all these.
703 (synopsis "GTK integration for libcolord")
704 (home-page "http://www.freedesktop.org/software/colord/")
706 "This is a GTK+ convenience library for interacting with colord. It is
707 useful for both applications which need colour management and applications that
708 wish to perform colour calibration.")
709 (license license:lgpl2.1+)))