mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
Merge pull request #76758 from alyssais/ruby_2_7
Some Ruby 2.7 updates and fixes
This commit is contained in:
commit
5f5df51bf0
4 changed files with 6 additions and 1 deletions
|
@ -66,7 +66,7 @@ in
|
|||
type = types.package;
|
||||
default = pkgs.redmine;
|
||||
description = "Which Redmine package to use.";
|
||||
example = "pkgs.redmine.override { ruby = pkgs.ruby_2_4; }";
|
||||
example = "pkgs.redmine.override { ruby = pkgs.ruby_2_7; }";
|
||||
};
|
||||
|
||||
user = mkOption {
|
||||
|
|
|
@ -9,6 +9,7 @@ let
|
|||
ruby_2_4
|
||||
ruby_2_5
|
||||
ruby_2_6
|
||||
ruby_2_7
|
||||
];
|
||||
|
||||
gemTests =
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
, withRuby_2_4 ? false, ruby_2_4
|
||||
, withRuby_2_5 ? false, ruby_2_5
|
||||
, withRuby_2_6 ? true, ruby_2_6
|
||||
, withRuby_2_7 ? true, ruby_2_7
|
||||
, withSSL ? true, openssl ? null
|
||||
, withIPv6 ? true
|
||||
, withDebug ? false
|
||||
|
@ -40,6 +41,7 @@ stdenv.mkDerivation rec {
|
|||
++ optional withRuby_2_4 ruby_2_4
|
||||
++ optional withRuby_2_5 ruby_2_5
|
||||
++ optional withRuby_2_6 ruby_2_6
|
||||
++ optional withRuby_2_7 ruby_2_7
|
||||
++ optional withSSL openssl;
|
||||
|
||||
configureFlags = [
|
||||
|
@ -62,6 +64,7 @@ stdenv.mkDerivation rec {
|
|||
${optionalString withRuby_2_4 "./configure ruby --module=ruby24 --ruby=${ruby_2_4}/bin/ruby"}
|
||||
${optionalString withRuby_2_5 "./configure ruby --module=ruby25 --ruby=${ruby_2_5}/bin/ruby"}
|
||||
${optionalString withRuby_2_6 "./configure ruby --module=ruby26 --ruby=${ruby_2_6}/bin/ruby"}
|
||||
${optionalString withRuby_2_7 "./configure ruby --module=ruby27 --ruby=${ruby_2_7}/bin/ruby"}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
|
@ -9373,6 +9373,7 @@ in
|
|||
rubyPackages_2_4 = recurseIntoAttrs ruby_2_4.gems;
|
||||
rubyPackages_2_5 = recurseIntoAttrs ruby_2_5.gems;
|
||||
rubyPackages_2_6 = recurseIntoAttrs ruby_2_6.gems;
|
||||
rubyPackages_2_7 = recurseIntoAttrs ruby_2_7.gems;
|
||||
|
||||
mruby = callPackage ../development/compilers/mruby { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue