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