blob: 5940d033deba69e04d9c41155301af661c27c3c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "promscale";
version = "0.6.2";
src = fetchFromGitHub {
owner = "timescale";
repo = pname;
rev = version;
sha256 = "sha256-YGT+VaHX6dqYdJz002fGZxRYE3gFqY8Q7VdhtSTPpjU=";
};
vendorSha256 = "sha256-o7vRSCEEqzhruHEnRPuxC1e4NzCl8Br4vvqg0pwGIgA=";
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";
homepage = "https://github.com/timescale/promscale";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ _0x4A6F ];
};
}
|