Merge: pg_top: 3.7.0 -> 4.1.0 (#358676)

This commit is contained in:
Maximilian Bosch
2024-11-30 13:15:01 +01:00
committed by GitHub
+27 -10
View File
@@ -1,30 +1,47 @@
{ lib, stdenv, fetchurl, ncurses, postgresql }:
{
cmake,
fetchurl,
lib,
libbsd,
libelf,
ncurses,
postgresql,
stdenv,
}:
stdenv.mkDerivation rec {
pname = "pg_top";
version = "3.7.0";
version = "4.1.0";
src = fetchurl {
url = "https://pgfoundry.org/frs/download.php/1781/pg_top-${version}.tar.gz";
sha256 = "17xrv0l58rv3an06gkajzw0gg6v810xx6vl137an1iykmhvfh7h2";
url = "https://pg_top.gitlab.io/source/pg_top-${version}.tar.xz";
sha256 = "sha256-WdSiQURJgtBCYoS/maImppcyM8wzUIJzLWmiSZPlx1Q=";
};
buildInputs = [ ncurses postgresql ];
buildInputs = [
libbsd
libelf
ncurses
postgresql
];
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "'top' like tool for PostgreSQL";
longDescription = ''
pg_top allows you to:
* View currently running SQL statement of a process.
* View query plan of a currently running SQL statement.
* View query plan of a currently running SELECT statement.
* View locks held by a process.
* View user table statistics.
* View user index statistics.
* View I/O statistics per process.
* View replication statistics for downstream nodes.
'';
homepage = "http://ptop.projects.postgresql.org/";
homepage = "https://pg_top.gitlab.io";
changelog = "https://gitlab.com/pg_top/pg_top/-/blob/main/HISTORY.rst";
platforms = platforms.linux;
license = licenses.free; # see commands.c
license = licenses.bsd3;
mainProgram = "pg_top";
};
}