From patchwork Wed Apr 30 00:15:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: nomike X-Patchwork-Id: 42168 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 994CB27BC49; Wed, 30 Apr 2025 01:16:43 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 7F1F827BC4B for ; Wed, 30 Apr 2025 01:16:42 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u9v7i-00008w-La; Tue, 29 Apr 2025 20:16:26 -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 1u9v7M-0008QO-SZ for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:05 -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 1u9v7M-0000tM-Id for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=eE3WalMYZsz2k8+v4VwyCqPHCynlxfJ1CAlGeGNI2D8=; b=buucuVUwpoD1Cei4AU7cL25vwdOzMUHPKEiboAmAxxGURqf1Qw2IVq5gdNek6SqyUD27Nm+204b6it5GgqL31O/Z2Lq73zCE3qZ0QcwDQ+rN3SD9/nL5w/1UUau316T8PScfaqktdJiHJ9+w2tYbcwjpQ0Rx1lVGXhRsBnxdyRhOG8J9aBQ3kvShCIceVTMkOhL7NvrLCkRBeUsRkFnwOlJREmrdzhhcxBWEoq6VExlxto1LMIGhSxB17HRFeFEPvMhmci6qjOnKOu8tfdKUfy8kTMFDyJxalznZ8VjhlK271/iZ+sMQcC4wgpf1BMBuUSwq3eUfjIPIDl3m/YB4Mg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u9v7M-0007Mr-CD for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78154] [PATCH 3/5] gnu: Add hidapi-cmake Resent-From: nomike Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 30 Apr 2025 00:16:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78154 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78154@debbugs.gnu.org Cc: nomike Received: via spool by 78154-submit@debbugs.gnu.org id=B78154.174597215828268 (code B ref 78154); Wed, 30 Apr 2025 00:16:04 +0000 Received: (at 78154) by debbugs.gnu.org; 30 Apr 2025 00:15:58 +0000 Received: from localhost ([127.0.0.1]:37495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u9v7F-0007Ls-OW for submit@debbugs.gnu.org; Tue, 29 Apr 2025 20:15:58 -0400 Received: from butterfly.cherry.relay.mailchannels.net ([23.83.223.27]:18561) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u9v7C-0007Lc-OG for 78154@debbugs.gnu.org; Tue, 29 Apr 2025 20:15:56 -0400 X-Sender-Id: dreamhost|x-authsender|nomike@nomike.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AED892C49F5; Wed, 30 Apr 2025 00:15:53 +0000 (UTC) Received: from pdx1-sub0-mail-a217.dreamhost.com (trex-9.trex.outbound.svc.cluster.local [100.113.64.140]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 2F6CF2C462E; Wed, 30 Apr 2025 00:15:53 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1745972153; a=rsa-sha256; cv=none; b=IfJT6C9d9WqRgHJg/pOwJ7NozmGCTA4A6zCeOt+Bd1DAhAyzYvl89AfE0v/tCacgwx4eB8 LyuXHcSus7qcqKONssSyvF3KeMcXgyWLUdRZMjRuqt6gCnbo5b5Ur9D+sg73DjvMimbILy mTKgs6kaa0mPFmmSU2nNrJbZIsxeL/9lCZLuuD9C1qQeoQv+giJsEYqzbQLXTFsWen0sQz WU9nwG8eYXwzTMcQM+SCdnzIyjtjA6GwCEbewDBYMar6VHCIjXoMOvD1r2Ria9ybPtB5yy PER+d8bIPOfhmvMnY9W5t41MXx7/03mSq4oFPHGtBknAOrnE2EEEt10xKlguLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1745972153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=eE3WalMYZsz2k8+v4VwyCqPHCynlxfJ1CAlGeGNI2D8=; b=UWM399grYlCBGz7Jc38EHs181nA72+34TQE94rxTLckRiUKRytgna99hPuSt0G3kI4Mh+v Is/z6DSUpPgyvm6tQdSFNK+wTLvjNQtGj830cEcXTLOacA2A5XPBkhpul+yf4zM58wTkUt +ewhEAk3b7bo/gZg5hzH0hfBvNNq2J5wiClF8DnkCBlwa7jqHbjCHFWLIEse8l+GuFX8jW 01Funb6qQEH5w9cyY0MF9x4VVU/gUBtH8B3/BOOH3HKixXmzg9ID5zU5j2yZd7oupirdVO t0wrfxfVNb/DNouS0baoVwnciNRln+sJrmpren2myaZLnVo93/g3u/d23H8j0w== ARC-Authentication-Results: i=1; rspamd-684646cf5b-zx482; auth=pass smtp.auth=dreamhost smtp.mailfrom=nomike@nomike.com X-Sender-Id: dreamhost|x-authsender|nomike@nomike.com X-MC-Relay: Bad X-MailChannels-SenderId: dreamhost|x-authsender|nomike@nomike.com X-MailChannels-Auth-Id: dreamhost X-Illustrious-Gusty: 236d4d563229452b_1745972153592_3465072443 X-MC-Loop-Signature: 1745972153592:3711972484 X-MC-Ingress-Time: 1745972153592 Received: from pdx1-sub0-mail-a217.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.113.64.140 (trex/7.0.3); Wed, 30 Apr 2025 00:15:53 +0000 Received: from localhost (84-112-221-106.cable.dynamic.surfer.at [84.112.221.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nomike@nomike.com) by pdx1-sub0-mail-a217.dreamhost.com (Postfix) with ESMTPSA id 4ZnHlX4vZWz65; Tue, 29 Apr 2025 17:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomike.com; s=dreamhost; t=1745972153; bh=eE3WalMYZsz2k8+v4VwyCqPHCynlxfJ1CAlGeGNI2D8=; h=From:To:Cc:Subject:Date:Content-Type:Content-Transfer-Encoding; b=N5svxAGs+0vnJYdyAzz9EvUVTw6exJKhvRvJuYNRBv6O7ZlbjAd7plZ2sNwTcQvGu HoGzAAWBYHs56paHjcly1oF4OmnW/lPel1o8FKKqJ4b2CL8nwqDPJkbspq0BxTIlDF 1IsdX6xnxFMFwXfUrxHQUPOgVdpUd4HCNmBtKB3uNsS3EWY9WgsjeEEsqP1ptm8vVm uClPU6LpuYvanhmBitswHASXgstcwpZfyQXbQ2Z3ev272VsKnd84nBeBkfXqD7mgcm sGkvyLI96S9SW+0yxN1uXnNqAx0OIflYCFflxahkzzB4J9gSQT+kkQwwVR3aJdvu8S VQRGlRY59d6hA== From: nomike Date: Wed, 30 Apr 2025 02:15:05 +0200 Message-ID: <20250430001507.912670-3-nomike@nomike.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250430001507.912670-1-nomike@nomike.com> References: <20250430001507.912670-1-nomike@nomike.com> MIME-Version: 1.0 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 * gnu/packages/libusb.scm (hidapi-cmake): New variable Change-Id: I8a0c324544d9de0bfa63c85d88c6e3721cdd6ecd --- gnu/packages/libusb.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm index a6e24f8c41..3ad17a474e 100644 --- a/gnu/packages/libusb.scm +++ b/gnu/packages/libusb.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2023 Sharlatan Hellseher ;;; Copyright © 2023 Foundation Devices, Inc. ;;; Copyright © 2024 hapster +;;; Copyright © 2025 nomike Postmann ;;; ;;; This file is part of GNU Guix. ;;; @@ -712,6 +713,35 @@ (define-public hidapi license:bsd-3 (license:non-copyleft "file://LICENSE-orig.txt"))))) +(define-public hidapi-cmake + (package + (name "hidapi-cmake") + (version "0.14.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libusb/hidapi") + (commit (string-append "hidapi-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "121laqsml0104d1h4hp115gp21qiqi0r9dgcaqdi9ismmq3b6yx7")))) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f)) + (inputs (list libusb eudev)) + (native-inputs (list autoconf automake libtool pkg-config)) + (home-page "https://github.com/libusb/hidapi") + (synopsis "HID API library - CMake version") + (description + "HIDAPI is a library which allows an application to interface with USB and Bluetooth +HID-Class devices. This version is built using CMake instead of autoconf/automake which +has been deprecated by the hidapi project") + ;; HIDAPI can be used under one of three licenses. + (license (list license:gpl3 license:bsd-3 + (license:non-copyleft "file://LICENSE-orig.txt"))))) + (define-public python-hid (package (name "python-hid")