pkgs.fetchgit
doesn’t work with private repos because of the Nix build sandbox, but builtins.fetchGit
does because it’s performed by the evaluator as your user. They’re slightly different things.
pkgs.fetchgit
doesn’t work with private repos because of the Nix build sandbox, but builtins.fetchGit
does because it’s performed by the evaluator as your user. They’re slightly different things.