wh0 / nix-cache-view

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

nar: set content type and name #16

Closed wh0 closed 1 year ago

wh0 commented 1 year ago

fixes #1

Some nearby changes as well: setting the download name. This required adding a name parameter to renderNode, which will help with #3. To set the root node's name, there's a new pathName helper in misc.