1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh -eu SRC_DIR="$HOME/.xmonad" EXE_NAME="xmonad-ng" OUT="$1" shift unset STACK_YAML cd "$SRC_DIR" || exit 1 stack build ln -f -T "$(stack exec -- which $EXE_NAME)" "$1"
Consider giving Nix/NixOS a try! <3