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,28 @@
{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
pname = "libjson";
version = "7.6.1";
src = fetchurl {
url = "mirror://sourceforge/libjson/libjson_${version}.zip";
sha256 = "0xkk5qc7kjcdwz9l04kmiz1nhmi7iszl3k165phf53h3a4wpl9h7";
};
patches = [ ./install-fix.patch ];
nativeBuildInputs = [ unzip ];
makeFlags = [ "prefix=$(out)" ];
NIX_CFLAGS_COMPILE = [ "-std=c++11" ];
preInstall = "mkdir -p $out/lib";
meta = with lib; {
homepage = "http://libjson.sourceforge.net/";
description = "A JSON reader and writer";
longDescription = ''
A JSON reader and writer which is super-efficient and
usually runs circles around other JSON libraries.
It's highly customizable to optimize for your particular project, and
very lightweight. For Windows, OSX, or Linux. Works in any language.
'';
platforms = platforms.unix;
license = licenses.bsd2;
};
}

View file

@ -0,0 +1,12 @@
diff -Naur libjson-orig/makefile libjson/makefile
--- libjson-orig/makefile 2012-05-30 05:15:42.000000000 -0400
+++ libjson/makefile 2013-08-15 09:17:41.154245534 -0400
@@ -266,7 +266,7 @@
cp -r ./$(srcdir)/JSONDefs $(include_path)/$(libname_hdr)/$(srcdir)
chmod -R a+r $(include_path)/$(libname_hdr)
find $(include_path)/$(libname_hdr) -type d -exec chmod a+x {} \;
- cp -rv $(srcdir)/Dependencies/ $(include_path)/$(libname_hdr)/$(srcdir)
+ cp -rv $(srcdir)/../Dependencies/ $(include_path)/$(libname_hdr)/$(srcdir)/..
@echo "Install header files: Done."
clean: banner