pcsc-cyberjack: fix compilation with gcc10

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.
This commit is contained in:
Andreas Rammhold 2021-01-09 12:53:24 +01:00
parent 9ffd16b385
commit e1684ef555
No known key found for this signature in database
GPG key ID: E432E410B5E48C86

View file

@ -23,6 +23,8 @@ in stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
configureFlags = [ configureFlags = [
"--with-usbdropdir=${placeholder "out"}/pcsc/drivers" "--with-usbdropdir=${placeholder "out"}/pcsc/drivers"
"--bindir=${placeholder "tools"}/bin" "--bindir=${placeholder "tools"}/bin"