From 70e3920556496e5fecb5fedddf1067b2522fcac7 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 24 Dec 2024 18:51:17 +0530 Subject: Add setup for ocr with tesseract --- flake.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'flake.nix') 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}"; -- cgit v1.3.1