2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2020-06-08 14:23:44 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "keylight-exporter";
|
2022-11-25 13:11:41 +00:00
|
|
|
version = "0.2.0";
|
2020-06-08 14:23:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdlayher";
|
|
|
|
repo = "keylight_exporter";
|
|
|
|
rev = "v${version}";
|
2022-11-25 13:11:41 +00:00
|
|
|
sha256 = "sha256-yI1mmEb5SP2lbP37CpPxYITJL/nvd/mIwxB0RIQRe4I=";
|
2020-06-08 14:23:44 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-0QSsGgokErRNIHQIjZQn5t1dvc306uZck8uLSgjcrck=";
|
2020-08-04 00:26:27 +00:00
|
|
|
|
2020-06-18 10:48:40 +00:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) keylight; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-08 14:23:44 +00:00
|
|
|
homepage = "https://github.com/mdlayher/keylight_exporter";
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Prometheus exporter for Elgato Key Light devices";
|
2020-06-08 14:23:44 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mdlayher ];
|
|
|
|
};
|
|
|
|
}
|