1 { lib, stdenv, fetchurl, autoreconfHook, pkg-config, libusb1, pcsclite }:
6 tarBall = "${version}final.${suffix}";
8 in stdenv.mkDerivation rec {
9 pname = "pcsc-cyberjack";
14 "http://support.reiner-sct.de/downloads/LINUX/V${version}_${suffix}/${pname}_${tarBall}.tar.gz";
15 sha256 = "1lx4bfz4riz7j77sl65akyxzww0ygm63w0c1b75knr1pijlv8d3b";
18 outputs = [ "out" "tools" ];
20 nativeBuildInputs = [ autoreconfHook pkg-config ];
22 buildInputs = [ libusb1 pcsclite ];
24 enableParallelBuilding = true;
26 NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
29 "--with-usbdropdir=${placeholder "out"}/pcsc/drivers"
30 "--bindir=${placeholder "tools"}/bin"
33 postInstall = "make -C tools/cjflash install";
36 description = "REINER SCT cyberJack USB chipcard reader user space driver";
37 homepage = "https://www.reiner-sct.com/";
38 license = licenses.gpl2Plus;
39 maintainers = with maintainers; [ aszlig ];
40 platforms = platforms.linux;