nixpkgs/pkgs/servers/monitoring/thanos/default.nix

34 lines
945 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2019-04-23 16:19:10 +02:00
buildGoModule rec {
pname = "thanos";
2019-06-16 15:13:18 +02:00
version = "0.5.0";
2019-04-23 16:19:10 +02:00
src = fetchFromGitHub {
rev = "v${version}";
owner = "improbable-eng";
repo = "thanos";
2019-06-16 15:13:18 +02:00
sha256 = "0my0653mkb14m93s4x3nyf8khyljkvi5sq049lir8yqzqn7p1654";
2019-04-23 16:19:10 +02:00
};
2019-06-01 17:08:09 +02:00
modSha256 = "1236cg00h8077fmvyddwjsnw85r69ac18b2chcpgzd85xdcaxavk";
2019-04-23 16:19:10 +02:00
subPackages = "cmd/thanos";
buildFlagsArray = let t = "github.com/prometheus/common/version"; in ''
-ldflags=
-X ${t}.Version=${version}
-X ${t}.Revision=unknown
-X ${t}.Branch=unknown
-X ${t}.BuildUser=nix@nixpkgs
-X ${t}.BuildDate=unknown
'';
meta = with stdenv.lib; {
description = "Highly available Prometheus setup with long term storage capabilities";
homepage = "https://github.com/improbable-eng/thanos";
2019-04-23 16:19:10 +02:00
license = licenses.asl20;
maintainers = with maintainers; [ basvandijk ];
platforms = platforms.unix;
};
}