unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#68986] [PATCH] gnu: Add libsixel.
@ 2024-02-07 23:49 chris
  2024-02-22 20:01 ` bug#68986: " Nicolas Goaziou via Guix-patches via
  0 siblings, 1 reply; 2+ messages in thread
From: chris @ 2024-02-07 23:49 UTC (permalink / raw)
  To: 68986; +Cc: chris

*  (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 <873216071@qq.com>
 ;;; Copyright © 2023-2024 Nicolas Goaziou <mail@nicolasgoaziou.fr>
 ;;; Copyright © 2023 Artyom V. Poptsov <poptsov.artyom@gmail.com>
+;;; Copyright © 2024 chris <chris@bumblehead.com>
 ;;;
 ;;; 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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#68986: [PATCH] gnu: Add libsixel.
  2024-02-07 23:49 [bug#68986] [PATCH] gnu: Add libsixel chris
@ 2024-02-22 20:01 ` Nicolas Goaziou via Guix-patches via
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou via Guix-patches via @ 2024-02-22 20:01 UTC (permalink / raw)
  To: chris; +Cc: 68986-done

Hello,

chris <chris@bumblehead.com> 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






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-22 20:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-07 23:49 [bug#68986] [PATCH] gnu: Add libsixel chris
2024-02-22 20:01 ` bug#68986: " Nicolas Goaziou via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).