summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCairn <cairn@pm.me>2022-08-28 04:56:39 +0000
committerGuix Patches Tester <>2022-08-28 06:00:35 +0100
commiteb348e319d27987df107f99b888abe7e2b3f0a72 (patch)
treec093b974c3332a100e003504855d07b559653a61
parentbd1dc53df6c8f68e6d8a748a681b0878f6b70319 (diff)
downloadguix-patches-eb348e319d27987df107f99b888abe7e2b3f0a72.tar
guix-patches-eb348e319d27987df107f99b888abe7e2b3f0a72.tar.gz
gnu: Add pixterm.
* gnu/packages/image-viewers.scm (pixterm): New variable.
-rw-r--r--gnu/packages/image-viewers.scm32
1 files changed, 32 insertions, 0 deletions
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 <disseminatedissent@protonmail.com>
;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2022 Cairn <cairn@pm.me>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -50,6 +51,7 @@
#: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 @@
#: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 @@ your images. Among its features are:
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")