summaryrefslogtreecommitdiff
path: root/pbp-wifi.scm
blob: d8a285db17b7cdb516658e4330a9523cd7452976 (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
35
(define-module (pbp-wifi)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix git-download)
  #:use-module (guix utils)
  #:use-module (guix build-system copy)
  #:use-module (gnu packages))


(define-public pbp-wifi
  (let ((commit "056d5f6776e515f90bbbbead1be06857aaef17d0")
        (revision  "1"))
    (package
      (name "pbp-wifi")
      (version (git-version "0.0.1" revision  commit))
      (source (origin
                (method git-fetch)
                (uri (git-reference
                       (url "https://gitlab.manjaro.org/manjaro-arm/packages/community/ap6256-firmware.git")
                       (commit commit)))
                (sha256 (base32 "1s52rpikw0gysph5lq7vr6b3nsxczg4ikgil9zdgmcknjnxk9kbv"))))
      (build-system copy-build-system)

      (arguments
        '(#:install-plan
          '(("BCM4345C5.hcd"                 "/lib/firmware/brcm/")
            ("brcmfmac43456-sdio.AP6256.txt" "/lib/firmware/brcm/brcmfmac43456-sdio.pine64,pinebook-pro.txt")
            ("fw_bcm43456c5_ag.bin"          "/lib/firmware/brcm/brcmfmac43456-sdio.bin")
            ("brcmfmac43456-sdio.clm_blob"   "/lib/firmware/brcm/brcmfmac43456-sdio.clm_blob"))))

      (synopsis "Pinebook Pro privative Wifi firmware package")
      (description "Firmware for Pinebook Pro AP6256 Wifi module.")
      (home-page  "https://gitlab.manjaro.org/manjaro-arm/packages/community/ap6256-firmware.git")
      (supported-systems '("aarch64-linux"))
      (license (license:non-copyleft "https://gitlab.manjaro.org/manjaro-arm/packages/community/ap6256-firmware/-/tree/master/")))))