channel

My GNU Guix channel
Log | Files | Refs | README

linux.scm (1966B)


      1 (define-module (loquat packages linux)
      2   #:use-module (gnu)
      3   #:use-module (guix packages)
      4   #:use-module (guix git-download)
      5   #:use-module (guix build-system linux-module)
      6   #:use-module (guix licenses)
      7   #:use-module (guix utils))
      8 
      9 (define-public rtl88x2bu-linux-module
     10   (let ((commit "77a82dbac7192bb49fa87458561b0f2455cdc88f")
     11         (revision "30"))
     12     (package
     13       (name "rtl88x2bu-linux-module")
     14       (version (git-version "5.13.1" revision commit))
     15       (source
     16        (origin
     17          (method git-fetch)
     18          (uri (git-reference
     19                (url "https://github.com/RinCat/RTL88x2BU-Linux-Driver")
     20                (commit commit)))
     21          (file-name (git-file-name name version))
     22          (sha256
     23           (base32 "1qrhd4698808axm6mliq810s3yj8aj7nv890pdvpbir8nvn6c44h"))))
     24       (build-system linux-module-build-system)
     25       (arguments
     26        (list
     27         #:make-flags #~(list (string-append "CC="
     28                                             #$(cc-for-target))
     29                              (string-append "KSRC="
     30                                             (assoc-ref %build-inputs
     31                                                        "linux-module-builder")
     32                                             "/lib/modules/build"))
     33         #:phases #~(modify-phases %standard-phases
     34                      (replace 'build
     35                        (lambda* (#:key (make-flags '())
     36                                  (parallel-build? #t) #:allow-other-keys)
     37                          (apply invoke "make"
     38                                 `(,@(if parallel-build?
     39                                         `("-j" ,(number->string (parallel-job-count)))
     40                                         '()) ,@make-flags)))))
     41         #:tests? #f)) ;no test suite
     42       (home-page "https://github.com/RinCat/RTL88x2BU-Linux-Driver")
     43       (synopsis "Realtek RTL88x2BU WiFi USB Driver for Linux")
     44       (description #f)
     45       (license gpl2))))
     46 
     47 rtl88x2bu-linux-module