Skip to content

Commit

Permalink
Bump ruby to 3.4 era in devshell (#668)
Browse files Browse the repository at this point in the history
* Bump ruby to 3.4 era in devshell

Follow GH-666 with GH-667 including NixOS/nixpkgs@7ff2d48

* `ruby -e 'puts RUBY_VERSION' > .ruby-version`
  • Loading branch information
kachick authored Dec 28, 2024
1 parent 2718a40 commit 42c82e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.5
3.4.1
8 changes: 4 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -50,7 +50,7 @@
mkdir -p $out/bin
cp -rf ./lib $out
'';
runtimeDependencies = [ pkgs.ruby_3_3 ];
runtimeDependencies = [ pkgs.ruby_3_4 ];
};

# `nix run`
Expand All @@ -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" "$@"
'';
Expand All @@ -75,7 +75,7 @@
lib.getExe (writeShellApplication {
name = "irb-with-ulid";
runtimeInputs = [
ruby_3_3
ruby_3_4
libyaml
];
text = ''
Expand Down

0 comments on commit 42c82e9

Please sign in to comment.