1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

Fix #387 nix-rebuild --flake without XCode tools

Add nixpkgs git to PATH before /usr/bin/git so that when nix flake metadata invokes git, it does not invoke the XCode one.
This commit is contained in:
Yonathan Randolph 2022-08-16 13:55:13 -07:00
parent 80871c71ed
commit 2120245fc2

View file

@ -5,7 +5,7 @@ with lib;
let
inherit (pkgs) stdenv;
extraPath = lib.makeBinPath [ config.nix.package pkgs.coreutils pkgs.jq ];
extraPath = lib.makeBinPath [ config.nix.package pkgs.coreutils pkgs.jq pkgs.git ];
writeProgram = name: env: src:
pkgs.substituteAll ({