about summary refs log tree commit diff
path: root/pkgs/servers/monitoring/prometheus
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-21 06:28:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-03-21 06:28:00 -0500
commit7eb35cd1447a7c076bd4869c0e2e5f1ee428d70d (patch)
treed298dd066ed2ebcb6e5d87f01d1c58b984d352aa /pkgs/servers/monitoring/prometheus
parentf34fd0c37a099bcda4b7c1b3b87b5aff94d66f6d (diff)
downloadnixlib-7eb35cd1447a7c076bd4869c0e2e5f1ee428d70d.tar
nixlib-7eb35cd1447a7c076bd4869c0e2e5f1ee428d70d.tar.gz
nixlib-7eb35cd1447a7c076bd4869c0e2e5f1ee428d70d.tar.bz2
nixlib-7eb35cd1447a7c076bd4869c0e2e5f1ee428d70d.tar.lz
nixlib-7eb35cd1447a7c076bd4869c0e2e5f1ee428d70d.tar.xz
nixlib-7eb35cd1447a7c076bd4869c0e2e5f1ee428d70d.tar.zst
nixlib-7eb35cd1447a7c076bd4869c0e2e5f1ee428d70d.zip
prometheus-mikrotik-exporter: fix build on darwin
Diffstat (limited to 'pkgs/servers/monitoring/prometheus')
-rw-r--r--pkgs/servers/monitoring/prometheus/mikrotik-exporter.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/servers/monitoring/prometheus/mikrotik-exporter.nix b/pkgs/servers/monitoring/prometheus/mikrotik-exporter.nix
index 12341eee911e..96526d246a6d 100644
--- a/pkgs/servers/monitoring/prometheus/mikrotik-exporter.nix
+++ b/pkgs/servers/monitoring/prometheus/mikrotik-exporter.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildGoModule, fetchFromGitHub }:
+{ stdenv, buildGoModule, fetchFromGitHub, Security }:
 
 buildGoModule rec {
   pname = "mikrotik-exporter-unstable";
@@ -13,6 +13,8 @@ buildGoModule rec {
 
   modSha256 = "1cqjn6j3dfq51ssjx0qrajprlac1h0lb1r4af44lfpigzmrfyi07";
 
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
+
   meta = with stdenv.lib; {
     inherit (src.meta) homepage;
     description = "Prometheus MikroTik device(s) exporter";