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-05-24 13:37:59 +00:00
|
|
|
version = "1.20230405";
|
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-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-UtUd1MbsrDFxd/1C3eOAMDKPZMx+kSMFYOJP+Kc6IU8=";
|
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 ];
|
2023-05-24 13:37:59 +00:00
|
|
|
# Hash mismatch on source, mystery.
|
|
|
|
# Maybe due to https://github.com/NixOS/nix/issues/847
|
|
|
|
broken = stdenvNoCC.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|