forked from mirrors/nixpkgs
The change to GCC 10 did break this package as it does some conversation from 32bit integer to the type "int" which might be "narrower" depending on the platform. By default GCC 10 errors in these cases. Since this code is fine (and has been for a long time) it is okay to disable the error in this case.
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ stdenv, fetchurl, autoreconfHook, pkgconfig, libusb1, pcsclite }:
|
|
|
|
let
|
|
version = "3.99.5";
|
|
suffix = "SP13";
|
|
tarBall = "${version}final.${suffix}";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
pname = "pcsc-cyberjack";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url =
|
|
"http://support.reiner-sct.de/downloads/LINUX/V${version}_${suffix}/${pname}_${tarBall}.tar.gz";
|
|
sha256 = "1lx4bfz4riz7j77sl65akyxzww0ygm63w0c1b75knr1pijlv8d3b";
|
|
};
|
|
|
|
outputs = [ "out" "tools" ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ libusb1 pcsclite ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
|
|
|
|
configureFlags = [
|
|
"--with-usbdropdir=${placeholder "out"}/pcsc/drivers"
|
|
"--bindir=${placeholder "tools"}/bin"
|
|
];
|
|
|
|
postInstall = "make -C tools/cjflash install";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "REINER SCT cyberJack USB chipcard reader user space driver";
|
|
homepage = "https://www.reiner-sct.com/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ aszlig ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|