From 463d70153d0704d8f3939a7a4ffb42b9c0464eb2 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 24 Oct 2021 22:57:16 +0300 Subject: Nixify and rework package configuration - Add Nix support - Remove submodules and vendored code - Remove stack support - Various tweaks --- build | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 build (limited to 'build') 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 -- cgit 1.4.1