Skip to content

Use Cachix prebuilt binaries for F* - #4

Merged
W95Psp merged 4 commits into
mainfrom
W95Psp-patch-2
Jul 16, 2025
Merged

Use Cachix prebuilt binaries for F*#4
W95Psp merged 4 commits into
mainfrom
W95Psp-patch-2

Conversation

@W95Psp

@W95Psp W95Psp commented Jul 16, 2025

Copy link
Copy Markdown
Collaborator

Downloading prebuilt binaries from github sometimes fails because of github API rates limit. This PRs makes use of cachix to download F* as well.

See repo https://github.com/W95Psp/fstar-nix-versions, that populates cachix with pre-built F* versions.

This also allows users to use any F* version, including pinning a commit.

This approach is sligthly slower than direct download: the F* binary is small, but the F* nix derivation ships a lot of things (e.g. the OCaml compiler! we end up with 400MB of data instead of 150 or something).
I think this is fine for now, I will push an PR to F* to make the derivation lighter for next versions.

EDIT: sizes I give up there are definitly wrong. The linux build of F* is already 500MB 🤔 not sure how big the nix packaged one is, but for sure it is bigger since it ship the OCaml compiler 😅

Downloading prebuilt binaries from github sometimes fails because of github API rates limit.
This PRs makes use of cachix to download F* as well.

See repo https://github.com/W95Psp/fstar-nix-versions, that populates cachix with pre-built F* versions.

This also allows users to use any F* version, including pinning a commit.
@W95Psp W95Psp mentioned this pull request Jul 16, 2025
@W95Psp
W95Psp marked this pull request as draft July 16, 2025 09:32
@W95Psp
W95Psp requested a review from franziskuskiefer July 16, 2025 13:15
@W95Psp
W95Psp marked this pull request as ready for review July 16, 2025 13:19

@keks keks left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good I think!

@W95Psp
W95Psp removed the request for review from franziskuskiefer July 16, 2025 13:51
@W95Psp
W95Psp merged commit d08dc17 into main Jul 16, 2025
1 check passed
@W95Psp
W95Psp deleted the W95Psp-patch-2 branch July 16, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants