Merge pull request #112436 from 0x4A6F/master-promscale

promscale: 0.1.4 -> 0.2.0
This commit is contained in:
Sandro 2021-02-09 00:25:24 +01:00 committed by GitHub
commit 35c35e485e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,20 +5,29 @@
buildGoModule rec {
pname = "promscale";
version = "0.1.4";
version = "0.2.0";
src = fetchFromGitHub {
owner = "timescale";
repo = pname;
rev = version;
sha256 = "0179sw5zx552y14lr56adxcgas642xvxpqly6y4m9pi33r1gs8lj";
sha256 = "sha256-rXOAAd08NTWFRGnJoAY9xllw6dAA7Xu3qcImIVq9ewE=";
};
vendorSha256 = "sha256:04gzf0siz96ar4qdkcw6daswy14i1zvl7ir200adhw1c5phppab6";
vendorSha256 = "sha256-/woSbtrOI3BVBhh+A2kO1CB1BLzBciwOqvSbGkFeMEU=";
buildFlagsArray = [ "-ldflags=-s -w -X github.com/timescale/promscale/pkg/version.Version=${version} -X github.com/timescale/promscale/pkg/version.CommitHash=${src.rev}" ];
doCheck = false; # Requires access to a docker daemon
doInstallCheck = true;
installCheckPhase = ''
if [[ "$("$out/bin/${pname}" -version)" == "${version}" ]]; then
echo '${pname} smoke check passed'
else
echo '${pname} smoke check failed'
exit 1
fi
'';
meta = with lib; {
description = "An open-source analytical platform for Prometheus metrics";