openssl_3_3: hotfix for cmake builds

Signed-off-by: Markus Theil <theil.markus@gmail.com>
(cherry picked from commit fd1745b860)
This commit is contained in:
Markus Theil 2024-09-23 17:57:58 +02:00 committed by Emily
parent 9a6f63ebed
commit 72cc50b662

View File

@ -222,8 +222,12 @@ let
rm -r $etc/etc/ssl/misc
rmdir $etc/etc/ssl/{certs,private}
${lib.optionalString (conf != null) "cat ${conf} > $etc/etc/ssl/openssl.cnf"}
'' + lib.optionalString (conf != null) ''
cat ${conf} > $etc/etc/ssl/openssl.cnf
'' + lib.optionalString (lib.versionAtLeast version "3.3.0") ''
# cleanup cmake helpers for now (for OpenSSL >= 3.3), only rely on pkg-config.
# pkg-config gets its paths fixed correctly
rm -rf $dev/lib/cmake
'';
postFixup = lib.optionalString (!stdenv.hostPlatform.isWindows) ''