nongnu: broadcom-sta: Fix build failure for x86_64-linux.

Fixes https://gitlab.com/nonguix/nonguix/-/issues/152

* nongnu/packages/linux.scm (broadcom-sta)[native-inputs]: Remove arch
decision logic and...
[source]: move it here.
[arguments]: Remove 'unpack phase as done by build system now.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
James Smith 2021-12-14 16:46:06 -07:00 committed by Jonathan Brielmaier
parent 9445cbce7c
commit b0142c822b
No known key found for this signature in database
GPG key ID: ECFC83988B4E4B9F

View file

@ -598,25 +598,15 @@ network adapters.")
(package (package
(name "broadcom-sta") (name "broadcom-sta")
(version broadcom-sta-version) (version broadcom-sta-version)
(source #f) (source
(match (or (%current-target-system) (%current-system))
("x86_64-linux" broadcom-sta-x86_64-source)
(_ broadcom-sta-i686-source)))
(build-system linux-module-build-system) (build-system linux-module-build-system)
(arguments (arguments
`(#:linux ,linux `(#:linux ,linux
#:tests? #f #:tests? #f))
#:phases
(modify-phases %standard-phases
(replace 'unpack
(lambda* (#:key inputs #:allow-other-keys)
(let ((source (assoc-ref inputs "broadcom-sta-source")))
(invoke "tar" "xf" source)
(chdir ((@@ (guix build gnu-build-system) first-subdirectory) "."))
#t))))))
(supported-systems '("i686-linux" "x86_64-linux")) (supported-systems '("i686-linux" "x86_64-linux"))
(native-inputs
`(("broadcom-sta-source"
,(match (or (%current-target-system) (%current-system))
("x86_64-linux" broadcom-sta-x86_64-source)
(_ broadcom-sta-i686-source)))))
(home-page "https://www.broadcom.com/support/802.11") (home-page "https://www.broadcom.com/support/802.11")
(synopsis "Broadcom 802.11 Linux STA wireless driver") (synopsis "Broadcom 802.11 Linux STA wireless driver")
(description "This package contains Broadcom's IEEE 802.11a/b/g/n/ac hybrid (description "This package contains Broadcom's IEEE 802.11a/b/g/n/ac hybrid