0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
31 lines
951 B
Nix
31 lines
951 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
# NOTE: this should be updated with linux_rpi
|
|
pname = "raspberrypi-firmware";
|
|
version = "1.20230106";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "raspberrypi";
|
|
repo = "firmware";
|
|
rev = version;
|
|
hash = "sha512-iKUR16RipN8BGAmXteTJUzd/P+m5gnbWCJ28LEzYfOTJnGSal63zI7LDQg/HIKXx9wMTARQKObeKn+7ioS4QkA==";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/raspberrypi/
|
|
mv boot "$out/share/raspberrypi/"
|
|
'';
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
dontFixup = true;
|
|
|
|
meta = with lib; {
|
|
description = "Firmware for the Raspberry Pi board";
|
|
homepage = "https://github.com/raspberrypi/firmware";
|
|
license = licenses.unfreeRedistributableFirmware; # See https://github.com/raspberrypi/firmware/blob/master/boot/LICENCE.broadcom
|
|
maintainers = with maintainers; [ dezgeg ];
|
|
broken = stdenvNoCC.isDarwin; # Hash mismatch on source, mystery.
|
|
};
|
|
}
|