about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/ifdnfc/default.nix
blob: 34c140023ac25a9c35d7f81e242a03e4ab85d99c (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
{ lib, stdenv, fetchFromGitHub , pkg-config
, pcsclite
, autoreconfHook
, libnfc
}:

stdenv.mkDerivation {
  pname = "ifdnfc";
  version = "2016-03-01";

  src = fetchFromGitHub {
    owner = "nfc-tools";
    repo = "ifdnfc";
    rev = "0e48e8e";
    sha256 = "1cxnvhhlcbm8h49rlw5racspb85fmwqqhd3gzzpzy68vrs0b37vg";
  };
  nativeBuildInputs = [ pkg-config autoreconfHook ];
  buildInputs = [ pcsclite libnfc ];

  configureFlags = [ "--prefix=$(out)" ];
  makeFlags = [ "DESTDIR=/" "usbdropdir=$(out)/pcsc/drivers" ];

  meta = with lib; {
    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.
    '';
    homepage = "https://github.com/nfc-tools/ifdnfc";
    license = licenses.gpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ makefu ];
  };
}