1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-14 18:21:41 +03:00

pine64-pinephone-braveheart: Add firmware package

The firmware is limited to bluetooth only, nothing else (for now)
requires a discrete firmware file.

It looks like the touchscreen can get one, but it is not required, and
seemingly no one provides one.
This commit is contained in:
Samuel Dionne-Riel 2020-06-11 19:11:17 -04:00
parent f68c78cacb
commit d41b3750fd
2 changed files with 21 additions and 0 deletions

View File

@ -29,6 +29,9 @@
];
mobile.system.type = "u-boot";
mobile.device.firmware = pkgs.callPackage ./firmware {};
mobile.quirks.u-boot.package = pkgs.callPackage ./u-boot {};
mobile.quirks.u-boot.additionalCommands = ''
# Yellow LED.

View File

@ -0,0 +1,18 @@
{ lib
, runCommandNoCC
, fetchFromGitHub
}:
# The minimum set of firmware files required for the device.
runCommandNoCC "pine64-pinephone-braveheart-firmware" {
src = fetchFromGitHub {
owner = "anarsoul";
repo = "rtl8723bt-firmware";
rev = "28ad3584927c0fe1f321176f73a7fd42cccec56f";
sha256 = "0ccdifninnqpvrqg4f4b5vgy3d5g7n6xx6qny7by9aramsd94l17";
};
meta.license = lib.licenses.unfreeRedistributable;
} ''
mkdir -p "$out/lib/firmware"
cp -vrf "$src/rtl_bt" $out/lib/firmware/
''