pgbadger: add passthru.{updateScript,tests.version}

This commit is contained in:
Anthony Roussel
2024-03-21 00:20:24 +01:00
parent ee10bed8c4
commit 227b3773a4
+14
View File
@@ -4,9 +4,12 @@
fetchFromGitHub,
JSONXS,
lib,
nix-update-script,
pgbadger,
PodMarkdown,
shortenPerlShebang,
stdenv,
testers,
TextCSV_XS,
which,
}:
@@ -45,11 +48,22 @@ buildPerlPackage rec {
nativeBuildInputs = lib.optionals stdenv.isDarwin [ shortenPerlShebang ];
doCheck = false;
nativeCheckInputs = [
bzip2
which
];
passthru = {
tests.version = testers.testVersion {
inherit version;
command = "${lib.getExe pgbadger} --version";
package = pgbadger;
};
updateScript = nix-update-script { };
};
meta = {
homepage = "https://github.com/darold/pgbadger";
description = "A fast PostgreSQL Log Analyzer";