2020-06-18 12:48:40 +02:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
2020-06-08 16:23:44 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "keylight-exporter";
|
|
|
|
version = "0.1.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdlayher";
|
|
|
|
repo = "keylight_exporter";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "141npawcnxj3sz2xqsnyf06r4x1azk3g55941i8gjr7pwcla34r7";
|
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "0w065ls8dp687jmps4xdffcarss1wyls14dngr43g58xjw6519gb";
|
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-18 12:48:40 +02:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) keylight; };
|
|
|
|
|
2020-06-08 16:23:44 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/mdlayher/keylight_exporter";
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "Prometheus exporter for Elgato Key Light devices";
|
2020-06-08 16:23:44 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mdlayher ];
|
|
|
|
};
|
|
|
|
}
|