at 23.05-pre 31 lines 907 B view raw
1{ lib, stdenvNoCC, fetchFromGitHub }: 2 3stdenvNoCC.mkDerivation rec { 4 # NOTE: this should be updated with linux_rpi 5 pname = "raspberrypi-firmware"; 6 version = "1.20221028"; 7 8 src = fetchFromGitHub { 9 owner = "raspberrypi"; 10 repo = "firmware"; 11 rev = version; 12 hash = "sha256-GgPAWFCrLrrLiUDM+pt3VV6+IvCljMN9nh7L84vTQJs="; 13 }; 14 15 installPhase = '' 16 mkdir -p $out/share/raspberrypi/ 17 mv boot "$out/share/raspberrypi/" 18 ''; 19 20 dontConfigure = true; 21 dontBuild = true; 22 dontFixup = true; 23 24 meta = with lib; { 25 description = "Firmware for the Raspberry Pi board"; 26 homepage = "https://github.com/raspberrypi/firmware"; 27 license = licenses.unfreeRedistributableFirmware; # See https://github.com/raspberrypi/firmware/blob/master/boot/LICENCE.broadcom 28 maintainers = with maintainers; [ dezgeg ]; 29 broken = stdenvNoCC.isDarwin; # Hash mismatch on source, mystery. 30 }; 31}