From 55fa66ffe932e49ad2d51c9df375713a9eacbd79 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 20 Oct 2025 16:31:26 +0200 Subject: [PATCH] julia_110: fix build with cmake 4 --- pkgs/development/compilers/julia/generic.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/compilers/julia/generic.nix b/pkgs/development/compilers/julia/generic.nix index f1ef721d346c..0bd32f379562 100644 --- a/pkgs/development/compilers/julia/generic.nix +++ b/pkgs/development/compilers/julia/generic.nix @@ -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 $<' \