mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
26 lines
707 B
Nix
26 lines
707 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";
|
|
mainProgram = "shelly_exporter";
|
|
homepage = "https://github.com/aexel90/shelly_exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [drupol];
|
|
};
|
|
}
|