From d86e5ab7f274578be07f4f80af081559d4b2435b Mon Sep 17 00:00:00 2001 From: quanrong Date: Thu, 4 Sep 2025 22:19:41 +0200 Subject: [PATCH] gnu: Add lsix. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5e62969ac21d7128bca5058d1171c17ebdace98a Signed-off-by: Ludovic Courtès --- gnu/packages/image-viewers.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm index af80f441c7677f9b2729091926a1ad380e77fa36..4949451800d2b298a53ca4e7134ef1c29df84463 100644 --- a/gnu/packages/image-viewers.scm +++ b/gnu/packages/image-viewers.scm @@ -56,6 +56,7 @@ #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system go) #:use-module (guix build-system meson) #:use-module (guix build-system python) @@ -1341,3 +1342,30 @@ doesn't, it should support the Sixel protocol.") (home-page "https://wolf.nereid.pl/posts/image-viewer/") ;; Author tried to make it BSD-3--but it uses a GPL library (poppler) (license license:gpl2+))) + +(define-public lsix + (package + (name "lsix") + (version "1.9.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hackerb9/lsix") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1w4wgnkvvirpgxy00jlpw7p1pcflnwy3rwk5zwh4pkk3igpcdi4s")))) + (build-system copy-build-system) + (arguments + '(#:install-plan '(("lsix" "bin/")))) + (propagated-inputs (list imagemagick)) + (home-page "https://github.com/hackerb9/lsix") + (synopsis "Show image thumbnails in the terminal") + (description + "@command{lsix} lists the images in a directory by displaying their thumbnails. +Images are displayed in sixel graphics. @command{lsix} automatically detects +terminal features and adapts the output to offer the highest quality possible. +It can usually display non-bitmap graphics, including PDF. Your terminal should +be sixel capable, like @command{xterm -ti vt340}.") + (license license:gpl3+)))