nixpkgs/pkgs/tools/misc/mysqltuner/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

28 lines
667 B
Nix

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