We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce8e5b4 commit 3e6aa63Copy full SHA for 3e6aa63
1 file changed
pkgs/by-name/pa/paperless-ngx/package.nix
@@ -315,6 +315,9 @@ python.pkgs.buildPythonApplication rec {
315
export HOME=$(mktemp -d)
316
export XDG_DATA_DIRS="${liberation_ttf}/share:$XDG_DATA_DIRS"
317
export PAPERLESS_NLTK_DIR=${passthru.nltkDataDir}
318
+ # Limit threads per worker based on NIX_BUILD_CORES, capped at 256
319
+ # ocrmypdf has an internal limit of 256 jobs and will fail with more
320
+ export PAPERLESS_THREADS_PER_WORKER=$(( NIX_BUILD_CORES > 256 ? 256 : NIX_BUILD_CORES ))
321
'';
322
323
disabledTests = [
0 commit comments