ENH run stack to build things from haskell repos
This commit is contained in:
parent
e854da9581
commit
3bdcd7181b
|
@ -2,65 +2,9 @@
|
|||
|
||||
## install all packages required for this configuration to function.
|
||||
## Configuration is assumed to be handled elsewhere (for now) eg in etckeeper
|
||||
## or with ansible
|
||||
## or with ansible.
|
||||
|
||||
## this just calls another bootstrap script as root, which allows me to only
|
||||
## require entering a sudo password once
|
||||
|
||||
sudo "$HOME/.bin/bootstrap_pkgs" "$HOME/.local/share/packages"
|
||||
|
||||
# PKGBUILD_dir="$HOME/.local/share/packages"
|
||||
|
||||
# call_makepkg() {
|
||||
# cd "$PKGBUILD_dir/$1" || exit
|
||||
# sudo -u nobody makepkg -s -r -i -f --noconfirm
|
||||
# }
|
||||
|
||||
# ## install packages (those that are either in official repos or AUR)
|
||||
|
||||
# ## TODO add template switches to control which of these get installed based
|
||||
# ## on my config
|
||||
# dunst_pkgs=(dunst)
|
||||
# emacs_pkgs=(emacs mu)
|
||||
# flameshot_pkgs=(flameshot)
|
||||
# gtk_pkgs=(zuki-themes)
|
||||
# nvidia_pkgs=(optimus-manager)
|
||||
# r_pkgs=(r docker-rootless-extras-bin gcc-fortran texlive-bin tk)
|
||||
# redshift_pkgs=(redshift)
|
||||
# rofi_pkgs=(rofi-git bitwarden-cli libnotify rofi-greenclip
|
||||
# networkmanager-dmenu-git veracrypt sshfs jmtpfs)
|
||||
# seafile_pkgs=(seafile)
|
||||
# urxvt_pkgs=(urxvt-tabbedex rxvt-unicode urxvt-perls)
|
||||
# xmonad_pkgs=(stack-static autorandr feh xorg-server xorg-xset libpulse playerctl
|
||||
# wireless_tools acpid ttf-symbola-free ttf-symbola-free ttf-dejavu
|
||||
# awesome-terminal-fonts numlockx picom i3lock-color xorg-xrandr
|
||||
# xss-lock)
|
||||
# zsh_pkgs=(zsh zsh-completions zsh-syntax-highlighting)
|
||||
|
||||
# ## AUR pkgs needed for spotify
|
||||
# spotify_pkgs=(gconf)
|
||||
|
||||
# if sudo -u nobody -n sudo pacman -Syy; then
|
||||
# echo "Using user nobody for installation. Sit back and relax."
|
||||
# else
|
||||
# echo "Using current user for installation. Prepare to enter sudo pwd alot."
|
||||
# fi
|
||||
|
||||
# sudo -u nobody yay --noconfirm --removemake -S "${dunst_pkgs[@]}" \
|
||||
# "${emacs_pkgs[@]}" \
|
||||
# "${flameshot_pkgs[@]}" \
|
||||
# "${gtk_pkgs[@]}" \
|
||||
# "${nvidia_pkgs[@]}" \
|
||||
# "${nvidia_pkgs[@]}" \
|
||||
# "${r_pkgs[@]}" \
|
||||
# "${redshift_pkgs[@]}" \
|
||||
# "${rofi_pkgs[@]}" \
|
||||
# "${seafile_pkgs[@]}" \
|
||||
# "${urxvt_pkgs[@]}" \
|
||||
# "${xmonad_pkgs[@]}" \
|
||||
# "${zsh_pkgs[@]}" \
|
||||
# "${spotify_pkgs[@]}"
|
||||
|
||||
# ## install custom packages (eg those for which I have my own PKGBUILDs)
|
||||
|
||||
# call_makepkg "clevo-xsm-wmi-dkms"
|
||||
# call_makepkg "conky-lua"
|
||||
# call_makepkg "spotify"
|
||||
# call_makepkg "xkb-hypermode"
|
||||
|
|
|
@ -15,9 +15,26 @@ clone_maybe () {
|
|||
fi
|
||||
}
|
||||
|
||||
run_stack_in_dir () {
|
||||
local cur="pwd$"
|
||||
cd "$1" || return 1
|
||||
stack install
|
||||
cd "$cur" || return 1
|
||||
}
|
||||
|
||||
export STACK_ROOT="$XDG_DATA_HOME"/stack
|
||||
|
||||
clone_maybe https://github.com/ndwarshuis/conky.git "$HOME/.config/conky"
|
||||
clone_maybe https://github.com/ndwarshuis/.emacs.d.git "$HOME/.config/emacs"
|
||||
clone_maybe https://github.com/ndwarshuis/rofi-extras.git "$HOME/.config/rofi-extras"
|
||||
clone_maybe https://github.com/ndwarshuis/xman.git "$HOME/.config/xman"
|
||||
clone_maybe https://github.com/ndwarshuis/xmonad-config.git "$HOME/.config/xmonad"
|
||||
|
||||
rofix_dir="$HOME/.config/rofi-extras"
|
||||
clone_maybe https://github.com/ndwarshuis/rofi-extras.git "$rofix_dir"
|
||||
run_stack_in_dir "$rofix_dir"
|
||||
|
||||
xman_dir="$HOME/.config/xman"
|
||||
clone_maybe https://github.com/ndwarshuis/xman.git "$xman_dir"
|
||||
run_stack_in_dir "$xman_dir"
|
||||
|
||||
xmonad_dir="$HOME/.config/xmonad"
|
||||
clone_maybe https://github.com/ndwarshuis/xmonad-config.git "$xmonad_dir"
|
||||
run_stack_in_dir "$xmonad_dir"
|
||||
|
|
Loading…
Reference in New Issue