2022-06-16 17:23:12 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2022-04-27 09:35:20 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mimir";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "2.3.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
owner = "grafana";
|
|
|
|
repo = pname;
|
2022-09-22 12:36:57 +00:00
|
|
|
sha256 = "sha256-lLrDgt4WYxyMkwjS8TLTy1agPAo/Z0BtqY9hIYSDyGI=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = null;
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
subPackages = [
|
|
|
|
"cmd/mimir"
|
|
|
|
"cmd/mimirtool"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) mimir;
|
|
|
|
};
|
2022-04-27 09:35:20 +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;
|
|
|
|
maintainers = with maintainers; [ happysalada bryanhonof ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|