Repository navigation
Conversation
The dev-shell set no UV_PYTHON / UV_PYTHON_DOWNLOADS, so uv sync downloads a generic managed CPython that NixOS hosts cannot execute. Add failing tests asserting UV_PYTHON_DOWNLOADS=never and UV_PYTHON pinned to a runnable Nix store CPython 3.14. Refs: #683
The flake dev-shell carried no Python and let the nixpkgs uv fetch a managed CPython — a generic, dynamically-linked ELF a NixOS host cannot execute out of the box (no FHS ld-linux) — so `uv sync` (`just init`) aborted on NixOS hosts while FHS hosts were unaffected. Pin a Nix store CPython via UV_PYTHON and set UV_PYTHON_DOWNLOADS=never in mkProjectShell, mirroring the image path, so the venv is built from a store interpreter patched to the store loader that runs on both NixOS and FHS hosts. The setup-env flake-provision step forwards UV_PYTHON and UV_PYTHON_DOWNLOADS in place of the retired UV_PYTHON_DOWNLOADS_JSON_URL. Refs: #683
…loading Forwarding UV_PYTHON into CI broke the project-checks lane: provision-via-flake jobs run outside `nix develop` on an FHS runner, where the Nix store interpreter cannot load pre-commit's manylinux-wheel C extensions (libstdc++.so.6), so the pymarkdown hook failed with an ImportError. Keep the dev-shell pin (UV_PYTHON + UV_PYTHON_DOWNLOADS=never) that fixes NixOS `uv sync`, but restore UV_PYTHON_DOWNLOADS_JSON_URL in the dev-shell and revert the setup-env action to forward that URL only (not UV_PYTHON), so the FHS CI runner downloads a managed CPython for pre-commit as before. Refs: #683
This was referenced Jun 25, 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.
Description
On a NixOS host, onboarding via
direnv allow+just initfailed during theuv syncbootstrap. The flake dev-shell carried no Python onPATHand let the nixpkgsuvfetch a managed CPython matchingrequires-python. That download is a generic, dynamically-linked ELF a NixOS host cannot execute out of the box (no FHSld-linux, see https://nix.dev/permalink/stub-ld), souv syncaborted andjust initexited non-zero. FHS hosts were unaffected.This pins a Nix store CPython for
uvin the dev-shell (mkProjectShell), so the venv is built from a store interpreter that runs on NixOS and FHS hosts alike. CI is deliberately left on its managed-download path (see below).Type of Change
fix-- Bug fixChanges Made
flake.nix(mkProjectShell): setUV_PYTHON=${pkgs.python314}/bin/python3.14andUV_PYTHON_DOWNLOADS=neverso the dev-shell never downloads a generic managed CPython.UV_PYTHON_DOWNLOADS_JSON_URLis retained (see CI note).setup-envis unchanged: theprovision-via-flakejobs run outsidenix developon an FHS runner, where a Nix store interpreter cannot load pre-commit's manylinux-wheel C extensions (libstdc++.so.6). So the action keeps forwardingUV_PYTHON_DOWNLOADS_JSON_URLonly (notUV_PYTHON), and the runner downloads a managed CPython as before. (An earlier revision forwardedUV_PYTHONand broke thepymarkdownhook with alibstdc++ImportError; that was reverted.)scripts/init.sh: updated the bootstrap comment to describe the pinned interpreter.docs/NIX.md,CHANGELOG.md: documented the dev-shell-pin / CI-download split.Changelog Entry
Fixed
just initno longer fails on NixOS hosts (uv downloaded a CPython NixOS cannot execute) (#683)uvfetch a managed CPython — a generic, dynamically-linked ELF a NixOS host cannot execute out of the box (no FHSld-linux) — souv sync(just init) aborted on NixOS hosts while FHS hosts were unaffectedmkProjectShellnow pins a Nix store CPython viaUV_PYTHONand setsUV_PYTHON_DOWNLOADS=never, so the dev-shell builds the venv from a store interpreter (patched to the store loader) that runs on both NixOS and FHS hosts instead of a downloaded oneUV_PYTHON_DOWNLOADS_JSON_URL) and does not receiveUV_PYTHON: theprovision-via-flakejobs run outsidenix developon an FHS runner, where a Nix store interpreter cannot load pre-commit's manylinux-wheel C extensions (libstdc++.so.6)UV_PYTHON_DOWNLOADS=neverandUV_PYTHONpinned to a runnable Nix store CPython 3.14Testing
tests/test_flake_devshell.py+tests/test_flake_checks.py→ 7 passed, incl.nix flake check)just initnow completes and materializes the venv from the lockfiletest-suite=all) green on the PR head branchAcceptance Criteria
just initmaterializes the venv on a NixOS host (no generic CPython download)uv syncin the dev-shellRefs: #683