Skip to content

Commit

Permalink
[nix] add "--interactive" as default flag for mill
Browse files Browse the repository at this point in the history
Using mill without "-i/--interactive" or "--no-server" will run a mill
build server automatically. The build server doesn't inherit or update
environment when user invoke mill at command-line, which is hard for
developers to debug.

As the T1 project doesn't use mill build server for a long time, I
decided to add the "-i" flag as default for mill. If someday someone
wants to use the unwrapped version, they can use the .mill-unwrapped
executable contains in the same package.

Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Sep 11, 2024
1 parent 58c6376 commit f4aa57a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ rec {
mill = let jre = final.jdk21; in
(prev.mill.override { inherit jre; }).overrideAttrs (_: {
passthru = { inherit jre; };
# --interactive implies --no-server
postInstall = ''wrapProgram $out/bin/mill --add-flags "--interactive"'';
});

# some symbols in newlib libgloss uses ecall, which does not work in emulator
Expand Down

0 comments on commit f4aa57a

Please sign in to comment.