2016-10-12 13:26:53 +00:00
|
|
|
{ stdenv, fetchFromGitHub, perl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mysqltuner";
|
2019-10-03 16:26:30 +00:00
|
|
|
version = "1.7.17";
|
2016-10-12 13:26:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "major";
|
|
|
|
repo = "MySQLTuner-perl";
|
|
|
|
rev = version;
|
2019-10-03 16:26:30 +00:00
|
|
|
sha256 = "0wjdqraa6r6kd6rsgrn177dq6xsnnr1sgnbs9whknjbs4fn3wwl5";
|
2016-10-12 13:26:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -m0755 mysqltuner.pl $out/bin/mysqltuner
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Make recommendations for increased performance and stability of MariaDB/MySQL";
|
|
|
|
homepage = http://mysqltuner.com;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|