Add pyproject-nix
overlay in nix derivation
#724
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously, when RV nix derivations were using
poetry2nix
, overriding a nix input in nix was also overriding the python code and resources used inpoetry2nix
. This allowed for easy overrides of python and K semantics changes by utilizing nix overrides.With the migration to
uv
anduv2nix
, this was behavior was removed due to the respective code not documenting it's purpose. In addition, due touv2nix
relying on state-of-the-art python nix packaging toolingpyproject-nix
instead ofnixpkgs
, 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:
kup install kmir --override k-framework ~/path/to/local-k-checkout
. This will now also build kmir with the python and K code in~/path/to/local-k-checkout
.