|
1 | 1 | { stdenv, buildPackages, lib |
2 | 2 | , fetchurl, fetchpatch, fetchFromSavannah, fetchFromGitHub |
3 | | -, zlib, openssl, gdbm, ncurses, readline, groff, libyaml, libffi, jemalloc, autoreconfHook, bison |
| 3 | +, zlib, gdbm, ncurses, readline, groff, libyaml, libffi, jemalloc, autoreconfHook, bison |
4 | 4 | , autoconf, libiconv, libobjc, libunwind, Foundation |
5 | 5 | , buildEnv, bundler, bundix |
6 | 6 | , makeWrapper, buildRubyGem, defaultGemConfig, removeReferencesTo |
| 7 | +, openssl, openssl_1_1 |
7 | 8 | } @ args: |
8 | 9 |
|
9 | 10 | let |
|
26 | 27 | , useRailsExpress ? true |
27 | 28 | , rubygemsSupport ? true |
28 | 29 | , zlib, zlibSupport ? true |
29 | | - , openssl, opensslSupport ? true |
| 30 | + , openssl, openssl_1_1, opensslSupport ? true |
30 | 31 | , gdbm, gdbmSupport ? true |
31 | 32 | , ncurses, readline, cursesSupport ? true |
32 | 33 | , groff, docSupport ? true |
|
75 | 76 | ++ (op fiddleSupport libffi) |
76 | 77 | ++ (ops cursesSupport [ ncurses readline ]) |
77 | 78 | ++ (op zlibSupport zlib) |
78 | | - ++ (op opensslSupport openssl) |
| 79 | + ++ (op (lib.versionOlder ver.majMin "3.0" && opensslSupport) openssl_1_1) |
| 80 | + ++ (op (atLeast30 && opensslSupport) openssl_1_1) |
79 | 81 | ++ (op gdbmSupport gdbm) |
80 | 82 | ++ (op yamlSupport libyaml) |
81 | 83 | # Looks like ruby fails to build on darwin without readline even if curses |
|
0 commit comments