From 1ef22a5d1f9839a2ade975e75b1661c1111d01c8 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Thu, 1 Oct 2020 11:57:23 +0200 Subject: [PATCH] victoriametrics: add passthru.tests --- pkgs/servers/nosql/victoriametrics/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/nosql/victoriametrics/default.nix b/pkgs/servers/nosql/victoriametrics/default.nix index b41861768d86..d74a88474a6c 100644 --- a/pkgs/servers/nosql/victoriametrics/default.nix +++ b/pkgs/servers/nosql/victoriametrics/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib, buildGoPackage, fetchFromGitHub, nixosTests }: buildGoPackage rec { pname = "VictoriaMetrics"; @@ -15,6 +15,8 @@ buildGoPackage rec { buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/lib/buildinfo.Version=${version}" ]; + passthru.tests = { inherit (nixosTests) victoriametrics; }; + meta = with lib; { homepage = "https://victoriametrics.com/"; description = "fast, cost-effective and scalable time series database, long-term remote storage for Prometheus";