2022-03-05 16:20:37 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl, unzip }:
|
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";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "1.20220118";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/raspberrypi/firmware/archive/${version}.zip";
|
|
|
|
sha256 = "sha256-98rbwKIuB7vb4MWbFCr7TYsvJB0HzPdH8Tw0+bktK/M=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
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 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|