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,51 @@
{ lib, stdenv, fetchurl, fetchpatch, flite, alsa-lib, debug ? false }:
stdenv.mkDerivation rec {
pname = "eflite";
version = "0.4.1";
src = fetchurl {
url = "https://sourceforge.net/projects/eflite/files/eflite/${version}/${pname}-${version}.tar.gz";
sha256 = "088p9w816s02s64grfs28gai3lnibzdjb9d1jwxzr8smbs2qbbci";
};
buildInputs = [ flite alsa-lib ];
configureFlags = [
"flite_dir=${flite}"
"--with-audio=alsa"
"--with-vox=cmu_us_kal16"
];
patches = [
(fetchpatch {
url = "https://sources.debian.org/data/main/e/eflite/0.4.1-8/debian/patches/cvs-update";
sha256 = "0r631vzmky7b7qyhm152557y4fr0xqrpi3y4w66fcn6p4rj03j05";
})
(fetchpatch {
url = "https://sources.debian.org/data/main/e/eflite/0.4.1-8/debian/patches/buf-overflow";
sha256 = "071qk133kb7n7bq6kxgh3p9bba6hcl1ixsn4lx8vp8klijgrvkmx";
})
(fetchpatch {
url = "https://sources.debian.org/data/main/e/eflite/0.4.1-8/debian/patches/link";
sha256 = "0p833dp4pdsya72bwh3syvkq85927pm6snxvx13lvcppisbhj0fc";
})
./format.patch
];
CFLAGS = lib.optionalString debug " -DDEBUG=2";
meta = {
homepage = "http://eflite.sourceforge.net";
description = "Speech server for screen readers";
longDescription = ''
EFlite is a speech server for Emacspeak and other screen
readers that allows them to interface with Festival Lite,
a free text-to-speech engine developed at the CMU Speech
Center as an off-shoot of Festival.
'';
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ jhhuh ];
};
}

View file

@ -0,0 +1,11 @@
--- eflite-0.4.1.orig/es.c 2017-03-02 14:38:36.009731423 +0100
+++ eflite-0.4.1/es.c 2017-03-02 14:39:06.285894934 +0100
@@ -449,7 +449,7 @@
fclose(fp);
if (flags & LOG_STDERR)
{
- fprintf(stderr, buf);
+ fprintf(stderr, "%s", buf);
fprintf(stderr, "\n");
}
#endif