Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b85f4d0da760
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cac363c66181
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 24, 2020

  1. Copy the full SHA
    cac363c View commit details
Showing with 3 additions and 9 deletions.
  1. +3 −9 pkgs/servers/monitoring/prometheus/wireguard-exporter.nix
12 changes: 3 additions & 9 deletions pkgs/servers/monitoring/prometheus/wireguard-exporter.nix
Original file line number Diff line number Diff line change
@@ -2,25 +2,19 @@

rustPlatform.buildRustPackage rec {
pname = "wireguard-exporter";
version = "3.2.2";
version = "3.2.4";

src = fetchFromGitHub {
owner = "MindFlavor";
repo = "prometheus_wireguard_exporter";
rev = version;
sha256 = "18khym7ygj29w98zf6i1l5c2pz84zla2z34l5jnh595xvwfl94pc";
sha256 = "15his6mv3vmzfg972fb8m01h2m3jxmaqz3zw2krfr136mvg2rvjw";
};

cargoSha256 = "1bi9nr1dhyv322pq6fjrhs12h3wdak53mvwkbyim1hmrp62vky4m";
cargoSha256 = "1kxzhwz7i1nlywf01zsbrv1qnssmj7dviq9nk9ywbr6xbjq8zl3h";

buildInputs = lib.optional stdenv.isDarwin Security;

# Commonly used hack in nixpkgs to allow unstable features on a stable rustc. This is needed
# since `prometheus_exporter_base` uses `#!feature[]` to enable async which
# is actually not needed as `async` is part of rustc 1.39.0-stable. This can be removed
# as soon as https://github.com/MindFlavor/prometheus_exporter_base/pull/15 is merged.
RUSTC_BOOTSTRAP = 1;

meta = with lib; {
description = "A Prometheus exporter for WireGuard, written in Rust.";
license = licenses.mit;