guix: simpler package list

This commit is contained in:
Dylan Araps 2019-09-28 12:57:23 +03:00
parent fddfe5435c
commit 090fe64dec

7
pfetch
View File

@ -406,18 +406,13 @@ get_pkgs() {
has rpm && rpm -qa
has xbps-query && xbps-query -l
has apk && apk info
has guix && guix package --list-installed
# Directories containing packages.
has brew && printf '%s\n' "$(brew --cellar)/"*
has emerge && printf '%s\n' /var/db/pkg/*/*/
has pkgtool && printf '%s\n' /var/log/packages/*
# GUIX requires two commands.
has guix && {
guix package -p /run/current-system/profile -I
guix package -I
}
# NIX requires two commands.
has nix-store && {
nix-store -q --requisites /run/current-system/sw