From c3118ee9d52cb8f795b103b0a0db5a9c6acc4d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Tue, 24 Feb 2026 11:06:13 +0100 Subject: [PATCH] rubyPackages.openssl: drop openssl_1_1 support --- pkgs/development/ruby-modules/gem-config/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index 3cf941cdca06..bcbd7746606f 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -52,7 +52,6 @@ cmake, libssh2, openssl, - openssl_1_1, libmysqlclient, git, perl, @@ -810,10 +809,15 @@ in } ); - openssl = attrs: { + openssl = + attrs: # https://github.com/ruby/openssl/issues/369 - buildInputs = [ (if (lib.versionAtLeast attrs.version "3.0.0") then openssl else openssl_1_1) ]; - }; + assert + lib.versionAtLeast attrs.version "3.0.0" + || throw "OpenSSL 1.1 is EOL and the corresponding Ruby gem was removed."; + { + buildInputs = [ openssl ]; + }; opus-ruby = attrs: { dontBuild = false;