julia_110: fix build with cmake 4

This commit is contained in:
Weijia Wang
2025-10-23 20:08:56 +02:00
parent 0f00965306
commit 55fa66ffe9
@@ -61,6 +61,10 @@ stdenv.mkDerivation rec {
--replace-fail 'cd $(dir $<) && $(TAR) jxf $(notdir $<)' \
'cd $(dir $<) && $(TAR) jxf $(notdir $<) && sed -i "s|/usr/bin/env perl|${lib.getExe buildPackages.perl}|" curl-$(CURL_VER)/scripts/cd2nroff'
''
+ lib.optionalString (lib.versionOlder version "1.12") ''
substituteInPlace deps/tools/common.mk \
--replace-fail "CMAKE_COMMON := " "CMAKE_COMMON := ${lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.10"} "
''
+ lib.optionalString (lib.versionAtLeast version "1.12") ''
substituteInPlace deps/openssl.mk \
--replace-fail 'cd $(dir $<) && $(TAR) -zxf $<' \