@@ -2,19 +2,25 @@
22
33rustPlatform.buildRustPackage rec {
44 pname = "wireguard-exporter";
5− version = "3.2.1";
5+ version = "3.2.2";
66
77 src = fetchFromGitHub {
88 owner = "MindFlavor";
99 repo = "prometheus_wireguard_exporter";
1010 rev = version;
11− sha256 = "1hyqvk3sxirm91lasf1z1wkzaql1g52my9a9q42z1h0hq66bc6nk";
11+ sha256 = "18khym7ygj29w98zf6i1l5c2pz84zla2z34l5jnh595xvwfl94pc";
1212 };
1313
14− cargoSha256 = "0wdyvl58h66xjcnl2kf3f7gnn4nc4vzpl870jc5x0qrkz28jppxz";
14+ cargoSha256 = "1bi9nr1dhyv322pq6fjrhs12h3wdak53mvwkbyim1hmrp62vky4m";
1515
1616 buildInputs = lib.optional stdenv.isDarwin Security;
1717
18+ # Commonly used hack in nixpkgs to allow unstable features on a stable rustc. This is needed
19+ # since `prometheus_exporter_base` uses `#!feature[]` to enable async which
20+ # is actually not needed as `async` is part of rustc 1.39.0-stable. This can be removed
21+ # as soon as https://github.com/MindFlavor/prometheus_exporter_base/pull/15 is merged.
22+ RUSTC_BOOTSTRAP = 1;
23+
1824 meta = with lib; {
1925 description = "A Prometheus exporter for WireGuard, written in Rust.";
2026 license = licenses.mit;