29 lines
807 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
2020-12-13 22:57:15 -05:00
# NOTE: this should be updated with linux_rpi
pname = "raspberrypi-firmware";
2020-12-13 22:57:15 -05:00
version = "1.20201201";
src = fetchFromGitHub {
owner = "raspberrypi";
repo = "firmware";
rev = version;
2020-12-13 22:57:15 -05:00
sha256 = "09yha3k72yqx29rwnv2j2zm73lzc4jgmcbmcc6yrl1i07x84lx3n";
};
installPhase = ''
mkdir -p $out/share/raspberrypi/boot
cp -R boot/* $out/share/raspberrypi/boot
'';
dontFixup = true;
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 ];
};
}