mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
31 lines
890 B
Nix
31 lines
890 B
Nix
{ stdenv
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "timescale-prometheus";
|
|
version = "0.1.0-beta.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "timescale";
|
|
repo = pname;
|
|
rev = "${version}";
|
|
sha256 = "1rrr0qb27hh3kcmmxapr1j39dhfxf02vihpjf4b7zpwdf1mpvrbc";
|
|
};
|
|
|
|
vendorSha256 = "sha256:0y5rq2y48kf2z1z3a8ags6rqzfvjs54klk2679fk8x0yjamj5x04";
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X github.com/timescale/timescale-prometheus/pkg/version.Version=${version} -X github.com/timescale/timescale-prometheus/pkg/version.CommitHash=${src.rev}" ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "An open-source analytical platform for Prometheus metrics";
|
|
homepage = "https://github.com/timescale/timescale-prometheus";
|
|
license = licenses.asl20;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ _0x4A6F ];
|
|
};
|
|
}
|