From 9d4ef5a7da43808ee659caa4e4df4d53497bd53a Mon Sep 17 00:00:00 2001 From: azahi Date: Sun, 13 Oct 2019 00:37:18 +0300 Subject: fix build script error and update stack --- build | 19 ++++++++++++++++++- stack.yaml | 2 +- xmonad-ng.cabal | 12 ++++++------ 3 files changed, 25 insertions(+), 8 deletions(-) mode change 120000 => 100755 build diff --git a/build b/build deleted file mode 120000 index 38d2cab..0000000 --- a/build +++ /dev/null @@ -1 +0,0 @@ -build-scripts/build-cabal \ No newline at end of file diff --git a/build b/build new file mode 100755 index 0000000..aa11764 --- /dev/null +++ b/build @@ -0,0 +1,18 @@ +#!/bin/sh -eu + +SRC_DIR="$HOME/.xmonad" +EXE_NAME="xmonad-ng" +OUT="$1" + +shift + +cd "$SRC_DIR" || exit 1 + +cabal new-configure \ + --enable-optimization \ + --enable-executable-stripping + +cabal new-build + +find "$SRC_DIR"/dist-newstyle -type f -executable -name "$EXE_NAME" \ + -exec mv -u '{}' "$OUT" ';' diff --git a/stack.yaml b/stack.yaml index e18ff0c..63d3376 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,4 +1,4 @@ -resolver: lts-13.19 +resolver: lts-14.8 packages: - . - ./vendor/xmonad diff --git a/xmonad-ng.cabal b/xmonad-ng.cabal index cb104c6..9f91a14 100644 --- a/xmonad-ng.cabal +++ b/xmonad-ng.cabal @@ -1,5 +1,5 @@ name: xmonad-ng -version: 0.15.4 +version: 0.15.5 synopsis: XMonad configuration description: XMonad configuration hacked together using stolen code and bad Haskell license: BSD3 @@ -9,13 +9,13 @@ author: Azat Bahawi maintainer: Azat Bahawi stability: experimental category: System -homepage: https://git.systemd.club/xmonad-config +homepage: https://github.com/azahi/xmonad-config build-type: Simple cabal-version: >= 2.0 source-repository head type: git - location: https://git.systemd.club/xmonad-config + location: https://github.com/azahi/xmonad-config executable xmonad-ng main-is: Main.hs @@ -34,8 +34,8 @@ executable xmonad-ng XMonad.Custom.Theme XMonad.Custom.Workspaces hs-source-dirs: src - build-depends: base >= 4.12 && < 4.13 - , X11 >= 1.9 && < 1.10 + build-depends: X11 >= 1.9 && < 1.10 + , base >= 4.12 && < 4.13 , containers >= 0.6 && < 0.7 , directory >= 1.3 && < 1.4 , filepath >= 1.4 && < 1.5 @@ -43,7 +43,7 @@ executable xmonad-ng , text >= 1.2 && < 1.3 , time >= 1.8 && < 1.9 , xmonad >= 0.15 && < 0.16 - , xmonad-contrib >= 0.15 && < 0.16 + , xmonad-contrib >= 0.16 && < 0.17 default-language: Haskell2010 other-extensions: MultiParamTypeClasses CPP -- cgit 1.4.1