2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPerlPackage, shortenPerlShebang
|
2020-07-04 14:43:44 +00:00
|
|
|
, DBDmysql, DBI, IOSocketSSL, TermReadKey
|
|
|
|
}:
|
2019-10-21 19:59:52 +00:00
|
|
|
|
2020-07-04 14:43:44 +00:00
|
|
|
buildPerlPackage rec {
|
2019-10-21 19:59:52 +00:00
|
|
|
pname = "Percona-Toolkit";
|
2020-07-04 14:43:44 +00:00
|
|
|
version = "3.2.0";
|
|
|
|
|
2019-10-21 19:59:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "percona";
|
|
|
|
repo = "percona-toolkit";
|
2020-07-04 14:43:44 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "084ldpskvlfm32lfss5qqzm5y9b8hf029aa4i5pcnzgb53xaxkqx";
|
2019-10-21 19:59:52 +00:00
|
|
|
};
|
2020-07-04 14:43:44 +00:00
|
|
|
|
2019-10-21 19:59:52 +00:00
|
|
|
outputs = [ "out" ];
|
2020-07-04 14:43:44 +00:00
|
|
|
|
2020-07-01 22:26:18 +00:00
|
|
|
nativeBuildInputs = [ shortenPerlShebang ];
|
2020-07-04 14:43:44 +00:00
|
|
|
|
2019-10-21 19:59:52 +00:00
|
|
|
buildInputs = [ DBDmysql DBI IOSocketSSL TermReadKey ];
|
2020-07-04 14:43:44 +00:00
|
|
|
|
2020-07-01 22:26:18 +00:00
|
|
|
postInstall = ''
|
|
|
|
shortenPerlShebang $(grep -l "/bin/env perl" $out/bin/*)
|
|
|
|
'';
|
2020-07-04 14:43:44 +00:00
|
|
|
|
2022-08-21 15:26:38 +00:00
|
|
|
meta = {
|
2022-08-21 13:36:55 +00:00
|
|
|
description = "Collection of advanced command-line tools to perform a variety of MySQL and system tasks";
|
2020-07-04 14:43:44 +00:00
|
|
|
homepage = "https://www.percona.com/software/database-tools/percona-toolkit";
|
2022-08-21 15:26:38 +00:00
|
|
|
license = with lib.licenses; [ gpl2Only ];
|
|
|
|
maintainers = with lib.maintainers; [ izorkin ];
|
2019-10-21 19:59:52 +00:00
|
|
|
};
|
|
|
|
}
|