From: Ricardo Wurmus <rekado@elephly.net>
To: ng0 <contact.ng0@cryptolab.net>
Cc: 25741@debbugs.gnu.org
Subject: bug#25741: [PATCH 2/2] gnu: kbd: Add neo layout.
Date: Fri, 28 Apr 2017 16:37:52 +0200 [thread overview]
Message-ID: <87bmrgy4vz.fsf@elephly.net> (raw)
In-Reply-To: <20170428093940.qebl5oexqszdblw3@abyayala>
ng0 <contact.ng0@cryptolab.net> writes:
> Would this still work as intended?
> kbd is a global package, part of the base.
This doesn’t matter. The question here is: does this piece of software
have a mechanism to override or augment the search path for keymaps.
Often this is done with environment variables. So I took the sources
and searched for “getenv”:
tar xf $(guix build kbd)
grep getenv -r kbd-*
Here’s what turned up:
[…]
kbd-2.0.4/src/libkeymap/analyze.l: if ((ev = getenv("LOADKEYS_INCLUDE_PATH")) != NULL) {
kbd-2.0.4/src/libkeymap/analyze.c: if ((ev = getenv("LOADKEYS_INCLUDE_PATH")) != NULL) {
kbd-2.0.4/src/loadkeys.c: if ((ev = getenv("LOADKEYS_KEYMAP_PATH")) != NULL) {
[…]
This might be useful.
> If I create a new
> package which inherits from kbd, and people have to explicitly
> add it to (packages) in (operating-system), it will colide with
> (kbd).
I don’t understand what you mean. Guix gives us programmatic control
over the package graph. It is easy to replace all instances of one
package with another package (see “package-input-rewriting”). In this
case that’s not even necessary; one can just take the “%base-packages”
list, delete “kbd” from it, and cons “my-custom-kbd” onto it.
However, none of this will be needed if you can augment the path where
kbd looks for keymaps.
> I feel like kbd doesn#t work this way
What makes you say this? I don’t see anything special about kbd, but
maybe I’m missing something here.
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
next prev parent reply other threads:[~2017-04-28 14:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20170215164800.15907-1-contact.ng0@cryptolab.net>
[not found] ` <20170215164800.15907-2-contact.ng0@cryptolab.net>
[not found] ` <8737em3ov0.fsf@elephly.net>
2017-04-27 21:53 ` bug#25741: [PATCH 2/2] gnu: kbd: Add neo layout ng0
2017-04-28 8:02 ` Ricardo Wurmus
2017-04-28 9:39 ` ng0
2017-04-28 14:37 ` Ricardo Wurmus [this message]
[not found] <20170215164614.lmyymqkagvudqeq6@wasp>
2017-05-25 16:47 ` ng0
2017-05-25 18:17 ` Marius Bakke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bmrgy4vz.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=25741@debbugs.gnu.org \
--cc=contact.ng0@cryptolab.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.