about summary refs log tree commit diff
path: root/build
diff options
context:
space:
mode:
authorAzat Bahawi <azahi@teknik.io>2021-10-24 22:57:16 +0300
committerAzat Bahawi <azahi@teknik.io>2021-10-24 22:57:16 +0300
commit463d70153d0704d8f3939a7a4ffb42b9c0464eb2 (patch)
treee597a14d098185e76f42780d3227b94e4178bd89 /build
parentUpdate submodules (diff)
Nixify and rework package configuration
- Add Nix support
- Remove submodules and vendored code
- Remove stack support
- Various tweaks
Diffstat (limited to 'build')
-rwxr-xr-xbuild37
1 files changed, 0 insertions, 37 deletions
diff --git a/build b/build
deleted file mode 100755
index b159f44..0000000
--- a/build
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh -eu
-
-SRC_DIR="$HOME/.xmonad"
-EXE_NAME="xmonad-ng"
-OUT="$1"
-
-shift
-
-cd "$SRC_DIR" || exit 1
-
-if command -v stack >/dev/null 2>&1
-then
-    unset STACK_YAML
-
-    echo ">>> stack build <<<"
-    stack build --verbose || exit 1
-
-    ln -f -T "$(stack exec -- which $EXE_NAME)" "$OUT" || exit 1
-else
-    #echo ">>> cabal sandbox init <<<"
-    #cabal sandbox --verbose init || exit 1
-
-    echo ">>> cabal new-configure <<<"
-    cabal new-configure \
-        --verbose \
-	    --enable-optimization \
-        --enable-executable-stripping || exit 1
-
-    #echo ">>> cabal install <<<"
-    #cabal install --verbose --only-dependencies || exit 1
-
-    echo ">>> cabal new-build <<<"
-    cabal new-build --verbose || exit 1
-
-    find "$SRC_DIR"/dist-newstyle -type f -executable -name "$EXE_NAME" \
-        -exec mv -u '{}' "$OUT" ';' || exit 1
-fi

Consider giving Nix/NixOS a try! <3