lol

openssl(_3): enable KTLS only on Linux

This fixes build on *-darwin.

+3 -1
+3 -1
pkgs/development/libraries/openssl/default.nix
··· 130 130 "-DUSE_CRYPTODEV_DIGESTS" 131 131 ] ++ lib.optional enableSSL2 "enable-ssl2" 132 132 ++ lib.optional enableSSL3 "enable-ssl3" 133 - ++ lib.optional (lib.versionAtLeast version "3.0.0") "enable-ktls" 133 + # We select KTLS here instead of the configure-time detection (which we patch out). 134 + # KTLS should work on FreeBSD 13+ as well, so we could enable it if someone tests it. 135 + ++ lib.optional (stdenv.isLinux && lib.versionAtLeast version "3.0.0") "enable-ktls" 134 136 ++ lib.optional (lib.versionAtLeast version "1.1.1" && stdenv.hostPlatform.isAarch64) "no-afalgeng" 135 137 # OpenSSL needs a specific `no-shared` configure flag. 136 138 # See https://wiki.openssl.org/index.php/Compilation_and_Installation#Configure_Options