2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, 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/*)
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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";
|
|
|
|
license = with licenses; [ gpl2 ];
|
|
|
|
maintainers = with maintainers; [ izorkin ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|