mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-17 12:17:10 -05:00
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:
parent
a1846e9b91
commit
a00543b439
1 changed files with 8 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue