2016-06-19 19:47:30 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2013-01-27 17:49:02 +00:00
|
|
|
|
2016-06-19 19:47:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "raspberrypi-firmware-${version}";
|
2018-09-13 14:15:39 +00:00
|
|
|
version = "1.20180817";
|
2013-08-27 10:03:19 +00:00
|
|
|
|
2016-06-19 19:47:30 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raspberrypi";
|
|
|
|
repo = "firmware";
|
|
|
|
rev = version;
|
2018-09-13 14:15:39 +00:00
|
|
|
sha256 = "0cjlgs7y0x7wjvbz6046017yb9r9wkjrxksvlnc6i9mgdjcryqqm";
|
2013-01-27 17:49:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/raspberrypi/boot
|
|
|
|
cp -R boot/* $out/share/raspberrypi/boot
|
|
|
|
'';
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2016-04-13 19:02:57 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-01-27 17:49:02 +00:00
|
|
|
description = "Firmware for the Raspberry Pi board";
|
2018-04-02 20:20:02 +00:00
|
|
|
homepage = https://github.com/raspberrypi/firmware;
|
|
|
|
license = licenses.unfreeRedistributableFirmware; # See https://github.com/raspberrypi/firmware/blob/master/boot/LICENCE.broadcom
|
2016-12-22 23:09:35 +00:00
|
|
|
platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ];
|
2018-07-22 19:50:19 +00:00
|
|
|
maintainers = with maintainers; [ dezgeg tavyc ];
|
2013-01-27 17:49:02 +00:00
|
|
|
};
|
|
|
|
}
|