unit: add withRuby_2_7 option

This commit is contained in:
zimbatm 2020-01-01 00:24:48 +00:00 committed by Alyssa Ross
parent 9e6f0d5a78
commit c187844214
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -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 = {