1{ lib, stdenvNoCC, fetchFromGitHub }:
2
3stdenvNoCC.mkDerivation rec {
4 # NOTE: this should be updated with linux_rpi
5 pname = "raspberrypi-firmware";
6 version = "1.20210805";
7
8 src = fetchFromGitHub {
9 owner = "raspberrypi";
10 repo = "firmware";
11 rev = version;
12 sha256 = "1nndhjv4il42yw3pq8ni3r4nlp1m0r229fadrf4f9v51mgcg11i1";
13 };
14
15 installPhase = ''
16 mkdir -p $out/share/raspberrypi/boot
17 cp -R boot/* $out/share/raspberrypi/boot
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 };
30}