issues with 'cabal install'
andreineculau opened this issue · 1 comments
andreineculau commented
Just pulled klfc
on M1 macbook (can't use releases) and started building it locally with cabal
(v3.6.2.0).
Some issues with aeson types and "no such file" had to be solved. Here's a patch to get things working again:
diff --git i/keyboard-layout-files-creator.cabal w/keyboard-layout-files-creator.cabal
index 2bc92f3..4136dac 100644
--- i/keyboard-layout-files-creator.cabal
+++ w/keyboard-layout-files-creator.cabal
@@ -6,6 +6,21 @@ license-file: LICENSE.txt
build-type: Simple
cabal-version: >=1.2
+Extra-source-files:
+ files/pkl/pkl.exe,
+ files/xkb/run-session.sh,
+ files/xkb/install-system.sh,
+ files/xkb/uninstall-system.sh,
+ files/xkb/scripts/install-xcompose.sh,
+ files/xkb/scripts/uninstall-xcompose.sh,
+ files/xkb/scripts/add-layout-to-xml.py,
+ files/xkb/scripts/remove-layout-from-xml.py,
+ files/xkb/scripts/functions.sh,
+ files/xkb/scripts/add-models-to-xml.py,
+ files/xkb/scripts/remove-models-from-xml.py,
+ files/keylayout/install-user.sh,
+ files/keylayout/install-system.sh
+
executable klfc
hs-source-dirs: src
main-is: Main.hs
@@ -57,7 +72,7 @@ executable klfc
containers,
unordered-containers,
vector,
- aeson >= 0.8.1.0,
+ aeson >= 0.8.1.0 && < 2,
time >= 1.5,
mtl,
microlens-platform,
``
39aldo39 commented
Thanks for the fix!