nixpkgs/pkgs/servers/monitoring/mimir/default.nix
Jörg Thalheim 6279593053 mimir: 2.4.0 -> 2.5.0
Diff: https://github.com/grafana/mimir/compare/mimir-2.4.0...mimir-2.5.0

Updated using `nix-update --commit --build --version-regex 'mimir-([0-9.]+)' mimir`
2022-12-20 09:58:49 -05:00

43 lines
999 B
Nix

{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec {
pname = "mimir";
version = "2.5.0";
src = fetchFromGitHub {
rev = "${pname}-${version}";
owner = "grafana";
repo = pname;
sha256 = "sha256-lyF7ugnNEJug1Vx24ISrtENk6RoIt7H1zaCPYUZbBmM=";
};
vendorSha256 = null;
subPackages = [
"cmd/mimir"
"cmd/mimirtool"
];
passthru.tests = {
inherit (nixosTests) mimir;
};
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;
};
}