2013-01-27 17:49:02 +00:00
|
|
|
{stdenv, fetchurl }:
|
|
|
|
|
2013-08-27 11:03:19 +01:00
|
|
|
let
|
|
|
|
|
2015-05-09 18:05:24 +01:00
|
|
|
rev = "b7bbd3d1683e9f3bb11ef86b952adee71e83862f";
|
2013-08-27 11:03:19 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "raspberrypi-firmware-${rev}";
|
2013-01-27 17:49:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-08-27 11:03:19 +01:00
|
|
|
url = "https://github.com/raspberrypi/firmware/archive/${rev}.tar.gz";
|
2015-05-09 18:05:24 +01:00
|
|
|
sha256 = "16wpwa1y3imd3la477b3rfbfypssvlh0zjdag3hgkm33aysizijp";
|
2013-01-27 17:49:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/raspberrypi/boot
|
|
|
|
cp -R boot/* $out/share/raspberrypi/boot
|
|
|
|
cp -R hardfp/opt/vc/* $out
|
|
|
|
cp opt/vc/LICENCE $out/share/raspberrypi
|
|
|
|
'';
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2013-01-27 17:49:02 +00:00
|
|
|
meta = {
|
|
|
|
description = "Firmware for the Raspberry Pi board";
|
|
|
|
homepage = https://github.com/raspberrypi;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.unfree;
|
2013-01-27 17:49:02 +00:00
|
|
|
};
|
|
|
|
}
|