accountservice: condition gcc_14 specific -Wno-error flags

This commit is contained in:
Fabián Heredia Montiel 2024-09-29 12:10:22 -06:00
parent 8e5ca58e0a
commit c2a5dcf5a0

View File

@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
libxcrypt libxcrypt
]; ];
env = lib.optionalAttrs stdenv.cc.isGNU { env = lib.optionalAttrs (stdenv.cc.isGNU && (lib.versionAtLeast (lib.getVersion stdenv.cc.cc) "14")) {
NIX_CFLAGS_COMPILE = toString [ NIX_CFLAGS_COMPILE = toString [
"-Wno-error=deprecated-declarations" "-Wno-error=deprecated-declarations"
"-Wno-error=implicit-function-declaration" "-Wno-error=implicit-function-declaration"