nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "blflash";
9 version = "0.3.5";
10
11 src = fetchFromGitHub {
12 owner = "spacemeowx2";
13 repo = "blflash";
14 rev = "v${version}";
15 hash = "sha256-lv5bUbq5AnZVeR8V0A4pamY9ZIQAhLmvZEr+CRMPcj0=";
16 };
17
18 cargoHash = "sha256-9CTq/NFhc/pJ3CyvhidQxbWx5iHFbOZDPm3g7cz6uRU=";
19
20 meta = with lib; {
21 description = "Bl602 serial flasher written in Rust";
22 homepage = "https://github.com/spacemeowx2/blflash";
23 license = with licenses; [
24 mit
25 asl20
26 ];
27 maintainers = with maintainers; [ _0x4A6F ];
28 mainProgram = "blflash";
29 };
30}