nixpkgs/pkgs/servers/monitoring/prometheus/shelly-exporter.nix
Fabián Heredia Montiel ff323ed355 treewide: vendorSha256 → vendorHash
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
2023-09-13 01:03:44 -06:00

24 lines
670 B
Nix

{ 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=";
};
vendorHash = "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];
};
}