1 { lib, stdenv, fetchurl, ncurses, postgresql }:
3 stdenv.mkDerivation rec {
8 url = "https://pgfoundry.org/frs/download.php/1781/pg_top-${version}.tar.gz";
9 sha256 = "17xrv0l58rv3an06gkajzw0gg6v810xx6vl137an1iykmhvfh7h2";
12 buildInputs = [ ncurses postgresql ];
15 description = "A 'top' like tool for PostgreSQL";
18 * View currently running SQL statement of a process.
19 * View query plan of a currently running SQL statement.
20 * View locks held by a process.
21 * View user table statistics.
22 * View user index statistics.
25 homepage = "http://ptop.projects.postgresql.org/";
26 platforms = platforms.linux;
27 license = licenses.free; # see commands.c