Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues with 'cabal install' #38

Closed
andreineculau opened this issue Nov 10, 2021 · 1 comment
Closed

issues with 'cabal install' #38

andreineculau opened this issue Nov 10, 2021 · 1 comment

Comments

@andreineculau
Copy link
Contributor

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 pushed a commit that referenced this issue Nov 13, 2021
@39aldo39
Copy link
Owner

Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants