diff options
author | Vladimír Čunát <v@cunat.cz> | 2022-11-02 09:33:15 +0100 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2022-11-02 09:33:15 +0100 |
commit | 70ca403dc22e97fb4b73ab74af29e1c8a1f45f69 (patch) | |
tree | 1b537aa474ff1038ca7dcb94a9ef74de22f6976f /pkgs/development/libraries | |
parent | d6b878900572e4f1cd0586723d00195d75c32ad7 (diff) |
openssl(_3): enable KTLS only on Linux
This fixes build on *-darwin.
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/openssl/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix index 12f48aaaa39a1..62cc8e24f4178 100644 --- a/pkgs/development/libraries/openssl/default.nix +++ b/pkgs/development/libraries/openssl/default.nix @@ -130,7 +130,9 @@ let "-DUSE_CRYPTODEV_DIGESTS" ] ++ lib.optional enableSSL2 "enable-ssl2" ++ lib.optional enableSSL3 "enable-ssl3" - ++ lib.optional (lib.versionAtLeast version "3.0.0") "enable-ktls" + # We select KTLS here instead of the configure-time detection (which we patch out). + # KTLS should work on FreeBSD 13+ as well, so we could enable it if someone tests it. + ++ lib.optional (stdenv.isLinux && lib.versionAtLeast version "3.0.0") "enable-ktls" ++ lib.optional (lib.versionAtLeast version "1.1.1" && stdenv.hostPlatform.isAarch64) "no-afalgeng" # OpenSSL needs a specific `no-shared` configure flag. # See https://wiki.openssl.org/index.php/Compilation_and_Installation#Configure_Options |