mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
ruby_2_0: disable format hardening
This commit is contained in:
parent
0751027b31
commit
c22c137c6c
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue