2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "thanos";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.23.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "thanos-io";
|
|
|
|
repo = "thanos";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-JQp0Bg7sCA5obb24G/Ca7EcD7er+ux9x+BgRK0L7dJE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
vendorSha256 = "sha256-I7d81A5FMAOY1M8vhhrPFsPl/1sh2ydAzKySM5i5VfM=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
subPackages = "cmd/thanos";
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
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"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|