fix: use BSD tools over GNU stdenv in devshell PATH #41
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/bsd-tools-devshell"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mkShell prepends stdenv's tools (GNU coreutils, gnugrep, gnused, gawk, findutils, diffutils, patch, gnutar, gzip, bzip2, xz) to PATH, which shadowed macOS builtins like cp/grep/sed with incompatible GNU versions. The shellHook now splits PATH on ':' and drops those stdenv store paths; nix-provided project deps (elixir, postgres, etc.) are unaffected. Verified via
direnv exec . sh -c 'command -v cp'resolving to /bin/cp.