Commit a4c89938 authored by Peter Waller's avatar Peter Waller
Browse files

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: default avatarPeter Waller <p@pwaller.net>
parent 4cdd7063
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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