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