2022-04-24 12:46:37 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mimir";
|
2022-05-28 17:10:44 +00:00
|
|
|
version = "2.1.0";
|
2022-04-24 12:46:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
owner = "grafana";
|
|
|
|
repo = pname;
|
2022-05-28 17:10:44 +00:00
|
|
|
sha256 = "sha256-n7Vzp/GQIC+Mryu9SycMZ3ScPo5O+5tA4TdigpKzmLU=";
|
2022-04-24 12:46:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = null;
|
|
|
|
|
2022-05-28 17:10:44 +00:00
|
|
|
subPackages = [
|
|
|
|
"cmd/mimir"
|
|
|
|
"cmd/mimirtool"
|
|
|
|
];
|
2022-04-24 12:46:37 +00:00
|
|
|
|
|
|
|
ldflags = let t = "github.com/grafana/mimir/pkg/util/version";
|
|
|
|
in [
|
|
|
|
''-extldflags "-static"''
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X ${t}.Version=${version}"
|
|
|
|
"-X ${t}.Revision=unknown"
|
|
|
|
"-X ${t}.Branch=unknown"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"Grafana Mimir provides horizontally scalable, highly available, multi-tenant, long-term storage for Prometheus. ";
|
|
|
|
homepage = "https://github.com/grafana/mimir";
|
|
|
|
license = licenses.agpl3Only;
|
2022-04-25 11:33:33 +00:00
|
|
|
maintainers = with maintainers; [ happysalada bryanhonof ];
|
2022-04-24 12:46:37 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|