Skip to content

Commit 2bb92cc

Browse files
authored
Merge pull request #23 from keylo99/guix_support
Guix support
2 parents 86d1b87 + 6a8bcbb commit 2bb92cc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ pkgtop uses the advantage of mainly used package managers being installed on mos
2323
* xbps
2424
* portage
2525
* nix
26+
* guix
2627

27-
If the distribution is not defined in the source but has the required package manager for running the pkgtop, `-d` argument can be used for specifying a distribution that has the same package manager. Current defined and supported distributions are `arch, manjaro, debian, ubuntu, mint, suse, fedora, centos, redhat, void, gentoo, nixos`.
28+
If the distribution is not defined in the source but has the required package manager for running the pkgtop, `-d` argument can be used for specifying a distribution that has the same package manager. Current defined and supported distributions are `arch, manjaro, debian, ubuntu, mint, suse, fedora, centos, redhat, void, gentoo, nixos, guix`.
2829

2930
* [Installation](#installation)
3031
* [• Dependencies](#-dependencies)

src/pkgtop.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ var (
7979
"nixos": "nix-env -qa --description | sed -e 's/ \\+/;/g' && echo \"nix-env -qa --meta --xml %s " +
8080
"| grep -o '\\\".*\\\"' | sed -e 's/\\\"//g' -e 's/ type=[a-z]*//g' -e 's/ value=/: /g' " +
8181
"-e 's/^/ /';nix-env -e %s;nix-env -i %s;nix-env -u %s\" && echo 'Name-version|Description'",
82+
"guix": "guix package --list-available | sed -e 's/ \\+/;/g; s/\\t/;/g' && " +
83+
"echo \"guix package --show=%s | sed -e 's/^/ /';guix package -r %s;guix package -i %s;" +
84+
"guix package -u %s;x\" && echo 'Name|Version|Output|Location'",
8285
}
8386
keyActions = " Key Action\n" +
8487
" ? : Help\n" +

0 commit comments

Comments
 (0)