nixpkgs-suyu/pkgs/development/tools/pgtop/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
903 B
Nix
Raw Normal View History

2021-07-01 13:54:36 +02:00
{ 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" ];
2021-07-27 13:54:25 +02:00
buildInputs = with perlPackages; [ DBI DBDPg TermReadKey JSON LWP ];
2021-07-01 13:54:36 +02:00
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 ];
};
}