telegraf: only run nixosTests on linux

zowoq e69e710e d36cb226

+3 -1
+3 -1
pkgs/servers/monitoring/telegraf/default.nix
··· 2 , buildGoModule 3 , fetchFromGitHub 4 , nixosTests 5 , testers 6 , telegraf 7 }: ··· 30 ]; 31 32 passthru.tests = { 33 - inherit (nixosTests) telegraf; 34 version = testers.testVersion { 35 package = telegraf; 36 }; 37 }; 38 39 meta = with lib; {
··· 2 , buildGoModule 3 , fetchFromGitHub 4 , nixosTests 5 + , stdenv 6 , testers 7 , telegraf 8 }: ··· 31 ]; 32 33 passthru.tests = { 34 version = testers.testVersion { 35 package = telegraf; 36 }; 37 + } // lib.optionalAttrs stdenv.isLinux { 38 + inherit (nixosTests) telegraf; 39 }; 40 41 meta = with lib; {