Merge pull request #123497 from stephank/fix-prometheus-wireguard-exporter-darwin
prometheus-wireguard-exporter: fix darwin build
This commit is contained in:
commit
30d16a42df
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, rustPlatform, fetchFromGitHub, lib, Security, nixosTests }:
|
{ stdenv, rustPlatform, fetchFromGitHub, lib, libiconv, Security, nixosTests }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "wireguard-exporter";
|
pname = "wireguard-exporter";
|
||||||
@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "sha256-lNFsO7FSmH1+DLM7ID0vn6234qTdtUoaLSnqKcbHoXE=";
|
cargoSha256 = "sha256-lNFsO7FSmH1+DLM7ID0vn6234qTdtUoaLSnqKcbHoXE=";
|
||||||
|
|
||||||
buildInputs = lib.optional stdenv.isDarwin Security;
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
|
||||||
|
|
||||||
passthru.tests = { inherit (nixosTests.prometheus-exporters) wireguard; };
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) wireguard; };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user