Fixing uv's managed Python on NixOS: two patterns that actually work

tdhopper · x · 2026-12-02

NixOS doesn't follow the Filesystem Hierarchy Standard—shared libraries live under /nix/store and the dynamic linker path that prebuilt binaries hardcode doesn't exist. So uv's runtime-downloaded python-build-standalone interpreters fail immediately with "Could not start dynamically linked executable".

Tim Hopper's guide covers two fixes:

Pick Pattern 1 for uv everywhere, add Pattern 2 when a repo should carry its own uv version and library list.

Original post →

More from coding & agent

coding & agent channel →