summary refs log tree commit diff
path: root/pkgs/development/ruby-modules/gem-config/default.nix
diff options
context:
space:
mode:
authorSergei Maximov <s.b.maximov@gmail.com>2019-01-18 13:48:48 +0300
committerSergei Maximov <s.b.maximov@gmail.com>2019-01-18 13:48:48 +0300
commit05c8d5c88fbf4f08c5a30ae2ad195b35dac13e18 (patch)
tree8aaf2cbb470eb4c582491958972e9337b77b117a /pkgs/development/ruby-modules/gem-config/default.nix
parent4545aaa6710e071e35daefe373fc56b5d1e811f8 (diff)
downloadnixpkgs-05c8d5c88fbf4f08c5a30ae2ad195b35dac13e18.tar
nixpkgs-05c8d5c88fbf4f08c5a30ae2ad195b35dac13e18.tar.gz
nixpkgs-05c8d5c88fbf4f08c5a30ae2ad195b35dac13e18.tar.bz2
nixpkgs-05c8d5c88fbf4f08c5a30ae2ad195b35dac13e18.tar.lz
nixpkgs-05c8d5c88fbf4f08c5a30ae2ad195b35dac13e18.tar.xz
nixpkgs-05c8d5c88fbf4f08c5a30ae2ad195b35dac13e18.tar.zst
nixpkgs-05c8d5c88fbf4f08c5a30ae2ad195b35dac13e18.zip
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
Diffstat (limited to 'pkgs/development/ruby-modules/gem-config/default.nix')
-rw-r--r--pkgs/development/ruby-modules/gem-config/default.nix4
1 files changed, 4 insertions, 0 deletions
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 = ''