feat(python): manage python with uv via nix-ld

This commit is contained in:
2026-07-08 14:32:05 +02:00
parent 53f079c242
commit 80c90c03ae
2 changed files with 32 additions and 0 deletions
+17
View File
@@ -54,6 +54,23 @@
programs.hyprland.enable = true;
programs.dconf.enable = true;
# nix-ld: install a stub dynamic linker at the standard FHS path
# (/lib64/ld-linux-*.so), which NixOS otherwise lacks. Lets unpatched
# prebuilt binaries run — notably the standalone CPython builds uv downloads
# and pip wheels with compiled extensions (numpy, pydantic-core, ...). The
# libraries list is exposed as NIX_LD_LIBRARY_PATH so those binaries find
# common shared libs; extend it when an import fails with "libFOO.so.N: cannot
# open shared object file".
programs.nix-ld = {
enable = true;
libraries = with pkgs; [
stdenv.cc.cc.lib # libstdc++, libgcc_s, libgomp
zlib # libz
zstd # libzstd (pyarrow, polars)
openssl # libssl, libcrypto
];
};
# Packages installed in system profile.
environment.systemPackages = with pkgs; [
curl