blob: 6ba9adfd6de14c5579444da3dba2e5fb74ce2021 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 ];
};
})
|