git.iko.soy/typeable/nixpkgs
on master help sign in
pcscd: add plugin for ACS ACR38U smart card reader
commitb8b7428a815cf47ebb1e9bcbe742d78b580eaa1d authorBert Moens <bert.moens@gmail.com> dateMon 26 Jun 2017, 12:02 (9 years ago) parent9ce1111
3 files changed+44
lib/maintainers.nix+1 pkgs/tools/security/libacr38u/default.nix+41 pkgs/top-level/all-packages.nix+2
lib/maintainers.nix+1
@@ -80,6 +80,7 @@
8080 benley = "Benjamin Staffin <benley@gmail.com>";
8181 bennofs = "Benno Fünfstück <benno.fuenfstueck@gmail.com>";
8282 benwbooth = "Ben Booth <benwbooth@gmail.com>";
83+ berce = "Bert Moens <bert.moens@gmail.com>";
8384 berdario = "Dario Bertini <berdario@gmail.com>";
8485 bergey = "Daniel Bergey <bergey@teallabs.org>";
8586 bhipple = "Benjamin Hipple <bhipple@protonmail.com>";
pkgs/tools/security/libacr38u/default.nixnew file+41
@@ -0,0 +1,41 @@
1+{ stdenv, fetchurl, pkgconfig, pcsclite , libusb }:
2+
3+stdenv.mkDerivation rec {
4+ version = "1.7.11";
5+ name = "libacr38u-${version}";
6+
7+ src = fetchurl {
8+ url = "http://http.debian.net/debian/pool/main/a/acr38/acr38_1.7.11.orig.tar.bz2";
9+ sha256 = "0lxbq17y51cablx6bcd89klwnyigvkz0rsf9nps1a97ggnllyzkx";
10+ };
11+
12+ doCheck = true;
13+
14+ nativeBuildInputs = [ pkgconfig ];
15+ buildInputs = [ pcsclite libusb ];
16+
17+ preBuild = ''
18+ makeFlagsArray=(usbdropdir="$out/pcsc/drivers");
19+ '';
20+
21+ meta = with stdenv.lib; {
22+ description = "ACR38U smartcard reader driver for pcsclite";
23+ longDescription = ''
24+ A PC/SC IFD handler implementation for the ACS ACR38U
25+ smartcard readers. This driver is for the non-CCID version only.
26+
27+ This package is needed to communicate with the ACR38U smartcard readers through
28+ the PC/SC Lite resource manager (pcscd).
29+
30+ It can be enabled in /etc/nixos/configuration.nix by adding:
31+ services.pcscd.enable = true;
32+ services.pcscd.plugins = [ libacr38u ];
33+
34+ The package is based on the debian package libacr38u.
35+ '';
36+ homepage = http://www.acs.com.hk;
37+ license = licenses.lgpl2Plus;
38+ maintainers = with maintainers; [ berce ];
39+ platforms = with platforms; unix;
40+ };
41+}
pkgs/top-level/all-packages.nix+2
@@ -8916,6 +8916,8 @@ with pkgs;
89168916
89178917 libaccounts-glib = callPackage ../development/libraries/libaccounts-glib { };
89188918
8919+ libacr38u = callPackage ../tools/security/libacr38u { };
8920+
89198921 libagar = callPackage ../development/libraries/libagar { };
89208922 libagar_test = callPackage ../development/libraries/libagar/libagar_test.nix { };
89218923