2021-03-09 03:18:52 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "blflash";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.3.5";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "spacemeowx2";
|
|
|
|
repo = "blflash";
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-lv5bUbq5AnZVeR8V0A4pamY9ZIQAhLmvZEr+CRMPcj0=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
cargoHash = "sha256-NRBW2rGrtEmmxONTpCM1D+o5HtnLjp175Sq9+aCp7ZE=";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An bl602 serial flasher written in Rust";
|
|
|
|
homepage = "https://github.com/spacemeowx2/blflash";
|
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
maintainers = with maintainers; [ _0x4A6F ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "blflash";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
}
|