From patchwork Wed Feb 7 23:49:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: chris X-Patchwork-Id: 59882 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5A5A627BBE2; Wed, 7 Feb 2024 23:52:07 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9B21627BBEA for ; Wed, 7 Feb 2024 23:52:03 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXrhm-0003ke-Sm; Wed, 07 Feb 2024 18:51:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXrhl-0003ia-25 for guix-patches@gnu.org; Wed, 07 Feb 2024 18:51:49 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXrhk-0003Yi-QM for guix-patches@gnu.org; Wed, 07 Feb 2024 18:51:48 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rXrhy-00069G-Hk for guix-patches@gnu.org; Wed, 07 Feb 2024 18:52:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68986] [PATCH] gnu: Add libsixel. Resent-From: chris Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 07 Feb 2024 23:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68986 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68986@debbugs.gnu.org Cc: chris X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170734991023608 (code B ref -1); Wed, 07 Feb 2024 23:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Feb 2024 23:51:50 +0000 Received: from localhost ([127.0.0.1]:58293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXrhl-00068h-G2 for submit@debbugs.gnu.org; Wed, 07 Feb 2024 18:51:49 -0500 Received: from lists.gnu.org ([2001:470:142::17]:58752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXrhi-00068P-Lx for submit@debbugs.gnu.org; Wed, 07 Feb 2024 18:51:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXrhO-0003dQ-TO for guix-patches@gnu.org; Wed, 07 Feb 2024 18:51:26 -0500 Received: from mx.kolabnow.com ([212.103.80.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXrhN-0003Xn-1O for guix-patches@gnu.org; Wed, 07 Feb 2024 18:51:26 -0500 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id EDB82304FB64 for ; Thu, 8 Feb 2024 00:51:14 +0100 (CET) Authentication-Results: ext-mx-out013.mykolab.com (amavis); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20160331; t=1707349872; x=1709164273; bh=UBC1D0eitBxXhh+xtSNNdu+L0iMc+MOwGL1t0+6DLQI=; b=Q91eNchuSE2w M+n4nBFpZQVBsdL1UNoRmNclkFXnK1tAHBBnF+mOps2qHfQFTQCQh0VVyQX0s3v2 vz+CgLAhkz3dORBKvSc+4lt/ow0nhmjtEcSET7/vXYXeDqKSQt8of4rdMalpIZSH iXKa0i6BRRonl2ukHpb1CdpONKUeFCbs6NlVJFGkWT5UdiZzo22uOWuHMhLijT2e QYG8uSrZXAS5NRQv0qjyJ+aqAogUE7LKNGP81ujST+Z3S3pMZmq4fIGDZYi9NVDt /GxpBZNJRBA93krJ0WggufP47nB1AoB/AsQ+ySJ08vV3NG9eK1wwQqQMp23mLSyI zGd5l9QnqQBi8tiTvaocBvW0lLMdRchf3ydh3u4FDYLKbxL4RZPi4Opxqwq88AmM +ih4Z1xVFCbOA52cunyBafgcWLlSl9bCnsi35grkf3Nm6YW3Bp8WSCFOaWVBXZ7U KsvXTSGFJim5WoRmReFsH/2uR5Y1VM/J6xWcPy93I98yj6ayNJHx9L4FQeTwaMrg jxuV0OcyUOND+UV2dxrC2nZLkkxxsecOzm0MfGC1RQX2AnUi37uFv6Z5ef5JQRCF oz2H/gkPBQ135bWTNh4DenhtJTEHho1USKZNZ5RllaQ66L4aFNmQ1DWNMUYQZtbm VQaYJ4FuOInRdEuFkOScz2ha7YbYsek= X-Virus-Scanned: amavis at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id aBclAWvWcveS for ; Thu, 8 Feb 2024 00:51:12 +0100 (CET) Received: from int-mx011.mykolab.com (unknown [10.9.13.11]) by mx.kolabnow.com (Postfix) with ESMTPS id 4BCD1304D512 for ; Thu, 8 Feb 2024 00:51:11 +0100 (CET) Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx011.mykolab.com (Postfix) with ESMTPS id ACBAC30B023A for ; Thu, 8 Feb 2024 00:51:11 +0100 (CET) From: chris Date: Wed, 7 Feb 2024 15:49:45 -0800 Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=212.103.80.155; envelope-from=chris@bumblehead.com; helo=mx.kolabnow.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * (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(+) base-commit: 5d2302a1959d09e6d5a5f02ac199458095847a82 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 ;;; Copyright © 2023 Artyom V. Poptsov +;;; Copyright © 2024 chris ;;; ;;; 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)))