Skip to content

Commit

Permalink
ruby: 2.4.0 (#21419)
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru authored and zimbatm committed Dec 27, 2016
1 parent 1253287 commit df5f880
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
11 changes: 10 additions & 1 deletion pkgs/development/interpreters/ruby/default.nix
Expand Up @@ -113,6 +113,7 @@ let

configureFlags = ["--enable-shared" "--enable-pthread"]
++ op useRailsExpress "--with-baseruby=${baseruby}/bin/ruby"
++ op (!docSupport) "--disable-install-doc"
++ ops stdenv.isDarwin [
# on darwin, we have /usr/include/tk.h -- so the configure script detects
# that tk is installed
Expand Down Expand Up @@ -154,7 +155,7 @@ let
license = stdenv.lib.licenses.ruby;
homepage = http://www.ruby-lang.org/en/;
description = "The Ruby language";
maintainers = [ stdenv.lib.maintainers.vrthra ];
maintainers = with stdenv.lib.maintainers; [ vrthra manveru ];
platforms = stdenv.lib.platforms.all;
};

Expand Down Expand Up @@ -218,4 +219,12 @@ in {
git = "0cwjf0nrzaa5g81bw0qp65byyadhxvbnvprkshv3ckjl7yi46zf6";
};
};

ruby_2_4_0 = generic {
version = rubyVersion "2" "4" "0" "";
sha256 = {
src = "0gcyn9328w2vma882l71c9v9ygmmsj2z8j1l44c4l2x92nyx0bqm";
git = "1w9zyx8xmka8jdiha57snnbfls2r6dc9g03d8cjx0nxkmwf3r2l3";
};
};
}
5 changes: 5 additions & 0 deletions pkgs/development/interpreters/ruby/patchsets.nix
Expand Up @@ -65,4 +65,9 @@ rec {
"${patchSet}/patches/ruby/2.3/head/railsexpress/02-improve-gc-stats.patch"
"${patchSet}/patches/ruby/2.3/head/railsexpress/03-display-more-detailed-stack-trace.patch"
];
"2.4.0" = ops useRailsExpress [
"${patchSet}/patches/ruby/2.4.0/railsexpress/01-skip-broken-tests.patch"
"${patchSet}/patches/ruby/2.4.0/railsexpress/02-improve-gc-stats.patch"
"${patchSet}/patches/ruby/2.4.0/railsexpress/03-display-more-detailed-stack-trace.patch"
];
}
6 changes: 3 additions & 3 deletions pkgs/development/interpreters/ruby/rvm-patchsets.nix
@@ -1,8 +1,8 @@
{ fetchFromGitHub }:

fetchFromGitHub {
owner = "skaes";
owner = "manveru";
repo = "rvm-patchsets";
rev = "951e47ca1022cd1e41de9177fa87438cfb72d127";
sha256 = "18n2frwmn6lcnjywysyjam1zfzfad0r50141xs2h9kifsyak5xcf";
rev = "46e04f230ce91a786f5e583389443efec0ecd594";
sha256 = "0ayh8zj8knyz3344an942qdf33pi42jmksqk34frb346zi1ag693";
}
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -5777,7 +5777,8 @@ in
ruby_2_0_0
ruby_2_1_10
ruby_2_2_5
ruby_2_3_3;
ruby_2_3_3
ruby_2_4_0;

# Ruby aliases
ruby = ruby_2_3;
Expand All @@ -5786,6 +5787,7 @@ in
ruby_2_1 = ruby_2_1_10;
ruby_2_2 = ruby_2_2_5;
ruby_2_3 = ruby_2_3_3;
ruby_2_4 = ruby_2_4_0;

scsh = callPackage ../development/interpreters/scsh { };

Expand Down

0 comments on commit df5f880

Please sign in to comment.