Subject: [PATCH v2 2/2] gnu: Add rust-pcsc-2.

From: Giacomo Leidi <[email-masked]>
Date: Mon, 21 Oct 2024 00:55:34 +0200

* gnu/packages/crates-io.scm (rust-pcsc-2): New variable.

Change-Id: I899975f0d5a2f045bf0cee633526f1ecfdcb37c9
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bb4b28b926..f590d73514 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -52254,6 +52254,29 @@ (define-public rust-pcsc-sys-1
     (description "Low-level bindings to the PC/SC C API.")
     (license license:expat)))
 
+(define-public rust-pcsc-2
+  (package
+    (name "rust-pcsc")
+    (version "2.8.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pcsc" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "027a2s8lp6w025aa758s84qszcwkyg92s1mhvplrqzbbh5zrvva5"))))
+    (build-system cargo-build-system)
+    (native-inputs (list pkg-config))
+    (inputs
+     (list pcsc-lite))
+    (arguments
+     `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+                       ("rust-pcsc-sys" ,rust-pcsc-sys-1))))
+    (home-page "https://github.com/bluetech/pcsc-rust")
+    (synopsis "PC/SC API for smart card communication")
+    (description "Bindings to the PC/SC API for smart card communication.")
+    (license license:expat)))
+
 (define-public rust-pdcurses-sys-0.7
   (package
     (name "rust-pdcurses-sys")
-- 
2.46.0