Files
nixpkgs/pkgs/by-name/pg/pg_top/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.0 KiB
Nix

{
cmake,
docutils,
fetchurl,
lib,
libbsd,
ncurses,
libpq,
stdenv,
}:
stdenv.mkDerivation rec {
pname = "pg_top";
version = "4.1.3";
src = fetchurl {
url = "https://pg_top.gitlab.io/source/pg_top-${version}.tar.xz";
sha256 = "sha256-4El3GmfP5UDJOsDxyU5z/s3JKw0jlMb8EB/hvtywwVs=";
};
buildInputs = [
libbsd
libpq
ncurses
];
nativeBuildInputs = [
cmake
docutils
];
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.
'';
homepage = "https://pg_top.gitlab.io";
changelog = "https://gitlab.com/pg_top/pg_top/-/blob/main/HISTORY.rst";
platforms = platforms.linux;
license = licenses.bsd3;
mainProgram = "pg_top";
};
}