Unverified Commit 16849c82 authored by Thomas Gerbet's avatar Thomas Gerbet Committed by GitHub
Browse files

ruby_{3_1,3_2}: drop (#451385)

parents 815f6e9e 2f42412f
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 {
+33 −5
Original line number Diff line number Diff line
@@ -7,9 +7,9 @@
  gettext,
  pkg-config,
  cscope,
  ruby_3_2,
  ruby,
  tcl,
  perl540,
  perl,
  luajit,
  darwin,
  libiconv,
@@ -18,9 +18,9 @@

# Try to match MacVim's documented script interface compatibility
let
  perl = perl540;
  # Ruby 3.2
  ruby = ruby_3_2;
  #perl = perl540;
  # Ruby 3.3
  #ruby = ruby_3_3;

  # Building requires a few system tools to be in PATH.
  # Some of these we could patch into the relevant source files (such as xcodebuild and
@@ -215,5 +215,33 @@ stdenv.mkDerivation (finalAttrs: {
    maintainers = [ ];
    platforms = platforms.darwin;
    hydraPlatforms = [ ]; # hydra can't build this as long as we rely on Xcode and sandboxProfile
    # Needs updating to a newer MacVim for Python and Ruby version support
    broken = true;
    knownVulnerabilities = [
      "CVE-2023-46246"
      "CVE-2023-48231"
      "CVE-2023-48232"
      "CVE-2023-48233"
      "CVE-2023-48234"
      "CVE-2023-48235"
      "CVE-2023-48236"
      "CVE-2023-48237"
      "CVE-2023-48706"
      "CVE-2023-5344"
      "CVE-2023-5441"
      "CVE-2023-5535"
      "CVE-2024-22667"
      "CVE-2024-41957"
      "CVE-2024-41965"
      "CVE-2024-43374"
      "CVE-2024-47814"
      "CVE-2025-1215"
      "CVE-2025-22134"
      "CVE-2025-24014"
      "CVE-2025-26603"
      "CVE-2025-29768"
      "CVE-2025-53905"
      "CVE-2025-53906"
    ];
  };
})
+10 −4
Original line number Diff line number Diff line
@@ -8,12 +8,13 @@
  cmake,
  pkg-config,
  catch2_3,
  ncurses,
  kdePackages,
  kissfftFloat,
  crossguid,
  reproc,
  platform-folders,
  ruby_3_2,
  ruby,
  beamPackages,
  alsa-lib,
  rtmidi,
@@ -31,11 +32,15 @@
  gl3w,
  SDL2,
  fmt,
}:
}@args:

# Sonic Pi fails to build with Ruby 3.3.
let
  ruby = ruby_3_2;
  ruby = args.ruby.withPackages (ps: [
    ps.prime
    ps.racc
    ps.rake
    ps.rexml
  ]);
in

stdenv.mkDerivation (finalAttrs: {
@@ -72,6 +77,7 @@ stdenv.mkDerivation (finalAttrs: {
  ];

  buildInputs = [
    ncurses
    kdePackages.qtbase
    kdePackages.qtsvg
    kdePackages.qttools
+0 −13
Original line number Diff line number Diff line
GEM
  remote: https://rubygems.org/
  specs:
    taglib-ruby (0.7.1)

PLATFORMS
  ruby

DEPENDENCIES
  taglib-ruby

BUNDLED WITH
   2.1.4
Loading