nixpkgs/pkgs/os-specific/linux/firmware/raspberrypi/default.nix
2018-12-17 02:01:13 +00:00

26 lines
813 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "raspberrypi-firmware-${version}";
version = "1.20181112";
src = fetchFromGitHub {
owner = "raspberrypi";
repo = "firmware";
rev = version;
sha256 = "0jjxr8k8vdziynj8101ikcc9hmm61r2la51nrx6zv8a7j9a4m5zg";
};
installPhase = ''
mkdir -p $out/share/raspberrypi/boot
cp -R boot/* $out/share/raspberrypi/boot
'';
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
platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ];
maintainers = with maintainers; [ dezgeg tavyc ];
};
}