1{
2 lib,
3 stdenvNoCC,
4 fetchFromGitHub,
5}:
6
7stdenvNoCC.mkDerivation rec {
8 # NOTE: this should be updated with linux_rpi
9 pname = "raspberrypi-firmware";
10 version = "1.20250430";
11
12 src = fetchFromGitHub {
13 owner = "raspberrypi";
14 repo = "firmware";
15 rev = version;
16 hash = "sha256-U41EgEDny1R+JFktSC/3CE+2Qi7GJludj929ft49Nm0=";
17 };
18
19 installPhase = ''
20 mkdir -p $out/share/raspberrypi/
21 mv boot "$out/share/raspberrypi/"
22 '';
23
24 dontConfigure = true;
25 dontBuild = true;
26 dontFixup = true;
27
28 meta = with lib; {
29 description = "Firmware for the Raspberry Pi board";
30 homepage = "https://github.com/raspberrypi/firmware";
31 license = licenses.unfreeRedistributableFirmware; # See https://github.com/raspberrypi/firmware/blob/master/boot/LICENCE.broadcom
32 maintainers = with maintainers; [ dezgeg ];
33 # Hash mismatch on source, mystery.
34 # Maybe due to https://github.com/NixOS/nix/issues/847
35 broken = stdenvNoCC.hostPlatform.isDarwin;
36 };
37}