ENH print what packages are being installed for emacs

This commit is contained in:
Nathan Dwarshuis 2021-03-13 20:39:03 -05:00
parent 0a9d2f8e41
commit 21e7d6b6ab
2 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ run_yay() {
pacman --needed -S emacs
IFS=' ' read -r -a emacs_pkgs \
< <(get_emacs_packages "(nd/get-aur-dependencies t)")
echo "Emacs requires the following system pkgs: ${emacs_pkgs[*]}"
## other packages for random gizmos
dunst_pkgs=(dunst)

View File

@ -54,6 +54,7 @@ IFS=' ' read -r -a emacs_stack_pkgs \
< <(emacs -batch -l "$emacs_dir/init.el" --eval \
"(print (s-join \" \" (nd/get-stack-dependencies)))" 2>/dev/null | \
sed -n -e 's/"\(.*\)"/\1/p')
echo "Emacs requires the following Haskell packages: ${emacs_stack_pkgs[*]}"
for p in "${emacs_stack_pkgs[@]}";
do
stack install "$p"