Commit b94de95f authored by DCsunset's avatar DCsunset
Browse files

nixos/stirling-pdf: make calibre dependency optional based on config

parent 48e253d2
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
@@ -47,7 +47,9 @@ in
      environment = lib.mapAttrs (_: toString) cfg.environment;

      # following https://github.com/Stirling-Tools/Stirling-PDF#locally
      path = with pkgs; [
      path =
        with pkgs;
        [
          unpaper
          libreoffice
          ocrmypdf
@@ -57,8 +59,8 @@ in
          pngquant
          tesseract
          python3Packages.weasyprint
        calibre
      ];
        ]
        ++ lib.optional (cfg.environment.INSTALL_BOOK_AND_ADVANCED_HTML_OPS or "false" == "true") calibre;

      wantedBy = [ "multi-user.target" ];