telegraf: only run nixosTests on linux

This commit is contained in:
zowoq 2024-05-22 06:17:56 +10:00
parent d36cb226a5
commit e69e710edf

View File

@ -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; {