diff options
| author | Morgan Smith <Morgan.J.Smith@outlook.com> | 2023-01-10 17:06:00 -0500 |
|---|---|---|
| committer | Jonathan Brielmaier <jonathan.brielmaier@web.de> | 2023-01-14 12:12:10 +0100 |
| commit | c52224b54d80c72cf08508750180b7cf833cd244 (patch) | |
| tree | 04b2aabcff6f143d4a3ef3267eed1320a9ba214b | |
| parent | f4ee1e3793f210a90c704d740d846f09b58083b6 (diff) | |
gnu: Add r8168-linux-module.
* nongnu/packages/linux.scm (r8168-linux-module): New variable.
Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
| -rw-r--r-- | nongnu/packages/linux.scm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nongnu/packages/linux.scm b/nongnu/packages/linux.scm index 6713390..f826d5f 100644 --- a/nongnu/packages/linux.scm +++ b/nongnu/packages/linux.scm | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | ;;; Copyright © 2022 Remco van 't Veer <remco@remworks.net> | 18 | ;;; Copyright © 2022 Remco van 't Veer <remco@remworks.net> |
| 19 | ;;; Copyright © 2022 Simen Endsjø <simendsjo@gmail.com> | 19 | ;;; Copyright © 2022 Simen Endsjø <simendsjo@gmail.com> |
| 20 | ;;; Copyright © 2022 Leo Famulari <leo@famulari.name> | 20 | ;;; Copyright © 2022 Leo Famulari <leo@famulari.name> |
| 21 | ;;; Copyright © 2023 Morgan Smith <Morgan.J.Smith@outlook.com> | ||
| 21 | 22 | ||
| 22 | (define-module (nongnu packages linux) | 23 | (define-module (nongnu packages linux) |
| 23 | #:use-module (gnu packages) | 24 | #:use-module (gnu packages) |
| @@ -663,6 +664,39 @@ RTL8812AU, RTL8821AU, and RTL8814AU chips.") | |||
| 663 | ;; hal/rtl8812a/hal8812a_fw.c | 664 | ;; hal/rtl8812a/hal8812a_fw.c |
| 664 | (license gpl2+)))) | 665 | (license gpl2+)))) |
| 665 | 666 | ||
| 667 | (define-public r8168-linux-module | ||
| 668 | (package | ||
| 669 | (name "r8168-linux-module") | ||
| 670 | (version "8.051.02") | ||
| 671 | (source (origin | ||
| 672 | (method git-fetch) | ||
| 673 | (uri (git-reference | ||
| 674 | (url "https://github.com/mtorromeo/r8168") | ||
| 675 | (commit version))) | ||
| 676 | (file-name (git-file-name name version)) | ||
| 677 | (sha256 | ||
| 678 | (base32 | ||
| 679 | "16mpr0np6xbmzdnwg4p3q6yli2gh032k98g4vplya33hrn50vh52")))) | ||
| 680 | (arguments | ||
| 681 | (list #:tests? #f | ||
| 682 | #:phases #~(modify-phases %standard-phases | ||
| 683 | (add-after 'unpack 'enter-src-directory | ||
| 684 | (lambda _ | ||
| 685 | (chdir "src"))) | ||
| 686 | ;; Needed to compile module for linux >= 6.1 | ||
| 687 | (add-before 'build 'fix-build | ||
| 688 | (lambda _ | ||
| 689 | (substitute* "r8168.h" | ||
| 690 | (("netif_napi_add\\(ndev, &priv->napi, function, weight\\)") | ||
| 691 | "netif_napi_add(ndev, &priv->napi, function)"))))))) | ||
| 692 | (build-system linux-module-build-system) | ||
| 693 | (home-page "https://github.com/mtorromeo/r8168") | ||
| 694 | (synopsis "Linux driver for Realtek PCIe network adapters") | ||
| 695 | (description | ||
| 696 | "Linux driver for Realtek PCIe network adapters. If the r8169 kernel module is | ||
| 697 | giving you trouble, you can try this module.") | ||
| 698 | (license gpl2))) | ||
| 699 | |||
| 666 | (define broadcom-sta-version "6.30.223.271") | 700 | (define broadcom-sta-version "6.30.223.271") |
| 667 | 701 | ||
| 668 | (define broadcom-sta-x86_64-source | 702 | (define broadcom-sta-x86_64-source |
