mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
007f80c1d0
Should eval cleanly, as far as -A tarball tells me. Relevant: issue #2999, issue #739
28 lines
638 B
Nix
28 lines
638 B
Nix
{stdenv, fetchurl }:
|
|
|
|
let
|
|
|
|
rev = "3ab17ac25e";
|
|
|
|
in stdenv.mkDerivation {
|
|
name = "raspberrypi-firmware-${rev}";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/raspberrypi/firmware/archive/${rev}.tar.gz";
|
|
sha256 = "080va4zz858bwwgxam8zy58gpwjpxfg7v5h1q5b4cpbzjihsxcx9";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
meta = {
|
|
description = "Firmware for the Raspberry Pi board";
|
|
homepage = https://github.com/raspberrypi;
|
|
license = stdenv.lib.licenses.unfree;
|
|
};
|
|
}
|