2020-08-13 17:20:46 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
2020-09-29 14:18:09 +00:00
|
|
|
pname = "promscale";
|
2020-12-29 20:20:50 +00:00
|
|
|
version = "0.1.4";
|
2020-08-13 17:20:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "timescale";
|
|
|
|
repo = pname;
|
2020-11-01 22:39:49 +00:00
|
|
|
rev = version;
|
2020-12-29 20:20:50 +00:00
|
|
|
sha256 = "0179sw5zx552y14lr56adxcgas642xvxpqly6y4m9pi33r1gs8lj";
|
2020-08-13 17:20:46 +00:00
|
|
|
};
|
|
|
|
|
2020-12-29 20:20:50 +00:00
|
|
|
vendorSha256 = "sha256:04gzf0siz96ar4qdkcw6daswy14i1zvl7ir200adhw1c5phppab6";
|
2020-08-13 17:20:46 +00:00
|
|
|
|
2020-09-29 14:18:09 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X github.com/timescale/promscale/pkg/version.Version=${version} -X github.com/timescale/promscale/pkg/version.CommitHash=${src.rev}" ];
|
2020-08-20 09:20:00 +00:00
|
|
|
|
2020-10-29 09:02:35 +00:00
|
|
|
doCheck = false; # Requires access to a docker daemon
|
2020-08-13 17:20:46 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An open-source analytical platform for Prometheus metrics";
|
2020-09-29 14:18:09 +00:00
|
|
|
homepage = "https://github.com/timescale/promscale";
|
2020-08-13 17:20:46 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
2020-07-29 10:49:07 +00:00
|
|
|
maintainers = with maintainers; [ _0x4A6F ];
|
2020-08-13 17:20:46 +00:00
|
|
|
};
|
|
|
|
}
|