Skip to content

Commit

Permalink
Added uf2conv tool
Browse files Browse the repository at this point in the history
  • Loading branch information
HU90m committed May 17, 2024
1 parent 7f37e0d commit e19adf6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

container-hotplug = pkgs.callPackage ./container-hotplug {};
surfer = pkgs.callPackage ./surfer/default.nix {};
uf2conv = pkgs.callPackage ./uf2conv.nix {};

riscv64-gcc = pkgs.pkgsCross.riscv64.buildPackages.gcc;
}
Expand Down
23 changes: 23 additions & 0 deletions pkgs/uf2conv.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright lowRISC contributors.
#
# SPDX-License-Identifier: MIT
{
python3Packages,
fetchFromGitHub,
lib,
}:
python3Packages.buildPythonPackage rec {
name = "uf2conv";
version = "0.0.1";
src = fetchFromGitHub {
owner = "makerdiary";
repo = "uf2utils";
rev = "61d9f3ff4913461b9813e666cce62b022652144a";
hash = "sha256-3mXOvzkHmTV0k8qoy2k5TGBFX2l9EgPuaZPLyTdBHzQ=";
};
meta = {
description = "uf2conv is an open source Python based tool for packing and unpacking UF2 files.";
homepage = "https://github.com/makerdiary/uf2utils";
license = lib.licenses.mit;
};
}

0 comments on commit e19adf6

Please sign in to comment.