1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00
mdlayher-homelab/nixos/lib/pkgs/wireguard_exporter.nix

23 lines
600 B
Nix
Raw Normal View History

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