gnu: nnn: Use #:make-flags over Makefile patching.
* gnu/packages/admin.scm (nnn)[arguments]: Remove 'patch-pkg-config phase. Set PKG_CONFIG in #:make-flags instead.
This commit is contained in:
parent
1e1a274ffd
commit
49dd606f57
1 changed files with 3 additions and 7 deletions
|
@ -3614,17 +3614,13 @@ information tool.")
|
||||||
`(#:tests? #f ; no tests
|
`(#:tests? #f ; no tests
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure) ; no configure script
|
(delete 'configure)) ; no configure script
|
||||||
(add-after 'unpack 'patch-pkg-config
|
|
||||||
(lambda _
|
|
||||||
(substitute* "Makefile"
|
|
||||||
(("pkg-config")
|
|
||||||
,(pkg-config-for-target))))))
|
|
||||||
#:make-flags
|
#:make-flags
|
||||||
(list
|
(list
|
||||||
(string-append "PREFIX="
|
(string-append "PREFIX="
|
||||||
(assoc-ref %outputs "out"))
|
(assoc-ref %outputs "out"))
|
||||||
(string-append "CC=" ,(cc-for-target)))))
|
(string-append "CC=" ,(cc-for-target))
|
||||||
|
(string-append "PKG_CONFIG=" ,(pkg-config-for-target)))))
|
||||||
(home-page "https://github.com/jarun/nnn")
|
(home-page "https://github.com/jarun/nnn")
|
||||||
(synopsis "Terminal file browser")
|
(synopsis "Terminal file browser")
|
||||||
(description "@command{nnn} is a fork of @command{noice}, a blazing-fast
|
(description "@command{nnn} is a fork of @command{noice}, a blazing-fast
|
||||||
|
|
Reference in a new issue