add t2-firmware support

This commit is contained in:
do butterflies cry? 2026-03-26 16:28:53 +10:00
parent 1b7b1e66f0
commit 468f399965
Signed by untrusted user: cry
GPG key ID: F68745A836CA0412
8 changed files with 75 additions and 6 deletions

View file

@ -0,0 +1,29 @@
{
stdenvNoCC,
fetchurl,
lib,
}:
stdenvNoCC.mkDerivation (final: {
pname = "get-apple-firmware";
version = "360156db52c013dbdac0ef9d6e2cebbca46b955b";
src = fetchurl {
url = "https://raw.github.com/t2linux/wiki/${final.version}/docs/tools/firmware.sh";
hash = "sha256-IL7omNdXROG402N2K9JfweretTnQujY67wKKC8JgxBo=";
};
dontUnpack = true;
buildPhase = ''
mkdir -p $out/bin
cp ${final.src} $out/bin/get-apple-firmware
chmod +x $out/bin/get-apple-firmware
'';
meta = {
description = "A script to get needed firmware for T2linux devices";
homepage = "https://t2linux.org";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [soopyc];
mainProgram = "get-apple-firmware";
};
})