1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2015, 2022 Sou Bunnbu <iyzsong@gmail.com>
4 ;;; Copyright © 2016 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
6 ;;; Copyright © 2017 Nikita <nikita@n0.is>
7 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2018, 2019 Meiyo Peng <meiyo@riseup.net>
9 ;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
10 ;;; Copyright © 2019, 2020 Reza Alizadeh Majd <r.majd@pantherx.org>
11 ;;; Copyright © 2020 Fakhri Sajadi <f.sajadi@pantherx.org>
12 ;;; Copyright © 2020 André Batista <nandre@riseup.net>
13 ;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
15 ;;; This file is part of GNU Guix.
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30 (define-module (gnu packages lxqt)
31 #:use-module (guix download)
32 #:use-module (guix git-download)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (guix gexp)
35 #:use-module (guix packages)
36 #:use-module (guix utils)
37 #:use-module (guix build-system cmake)
38 #:use-module (guix build-system gnu)
39 #:use-module (guix build-system trivial)
40 #:use-module (gnu packages)
41 #:use-module (gnu packages admin)
42 #:use-module (gnu packages compression)
43 #:use-module (gnu packages documentation)
44 #:use-module (gnu packages compton)
45 #:use-module (gnu packages fonts)
46 #:use-module (gnu packages freedesktop)
47 #:use-module (gnu packages glib)
48 #:use-module (gnu packages gnome)
49 #:use-module (gnu packages gtk)
50 #:use-module (gnu packages image)
51 #:use-module (gnu packages kde-frameworks)
52 #:use-module (gnu packages kde-plasma)
53 #:use-module (gnu packages linux)
54 #:use-module (gnu packages perl)
55 #:use-module (gnu packages lxde)
56 #:use-module (gnu packages maths)
57 #:use-module (gnu packages openbox)
58 #:use-module (gnu packages pcre)
59 #:use-module (gnu packages photo)
60 #:use-module (gnu packages pkg-config)
61 #:use-module (gnu packages polkit)
62 #:use-module (gnu packages pulseaudio)
63 #:use-module (gnu packages qt)
64 #:use-module (gnu packages textutils)
65 #:use-module (gnu packages xdisorg)
66 #:use-module (gnu packages xml)
67 #:use-module (gnu packages xorg))
70 ;; Third party libraries
72 (define-public libdbusmenu-qt
74 (name "libdbusmenu-qt")
75 (version "0.9.3+16.04.20160218-0ubuntu1")
79 ;; Download from github rather than launchpad because launchpad trunk
80 ;; tarball hash is not deterministic.
82 (url "https://github.com/unity8-team/libdbusmenu-qt")
84 (file-name (git-file-name name version))
86 (base32 "0b7ii1cvmpcyl79gqal9c3va9m55h055s4hx7fpxkhhqs9463ggg"))))
87 (build-system cmake-build-system)
89 ;; XXX: Tests require a dbus session and some icons.
95 (home-page "https://launchpad.net/libdbusmenu-qt")
96 (synopsis "Qt implementation of the DBusMenu spec")
97 (description "This library provides a Qt implementation of the DBusMenu
98 protocol. The DBusMenu protocol makes it possible for applications to export
99 and import their menus over DBus.")
100 (license license:lgpl2.1+)))
102 (define-public libstatgrab
109 (uri (string-append "https://ftp.i-scream.org/pub/i-scream/libstatgrab/"
110 name "-" version ".tar.gz"))
112 (base32 "04bcbln3qlilxsyh5hrwdrv7x4pfv2lkwdwa98bxfismd15am22n"))))
113 (build-system gnu-build-system)
115 '(#:configure-flags '("--enable-tests"
116 "--disable-static")))
120 (home-page "https://www.i-scream.org/libstatgrab/")
121 (synopsis "Provides access to statistics about the system")
122 (description "libstatgrab is a library that provides cross platform access
123 to statistics about the system on which it's run.")
124 ;; Libraries are under LGPL2.1+, and programs under GPLv2+.
125 (license license:gpl2+)))
130 (define-public lxqt-build-tools
132 (name "lxqt-build-tools")
137 (uri (string-append "https://github.com/lxqt/lxqt-build-tools/releases"
139 "/lxqt-build-tools-" version ".tar.xz"))
141 (base32 "1ff1pkrlxd8h0j8v49p6wrfhnqrz8s5b53hi835m41cvkzjljpfx"))))
142 (build-system cmake-build-system)
145 #:tests? #f ; no tests
146 #:modules `((ice-9 regex)
147 (guix build cmake-build-system)
149 ;; In phases and configure-flags: Set LXQT_TRANSLATIONS_DIR,
150 ;; LXQT_DATA_DIR, etc. to relative paths, so that packages using
151 ;; LXQtConfigVars.cmake from lxqt-build-tools will install translations
152 ;; and data files into their outputs, remove the need to patch their
155 #~(modify-phases %standard-phases
156 (add-after 'install 'patch-LXQtConfigVars.cmake
158 (substitute* (string-append #$output
159 "/share/cmake/lxqt-build-tools"
160 "/modules/LXQtConfigVars.cmake")
161 (((regexp-quote (string-append #$output "/"))) "")))))
163 #~(list "-DLXQT_ETC_XDG_DIR=etc/xdg")))
165 (list pkg-config glib))
169 ;; Dependent projects require Perl via the CMake files.
171 (synopsis "LXQt Build tools")
173 "Lxqt-build-tools is providing several tools needed to build LXQt
174 itself as well as other components maintained by the LXQt project.")
175 (home-page "https://lxqt-project.org")
176 (license license:lgpl2.1+)))
178 (define-public libqtxdg
186 "https://github.com/lxqt/libqtxdg/releases/download/"
187 version "/libqtxdg-" version ".tar.xz"))
189 (base32 "1kh4hv59bkjifq20ksh1mizf9mp7x30v6fpwccr45mi7hasqvvfi"))))
190 (build-system cmake-build-system)
194 "-DQTXDGX_ICONENGINEPLUGIN_INSTALL_PATH=lib/qt5/plugins/iconengines")
196 (modify-phases %standard-phases
197 (add-before 'check 'pre-check
199 ;; Run the tests offscreen.
200 (setenv "QT_QPA_PLATFORM" "offscreen")
203 ;; required by Qt5XdgIconLoader.pc
204 (list glib qtbase-5 qtsvg-5))
206 (list lxqt-build-tools pkg-config))
207 (home-page "https://github.com/lxqt/libqtxdg")
208 (synopsis "Qt implementation of freedesktop.org xdg specifications")
209 (description "Libqtxdg implements the freedesktop.org xdg specifications
211 (license license:lgpl2.1+)))
213 (define-public qtxdg-tools
221 "https://github.com/lxqt/qtxdg-tools/releases/download/"
222 version "/qtxdg-tools-" version ".tar.xz"))
224 (base32 "0qn35v4dv71g0a4cqkbikppwmihxmfa560q9kw5pwk2y0xiwpncr"))))
225 (build-system cmake-build-system)
226 (arguments '(#:tests? #f)) ; no tests
227 (propagated-inputs (list libqtxdg))
228 (native-inputs (list lxqt-build-tools))
229 (home-page "https://github.com/lxqt/qtxdg-tools")
230 (synopsis "User tools for libqtxdg")
231 (description "This package contains a CLI MIME tool, @command{qtxdg-mat},
232 for handling file associations and opening files with their default
234 (license license:lgpl2.1+)))
236 (define-public liblxqt
244 "https://github.com/lxqt/" name "/releases/download/"
245 version "/" name "-" version ".tar.xz"))
247 (base32 "1fickg1q54pcb8bv3x0ydg4xx02cqykibnjcq09as2kws6xbhk9n"))))
248 (build-system cmake-build-system)
250 `(#:tests? #f ; no tests
252 (modify-phases %standard-phases
253 (add-after 'unpack 'patch-source
255 (substitute* "CMakeLists.txt"
256 (("DESTINATION \"\\$\\{POLKITQT-1_POLICY_FILES_INSTALL_DIR\\}")
257 "DESTINATION \"share/polkit-1/actions"))
267 (list lxqt-build-tools qttools-5))
268 (home-page "https://lxqt-project.org")
269 (synopsis "Core utility library for all LXQt components")
270 (description "liblxqt provides the basic libraries shared by the
271 components of the LXQt desktop environment.")
272 (license license:lgpl2.1+)))
274 (define-public libsysstat
281 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
282 version "/" name "-" version ".tar.xz"))
284 (base32 "1ghkzgz3ypjii08f00g26pnmw0s5naf344p83dwnf3kfdlykiip6"))))
285 (build-system cmake-build-system)
286 (arguments '(#:tests? #f)) ; no tests
290 (list lxqt-build-tools))
291 (home-page "https://lxqt-project.org")
292 (synopsis "Library used to query system info and statistics")
293 (description "libsysstat is a library to query system information like CPU
294 and memory usage or network traffic.")
295 (license license:lgpl2.1+)))
300 (define-public lxqt-about
307 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
308 version "/" name "-" version ".tar.xz"))
310 (base32 "04riqf2xgbcnq67l5zb0dfnnmc4a2zljx8zfn3jlvxirnd73l0zm"))))
311 (build-system cmake-build-system)
320 (list lxqt-build-tools qttools-5))
322 '(#:tests? #f ; no tests
324 (modify-phases %standard-phases
325 (add-before 'build 'setenv
327 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
329 (add-after 'unpack 'patch-translations-dir
330 (lambda* (#:key outputs #:allow-other-keys)
331 (substitute* "CMakeLists.txt"
332 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
333 (string-append (assoc-ref outputs "out")
334 "/share/lxqt/translations")))
336 (home-page "https://lxqt-project.org")
337 (synopsis "Provides information about LXQt and the system")
338 (description "lxqt-about is a dialogue window providing information about
339 LXQt and the system it's running on.")
340 (license license:lgpl2.1+)))
342 (define-public lxqt-admin
349 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
350 version "/" name "-" version ".tar.xz"))
352 (base32 "07fkn3zmpfxjzzsv1hyv50sx0359n10lxjil35qn266nz165wj43"))))
353 (build-system cmake-build-system)
362 (list lxqt-build-tools qttools-5))
364 '(#:tests? #f ; no tests
366 (modify-phases %standard-phases
367 (add-after 'unpack 'patch-source
369 (substitute* '("lxqt-admin-user/CMakeLists.txt"
370 "lxqt-admin-time/CMakeLists.txt")
371 (("DESTINATION \"\\$\\{POLKITQT-1_POLICY_FILES_INSTALL_DIR\\}")
372 "DESTINATION \"share/polkit-1/actions"))
374 (add-after 'unpack 'patch-translations-dir
375 (lambda* (#:key outputs #:allow-other-keys)
376 (substitute* '("lxqt-admin-time/CMakeLists.txt"
377 "lxqt-admin-user/CMakeLists.txt")
378 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
379 (string-append (assoc-ref outputs "out")
380 "/share/lxqt/translations")))
382 (home-page "https://lxqt-project.org")
383 (synopsis "LXQt system administration tool")
384 (description "lxqt-admin is providing two GUI tools to adjust settings of
385 the operating system LXQt is running on.")
386 (license license:lgpl2.1+)))
388 (define-public lxqt-config
395 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
396 version "/" name "-" version ".tar.xz"))
398 (base32 "0nr43d6fyc5zg4b3iwpca2cy58ry8q0rahrk6ixm7wrvmaiwkh93"))))
399 (build-system cmake-build-system)
415 (list pkg-config lxqt-build-tools qttools-5))
416 ;; XXX: This is a workaround so libkscreen can find the backends as we
417 ;; dont have a way specify them. We may want to patch like Nix does.
421 '(#:tests? #f ; no tests
423 (modify-phases %standard-phases
424 (add-after 'unpack 'patch-source
426 (substitute* '("src/CMakeLists.txt")
427 (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
428 "DESTINATION \"etc/xdg"))
430 (add-after 'unpack 'set-xkeyboard-config-file-name
431 (lambda* (#:key inputs #:allow-other-keys)
432 ;; Set the file name to xkeyboard-config.
433 (let ((xkb (assoc-ref inputs "xkeyboard-config")))
434 (substitute* "lxqt-config-input/keyboardlayoutconfig.h"
435 (("/usr/share/X11/xkb/rules/base.lst")
436 (string-append xkb "/share/X11/xkb/rules/base.lst")))
438 (add-after 'unpack 'patch-translations-dir
439 (lambda* (#:key outputs #:allow-other-keys)
440 (substitute* '("lxqt-config-file-associations/CMakeLists.txt"
441 "lxqt-config-brightness/CMakeLists.txt"
442 "lxqt-config-appearance/CMakeLists.txt"
443 "lxqt-config-locale/CMakeLists.txt"
444 "lxqt-config-monitor/CMakeLists.txt"
445 "lxqt-config-input/CMakeLists.txt"
446 "liblxqt-config-cursor/CMakeLists.txt"
447 "src/CMakeLists.txt")
448 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
449 (string-append (assoc-ref outputs "out")
450 "/share/lxqt/translations")))
452 (home-page "https://lxqt-project.org")
453 (synopsis "Tools to configure LXQt and the underlying operating system")
454 (description "lxqt-config is providing several tools involved in the
455 configuration of both LXQt and the underlying operating system.")
456 (license license:lgpl2.1+)))
458 (define-public lxqt-globalkeys
460 (name "lxqt-globalkeys")
465 (uri (string-append "https://github.com/lxqt/lxqt-globalkeys/"
466 "releases/download/" version "/"
467 "lxqt-globalkeys-" version ".tar.xz"))
469 (base32 "0pnyqiqhaawrnyvw3ljp850d911abaalnl4rgvl2xyzybvlhki4h"))))
470 (build-system cmake-build-system)
479 (list pkg-config qttools-5 lxqt-build-tools))
481 '(#:tests? #f ; no tests
483 (modify-phases %standard-phases
484 (add-after 'unpack 'patch-source
486 (substitute* '("autostart/CMakeLists.txt"
487 "xdg/CMakeLists.txt")
488 (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
489 "DESTINATION \"etc/xdg"))
491 (add-after 'unpack 'patch-translations-dir
492 (lambda* (#:key outputs #:allow-other-keys)
493 (substitute* "config/CMakeLists.txt"
494 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
495 (string-append (assoc-ref outputs "out")
496 "/share/lxqt/translations")))
498 (home-page "https://lxqt-project.org")
499 (synopsis "Daemon used to register global keyboard shortcuts")
500 (description "lxqt-globalkeys is providing tools to set global keyboard
501 shortcuts in LXQt sessions, that is shortcuts which apply to the LXQt session
502 as a whole and are not limited to distinct applications.")
503 (license license:lgpl2.1+)))
505 (define-public lxqt-notificationd
507 (name "lxqt-notificationd")
512 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
513 version "/" name "-" version ".tar.xz"))
515 (base32 "1dyal7brmfnydfgb6lpxnqww8fj5gzixs7s3wf5nn2ihsz1wm4nk"))))
516 (build-system cmake-build-system)
525 (list lxqt-build-tools qttools-5))
527 '(#:tests? #f ; no test target
529 (modify-phases %standard-phases
530 (add-after 'unpack 'patch-source
532 (substitute* '("autostart/CMakeLists.txt")
533 (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
534 "DESTINATION \"etc/xdg"))
536 (add-after 'unpack 'patch-translations-dir
537 (lambda* (#:key outputs #:allow-other-keys)
538 (substitute* '("config/CMakeLists.txt"
539 "src/CMakeLists.txt")
540 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
541 (string-append (assoc-ref outputs "out")
542 "/share/lxqt/translations")))
544 (home-page "https://lxqt-project.org")
545 (synopsis "The LXQt notification daemon")
546 (description "lxqt-notificationd is LXQt's implementation of a daemon
547 according to the Desktop Notifications Specification.")
548 (license license:lgpl2.1+)))
550 (define-public lxqt-openssh-askpass
552 (name "lxqt-openssh-askpass")
557 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
558 version "/" name "-" version ".tar.xz"))
560 (base32 "0gdcy8c21sbfrlfz9c3zqw4dvdwf309flkjgqanwwl9i8hr26chr"))))
561 (build-system cmake-build-system)
570 (list lxqt-build-tools qttools-5))
572 '(#:tests? #f ; no tests
574 (modify-phases %standard-phases
575 (add-after 'unpack 'patch-translations-dir
576 (lambda* (#:key outputs #:allow-other-keys)
577 (substitute* "CMakeLists.txt"
578 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
579 (string-append (assoc-ref outputs "out")
580 "/share/lxqt/translations")))
582 (home-page "https://lxqt-project.org")
583 (synopsis "GUI to query passwords on behalf of SSH agents")
584 (description "lxqt-openssh-askpass is a GUI to query credentials on behalf
586 (license license:lgpl2.1+)))
588 (define-public lxqt-panel
595 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
596 version "/" name "-" version ".tar.xz"))
598 (base32 "1k2cfs1mhad486kh93vbxma3jpjksp4hzjv1xmp1g5alb5dgnc0q"))))
599 (build-system cmake-build-system)
623 (list pkg-config lxqt-build-tools qttools-5))
625 ;; Propagating KWINDOWSYSTEM so that the list of opened applications
626 ;; shows up in lxqt-panel's taskbar plugin.
627 (list kwindowsystem lxmenu-data))
629 '(#:tests? #f ; no tests
631 (modify-phases %standard-phases
632 (add-after 'unpack 'patch-source
634 (substitute* '("autostart/CMakeLists.txt"
635 "menu/CMakeLists.txt")
636 (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
637 "DESTINATION \"etc/xdg"))
639 (add-after 'unpack 'patch-translations-dir
640 (lambda* (#:key outputs #:allow-other-keys)
641 (substitute* '("cmake/BuildPlugin.cmake"
642 "panel/CMakeLists.txt")
643 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
644 (string-append (assoc-ref outputs "out")
645 "/share/lxqt/translations")))
647 (add-after 'unpack 'set-xkeyboard-config-file-path
648 (lambda* (#:key inputs #:allow-other-keys)
649 ;; Set the path to xkeyboard-config.
650 (let ((xkb (assoc-ref inputs "xkeyboard-config")))
651 (substitute* "plugin-kbindicator/src/x11/kbdlayout.cpp"
652 (("/usr/share/X11/xkb/rules/evdev.xml")
653 (string-append xkb "/share/X11/xkb/rules/evdev.xml")))
655 (home-page "https://lxqt-project.org")
656 (synopsis "The LXQt desktop panel")
657 (description "lxqt-panel represents the taskbar of LXQt.")
658 (license license:lgpl2.1+)))
660 (define-public lxqt-policykit
662 (name "lxqt-policykit")
667 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
668 version "/" name "-" version ".tar.xz"))
670 (base32 "119bjhx208g7wxmr8r0ajb3wl6vagq1aks6zz07df4bgjs3nnpli"))))
671 (build-system cmake-build-system)
682 (list pkg-config polkit lxqt-build-tools qttools-5))
684 '(#:tests? #f ; no test target
686 (modify-phases %standard-phases
687 (add-after 'unpack 'patch-source
689 (substitute* '("autostart/CMakeLists.txt")
690 (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
691 "DESTINATION \"etc/xdg"))
693 (add-after 'unpack 'patch-translations-dir
694 (lambda* (#:key outputs #:allow-other-keys)
695 (substitute* "CMakeLists.txt"
696 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
697 (string-append (assoc-ref outputs "out")
698 "/share/lxqt/translations")))
700 (home-page "https://lxqt-project.org")
701 (synopsis "The LXQt PolicyKit agent")
702 (description "lxqt-policykit is the polkit authentication agent of
704 (license license:lgpl2.1+)))
706 (define-public lxqt-powermanagement
708 (name "lxqt-powermanagement")
713 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
714 version "/" name "-" version ".tar.xz"))
716 (base32 "00njx8a8cs0zzpz798qc9j16k7i4y0ydy1xmmcq9yv0wawh4gqck"))))
717 (build-system cmake-build-system)
729 (list lxqt-build-tools qttools-5))
731 '(#:tests? #f ; no tests
733 (modify-phases %standard-phases
734 (add-after 'unpack 'patch-source
736 (substitute* '("autostart/CMakeLists.txt")
737 (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
738 "DESTINATION \"etc/xdg"))
740 (add-after 'unpack 'patch-translations-dir
741 (lambda* (#:key outputs #:allow-other-keys)
742 (substitute* '("config/CMakeLists.txt"
743 "src/CMakeLists.txt")
744 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
745 (string-append (assoc-ref outputs "out")
746 "/share/lxqt/translations")))
748 (home-page "https://lxqt-project.org")
749 (synopsis "Power management module for LXQt")
750 (description "lxqt-powermanagement is providing tools to monitor power
751 management events and optionally trigger actions like e. g. shut down a system
752 when laptop batteries are low on power.")
753 (license license:lgpl2.1+)))
755 (define-public lxqt-qtplugin
757 (name "lxqt-qtplugin")
762 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
763 version "/" name "-" version ".tar.xz"))
765 (base32 "14c6abxfg3vda333wrvb5lk45c45hnb66jclbs3vsmrjxdb13vv5"))))
766 (build-system cmake-build-system)
775 (list lxqt-build-tools qttools-5))
777 '(#:tests? #f ; no tests
779 (modify-phases %standard-phases
780 (add-after 'unpack 'patch-source
782 (substitute* '("src/CMakeLists.txt")
783 (("DESTINATION \"\\$\\{QT_PLUGINS_DIR\\}")
784 "DESTINATION \"lib/qt5/plugins"))
786 (home-page "https://lxqt-project.org")
787 (synopsis "LXQt Qt platform integration plugin")
788 (description "lxqt-qtplugin is providing a library libqtlxqt to integrate
790 (license license:lgpl2.1+)))
792 (define-public lxqt-runner
799 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
800 version "/" name "-" version ".tar.xz"))
802 (base32 "0n53jbvkmp4vgi21a720gsvi407m4ybqk8xrpnm5f48yjr88r9i4"))))
803 (build-system cmake-build-system)
815 (list pkg-config qttools-5 lxqt-build-tools))
817 '(#:tests? #f ; no tests
819 (modify-phases %standard-phases
820 (add-after 'unpack 'patch-source
822 (substitute* '("autostart/CMakeLists.txt")
823 (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
824 "DESTINATION \"etc/xdg"))
826 (add-after 'unpack 'patch-translations-dir
827 (lambda* (#:key outputs #:allow-other-keys)
828 (substitute* "CMakeLists.txt"
829 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
830 (string-append (assoc-ref outputs "out")
831 "/share/lxqt/translations")))
833 (home-page "https://lxqt-project.org")
834 (synopsis "Tool used to launch programs quickly by typing their names")
835 (description "lxqt-runner provides a GUI that comes up on the desktop and
836 allows for launching applications or shutting down the system.")
837 (license license:lgpl2.1+)))
839 (define-public lxqt-session
841 (name "lxqt-session")
846 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
847 version "/" name "-" version ".tar.xz"))
849 (base32 "0iwwfyngpbhs2dwvbw0cci0bf3qbqcpjjw7h5vm46nimvgp8q1fr"))))
850 (build-system cmake-build-system)
862 (list pkg-config lxqt-build-tools qttools-5))
866 (modify-phases %standard-phases
867 (add-after 'unpack 'patch-source
868 (lambda* (#:key outputs #:allow-other-keys)
869 (substitute* '("autostart/CMakeLists.txt"
870 "config/CMakeLists.txt")
871 (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
872 "DESTINATION \"etc/xdg"))
873 (let ((out (assoc-ref outputs "out")))
874 (substitute* '("xsession/lxqt.desktop.in")
875 (("Exec=startlxqt") (string-append "Exec=" out "/bin/startlxqt"))
876 (("TryExec=lxqt-session") (string-append "TryExec=" out "/bin/startlxqt")))
878 ;; add write permission to lxqt-rc.xml file which is stored as read-only in store
879 (add-after 'unpack 'patch-openbox-permission
881 (substitute* "startlxqt.in"
882 (("cp \"\\$LXQT_DEFAULT_OPENBOX_CONFIG\" \"\\$XDG_CONFIG_HOME/openbox\"")
883 (string-append "cp \"$LXQT_DEFAULT_OPENBOX_CONFIG\" \"$XDG_CONFIG_HOME/openbox\"\n"
884 " # fix openbox permission issue\n"
885 " chmod u+w \"$XDG_CONFIG_HOME/openbox\"/*")))
887 (add-after 'unpack 'patch-translations-dir
888 (lambda* (#:key outputs #:allow-other-keys)
889 (substitute* '("lxqt-config-session/CMakeLists.txt"
890 "lxqt-leave/CMakeLists.txt"
891 "lxqt-session/CMakeLists.txt")
892 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
893 (string-append (assoc-ref outputs "out")
894 "/share/lxqt/translations")))
896 (add-after 'install 'wrap-program
897 (lambda* (#:key inputs outputs #:allow-other-keys)
898 (let ((out (assoc-ref outputs "out")))
899 (wrap-program (string-append out "/bin/startlxqt")
900 `("XDG_CONFIG_DIRS" ":" suffix ("/run/current-system/profile/share"
901 "/run/current-system/profile/share/pcmanfm-qt")))
903 (home-page "https://lxqt-project.org")
904 (synopsis "Session manager for LXQt")
905 (description "lxqt-session provides the standard session manager
906 for the LXQt desktop environment.")
907 (license license:lgpl2.1+)))
909 (define-public lxqt-sudo
916 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
917 version "/" name "-" version ".tar.xz"))
919 (base32 "02s38m0ywp0gjkjczvrc4r1ignshbajlj084xd61d3rcm7vahhic"))))
920 (build-system cmake-build-system)
930 (list pkg-config qttools-5 lxqt-build-tools))
932 '(#:tests? #f ; no tests
934 (modify-phases %standard-phases
935 (add-after 'unpack 'patch-translations-dir
936 (lambda* (#:key outputs #:allow-other-keys)
937 (substitute* "CMakeLists.txt"
938 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
939 (string-append (assoc-ref outputs "out")
940 "/share/lxqt/translations")))
942 (home-page "https://lxqt-project.org")
943 (synopsis "GUI frontend for sudo/su")
944 (description "lxqt-sudo is a graphical front-end of commands sudo and su
945 respectively. As such it enables regular users to launch applications with
946 permissions of other users including root.")
947 (license license:lgpl2.1+)))
949 (define-public lxqt-themes
956 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
957 version "/" name "-" version ".tar.xz"))
959 (base32 "0kmvcz6rxghxxgb0m264zbvycc1zjma8mr4cpwg5kyrzb47rdw9z"))))
960 (build-system cmake-build-system)
962 (list lxqt-build-tools))
964 `(#:tests? #f ; no tests
966 (modify-phases %standard-phases
967 (add-after 'unpack 'patch-source
969 (substitute* '("CMakeLists.txt")
970 (("DESTINATION \"\\$\\{LXQT_GRAPHICS_DIR\\}")
971 "DESTINATION \"share/lxqt/graphics"))
972 (substitute* '("themes/CMakeLists.txt")
973 (("DESTINATION \"\\$\\{LXQT_SHARE_DIR\\}")
974 "DESTINATION \"share/lxqt"))
976 (home-page "https://lxqt-project.org")
977 (synopsis "Themes, graphics and icons for LXQt")
978 (description "This package comprises a number of graphic files and themes
980 ;; The whole package is released under LGPL 2.1+, while the LXQt logo is
981 ;; licensed under CC-BY-SA 3.0.
982 (license license:lgpl2.1+)))
987 (define-public libfm-qt
994 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
995 version "/" name "-" version ".tar.xz"))
997 (base32 "1991lm1gnw9s5wwn1yf3vba63bfmrrgsxc70h3nhdl9mh16qygxa"))))
998 (build-system cmake-build-system)
1000 '(#:tests? #f)) ; no tests
1011 (list pkg-config lxqt-build-tools qttools-5))
1012 (home-page "https://lxqt-project.org")
1013 (synopsis "Qt binding for libfm")
1014 (description "libfm-qt is the Qt port of libfm, a library providing
1015 components to build desktop file managers which belongs to LXDE.")
1016 (license license:lgpl2.1+)))
1018 (define-public pcmanfm-qt
1025 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
1026 version "/" name "-" version ".tar.xz"))
1028 (base32 "1axs7dnh2z08ygy28iipfbgfck15k2i2pwlf0v8d8axjrmavzb3l"))))
1029 (build-system cmake-build-system)
1031 (list libfm-qt qtbase-5 qtx11extras))
1033 (list pkg-config qttools-5 lxqt-build-tools))
1035 '(#:tests? #f ; no tests
1037 (modify-phases %standard-phases
1038 (add-after 'unpack 'patch-source
1040 (substitute* '("autostart/CMakeLists.txt")
1041 (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
1042 "DESTINATION \"etc/xdg"))
1043 (substitute* '("config/pcmanfm-qt/lxqt/settings.conf.in")
1044 (("@LXQT_SHARE_DIR@")
1045 "/run/current-system/profile/share/lxqt" ))
1047 (home-page "https://lxqt-project.org")
1048 (synopsis "File manager and desktop icon manager")
1049 (description "PCManFM-Qt is the Qt port of PCManFM, the file manager of
1051 (license license:gpl2+)))
1056 (define-public compton-conf
1058 (name "compton-conf")
1063 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
1064 version "/" name "-" version ".tar.xz"))
1066 (base32 "0haarzhndjp0wndfhcdy6zl2whpdn3w0qzr3rr137kfqibc58lvx"))))
1067 (build-system cmake-build-system)
1069 (list libconfig qtbase-5))
1071 (list lxqt-build-tools pkg-config qttools-5))
1073 '(#:tests? #f ; no tests
1075 (modify-phases %standard-phases
1076 (add-after 'unpack 'patch-source
1078 (substitute* '("autostart/CMakeLists.txt")
1079 (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
1080 "DESTINATION \"etc/xdg"))
1082 (home-page "https://lxqt-project.org")
1083 (synopsis "GUI configuration tool for compton X composite manager")
1084 (description "@code{compton-conf} is a configuration tool for X composite
1086 (license license:lgpl2.1+)))
1088 (define-public lximage-qt
1095 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
1096 version "/" name "-" version ".tar.xz"))
1098 (base32 "0g6hs41xfw2ghhwpj0rqr2ciri0x9v984689yrnmnvah88zlya1f"))))
1099 (build-system cmake-build-system)
1101 (list libexif libfm-qt qtbase-5 qtsvg-5 qtx11extras))
1103 (list pkg-config lxqt-build-tools qttools-5))
1105 '(#:tests? #f)) ; no tests
1106 (home-page "https://lxqt-project.org")
1107 (synopsis "The image viewer and screenshot tool for lxqt")
1108 (description "LXImage-Qt is the Qt port of LXImage, a simple and fast
1110 (license license:gpl2+)))
1112 (define-public obconf-qt
1119 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
1120 version "/" name "-" version ".tar.xz"))
1122 (base32 "0hlbivdbiw7wjhwrp8qfmq50ks19v0q21m3pyjj0k2na7nv9d3a5"))))
1123 (build-system cmake-build-system)
1136 (list lxqt-build-tools pkg-config qttools-5))
1138 '(#:tests? #f)) ; no tests
1139 (home-page "https://lxqt-project.org")
1140 (synopsis "Openbox configuration tool")
1141 (description "ObConf-Qt is a Qt port of ObConf, a configuration editor for
1142 window manager OpenBox.")
1143 (license license:gpl2+)))
1145 (define-public pavucontrol-qt
1147 (name "pavucontrol-qt")
1152 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
1153 version "/" name "-" version ".tar.xz"))
1155 (base32 "0w51dpjayav78lmhw966fz3gvypkmv64xgsd7x5rqs8am39lq9vc"))))
1156 (build-system cmake-build-system)
1158 (list glib pcre pulseaudio qtbase-5 qtx11extras))
1160 (list pkg-config lxqt-build-tools qttools-5))
1162 '(#:tests? #f)) ; no tests
1163 (home-page "https://lxqt-project.org")
1164 (synopsis "Pulseaudio mixer in Qt")
1165 (description "@code{pavucontrol-qt} is the Qt port of volume control
1166 @code{pavucontrol} of sound server @code{PulseAudio}.")
1167 (license license:gpl2+)))
1176 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
1177 version "/" name "-" version ".tar.xz"))
1179 (base32 "0zg0czrh3dlbnl5smxamhkdbj1g0szm47w1c0fwpaplgc1vv5lfq"))))
1180 (build-system cmake-build-system)
1189 (list lxqt-build-tools qttools-5))
1191 '(#:tests? #f)) ; no tests
1192 (home-page "https://lxqt-project.org")
1193 (synopsis "Qt-based visual process status monitor")
1194 (description "@code{qps} is a monitor that displays the status of the
1195 processes currently in existence, much like code{top} or code{ps}.")
1196 (license license:gpl2+)))
1198 (define-public qtermwidget
1200 (name "qtermwidget")
1205 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
1206 version "/" name "-" version ".tar.xz"))
1208 (base32 "10lv475qj0x3c3vl4yhjyr6y10qj5pq8n5pal5k24f6pf7xv412f"))))
1209 (build-system cmake-build-system)
1211 (list qtbase-5 utf8proc))
1213 (list lxqt-build-tools qttools-5))
1215 '(#:tests? #f)) ; no tests
1216 (home-page "https://lxqt-project.org")
1217 (synopsis "The terminal widget for QTerminal")
1218 (description "QTermWidget is a terminal emulator widget for Qt 5.")
1219 (license license:gpl2+)))
1221 (define-public qterminal
1228 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
1229 version "/" name "-" version ".tar.xz"))
1231 (base32 "0rfv7a6ncm8fs8aicinh9l29w4636gxzcqz735jmch2r41v9i1d9"))))
1232 (build-system cmake-build-system)
1234 (list qtbase-5 qtx11extras qtermwidget))
1236 (list lxqt-build-tools qttools-5))
1238 '(#:tests? #f)) ; no tests
1239 (home-page "https://lxqt-project.org")
1240 (synopsis "Lightweight Qt-based terminal emulator")
1241 (description "QTerminal is a lightweight Qt terminal emulator based on
1243 (license license:gpl2+)))
1245 (define-public screengrab
1252 (uri (string-append "https://github.com/lxqt/screengrab/releases/download/"
1253 version "/screengrab-" version ".tar.xz"))
1255 (base32 "0cilzw7rz5m2klzpax7rrs5rr6whfda2svwzsn2jvmrirmh5by7r"))))
1256 (build-system cmake-build-system)
1258 (list kwindowsystem libqtxdg qtbase-5 qtsvg-5 qtx11extras))
1260 (list pkg-config perl qttools-5))
1262 '(#:tests? #f)) ; no tests
1263 (home-page "https://lxqt-project.org")
1264 (synopsis "Crossplatform tool for fast making screenshots")
1265 (description "ScreenGrab is a program for fast creating screenshots, and
1266 easily publishing them on internet image hosting services.")
1267 (license license:gpl2+)))
1270 (define-public lxqt-archiver
1272 (name "lxqt-archiver")
1277 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
1278 version "/" name "-" version ".tar.xz"))
1280 (base32 "0fzgq7cyr7hx8qmq84xfgbsdx04mc1r7vzq5mz79j7bp2ysh134z"))))
1281 (build-system cmake-build-system)
1283 (list glib json-glib libfm-qt qtbase-5 qtx11extras))
1285 (list pkg-config lxqt-build-tools qttools-5))
1288 (home-page "https://lxqt-project.org")
1289 (synopsis "Simple & lightweight desktop-agnostic Qt file archiver")
1291 "This package provides a Qt graphical interface to archiving programs
1292 like @command{tar} and @command{zip}.")
1293 (license license:gpl2+)))
1295 (define-public lxqt-connman-applet
1296 ;; since the main developers didn't release any version yet, their
1297 ;; latest commit on `master` branch at the moment used for this version.
1298 (let ((commit "db1618d58fd3439142c4e44b24cba0dbb68b7141")
1301 (name "lxqt-connman-applet")
1302 (version (git-version "0.15.0" revision commit))
1307 (url (string-append "https://github.com/lxqt/" name))
1309 (file-name (git-file-name name version))
1311 (base32 "087641idpg7n8yhh5biis4wv52ayw3rddirwqb34bf5fwj664pw9"))))
1312 (build-system cmake-build-system)
1321 `(("lxqt-build-tools" ,lxqt-build-tools)
1322 ("qtlinguist" ,qttools-5)))
1324 `(#:tests? #f ; no tests
1326 (modify-phases %standard-phases
1327 (add-after 'unpack 'patch-translations-dir
1328 (lambda* (#:key outputs #:allow-other-keys)
1329 (substitute* "CMakeLists.txt"
1330 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
1331 (string-append (assoc-ref outputs "out")
1332 "/share/lxqt/translations"))
1333 (("\\$\\{LXQT_ETC_XDG_DIR\\}") "etc/xdg"))
1335 (add-after 'unpack 'remove-definitions
1337 (substitute* "CMakeLists.txt"
1338 (("include\\(LXQtCompilerSettings NO_POLICY_SCOPE\\)")
1339 "include(LXQtCompilerSettings NO_POLICY_SCOPE)
1340 remove_definitions(-DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII)"))
1342 (home-page "https://github.com/lxqt/lxqt-connman-applet")
1343 (synopsis "System-tray applet for connman")
1344 (description "This package provides a Qt-based system-tray applet for
1345 the network management tool Connman, originally developed for the LXQT
1347 (license license:lgpl2.1+))))
1349 ;; The LXQt Desktop Environment
1356 (build-system trivial-build-system)
1357 (arguments '(#:builder (begin (mkdir %output) #t)))
1365 ;; TODO: qtsvg-5 is needed for lxqt apps to display icons. Maybe it
1366 ;; should be added to their propagated-inputs?
1374 lxqt-openssh-askpass
1377 lxqt-powermanagement
1394 (synopsis "The Lightweight Qt Desktop Environment")
1395 (description "LXQt is a lightweight Qt desktop environment.")
1396 (home-page "https://lxqt-project.org")
1397 (license license:gpl2+)))