[PR] dylanaraps/neofetch#2021 from arjanadriaanse - packages: Improve detection for guix.

Upstream PR: https://github.com/dylanaraps/neofetch/pull/2021
Thanks to @arjanadriaanse

Co-authored-by: Arjan Adriaanse <arjan@adriaan.se>
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-07-31 15:39:50 -04:00
commit 312db60001

View file

@ -1635,8 +1635,9 @@ get_packages() {
has kpm-pkg && ((packages+=$(kpm --get-selections | grep -cv deinstall$))) has kpm-pkg && ((packages+=$(kpm --get-selections | grep -cv deinstall$)))
has guix && { has guix && {
manager=guix-system && tot guix package -p "/run/current-system/profile" -I manager=guix-system && tot guix package -p /run/current-system/profile -I
manager=guix-user && tot guix package -I manager=guix-user && tot guix package -I
manager=guix-home && tot guix package -p ~/.guix-home/profile -I
} }
has nix-store && { has nix-store && {