Commit ba6ba2b9 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by Yt
Browse files

mimir: add update script

parent 62795930
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
{ lib, buildGoModule, fetchFromGitHub, nixosTests, nix-update-script }:
buildGoModule rec {
  pname = "mimir";
  version = "2.5.0";
@@ -17,9 +17,15 @@ buildGoModule rec {
    "cmd/mimirtool"
  ];

  passthru.tests = {
  passthru = {
    updateScript = nix-update-script {
      attrPath = pname;
      extraArgs = [ "--version-regex" "mimir-([0-9.]+)" ];
    };
    tests = {
      inherit (nixosTests) mimir;
    };
  };

  ldflags = let t = "github.com/grafana/mimir/pkg/util/version";
  in [