mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
25 lines
728 B
Nix
25 lines
728 B
Nix
{ stdenv, rustPlatform, fetchFromGitHub, lib, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wireguard-exporter";
|
|
version = "3.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MindFlavor";
|
|
repo = "prometheus_wireguard_exporter";
|
|
rev = version;
|
|
sha256 = "1hyqvk3sxirm91lasf1z1wkzaql1g52my9a9q42z1h0hq66bc6nk";
|
|
};
|
|
|
|
cargoSha256 = "0wdyvl58h66xjcnl2kf3f7gnn4nc4vzpl870jc5x0qrkz28jppxz";
|
|
|
|
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 ];
|
|
};
|
|
}
|