about summary refs log tree commit diff
path: root/build-scripts/build-stack
diff options
context:
space:
mode:
authorazahi <azahi@teknik.io>2019-09-29 14:28:37 +0300
committerazahi <azahi@teknik.io>2019-09-29 14:28:37 +0300
commitd46adbbb0b8452ea25ba01d2b34d2bdc8a5a3a6d (patch)
treee2a4aeb19d828cf7f3b555855bb697299d63eaa5 /build-scripts/build-stack
parentUpdate xmonad-contrib (diff)
Add build scripts
Diffstat (limited to 'build-scripts/build-stack')
-rwxr-xr-xbuild-scripts/build-stack15
1 files changed, 15 insertions, 0 deletions
diff --git a/build-scripts/build-stack b/build-scripts/build-stack
new file mode 100755
index 0000000..235b826
--- /dev/null
+++ b/build-scripts/build-stack
@@ -0,0 +1,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