mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 06:44:06 +00:00
telegraf: only run nixosTests on linux
This commit is contained in:
parent
d36cb226a5
commit
e69e710edf
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user