Commit 390f7b71 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add initial support for guix

parent 174e4515
......@@ -56,6 +56,9 @@ case $PMTYPE in
# clean-system removes non official packages
#sudocmd slackpkg clean-system
;;
guix)
sudocmd guix gc
;;
#zypper-rpm)
# sudocmd zypper clean
# ;;
......
......@@ -143,6 +143,9 @@ epm_install_names()
nix)
__separate_sudocmd "nix-env --install" "nix-env --upgrade" $@
return ;;
guix)
__separate_sudocmd "guix package -i" "guix package -i" $@
return ;;
*)
fatal "Have no suitable install command for $PMTYPE"
;;
......
......@@ -93,6 +93,9 @@ case $PMTYPE in
ipkg)
CMD="ipkg list"
;;
guix)
CMD="guix package -I"
;;
*)
fatal "Have no suitable query command for $PMTYPE"
;;
......
......@@ -63,6 +63,12 @@ epm_release_upgrade()
conary)
epm Upgrade
;;
emerge)
epm Upgrade
;;
guix)
sudocmd guix pull --verbose
;;
*)
fatal "Have no suitable command for $PMTYPE"
;;
......
......@@ -94,6 +94,9 @@ epm_remove_names()
nix)
sudocmd nix-env --uninstall $@
return ;;
guix)
sudocmd guix package -r $@
return ;;
chocolatey)
sudocmd chocolatey uninstall $@
return ;;
......
......@@ -70,6 +70,9 @@ case $PMTYPE in
homebrew)
CMD="brew search"
;;
guix)
CMD="guix package -A"
;;
*)
fatal "Have no suitable search command for $PMTYPE"
;;
......
......@@ -326,6 +326,9 @@ case $DISTRNAME in
OpenWRT)
CMD="ipkg"
;;
GNU/Linux/Guix)
CMD="guix"
;;
*)
fatal "Have no suitable DISTRNAME $DISTRNAME"
;;
......
......@@ -71,6 +71,9 @@ epm_upgrade()
slackpkg)
CMD="/usr/sbin/slackpkg upgrade-all"
;;
guix)
CMD="guix package -u"
;;
*)
fatal "Have no suitable command for $PMTYPE"
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment