From e3be4ad2f06450b43ee723250cb96bb39a1b50a7 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sun, 11 Sep 2022 21:55:12 +0200 Subject: [PATCH 1/2] paperless: fix array formatting --- pkgs/applications/office/paperless-ngx/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/office/paperless-ngx/default.nix b/pkgs/applications/office/paperless-ngx/default.nix index 1deb8e7efe6e..d9a9cef77552 100644 --- a/pkgs/applications/office/paperless-ngx/default.nix +++ b/pkgs/applications/office/paperless-ngx/default.nix @@ -49,7 +49,16 @@ let }; }; - path = lib.makeBinPath [ ghostscript imagemagick jbig2enc optipng pngquant qpdf tesseract4 unpaper ]; + path = lib.makeBinPath [ + ghostscript + imagemagick + jbig2enc + optipng + pngquant + qpdf + tesseract4 + unpaper + ]; in python.pkgs.pythonPackages.buildPythonApplication rec { pname = "paperless-ngx"; From a611c674c211fe776588dda9a9df88cb914046da Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sun, 11 Sep 2022 21:55:13 +0200 Subject: [PATCH 2/2] paperless: use `imagemagickBig` `imagemagickBig` has `gs` support. This fixes a warning during thumbnail generation (`convert: no images defined`). The type of thumbnails that are generated is unchanged. --- pkgs/applications/office/paperless-ngx/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/office/paperless-ngx/default.nix b/pkgs/applications/office/paperless-ngx/default.nix index d9a9cef77552..e85f13b892f7 100644 --- a/pkgs/applications/office/paperless-ngx/default.nix +++ b/pkgs/applications/office/paperless-ngx/default.nix @@ -3,7 +3,7 @@ , nixosTests , python3 , ghostscript -, imagemagick +, imagemagickBig , jbig2enc , optipng , pngquant @@ -51,7 +51,7 @@ let path = lib.makeBinPath [ ghostscript - imagemagick + imagemagickBig jbig2enc optipng pngquant