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 @@
{stdenv, lib, fetchurl, ocaml, findlib, gdome2, libxslt, pkg-config}:
let
pname = "gmetadom";
in
stdenv.mkDerivation rec {
name = "${pname}-${version}";
version = "0.2.6";
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}/${version}/${pname}-${version}.tar.gz";
sha256 = "0skmlv0pnqvg99wzzzi1h4zhwzd82xg7xpkj1kwpfy7bzinjh7ig";
};
patches = [ ./gcc-4.3.patch ];
dontDisableStatic = true;
preConfigure=''
configureFlags="--with-ocaml-lib-prefix=$out/lib/ocaml/${ocaml.version}/site-lib"
'';
nativeBuildInputs = [ pkg-config ocaml findlib ];
buildInputs = [ libxslt ];
propagatedBuildInputs = [ gdome2 ];
strictDeps = true;
meta = {
homepage = "http://gmetadom.sourceforge.net/";
description = "A collection of librares, each library providing a DOM implementation";
license = lib.licenses.lgpl21Plus;
maintainers = [ lib.maintainers.roconnor ];
};
}

View file

@ -0,0 +1,18 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## gcc-4.3.dpatch by Stefano Zacchiroli <zack@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: ensure sources build with gcc-4.3
@DPATCH@
diff -urNad trunk~/src/shared/Traits.hh.in trunk/src/shared/Traits.hh.in
--- trunk~/src/shared/Traits.hh.in 2003-01-14 12:41:55.000000000 +0100
+++ trunk/src/shared/Traits.hh.in 2008-05-01 15:45:39.000000000 +0200
@@ -26,6 +26,7 @@
*/
#include <string>
+#include <cstring>
#include "@DOM_NAMESPACE@Char.hh"