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

Use different nixpkgs for rust and ocaml toolchains #12

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

Nadrieril
Copy link
Collaborator

@Nadrieril Nadrieril commented Jan 13, 2025

This should fix CI. The issue is as follows:

  • we need recent rust-overlay versions to get access to recent nightlies;
  • to be compatible with different ocaml versions, karamel, charon, aeneas and eurydice use pkgs.ocamlPackages as their ocaml toolchain instead of pinning a particular ocaml version;
  • pkgs.ocamlPackages uses a different version of ocaml depending on the nixpkgs version;
  • recent nixpkgs uses ocaml 5 by default, which fails to build some of our ocaml dependencies;
  • recent rust-overlay is not compatible with old nixpkgs.

All this put together, the best solution I found was using a different nixpkgs for the rust and ocaml toolchains, implemented in charon in AeneasVerif/charon#522.

@Nadrieril Nadrieril force-pushed the fix-rust-overlay-nixpkgs branch from fab1fbb to 6b0f901 Compare January 13, 2025 15:40
@Nadrieril Nadrieril changed the title Use recent nixpkgs everywhere Use different nixpkgs for rust and ocaml toolchains Jan 13, 2025
@Nadrieril
Copy link
Collaborator Author

This fails because it uses gcc instaed of clang to uild eurydice tests for some arcane reason. AeneasVerif/eurydice#136 should fix that.

@Nadrieril Nadrieril force-pushed the fix-rust-overlay-nixpkgs branch from 6b0f901 to a7f283c Compare January 14, 2025 11:28
@Nadrieril Nadrieril merged commit 3638811 into main Jan 14, 2025
8 checks passed
@Nadrieril Nadrieril deleted the fix-rust-overlay-nixpkgs branch January 14, 2025 13:15
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.

1 participant