From 2120245fc210af504686da80ea3dfff27ef22b9e Mon Sep 17 00:00:00 2001 From: Yonathan Randolph Date: Tue, 16 Aug 2022 13:55:13 -0700 Subject: [PATCH] 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. --- modules/nix/nix-darwin.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nix/nix-darwin.nix b/modules/nix/nix-darwin.nix index 69da8e7..f86b154 100644 --- a/modules/nix/nix-darwin.nix +++ b/modules/nix/nix-darwin.nix @@ -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 ({