diff options
author | Franz Geffke <franz@pantherx.org> | 2023-11-06 20:08:14 +0000 |
---|---|---|
committer | Franz Geffke <franz@pantherx.org> | 2023-11-06 20:08:14 +0000 |
commit | 47b4c9c854915df93893dbaa993accfacf9027fe (patch) | |
tree | 4f9b1742d63fcfbc94cc6b8d84f76c4d00c3a0b7 /px/packages/lxqt-dev.scm | |
parent | 0b426d7b7ed8e176bf464ef9e0683f74a6c9d20f (diff) |
rewrite: apply guix-reference formatting; cleanup some module imports
Diffstat (limited to 'px/packages/lxqt-dev.scm')
-rw-r--r-- | px/packages/lxqt-dev.scm | 127 |
1 files changed, 62 insertions, 65 deletions
diff --git a/px/packages/lxqt-dev.scm b/px/packages/lxqt-dev.scm index 0dc70ae..bab04e2 100644 --- a/px/packages/lxqt-dev.scm +++ b/px/packages/lxqt-dev.scm @@ -1,7 +1,8 @@ (define-module (px packages lxqt-dev) #:use-module (guix download) #:use-module (guix git-download) - #:use-module ((guix licenses) #:prefix license:) + #:use-module ((guix licenses) + #:prefix license:) #:use-module (guix packages) #:use-module (guix utils) #:use-module (guix build-system cmake) @@ -39,7 +40,7 @@ #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) - #:use-module (px packages themes) + #:use-module (px packages themes) #:use-module (srfi srfi-1)) (define-public lxqt-config-dev @@ -51,67 +52,63 @@ (name "lxqt-config-dev") (version (git-version "1.1.0" revision commit)) (source - (origin - (method git-fetch) - (uri (git-reference - (url (string-append "https://github.com/lxqt/" rep_name ".git")) - (commit commit))) - (file-name (git-file-name name version)) - (sha256 (base32 "1wx186nq7hihywm7dn3w4p31zyplg3kr11aav4maivv14dw9k17k")))) - (inputs - `(("eudev" ,eudev) - ("kwindowsystem" ,kwindowsystem) - ("libkscreen" ,libkscreen) - ("liblxqt" ,liblxqt) - ("libqtxdg" ,libqtxdg) - ("libxcursor" ,libxcursor) - ("libxi" ,libxi) - ("perl" ,perl) - ("qtbase" ,qtbase-5) - ("qtsvg" ,qtsvg-5) - ("qtx11extras" ,qtx11extras) - ("solid" ,solid) - ("xf86-input-libinput" ,xf86-input-libinput) - ("xkeyboard-config" ,xkeyboard-config) - ("zlib" ,zlib))) - (native-inputs - (list pkg-config lxqt-build-tools qttools-5)) - (propagated-inputs - `( - ;; temporary workaround for lxqt-config-monitor segmentation fault - ;; more in https://git.pantherx.org/development/guix-pantherx/-/issues/67 - ("libkscreen" ,libkscreen) - ("setxkbmap" ,setxkbmap))) + (origin + (method git-fetch) + (uri (git-reference + (url (string-append "https://github.com/lxqt/" rep_name ".git")) + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1wx186nq7hihywm7dn3w4p31zyplg3kr11aav4maivv14dw9k17k")))) + (inputs `(("eudev" ,eudev) + ("kwindowsystem" ,kwindowsystem) + ("libkscreen" ,libkscreen) + ("liblxqt" ,liblxqt) + ("libqtxdg" ,libqtxdg) + ("libxcursor" ,libxcursor) + ("libxi" ,libxi) + ("perl" ,perl) + ("qtbase" ,qtbase-5) + ("qtsvg" ,qtsvg-5) + ("qtx11extras" ,qtx11extras) + ("solid" ,solid) + ("xf86-input-libinput" ,xf86-input-libinput) + ("xkeyboard-config" ,xkeyboard-config) + ("zlib" ,zlib))) + (native-inputs (list pkg-config lxqt-build-tools qttools-5)) + (propagated-inputs `(;; temporary workaround for lxqt-config-monitor segmentation fault + + ;; more in https://git.pantherx.org/development/guix-pantherx/-/issues/67 + ("libkscreen" ,libkscreen) + ("setxkbmap" ,setxkbmap))) (arguments - '(#:tests? #f ; no tests - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-source - (lambda _ - (substitute* '("src/translations/lxqt-config.desktop.yaml") - (("LXQt Configuration Center") - "All Settings")) - (substitute* '("src/lxqt-config.menu") - (("<Name>System settings</Name>") - (string-append "<Name>PantherX settings</Name>" - "\n\t<Directory>lxqt-settings-pantherx.directory</Directory>" - "\n\t<Include>" - "\n\t\t<And>" - "\n\t\t\t<Category>Settings</Category>" - "\n\t\t\t<Category>PantherX</Category>" - "\n\t\t</And>" - "\n\t</Include>" - "\n</Menu>" - "\n\n<Menu>" - "\n\t<Name>System settings</Name>"))) - #t)) - (add-after 'unpack 'set-xkeyboard-config-file-name - (lambda* (#:key inputs #:allow-other-keys) - ;; Set the file name to xkeyboard-config. - (let ((xkb (assoc-ref inputs "xkeyboard-config"))) - (substitute* "lxqt-config-input/keyboardlayoutconfig.h" - (("/usr/share/X11/xkb/rules/base.lst") - (string-append xkb "/share/X11/xkb/rules/base.lst"))) - #t))) - ))) - ))) + '(#:tests? #f ;no tests + #:phases (modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda _ + (substitute* '("src/translations/lxqt-config.desktop.yaml") + (("LXQt Configuration Center") + "All Settings")) + (substitute* '("src/lxqt-config.menu") + (("<Name>System settings</Name>") + (string-append "<Name>PantherX settings</Name>" + " + <Directory>lxqt-settings-pantherx.directory</Directory>" + "\n\t<Include>" + "\n\t\t<And>" + "\n\t\t\t<Category>Settings</Category>" + "\n\t\t\t<Category>PantherX</Category>" + "\n\t\t</And>" + "\n\t</Include>" + "\n</Menu>" + "\n\n<Menu>" + "\n\t<Name>System settings</Name>"))) #t)) + (add-after 'unpack 'set-xkeyboard-config-file-name + (lambda* (#:key inputs #:allow-other-keys) + ;; Set the file name to xkeyboard-config. + (let ((xkb (assoc-ref inputs "xkeyboard-config"))) + (substitute* "lxqt-config-input/keyboardlayoutconfig.h" + (("/usr/share/X11/xkb/rules/base.lst") + (string-append xkb + "/share/X11/xkb/rules/base.lst"))) + #t))))))))) |