ruby_2_0: disable format hardening

This commit is contained in:
Franz Pletz 2016-08-02 18:01:21 +02:00
parent 0751027b31
commit c22c137c6c

View file

@ -22,6 +22,7 @@ let
then version
else versionNoPatch;
tag = "v" + stdenv.lib.replaceChars ["." "p" "-"] ["_" "_" ""] fullVersionName;
isRuby20 = majorVersion == "2" && minorVersion == "0";
isRuby21 = majorVersion == "2" && minorVersion == "1";
baseruby = self.override { useRailsExpress = false; };
self = lib.makeOverridable (
@ -81,6 +82,8 @@ let
enableParallelBuilding = true;
hardeningDisable = lib.optional isRuby20 [ "format" ];
patches =
[ ./gem_hook.patch ] ++
(import ./patchsets.nix {