2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, libusb1, pcsclite }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "3.99.5";
|
2023-07-15 17:15:38 +00:00
|
|
|
suffix = "SP15";
|
2020-04-24 23:36:52 +00:00
|
|
|
tarBall = "${version}final.${suffix}";
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "pcsc-cyberjack";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url =
|
2023-07-15 17:15:38 +00:00
|
|
|
"https://support.reiner-sct.de/downloads/LINUX/V${version}_${suffix}/${pname}_${tarBall}.tar.bz2";
|
|
|
|
sha256 = "sha256-rLfCgyRQcYdWcTdnxLPvUAgy1lLtUbNRELkQsR69Rno=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "tools" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ libusb1 pcsclite ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-usbdropdir=${placeholder "out"}/pcsc/drivers"
|
|
|
|
"--bindir=${placeholder "tools"}/bin"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = "make -C tools/cjflash install";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "REINER SCT cyberJack USB chipcard reader user space driver";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cjflash";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.reiner-sct.com/";
|
|
|
|
license = licenses.gpl2Plus;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ aszlig flokli ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|