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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.0 KiB
Nix
Raw Normal View History

2024-11-24 11:14:22 +00:00
{
cmake,
fetchurl,
lib,
libbsd,
libelf,
ncurses,
postgresql,
stdenv,
}:
2016-01-13 11:57:40 +00:00
stdenv.mkDerivation rec {
pname = "pg_top";
version = "4.1.0";
src = fetchurl {
url = "https://pg_top.gitlab.io/source/pg_top-${version}.tar.xz";
sha256 = "sha256-WdSiQURJgtBCYoS/maImppcyM8wzUIJzLWmiSZPlx1Q=";
};
2024-11-24 11:14:22 +00:00
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 SELECT statement.
* View locks held by a process.
* View I/O statistics per process.
* View replication statistics for downstream nodes.
2016-01-13 11:57:40 +00:00
'';
homepage = "https://pg_top.gitlab.io";
changelog = "https://gitlab.com/pg_top/pg_top/-/blob/main/HISTORY.rst";
2016-01-13 11:57:40 +00:00
platforms = platforms.linux;
license = licenses.bsd3;
2023-11-27 01:17:53 +00:00
mainProgram = "pg_top";
};
}