about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/monitoring/prometheus/keylight-exporter.nix
blob: 59dcd621ca728db3aa8a0328bc524069c539f854 (plain) (blame)
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
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:

buildGoModule rec {
  pname = "keylight-exporter";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "mdlayher";
    repo = "keylight_exporter";
    rev = "v${version}";
    sha256 = "sha256-yI1mmEb5SP2lbP37CpPxYITJL/nvd/mIwxB0RIQRe4I=";
  };

  vendorHash = "sha256-0QSsGgokErRNIHQIjZQn5t1dvc306uZck8uLSgjcrck=";

  passthru.tests = { inherit (nixosTests.prometheus-exporters) keylight; };

  meta = with lib; {
    homepage = "https://github.com/mdlayher/keylight_exporter";
    description = "Prometheus exporter for Elgato Key Light devices";
    mainProgram = "keylight_exporter";
    license = licenses.mit;
    maintainers = with maintainers; [ mdlayher ];
  };
}