1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
4 pname = "keylight-exporter";
7 src = fetchFromGitHub {
9 repo = "keylight_exporter";
11 sha256 = "sha256-yI1mmEb5SP2lbP37CpPxYITJL/nvd/mIwxB0RIQRe4I=";
14 vendorHash = "sha256-0QSsGgokErRNIHQIjZQn5t1dvc306uZck8uLSgjcrck=";
16 passthru.tests = { inherit (nixosTests.prometheus-exporters) keylight; };
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 ];