From c762828396c568f6667cbc629f37f9645cc6435e Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Mon, 13 Jan 2025 10:45:49 +0100 Subject: [PATCH] shells/silverfin-tpi: Ruby 3.2.2 --- shells/silverfin-tpi.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/shells/silverfin-tpi.nix b/shells/silverfin-tpi.nix index 36c94da3..2209f6e9 100644 --- a/shells/silverfin-tpi.nix +++ b/shells/silverfin-tpi.nix @@ -14,6 +14,7 @@ pkgs.devshell.mkShell { packages = with pkgs; [ cmake nodejs_18 + (pkgs.lowPrio postgresql) shared-mime-info yarn ]; @@ -27,6 +28,10 @@ pkgs.devshell.mkShell { name = "TERM"; eval = "\${TERM:-xterm-256color}"; } + { + name = "DISABLE_SPRING"; + value = "1"; + } { name = "POSTGRESQL_ADDRESS"; value = "localhost"; @@ -42,7 +47,13 @@ pkgs.devshell.mkShell { ]; language.c.compiler = lib.mkForce pkgs.clang; language.ruby = { - package = pkgs.ruby_3_2; + package = pkgs.ruby_3_2.overrideAttrs (old: { + version = (import "${inputs.nixpkgs}/pkgs/development/interpreters/ruby/ruby-version.nix" { inherit lib; }) "3" "2" "2" ""; + src = pkgs.fetchurl { + url = "https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz"; + hash = "sha256-lsV1WIcaZ0jeW8nydOk/S1qtBs2PN776Do2U57ikI7w="; + }; + }); nativeDeps = with pkgs; [ postgresql libffi