* [bug#39435] [PATCH] gnu: lxqt-config: fixing keyboard layout.
@ 2020-02-05 10:07 Fakhri Sajadi
2020-02-05 20:57 ` bug#39435: " Marius Bakke
0 siblings, 1 reply; 2+ messages in thread
From: Fakhri Sajadi @ 2020-02-05 10:07 UTC (permalink / raw)
To: 39435; +Cc: f.sajadi
* gnu/packages/lxqt.scm (lxqt-config): Add xkeyboard-config in inputs.
---
gnu/packages/lxqt.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/lxqt.scm b/gnu/packages/lxqt.scm
index 12c92e52d1..e58ec70579 100644
--- a/gnu/packages/lxqt.scm
+++ b/gnu/packages/lxqt.scm
@@ -379,6 +379,7 @@ the operating system LXQt is running on.")
("qtx11extras" ,qtx11extras)
("solid" ,solid)
("xf86-input-libinput" ,xf86-input-libinput)
+ ("xkeyboard-config" ,xkeyboard-config)
("zlib" ,zlib)))
(native-inputs
`(("pkg-config" ,pkg-config)
@@ -394,6 +395,15 @@ the operating system LXQt is running on.")
(("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
"DESTINATION \"etc/xdg"))
#t))
+ (add-after 'unpack 'set-xkeyboard-config-file-name
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Set the file name to xkeyboard-config and kbd.
+ (let ((xkb (assoc-ref inputs "xkeyboard-config"))
+ (kbd (assoc-ref inputs "kbd")))
+ (substitute* "lxqt-config-input/keyboardlayoutconfig.h"
+ (("/usr/share/X11/xkb/rules/base.lst")
+ (string-append xkb "/share/X11/xkb/rules/base.lst")))
+ #t)))
(add-after 'unpack 'patch-translations-dir
(lambda* (#:key outputs #:allow-other-keys)
(substitute* '("lxqt-config-file-associations/CMakeLists.txt"
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#39435: [PATCH] gnu: lxqt-config: fixing keyboard layout.
2020-02-05 10:07 [bug#39435] [PATCH] gnu: lxqt-config: fixing keyboard layout Fakhri Sajadi
@ 2020-02-05 20:57 ` Marius Bakke
0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2020-02-05 20:57 UTC (permalink / raw)
To: Fakhri Sajadi, 39435-done
[-- Attachment #1: Type: text/plain, Size: 890 bytes --]
"Fakhri Sajadi" <f.sajadi@pantherx.org> writes:
> * gnu/packages/lxqt.scm (lxqt-config): Add xkeyboard-config in inputs.
Thanks! I edited the commit message to more closely follow our
conventions, and also added a copyright line for you. Let me know if
the information is incorrect.
[...]
> + (add-after 'unpack 'set-xkeyboard-config-file-name
> + (lambda* (#:key inputs #:allow-other-keys)
> + ;; Set the file name to xkeyboard-config and kbd.
> + (let ((xkb (assoc-ref inputs "xkeyboard-config"))
> + (kbd (assoc-ref inputs "kbd")))
> + (substitute* "lxqt-config-input/keyboardlayoutconfig.h"
> + (("/usr/share/X11/xkb/rules/base.lst")
> + (string-append xkb "/share/X11/xkb/rules/base.lst")))
> + #t)))
I also removed the let binding for 'kbd' as it was unused.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-05 20:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-05 10:07 [bug#39435] [PATCH] gnu: lxqt-config: fixing keyboard layout Fakhri Sajadi
2020-02-05 20:57 ` bug#39435: " Marius Bakke
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).