summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorArvid Krein <arvidkrein@zedat.fu-berlin.de>2023-03-21 12:26:51 +0100
committer宋文武 <iyzsong@member.fsf.org>2023-06-02 19:24:21 +0800
commita7d9cd742c3149bb014db95f88d1158d590bc124 (patch)
tree652f65b1fcb34546bf714ef4392c121b617ff126 /gnu/packages
parent7307b05abd9d193a46e78b43f4d9376043f55c65 (diff)
downloadguix-a7d9cd742c3149bb014db95f88d1158d590bc124.tar.gz
gnu: Add pcsc-cyberjack.
* gnu/packages/security-token.scm (pcsc-cyberjack): New variable.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/security-token.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm
index b51d67427a..76e220ad7c 100644
--- a/gnu/packages/security-token.scm
+++ b/gnu/packages/security-token.scm
@@ -1020,3 +1020,33 @@ It supports the following type of cards:
 It also has limited support for Mifare Classic compatible cards (Thalys card)")
     (license license:gpl3+)
     (home-page "http://pannetrat.com/Cardpeek")))
+
+(define-public pcsc-cyberjack
+  (package
+    (name "pcsc-cyberjack")
+    (version "3.99.5final.sp15")
+    (source
+     (origin
+       (method url-fetch)
+       (uri "https://support.reiner-sct.de/downloads/LINUX/V3.99.5_SP15/pcsc-cyberjack_3.99.5final.SP15.tar.bz2")
+       (sha256
+        (base32 "0yj6plgb245r218v6lgdabb3422hxyrw8rrpf5b8fwah4j1w5dxc"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      #~(list (string-append "--with-usbdropdir=" #$output "/pcsc/drivers")
+              (string-append "--bindir=" #$output:tools "/bin"))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'install-tools
+            (lambda _ (invoke "make" "-C" "tools/cjflash" "install"))))))
+    (native-inputs (list pkg-config))
+    (inputs (list pcsc-lite libusb))
+    (outputs '("out" "tools"))
+    (synopsis "PC/SC driver for cyberJack chipcard readers")
+    (description
+     "This package includes the IFD driver for the cyberJack
+contactless (RFID) and contact USB chipcard readers.")
+    (home-page "http://www.reiner-sct.com/")
+    (license license:lgpl2.1+)))