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";
|
2021-10-07 04:26:49 +01:00
|
|
|
version = "2021-08-10";
|
2020-03-05 12:44:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nshttpd";
|
|
|
|
repo = "mikrotik-exporter";
|
2021-10-07 04:26:49 +01:00
|
|
|
sha256 = "1vqn1f159g0l76021gifbxpjf7zjhrj807qqqn51h5413lbi6r66";
|
|
|
|
rev = "4bfa7adfef500ff621a677adfab1f7010af920d1";
|
2020-03-05 12:44:55 +00:00
|
|
|
};
|
|
|
|
|
2021-10-07 04:26:49 +01:00
|
|
|
vendorSha256 = "0b244z3hly5726vwkr7vhdzzm2fi38cv1qh7nvfp3vpsxnii04md";
|
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
|
|
|
}
|