diff --git a/pkgs/default.nix b/pkgs/default.nix index 43f6964..3162d6f 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -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; } diff --git a/pkgs/uf2conv.nix b/pkgs/uf2conv.nix new file mode 100644 index 0000000..70f20f7 --- /dev/null +++ b/pkgs/uf2conv.nix @@ -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; + }; +}