1 { lib, stdenv, fetchFromGitHub, perl }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
9 repo = "MySQLTuner-perl";
11 sha256 = "sha256-ezF0zjQB/KWD5rUcbXx2uwiNLsIJ7ZKMoqkclP7oc98=";
15 substituteInPlace mysqltuner.pl \
16 --replace '/usr/share' "$out/share"
19 buildInputs = [ perl ];
24 install -Dm0555 mysqltuner.pl $out/bin/mysqltuner
25 install -Dm0444 -t $out/share/mysqltuner basic_passwords.txt vulnerabilities.csv
31 description = "Make recommendations for increased performance and stability of MariaDB/MySQL";
32 homepage = "https://github.com/major/MySQLTuner-perl";
33 license = licenses.gpl3Plus;
34 maintainers = with maintainers; [ peterhoeg shamilton ];
35 mainProgram = "mysqltuner";