Subject: [bug#66193] [PATCH v4] gnu: Add keyd.

From: 45mg <[email-masked]>
Date: Tue, 25 Feb 2025 18:33:25 +0530

From: ShinyZero0 <[email-masked]>

* gnu/packages/linux.scm (keyd): New variable.

Change-Id: Ib69e4dea661dc72c3116442779b5b496d37b37bd
---
Move from gnu/packages/keyd.scm (deleting it) to gnu/packages/linux.scm
(suggested in review, but not addressed).

Bump keyd 2.4.3->2.5.0 and rebase onto latest master.

This patch is almost 1.5 years old.

 gnu/packages/linux.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index d56ca37053..4f66f21859 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -10032,6 +10032,40 @@ (define-public inputattach
 types and interfaces and translates so that the X server can use them.")
     (license license:gpl2+)))
 
+(define-public keyd
+  (package
+    (name "keyd")
+    (version "2.5.0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/rvaiya/keyd")
+               (commit (string-append "v" version))))
+        (sha256
+          (base32
+            "0nkra6lwdjhjcwj6486cgy562n4bcp98fjgl52rj8pp76i15yad7"))))
+    (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)))
+
 (define-public pipewire
   (package
     (name "pipewire")

base-commit: 14a7cb000cb913c54af69407b879b3a27e7820a4
-- 
2.48.1