prometheus-wireguard-exporter: fix darwin build

This commit is contained in:
Stéphan Kochen 2021-05-18 13:11:45 +02:00
parent 5cec01f440
commit 9284a2b99f

View file

@ -1,4 +1,4 @@
{ stdenv, rustPlatform, fetchFromGitHub, lib, Security, nixosTests }:
{ stdenv, rustPlatform, fetchFromGitHub, lib, libiconv, Security, nixosTests }:
rustPlatform.buildRustPackage rec {
pname = "wireguard-exporter";
@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-lNFsO7FSmH1+DLM7ID0vn6234qTdtUoaLSnqKcbHoXE=";
buildInputs = lib.optional stdenv.isDarwin Security;
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
passthru.tests = { inherit (nixosTests.prometheus-exporters) wireguard; };