From e7c3f330d35bf80f9296347fc108764578be9f50 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Thu, 8 Oct 2009 08:53:21 +0000 Subject: [PATCH] added pg_top svn path=/nixpkgs/trunk/; revision=17711 --- pkgs/tools/misc/pg_top/default.nix | 28 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/tools/misc/pg_top/default.nix diff --git a/pkgs/tools/misc/pg_top/default.nix b/pkgs/tools/misc/pg_top/default.nix new file mode 100644 index 00000000000..4c183d9c402 --- /dev/null +++ b/pkgs/tools/misc/pg_top/default.nix @@ -0,0 +1,28 @@ +{stdenv, fetchurl, ncurses, postgresql}: + +stdenv.mkDerivation { + name = "pg_top-3.6.2"; + + src = fetchurl { + url = http://pgfoundry.org/frs/download.php/1781/pg_top-3.6.2.tar.gz; + sha256 = "17xrv0l58rv3an06gkajzw0gg6v810xx6vl137an1iykmhvfh7h2"; + }; + + buildInputs = [ncurses postgresql]; + + meta = { + description = "pg_top is 'top' for PostgreSQL"; + longDescription = '' + pg_top allows you to: + + View currently running SQL statement of a process. + View query plan of a currently running SQL statement. + View locks held by a process. + View user table statistics. + View user index statistics. + + ''; + + homepage = http://ptop.projects.postgresql.org/; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2c2229e385a..4c6a43df751 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1251,6 +1251,10 @@ let inherit fetchurl stdenv; }; + pg_top = import ../tools/misc/pg_top { + inherit fetchurl stdenv ncurses postgresql; + }; + pdsh = import ../tools/networking/pdsh { inherit fetchurl stdenv perl; readline = if getPkgConfig "pdsh" "readline" true then readline else null;