about summary refs log tree commit diff
path: root/pkgs/servers/monitoring
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2024-05-22 06:17:56 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2024-05-22 15:53:34 +1000
commite69e710edfed397959507bcee120ec8a9c7ff03e (patch)
tree1b0373686f374728dba0463f02d16f1b0a42c056 /pkgs/servers/monitoring
parentd36cb226a5ad228d1e6a7f2e3d635964d4193772 (diff)
telegraf: only run nixosTests on linux
Diffstat (limited to 'pkgs/servers/monitoring')
-rw-r--r--pkgs/servers/monitoring/telegraf/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/servers/monitoring/telegraf/default.nix b/pkgs/servers/monitoring/telegraf/default.nix
index a2ded0f652a7c..54e1c11fb1197 100644
--- a/pkgs/servers/monitoring/telegraf/default.nix
+++ b/pkgs/servers/monitoring/telegraf/default.nix
@@ -2,6 +2,7 @@
 , buildGoModule
 , fetchFromGitHub
 , nixosTests
+, stdenv
 , testers
 , telegraf
 }:
@@ -30,10 +31,11 @@ buildGoModule rec {
   ];
 
   passthru.tests = {
-    inherit (nixosTests) telegraf;
     version = testers.testVersion {
       package = telegraf;
     };
+  } // lib.optionalAttrs stdenv.isLinux {
+    inherit (nixosTests) telegraf;
   };
 
   meta = with lib; {