Enable nix-ld so dynamically linked prebuilt binaries run #12

Manually merged
marvin8 merged 1 commit from fix/enable-nix-ld into main 2026-09-07 08:44:54 +00:00
Collaborator

uv downloads python-build-standalone CPython builds, which are dynamically linked against glibc and expect the standard interpreter at /lib64/ld-linux-x86-64.so.2. On this box that path held the NixOS stub-ld placeholder, so every uv-managed Python failed with exit 127 (e.g. just fediverse-post in cang).

This enables programs.nix-ld in hosts/ai-coding-box/default.nix, replacing the stub with a real glibc loader. The uv Python binary needs only glibc libs (verified by running it directly under the system Nix glibc loader, which worked), so no programs.nix-ld.libraries entries are required. Evaluated with nix build ...toplevel --dry-run: closure picks up nix-ld-2.0.6.

After merge the box needs sudo nixos-rebuild switch --flake .#ai-coding-box to pick it up.

Closes #11

uv downloads python-build-standalone CPython builds, which are dynamically linked against glibc and expect the standard interpreter at `/lib64/ld-linux-x86-64.so.2`. On this box that path held the NixOS stub-ld placeholder, so every uv-managed Python failed with exit 127 (e.g. `just fediverse-post` in cang). This enables `programs.nix-ld` in `hosts/ai-coding-box/default.nix`, replacing the stub with a real glibc loader. The uv Python binary needs only glibc libs (verified by running it directly under the system Nix glibc loader, which worked), so no `programs.nix-ld.libraries` entries are required. Evaluated with `nix build ...toplevel --dry-run`: closure picks up `nix-ld-2.0.6`. After merge the box needs `sudo nixos-rebuild switch --flake .#ai-coding-box` to pick it up. Closes #11
🔧 enable nix-ld so dynamically linked prebuilt binaries (uv Pythons) run
All checks were successful
ci / gitleaks (pull_request) Successful in 9s
3a89319e56
marvin8 approved these changes 2026-09-07 08:43:32 +00:00
marvin8 manually merged commit fec01c059c into main 2026-09-07 08:44:54 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
marvin8/ai-coding-box!12
No description provided.