Skip to content

Commit a3f0dac

Browse files
authored
Merge: pg_top: 3.7.0 -> 4.1.0 (#358676)
2 parents 33f830b + e36b87d commit a3f0dac

File tree

1 file changed

+27
-10
lines changed

1 file changed

+27
-10
lines changed

pkgs/by-name/pg/pg_top/package.nix

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,47 @@
1-
{ lib, stdenv, fetchurl, ncurses, postgresql }:
1+
{
2+
cmake,
3+
fetchurl,
4+
lib,
5+
libbsd,
6+
libelf,
7+
ncurses,
8+
postgresql,
9+
stdenv,
10+
}:
211

312
stdenv.mkDerivation rec {
413
pname = "pg_top";
5-
version = "3.7.0";
14+
version = "4.1.0";
615

716
src = fetchurl {
8-
url = "https://pgfoundry.org/frs/download.php/1781/pg_top-${version}.tar.gz";
9-
sha256 = "17xrv0l58rv3an06gkajzw0gg6v810xx6vl137an1iykmhvfh7h2";
17+
url = "https://pg_top.gitlab.io/source/pg_top-${version}.tar.xz";
18+
sha256 = "sha256-WdSiQURJgtBCYoS/maImppcyM8wzUIJzLWmiSZPlx1Q=";
1019
};
1120

12-
buildInputs = [ ncurses postgresql ];
21+
buildInputs = [
22+
libbsd
23+
libelf
24+
ncurses
25+
postgresql
26+
];
27+
28+
nativeBuildInputs = [ cmake ];
1329

1430
meta = with lib; {
1531
description = "'top' like tool for PostgreSQL";
1632
longDescription = ''
1733
pg_top allows you to:
1834
* View currently running SQL statement of a process.
19-
* View query plan of a currently running SQL statement.
35+
* View query plan of a currently running SELECT statement.
2036
* View locks held by a process.
21-
* View user table statistics.
22-
* View user index statistics.
37+
* View I/O statistics per process.
38+
* View replication statistics for downstream nodes.
2339
'';
2440

25-
homepage = "http://ptop.projects.postgresql.org/";
41+
homepage = "https://pg_top.gitlab.io";
42+
changelog = "https://gitlab.com/pg_top/pg_top/-/blob/main/HISTORY.rst";
2643
platforms = platforms.linux;
27-
license = licenses.free; # see commands.c
44+
license = licenses.bsd3;
2845
mainProgram = "pg_top";
2946
};
3047
}

0 commit comments

Comments
 (0)