ruby-modules/gem-config: relax hardening to avoid google-protobuf build failure

This commit is contained in:
Steve Purcell 2023-11-11 11:23:56 +00:00
parent 75dc87e7b4
commit 504116975f

View File

@ -334,6 +334,13 @@ in
'';
};
google-protobuf = attrs:
lib.optionalAttrs (lib.versionAtLeast attrs.version "3.25.0") {
# Fails on 3.25.0 with:
# convert.c:312:32: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
hardeningDisable = [ "format" ];
};
grpc = attrs: {
nativeBuildInputs = [ pkg-config ]
++ lib.optional stdenv.isDarwin cctools