Mario Rodas 2023-08-27 04:20:00 +00:00 committed by Cole Helbling
parent 1fe570a9e6
commit bd194f336c

View File

@ -1,13 +1,13 @@
{ buildPerlPackage, stdenv, lib, fetchFromGitHub, which, bzip2, PodMarkdown, JSONXS { buildPerlPackage, stdenv, lib, fetchFromGitHub, which, bzip2, PodMarkdown, JSONXS
, TextCSV }: , TextCSV_XS }:
buildPerlPackage rec { buildPerlPackage rec {
pname = "pgbadger"; pname = "pgbadger";
version = "11.5"; version = "12.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "darold"; owner = "darold";
repo = "pgbadger"; repo = "pgbadger";
rev = "98b38161ba99faae77c81d5fa47bd769c1dd750b"; rev = "v${version}";
sha256 = "0r01mx1922g1m56x4958cihk491zjlaijvap0i32grjmnv4s5v88"; hash = "sha256-IzfpDqzS5VcehkPsFxyn3kJsvXs8nLgJ3WT8ZCmIDxI=";
}; };
postPatch = '' postPatch = ''
@ -18,13 +18,14 @@ buildPerlPackage rec {
PERL_MM_OPT = "INSTALL_BASE=${placeholder "out"}"; PERL_MM_OPT = "INSTALL_BASE=${placeholder "out"}";
buildInputs = [ PodMarkdown JSONXS TextCSV ]; buildInputs = [ PodMarkdown JSONXS TextCSV_XS ];
nativeCheckInputs = [ which bzip2 ]; nativeCheckInputs = [ which bzip2 ];
meta = { meta = {
homepage = "https://github.com/darold/pgbadger"; homepage = "https://github.com/darold/pgbadger";
description = "A fast PostgreSQL Log Analyzer"; description = "A fast PostgreSQL Log Analyzer";
changelog = "https://github.com/darold/pgbadger/raw/v${version}/ChangeLog";
license = lib.licenses.postgresql; license = lib.licenses.postgresql;
maintainers = lib.teams.determinatesystems.members; maintainers = lib.teams.determinatesystems.members;
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/pgbadger.x86_64-darwin broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/pgbadger.x86_64-darwin