Skip to content

Commit 38c01af

Browse files
only test for openssl support in ruby >=2.4
1 parent 658aad5 commit 38c01af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

flake.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@
145145
ruby -e 'puts "ok"' > $out
146146
'';
147147
};
148+
} // (lib.optionalAttrs (with versionComparison rubyVersion; greaterOrEqualTo "2.4") {
149+
# Ruby <2.4 only supports openssl 1.0 and not openssl1.1. openssl 1.0 is not supported by nixpkgs
150+
# anymore, so we will not support it here.
148151
"${rubyName}-openssl" = {
149152
nativeBuildInputs = [
150153
ruby
@@ -153,7 +156,7 @@
153156
ruby -e 'require "openssl"; puts OpenSSL::OPENSSL_VERSION' > $out
154157
'';
155158
};
156-
} // (lib.optionalAttrs (with import ./lib/version-comparison.nix rubyVersion; greaterOrEqualTo "2.2") {
159+
}) // (lib.optionalAttrs (with versionComparison rubyVersion; greaterOrEqualTo "2.2") {
157160
"${rubyName}-bundlerEnv" = let
158161
gems = pkgs.bundlerEnv {
159162
name = "gemset";

0 commit comments

Comments
 (0)