beb59b76cf
https://github.com/MindFlavor/prometheus_wireguard_exporter/releases/tag/3.1.1 This release adds a flag `-l` which takes an address where the exporter is available. The default is `0.0.0.0` (previously, `0.0.0.0` was used by default). Please note that there are no dependency changes in Cargo and therefore the cargo hash didn't change.
24 lines
728 B
Nix
24 lines
728 B
Nix
{ stdenv, rustPlatform, fetchFromGitHub, lib, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wireguard-exporter";
|
|
version = "3.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MindFlavor";
|
|
repo = "prometheus_wireguard_exporter";
|
|
rev = version;
|
|
sha256 = "1cc36bngpjq8138f98d2dl0imgisiph7xmw1i7csmjs03b4pnfcx";
|
|
};
|
|
|
|
cargoSha256 = "1ndb33bi08j40b4jkj4q7d3k0cw5fscz2gc2cc3134nbs2r7jamk";
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
|
|
|
meta = with lib; {
|
|
description = "A Prometheus exporter for WireGuard, written in Rust.";
|
|
license = licenses.mit;
|
|
homepage = https://github.com/MindFlavor/prometheus_wireguard_exporter;
|
|
maintainers = with maintainers; [ ma27 globin ];
|
|
};
|
|
}
|