b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
34 lines
918 B
Nix
34 lines
918 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
buildGoModule rec {
|
|
pname = "thanos";
|
|
version = "0.28.0";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "thanos-io";
|
|
repo = "thanos";
|
|
sha256 = "sha256-h6HDwPbFflF9vZu3s7cMPOQ9iPNPcuDK/1UAX1fSePE=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-EOVxhmR4bkTlxJ/ozl0zmik0+vqmeWBI1IrL2Hf5MU8=";
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = "cmd/thanos";
|
|
|
|
ldflags = let t = "github.com/prometheus/common/version"; in [
|
|
"-X ${t}.Version=${version}"
|
|
"-X ${t}.Revision=unknown"
|
|
"-X ${t}.Branch=unknown"
|
|
"-X ${t}.BuildUser=nix@nixpkgs"
|
|
"-X ${t}.BuildDate=unknown"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Highly available Prometheus setup with long term storage capabilities";
|
|
homepage = "https://github.com/thanos-io/thanos";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ basvandijk ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|