Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch lean binary #11

Open
lenianiva opened this issue Oct 27, 2024 · 2 comments · May be fixed by #35
Open

Fetch lean binary #11

lenianiva opened this issue Oct 27, 2024 · 2 comments · May be fixed by #35
Assignees
Labels
feature New feature or request help wanted Extra attention is needed part/overlay Overlay and toolchain reading

Comments

@lenianiva
Copy link
Owner

lenianiva commented Oct 27, 2024

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 ]

@lenianiva lenianiva added feature New feature or request help wanted Extra attention is needed labels Oct 27, 2024
@lenianiva lenianiva self-assigned this Oct 27, 2024
@lenianiva lenianiva added the part/overlay Overlay and toolchain reading label Oct 28, 2024
@lenianiva
Copy link
Owner Author

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

@lenianiva
Copy link
Owner Author

Building from source seems to be the preferred method. If we get more users I can contact cachix

@stepbrobd stepbrobd linked a pull request Jan 25, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Extra attention is needed part/overlay Overlay and toolchain reading
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant