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