2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2020-03-05 12:44:55 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mikrotik-exporter-unstable";
|
|
|
|
version = "2020-02-10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nshttpd";
|
|
|
|
repo = "mikrotik-exporter";
|
|
|
|
sha256 = "193zh06rqp9ybsnkxwmv7l4p2h2xisw4f01jjirshsb784j44bh6";
|
|
|
|
rev = "3b33400d24abcfdc07dc31c15ca5ba7b82de444f";
|
|
|
|
};
|
|
|
|
|
2020-05-01 02:59:00 +01:00
|
|
|
vendorSha256 = "0i5x4d3ra0s41knmybbg8gnjxgraxkid6y3gfkjwa65xcbp7hr7q";
|
2020-03-05 12:44:55 +00:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-18 11:48:40 +01:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) mikrotik; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-05 12:44:55 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Prometheus MikroTik device(s) exporter";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ mmilata ];
|
|
|
|
};
|
2020-06-18 11:48:40 +01:00
|
|
|
}
|