nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Thomas Gerbet and committed by
GitHub
16849c82 815f6e9e

+65 -122
+1 -1
doc/languages-frameworks/ruby.section.md
··· 8 8 9 9 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. 10 10 11 - 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. 11 + 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. 12 12 13 13 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. 14 14
+1 -1
nixos/modules/services/misc/redmine.nix
··· 80 80 enable = lib.mkEnableOption "Redmine, a project management web application"; 81 81 82 82 package = lib.mkPackageOption pkgs "redmine" { 83 - example = "redmine.override { ruby = pkgs.ruby_3_2; }"; 83 + example = "redmine.override { ruby = pkgs.ruby_3_4; }"; 84 84 }; 85 85 86 86 user = lib.mkOption {
+33 -5
pkgs/applications/editors/vim/macvim.nix
··· 7 7 gettext, 8 8 pkg-config, 9 9 cscope, 10 - ruby_3_2, 10 + ruby, 11 11 tcl, 12 - perl540, 12 + perl, 13 13 luajit, 14 14 darwin, 15 15 libiconv, ··· 18 18 19 19 # Try to match MacVim's documented script interface compatibility 20 20 let 21 - perl = perl540; 22 - # Ruby 3.2 23 - ruby = ruby_3_2; 21 + #perl = perl540; 22 + # Ruby 3.3 23 + #ruby = ruby_3_3; 24 24 25 25 # Building requires a few system tools to be in PATH. 26 26 # Some of these we could patch into the relevant source files (such as xcodebuild and ··· 215 215 maintainers = [ ]; 216 216 platforms = platforms.darwin; 217 217 hydraPlatforms = [ ]; # hydra can't build this as long as we rely on Xcode and sandboxProfile 218 + # Needs updating to a newer MacVim for Python and Ruby version support 219 + broken = true; 220 + knownVulnerabilities = [ 221 + "CVE-2023-46246" 222 + "CVE-2023-48231" 223 + "CVE-2023-48232" 224 + "CVE-2023-48233" 225 + "CVE-2023-48234" 226 + "CVE-2023-48235" 227 + "CVE-2023-48236" 228 + "CVE-2023-48237" 229 + "CVE-2023-48706" 230 + "CVE-2023-5344" 231 + "CVE-2023-5441" 232 + "CVE-2023-5535" 233 + "CVE-2024-22667" 234 + "CVE-2024-41957" 235 + "CVE-2024-41965" 236 + "CVE-2024-43374" 237 + "CVE-2024-47814" 238 + "CVE-2025-1215" 239 + "CVE-2025-22134" 240 + "CVE-2025-24014" 241 + "CVE-2025-26603" 242 + "CVE-2025-29768" 243 + "CVE-2025-53905" 244 + "CVE-2025-53906" 245 + ]; 218 246 }; 219 247 })
+10 -4
pkgs/by-name/so/sonic-pi/package.nix
··· 8 8 cmake, 9 9 pkg-config, 10 10 catch2_3, 11 + ncurses, 11 12 kdePackages, 12 13 kissfftFloat, 13 14 crossguid, 14 15 reproc, 15 16 platform-folders, 16 - ruby_3_2, 17 + ruby, 17 18 beamPackages, 18 19 alsa-lib, 19 20 rtmidi, ··· 32 31 gl3w, 33 32 SDL2, 34 33 fmt, 35 - }: 34 + }@args: 36 35 37 - # Sonic Pi fails to build with Ruby 3.3. 38 36 let 39 - ruby = ruby_3_2; 37 + ruby = args.ruby.withPackages (ps: [ 38 + ps.prime 39 + ps.racc 40 + ps.rake 41 + ps.rexml 42 + ]); 40 43 in 41 44 42 45 stdenv.mkDerivation (finalAttrs: { ··· 77 72 ]; 78 73 79 74 buildInputs = [ 75 + ncurses 80 76 kdePackages.qtbase 81 77 kdePackages.qtsvg 82 78 kdePackages.qttools
-13
pkgs/by-name/tr/tree-from-tags/Gemfile.lock
··· 1 - GEM 2 - remote: https://rubygems.org/ 3 - specs: 4 - taglib-ruby (0.7.1) 5 - 6 - PLATFORMS 7 - ruby 8 - 9 - DEPENDENCIES 10 - taglib-ruby 11 - 12 - BUNDLED WITH 13 - 2.1.4
+4 -2
pkgs/by-name/tr/tree-from-tags/gemset.nix
··· 1 1 { 2 2 taglib-ruby = { 3 + groups = [ "default" ]; 4 + platforms = [ ]; 3 5 source = { 4 6 remotes = [ "https://rubygems.org" ]; 5 - sha256 = "0r8g7zdncc6243d000jn0grc1n70rn9mx16vggy3q7c4wgsa37xi"; 7 + sha256 = "1bmirkz9lfhbykj3x48z1gv0jl1bfz60yscpl0hmjxrdmcihzfai"; 6 8 type = "gem"; 7 9 }; 8 - version = "0.7.1"; 10 + version = "2.0.0"; 9 11 }; 10 12 }
-8
pkgs/by-name/un/unit/package.nix
··· 12 12 php82, 13 13 withPerl ? true, 14 14 perl, 15 - withRuby_3_1 ? true, 16 - ruby_3_1, 17 - withRuby_3_2 ? false, 18 - ruby_3_2, 19 15 withSSL ? true, 20 16 openssl ? null, 21 17 withIPv6 ? true, ··· 54 58 ] 55 59 ++ optional withPHP82 php82-unit 56 60 ++ optional withPerl perl 57 - ++ optional withRuby_3_1 ruby_3_1 58 - ++ optional withRuby_3_2 ruby_3_2 59 61 ++ optional withSSL openssl; 60 62 61 63 configureFlags = [ ··· 73 79 ${optionalString withPython3 "./configure python --module=python3 --config=python3-config --lib-path=${python3}/lib"} 74 80 ${optionalString withPHP82 "./configure php --module=php82 --config=${php82-unit.unwrapped.dev}/bin/php-config --lib-path=${php82-unit}/lib"} 75 81 ${optionalString withPerl "./configure perl --module=perl --perl=${perl}/bin/perl"} 76 - ${optionalString withRuby_3_1 "./configure ruby --module=ruby31 --ruby=${ruby_3_1}/bin/ruby"} 77 - ${optionalString withRuby_3_2 "./configure ruby --module=ruby32 --ruby=${ruby_3_2}/bin/ruby"} 78 82 ''; 79 83 80 84 passthru.tests = {
+8 -36
pkgs/development/interpreters/ruby/default.nix
··· 57 57 }: 58 58 let 59 59 ver = version; 60 - atLeast31 = lib.versionAtLeast ver.majMin "3.1"; 61 - atLeast32 = lib.versionAtLeast ver.majMin "3.2"; 62 60 # https://github.com/ruby/ruby/blob/v3_2_2/yjit.h#L21 63 61 yjitSupported = 64 - atLeast32 65 - && ( 66 - stdenv.hostPlatform.isx86_64 || (!stdenv.hostPlatform.isWindows && stdenv.hostPlatform.isAarch64) 67 - ); 62 + stdenv.hostPlatform.isx86_64 || (!stdenv.hostPlatform.isWindows && stdenv.hostPlatform.isAarch64); 68 63 rubyDrv = lib.makeOverridable ( 69 64 { 70 65 stdenv, ··· 183 188 # make: *** [uncommon.mk:373: do-install-all] Error 1 184 189 enableParallelInstalling = false; 185 190 186 - patches = 187 - op (lib.versionOlder ver.majMin "3.1") ./do-not-regenerate-revision.h.patch 188 - ++ op useBaseRuby ( 189 - if atLeast32 then ./do-not-update-gems-baseruby-3.2.patch else ./do-not-update-gems-baseruby.patch 190 - ) 191 - ++ ops (ver.majMin == "3.0") [ 192 - # Ruby 3.0 adds `-fdeclspec` to $CC instead of $CFLAGS. Fixed in later versions. 193 - (fetchpatch { 194 - url = "https://github.com/ruby/ruby/commit/0acc05caf7518cd0d63ab02bfa036455add02346.patch"; 195 - hash = "sha256-43hI9L6bXfeujgmgKFVmiWhg7OXvshPCCtQ4TxqK1zk="; 196 - }) 197 - ] 198 - ++ ops atLeast31 [ 199 - # When using a baseruby, ruby always sets "libdir" to the build 200 - # directory, which nix rejects due to a reference in to /build/ in 201 - # the final product. Removing this reference doesn't seem to break 202 - # anything and fixes cross compilation. 203 - ./dont-refer-to-build-dir.patch 204 - ]; 191 + patches = op useBaseRuby ./do-not-update-gems-baseruby-3.2.patch ++ [ 192 + # When using a baseruby, ruby always sets "libdir" to the build 193 + # directory, which nix rejects due to a reference in to /build/ in 194 + # the final product. Removing this reference doesn't seem to break 195 + # anything and fixes cross compilation. 196 + ./dont-refer-to-build-dir.patch 197 + ]; 205 198 206 199 cargoRoot = opString yjitSupport "yjit"; 207 200 ··· 392 409 { 393 410 mkRubyVersion = rubyVersion; 394 411 mkRuby = generic; 395 - 396 - ruby_3_1 = generic { 397 - version = rubyVersion "3" "1" "7" ""; 398 - hash = "sha256-BVas1p8UHdrOA/pd2NdufqDY9SMu3wEkKVebzaqzDns="; 399 - }; 400 - 401 - ruby_3_2 = generic { 402 - version = rubyVersion "3" "2" "9" ""; 403 - hash = "sha256-q7rZjbmusVJ3Ow01ho5QADuMRn89BhUld8Tf7Z2I7So="; 404 - cargoHash = "sha256-CMVx5/+ugDNEuLAvyPN0nGHwQw6RXyfRsMO9I+kyZpk="; 405 - }; 406 412 407 413 ruby_3_3 = generic { 408 414 version = rubyVersion "3" "3" "9" "";
-23
pkgs/development/interpreters/ruby/do-not-regenerate-revision.h.patch
··· 1 - Do not regenerate revision.h 2 - 3 - Ruby's makefile compares the shipped version with the git revision to regenerate 4 - revision.h [1], but since we don't include git in buildInputs, this comparison 5 - fails and it can't find $(REVISION_H). 6 - 7 - [1] https://github.com/ruby/ruby/commit/97a5af62a318fcd93a4e5e4428d576c0280ddbae 8 - 9 - diff -Naur ruby.old/defs/gmake.mk ruby.new/defs/gmake.mk 10 - --- ruby.old/defs/gmake.mk 11 - +++ ruby.new/defs/gmake.mk 12 - @@ -325,11 +325,9 @@ 13 - 14 - REVISION_IN_HEADER := $(shell sed -n 's/^\#define RUBY_FULL_REVISION "\(.*\)"/\1/p' $(srcdir)/revision.h 2>/dev/null) 15 - REVISION_LATEST := $(shell $(CHDIR) $(srcdir) && git log -1 --format=%H 2>/dev/null) 16 - -ifneq ($(REVISION_IN_HEADER),$(REVISION_LATEST)) 17 - # GNU make treat the target as unmodified when its dependents get 18 - # updated but it is not updated, while others may not. 19 - $(srcdir)/revision.h: $(REVISION_H) 20 - -endif 21 - 22 - # Query on the generated rdoc 23 - #
-14
pkgs/development/interpreters/ruby/do-not-update-gems-baseruby.patch
··· 1 - Do not update gems when building with base ruby 2 - 3 - diff -Naur ruby.old/defs/gmake.mk ruby.new/defs/gmake.mk 4 - --- ruby.old/common.mk 5 - +++ ruby.new/common.mk 6 - @@ -1298,7 +1298,7 @@ update-config_files: PHONY 7 - config.guess config.sub 8 - 9 - refresh-gems: update-bundled_gems prepare-gems 10 - -prepare-gems: $(HAVE_BASERUBY:yes=update-gems) $(HAVE_BASERUBY:yes=extract-gems) 11 - +prepare-gems: 12 - 13 - update-gems$(gnumake:yes=-nongnumake): PHONY 14 - $(ECHO) Downloading bundled gem files...
+4 -2
pkgs/development/ruby-modules/with-packages/test.nix
··· 5 5 lib = pkgs.lib; 6 6 stdenv = pkgs.stdenv; 7 7 8 - rubyVersions = with pkgs; [ 9 - ruby_3_2 8 + rubyVersions = [ 9 + # TODO FIXME: All versions listed here were dropped from Nixpkgs. 10 + # Add current versions here or remove this file if it’s no longer 11 + # being used. 10 12 ]; 11 13 12 14 gemTests = (lib.mapAttrs (name: gem: [ name ]) pkgs.ruby.gems) // (import ./require_exceptions.nix);
+4
pkgs/top-level/aliases.nix
··· 2354 2354 rquickshare-legacy = throw "The legacy version depends on insecure package libsoup2, please use the main version"; # Added 2025-10-09 2355 2355 rr-unstable = rr; # Added 2022-09-17 2356 2356 rtx = mise; # Added 2024-01-05 2357 + ruby_3_1 = throw "ruby_3_1 has been removed, as it is has reached end‐of‐life upstream"; # Added 2025-10-12 2358 + 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 2359 + rubyPackages_3_1 = throw "rubyPackages_3_1 has been removed, as it is has reached end‐of‐life upstream"; # Added 2025-10-12 2360 + 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 2357 2361 ruby-zoom = throw "'ruby-zoom' has been removed due to lack of maintaince and had not been updated since 2020"; # Added 2025-08-24 2358 2362 runCommandNoCC = runCommand; # Added 2021-08-15 2359 2363 runCommandNoCCLocal = runCommandLocal; # Added 2021-08-15
-8
pkgs/top-level/all-packages.nix
··· 6036 6036 }) 6037 6037 mkRubyVersion 6038 6038 mkRuby 6039 - ruby_3_1 6040 - ruby_3_2 6041 6039 ruby_3_3 6042 6040 ruby_3_4 6043 6041 ruby_3_5 ··· 6044 6046 ruby = ruby_3_3; 6045 6047 rubyPackages = rubyPackages_3_3; 6046 6048 6047 - rubyPackages_3_1 = recurseIntoAttrs ruby_3_1.gems; 6048 - rubyPackages_3_2 = recurseIntoAttrs ruby_3_2.gems; 6049 6049 rubyPackages_3_3 = recurseIntoAttrs ruby_3_3.gems; 6050 6050 rubyPackages_3_4 = recurseIntoAttrs ruby_3_4.gems; 6051 6051 rubyPackages_3_5 = recurseIntoAttrs ruby_3_5.gems; ··· 14885 14889 14886 14890 libkazv = callPackage ../by-name/li/libkazv/package.nix { 14887 14891 libcpr = libcpr_1_10_5; 14888 - }; 14889 - 14890 - tree-from-tags = callPackage ../by-name/tr/tree-from-tags/package.nix { 14891 - ruby = ruby_3_1; 14892 14892 }; 14893 14893 14894 14894 biblioteca = callPackage ../by-name/bi/biblioteca/package.nix {
-5
pkgs/top-level/pkg-config/pkg-config-data.json
··· 746 746 "python3" 747 747 ] 748 748 }, 749 - "ruby-3.1": { 750 - "attrPath": [ 751 - "ruby_3_1" 752 - ] 753 - }, 754 749 "sdl2": { 755 750 "attrPath": [ 756 751 "SDL2"