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

Add Nix flake build #603

Closed
Baltoli opened this issue Apr 8, 2024 · 1 comment
Closed

Add Nix flake build #603

Baltoli opened this issue Apr 8, 2024 · 1 comment
Assignees

Comments

@Baltoli
Copy link
Contributor

Baltoli commented Apr 8, 2024

Part of runtimeverification/kasmer-multiversx#95; we currently don't have any Nix setup for this repo and we will need to flakify it in order to get kup installation working.

@Baltoli
Copy link
Contributor Author

Baltoli commented Apr 8, 2024

Documenting my workflow for getting this working from scratch:

  • Basing my starting point on the MIR semantics flake, which is a useful reference because it's new, maintained, and reasonably self-contained (in contrast to something like KEVM, which is much bigger and more complex).
  • First look - the flake will end up looking a bit different to KMIR because the main entry point isn't a Poetry app, but rather a shell script. We will end up using poetry2nix though, for the format conversion (?) tool.
  • Inputs to flake can be pretty straightforwardly copied across from KMIR; I've left out a Nixpkgs divergence between Pyk + the rest of the toolchain as it's not yet clear why this is needed. Could be templated similarly to nix flake init.
  • Next step is to build a trivial empty kwasm derivation that depends on K. Newer semantics will do this using poetry2nix, but we've got a shell script so need to do things a bit manually.

@Baltoli Baltoli closed this as completed May 1, 2024
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

No branches or pull requests

1 participant