mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-12 16:03:32 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
46 lines
1.4 KiB
Nix
46 lines
1.4 KiB
Nix
{ lib, stdenv, fetchFromGitHub , pkgconfig
|
|
, pcsclite
|
|
, autoreconfHook
|
|
, libnfc
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "ifdnfc";
|
|
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 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 ];
|
|
};
|
|
}
|
|
|