uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
36
pkgs/tools/misc/mysqltuner/default.nix
Normal file
36
pkgs/tools/misc/mysqltuner/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, stdenv, fetchFromGitHub, perl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mysqltuner";
|
||||
version = "1.8.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "major";
|
||||
repo = "MySQLTuner-perl";
|
||||
rev = version;
|
||||
sha256 = "sha256-ezF0zjQB/KWD5rUcbXx2uwiNLsIJ7ZKMoqkclP7oc98=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace mysqltuner.pl \
|
||||
--replace '/usr/share' "$out/share"
|
||||
'';
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue