Skip to content

fix: set UV_PYTHON in .envrc for NixOS direnv users#116

Merged
machshev merged 1 commit intolowRISC:masterfrom
machshev:uv-python
Mar 12, 2026
Merged

fix: set UV_PYTHON in .envrc for NixOS direnv users#116
machshev merged 1 commit intolowRISC:masterfrom
machshev:uv-python

Conversation

@machshev
Copy link
Collaborator

On NixOS, uv resolves the Python interpreter via PATH even when VIRTUAL_ENV is set, falling back to the immutable Nix store Python which rejects writes. Setting UV_PYTHON explicitly in .envrc forces uv to use the venv interpreter for all commands.

On NixOS, uv resolves the Python interpreter via PATH even when
VIRTUAL_ENV is set, falling back to the immutable Nix store Python
which rejects writes. Setting UV_PYTHON explicitly in .envrc forces
uv to use the venv interpreter for all commands.

Signed-off-by: James McCorrie <james.mccorrie@lowrisc.org>
Copy link
Contributor

@AlexJones0 AlexJones0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a local NixOS setup readily available to test this, but the change seems reasonable to me.

@machshev machshev added this pull request to the merge queue Mar 12, 2026
Merged via the queue into lowRISC:master with commit fdd69e9 Mar 12, 2026
6 checks passed
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