nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 pcsclite,
7 autoreconfHook,
8 libnfc,
9}:
10
11stdenv.mkDerivation {
12 pname = "ifdnfc";
13 version = "2016-03-01";
14
15 src = fetchFromGitHub {
16 owner = "nfc-tools";
17 repo = "ifdnfc";
18 rev = "0e48e8e107dc42f68fb472bb06d257503ad45b1d";
19 sha256 = "1cxnvhhlcbm8h49rlw5racspb85fmwqqhd3gzzpzy68vrs0b37vg";
20 };
21 nativeBuildInputs = [
22 pkg-config
23 autoreconfHook
24 ];
25 buildInputs = [
26 pcsclite
27 libnfc
28 ];
29
30 configureFlags = [ "--prefix=$(out)" ];
31 makeFlags = [
32 "DESTDIR=/"
33 "usbdropdir=$(out)/pcsc/drivers"
34 ];
35
36 meta = with lib; {
37 description = "PC/SC IFD Handler based on libnfc";
38 mainProgram = "ifdnfc-activate";
39 longDescription = ''
40 libnfc Interface Plugin to be used in <code>services.pcscd.plugins</code>.
41 It provides support for all readers which are not supported by ccid but by libnfc.
42
43 For activating your reader you need to run
44 <code>ifdnfc-activate yes<code> with this package in your
45 <code>environment.systemPackages</code>
46
47 To use your reader you may need to blacklist your reader kernel modules:
48 <code>boot.blacklistedKernelModules = [ "pn533" "pn533_usb" "nfc" ];</code>
49
50 Supports the pn533 smart-card reader chip which is for example used in
51 the SCM SCL3711.
52 '';
53 homepage = "https://github.com/nfc-tools/ifdnfc";
54 license = licenses.gpl3;
55 platforms = platforms.linux;
56 maintainers = with maintainers; [ makefu ];
57 };
58}