nixpkgs/pkgs/tools/misc/mysqltuner/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
909 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, perl }:
2016-10-12 13:26:53 +00:00
stdenv.mkDerivation rec {
pname = "mysqltuner";
2021-11-03 16:06:57 +00:00
version = "1.8.3";
2016-10-12 13:26:53 +00:00
src = fetchFromGitHub {
owner = "major";
repo = "MySQLTuner-perl";
rev = version;
2021-11-03 16:06:57 +00:00
sha256 = "sha256-ezF0zjQB/KWD5rUcbXx2uwiNLsIJ7ZKMoqkclP7oc98=";
2016-10-12 13:26:53 +00:00
};
postPatch = ''
substituteInPlace mysqltuner.pl \
--replace '/usr/share' "$out/share"
'';
2016-10-12 13:26:53 +00:00
buildInputs = [ perl ];
installPhase = ''
runHook preInstall
install -Dm0555 mysqltuner.pl $out/bin/mysqltuner
install -Dm0444 -t $out/share/mysqltuner basic_passwords.txt vulnerabilities.csv
runHook postInstall
2016-10-12 13:26:53 +00:00
'';
meta = with lib; {
2016-10-12 13:26:53 +00:00
description = "Make recommendations for increased performance and stability of MariaDB/MySQL";
homepage = "https://github.com/major/MySQLTuner-perl";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ peterhoeg shamilton ];
2016-10-12 13:26:53 +00:00
};
}