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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View 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 ];
};
}