summary refs log tree commit diff
path: root/pkgs/tools/networking/corerad/default.nix
diff options
context:
space:
mode:
authorMatt Layher <mdlayher@gmail.com>2020-06-24 22:49:27 -0400
committerMatt Layher <mdlayher@gmail.com>2020-06-24 22:49:27 -0400
commit10f75b2fed07f417bc7051c725ddba3a9293aba8 (patch)
treed0de7f9eccf11c5b6127d013ae0df6418b571b76 /pkgs/tools/networking/corerad/default.nix
parent09f0d65317f1789b2f74eda1891427efccd90e04 (diff)
downloadnixpkgs-10f75b2fed07f417bc7051c725ddba3a9293aba8.tar
nixpkgs-10f75b2fed07f417bc7051c725ddba3a9293aba8.tar.gz
nixpkgs-10f75b2fed07f417bc7051c725ddba3a9293aba8.tar.bz2
nixpkgs-10f75b2fed07f417bc7051c725ddba3a9293aba8.tar.lz
nixpkgs-10f75b2fed07f417bc7051c725ddba3a9293aba8.tar.xz
nixpkgs-10f75b2fed07f417bc7051c725ddba3a9293aba8.tar.zst
nixpkgs-10f75b2fed07f417bc7051c725ddba3a9293aba8.zip
corerad: add NixOS module test as passthru test
Signed-off-by: Matt Layher <mdlayher@gmail.com>
Diffstat (limited to 'pkgs/tools/networking/corerad/default.nix')
-rw-r--r--pkgs/tools/networking/corerad/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/networking/corerad/default.nix b/pkgs/tools/networking/corerad/default.nix
index 1a29e5305e3..85a03e3611b 100644
--- a/pkgs/tools/networking/corerad/default.nix
+++ b/pkgs/tools/networking/corerad/default.nix
@@ -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";