fastfetch-cli / fastfetch

An actively maintained, feature-rich and performance oriented, neofetch like system information tool.
MIT License
8.08k stars 349 forks source link

Packages (Linux): Add Guix package manager. #972

Closed Dariqq closed 1 month ago

Dariqq commented 1 month ago

Add the 3 main profiles for guix package manager.

The detection is based on the one for neofetch and only includes packages explicitly installed by the user or propagated from other packages.

I have not yet found a good way to implement a more sophisticated approach (i.e. something similar as what is done for nix package manager). Should this be in a second merge request once I have it ready, but when I have more time to look more deeply into it?

Hopefully I caught all position where to include the new package manager option in modules/packages/packages.c.

Also had some trouble with whitespace before in the commit, hopefully i caught it all.

I have built the package with this commit successfully on x64-linux-gnu and aarch64-linux-gnu (via qemu-binfmt).

Tested it on a sytem running Guix System and on Fedora running guix as additional package manager.

Closes https://github.com/fastfetch-cli/fastfetch/issues/970

CarterLi commented 1 month ago

I think it's pretty solid. LGTM

Dariqq commented 1 month ago

Awesome . Thanks :)