nongnu: rtl8192eu-linux-module: Revise package style.

* nongnu/packages/linux.scm (rtl8192eu-linux-module) [arguments]: Use gexps.
<#:make-flags>: Move KSRC to...
<#:phases>: ...here.
Allow building in parallel.
This commit is contained in:
Hilton Chain 2026-01-06 15:22:25 +08:00
parent 1399697b62
commit 3a69a9542b
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -964,17 +964,23 @@ package contains nonfree firmware for the following chips:
"0lklpn1gl202i49xjrd735pl595ynh2wpkdk1nlpcvxssi3qi0l7"))))
(build-system linux-module-build-system)
(arguments
`(#:make-flags
(list "CC=gcc"
(string-append "KSRC="
(assoc-ref %build-inputs "linux-module-builder")
"/lib/modules/build"))
(list #:tests? #f ; no test suite
#:make-flags
#~(list (string-append "CC=" #$(cc-for-target)))
#:phases
(modify-phases %standard-phases
#~(modify-phases %standard-phases
(replace 'build
(lambda* (#:key (make-flags '()) #:allow-other-keys)
(apply invoke "make" make-flags))))
#:tests? #f)) ; no test suite
(lambda* (#:key (make-flags '()) (parallel-build? #t) inputs
#:allow-other-keys)
(apply invoke "make"
(string-append "KSRC="
(search-input-directory
inputs "lib/modules/build"))
`(,@(if parallel-build?
`("-j" ,(number->string
(parallel-job-count)))
'())
,@make-flags)))))))
(home-page "https://github.com/clnhub/rtl8192eu-linux")
(synopsis "Linux driver for Realtek RTL8192EU wireless network adapters")
(description "This is Realtek's RTL8192EU Linux driver for wireless