openssl_3_3: hotfix for cmake builds (#343991)

This commit is contained in:
Emily 2024-09-23 20:59:42 +01:00 committed by GitHub
commit b2de93cfe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) ''