diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-02-02 00:02:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 00:02:33 +0000 |
commit | 2cc6469b1d9d678a317acccc84a584b067c915a1 (patch) | |
tree | 85b629154fc37bce458f2e7dca3a7faf5a0a8096 /pkgs/servers/monitoring | |
parent | 3aa7b72b5e1174ba68d38fc466b1743118be265c (diff) | |
parent | 93f0dfda5b66c6f9ba986dcc644e6dc9145e59a0 (diff) |
Merge master into staging-next
Diffstat (limited to 'pkgs/servers/monitoring')
-rw-r--r-- | pkgs/servers/monitoring/prometheus/shelly-exporter.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/shelly-exporter.nix b/pkgs/servers/monitoring/prometheus/shelly-exporter.nix new file mode 100644 index 0000000000000..ee8002e661406 --- /dev/null +++ b/pkgs/servers/monitoring/prometheus/shelly-exporter.nix @@ -0,0 +1,24 @@ +{ lib, buildGoModule, fetchFromGitHub, nixosTests }: + +buildGoModule rec { + pname = "shelly_exporter"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "aexel90"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-L0TuBDq5eEahQvzqd1WuvmXuQbbblCM+Nvj15IybnVo="; + }; + + vendorSha256 = "sha256-BCrge2xLT4b4wpYA+zcsH64a/nfV8+HeZF7L49p2gEw="; + + passthru.tests = { inherit (nixosTests.prometheus-exporters) shelly; }; + + meta = with lib; { + description = "Shelly humidity sensor exporter for prometheus"; + homepage = "https://github.com/aexel90/shelly_exporter"; + license = licenses.asl20; + maintainers = with maintainers; [drupol]; + }; +} |