nix-dotfiles/packages/apple-silicon-firmware/default.nix
2026-06-07 23:15:03 -07:00

30 lines
761 B
Nix

{ lib, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation {
pname = "apple-firmware";
version = "1.0.0";
src = fetchFromGitHub {
owner = "binary-star-systems";
repo = "apple-firmware";
rev = "72b625c4b160444def3d9f4a9c0c4704cc1a6e60";
hash = "sha256-h1kseeQnL2I7933fsSUVMjCzZgkAgiGpJVxM60qse5Q=";
};
installPhase = ''
runHook preInstall
mkdir -p "$out/firmware"
cp -r "$src/firmware/." "$out/firmware/"
runHook postInstall
'';
meta = with lib; {
description = "Apple firmware used in m-series (apple silicon) based computers";
homepage = "https://github.com/binary-star-systems/apple-firmware";
# idk what to put here:
# license = licenses.ofl;
platforms = [ "aarch64-linux" ];
};
}