Recursively search for flake inputs
nix run github:shivaraj-bh/search-flake-inputs -- --flake <flake-url> --input <flake-input>
nix run github:shivaraj-bh/search-flake-inputs -- -f github:nammayatri/nammayatri/814e6fe389f93de81dcb125a97aed611bf52e8bd -i shared-kernel
# Output
╭───┬────────────────────────────────────────────────┬──────────╮
│ # │ path │ rev │
├───┼────────────────────────────────────────────────┼──────────┤
│ 0 │ locks->nodes->namma-dsl->inputs->shared-kernel │ b0049d7e │
│ 1 │ locks->nodes->root->inputs->shared-kernel │ 81e4688d │
╰───┴────────────────────────────────────────────────┴──────────╯
nix run github:shivaraj-bh/search-flake-inputs -- -f github:nammayatri/nammayatri -i hedis
# Output
╭───┬───────────────────────────────────────┬──────────╮
│ # │ path │ rev │
├───┼───────────────────────────────────────┼──────────┤
│ 0 │ locks->nodes->euler-hs->inputs->hedis │ 92a3d5ab │
╰───┴───────────────────────────────────────┴──────────╯
nix run github:shivaraj-bh/search-flake-inputs -- -f github:nammayatri/nammayatri -i hedis --json
# Output
[
{
"path": "locks->nodes->euler-hs->inputs->hedis",
"rev": "92a3d5ab"
}
]
nix run nixpkgs#watchexec -- -e nix -e nu nix run . -- -f <flake-url> -i <flake-input>