-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vsmartcard-pcsc-relay: init at 20220814
- Loading branch information
1 parent
03814c0
commit b134cce
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters