2019-06-02 03:13:53 +02:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub, lib, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wireguard-exporter";
|
2020-04-07 13:19:32 +02:00
|
|
|
version = "3.3.0";
|
2019-06-02 03:13:53 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MindFlavor";
|
|
|
|
repo = "prometheus_wireguard_exporter";
|
|
|
|
rev = version;
|
2020-04-07 13:19:32 +02:00
|
|
|
sha256 = "1c6zadqnn4b83yglcdn1hw54jj1c4makbdy6fli3cfb7sha1ynml";
|
2019-06-02 03:13:53 +02:00
|
|
|
};
|
|
|
|
|
2020-04-07 13:19:32 +02:00
|
|
|
cargoSha256 = "148982ypkxhab2kmijk9zwwi5l6nk4rcdwaz0r1j9fni47q49f35";
|
2019-06-02 03:13:53 +02:00
|
|
|
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Prometheus exporter for WireGuard, written in Rust.";
|
2020-03-07 15:47:19 +01:00
|
|
|
homepage = "https://github.com/MindFlavor/prometheus_wireguard_exporter";
|
2019-06-02 03:13:53 +02:00
|
|
|
license = licenses.mit;
|
2019-08-20 19:36:05 +02:00
|
|
|
maintainers = with maintainers; [ ma27 globin ];
|
2019-06-02 03:13:53 +02:00
|
|
|
};
|
|
|
|
}
|