gnu: newsboat: Prepare for cross-building.

* gnu/packages/syndication.scm (newsboat)[arguments]: Add a phase to use
the correct compiler when cross-compiling.

Change-Id: I1a560af41471cb8899322813f8a18c15ac0e5924
This commit is contained in:
Efraim Flashner 2023-11-19 10:51:44 +02:00
parent bd90c7d462
commit 4442aa8780
Signed by untrusted user: efraim
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 8 additions and 0 deletions

View File

@ -287,6 +287,14 @@ cards.")
(("^doc:.*") "doc:\n")
(("install-podboat install-docs") "install-podboat")))))
'())
(add-after 'unpack 'pre-build
(lambda* (#:key inputs #:allow-other-keys)
(setenv "CXX" ,(cxx-for-target))
(setenv "CXX_FOR_BUILD" (which "g++"))
(substitute* "config.sh"
(("if curl-config")
(string-append
"if " (search-input-file inputs "/bin/curl-config"))))))
(add-after 'configure 'dont-vendor-self
(lambda* (#:key vendor-dir #:allow-other-keys)
;; Don't keep the whole tarball in the vendor directory