Merge pull request #128870 from hagl/submit/pgtop

pgtop: init at 0.11
This commit is contained in:
Luke Granger-Brown 2021-07-03 01:54:11 +01:00 committed by GitHub
commit 5a4b7d989f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 0 deletions

View File

@ -4061,6 +4061,12 @@
github = "gytis-ivaskevicius"; github = "gytis-ivaskevicius";
githubId = 23264966; githubId = 23264966;
}; };
hagl = {
email = "harald@glie.be";
github = "hagl";
githubId = 1162118;
name = "Harald Gliebe";
};
hakuch = { hakuch = {
email = "hakuch@gmail.com"; email = "hakuch@gmail.com";
github = "hakuch"; github = "hakuch";

View File

@ -0,0 +1,30 @@
{ lib, stdenv, perlPackages, fetchFromGitHub, shortenPerlShebang }:
perlPackages.buildPerlPackage rec {
pname = "pgtop";
version = "0.11";
src = fetchFromGitHub {
owner = "cosimo";
repo = "pgtop";
rev = "v${version}";
sha256 = "1awyl6ddfihm7dfr5y2z15r1si5cyipnlyyj3m1l19pk98s4x66l";
};
outputs = [ "out" ];
buildInputs = with perlPackages; [ DBI DBDPg TermReadKey JSON LWPUserAgent ];
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
postInstall = lib.optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/pgtop
'';
meta = with lib; {
description = "a PostgreSQL clone of `mytop', which in turn is a `top' clone for MySQL";
homepage = "https://github.com/cosimo/pgtop";
changelog = "https://github.com/cosimo/pgtop/releases/tag/v${version}";
maintainers = [ maintainers.hagl ];
license = [ licenses.gpl2Only ];
};
}

View File

@ -5616,6 +5616,8 @@ in
pgloader = callPackage ../development/tools/pgloader { }; pgloader = callPackage ../development/tools/pgloader { };
pgtop = callPackage ../development/tools/pgtop { };
pigz = callPackage ../tools/compression/pigz { }; pigz = callPackage ../tools/compression/pigz { };
pixz = callPackage ../tools/compression/pixz { }; pixz = callPackage ../tools/compression/pixz { };