Unverified Commit be4ad2d6 authored by Adam C. Stephens's avatar Adam C. Stephens
Browse files

grafana-loki: add updateScript

parent 1146c444
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  buildGoModule,
  fetchFromGitHub,
  makeWrapper,
  nix-update-script,
  nixosTests,
  systemd,
  testers,
@@ -42,7 +43,8 @@ buildGoModule rec {
      --prefix LD_LIBRARY_PATH : "${lib.getLib systemd}/lib"
  '';

  passthru.tests = {
  passthru = {
    tests = {
      inherit (nixosTests) loki;
      version = testers.testVersion {
        command = "loki --version";
@@ -50,6 +52,9 @@ buildGoModule rec {
      };
    };

    updateScript = nix-update-script { };
  };

  ldflags =
    let
      t = "github.com/grafana/loki/v3/pkg/util/build";