2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "raspberrypi-firmware";
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "1.20201022";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raspberrypi";
|
|
|
|
repo = "firmware";
|
|
|
|
rev = version;
|
2020-11-03 02:18:15 +00:00
|
|
|
sha256 = "0j5m50cmmr11m3h8kk89j1pqkdqr7mzdzg04ayiqvfhvy32qqlg8";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/raspberrypi/boot
|
|
|
|
cp -R boot/* $out/share/raspberrypi/boot
|
|
|
|
'';
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
dontFixup = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with stdenv.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 tavyc ];
|
|
|
|
};
|
|
|
|
}
|