diff options
author | Steve Purcell <steve@sanityinc.com> | 2023-11-11 11:23:56 +0000 |
---|---|---|
committer | Steve Purcell <steve@sanityinc.com> | 2023-11-11 11:26:04 +0000 |
commit | 504116975ff079dc7a27a93ee743a85d3bbf073d (patch) | |
tree | 70c69e969e79dfb24a64f8130f6cfc7d63159389 /pkgs/development/ruby-modules | |
parent | 75dc87e7b4000382d465e88c1d22e63ae8343e82 (diff) | |
download | nixpkgs-504116975ff079dc7a27a93ee743a85d3bbf073d.tar nixpkgs-504116975ff079dc7a27a93ee743a85d3bbf073d.tar.gz nixpkgs-504116975ff079dc7a27a93ee743a85d3bbf073d.tar.bz2 nixpkgs-504116975ff079dc7a27a93ee743a85d3bbf073d.tar.lz nixpkgs-504116975ff079dc7a27a93ee743a85d3bbf073d.tar.xz nixpkgs-504116975ff079dc7a27a93ee743a85d3bbf073d.tar.zst nixpkgs-504116975ff079dc7a27a93ee743a85d3bbf073d.zip |
ruby-modules/gem-config: relax hardening to avoid google-protobuf build failure
Diffstat (limited to 'pkgs/development/ruby-modules')
-rw-r--r-- | pkgs/development/ruby-modules/gem-config/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index ff9e3b1968c..cd814e4b414 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -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 |