Sometimes you have packages that you don't use very often. You don't need them upgraded and installed every time you upgrade your system or user packages.
You can do:
guix environment --ad-hoc package -- program-to-launch
For example, I just did:
guix environment --ad-hoc krita -- krita
If you start to use a program more often, then you can decide to add it to your user/system profile!
That's currently the case with me and Krita... and maybe it'll become something I feel justified in having always around (I'd like that, actually... need more time to get comfortable in it)
@cwebber would you say this more similar to nix-shell -p package or nix-env -i package? I’m not very familiar with the guix ecosystem.
Either way, fantastic tip!
@afontaine I'm guessing the latter but I don't really know, I'm not much of a Nix user :)
@cwebber Ah fair enough!
nix-shell -p opens a new shell with the given package in your path: temporary, and the package is no longer included in your path after the shell is exited.
nix-env -i installs the package to your environment, which persists across shells/logouts/reboots/etc. I don’t think it is upgraded when you upgrade the whole system though I might be wrong there.
@emacsomancer --ad-hoc packages are open only for the time when you use them (or when you close the subshell). Ephemeral!
@cwebber Hey, Chris 🙂 Speaking of Krita and the GNU OS from Guix, do you use a drawing tablet? I'd like to get one but I don't know what brand would work well in the Guix System...
@luis_felipe I've been using a Wacom Intuos 2 since 2003. I will probably upgrade this year finally though. It's managed to work for me for almost two decades!
@cwebber In NixOs you can do the same thing with:
nix-shell -p krita --run krita
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!