Files
nixpkgs/pkgs/development/python-modules/camelot/ghostscript.patch
T
Andrew Marshall 7c5d163edf pythonPackages.camelot: fix missing ghostscript
While technically an optional dependency, this is effectively
required for many operations. See e.g.
https://github.com/NixOS/nixpkgs/issues/362939

It not only needs the Python library, but also the path to `gs` patched
in and it tricked into assuming that Ghostscript is available (because
it is but it thinks it is not).
2026-01-23 09:26:43 -05:00

14 lines
463 B
Diff

diff --git a/camelot/backends/ghostscript_backend.py b/camelot/backends/ghostscript_backend.py
index 1de7da1..1179e87 100644
--- a/camelot/backends/ghostscript_backend.py
+++ b/camelot/backends/ghostscript_backend.py
@@ -36,7 +36,7 @@ def convert(self, pdf_path, png_path, resolution=300):
import ghostscript
gs_command = [
- "gs",
+ "@ghostscript@",
"-q",
"-sDEVICE=png16m",
"-o",