From patchwork Sun Aug 28 04:56:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cairn X-Patchwork-Id: 42017 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 3643827BBEA; Sun, 28 Aug 2022 05:58:42 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 5338C27BBE9 for ; Sun, 28 Aug 2022 05:58:41 +0100 (BST) Received: from localhost ([::1]:33970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSANc-0006oZ-H6 for patchwork@mira.cbaines.net; Sun, 28 Aug 2022 00:58:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSAN0-0006oN-Nv for guix-patches@gnu.org; Sun, 28 Aug 2022 00:58:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSAMz-0007Er-Ra for guix-patches@gnu.org; Sun, 28 Aug 2022 00:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSAMz-0000Bu-N3 for guix-patches@gnu.org; Sun, 28 Aug 2022 00:58:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57458] [PATCH 2/2] gnu: Add pixterm. References: <20220828045142.23275-1-cairn@pm.me> In-Reply-To: <20220828045142.23275-1-cairn@pm.me> Resent-From: Cairn Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 28 Aug 2022 04:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57458 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57458@debbugs.gnu.org Cc: Cairn Received: via spool by 57458-submit@debbugs.gnu.org id=B57458.1661662623654 (code B ref 57458); Sun, 28 Aug 2022 04:58:01 +0000 Received: (at 57458) by debbugs.gnu.org; 28 Aug 2022 04:57:03 +0000 Received: from localhost ([127.0.0.1]:57457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSAM0-0000A3-Fc for submit@debbugs.gnu.org; Sun, 28 Aug 2022 00:57:02 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:27999) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSALy-00009m-Ep for 57458@debbugs.gnu.org; Sun, 28 Aug 2022 00:56:59 -0400 Date: Sun, 28 Aug 2022 04:56:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1661662612; x=1661921812; bh=HGGaAzhMq6y5cx8t8nOY/uXEYKdIz/5WpzTCp/ssMx0=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:Feedback-ID:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID; b=glJXb5OZfeIS7WpUN2/YJv6GSyE9snAWoB/jhZnQ5WJtGgnMHuGQJPa3EQCZ/EYHV WUgb+9p7s/b9Bb41RGyp1bN7d9EKHl4IbFfj48lK2QBh1ip6ZMEm7V1Mqpk9TJk5W9 Jb2vzPvhFVI2gQVT9R2zVEBWhXso6bllpRgNKKMMtS/fjp4uDsNeY8EzhYtviuM+5A 73E3YKQaqgr+Qrg2k3vYBSW8vot+wA0X49TS9XLeZpOLN2TjohsC1xFVV0/1PkbDWi VmBOVxj8irmjzzs/DuMHtLNjAPALfjlifIc77Nq9j2cWPVgcwvPOaKcWEC53NDYboj VfPksSI3EYovg== Message-ID: <20220828045631.23626-1-cairn@pm.me> Feedback-ID: 6989168:user:proton MIME-Version: 1.0 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" Reply-to: Cairn X-ACL-Warn: , Cairn via Guix-patches X-Patchwork-Original-From: Cairn via Guix-patches via From: Cairn X-getmail-retrieved-from-mailbox: Patches * gnu/packages/image-viewers.scm (pixterm): New variable. --- gnu/packages/image-viewers.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm index 52c9584f67..68181ebfcc 100644 --- a/gnu/packages/image-viewers.scm +++ b/gnu/packages/image-viewers.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2021 dissent ;;; Copyright © 2022 Michael Rohleder ;;; Copyright © 2022 Maxim Cournoyer +;;; Copyright © 2022 Cairn ;;; ;;; This file is part of GNU Guix. ;;; @@ -50,6 +51,7 @@ (define-module (gnu packages image-viewers) #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) + #:use-module (guix build-system go) #:use-module (guix build-system meson) #:use-module (guix build-system python) #:use-module (guix build-system qt) @@ -71,6 +73,7 @@ (define-module (gnu packages image-viewers) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages golang) #:use-module (gnu packages gtk) #:use-module (gnu packages graphics) #:use-module (gnu packages image) @@ -502,6 +505,35 @@ (define-public catimg It supports JPEG, PNG and GIF formats.") (license license:expat))) +(define-public pixterm + (package + (name "pixterm") + (version "1.3.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/eliukblau/pixterm") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0fm6c0mjz6zillqjirnjjf7mkrax1gyfcv6777i07ms3bnv0pcii")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/eliukblau/pixterm/cmd/pixterm" + #:unpack-path "github.com/eliukblau/pixterm")) + (inputs (list go-github-com-disintegration-imaging + go-golang-org-colorful + go-golang-org-x-crypto + go-golang-org-x-image)) + (home-page "https://github.com/eliukblau/pixterm") + (synopsis "Draw images in your ANSI terminal with true color") + (description "PIXterm shows images directly in your terminal, recreating +the pixels through a combination of ANSI character background color and the +unicode lower half block element. It supports JPEG, PNG, GIF, BMP, TIFF +and WebP.") + (license license:mpl2.0))) + (define-public luminance-hdr (package (name "luminance-hdr")