go-ecoflow-exporter: init at 1.4.0 (#390594)

This commit is contained in:
Pol Dellaiera
2025-03-27 21:41:24 +01:00
committed by GitHub

View File

@@ -0,0 +1,36 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "go-ecoflow-exporter";
version = "1.4.0";
src = fetchFromGitHub {
owner = "tess1o";
repo = "go-ecoflow-exporter";
tag = "${finalAttrs.version}";
hash = "sha256-VCzMItYgnuDXDYdrk/ojzqUE2Fjr7KWGNnLhoQ+ZPYs=";
};
vendorHash = "sha256-UbV6V06zxXMTd0v+rDPGoMFn9X5mMCiX41g49IGnoT8=";
ldflags = [
"-s"
"-w"
];
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/tess1o/go-ecoflow-exporter/releases/tag/${finalAttrs.version}";
homepage = "https://github.com/tess1o/go-ecoflow-exporter";
description = "Ecoflow solar battery mqtt timescale, redis, prometheus metrics exporter";
license = lib.licenses.mit;
mainProgram = "go-ecoflow-exporter";
maintainers = with lib.maintainers; [ paepcke ];
};
})