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

* nongnu/packages/linux.scm (rtl8821cu-linux-module) [arguments]
<#:make-flags>: Move KSRC to...
<#:phases>: ...here.
This commit is contained in:
Hilton Chain 2026-01-06 15:48:56 +08:00
parent 09de674201
commit bd8c5ca23e
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -1049,22 +1049,23 @@ network adapters.")
(base32 "1ril9xnv3bbmfj9yynm3nzpdgjyh0a93rag51hia7ix6ppm8w0a6"))))
(build-system linux-module-build-system)
(arguments
(list
#:make-flags #~(list (string-append "CC="
#$(cc-for-target))
(string-append "KSRC="
(assoc-ref %build-inputs
"linux-module-builder")
"/lib/modules/build"))
#:phases #~(modify-phases %standard-phases
(replace 'build
(lambda* (#:key (make-flags '())
(parallel-build? #t) #:allow-other-keys)
(apply invoke "make"
`(,@(if parallel-build?
`("-j" ,(number->string (parallel-job-count)))
'()) ,@make-flags)))))
#:tests? #f))
(list #:tests? #f ; no test suite
#:make-flags
#~(list (string-append "CC=" #$(cc-for-target)))
#:phases
#~(modify-phases %standard-phases
(replace 'build
(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/morrownr/8821cu-20210916")
(synopsis "Linux driver for Realtek USB WiFi adapters")
(description