Skip to content

Commit

Permalink
Merge pull request #23 from keylo99/guix_support
Browse files Browse the repository at this point in the history
Guix support
  • Loading branch information
orhun committed Sep 11, 2019
2 parents 86d1b87 + 6a8bcbb commit 2bb92cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -23,8 +23,9 @@ pkgtop uses the advantage of mainly used package managers being installed on mos
* xbps
* portage
* nix
* guix

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`.
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`.

* [Installation](#installation)
* [• Dependencies](#-dependencies)
Expand Down
3 changes: 3 additions & 0 deletions src/pkgtop.go
Expand Up @@ -79,6 +79,9 @@ var (
"nixos": "nix-env -qa --description | sed -e 's/ \\+/;/g' && echo \"nix-env -qa --meta --xml %s " +
"| grep -o '\\\".*\\\"' | sed -e 's/\\\"//g' -e 's/ type=[a-z]*//g' -e 's/ value=/: /g' " +
"-e 's/^/ /';nix-env -e %s;nix-env -i %s;nix-env -u %s\" && echo 'Name-version|Description'",
"guix": "guix package --list-available | sed -e 's/ \\+/;/g; s/\\t/;/g' && " +
"echo \"guix package --show=%s | sed -e 's/^/ /';guix package -r %s;guix package -i %s;" +
"guix package -u %s;x\" && echo 'Name|Version|Output|Location'",
}
keyActions = " Key Action\n" +
" ? : Help\n" +
Expand Down

0 comments on commit 2bb92cc

Please sign in to comment.