blob: 74a0c39cb2d7a9878ddc22c9d741d12a983f55d9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
{ lib
, stdenv
, fetchFromGitHub
, autoconf
, automake
, libtool
, gettext
, flex
, perl
, pkg-config
, pcsclite
, libusb1
, libiconv
}:
stdenv.mkDerivation rec {
version = "1.1.8";
pname = "acsccid";
src = fetchFromGitHub {
owner = "acshk";
repo = pname;
rev = "v${version}";
sha256 = "12aahrvsk21qgpjwcrr01s742ixs44nmjkvcvqyzhqb307x1rrn3";
};
nativeBuildInputs = [
pkg-config
autoconf
automake
libtool
gettext
flex
perl
];
buildInputs = [
pcsclite
libusb1
] ++ lib.optionals stdenv.isDarwin [
libiconv
];
configureFlags = [
"--enable-usbdropdir=${placeholder "out"}/pcsc/drivers"
];
doCheck = true;
postPatch = ''
sed -e s_/bin/echo_echo_g -i src/Makefile.am
patchShebangs src/convert_version.pl
patchShebangs src/create_Info_plist.pl
'';
preConfigure = ''
libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf
'';
meta = with lib; {
description = "PC/SC driver for Linux/Mac OS X and it supports ACS CCID smart card readers";
longDescription = ''
acsccid is a PC/SC driver for Linux/Mac OS X and it supports ACS CCID smart card
readers. This library provides a PC/SC IFD handler implementation and
communicates with the readers through the PC/SC Lite resource manager (pcscd).
acsccid is based on ccid. See CCID free software driver for more
information:
https://ccid.apdu.fr/
It can be enabled in /etc/nixos/configuration.nix by adding:
services.pcscd.enable = true;
services.pcscd.plugins = [ pkgs.acsccid ];
'';
homepage = src.meta.homepage;
license = licenses.lgpl2Plus;
maintainers = [ ];
platforms = with platforms; unix;
};
}
|