git.iko.soy/typeable/nixpkgs
on master help sign in
prometheus-unbound-exporter: fix darwin build
commit5b9bef75e14dec9fb9644320adae6193cc3a0291 authorStéphan Kochen <git@stephank.nl> dateTue 18 May 2021, 13:08 (6 years ago) parent5cec01f
2 files changed+6−3
pkgs/servers/monitoring/prometheus/unbound-exporter.nix+3−2 pkgs/top-level/all-packages.nix+3−1
pkgs/servers/monitoring/prometheus/unbound-exporter.nix+3−2
@@ -1,4 +1,4 @@
1−{ lib, rustPlatform, fetchFromGitHub, openssl, pkg-config, nixosTests }:
1+{ lib, stdenv, rustPlatform, fetchFromGitHub, openssl, pkg-config, nixosTests, Security }:
22
33rustPlatform.buildRustPackage rec {
44 pname = "unbound-telemetry";
@@ -15,7 +15,8 @@ rustPlatform.buildRustPackage rec {
1515
1616 nativeBuildInputs = [ pkg-config ];
1717
18− buildInputs = [ openssl ];
18+ buildInputs = [ openssl ]
19+ ++ lib.optional stdenv.isDarwin Security;
1920
2021 passthru.tests = {
2122 inherit (nixosTests.prometheus-exporters) unbound;
pkgs/top-level/all-packages.nix+3−1
@@ -19434,7 +19434,9 @@ in
1943419434 prometheus-tor-exporter = callPackage ../servers/monitoring/prometheus/tor-exporter.nix { };
1943519435 prometheus-statsd-exporter = callPackage ../servers/monitoring/prometheus/statsd-exporter.nix { };
1943619436 prometheus-surfboard-exporter = callPackage ../servers/monitoring/prometheus/surfboard-exporter.nix { };
19437− prometheus-unbound-exporter = callPackage ../servers/monitoring/prometheus/unbound-exporter.nix { };
19437+ prometheus-unbound-exporter = callPackage ../servers/monitoring/prometheus/unbound-exporter.nix {
19438+ inherit (darwin.apple_sdk.frameworks) Security;
19439+ };
1943819440 prometheus-unifi-exporter = callPackage ../servers/monitoring/prometheus/unifi-exporter { };
1943919441 prometheus-varnish-exporter = callPackage ../servers/monitoring/prometheus/varnish-exporter.nix { };
1944019442 prometheus-jmx-httpserver = callPackage ../servers/monitoring/prometheus/jmx-httpserver.nix { };