Closed andreineculau closed 3 years ago
Just pulled klfc on M1 macbook (can't use releases) and started building it locally with cabal (v3.6.2.0).
klfc
cabal
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, ``
Thanks for the fix!
Just pulled
klfc
on M1 macbook (can't use releases) and started building it locally withcabal
(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: