syncthing: declare tests from nixosTests

This commit is contained in:
Emery Hemingway 2020-04-16 12:51:53 +05:30
parent 92bc6e30ec
commit 480ed5f909
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ buildGoModule, stdenv, lib, procps, fetchFromGitHub }:
{ buildGoModule, stdenv, lib, procps, fetchFromGitHub, nixosTests }:
let
common = { stname, target, postInstall ? "" }:
@ -35,6 +35,11 @@ let
inherit postInstall;
passthru.tests = with nixosTests; {
init = syncthing-init;
relay = syncthing-relay;
};
meta = with lib; {
homepage = "https://www.syncthing.net/";
description = "Open Source Continuous File Synchronization";