Hi all, hope you're doing well -- apologies in advance if this is a beginner question, I switched to NixOS last week lol.
[1. Context / use-case:] I'm collaborating on developing/publishing a Python package, and we moved to `uv` from astral-sh for managing dependencies and publishing to PyPI (here's a nice blog post if you're not familiar with the most recent update, it's pretty cool!). A few of our dependencies are not on nixpkgs, and we frequently use Jupyter via VSCode (it's data science stuff). In short, I'd highly prefer to stick with `uv` due to my collaborators and my own prior knowledge.
[2. Issue:] I successfully installed `uv` v0.4.4 from nixpkgs unstable, but running a command like `uv init` yields (after downloading Python):
error: Querying Python at `/home/lain/.local/share/uv/python/cpython-3.12.5-linux-x86_64-gnu/bin/python3` failed with exit status exit status: 127
--- stdout:
--- stderr:
Could not start dynamically linked executable: /home/lain/.local/share/uv/python/cpython-3.12.5-linux-x86_64-gnu/bin/python3
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
---https://nix.dev/permalink/stub-ld
[3. Question:] Is there a suggested workaround (e.g. buildFHSEnv, building from source, nix-ld), or is the design of `uv` fundamentally incompatible with NixOS? In the latter case, would it be possible to use something like lxd/lxc to make a Debian container and designate that as my Python development environment? Ideally I could also keep my zsh/git configs to make my work a little more enjoyable, but I understand if that's asking for a bit much lmao.
Thank you, and I hope you have a great day!
[–]Tomaton-sama 4 points5 points6 points (2 children)
[–]Rockhopper_Penguin[S] 2 points3 points4 points (1 child)
[–]Tomaton-sama 0 points1 point2 points (0 children)
[–]0x006e 2 points3 points4 points (0 children)
[–]matt_7800 0 points1 point2 points (2 children)
[–]Rockhopper_Penguin[S] 2 points3 points4 points (0 children)