Skip to content

Add pyproject-nix overlay#54

Merged
tothtamas28 merged 3 commits intomasterfrom
pyproject-nix-overlay
Apr 16, 2026
Merged

Add pyproject-nix overlay#54
tothtamas28 merged 3 commits intomasterfrom
pyproject-nix-overlay

Conversation

@juliankuners
Copy link
Copy Markdown
Contributor

Previously, when RV nix derivations were using poetry2nix, overriding a nix input in nix was also overriding the python code and resources used in poetry2nix. This allowed for easy overrides of python and K semantics changes by utilizing nix overrides.

With the migration to uv and uv2nix, this was behavior was removed due to the respective code not documenting it's purpose. In addition, due to uv2nix relying on state-of-the-art python nix packaging tooling pyproject-nix instead of nixpkgs, ensuring identical override behaviour requires more nix logic.

This PR re-introduces this kind of behaviour with uv2nix, though it depends on newly introduced overlays in the k nix flake.

Example

You can override k by running: nix build github:runtimeverification/imp-semantics --override-input k-framework ~/path/to/local-k-checkout. This will now also build kimp with the python and K code in ~/path/to/local-k-checkout.

@juliankuners
Copy link
Copy Markdown
Contributor Author

K releases are currently blocked. As this PR depends on recently introduced nix overlays in K, this PR will fail until a new release of K was published and merged into imp-semantics.

@tothtamas28
Copy link
Copy Markdown
Contributor

@juliankuners, all tests are now passing, should this PR be reviewed and merged?

@juliankuners
Copy link
Copy Markdown
Contributor Author

@juliankuners, all tests are now passing, should this PR be reviewed and merged?

Yeah, good to go now

@tothtamas28 tothtamas28 merged commit 683a773 into master Apr 16, 2026
5 checks passed
@tothtamas28 tothtamas28 deleted the pyproject-nix-overlay branch April 16, 2026 06:54
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