Commit c86f1904 authored by Simon Hauser's avatar Simon Hauser Committed by Peter Hoeg
Browse files

mysqltuner: 1.8.3 -> 2.6.0

parent 276af645
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -4,24 +4,24 @@
  fetchFromGitHub,
  perl,
}:

stdenv.mkDerivation rec {
  pname = "mysqltuner";
  version = "1.8.3";
  version = "2.6.0";

  src = fetchFromGitHub {
    owner = "major";
    repo = "MySQLTuner-perl";
    rev = version;
    sha256 = "sha256-ezF0zjQB/KWD5rUcbXx2uwiNLsIJ7ZKMoqkclP7oc98=";
    rev = "v${version}";
    hash = "sha256-JIO/auY8E6at9OCIqgKbBz9OhOeZMtQvUoUYPMEVtCg=";
  };

  postPatch = ''
    substituteInPlace mysqltuner.pl \
      --replace '/usr/share' "$out/share"
      --replace-fail '/usr/share' "$out/share"
  '';

  buildInputs = [ perl ];
  dontBuild = true;

  installPhase = ''
    runHook preInstall