summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/ifdnfc
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-09-04 20:53:12 +0200
committerlassulus <lass@blue.r>2018-09-04 20:53:12 +0200
commit96c4ab61202f515c7a361ef76c398e542771d6b4 (patch)
treece2ca90d0ae800bb3ba3e1b05593e7ba7bef104c /makefu/5pkgs/ifdnfc
parente183bb1c80c42131f9e3d932985e413ef457f77a (diff)
parent481376c1509661cbf1bdb17b9887b3a4f0487b6f (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/5pkgs/ifdnfc')
-rw-r--r--makefu/5pkgs/ifdnfc/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/makefu/5pkgs/ifdnfc/default.nix b/makefu/5pkgs/ifdnfc/default.nix
new file mode 100644
index 000000000..cc7956c8c
--- /dev/null
+++ b/makefu/5pkgs/ifdnfc/default.nix
@@ -0,0 +1,45 @@
+{ stdenv, fetchFromGitHub , pkgconfig
+, pcsclite
+, autoreconfHook
+, libnfc
+}:
+
+stdenv.mkDerivation rec {
+ name = "ifdnfc-${version}";
+ version = "2016-03-01";
+
+ src = fetchFromGitHub {
+ owner = "nfc-tools";
+ repo = "ifdnfc";
+ rev = "0e48e8e";
+ sha256 = "1cxnvhhlcbm8h49rlw5racspb85fmwqqhd3gzzpzy68vrs0b37vg";
+ };
+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
+ buildInputs = [ pcsclite libnfc ];
+
+ configureFlags = [ "--prefix=$(out)" ];
+ makeFlags = [ "DESTDIR=/" "usbdropdir=$(out)/pcsc/drivers" ];
+
+ meta = with stdenv.lib; {
+ description = "PC/SC IFD Handler based on libnfc";
+ long_description =
+ '' 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 ];
+ };
+}
+