wh0 / nix-cache-view

in-browser .nar explorer
https://wh0.github.io/nix-cache-view/
MIT License
12 stars 1 forks source link

Anything else we can linkify in the .drv visualization? #4

Closed wh0 closed 1 year ago

wh0 commented 1 year ago

The builder program we can perhaps treat as a store path (or at least as a file inside a store path?).

Maybe we could heuristically detect store paths contained in builder args and environment variables? It might be tricky, if we want to support alternative store paths. I personally want to support /tmp/nix/store.

Oh and input srcs. I don't remember if there was some complication when I wrote the first draft of this, maybe I just forgot.

Have a look at the existing code to linkify known store paths: