From 4fc0f24120eec931c5c7ea95dcfad327563c048f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 30 Jan 2023 18:52:21 +0100 Subject: [PATCH] paperless-ngx: Reduce output size By dropping the tests and its assets we further reduce the output size from 23M to just 8.4M. --- pkgs/applications/office/paperless-ngx/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/office/paperless-ngx/default.nix b/pkgs/applications/office/paperless-ngx/default.nix index 28314d48fe51..61c607c422e8 100644 --- a/pkgs/applications/office/paperless-ngx/default.nix +++ b/pkgs/applications/office/paperless-ngx/default.nix @@ -266,6 +266,11 @@ python.pkgs.buildPythonApplication rec { --prefix PATH : "${path}" ''; + postFixup = '' + # Remove tests with samples (~14M) + find $out/lib/paperless-ngx -type d -name tests -exec rm -rv {} + + ''; + nativeCheckInputs = with python.pkgs; [ factory_boy imagehash