channel

My GNU Guix channel
Log | Files | Refs | README

commit 70fb331e77fe7824d81e686d7355d7dd6d84b7b4
parent 28fc834342ea3616f01246e39f8e776bd5f92b6e
Author: Luke Willis <lukejw@loquat.dev>
Date:   Tue, 17 Jun 2025 21:04:40 -0400

Add rtl88x2bu-kernel-module

Diffstat:
Aloquat/packages/linux.scm | 47+++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+), 0 deletions(-)

diff --git a/loquat/packages/linux.scm b/loquat/packages/linux.scm @@ -0,0 +1,47 @@ +(define-module (loquat packages linux) + #:use-module (gnu) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module (guix build-system linux-module) + #:use-module (guix licenses) + #:use-module (guix utils)) + +(define-public rtl88x2bu-linux-module + (let ((commit "77a82dbac7192bb49fa87458561b0f2455cdc88f") + (revision "30")) + (package + (name "rtl88x2bu-linux-module") + (version (git-version "5.13.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/RinCat/RTL88x2BU-Linux-Driver") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1qrhd4698808axm6mliq810s3yj8aj7nv890pdvpbir8nvn6c44h")))) + (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)) ;no test suite + (home-page "https://github.com/RinCat/RTL88x2BU-Linux-Driver") + (synopsis "Realtek RTL88x2BU WiFi USB Driver for Linux") + (description #f) + (license gpl2)))) + +rtl88x2bu-linux-module