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

nix: various improvements #3182

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pnmadelaine
Copy link
Contributor

@pnmadelaine pnmadelaine commented Dec 22, 2023

This PR improves the Nix code in various ways.

List of changes:

  • centralize the Nix expressions in .nix/
  • use z3 4.8.5 as defined in nixpkgs
  • propagate the fstar-lib dependencies
  • better formatting using alejandra
  • enable building on macOS and aarch64-linux (not tested)

I want to point out a regression in this PR: the size of the closure of F*
basically doubles since propagating the dependencies brings back the OCaml
compiler as a dependency. IMO this is a good trade, since compiling generated
OCaml will now just work (tm). Currently, fstar-lib dependencies need to be
manually imported, wich is not intuitive at all.

Also see NixOS/nixpkgs#275924 which motivated me to
do the propagation of fstar-lib dependencies.

cc @W95Psp

- centralize nix expressions in `.nix/`
- enable all default systems
- format using alejandra
- propagate ocaml dependencies
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.

None yet

1 participant