{ lib, stdenvNoCC, fetchzip, }: stdenvNoCC.mkDerivation rec { pname = "uefi-rpi5"; version = "0.3"; src= fetchzip { url = "https://github.com/worproject/rpi5-uefi/releases/download/v${version}/RPi5_UEFI_Release_v${version}.zip"; stripRoot = false; hash = "sha256-bjEvq7KlEFANnFVL0LyexXEeoXj7rHGnwQpq09PhIb0="; }; sourceRoot = "."; dontBuild = true; # Firmware blobs do not need fixing and should not be modified dontFixup = true; installPhase = '' runHook preInstall mkdir -p "$out/firmware" cp -rv "${src}" "$out/firmware" runHook postInstall ''; meta = with lib; { description = "RPI5 UEFI firmware"; homepage = "https://github.com/pftf/RPi4"; platforms = platforms.linux; maintainers = with maintainers; [ ]; }; }