Subject: [PATCH v3 2/3] gnu: Add vte-gtk-4-with-sixel.

From: Ashvith Shetty <[email-masked]>
Date: Thu, 5 Sep 2024 17:23:18 +0530

* gnu/packages/crates-io.scm (vte-gtk-4-with-sixel-0.73.0-unstable): New public variable.

Change-Id: I58e8d601fbee5e5f83b03b03c7d35b8842fa767f
---
 gnu/packages/gnome.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 7339000436..fa63850f0d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -79,6 +79,7 @@
 ;;; Copyright © 2023 Zhu Zihao <[email-masked]>
 ;;; Copyright © 2024 Dariqq <[email-masked]>
 ;;; Copyright © 2024 James Smith <[email-masked]>
+;;; Copyright © 2024 Ashvith Shetty <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4666,6 +4667,26 @@ (define-public vte-with-gtk-4
     (propagated-inputs (modify-inputs (package-propagated-inputs vte)
                          (replace "gtk+" gtk)))))
 
+(define-public vte-gtk-4-with-sixel
+  (package/inherit vte-with-gtk-4
+    (name "vte-gtk4-with-sixel")
+    ;; this is the closest to v0.72.4 on the main branch
+    (version "0.73.0-unstable")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.gnome.org/GNOME/vte")
+                    (commit "aa7689792918a9d4054e367139d166b146a5bd22")))
+              (sha256 (base32
+                       "0cnccjylj5lbdi2igcd9277zslqrflzdpflngwkcxw4fiyxyv6gk"))))
+    (arguments (substitute-keyword-arguments (package-arguments vte-with-gtk-4)
+                 ((#:configure-flags flags
+                   #~'())
+                  #~(cons* "-Dsixel=true"
+                           #$flags))))
+    (inputs (modify-inputs (package-inputs vte-with-gtk-4)
+              (append libsixel)))))
+
 ;; Stable version for gtk2, required by gnurobots and lxterminal as of 2020-07.
 (define-public vte/gtk+-2
   (package (inherit vte)
-- 
2.45.2