all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giacomo Leidi via Guix-patches via <guix-patches@gnu.org>
To: 70705@debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul@autistici.org>,
	Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#70705] [PATCH v2 3/3] gnu: Add rust-hidapi-2.
Date: Wed,  4 Sep 2024 22:59:48 +0200	[thread overview]
Message-ID: <40803695c21276e3177f167c8b270c7ebeb9b784.1725483588.git.goodoldpaul@autistici.org> (raw)
In-Reply-To: <3341545202da586792b086d4c614618b70d06385.1725483588.git.goodoldpaul@autistici.org>

* 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 37b50d3b69..8912232885 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -32260,6 +32260,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-hexf-parse-0.1
   (package
     (inherit rust-hexf-parse-0.2)
-- 
2.45.2





      parent reply	other threads:[~2024-09-04 21:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-01 20:35 [bug#70705] Add rust-hidapi paul via Guix-patches via
2024-05-01 20:39 ` [bug#70705] [PATCH 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
2024-05-01 20:39   ` [bug#70705] [PATCH 2/3] gnu: Add rust-udev-0.8 Giacomo Leidi via Guix-patches via
2024-05-01 20:39   ` [bug#70705] [PATCH 3/3] gnu: Add rust-hidapi-2 Giacomo Leidi via Guix-patches via
2024-09-04 17:31 ` [bug#70705] Add rust-hidapi paul via Guix-patches via
2024-09-04 20:59 ` [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
2024-09-04 20:59   ` [bug#70705] [PATCH v2 2/3] gnu: rust-udev: Update to 0.8 Giacomo Leidi via Guix-patches via
2024-09-04 20:59   ` Giacomo Leidi via Guix-patches via [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40803695c21276e3177f167c8b270c7ebeb9b784.1725483588.git.goodoldpaul@autistici.org \
    --to=guix-patches@gnu.org \
    --cc=70705@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    --cc=goodoldpaul@autistici.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.