Subject: [PATCH 06/12] gnu: Add ghostscript/tesseract.

From: David Elsing <[email-masked]>
Date: Wed, 26 Jun 2024 19:26:59 +0000

* gnu/packages/ghostscript.scm (ghostscript/tesseract): New variable.
---
 gnu/packages/ghostscript.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm
index 2bc168db68..8c4cccb06e 100644
--- a/gnu/packages/ghostscript.scm
+++ b/gnu/packages/ghostscript.scm
@@ -36,6 +36,7 @@ (define-module (gnu packages ghostscript)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages image)
   #:use-module (gnu packages man)
+  #:use-module (gnu packages ocr)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
@@ -428,6 +429,12 @@ (define-public ghostscript/cups
     (inputs (modify-inputs (package-inputs ghostscript)
               (prepend cups-minimal)))))
 
+(define-public ghostscript/tesseract
+  (package/inherit ghostscript
+    (name (string-append (package-name ghostscript) "-with-tesseract"))
+    (inputs (modify-inputs (package-inputs ghostscript)
+              (prepend tesseract-ocr)))))
+
 (define-public ijs
   (package
     (name "ijs")
-- 
2.45.1