Skip to content

Introduce pyproject-nix overlay in nix flake#4862

Merged
automergerpr-permission-manager[bot] merged 4 commits intodevelopfrom
nix-pyproject-overlay
Oct 2, 2025
Merged

Introduce pyproject-nix overlay in nix flake#4862
automergerpr-permission-manager[bot] merged 4 commits intodevelopfrom
nix-pyproject-overlay

Conversation

@juliankuners
Copy link
Copy Markdown
Contributor

In the past, when we were using poetry2nix, we used additional overlays in nix to ensure that nix flake overrides, e.g. nix build --override-input kevm/k-framework v1.0.0, do not only override the nix flake but also the python package that was locked in poetry.lock.

With the migration to uv2nix, this overlay was removed, causing confusion and overhead when wanting to override python code using nix flake overrides. This PR re-introduces these overlays that can be used in dependent nix flakes to re-establish this behaviour. Due to uv2nix using the newer nix python packaging tooling pyproject-nix, this code adds more complexity in comparison to poetry2nix, though it nonetheless achieves the same result.

There will be similar PRs in other repositories introducing and using these pyproject-nix overlays.

@rv-jenkins rv-jenkins changed the base branch from master to develop October 1, 2025 12:58
@automergerpr-permission-manager automergerpr-permission-manager Bot merged commit 46ae51f into develop Oct 2, 2025
63 of 69 checks passed
@automergerpr-permission-manager automergerpr-permission-manager Bot deleted the nix-pyproject-overlay branch October 2, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants