diff --git a/pkgs/servers/monitoring/loki/default.nix b/pkgs/servers/monitoring/loki/default.nix index 176ec316a6eb..0cf35895ca6c 100644 --- a/pkgs/servers/monitoring/loki/default.nix +++ b/pkgs/servers/monitoring/loki/default.nix @@ -5,6 +5,8 @@ , makeWrapper , nixosTests , systemd +, testers +, grafana-loki }: buildGoModule rec { @@ -38,7 +40,13 @@ buildGoModule rec { --prefix LD_LIBRARY_PATH : "${lib.getLib systemd}/lib" ''; - passthru.tests = { inherit (nixosTests) loki; }; + passthru.tests = { + inherit (nixosTests) loki; + version = testers.testVersion { + command = "loki --version"; + package = grafana-loki; + }; + }; ldflags = let t = "github.com/grafana/loki/v3/pkg/util/build"; in [ "-s"