about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorErik Arvstedt <erik.arvstedt@gmail.com>2022-09-05 10:12:39 +0200
committerErik Arvstedt <erik.arvstedt@gmail.com>2022-09-05 14:50:45 +0200
commit783f8f16c16ba47daffff2c6b92a96eb8bb5d363 (patch)
tree258ad1899042721dfe54a3d9bae9b940290f88fe /pkgs
parent310b9fe58d34a4d655778bf561e8fb021e2d4b70 (diff)
paperless: move `PYTHONPATH` definition to module
`paperless-ngx.pythonPath` was incomplete due to the missing paperless-ngx
source, so it had to be amended in the service.
Instead of amending it, define it entirely in the service.

This allows an override of `paperless-ngx.propagatedBuildInputs` to be reflected
in the service's PYTHONPATH.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/office/paperless-ngx/default.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkgs/applications/office/paperless-ngx/default.nix b/pkgs/applications/office/paperless-ngx/default.nix
index a42ec844d115d..1deb8e7efe6e9 100644
--- a/pkgs/applications/office/paperless-ngx/default.nix
+++ b/pkgs/applications/office/paperless-ngx/default.nix
@@ -207,11 +207,7 @@ python.pkgs.pythonPackages.buildPythonApplication rec {
   '';
 
   passthru = {
-    inherit python;
-    # PYTHONPATH of all dependencies used by the package
-    pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
-    inherit path;
-
+    inherit python path;
     tests = { inherit (nixosTests) paperless; };
   };