gem-config: add digest-sha3
`digest-sha3` is a C-extension gem which fails to build on Nix because
it uses non-literals as format strings which is forbidden by the default
Nix hardening settings. There is a pull request to fix that ([1]), but
the gem seems to be abandoned.
This PR disables the "format" hardening for `digest-sha3`.
[1]: https://github.com/phusion/digest-sha3-ruby/pull/8
commit05c8d5c88fbf4f08c5a30ae2ad195b35dac13e18
authorSergei Maximov <s.b.maximov@gmail.com>
dateFri 18 Jan 2019, 13:48 (8 years ago)
parent4545aaa
pkgs/development/ruby-modules/gem-config/default.nix+4
@@ -94,6 +94,10 @@ in
9494 '';
9595 };
9696
97+ digest-sha3 = attrs: {
98+ hardeningDisable = [ "format" ];
99+ };
100+
97101 ethon = attrs: {
98102 dontBuild = false;
99103 postPatch = ''