summaryrefslogtreecommitdiffstats
path: root/pkgs/development
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-12-25 04:20:00 -0500
committerAlyssa Ross <hi@alyssa.is>2019-12-25 14:24:03 +0000
commit76200c42842b6179f60c399fbda4976068716784 (patch)
treec7a5784ed08e55cdf27c9b5217e9fa645155e05d /pkgs/development
parent298010982b8986f6669e2b762634dac48253d7ba (diff)
ruby_2_7: init at 2.7.0
Release notes: https://www.ruby-lang.org/en/news/2019/12/25/ruby-2-7-0-released/
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/interpreters/ruby/default.nix15
-rw-r--r--pkgs/development/interpreters/ruby/patchsets.nix2
2 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix
index 98e26a223b28..ee9b61259bb0 100644
--- a/pkgs/development/interpreters/ruby/default.nix
+++ b/pkgs/development/interpreters/ruby/default.nix
@@ -27,6 +27,7 @@ let
ver = version;
tag = ver.gitTag;
atLeast25 = lib.versionAtLeast ver.majMin "2.5";
+ atLeast27 = lib.versionAtLeast ver.majMin "2.7";
baseruby = self.override {
useRailsExpress = false;
docSupport = false;
@@ -116,6 +117,12 @@ let
cp ${config}/config.sub tool/
'';
+ # Force the revision.h generation. Somehow `revision.tmp` is an empty
+ # file and because we don't add `git` to buildInputs, hence the check is
+ # always true.
+ # https://github.com/ruby/ruby/commit/97a5af62a318fcd93a4e5e4428d576c0280ddbae
+ buildFlags = lib.optionals atLeast27 [ "REVISION_LATEST=0" ];
+
configureFlags = ["--enable-shared" "--enable-pthread" "--with-soname=ruby_${tag}"]
++ op useRailsExpress "--with-baseruby=${baseruby}/bin/ruby"
++ op (!docSupport) "--disable-install-doc"
@@ -246,4 +253,12 @@ in {
git = "0pay6ic22ag3bnvxffhgwp7z6clkd0p93944a1l4lvc5hxc8v77j";
};
};
+
+ ruby_2_7 = generic {
+ version = rubyVersion "2" "7" "0" "";
+ sha256 = {
+ src = "1glc3zpnih6h8mrgfcak0aa7cgmi4zyvxfyi6y2brwg2nn9sm6cc";
+ git = "11iz64k95czs273mb10195d1j75mmbcgddfdx1vay5876ffw81dq";
+ };
+ };
}
diff --git a/pkgs/development/interpreters/ruby/patchsets.nix b/pkgs/development/interpreters/ruby/patchsets.nix
index 6fbb33b27fc3..4838a1a09e54 100644
--- a/pkgs/development/interpreters/ruby/patchsets.nix
+++ b/pkgs/development/interpreters/ruby/patchsets.nix
@@ -16,4 +16,6 @@
"${patchSet}/patches/ruby/2.6/head/railsexpress/02-improve-gc-stats.patch"
"${patchSet}/patches/ruby/2.6/head/railsexpress/03-more-detailed-stacktrace.patch"
];
+ "2.7.0" = ops useRailsExpress [ # no patches yet (2019-12-25)
+ ];
}