go-ecoflow-exporter: init at 1.4.0 (#390594)
This commit is contained in:
36
pkgs/by-name/go/go-ecoflow-exporter/package.nix
Normal file
36
pkgs/by-name/go/go-ecoflow-exporter/package.nix
Normal 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 ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user