feat(python): manage python with uv via nix-ld
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user