nix-community / comma

Comma runs software without installing it. [maintainers=@Artturin,@burke,@DavHau]
1.09k stars 48 forks source link

Cache package per executable #77

Closed diniamo closed 1 month ago

diniamo commented 4 months ago

I'll probably implement this myself, I'm making an issue so I don't forget. It's probably also a good practice or something. Suggestions on what other features there should be are welcome.

Features:

jooooscha commented 3 months ago

Just as a side note; maybe it helps someone until this is implemented. I just wrapped a shell script around comma that reads the package with --print-package and then starts a nix shell with that.

This has the advantage, that I don't have to know the binary name (which is not always the same as the package), and I can rerun the binary without any delay, until I exit the nix shell

Artturin commented 3 months ago

Just as a side note; maybe it helps someone until this is implemented. I just wrapped a shell script around comma that reads the package with --print-package and then starts a nix shell with that.

https://github.com/nix-community/comma/pull/79