2021-02-05 17:12:51 +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";
|
2020-12-29 15:07:52 +00:00
|
|
|
version = "1.20201201";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raspberrypi";
|
|
|
|
repo = "firmware";
|
|
|
|
rev = version;
|
2020-12-29 15:07:52 +00:00
|
|
|
sha256 = "09yha3k72yqx29rwnv2j2zm73lzc4jgmcbmcc6yrl1i07x84lx3n";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/raspberrypi/boot
|
|
|
|
cp -R boot/* $out/share/raspberrypi/boot
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
|
maintainers = with maintainers; [ dezgeg tavyc ];
|
|
|
|
};
|
|
|
|
}
|