From: 45mg <45mg.writes@gmail.com>
To: "ShinyZero0" <shinyzero0@tilde.club>, 66193@debbugs.gnu.org
Subject: [bug#66193] [PATCH v3] gnu: Add keyd
Date: Wed, 1 Jan 2025 05:24:53 -0500 [thread overview]
Message-ID: <0dda1be22511fb183c24bf16691df5963124cb2c.1735727093.git.45mg.writes@gmail.com> (raw)
In-Reply-To: <CVSWXT9ZHO24.3LDYDRIMBKSS7@fedora>
From: ShinyZero0 <shinyzero0@tilde.club>
From 4926a18454135e97832e2d183893f01a2f42a06c Mon Sep 17 00:00:00 2001
From: "zero@fedora" <shinyzero0@tilde.club>
Date: Mon, 25 Sep 2023 19:39:00 +0300
Subject: [PATCH] gnu: Add keyd
* gnu/packages/keyd.scm: New file.
* gnu/local.mk: Add it.
Change-Id: I9a796d5970d910b933999a146c99060413dc13e1
---
This revision fixes a small typo in gnu/local.mk (services/keyd.scm ->
packages/keyd.scm).
Other than that, I've tested this in a VM and it works fine. While we're still
skipping the tests since they require root to run, that's a common approach that
isn't at all unique to this package [1].
So, I guess this can be merged, or at least reviewed further.
The patch I'm replying to should have been titled 'v2'; this is v3.
[1] https://lists.gnu.org/archive/html/guix-devel/2025-01/msg00001.html
gnu/local.mk | 1 +
gnu/packages/keyd.scm | 60 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 61 insertions(+)
create mode 100644 gnu/packages/keyd.scm
diff --git a/gnu/local.mk b/gnu/local.mk
index 02a6fa616e..45862dfa47 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -412,6 +412,7 @@ GNU_SYSTEM_MODULES = \
%D%/packages/kde-systemtools.scm \
%D%/packages/kde-utils.scm \
%D%/packages/kerberos.scm \
+ %D%/packages/keyd.scm \
%D%/packages/kodi.scm \
%D%/packages/language.scm \
%D%/packages/lean.scm \
diff --git a/gnu/packages/keyd.scm b/gnu/packages/keyd.scm
new file mode 100644
index 0000000000..666b931650
--- /dev/null
+++ b/gnu/packages/keyd.scm
@@ -0,0 +1,60 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2023 Paul <shinyzero0@tilde.club>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages keyd)
+ #:use-module (gnu packages linux)
+ #:use-module (guix packages)
+ #:use-module (guix gexp)
+ #:use-module (guix utils)
+ #:use-module (guix git-download)
+ #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix build-system gnu))
+
+(define-public keyd
+ (package
+ (name "keyd")
+ (version "2.4.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rvaiya/keyd")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32
+ "1awdp863amq95y990fi4wj389ssv3ip2daqz2ph23lsahwa6f5in"))))
+ (arguments
+ (list #:tests? #f ; tests require root
+ #:make-flags
+ #~(list (string-append "CC=" #$(cc-for-target))
+ "PREFIX="
+ (string-append "DESTDIR=" #$output))
+ #:phases
+ '(modify-phases
+ %standard-phases
+ (delete 'configure)))) ; no autoconf
+ (build-system gnu-build-system)
+ (inputs (list linux-libre-headers))
+ (synopsis "A key remapping daemon for linux.")
+ (description
+ "Keyd is a keyboard remapping utility with intuitive ini
+ config file format. Keyd has several features, many of
+ which are traditionally only found in custom keyboard firmware
+ like QMK")
+ (home-page "https://github.com/rvaiya/keyd")
+ (license license:expat)))
base-commit: c943829ac7b25ac6326f78fe947a5d79c283627b
--
2.47.1
prev parent reply other threads:[~2025-01-01 10:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-25 16:45 [bug#66193] [PATCH] gnu: Add keyd ShinyZero0
2023-09-25 18:59 ` Jack Hill
2023-09-26 14:24 ` ShinyZero0
2023-09-26 14:21 ` ShinyZero0
2025-01-01 10:24 ` 45mg [this message]
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0dda1be22511fb183c24bf16691df5963124cb2c.1735727093.git.45mg.writes@gmail.com \
--to=45mg.writes@gmail.com \
--cc=66193@debbugs.gnu.org \
--cc=shinyzero0@tilde.club \
/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 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).