nixpkgs-suyu/pkgs/tools/security/pcsc-cyberjack/default.nix

43 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-17 04:51:22 +01:00
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, libusb1, pcsclite }:
2020-04-10 02:15:09 +02:00
let
version = "3.99.5";
suffix = "SP13";
tarBall = "${version}final.${suffix}";
in stdenv.mkDerivation rec {
pname = "pcsc-cyberjack";
2020-04-10 02:15:09 +02:00
inherit version;
src = fetchurl {
url =
"http://support.reiner-sct.de/downloads/LINUX/V${version}_${suffix}/${pname}_${tarBall}.tar.gz";
sha256 = "1lx4bfz4riz7j77sl65akyxzww0ygm63w0c1b75knr1pijlv8d3b";
};
outputs = [ "out" "tools" ];
2021-01-17 04:51:22 +01:00
nativeBuildInputs = [ autoreconfHook pkg-config ];
2020-04-10 02:15:09 +02:00
buildInputs = [ libusb1 pcsclite ];
2020-04-10 02:15:09 +02:00
enableParallelBuilding = true;
NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
configureFlags = [
"--with-usbdropdir=${placeholder "out"}/pcsc/drivers"
"--bindir=${placeholder "tools"}/bin"
];
postInstall = "make -C tools/cjflash install";
meta = with lib; {
description = "REINER SCT cyberJack USB chipcard reader user space driver";
homepage = "https://www.reiner-sct.com/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ aszlig ];
2020-04-10 02:15:09 +02:00
platforms = platforms.linux;
};
}