ruby_2_0: disable format hardening
This commit is contained in:
parent
0751027b31
commit
c22c137c6c
@ -22,6 +22,7 @@ let
|
|||||||
then version
|
then version
|
||||||
else versionNoPatch;
|
else versionNoPatch;
|
||||||
tag = "v" + stdenv.lib.replaceChars ["." "p" "-"] ["_" "_" ""] fullVersionName;
|
tag = "v" + stdenv.lib.replaceChars ["." "p" "-"] ["_" "_" ""] fullVersionName;
|
||||||
|
isRuby20 = majorVersion == "2" && minorVersion == "0";
|
||||||
isRuby21 = majorVersion == "2" && minorVersion == "1";
|
isRuby21 = majorVersion == "2" && minorVersion == "1";
|
||||||
baseruby = self.override { useRailsExpress = false; };
|
baseruby = self.override { useRailsExpress = false; };
|
||||||
self = lib.makeOverridable (
|
self = lib.makeOverridable (
|
||||||
@ -81,6 +82,8 @@ let
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
hardeningDisable = lib.optional isRuby20 [ "format" ];
|
||||||
|
|
||||||
patches =
|
patches =
|
||||||
[ ./gem_hook.patch ] ++
|
[ ./gem_hook.patch ] ++
|
||||||
(import ./patchsets.nix {
|
(import ./patchsets.nix {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user