Commit d676d208 authored by Christoph Honal's avatar Christoph Honal
Browse files

vsmartcard-pcsc-relay: init at 0.9-unstable-2025-01-25

parent affd28f5
Loading
Loading
Loading
Loading
+58 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  pkg-config,
  libtool,
  autoreconfHook,
  pcsclite,
  libnfc,
  python3,
  help2man,
  gengetopt,
  vsmartcard-vpcd,
  darwin,
}:

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
        ]
      ))
    ]
    ++ lib.optionals stdenv.isDarwin [
      darwin.apple_sdk.frameworks.PCSC
    ];

  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.isDarwin;
    maintainers = with lib.maintainers; [ stargate01 ];
  };
})