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