3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/pgmetrics/default.nix

27 lines
668 B
Nix
Raw Normal View History

{ lib, 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";
2021-08-17 14:36:20 +01:00
version = "1.11.0";
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}";
2021-08-17 14:36:20 +01:00
sha256 = "sha256-8E4rciuoZrj8Oz2EXqtFgrPxvb8GJO3n1s2FpXrR0Q0=";
2018-11-07 03:04:21 +00:00
};
2021-08-17 14:36:20 +01:00
vendorSha256 = "sha256-scaaRjaDE/RG6Ei83CJBkfQCd1e5pH/Cs2vEbdl9Oyg=";
2020-03-14 11:48:34 +00:00
doCheck = false;
2021-08-26 07:45:51 +01:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2018-11-07 03:04:21 +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 ];
};
}