Commit 2f42412f authored by Emily's avatar Emily
Browse files

ruby_3_2: drop

parent a36781b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ In the Nixpkgs tree, Ruby packages can be found throughout, depending on what th

There are two main approaches for using Ruby with gems. One is to use a specifically locked `Gemfile` for an application that has very strict dependencies. The other is to depend on the common gems, which we'll explain further down, and rely on them being updated regularly.

The interpreters have common attributes, namely `gems`, and `withPackages`. So you can refer to `ruby.gems.nokogiri`, or `ruby_3_2.gems.nokogiri` to get the Nokogiri gem already compiled and ready to use.
The interpreters have common attributes, namely `gems`, and `withPackages`. So you can refer to `ruby.gems.nokogiri`, or `ruby_3_4.gems.nokogiri` to get the Nokogiri gem already compiled and ready to use.

Since not all gems have executables like `nokogiri`, it's usually more convenient to use the `withPackages` function like this: `ruby.withPackages (p: with p; [ nokogiri ])`. This will also make sure that the Ruby in your environment will be able to find the gem and it can be used in your Ruby code (for example via `ruby` or `irb` executables) via `require "nokogiri"` as usual.

+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ in
      enable = lib.mkEnableOption "Redmine, a project management web application";

      package = lib.mkPackageOption pkgs "redmine" {
        example = "redmine.override { ruby = pkgs.ruby_3_2; }";
        example = "redmine.override { ruby = pkgs.ruby_3_4; }";
      };

      user = lib.mkOption {
+0 −6
Original line number Diff line number Diff line
@@ -393,12 +393,6 @@ in
  mkRubyVersion = rubyVersion;
  mkRuby = generic;

  ruby_3_2 = generic {
    version = rubyVersion "3" "2" "9" "";
    hash = "sha256-q7rZjbmusVJ3Ow01ho5QADuMRn89BhUld8Tf7Z2I7So=";
    cargoHash = "sha256-CMVx5/+ugDNEuLAvyPN0nGHwQw6RXyfRsMO9I+kyZpk=";
  };

  ruby_3_3 = generic {
    version = rubyVersion "3" "3" "9" "";
    hash = "sha256-0ZkWkKThcjPsazx4RMHhJFwK3OPgDXE1UdBFhGe3J7E=";
+4 −2
Original line number Diff line number Diff line
@@ -5,8 +5,10 @@ let
  lib = pkgs.lib;
  stdenv = pkgs.stdenv;

  rubyVersions = with pkgs; [
    ruby_3_2
  rubyVersions = [
    # TODO FIXME: All versions listed here were dropped from Nixpkgs.
    # Add current versions here or remove this file if it’s no longer
    # being used.
  ];

  gemTests = (lib.mapAttrs (name: gem: [ name ]) pkgs.ruby.gems) // (import ./require_exceptions.nix);
+2 −0
Original line number Diff line number Diff line
@@ -2355,7 +2355,9 @@ mapAliases {
  rr-unstable = rr; # Added 2022-09-17
  rtx = mise; # Added 2024-01-05
  ruby_3_1 = throw "ruby_3_1 has been removed, as it is has reached end‐of‐life upstream"; # Added 2025-10-12
  ruby_3_2 = throw "ruby_3_2 has been removed, as it will reach end‐of‐life upstream during Nixpkgs 25.11’s support cycle"; # Added 2025-10-12
  rubyPackages_3_1 = throw "rubyPackages_3_1 has been removed, as it is has reached end‐of‐life upstream"; # Added 2025-10-12
  rubyPackages_3_2 = throw "rubyPackages_3_2 has been removed, as it will reach end‐of‐life upstream during Nixpkgs 25.11’s support cycle"; # Added 2025-10-12
  ruby-zoom = throw "'ruby-zoom' has been removed due to lack of maintaince and had not been updated since 2020"; # Added 2025-08-24
  runCommandNoCC = runCommand; # Added 2021-08-15
  runCommandNoCCLocal = runCommandLocal; # Added 2021-08-15
Loading