diff options
| author | PRESFIL <presfil@protonmail.com> | 2024-01-29 20:27:29 +0100 |
|---|---|---|
| committer | Jonathan Brielmaier <jonathan.brielmaier@web.de> | 2024-01-29 20:39:48 +0100 |
| commit | b2e769487eba7f699a90f32e6bf802eb9d18f0a3 (patch) | |
| tree | 24a6395bf7e15d5a8659959f0ceb3a89fb27aea6 | |
| parent | 9acfbadebf64add37fa31546ac7272adfba389ff (diff) | |
nongnu: Add rtl8821cu-linux-module.
* nongnu/packages/linux.scm: (rtl8821cu-linux-module): New variable.
Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
| -rw-r--r-- | nongnu/packages/linux.scm | 57 |
1 files changed, 56 insertions, 1 deletions
diff --git a/nongnu/packages/linux.scm b/nongnu/packages/linux.scm index 9d28d2f..ce4b0bf 100644 --- a/nongnu/packages/linux.scm +++ b/nongnu/packages/linux.scm | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org> | 4 | ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org> |
| 5 | ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si> | 5 | ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si> |
| 6 | ;;; Copyright © 2020, 2021 James Smith <jsubuntuxp@disroot.org> | 6 | ;;; Copyright © 2020, 2021 James Smith <jsubuntuxp@disroot.org> |
| 7 | ;;; Copyright © 2020-2023 Jonathan Brielmaier <jonathan.brielmaier@web.de> | 7 | ;;; Copyright © 2020-2024 Jonathan Brielmaier <jonathan.brielmaier@web.de> |
| 8 | ;;; Copyright © 2020, 2022 Michael Rohleder <mike@rohleder.de> | 8 | ;;; Copyright © 2020, 2022 Michael Rohleder <mike@rohleder.de> |
| 9 | ;;; Copyright © 2020, 2021, 2022 Tobias Geerinckx-Rice <me@tobias.gr> | 9 | ;;; Copyright © 2020, 2021, 2022 Tobias Geerinckx-Rice <me@tobias.gr> |
| 10 | ;;; Copyright © 2020, 2021, 2022 Zhu Zihao <all_but_last@163.com> | 10 | ;;; Copyright © 2020, 2021, 2022 Zhu Zihao <all_but_last@163.com> |
| @@ -25,6 +25,7 @@ | |||
| 25 | ;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space> | 25 | ;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space> |
| 26 | ;;; Copyright © 2023 Ada Stevenson <adanskana@gmail.com> | 26 | ;;; Copyright © 2023 Ada Stevenson <adanskana@gmail.com> |
| 27 | ;;; Copyright © 2023 Tomas Volf <~@wolfsden.cz> | 27 | ;;; Copyright © 2023 Tomas Volf <~@wolfsden.cz> |
| 28 | ;;; Copyright © 2023 PRESFIL <presfil@protonmail.com> | ||
| 28 | 29 | ||
| 29 | (define-module (nongnu packages linux) | 30 | (define-module (nongnu packages linux) |
| 30 | #:use-module (gnu packages) | 31 | #:use-module (gnu packages) |
| @@ -849,6 +850,60 @@ network adapters.") | |||
| 849 | ;; hal/rtl8821c/hal8821c_fw.c | 850 | ;; hal/rtl8821c/hal8821c_fw.c |
| 850 | (license gpl2)))) | 851 | (license gpl2)))) |
| 851 | 852 | ||
| 853 | (define-public rtl8821cu-linux-module | ||
| 854 | (let ((commit "a41ef7cabd1aa36fa2b4eb63a71cf719bff11b72") | ||
| 855 | (revision "1")) | ||
| 856 | (package | ||
| 857 | (name "rtl8821cu-linux-module") | ||
| 858 | (version (git-version "0.0.0" revision commit)) | ||
| 859 | (source | ||
| 860 | (origin | ||
| 861 | (method git-fetch) | ||
| 862 | (uri (git-reference | ||
| 863 | (url "https://github.com/morrownr/8821cu-20210916") | ||
| 864 | (commit commit))) | ||
| 865 | (file-name (git-file-name name version)) | ||
| 866 | (sha256 | ||
| 867 | (base32 "0fnv4gm4adnf8gbjzc2lljh2a3i111159qira3w0qm1zhyqadaq0")))) | ||
| 868 | (build-system linux-module-build-system) | ||
| 869 | (arguments | ||
| 870 | (list | ||
| 871 | #:make-flags #~(list (string-append "CC=" | ||
| 872 | #$(cc-for-target)) | ||
| 873 | (string-append "KSRC=" | ||
| 874 | (assoc-ref %build-inputs | ||
| 875 | "linux-module-builder") | ||
| 876 | "/lib/modules/build")) | ||
| 877 | #:phases #~(modify-phases %standard-phases | ||
| 878 | (replace 'build | ||
| 879 | (lambda* (#:key (make-flags '()) | ||
| 880 | (parallel-build? #t) #:allow-other-keys) | ||
| 881 | (apply invoke "make" | ||
| 882 | `(,@(if parallel-build? | ||
| 883 | `("-j" ,(number->string (parallel-job-count))) | ||
| 884 | '()) ,@make-flags))))) | ||
| 885 | #:tests? #f)) | ||
| 886 | (home-page "https://github.com/morrownr/8821cu-20210916") | ||
| 887 | (synopsis "Linux driver for Realtek USB WiFi adapters") | ||
| 888 | (description | ||
| 889 | "Linux driver for USB WiFi adapters that are based on the | ||
| 890 | Realtek RTL8811CU, RTL8821CU, RTL8821CUH and RTL8731AU chipsets. | ||
| 891 | |||
| 892 | To work, in addition to installing the driver, you need | ||
| 893 | to disable the conflicting rtw88 driver: | ||
| 894 | |||
| 895 | @example | ||
| 896 | (operating-system | ||
| 897 | ;; ... | ||
| 898 | ;; Blacklist conflicting kernel modules. | ||
| 899 | (kernel-arguments '(\"modprobe.blacklist=rtw88_8821cu\")) | ||
| 900 | (kernel-loadable-modules (list rtl8821cu-linux-module))) | ||
| 901 | @end example") | ||
| 902 | ;; Rejected by Guix beause it contains a binary blob in: | ||
| 903 | ;; hal/rtl8821c/hal8821c_fw.c | ||
| 904 | (license (nonfree | ||
| 905 | "https://github.com/morrownr/8821cu-20210916/blob/main/LICENSE"))))) | ||
| 906 | |||
| 852 | (define-public rtl8812au-aircrack-ng-linux-module | 907 | (define-public rtl8812au-aircrack-ng-linux-module |
| 853 | (let ((commit "35308f4dd73e77fa572c48867cce737449dd8548") | 908 | (let ((commit "35308f4dd73e77fa572c48867cce737449dd8548") |
| 854 | (revision "11")) | 909 | (revision "11")) |
