Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / monitoring / prometheus / keylight-exporter.nix
blob59dcd621ca728db3aa8a0328bc524069c539f854
1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
3 buildGoModule rec {
4   pname = "keylight-exporter";
5   version = "0.2.0";
7   src = fetchFromGitHub {
8     owner = "mdlayher";
9     repo = "keylight_exporter";
10     rev = "v${version}";
11     sha256 = "sha256-yI1mmEb5SP2lbP37CpPxYITJL/nvd/mIwxB0RIQRe4I=";
12   };
14   vendorHash = "sha256-0QSsGgokErRNIHQIjZQn5t1dvc306uZck8uLSgjcrck=";
16   passthru.tests = { inherit (nixosTests.prometheus-exporters) keylight; };
18   meta = with lib; {
19     homepage = "https://github.com/mdlayher/keylight_exporter";
20     description = "Prometheus exporter for Elgato Key Light devices";
21     mainProgram = "keylight_exporter";
22     license = licenses.mit;
23     maintainers = with maintainers; [ mdlayher ];
24   };