aboutsummaryrefslogtreecommitdiff
path: root/tw/packages/firmware.scm
blob: 2c408390a4233b4a9905cf221a5c0ff45fce30a9 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(define-module (tw packages firmware)
  #:use-module (gnu packages admin)
  #:use-module (gnu packages linux)
  #:use-module ((guix utils)
                #:select (substitute-keyword-arguments))
  #:use-module (guix packages)
  #:use-module ((nongnu packages linux)
                #:prefix nongnu:)
  #:use-module ((nonguix licenses)
                #:prefix nongnu:))

(define select-firmware
  (@@ (nongnu packages linux) select-firmware))

(define-public mt7922-firmware
  (package
    (inherit nongnu:linux-firmware)
    (name "mt7922-firmware")
    (arguments
     `(#:license-file-regexp "LICENSE.mediatek"
       ,@(substitute-keyword-arguments (package-arguments nongnu:linux-firmware)
           ((#:phases phases)
            `(modify-phases ,phases
               (add-after 'unpack 'select-firmware
                 ,(select-firmware "^mediatek/.*7922.*")))))))
    (home-page "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek")
    (synopsis "Nonfree firmware for Mediatek MT7922 (AMD RZ616) wireless chips")
    (description "Nonfree firmware for AMD RZ616 Wi-Fi and Bluetooth chips.
These are actually Mediatek MT7922 chips.")
    (license
     (nongnu:nonfree
      (string-append
       "https://git.kernel.org/pub/scm/linux/kernel/git/firmware"
       "/linux-firmware.git/plain/LICENSE.mediatek")))))