Building mill project with Nix?

Has anyone tried to build a scala project that uses the Mill build system as a nix package? Mill uses a ./mill bootstrap script committed to the repo.

Only example in Nixpkgs I could see:

1 Like

Have never used to build scala inside a derivation, but used it a lot having pkgs.mill at direnv environment, the commited ./mill, if the bootstrap script can find it on PATH, my guess is that it will use that, the script only exists for people who wishes to automatically download mill. Anyways I always called mill directly not ./mill wrapper.

Just have pkgs.mill in your env and you should be fine.

2 Likes