summary refs log blame commit diff
path: root/pkgs/os-specific/linux/firmware/raspberrypi/default.nix
blob: 8a19e6b8584c5262b4dc95a2ae40ccdbfe4d220f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                     
 
                             
                                               
                                 
                         
 



                          
                                                                    




                                            
     
 

                       

                   
                    
                                                        
                                                         
                                                                                                                                     
                                                     

    
{ lib, stdenvNoCC, fetchFromGitHub }:

stdenvNoCC.mkDerivation rec {
  # NOTE: this should be updated with linux_rpi
  pname = "raspberrypi-firmware";
  version = "1.20210201";

  src = fetchFromGitHub {
    owner = "raspberrypi";
    repo = "firmware";
    rev = version;
    sha256 = "0frmsixzy9nd8nfg15jsz037522h4gq1hca666cyaf9zg2sa1i7i";
  };

  installPhase = ''
    mkdir -p $out/share/raspberrypi/boot
    cp -R boot/* $out/share/raspberrypi/boot
  '';

  dontConfigure = true;
  dontBuild = true;
  dontFixup = true;

  meta = with 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 ];
  };
}