depot/third_party/nixpkgs/pkgs/tools/misc/mysqltuner/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
669 B
Nix

{ stdenv, fetchFromGitHub, perl }:
stdenv.mkDerivation rec {
pname = "mysqltuner";
version = "1.7.17";
src = fetchFromGitHub {
owner = "major";
repo = "MySQLTuner-perl";
rev = version;
sha256 = "0wjdqraa6r6kd6rsgrn177dq6xsnnr1sgnbs9whknjbs4fn3wwl5";
};
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 ];
};
}