mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
ruby-modules/gem-config: relax hardening to avoid google-protobuf build failure
This commit is contained in:
parent
75dc87e7b4
commit
504116975f
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue