about summary refs log tree commit diff
path: root/build-scripts/build-stack
blob: 235b8262a2fef1d537f9bba8e68d84ea4a2d91d4 (plain) (blame)
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