Repository navigation
docs(rfc): record uv2nix/pyproject-nix evaluation and decision - #788
Merged
Merged
Conversation
This was referenced Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Resolves the #775 spike: an ADR evaluating whether adopting uv2nix +
pyproject-nix would dissolve the flake's FHS/manylinux "scar tissue", or
merely relocate it. Adds
docs/rfcs/ADR-uv2nix-pyproject-nix.md. Docs-only, nocode change.
Decision: Defer (do not adopt now)
uv2nix genuinely eliminates manylinux-wheel loader breakage — but only for the
wheels inside the project venv it builds, which today is a problem this repo
does not have (the baked
pythonEnvdeps are all pure Python). The scar tissue#775 targets lives on two surfaces uv2nix cannot reach:
juston non-NixOS hosts #703) — pre-commit provisions itsown venvs at runtime;
pyjson5is not in ouruv.lock(upstream-confirmed outof scope).
the devcontainer is a base image; uv2nix only knows its own
uv.lock, notconsumers'.
…plus two non-Python items (#728 npm, #740 docker shim). Its one genuine win is
tidying the two hand-rolled
buildPythonPackagederivations behindpythonEnv(#683 is already fixed cheaply by a 2-line
UV_PYTHONpin). Net: uv2nix leavesfar more of the named scar tissue than it eliminates, at the cost of 3 flake
inputs, an override overlay, and a regressed live
uvdev-loop.Eliminate vs relocate vs leave (per item)
libstdc++LD_LIBRARY_PATHLD_LIBRARY_PATHpythonEnvderivationspythonEnvgains a C-ext depReconsider triggers and the least-bad entry point (Option C2, image
pythonEnvonly) are documented in the ADR. No prototype was built: the conclusion turns on
scope (uv2nix cannot see pre-commit or consumer envs), not on a build succeeding,
so a prototype would not change the verdict.
No changelog entry: docs-only ADR with no user-visible code change.
Refs: #775