Skip to content

Commit

Permalink
vsmartcard-pcsc-relay: init at 20220814
Browse files Browse the repository at this point in the history
  • Loading branch information
StarGate01 committed Feb 23, 2024
1 parent 03814c0 commit b134cce
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
54 changes: 54 additions & 0 deletions pkgs/by-name/vs/vsmartcard-pcsc-relay/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, libtool
, autoreconfHook
, pcsclite, PCSC
, libnfc
, python3
, help2man
, gengetopt
}:

stdenv.mkDerivation rec {
pname = "vsmartcard-pcsc-relay";
version = "20220814";

src = fetchFromGitHub {
owner = "frankmorgner";
repo = "vsmartcard";
rev = "8b4aa3e7bfe891d986237759576b5ebf0e4ed42b";
sha256 = "sha256-o01ASvHa68++wrHPLYxd452kHM0EAYQuMX8sbGjvvsg=";
};

sourceRoot = "source/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 [ PCSC ];

meta = with lib; {
description = "Relays a smart card using an contact-less interface";
homepage = "https://frankmorgner.github.io/vsmartcard/pcsc-relay/README.html";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ stargate01 ];
};
}
3 changes: 3 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14447,6 +14447,9 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) PCSC;
};

vsmartcard-pcsc-relay = callPackage ../by-name/vs/vsmartcard-pcsc-relay/package.nix {
inherit (darwin.apple_sdk.frameworks) PCSC;
};

vtm = callPackage ../tools/misc/vtm { };

Expand Down

0 comments on commit b134cce

Please sign in to comment.