From 05c8d5c88fbf4f08c5a30ae2ad195b35dac13e18 Mon Sep 17 00:00:00 2001 From: Sergei Maximov Date: Fri, 18 Jan 2019 13:48:48 +0300 Subject: [PATCH] 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 --- pkgs/development/ruby-modules/gem-config/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index fd841563005..cde0b90d6fe 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -94,6 +94,10 @@ in ''; }; + digest-sha3 = attrs: { + hardeningDisable = [ "format" ]; + }; + ethon = attrs: { dontBuild = false; postPatch = ''