mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
32 lines
928 B
Nix
32 lines
928 B
Nix
{ 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 LWP ];
|
|
|
|
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
|
shortenPerlShebang $out/bin/pgtop
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "PostgreSQL clone of `mytop', which in turn is a `top' clone for MySQL";
|
|
mainProgram = "pgtop";
|
|
homepage = "https://github.com/cosimo/pgtop";
|
|
changelog = "https://github.com/cosimo/pgtop/releases/tag/v${version}";
|
|
maintainers = [ maintainers.hagl ];
|
|
license = [ licenses.gpl2Only ];
|
|
};
|
|
}
|