Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
73 lines
1.4 KiB
Nix
73 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
nix-update-script,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "mimir";
|
|
version = "2.17.1";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "mimir-${version}";
|
|
owner = "grafana";
|
|
repo = "mimir";
|
|
hash = "sha256-Ob0l+C5LnFL1yl76/cdSX83bHEcamPlb9Sau8rMO2sM=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
subPackages = [
|
|
"cmd/mimir"
|
|
"cmd/mimirtool"
|
|
]
|
|
++ (map (pathName: "tools/${pathName}") [
|
|
"compaction-planner"
|
|
"copyblocks"
|
|
"copyprefix"
|
|
"delete-objects"
|
|
"list-deduplicated-blocks"
|
|
"listblocks"
|
|
"mark-blocks"
|
|
"splitblocks"
|
|
"tenant-injector"
|
|
"undelete-blocks"
|
|
]);
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"mimir-([0-9.]+)"
|
|
];
|
|
};
|
|
tests = {
|
|
inherit (nixosTests) mimir;
|
|
};
|
|
};
|
|
|
|
ldflags =
|
|
let
|
|
t = "github.com/grafana/mimir/pkg/util/version";
|
|
in
|
|
[
|
|
"-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
|
|
adamcstephens
|
|
];
|
|
};
|
|
}
|