2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2018-11-07 03:04:21 +00:00
|
|
|
|
2019-04-22 05:00:00 +01:00
|
|
|
buildGoModule rec {
|
2019-03-13 22:49:53 +00:00
|
|
|
pname = "pgmetrics";
|
2020-03-14 11:48:34 +00:00
|
|
|
version = "1.8.1";
|
2018-11-07 03:04:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rapidloop";
|
2019-04-22 05:00:00 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-03-14 11:48:34 +00:00
|
|
|
sha256 = "06w2kqjq2yq9yypg6biywrybnmi4jlnnigd7az72hp7lzf2nhl62";
|
2018-11-07 03:04:21 +00:00
|
|
|
};
|
|
|
|
|
2020-03-14 11:48:34 +00:00
|
|
|
modSha256 = "0h375zk0ik06g0b5vmi00b1wn5q2c0r137f7qf6l8k8p886x41h6";
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
2018-11-07 03:04:21 +00:00
|
|
|
|
|
|
|
meta = with stdenv.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 ];
|
|
|
|
};
|
|
|
|
}
|