-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathshell.nix
More file actions
41 lines (36 loc) · 849 Bytes
/
shell.nix
File metadata and controls
41 lines (36 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Shell environment for development
# Usage: nix-shell or nix develop
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
# Python environment
python3
python3Packages.pygobject3
python3Packages.pycairo
python3Packages.rapidocr
python3Packages.pikepdf
python3Packages.reportlab
python3Packages.opencv4
python3Packages.pillow
python3Packages.numpy
python3Packages.scipy
python3Packages.odfpy
python3Packages.pytest
# GTK4 and Adwaita
gtk4
libadwaita
gobject-introspection
# Runtime tools
poppler_utils
ghostscript
fribidi
# Development tools
ruff
pkg-config
];
shellHook = ''
echo "BigOcrPdf development environment loaded"
echo "Run with: python -m bigocrpdf"
export PYTHONPATH="$PWD/src:$PYTHONPATH"
'';
}