From patchwork Wed May 1 20:39:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: paul X-Patchwork-Id: 26806 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 3DCEC27BBEC; Wed, 1 May 2024 21:41:03 +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=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 0857E27BBE2 for ; Wed, 1 May 2024 21:41:02 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2Gl3-0008V2-IH; Wed, 01 May 2024 16:40:53 -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 1s2Gks-0008Qn-Gx for guix-patches@gnu.org; Wed, 01 May 2024 16:40:46 -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 1s2Gkq-0000Dd-S2 for guix-patches@gnu.org; Wed, 01 May 2024 16:40:42 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s2GlC-0006G3-3M; Wed, 01 May 2024 16:41:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70705] [PATCH 3/3] gnu: Add rust-hidapi-2. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Wed, 01 May 2024 20:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70705 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 70705@debbugs.gnu.org Cc: Giacomo Leidi , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 70705-submit@debbugs.gnu.org id=B70705.171459604424027 (code B ref 70705); Wed, 01 May 2024 20:41:02 +0000 Received: (at 70705) by debbugs.gnu.org; 1 May 2024 20:40:44 +0000 Received: from localhost ([127.0.0.1]:39322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2Gkt-0006FS-TT for submit@debbugs.gnu.org; Wed, 01 May 2024 16:40:44 -0400 Received: from confino.investici.org ([2a11:7980:1::2:0]:56701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2Gks-0006FA-BC for 70705@debbugs.gnu.org; Wed, 01 May 2024 16:40:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1714596019; bh=3WwJIZ05zxGdHPiPUgm3NHS/IaIJO1d9FWuCSFq25lo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b/tA7M3aUQYRWgdscOVPRBpXL6MXIvynQkPkn2om2TxkuIDRxGriLcg/qtOF2X9pK YRioiuBVTbv5dAxjg3MefJjyk6IVIhi6/LPHDILs7eUN4TQLvyCD24lUzDBbkzScP/ psmkjJUl4rIeZX2WkxLBpPkuASJyaTJRhQr/b1s8= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4VV88M455mz11MF; Wed, 1 May 2024 20:40:19 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4VV88M31gZz117c; Wed, 1 May 2024 20:40:19 +0000 (UTC) Date: Wed, 1 May 2024 22:39:40 +0200 Message-ID: <9997e2566a91b9e685cb631570f825ac500221f0.1714595980.git.goodoldpaul@autistici.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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: , Reply-to: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches X-Patchwork-Original-From: Giacomo Leidi via Guix-patches via From: paul 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/crates-io.scm (rust-hidapi-2): New variable. Change-Id: I3a8bb6e7d6e555fba8df036053b146d414b14198 --- gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 56ecb967cb..7ac1c8f2da 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -28737,6 +28737,36 @@ (define-public rust-hexf-parse-0.2 provided for each type.") (license license:cc0))) +(define-public rust-hidapi-2 + (package + (name "rust-hidapi") + (version "2.6.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "hidapi" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0g62241lsd88blvmnwl4mwa556dljazc3g2ymq6zx27y4082an4y")))) + (build-system cargo-build-system) + (native-inputs + (list pkg-config)) + (inputs + (list eudev hidapi)) + (arguments + `(#:cargo-inputs (("rust-cc" ,rust-cc-1) + ("rust-cfg-if" ,rust-cfg-if-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-nix" ,rust-nix-0.27) + ("rust-pkg-config" ,rust-pkg-config-0.3) + ("rust-udev" ,rust-udev-0.8) + ("rust-windows-sys" ,rust-windows-sys-0.48)))) + (home-page "https://github.com/ruabmbua/hidapi-rs") + (synopsis "Rust-y wrapper around @code{hidapi}") + (description "This crate provides a Rust abstraction over the features of +the C library @code{hidapi}. Based off of @code{hidapi-rs} by Osspial.") + (license license:expat))) + (define-public rust-hostname-0.3 (package (name "rust-hostname")