From a4c899381e2ac4f02636efd09cc49f3454988d89 Mon Sep 17 00:00:00 2001 From: Peter Waller
Date: Fri, 3 May 2024 15:25:35 +0100 Subject: [PATCH] julia.withPackages: Disable pretty terminal output during nix build Prior to this patch, julia would log output destined for a terminal which can support cursor movements, which we don't have while building under nix. The only way I could find to turn this off is to set CI=true during precompilation, which substantially reduces the amount of log output you end up with, to only the salient output (one line per package, instead of many identical lines being printed). Signed-off-by: Peter Waller
--- pkgs/development/julia-modules/depot.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/julia-modules/depot.nix b/pkgs/development/julia-modules/depot.nix index 18bac9cb46a6..5614f1427aa5 100644 --- a/pkgs/development/julia-modules/depot.nix +++ b/pkgs/development/julia-modules/depot.nix @@ -55,6 +55,11 @@ runCommand "julia-depot" { # git config --global --add safe.directory '/nix' export JULIA_PKG_USE_CLI_GIT="true" + # At time of writing, this appears to be the only way to turn precompiling's + # terminal output into standard logging, so opportunistically do that. + # (Note this is different from JULIA_CI). + export CI=true + julia -e ' \ import Pkg import Pkg.Types: PRESERVE_NONE