From 42c82e9d8abec131c381c0aa1d9c23ca87c96620 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sat, 28 Dec 2024 19:04:44 +0900 Subject: [PATCH] Bump ruby to 3.4 era in devshell (#668) * Bump ruby to 3.4 era in devshell Follow GH-666 with GH-667 including https://github.com/NixOS/nixpkgs/commit/7ff2d4855a66dbd8c5ddf8206aab40a2f5766b25 * `ruby -e 'puts RUBY_VERSION' > .ruby-version` --- .ruby-version | 2 +- flake.nix | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.ruby-version b/.ruby-version index fa7adc7a..47b322c9 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.5 +3.4.1 diff --git a/flake.nix b/flake.nix index 70ea9924..9f18bc72 100644 --- a/flake.nix +++ b/flake.nix @@ -29,7 +29,7 @@ # https://github.com/NixOS/nix/issues/730#issuecomment-162323824 bashInteractive - ruby_3_3 + ruby_3_4 # Required to build psych via irb dependency # https://github.com/kachick/irb-power_assert/issues/116 # https://github.com/ruby/irb/pull/648 @@ -50,7 +50,7 @@ mkdir -p $out/bin cp -rf ./lib $out ''; - runtimeDependencies = [ pkgs.ruby_3_3 ]; + runtimeDependencies = [ pkgs.ruby_3_4 ]; }; # `nix run` @@ -61,7 +61,7 @@ with pkgs; lib.getExe (writeShellApplication { name = "ruby-with-ulid"; - runtimeInputs = [ ruby_3_3 ]; + runtimeInputs = [ ruby_3_4 ]; text = '' ruby -r"${packages.ruby-ulid}/lib/ulid" "$@" ''; @@ -75,7 +75,7 @@ lib.getExe (writeShellApplication { name = "irb-with-ulid"; runtimeInputs = [ - ruby_3_3 + ruby_3_4 libyaml ]; text = ''