Skip to content

Commit

Permalink
gem-config: add digest-sha3
Browse files Browse the repository at this point in the history
`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]: phusion/digest-sha3-ruby#8
  • Loading branch information
smaximov committed Jan 18, 2019
1 parent 4545aaa commit 05c8d5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/ruby-modules/gem-config/default.nix
Expand Up @@ -94,6 +94,10 @@ in
'';
};

digest-sha3 = attrs: {
hardeningDisable = [ "format" ];
};

ethon = attrs: {
dontBuild = false;
postPatch = ''
Expand Down

0 comments on commit 05c8d5c

Please sign in to comment.