aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-12-24 18:51:17 +0530
committerAkshay Nair <phenax5@gmail.com>2024-12-24 18:51:17 +0530
commit70e3920556496e5fecb5fedddf1067b2522fcac7 (patch)
tree7e4e88023bdcd5b13dde738f7afedd533a6d7fcd /flake.nix
parentdfdf1600ba251f6b3cfef85f6904d79a1c60b49d (diff)
downloadchelleport-70e3920556496e5fecb5fedddf1067b2522fcac7.tar.gz
chelleport-70e3920556496e5fecb5fedddf1067b2522fcac7.zip
Add setup for ocr with tesseract
Diffstat (limited to '')
-rw-r--r--flake.nix19
1 files changed, 15 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index e0c4579..48557f5 100644
--- a/flake.nix
+++ b/flake.nix
@@ -19,6 +19,8 @@
./bin
./src
./specs
+ ./include
+ ./cpp
./chelleport.cabal
];
});
@@ -33,6 +35,18 @@
xorg.libX11
SDL2
SDL2_ttf
+ tesseract
+ leptonica
+ imagemagick
+
+ gcc
+ pkg-config
+ ];
+
+ devPackages = with pkgs; [
+ just
+ nodemon
+ clang-tools
];
in {
haskellProjects.default = {
@@ -69,10 +83,7 @@
inputsFrom = [
config.haskellProjects.default.outputs.devShell
];
- packages = with pkgs; [
- just
- nodemon
- ];
+ packages = devPackages;
inherit buildInputs;
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}";