nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.1 kB view raw
1{ 2 cmake, 3 docutils, 4 fetchurl, 5 lib, 6 libbsd, 7 ncurses, 8 libpq, 9 stdenv, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "pg_top"; 14 version = "4.1.3"; 15 16 src = fetchurl { 17 url = "https://pg_top.gitlab.io/source/pg_top-${finalAttrs.version}.tar.xz"; 18 sha256 = "sha256-4El3GmfP5UDJOsDxyU5z/s3JKw0jlMb8EB/hvtywwVs="; 19 }; 20 21 buildInputs = [ 22 libbsd 23 libpq 24 ncurses 25 ]; 26 27 nativeBuildInputs = [ 28 cmake 29 docutils 30 ]; 31 32 meta = { 33 description = "'top' like tool for PostgreSQL"; 34 longDescription = '' 35 pg_top allows you to: 36 * View currently running SQL statement of a process. 37 * View query plan of a currently running SELECT statement. 38 * View locks held by a process. 39 * View I/O statistics per process. 40 * View replication statistics for downstream nodes. 41 ''; 42 43 homepage = "https://pg_top.gitlab.io"; 44 changelog = "https://gitlab.com/pg_top/pg_top/-/blob/main/HISTORY.rst"; 45 platforms = lib.platforms.linux; 46 license = lib.licenses.bsd3; 47 mainProgram = "pg_top"; 48 }; 49})