From 0dd411dc05ecf646881a25493dad8c9d042f8abd Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Tue, 7 Jul 2026 01:45:09 +0100 Subject: [PATCH] rkmon: init at 0.3.1 --- pkgs/by-name/rk/rkmon/package.nix | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/rk/rkmon/package.nix diff --git a/pkgs/by-name/rk/rkmon/package.nix b/pkgs/by-name/rk/rkmon/package.nix new file mode 100644 index 000000000000..99f3f4609b4a --- /dev/null +++ b/pkgs/by-name/rk/rkmon/package.nix @@ -0,0 +1,41 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + nix-update-script, +}: + +buildGoModule (finalAttrs: { + pname = "rkmon"; + version = "0.3.1"; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "isac322"; + repo = "rkmon"; + tag = "v${finalAttrs.version}"; + hash = "sha256-LFvv/CvZxtulGQdFVU7XVDitzgQwkOIFF9mfZBAUe1Y="; + }; + + vendorHash = "sha256-f9+5iVGvkLuFHqDdeSvx4Vu6paVsRS0EZxKB9a3sr/I="; + + ldflags = [ + "-s" + "-w" + "-extldflags" + "-static" + "-X=main.Version=${finalAttrs.version}" + "-X=main.GitSHA=${finalAttrs.src.rev}" + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Real-time hardware monitor TUI for Rockchip RK3588 SBCs. Like htop, but for the GPU, NPU, VPU, RGA, and thermal zones of your Rock 5B+ / RK3588 board"; + homepage = "https://github.com/isac322/rkmon"; + changelog = "https://github.com/isac322/rkmon/blob/${finalAttrs.src.rev}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ matthewcroughan ]; + mainProgram = "rkmon"; + }; +})