Open lenianiva opened 4 weeks ago
I looked a bit into buildLeanPackage.nix
's source code, and I think this is definitely doable.
We need to feed the lean
binary executable into this function, which could be done by extracting files from the tar/zip files from https://github.com/leanprover/lean4/releases/tag/v4.13.0
Building from source seems to be the preferred method. If we get more users I can contact cachix
Can we replace the lean dependency with a binary like what rust-overlay does? This would allow us to abridge the stage 1 build and remove all the bootstrapping.
One problem I could think of is it would not expose
with pkgs.lean; [ Init Std Lean ]