mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixos/stirling-pdf: make calibre dependency optional based on config (#337060)
This commit is contained in:
commit
7f9873b3b9
@ -47,18 +47,20 @@ in
|
|||||||
environment = lib.mapAttrs (_: toString) cfg.environment;
|
environment = lib.mapAttrs (_: toString) cfg.environment;
|
||||||
|
|
||||||
# following https://github.com/Stirling-Tools/Stirling-PDF#locally
|
# following https://github.com/Stirling-Tools/Stirling-PDF#locally
|
||||||
path = with pkgs; [
|
path =
|
||||||
unpaper
|
with pkgs;
|
||||||
libreoffice
|
[
|
||||||
ocrmypdf
|
unpaper
|
||||||
poppler_utils
|
libreoffice
|
||||||
unoconv
|
ocrmypdf
|
||||||
opencv
|
poppler_utils
|
||||||
pngquant
|
unoconv
|
||||||
tesseract
|
opencv
|
||||||
python3Packages.weasyprint
|
pngquant
|
||||||
calibre
|
tesseract
|
||||||
];
|
python3Packages.weasyprint
|
||||||
|
]
|
||||||
|
++ lib.optional (cfg.environment.INSTALL_BOOK_AND_ADVANCED_HTML_OPS or "false" == "true") calibre;
|
||||||
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user