Merge pull request #123495 from stephank/fix-prometheus-unbound-exporter-darwin

prometheus-unbound-exporter: fix darwin build
This commit is contained in:
Pavol Rusnak
2021-05-18 18:46:54 +02:00
committed by GitHub
2 changed files with 6 additions and 3 deletions
@@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub, openssl, pkg-config, nixosTests }:
{ lib, stdenv, rustPlatform, fetchFromGitHub, openssl, pkg-config, nixosTests, Security }:
rustPlatform.buildRustPackage rec {
pname = "unbound-telemetry";
@@ -15,7 +15,8 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
buildInputs = [ openssl ]
++ lib.optional stdenv.isDarwin Security;
passthru.tests = {
inherit (nixosTests.prometheus-exporters) unbound;