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,48 @@
{ lib, stdenv, fetchsvn }:
stdenv.mkDerivation rec {
pname = "xavs";
version = "55";
src = fetchsvn {
url = "https://svn.code.sf.net/p/xavs/code/trunk";
rev = version;
sha256 = "0drw16wm95dqszpl7j33y4gckz0w0107lnz6wkzb66f0dlbv48cf";
};
enableParallelBuilding = true;
patchPhase = ''
patchShebangs configure
patchShebangs config.sub
patchShebangs version.sh
patchShebangs tools/countquant_xavs.pl
patchShebangs tools/patcheck
patchShebangs tools/regression-test.pl
patchShebangs tools/xavs-format
'' + lib.optionalString stdenv.isDarwin ''
substituteInPlace config.guess --replace 'uname -p' 'uname -m'
substituteInPlace configure \
--replace '-O4' '-O3' \
--replace ' -s ' ' ' \
--replace 'LDFLAGS -s' 'LDFLAGS' \
--replace '-dynamiclib' ' ' \
--replace '-falign-loops=16' ' '
substituteInPlace Makefile --replace '-Wl,-soname,' ' '
'';
configureFlags = [
"--enable-pic"
"--enable-shared"
# Bug preventing compilation with assembly enabled
"--disable-asm"
];
meta = with lib; {
description = "AVS encoder and decoder";
homepage = "http://xavs.sourceforge.net/";
license = licenses.lgpl2;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ codyopel ];
};
}