39aldo39 / klfc

Keyboard Layout Files Creator
GNU General Public License v3.0
215 stars 13 forks source link

issues with 'cabal install' #38

Closed andreineculau closed 2 years ago

andreineculau commented 2 years ago

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 2 years ago

Thanks for the fix!