2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-11-07 03:04:21 +00:00
|
|
|
|
2019-04-22 04:00:00 +00:00
|
|
|
buildGoModule rec {
|
2019-03-13 22:49:53 +00:00
|
|
|
pname = "pgmetrics";
|
2021-01-22 19:04:36 +00:00
|
|
|
version = "1.10.5";
|
2018-11-07 03:04:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rapidloop";
|
2019-04-22 04:00:00 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-22 19:04:36 +00:00
|
|
|
sha256 = "sha256-rqaK94Rw0K1+r7+7jHI2bzBupCGTkokeC4heJ3Yu6pQ=";
|
2018-11-07 03:04:21 +00:00
|
|
|
};
|
|
|
|
|
2021-01-22 19:04:36 +00:00
|
|
|
vendorSha256 = "sha256-5f2hkOgAE4TrHNz7xx1RU9fozxjFZAl4HilhAqsbo5s=";
|
2020-03-14 11:48:34 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-03-14 11:48:34 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
2018-11-07 03:04:21 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-14 11:48:34 +00:00
|
|
|
homepage = "https://pgmetrics.io/";
|
2018-11-07 03:04:21 +00:00
|
|
|
description = "Collect and display information and stats from a running PostgreSQL server";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|