2020-03-27 00:33:21 -07:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2018-11-06 19:04:21 -08:00
|
|
|
|
2019-04-21 21:00:00 -07:00
|
|
|
buildGoModule rec {
|
2019-03-13 15:49:53 -07:00
|
|
|
pname = "pgmetrics";
|
2020-08-02 02:57:27 -07:00
|
|
|
version = "1.9.3";
|
2018-11-06 19:04:21 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rapidloop";
|
2019-04-21 21:00:00 -07:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-08-02 02:57:27 -07:00
|
|
|
sha256 = "1g0kdvc93ij155r3g7cd9f5p1x33vdi9p40403waanq5wiavjnzq";
|
2018-11-06 19:04:21 -08:00
|
|
|
};
|
|
|
|
|
2020-04-30 18:59:00 -07:00
|
|
|
vendorSha256 = "16x33fmh4q993rw0jr65337yimska4fwgyyw3kmq84q0x28a3zg5";
|
2020-03-14 04:48:34 -07:00
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
2018-11-06 19:04:21 -08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-03-14 04:48:34 -07:00
|
|
|
homepage = "https://pgmetrics.io/";
|
2018-11-06 19:04:21 -08:00
|
|
|
description = "Collect and display information and stats from a running PostgreSQL server";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
2020-07-30 20:58:04 -07:00
|
|
|
}
|