-
-
Save grahamc/3562973433d5081041e66ac25bd2f8d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
pkgs = import ./. {}; | |
inherit (pkgs) lib perlPackages buildPerlPackage fetchFromGitHub which; | |
in buildPerlPackage rec { | |
pname = "pgbadger"; | |
version = "11.5"; | |
src = fetchFromGitHub { | |
owner = "darold"; | |
repo = "pgbadger"; | |
rev = "v${version}"; | |
sha256 = "sha256-9c5GAVDNACVzqpXjR8HwI3YU4Wz6ATB7Qxgq4YlEzQk="; | |
}; | |
postPatch = '' | |
patchShebangs ./pgbadger | |
''; | |
outputs = [ "out" ]; | |
DESTDIR = placeholder "out"; | |
propagatedBuildInputs = with perlPackages; [ | |
JSONXS TextCSV | |
]; | |
meta = { | |
homepage = "https://github.com/darold/pgbadger"; | |
description = "A fast PostgreSQL Log Analyzer"; | |
license = lib.licenses.postgresql; | |
maintainers = with lib.maintainers; [ grahamc ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment