corerad: add NixOS module test as passthru test

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2020-06-24 22:49:27 -04:00
parent 09f0d65317
commit 10f75b2fed
No known key found for this signature in database
GPG Key ID: 77BFE531397EDE94

View File

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec {
pname = "corerad";
@ -19,6 +19,10 @@ buildGoModule rec {
-X github.com/mdlayher/corerad/internal/build.linkVersion=v${version}
'';
passthru.tests = {
inherit (nixosTests) corerad;
};
meta = with stdenv.lib; {
homepage = "https://github.com/mdlayher/corerad";
description = "CoreRAD extensible and observable IPv6 NDP RA daemon";