unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Giacomo Leidi via Guix-patches via <guix-patches@gnu.org>
To: 70701@debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul@autistici.org>,
	Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#70701] [PATCH 2/2] gnu: Add rust-pcsc-2.
Date: Wed,  1 May 2024 20:37:24 +0200	[thread overview]
Message-ID: <652c733077e1378d55c4186a09779bbc2663f350.1714588644.git.goodoldpaul@autistici.org> (raw)
In-Reply-To: <b5bce1a6d7c735a3fb6386b52261e5b2576d74f2.1714588643.git.goodoldpaul@autistici.org>

* 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 d7fc73d29f..a6d23a2f64 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -46244,6 +46244,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.41.0





      reply	other threads:[~2024-05-01 18:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-01 18:35 [bug#70701] Add rust-pcsc paul via Guix-patches via
2024-05-01 18:37 ` [bug#70701] [PATCH 1/2] gnu: Add rust-pcsc-sys-1 Giacomo Leidi via Guix-patches via
2024-05-01 18:37   ` 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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=652c733077e1378d55c4186a09779bbc2663f350.1714588644.git.goodoldpaul@autistici.org \
    --to=guix-patches@gnu.org \
    --cc=70701@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).