btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / mt / mtr-exporter / package.nix
blob9c7c9bec41ea99b40350d07f0293ab587f80f427
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "mtr-exporter";
5   version = "0.3.0";
7   src = fetchFromGitHub {
8     owner = "mgumz";
9     repo = "mtr-exporter";
10     rev = version;
11     hash = "sha256-vVYdIfogXHixf1/7+uGKSxbqVmr9NeCUuNVYE07HoBw=";
12   };
14   vendorHash = null;
16   meta = with lib; {
17     description = ''
18       Mtr-exporter periodically executes mtr to a given host and
19       provides the measured results as prometheus metrics.
20     '';
21     homepage = "https://github.com/mgumz/mtr-exporter";
22     license = licenses.bsd3;
23     maintainers = with maintainers; [ jakubgs ];
24     mainProgram = "mtr-exporter";
25   };