fetchGit

Fetches a path into the Nix store from Git. fetchGit can take either a URL, which fetches the HEAD of the repo. Otherwise, a set with attributes url, name (defaults to URL basename), rev (defaults to tip of ref), and ref (any Git ref like a branch or a tag).