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