Subject: [PATCH 4/4] gnu: Add gmic-qt-krita.

From: Vinicius Monego <[email-masked]>
Date: Fri, 5 Mar 2021 01:53:38 -0300

* gnu/packages/image-processing.scm (gmic-qt-krita): New variable.
---
 gnu/packages/image-processing.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index bb8e4a48ee..df19d27bc2 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -671,6 +671,18 @@ including 2D color images.")
        ,@(package-inputs gmic)))
     (synopsis "Qt frontend for the G'MIC image processing framework")))
 
+(define-public gmic-qt-krita
+  (package
+    (inherit gmic-qt)
+    (name "gmic-qt-krita")
+    (arguments
+     (substitute-keyword-arguments (package-arguments gmic-qt)
+       ((#:configure-flags flags)
+        '(list "-DGMIC_QT_HOST=krita" "-DENABLE_DYNAMIC_LINKING=ON"
+               (string-append "-DGMIC_LIB_PATH="
+                              (assoc-ref %build-inputs "gmic") "/lib")))))
+    (synopsis "Krita plugin for the G'MIC image processing framework")))
+
 (define-public nip2
   (package
     (name "nip2")
-- 
2.30.1