From 4fd6a3c1f6b37445d140530844c68c40f6a4cf14 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Tue, 6 Jan 2026 15:52:11 +0800 Subject: nongnu: rtl8821ce-linux-module: Revise package style. * nongnu/packages/linux.scm (rtl8821ce-linux-module) [arguments] <#:make-flags>: Move KSRC to... <#:phases>: ...here. --- nongnu/packages/linux.scm | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/nongnu/packages/linux.scm b/nongnu/packages/linux.scm index b529e0a..021b7a3 100644 --- a/nongnu/packages/linux.scm +++ b/nongnu/packages/linux.scm @@ -1001,23 +1001,23 @@ network adapters.") "0dn1cmp8gn2g42q67lny15rrf092kw2rrb3gxc1qn07hbklj73bx")))) (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")) + (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) - #:allow-other-keys) + (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))) + `("-j" ,(number->string + (parallel-job-count))) '()) - ,@make-flags))))) - #:tests? #f)) ; no test suite + ,@make-flags))))))) (home-page "https://github.com/tomaspinho/rtl8821ce") (synopsis "Linux driver for Realtek RTL8821CE wireless network adapters") (description "This is Realtek's RTL8821CE Linux driver for wireless -- cgit v1.2.3