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 03:26:49 +00:00
|
|
|
version = "2021-08-10";
|
2020-03-05 12:44:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nshttpd";
|
|
|
|
repo = "mikrotik-exporter";
|
2021-10-07 03:26:49 +00:00
|
|
|
rev = "4bfa7adfef500ff621a677adfab1f7010af920d1";
|
2023-09-21 14:23:40 +00:00
|
|
|
hash = "sha256-xmQTFx2BFBiKxRgfgGSG8h8nb18uviCAORS8VIILFu8=";
|
2020-03-05 12:44:55 +00:00
|
|
|
};
|
|
|
|
|
2023-09-21 14:23:40 +00:00
|
|
|
vendorHash = "sha256-rRIQo+367nHdtgfisBka0Yn6f4P75Mm3Ead4CscnRCw=";
|
2020-03-05 12:44:55 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-18 10:48:40 +00: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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "mikrotik-exporter";
|
2020-03-05 12:44:55 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ mmilata ];
|
|
|
|
};
|
2020-06-18 10:48:40 +00:00
|
|
|
}
|