1{ stdenv, fetchurl, ncurses, postgresql }:
2
3stdenv.mkDerivation rec {
4 name = "pg_top-3.7.0";
5
6 src = fetchurl {
7 url = "http://pgfoundry.org/frs/download.php/1781/${name}.tar.gz";
8 sha256 = "17xrv0l58rv3an06gkajzw0gg6v810xx6vl137an1iykmhvfh7h2";
9 };
10
11 buildInputs = [ ncurses postgresql ];
12
13 meta = with stdenv.lib; {
14 description = "A 'top' like tool for PostgreSQL";
15 longDescription = ''
16 pg_top allows you to:
17 * View currently running SQL statement of a process.
18 * View query plan of a currently running SQL statement.
19 * View locks held by a process.
20 * View user table statistics.
21 * View user index statistics.
22 '';
23
24 homepage = http://ptop.projects.postgresql.org/;
25 platforms = platforms.linux;
26 license = licenses.free; # see commands.c
27 };
28}