2020-08-13 19:20:46 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
2020-09-29 16:18:09 +02:00
|
|
|
pname = "promscale";
|
2020-10-06 18:00:25 +02:00
|
|
|
version = "0.1.0";
|
2020-08-13 19:20:46 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "timescale";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${version}";
|
2020-10-06 18:00:25 +02:00
|
|
|
sha256 = "sha256:0535sq640b9x9vi2sfazi9qs6arwjdn7nff16km2agncvs449dn4";
|
2020-08-13 19:20:46 +02:00
|
|
|
};
|
|
|
|
|
2020-10-06 18:00:25 +02:00
|
|
|
vendorSha256 = "sha256:1ilciwf08678sciwwrjalwvcs5bp7x254nxc3nhdf88cf0bp2nxi";
|
2020-08-13 19:20:46 +02:00
|
|
|
|
2020-09-29 16:18:09 +02: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 11:20:00 +02:00
|
|
|
|
2020-08-13 19:20:46 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An open-source analytical platform for Prometheus metrics";
|
2020-09-29 16:18:09 +02:00
|
|
|
homepage = "https://github.com/timescale/promscale";
|
2020-08-13 19:20:46 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
2020-07-29 12:49:07 +02:00
|
|
|
maintainers = with maintainers; [ _0x4A6F ];
|
2020-08-13 19:20:46 +02:00
|
|
|
};
|
|
|
|
}
|