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,39 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, opencv, zlib
, libxml2, freetype, libjpeg, libtiff, swig, openexr
, ilmbase, boost165
, withPython ? true, python3
}:
stdenv.mkDerivation rec {
pname = "yafaray-core";
version = "3.5.1";
src = fetchFromGitHub {
owner = "YafaRay";
repo = "Core";
rev = "v${version}";
sha256 = "043ixf3h4ay2fahsw9lh0pha82f7ri04mlfhvn2pg251012jvhrx";
};
preConfigure = ''
NIX_CFLAGS_COMPILE+=" -isystem ${ilmbase.dev}/include/OpenEXR"
'';
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
boost165 opencv zlib libxml2 freetype libjpeg libtiff
swig openexr ilmbase
] ++ lib.optional withPython python3;
meta = with lib; {
description = "A free, open source raytracer";
homepage = "http://www.yafaray.org";
maintainers = with maintainers; [ hodapp ];
license = licenses.lgpl21;
platforms = [ "x86_64-linux" ];
};
}
# TODO: Add optional Ruby support
# TODO: Add Qt support? (CMake looks for it, but what for?)