nix-index icon indicating copy to clipboard operation
nix-index copied to clipboard

Show 'name'/alias

Open CMCDragonkai opened this issue 8 years ago • 1 comments

Is there a way instead of only showing the attribute path, to show the package alias/name if it is available?

CMCDragonkai avatar Oct 26 '17 07:10 CMCDragonkai

I am not sure why you'd need this, but the name is just the part after the first - in the store path. For example:

/nix/store/4v3fdagr3hfyyyv5pjf27kj3ifabqp5j-libuv-1.14.1

Here the name is libuv. It should not be hard to add an option to parse and show this to nix-index, I think the StorePath type already has a function to parse it.

bennofs avatar Oct 26 '17 07:10 bennofs