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
This commit is contained in:
Sergei Maximov 2019-01-18 13:48:48 +03:00
parent 4545aaa671
commit 05c8d5c88f

View file

@ -94,6 +94,10 @@ in
'';
};
digest-sha3 = attrs: {
hardeningDisable = [ "format" ];
};
ethon = attrs: {
dontBuild = false;
postPatch = ''