gnu: iw: Fix cross-compilation.

* gnu/packages/linux.scm (iw)[arguments]: Rewrite as G-expression.
Replace custom code with PKG-CONFIG-FOR-TARGET, and drop the unnecessary
absolute file name altogether.
This commit is contained in:
Tobias Geerinckx-Rice 2022-01-08 00:50:07 +01:00
parent a1846e9b91
commit a00543b439
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -3081,18 +3081,14 @@ (define-public iw
(native-inputs (list pkg-config))
(inputs (list libnl))
(arguments
`(#:make-flags
(let* ((target ,(%current-target-system))
(pkg-config (if target
(string-append target "-pkg-config")
"pkg-config")))
(list
,(string-append "CC=" (cc-for-target))
(string-append "PKG_CONFIG="
(assoc-ref %build-inputs "pkg-config")
"/bin/" pkg-config)
(string-append "PREFIX=" (assoc-ref %outputs "out"))))
#:phases (modify-phases %standard-phases (delete 'configure))))
(list #:make-flags
#~(list
(string-append "CC=" #$(cc-for-target))
(string-append "PKG_CONFIG=" #$(pkg-config-for-target))
(string-append "PREFIX=" (assoc-ref %outputs "out")))
#:phases
#~(modify-phases %standard-phases
(delete 'configure)))) ; no configure script
(home-page "https://wireless.wiki.kernel.org/")
(synopsis "Tool for configuring wireless devices")
(description