julia_110: fix build with cmake 4 (#453885)

This commit is contained in:
Weijia Wang
2025-10-23 18:20:29 +00:00
committed by GitHub
@@ -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 $<' \