about summary refs log tree commit diff
path: root/pkgs/tools/misc/blflash
diff options
context:
space:
mode:
author0x4A6F <0x4A6F@users.noreply.github.com>2021-02-01 19:26:57 +0000
committer0x4A6F <0x4A6F@users.noreply.github.com>2021-02-22 22:47:26 +0000
commit25b39e3fc7dab3a3da33e3c3e04cefb12b718178 (patch)
treedc09e8c7ffaa714ca10a9574457e30f43bf578f6 /pkgs/tools/misc/blflash
parentbbc0f1cbb31ae4c60996063d0db8a9bd1f86e602 (diff)
blflash: init at 0.3.2
Diffstat (limited to 'pkgs/tools/misc/blflash')
-rw-r--r--pkgs/tools/misc/blflash/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/tools/misc/blflash/default.nix b/pkgs/tools/misc/blflash/default.nix
new file mode 100644
index 0000000000000..bf09fc8d0a7cc
--- /dev/null
+++ b/pkgs/tools/misc/blflash/default.nix
@@ -0,0 +1,22 @@
+{ lib, fetchFromGitHub, rustPlatform }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "blflash";
+  version = "0.3.2";
+
+  src = fetchFromGitHub {
+    owner = "spacemeowx2";
+    repo = "blflash";
+    rev = "v${version}";
+    sha256 = "sha256-+2ncK1ibtQwlBREw4Yiqj4vFvAcZqjkoTBtBdAAUoRg=";
+  };
+
+  cargoSha256 = "sha256-tt9jfcoEw/HQ0/qU4lhbqKtIw/lthDTcyf/3HYQNPEY=";
+
+  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 ];
+  };
+}