Skip to content

Commit 2f22789

Browse files
committed
rvm-patchsets: drop
1 parent 6323dc4 commit 2f22789

3 files changed

Lines changed: 2 additions & 36 deletions

File tree

pkgs/development/interpreters/ruby/default.nix

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ let
1212
op = lib.optional;
1313
ops = lib.optionals;
1414
opString = lib.optionalString;
15-
patchSet = import ./rvm-patchsets.nix { inherit fetchFromGitHub; };
1615
config = import ./config.nix { inherit fetchFromSavannah; };
1716
rubygems = import ./rubygems { inherit stdenv lib fetchurl; };
1817

@@ -25,7 +24,6 @@ let
2524
self = lib.makeOverridable (
2625
{ stdenv, buildPackages, lib
2726
, fetchurl, fetchpatch, fetchFromSavannah, fetchFromGitHub
28-
, useRailsExpress ? true
2927
, rubygemsSupport ? true
3028
, zlib, zlibSupport ? true
3129
, openssl, openssl_1_1, opensslSupport ? true
@@ -51,11 +49,10 @@ let
5149
, libiconv, libobjc, libunwind, Foundation
5250
, makeBinaryWrapper, buildRubyGem, defaultGemConfig
5351
, baseRuby ? buildPackages.ruby_3_1.override {
54-
useRailsExpress = false;
5552
docSupport = false;
5653
rubygemsSupport = false;
5754
}
58-
, useBaseRuby ? stdenv.hostPlatform != stdenv.buildPlatform || useRailsExpress
55+
, useBaseRuby ? stdenv.hostPlatform != stdenv.buildPlatform
5956
}:
6057
stdenv.mkDerivation rec {
6158
pname = "ruby";
@@ -93,12 +90,7 @@ let
9390

9491
enableParallelBuilding = true;
9592

96-
patches =
97-
(import ./patchsets.nix {
98-
inherit patchSet useRailsExpress ops fetchpatch;
99-
patchLevel = ver.patchLevel;
100-
}).${ver.majMinTiny}
101-
++ op (lib.versionOlder ver.majMin "3.1") ./do-not-regenerate-revision.h.patch
93+
patches = op (lib.versionOlder ver.majMin "3.1") ./do-not-regenerate-revision.h.patch
10294
++ op (atLeast30 && useBaseRuby) ./do-not-update-gems-baseruby.patch
10395
++ ops (ver.majMin == "3.0") [
10496
# Ruby 3.0 adds `-fdeclspec` to $CC instead of $CFLAGS. Fixed in later versions.

pkgs/development/interpreters/ruby/patchsets.nix

Lines changed: 0 additions & 18 deletions
This file was deleted.

pkgs/development/interpreters/ruby/rvm-patchsets.nix

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)