Subject: bug#68986: closed (Re: [bug#68986] [PATCH] gnu: Add libsixel.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 22 Feb 2024 20:03:02 +0000

Your bug report

#68986: [PATCH] gnu: Add libsixel.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
68986: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68986
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#68986] [PATCH] gnu: Add libsixel.
From: Nicolas Goaziou <[email-masked]>
To: chris <[email-masked]>
Cc: [email-masked]
Date: Thu, 22 Feb 2024 21:01:43 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

chris <[email-masked]> writes:

> *  (libsixel): New variable.
>
> The libsixel install was verified with this command: img2sixel myimg.png
>

Thank you!

I fixed the commit message, tweaked the description, sorted inputs
alphabetically, and applied your patch.

Regards,
-- 
Nicolas Goaziou

Subject: [PATCH] gnu: Add libsixel.
From: chris <[email-masked]>
To: [email-masked]
Cc: chris <[email-masked]>
Date: Wed, 7 Feb 2024 15:49:45 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

*  (libsixel): New variable.

The libsixel install was verified with this command: img2sixel myimg.png

Curl is disabled to mitigate CVE-2021-45340 guix lint warns about.

Change-Id: I7c8077dd705409ce914ab347115d0b4fddeb37e1
---
 gnu/packages/image.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 1f434667f8..85b70087be 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -38,6 +38,7 @@
 ;;; Copyright © 2023 Zheng Junjie <[email-masked]>
 ;;; Copyright © 2023-2024 Nicolas Goaziou <[email-masked]>
 ;;; Copyright © 2023 Artyom V. Poptsov <[email-masked]>
+;;; Copyright © 2024 chris <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2816,3 +2817,37 @@ (define-public spng
    (license license:bsd-2)
    ;; Supports SSE on x86-64 and NEON on AArch64.
    (properties '((tunable? . #t)))))
+
+(define-public libsixel
+  (package
+    (name "libsixel")
+    (version "1.10.3")
+    (home-page "https://github.com/libsixel/libsixel")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1nny4295ipy4ajcxmmh04c796hcds0y7z7rv3qd17mj70y8j0r2d"))))
+    (build-system meson-build-system)
+    (arguments
+     (list
+      #:build-type "release"
+      #:configure-flags #~'("--buildtype=plain" "-Dtests=enabled"
+                            "-Dlibcurl=disabled" "-Dgdk-pixbuf2=enabled")))
+    (native-inputs (list pkg-config))
+    (inputs (list libjpeg-turbo libpng python gdk-pixbuf))
+    (synopsis
+     "Provides encoder/decoder implementation for DEC SIXEL graphics.")
+    (description
+     "@command{libpixel} is a an encoder/decoder implementation
+ for DEC SIXEL graphics, and some converter programs. SIXEL is
+ one of image formats for printer and terminal imaging introduced
+ by Digital Equipment Corp. (DEC).  Its data scheme is represented
+ as a terminal-friendly escape sequence. So if you want to view a
+ SIXEL image file, all you have to do is \"cat\" it to your
+ terminal")
+    (license license:expat)))

base-commit: 5d2302a1959d09e6d5a5f02ac199458095847a82
-- 
2.41.0