2021-06-02 11:41:36 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-30 22:41:46 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "wireguard_exporter";
|
2020-05-01 15:04:08 +00:00
|
|
|
version = "0.1.2";
|
2020-04-30 22:41:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdlayher";
|
|
|
|
repo = "wireguard_exporter";
|
|
|
|
rev = "v${version}";
|
2020-05-01 15:04:08 +00:00
|
|
|
sha256 = "0mmrkdxh1q8n4zbj0gdx8qbrga78qg1zzyi71qk5ywl8vz0a05n0";
|
2020-04-30 22:41:46 +00:00
|
|
|
};
|
|
|
|
|
2020-10-27 21:02:48 +00:00
|
|
|
vendorSha256 = "18jqgjxrmvni1h69lzgnrwjl6b59xyn4qb4rfsd4kmpmg40g85yh";
|
2020-04-30 22:41:46 +00:00
|
|
|
|
2021-06-02 11:41:36 +00:00
|
|
|
meta = with lib; {
|
2020-04-30 22:41:46 +00:00
|
|
|
homepage = "github.com/mdlayher/wireguard_exporter";
|
|
|
|
description = "Prometheus exporter for WireGuard devices.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mdlayher ];
|
|
|
|
};
|
|
|
|
}
|