From 1aac5f56a617b5be4ca579b2106c8113143fe515 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Sun, 21 Aug 2022 23:30:06 +0800 Subject: nongnu: Add rtl8821ce-linux-module. This package is removed by upstream due to blobs. See https://git.savannah.gnu.org/cgit/guix.git/commit/?id=b8f2eb286ec52c97048e23d326d94ae5772797e8. * nongnu/packages/linux.scm(rtl8821ce-linux-module): New variable. Signed-off-by: Jonathan Brielmaier --- nongnu/packages/linux.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/nongnu/packages/linux.scm b/nongnu/packages/linux.scm index a0b0e53..3c851b5 100644 --- a/nongnu/packages/linux.scm +++ b/nongnu/packages/linux.scm @@ -4,6 +4,9 @@ ;;; Copyright © 2019 Timotej Lazar ;;; Copyright © 2020, 2021 James Smith ;;; Copyright © 2020, 2021, 2022 Jonathan Brielmaier +;;; Copyright © 2020 Michael Rohleder +;;; Copyright © 2020, 2021 Tobias Geerinckx-Rice +;;; Copyright © 2020, 2021, 2022 Zhu Zihao ;;; Copyright © 2021 Mathieu Othacehe ;;; Copyright © 2021 Brice Waegeneire ;;; Copyright © 2021 Risto Stevcev @@ -12,6 +15,7 @@ ;;; Copyright © 2022 John Kehayias ;;; Copyright © 2022 Petr Hodina ;;; Copyright © 2022 Remco van 't Veer + ;;; ;;; This program is free software: you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by @@ -858,3 +862,44 @@ audio DSPs that can be found on the Intel Skylake architecture. This firmware can be built from source but need to be signed by Intel in order to be loaded by Linux.") (license bsd-3))) + +(define-public rtl8821ce-linux-module + (let ((commit "be733dc86781c68571650b395dd0fa6b53c0a039") + (revision "6")) + (package + (name "rtl8821ce-linux-module") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tomaspinho/rtl8821ce") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "00sd7s0582b9jcpfgy0fw6418dwg700mfyizkfr22jf2x140iy70")))) + (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/tomaspinho/rtl8821ce") + (synopsis "Linux driver for Realtek RTL8821CE wireless network adapters") + (description "This is Realtek's RTL8821CE Linux driver for wireless +network adapters.") + (license license:gpl2)))) -- cgit v1.2.3