2016-10-12 15:26:53 +02:00
|
|
|
{ stdenv, fetchFromGitHub, perl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mysqltuner-${version}";
|
2018-11-19 09:31:04 +01:00
|
|
|
version = "1.7.13";
|
2016-10-12 15:26:53 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "major";
|
|
|
|
repo = "MySQLTuner-perl";
|
|
|
|
rev = version;
|
2018-11-19 09:31:04 +01:00
|
|
|
sha256 = "0zxm2hjvgznbbmsqb8bpcgzc0yq1ikxz1gckirp95ibxid3jdham";
|
2016-10-12 15:26:53 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|