uefi testing

This commit is contained in:
mjallen18
2026-01-01 19:15:41 -06:00
parent c4ea874ae7
commit 3063d6b161
5 changed files with 163 additions and 4 deletions

View File

@@ -0,0 +1,38 @@
{
lib,
stdenvNoCC,
fetchzip,
}:
stdenvNoCC.mkDerivation rec {
pname = "uefi-rpi4";
version = "1.50";
src= fetchzip {
url = "https://github.com/pftf/RPi4/releases/download/v${version}/RPi4_UEFI_Firmware_v${version}.zip";
stripRoot = false;
hash = "sha256-g8046/Ox0hZgvU6u3ZfC6HMqoTME0Y7NsZD6NvUsp7w=";
};
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 = "RPI4 UEFI firmware";
homepage = "https://github.com/pftf/RPi4";
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}

View File

@@ -0,0 +1,38 @@
{
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; [ ];
};
}