From patchwork Sat Mar 12 20:14:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Formbi X-Patchwork-Id: 37759 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 B924E27BBE9; Sat, 12 Mar 2022 20:23:42 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,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 053AC27BBEA for ; Sat, 12 Mar 2022 20:23:40 +0000 (GMT) Received: from localhost ([::1]:51974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nT8H5-0006bS-69 for patchwork@mira.cbaines.net; Sat, 12 Mar 2022 15:23:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT88l-0008OO-GR for guix-patches@gnu.org; Sat, 12 Mar 2022 15:15:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47005) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nT88l-000064-4c for guix-patches@gnu.org; Sat, 12 Mar 2022 15:15:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nT88k-0001Xp-Mh for guix-patches@gnu.org; Sat, 12 Mar 2022 15:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54355] [PATCH] gnu: Add ckb-next. Resent-From: Formbi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 20:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54355 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54355@debbugs.gnu.org X-Debbugs-Original-To: Formbi via Guix-patches Received: via spool by submit@debbugs.gnu.org id=B.16471160585863 (code B ref -1); Sat, 12 Mar 2022 20:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Mar 2022 20:14:18 +0000 Received: from localhost ([127.0.0.1]:40902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT882-0001WT-6P for submit@debbugs.gnu.org; Sat, 12 Mar 2022 15:14:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:44510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT880-0001WL-F3 for submit@debbugs.gnu.org; Sat, 12 Mar 2022 15:14:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT880-0005sW-8R for guix-patches@gnu.org; Sat, 12 Mar 2022 15:14:16 -0500 Received: from mail-4318.protonmail.ch ([185.70.43.18]:62469) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT87x-0008SL-Gs for guix-patches@gnu.org; Sat, 12 Mar 2022 15:14:15 -0500 Date: Sat, 12 Mar 2022 20:14:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1647116042; bh=cDUnW08N/SDEw2tXERCVPeKfcAKd7B9GMHZ0i49oOLA=; h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc:Date:Subject: Reply-To:Feedback-ID:Message-ID; b=TcxuVMG2mACIeOBqtbIrmv1DgmCQros/RydmfmbMThreB5IXi1OpFBOpwlE0FkvGz ino9c7HaJ5D81a3BpzxnMMVKJ0JU4MFejerCEseH3/LyEIkMEECVUzQiFxitZPRVJg SIvfNzbNXfmBamJYFUIdxDtCw/HGfBFIphr8MgNn0PFA0T7AAsXUmahkd+MtKMmAmE 0InHlLIWqKWjkIFSu/LRWehWe/vDw6eP+mHE2/kXgQ5JpmJptJ8PvKAB+8+GvM7HbI 0U+Lcpu5PP80bWi1y8m+eLJ3lNPwwA3GdYBXrAz/v7ST4Zj5aU5SxDMqoWkv8BuRlw l8ecCJxl5Ib/A== Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.43.18; envelope-from=formbi@protonmail.com; helo=mail-4318.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Reply-to: Formbi X-ACL-Warn: , Formbi via Guix-patches X-Patchwork-Original-From: Formbi via Guix-patches via From: Formbi X-getmail-retrieved-from-mailbox: Patches =This patch adds ckb-next, a free app for controlling some Corsair devices. From 1e9e6403f28ebaccac9bd6f0f7d3bd744516aed1 Mon Sep 17 00:00:00 2001 From: Formbi Date: Sat, 12 Mar 2022 20:09:26 +0100 Subject: [PATCH] gnu: add ckb-next * gnu/packages/hardware.scm (ckb-next): add ckb-next --- gnu/packages/hardware.scm | 64 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) -- 2.35.1 diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 0a2a7dbb7..e43c18c1a 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018 Tobias Geerinckx-Rice +;;; Copyright © 2022 Marcel Kupiec ;;; ;;; This file is part of GNU Guix. ;;; @@ -17,15 +18,20 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages hardware) + #:use-module (gnu packages bash) #:use-module (gnu packages compression) #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) + #:use-module (gnu packages lxqt) #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages pulseaudio) + #:use-module (gnu packages qt) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xorg) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module (guix git-download) @@ -35,6 +41,64 @@ ;; This is a module for packages related to physical hardware that don't (yet) ;; have a more specific home like gps.scm, security-token.scm, &c. +(define-public ckb-next + (let ((commit "967f44018a9d46efa7203fad38518e9381eba0f3") + (revision "0")) + (package + (name "ckb-next") + (version (git-version "0.4.4" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ckb-next/ckb-next") + (commit commit))) + (sha256 + (base32 "0bfpah0zgmyhbi6payymr3p98nfnwqr2xqxgkyzvccz72z246316")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + `(#:modules ((guix build cmake-build-system) + (guix build qt-utils) + (guix build utils)) + #:imported-modules (,@%cmake-build-system-modules + (guix build qt-utils)) + #:tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'build 'patch-lib-udev + (lambda* (#:key inputs outputs #:allow-other-keys) + (substitute* + "src/daemon/cmake_install.cmake" + (("/lib/udev") + (string-append (assoc-ref outputs "out") + "/lib/udev"))))) + (add-after 'install 'wrap-qt + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (wrap-qt-program "ckb-next" #:output out #:inputs inputs))))))) + (native-inputs + (list qttools pkg-config)) + (inputs + (list qtbase-5 + zlib + libdbusmenu-qt + quazip + pulseaudio + libxcb + xcb-util-wm + qtx11extras + eudev + bash-minimal)) + (home-page "https://github.com/ckb-next/ckb-next") + (synopsis "Open-source driver for Corsair keyboards and mice") + (description "ckb-next is an open-source driver for Corsair keyboards and +mice. It aims to bring the features of Corsair's proprietary CUE software to +Linux operating systems. This project is currently a work in progress, but it +already supports much of the same functionality, including full RGB animations. +More features are coming soon.") + (license license:gpl2)))) + (define-public ddcutil (package (name "ddcutil")