2022-04-27 09:35:20 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-29 15:07:52 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
# NOTE: this should be updated with linux_rpi
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "raspberrypi-firmware";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "1.20230106";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raspberrypi";
|
|
|
|
repo = "firmware";
|
|
|
|
rev = version;
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha512-iKUR16RipN8BGAmXteTJUzd/P+m5gnbWCJ28LEzYfOTJnGSal63zI7LDQg/HIKXx9wMTARQKObeKn+7ioS4QkA==";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-03-05 16:20:37 +00:00
|
|
|
mkdir -p $out/share/raspberrypi/
|
|
|
|
mv boot "$out/share/raspberrypi/"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-12-29 15:07:52 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
2020-10-11 12:50:04 +00:00
|
|
|
dontFixup = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
2021-04-25 03:57:28 +00:00
|
|
|
maintainers = with maintainers; [ dezgeg ];
|
2022-04-27 09:35:20 +00:00
|
|
|
broken = stdenvNoCC.isDarwin; # Hash mismatch on source, mystery.
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|