2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub , pkg-config
|
2018-10-01 22:39:48 +00:00
|
|
|
, pcsclite
|
|
|
|
, autoreconfHook
|
|
|
|
, libnfc
|
|
|
|
}:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ifdnfc";
|
2018-10-01 22:39:48 +00:00
|
|
|
version = "2016-03-01";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nfc-tools";
|
|
|
|
repo = "ifdnfc";
|
|
|
|
rev = "0e48e8e";
|
|
|
|
sha256 = "1cxnvhhlcbm8h49rlw5racspb85fmwqqhd3gzzpzy68vrs0b37vg";
|
|
|
|
};
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2018-10-01 22:39:48 +00:00
|
|
|
buildInputs = [ pcsclite libnfc ];
|
|
|
|
|
|
|
|
configureFlags = [ "--prefix=$(out)" ];
|
|
|
|
makeFlags = [ "DESTDIR=/" "usbdropdir=$(out)/pcsc/drivers" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-01 22:39:48 +00:00
|
|
|
description = "PC/SC IFD Handler based on libnfc";
|
|
|
|
longDescription =
|
|
|
|
'' libnfc Interface Plugin to be used in <code>services.pcscd.plugins</code>.
|
|
|
|
It provides support for all readers which are not supported by ccid but by libnfc.
|
|
|
|
|
|
|
|
For activating your reader you need to run
|
|
|
|
<code>ifdnfc-activate yes<code> with this package in your
|
|
|
|
<code>environment.systemPackages</code>
|
|
|
|
|
|
|
|
To use your reader you may need to blacklist your reader kernel modules:
|
|
|
|
<code>boot.blacklistedKernelModules = [ "pn533" "pn533_usb" "nfc" ];</code>
|
|
|
|
|
|
|
|
Supports the pn533 smart-card reader chip which is for example used in
|
|
|
|
the SCM SCL3711.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/nfc-tools/ifdnfc";
|
2018-10-01 22:39:48 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ makefu ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|