Context: Working on dotfiles (main)

Nix apple-sdk DEVELOPER_DIR breaks /usr/bin/install_name_tool shim on macOS. The setup hook points DEVELOPER_DIR to the Nix store SDK, which doesn’t include install_name_tool. This causes uv python install to fail patching dylib install names (warning: “Failed to patch the install name of the dynamic library”).

Fix: wrap uv with Nix’s own cctools (pkgs.darwin.cctools) on PATH, which provides a working install_name_tool.

Upstream uv issue: https://github.com/astral-sh/uv/issues/14893 Related nixpkgs issue: https://github.com/NixOS/nixpkgs/issues/355486

Any tool that calls /usr/bin stubs (install_name_tool, otool, etc.) from a Nix-managed environment may hit this same DEVELOPER_DIR mismatch.