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 $<' \