mimir: 2.9.0 -> 2.10.0

This commit is contained in:
Aaron Jheng 2023-09-19 16:30:46 +08:00
parent 835736de35
commit b27d40ed61
No known key found for this signature in database
GPG key ID: F6A547A869D050A3

View file

@ -1,16 +1,16 @@
{ lib, buildGoModule, fetchFromGitHub, nixosTests, nix-update-script }: { lib, buildGoModule, fetchFromGitHub, nixosTests, nix-update-script }:
buildGoModule rec { buildGoModule rec {
pname = "mimir"; pname = "mimir";
version = "2.9.0"; version = "2.10.0";
src = fetchFromGitHub { src = fetchFromGitHub {
rev = "${pname}-${version}"; rev = "${pname}-${version}";
owner = "grafana"; owner = "grafana";
repo = pname; repo = pname;
sha256 = "sha256-6URhofT5zJZX2eFx7fNPrFOWF7Po3ChlmVHGTpvG24c="; hash = "sha256-4UBbtJRQ6F3Dm+G4OWZeWtD4MJWtq91yiSZNW7EhEto=";
}; };
vendorSha256 = null; vendorHash = null;
subPackages = [ subPackages = [
"cmd/mimir" "cmd/mimir"
@ -26,15 +26,16 @@ buildGoModule rec {
}; };
}; };
ldflags = let t = "github.com/grafana/mimir/pkg/util/version"; ldflags =
in [ let t = "github.com/grafana/mimir/pkg/util/version";
''-extldflags "-static"'' in [
"-s" ''-extldflags "-static"''
"-w" "-s"
"-X ${t}.Version=${version}" "-w"
"-X ${t}.Revision=unknown" "-X ${t}.Version=${version}"
"-X ${t}.Branch=unknown" "-X ${t}.Revision=unknown"
]; "-X ${t}.Branch=unknown"
];
meta = with lib; { meta = with lib; {
description = description =