1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
mobile-nixos/devices/pine64-pinephone/firmware/default.nix
Johnny Kirchman a047bdda03
pinephone-braveheart: Generalize Pinephone devices
* Remove braveheart specific naming
2020-10-06 21:27:01 -04:00

19 lines
497 B
Nix

{ lib
, runCommandNoCC
, fetchFromGitHub
}:
# The minimum set of firmware files required for the device.
runCommandNoCC "pine64-pinephone-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/
''