2020-04-08 20:31:16 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, 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" ];
|
|
|
|
|
2020-04-08 20:31:16 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
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;
|
|
|
|
|
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
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|