~ruther/guix-local

d86e5ab7f274578be07f4f80af081559d4b2435b — quanrong 7 months ago 5cb95c8
gnu: Add lsix.

Change-Id: I5e62969ac21d7128bca5058d1171c17ebdace98a
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 28 insertions(+), 0 deletions(-)

M gnu/packages/image-viewers.scm
M gnu/packages/image-viewers.scm => gnu/packages/image-viewers.scm +28 -0
@@ 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+)))