diff options
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r-- | pkgs/applications/office/paperless-ngx/default.nix | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/pkgs/applications/office/paperless-ngx/default.nix b/pkgs/applications/office/paperless-ngx/default.nix index fa5e1479d2ec..68dd3ec0f6da 100644 --- a/pkgs/applications/office/paperless-ngx/default.nix +++ b/pkgs/applications/office/paperless-ngx/default.nix @@ -5,6 +5,8 @@ , nixosTests , gettext , python3 +, giflib +, darwin , ghostscript , imagemagickBig , jbig2enc @@ -31,7 +33,23 @@ let hash = "sha256-vXW2d45Mth3Y95xPPH8bFjVLWVdUl+WuvSXJyPD3FyU="; }; - python = python3; + # subpath installation is broken with uvicorn >= 0.26 + # https://github.com/NixOS/nixpkgs/issues/298719 + # https://github.com/paperless-ngx/paperless-ngx/issues/5494 + python = python3.override { + packageOverrides = self: super: { + uvicorn = super.uvicorn.overridePythonAttrs (oldAttrs: { + version = "0.25.0"; + src = fetchFromGitHub { + owner = "encode"; + repo = "uvicorn"; + rev = "0.25.0"; + hash = "sha256-ng98DTw49zyFjrPnEwfnPfONyjKKZYuLl0qduxSppYk="; + }; + }); + }; + }; + path = lib.makeBinPath [ ghostscript @@ -64,6 +82,9 @@ let buildInputs = [ pango + ] ++ lib.optionals stdenv.isDarwin [ + giflib + darwin.apple_sdk.frameworks.CoreText ]; CYPRESS_INSTALL_BINARY = "0"; |