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 <itemizedlist>
18 <listitem>View currently running SQL statement of a process.</listitem>
19 <listitem>View query plan of a currently running SQL statement.</listitem>
20 <listitem>View locks held by a process.</listitem>
21 <listitem>View user table statistics.</listitem>
22 <listitem>View user index statistics.</listitem>
23 </itemizedlist>
24 '';
25
26 homepage = http://ptop.projects.postgresql.org/;
27 platforms = platforms.linux;
28 license = licenses.free; # see commands.c
29 };
30}