{ lib, stdenv, pkg-config, libtool, autoreconfHook, pcsclite, libnfc, python3, help2man, gengetopt, vsmartcard-vpcd, }: stdenv.mkDerivation (finalAttrs: { pname = "vsmartcard-pcsc-relay"; inherit (vsmartcard-vpcd) version src; sourceRoot = "${finalAttrs.src.name}/pcsc-relay"; nativeBuildInputs = [ autoreconfHook libtool pkg-config help2man ]; buildInputs = [ pcsclite libnfc gengetopt (python3.withPackages ( pp: with pp; [ pyscard pycrypto pbkdf2 pillow gnureadline ] )) ]; meta = { description = "Relays a smart card using an contact-less interface"; homepage = "https://frankmorgner.github.io/vsmartcard/pcsc-relay/README.html"; license = lib.licenses.gpl3Only; platforms = lib.platforms.all; broken = stdenv.hostPlatform.isDarwin; maintainers = with lib.maintainers; [ stargate01 ]; }; })