2022-02-22 06:23:18 +00:00
|
|
|
{ buildPerlPackage, stdenv, lib, fetchFromGitHub, which, bzip2, PodMarkdown, JSONXS
|
2023-08-27 04:20:00 +00:00
|
|
|
, TextCSV_XS }:
|
2021-05-08 16:18:22 +00:00
|
|
|
buildPerlPackage rec {
|
|
|
|
pname = "pgbadger";
|
2023-08-27 04:20:00 +00:00
|
|
|
version = "12.2";
|
2021-05-08 16:18:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "darold";
|
|
|
|
repo = "pgbadger";
|
2023-08-27 04:20:00 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-IzfpDqzS5VcehkPsFxyn3kJsvXs8nLgJ3WT8ZCmIDxI=";
|
2021-05-08 16:18:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./pgbadger
|
|
|
|
'';
|
|
|
|
|
|
|
|
outputs = [ "out" ];
|
|
|
|
|
|
|
|
PERL_MM_OPT = "INSTALL_BASE=${placeholder "out"}";
|
|
|
|
|
2023-08-27 04:20:00 +00:00
|
|
|
buildInputs = [ PodMarkdown JSONXS TextCSV_XS ];
|
2021-05-08 16:18:22 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ which bzip2 ];
|
2021-05-08 16:18:22 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/darold/pgbadger";
|
|
|
|
description = "A fast PostgreSQL Log Analyzer";
|
2023-08-27 04:20:00 +00:00
|
|
|
changelog = "https://github.com/darold/pgbadger/raw/v${version}/ChangeLog";
|
2021-05-08 16:18:22 +00:00
|
|
|
license = lib.licenses.postgresql;
|
|
|
|
maintainers = lib.teams.determinatesystems.members;
|
2022-02-22 06:23:18 +00:00
|
|
|
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/pgbadger.x86_64-darwin
|
2021-05-08 16:18:22 +00:00
|
|
|
};
|
|
|
|
}
|