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