Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
27 lines
715 B
Nix
27 lines
715 B
Nix
{ lib, buildGo122Module, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGo122Module rec {
|
|
pname = "dnsmasq_exporter";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "dnsmasq_exporter";
|
|
rev = "v${version}";
|
|
hash = "sha256-2sOOJWEEseWwozIyZ7oes400rBjlxIrOOtkP3rSNFXo=";
|
|
};
|
|
|
|
vendorHash = "sha256-oD68TCNJKwjY3iwE/pUosMIMGOhsWj9cHC/+hq3xxI4=";
|
|
|
|
doCheck = false;
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) dnsmasq; };
|
|
|
|
meta = with lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "Dnsmasq exporter for Prometheus";
|
|
mainProgram = "dnsmasq_exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ willibutz globin ];
|
|
};
|
|
}
|