gnu: nnn: Update to 1.9.
* gnu/packages/admin.scm (nnn): Update to 1.9. [source]: Switch to proper release tarball. [native-inputs]: Add pkg-config. [phases]: Remove ‘patch-curses-lib’ phase & ‘-Wl,-rpath=’ #:make-flags.
This commit is contained in:
parent
004830ccf7
commit
eb5a664344
|
@ -2400,43 +2400,29 @@ you are running, what theme or icon set you are using, etc.")
|
||||||
(define-public nnn
|
(define-public nnn
|
||||||
(package
|
(package
|
||||||
(name "nnn")
|
(name "nnn")
|
||||||
(version "1.7")
|
(version "1.9")
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (string-append "https://github.com/jarun/nnn/"
|
(method url-fetch)
|
||||||
"archive/v" version ".tar.gz"))
|
(uri (string-append "https://github.com/jarun/nnn/releases/download/v"
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
version "/" name "-v" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "1d6z12y4rlg4dzhpm30irpq2ak8hjh5zykkp2n7vxnz5m4ki89zp"))))
|
||||||
"0z3lqbfx3y1caxvn7yq90b7whwyq2y32zf8kyd976ilbxpxnxqpv"))))
|
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs `(("ncurses" ,ncurses)
|
(inputs
|
||||||
("readline" ,readline)))
|
`(("ncurses" ,ncurses)
|
||||||
|
("readline" ,readline)))
|
||||||
|
(native-inputs
|
||||||
|
`(("pkg-config" ,pkg-config)))
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f ; no tests
|
'(#:tests? #f ; no tests
|
||||||
#:phases
|
#:phases
|
||||||
;; We do not provide `ncurses.h' within an `ncursesw'
|
|
||||||
;; sub-directory, so patch the source accordingly. See
|
|
||||||
;; <http://bugs.gnu.org/19018>.
|
|
||||||
;; Thanks to gtypist maintainer.
|
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-curses-lib
|
(delete 'configure)) ; no configure script
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(let ((out (assoc-ref outputs "out")))
|
|
||||||
(substitute* "Makefile"
|
|
||||||
(("-lncursesw")
|
|
||||||
"-lncurses"))
|
|
||||||
(substitute* "nnn.c"
|
|
||||||
(("ncursesw\\/curses.h")
|
|
||||||
"ncurses.h")))
|
|
||||||
#t))
|
|
||||||
(delete 'configure))
|
|
||||||
#:make-flags
|
#:make-flags
|
||||||
(list
|
(list
|
||||||
(string-append "PREFIX="
|
(string-append "PREFIX="
|
||||||
(assoc-ref %outputs "out"))
|
(assoc-ref %outputs "out"))
|
||||||
(string-append "-Wl,-rpath="
|
|
||||||
%output "/lib")
|
|
||||||
"CC=gcc")))
|
"CC=gcc")))
|
||||||
(home-page "https://github.com/jarun/nnn")
|
(home-page "https://github.com/jarun/nnn")
|
||||||
(synopsis "Terminal file browser")
|
(synopsis "Terminal file browser")
|
||||||
|
|
Loading…
Reference in New Issue