Skip to content

Commit

Permalink
mtk_uartboot: init at 0.1.1
Browse files Browse the repository at this point in the history
Co-authored-by: Yohann Boniface <[email protected]>
  • Loading branch information
MatthewCroughan and Sigmanificient committed Aug 9, 2024
1 parent 04b5441 commit 8b25590
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkgs/by-name/mt/mtk_uartboot/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
darwin,
}:

rustPlatform.buildRustPackage rec {
pname = "mtk-uartboot";
version = "0.1.1";

src = fetchFromGitHub {
owner = "981213";
repo = "mtk_uartboot";
rev = "refs/v${version}";
hash = "sha256-mwwm2TVBfOEqvQIP0Vl4Q2SkcZxX1JP7rShmjaY+pWE=";
};

cargoHash = "sha256-At+HkvHcn6kAkSxBqFlaxUTZ7Xuy2lARMFQ2i6uybSk=";

buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.IOKit ];

meta = with lib; {
description = "third-party tool to load and execute binaries over UART for Mediatek SoCs";
homepage = "https://github.com/981213/mtk_uartboot";
license = licenses.agpl3Only;
maintainers = with maintainers; [ matthewcroughan ];
mainProgram = "mtk_uartboot";
};
}

0 comments on commit 8b25590

Please sign in to comment.