From e1684ef5556733e30e2e91366b0a7bca274d4578 Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Sat, 9 Jan 2021 12:53:24 +0100 Subject: 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. --- pkgs/tools/security/pcsc-cyberjack/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs') diff --git a/pkgs/tools/security/pcsc-cyberjack/default.nix b/pkgs/tools/security/pcsc-cyberjack/default.nix index 7ae062547aa..015e3938c3e 100644 --- a/pkgs/tools/security/pcsc-cyberjack/default.nix +++ b/pkgs/tools/security/pcsc-cyberjack/default.nix @@ -23,6 +23,8 @@ in stdenv.mkDerivation rec { enableParallelBuilding = true; + NIX_CFLAGS_COMPILE = "-Wno-error=narrowing"; + configureFlags = [ "--with-usbdropdir=${placeholder "out"}/pcsc/drivers" "--bindir=${placeholder "tools"}/bin" -- cgit 1.4.1