2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPerlPackage, shortenPerlShebang
|
2020-07-18 16:06:22 +00:00
|
|
|
, DBDmysql, DBI, IOSocketSSL, TermReadKey
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
buildPerlPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "Percona-Toolkit";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "3.2.0";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "percona";
|
|
|
|
repo = "percona-toolkit";
|
2020-07-18 16:06:22 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "084ldpskvlfm32lfss5qqzm5y9b8hf029aa4i5pcnzgb53xaxkqx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
outputs = [ "out" ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ shortenPerlShebang ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ DBDmysql DBI IOSocketSSL TermReadKey ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
shortenPerlShebang $(grep -l "/bin/env perl" $out/bin/*)
|
|
|
|
'';
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
meta = {
|
|
|
|
description = "Collection of advanced command-line tools to perform a variety of MySQL and system tasks";
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://www.percona.com/software/database-tools/percona-toolkit";
|
2022-09-09 14:08:57 +00:00
|
|
|
license = with lib.licenses; [ gpl2Only ];
|
|
|
|
maintainers = with lib.maintainers; [ izorkin ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|