From 14bad452ad262a14170d209cc823b8cb9a4b2ee0 Mon Sep 17 00:00:00 2001 From: Alex Maldonado Date: Sun, 10 May 2026 09:17:45 -0400 Subject: [PATCH] nix-ld: enable for conda/pixi FHS compatibility Conda-forge binaries (pixi-managed Python, pip manylinux wheels, etc.) expect /lib64/ld-linux-x86-64.so.2 and dynamically link against libc at hardcoded FHS paths that don't exist on NixOS. Without nix-ld, `pixi install` fails during PyPI source builds with: build dispatch initialization failed: failed to query interpreter in instantiated prefix because pixi can't invoke the prefix's Python to read interpreter metadata. Enabling nix-ld with stdenv.cc.cc.lib and zlib provides the FHS-style loader and core libraries these tools assume. --- hosts/whitegrizzly/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/whitegrizzly/default.nix b/hosts/whitegrizzly/default.nix index b7e9126..8a59c63 100644 --- a/hosts/whitegrizzly/default.nix +++ b/hosts/whitegrizzly/default.nix @@ -15,6 +15,11 @@ networking.networkmanager.enable = true; programs.zsh.enable = true; + programs.nix-ld.enable = true; + programs.nix-ld.libraries = with pkgs; [ + stdenv.cc.cc.lib + zlib + ]; users.users.alex = { isNormalUser = true;