gnu: nnn: Cross compile.
* gnu/packages/admin.scm (nnn)[arguments]: Use cc-for-target in make-flags. Add custom phase to use correct pkg-config for target.
This commit is contained in:
parent
d4560e0b7b
commit
cbd104bf6f
@ -3382,15 +3382,23 @@ information tool.")
|
|||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("pkg-config" ,pkg-config)))
|
||||||
(arguments
|
(arguments
|
||||||
'(#: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")
|
||||||
|
(or (which "pkg-config")
|
||||||
|
(string-append ,(%current-target-system)
|
||||||
|
"-pkg-config"))))
|
||||||
|
#t)))
|
||||||
#:make-flags
|
#:make-flags
|
||||||
(list
|
(list
|
||||||
(string-append "PREFIX="
|
(string-append "PREFIX="
|
||||||
(assoc-ref %outputs "out"))
|
(assoc-ref %outputs "out"))
|
||||||
"CC=gcc")))
|
(string-append "CC=" ,(cc-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
|
||||||
|
Loading…
Reference in New Issue
Block a user