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,30 @@
{ lib, stdenv, fetchFromGitHub, buildPackages }:
stdenv.mkDerivation rec {
pname = "meson64-tools";
version = "unstable-2020-08-03";
src = fetchFromGitHub {
owner = "angerman";
repo = pname;
rev = "a2d57d11fd8b4242b903c10dca9d25f7f99d8ff0";
sha256 = "1487cr7sv34yry8f0chaj6s2g3736dzq0aqw239ahdy30yg7hb2v";
};
buildInputs = with buildPackages; [ openssl bison yacc flex bc python3 ];
preBuild = ''
patchShebangs .
substituteInPlace mbedtls/programs/fuzz/Makefile --replace "python2" "python"
substituteInPlace mbedtls/tests/Makefile --replace "python2" "python"
'';
makeFlags = [ "PREFIX=$(out)/bin" ];
meta = with lib; {
homepage = "https://github.com/angerman/meson64-tools";
description = "Tools for Amlogic Meson ARM64 platforms";
license = licenses.unfree; # https://github.com/angerman/meson64-tools/issues/2
maintainers = with maintainers; [ aarapov ];
};
}