From patchwork Tue Sep 26 14:21:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: ShinyZero0 X-Patchwork-Id: 54314 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E5BEB27BBE9; Tue, 26 Sep 2023 15:23:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BE17B27BBE2 for ; Tue, 26 Sep 2023 15:23:09 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ql8xf-0002sr-9b; Tue, 26 Sep 2023 10:22:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ql8xd-0002sj-Dq for guix-patches@gnu.org; Tue, 26 Sep 2023 10:22:49 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ql8xd-0001V2-58 for guix-patches@gnu.org; Tue, 26 Sep 2023 10:22:49 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ql8xq-0006R1-01 for guix-patches@gnu.org; Tue, 26 Sep 2023 10:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66193] [PATCH] gnu: Add keyd References: In-Reply-To: Resent-From: "ShinyZero0" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 Sep 2023 14:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66193 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: <66193@debbugs.gnu.org> Received: via spool by 66193-submit@debbugs.gnu.org id=B66193.169573813524668 (code B ref 66193); Tue, 26 Sep 2023 14:23:01 +0000 Received: (at 66193) by debbugs.gnu.org; 26 Sep 2023 14:22:15 +0000 Received: from localhost ([127.0.0.1]:49547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ql8x4-0006Po-Kl for submit@debbugs.gnu.org; Tue, 26 Sep 2023 10:22:15 -0400 Received: from tilde.club ([142.44.150.184]:37814 ident=postfix) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ql8x1-0006Pa-Dh for 66193@debbugs.gnu.org; Tue, 26 Sep 2023 10:22:14 -0400 Received: from localhost (unknown [91.236.30.101]) by tilde.club (Postfix) with ESMTPSA id 63C1322414CC0 for <66193@debbugs.gnu.org>; Tue, 26 Sep 2023 14:21:56 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 tilde.club 63C1322414CC0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tilde.club; s=mail; t=1695738116; bh=m0tFzaGuZn3n6EYr2Ye5YgW09/pA5Auj/AV5g4HqB58=; h=Date:From:To:Subject:From; b=OKCaBrVBh+elI6gpLn55X/oZa4WbbbnQVgX0GaMozbOcRi6F+3VewVNhpl5dIyEpX iuSOBZsaNq0grwSzs+Ws3jGVxZei9go36hGV1OVn3XyF5K3QjBsysqHKJv6qwQehz1 ap4vsReaIvjglRL07BKhy5tPvzpc7WhScTcru1JQ= Mime-Version: 1.0 Date: Tue, 26 Sep 2023 17:21:53 +0300 From: "ShinyZero0" Message-Id: X-Mailer: aerc 0.15.2 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 4926a18454135e97832e2d183893f01a2f42a06c Mon Sep 17 00:00:00 2001 From: "zero@fedora" 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. --- 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 bfa816d717..f0745fed65 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -690,6 +690,7 @@ GNU_SYSTEM_MODULES = \ %D%/services/guix.scm \ %D%/services/hurd.scm \ %D%/services/kerberos.scm \ + %D%/services/keyd.scm \ %D%/services/ldap.scm \ %D%/services/lightdm.scm \ %D%/services/linux.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 +;;; +;;; 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 . + +(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)))