mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
openssl_3_3: move cmake rm to correct phase
Signed-off-by: Markus Theil <theil.markus@gmail.com>
This commit is contained in:
parent
ffeea32b7f
commit
12b97a409b
@ -224,10 +224,6 @@ let
|
||||
rmdir $etc/etc/ssl/{certs,private}
|
||||
'' + 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) ''
|
||||
@ -237,6 +233,10 @@ let
|
||||
echo "Found an erroneous dependency on perl ^^^" >&2
|
||||
exit 1
|
||||
fi
|
||||
'' + 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
|
||||
'';
|
||||
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
|
Loading…
Reference in New Issue
Block a user