From: Foo Chuan Wei <chuanwei.foo@hotmail.com>
To: 51477@debbugs.gnu.org
Subject: [bug#51477] [PATCH v2] gnu: Add nsxiv.
Date: Sun, 31 Oct 2021 09:11:29 +0000 [thread overview]
Message-ID: <PU1PR01MB2155235C962D4E88F38AE1948D899@PU1PR01MB2155.apcprd01.prod.exchangelabs.com> (raw)
In-Reply-To: <PU1PR01MB2155E72336CC79D09D9496FF8D879@PU1PR01MB2155.apcprd01.prod.exchangelabs.com>
* gnu/packages/image-viewers.scm (nsxiv): New variable.
---
gnu/packages/image-viewers.scm | 54 ++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm
index 4f87b63ca1..8e34ce1608 100644
--- a/gnu/packages/image-viewers.scm
+++ b/gnu/packages/image-viewers.scm
@@ -417,6 +417,60 @@ base should be kept small and clean to make it easy for you to dig into
it and customize it for your needs.")
(license license:gpl2+)))
+(define-public nsxiv
+ (package
+ (name "nsxiv")
+ (version "27.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nsxiv/nsxiv")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1na7f0hpc9g04nm7991gzaqr5gkj08n2azx833hgxcm2w1pnn1bk"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f ; no check target
+ #:make-flags
+ (list (string-append "PREFIX=" %output)
+ (string-append "CC=" ,(cc-for-target)))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure) ; no configure script
+ (add-after 'unpack 'fix-paths
+ (lambda _
+ ;; Xft.h #includes <ft2build.h> without ‘freetype2/’. The Makefile
+ ;; works around this by hard-coding /usr/include & $PREFIX.
+ (substitute* "Makefile"
+ (("-I/usr/include/freetype2 -I\\$\\(PREFIX\\)/include/freetype2")
+ (string-append "-I" (assoc-ref %build-inputs "freetype")
+ "/include/freetype2")))))
+ (add-after 'install 'install-desktop-file
+ (lambda* (#:key outputs #:allow-other-keys)
+ (install-file "nsxiv.desktop"
+ (string-append (assoc-ref outputs "out")
+ "/share/applications"))))
+ (add-after 'install 'install-icons
+ (lambda* (#:key make-flags #:allow-other-keys)
+ (apply invoke "make" "-C" "icon" "install" make-flags))))))
+ (inputs
+ `(("freetype" ,freetype)
+ ("giflib" ,giflib)
+ ("imlib2" ,imlib2)
+ ("libexif" ,libexif)
+ ("libx11" ,libx11)
+ ("libxft" ,libxft)))
+ (home-page "https://github.com/nsxiv/nsxiv")
+ (synopsis "Neo Simple X Image Viewer")
+ (description
+ "nsxiv is a fork of sxiv. Its primary goal is to provide the most basic
+features required for fast image viewing. It has vi key bindings and works
+nicely with tiling window managers. Its code base should be kept small and
+clean to make it easy for you to dig into it and customize it for your needs.")
+ (license license:gpl2+)))
+
(define-public viewnior
(package
(name "viewnior")
base-commit: 9f2c5e901e988b575d487629976d2d14be4ed61d
--
2.25.1
next prev parent reply other threads:[~2021-10-31 9:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-29 9:30 [bug#51477] [PATCH] gnu: Add nsxiv Foo Chuan Wei
2021-10-31 9:11 ` Foo Chuan Wei [this message]
2021-11-14 14:22 ` bug#51477: [PATCH v2] " Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=PU1PR01MB2155235C962D4E88F38AE1948D899@PU1PR01MB2155.apcprd01.prod.exchangelabs.com \
--to=chuanwei.foo@hotmail.com \
--cc=51477@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.