mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
9a1edefd45
Signed-off-by: Matt Layher <mdlayher@gmail.com>
25 lines
698 B
Nix
25 lines
698 B
Nix
{ 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=";
|
|
};
|
|
|
|
vendorSha256 = "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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mdlayher ];
|
|
};
|
|
}
|