Skip to content

Commit

Permalink
openssl_3_3: hotfix for cmake builds
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Theil <[email protected]>
(cherry picked from commit fd1745b)
  • Loading branch information
thillux authored and emilazy committed Sep 23, 2024
1 parent 9a6f63e commit 72cc50b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/development/libraries/openssl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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) ''
Expand Down

0 comments on commit 72cc50b

Please sign in to comment.