l0b0
1
Is it possible to pass Git flags to nix flake clone? I’m trying to get the commit history (without the files) of all the flake inputs with a minimal clone. This is for a flake input update service, so that it can produce more useful commit messages.
Alternatively, is there a way to get a git cloneable URL from Nix flake inputs (without re-implementing the translation done by Nix)?
Alternatively, is there a way to get a git cloneable URL from Nix flake inputs (without re-implementing the translation done by Nix)?
Probably something like:
nix flake metadata --json . | jq '.locks.nodes | to_entries[] | select(.value.locked.type == "git") | .value.locked'
You could also extract the ref and rev from that (and url too, that should be directly clonable by git).