Skip to content

Commit

Permalink
only test for openssl support in ruby >=2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvanderlinden committed Apr 22, 2023
1 parent 658aad5 commit 38c01af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@
ruby -e 'puts "ok"' > $out
'';
};
} // (lib.optionalAttrs (with versionComparison rubyVersion; greaterOrEqualTo "2.4") {
# Ruby <2.4 only supports openssl 1.0 and not openssl1.1. openssl 1.0 is not supported by nixpkgs
# anymore, so we will not support it here.
"${rubyName}-openssl" = {
nativeBuildInputs = [
ruby
Expand All @@ -153,7 +156,7 @@
ruby -e 'require "openssl"; puts OpenSSL::OPENSSL_VERSION' > $out
'';
};
} // (lib.optionalAttrs (with import ./lib/version-comparison.nix rubyVersion; greaterOrEqualTo "2.2") {
}) // (lib.optionalAttrs (with versionComparison rubyVersion; greaterOrEqualTo "2.2") {
"${rubyName}-bundlerEnv" = let
gems = pkgs.bundlerEnv {
name = "gemset";
Expand Down

0 comments on commit 38c01af

Please sign in to comment.