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:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
40
pkgs/development/libraries/flite/default.nix
Normal file
40
pkgs/development/libraries/flite/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, fetchFromGitHub, alsa-lib, fetchpatch }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "flite";
|
||||
version = "2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "festvox";
|
||||
repo = "flite";
|
||||
rev = "v${version}";
|
||||
sha256 = "1n0p81jzndzc1rzgm66kw9ls189ricy5v1ps11y0p2fk1p56kbjf";
|
||||
};
|
||||
|
||||
buildInputs = lib.optionals stdenv.isLinux [ alsa-lib ];
|
||||
|
||||
# https://github.com/festvox/flite/pull/60.
|
||||
# Replaces `ar` with `$(AR)` in config/common_make_rules.
|
||||
# Improves cross-compilation compatibility.
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/festvox/flite/commit/54c65164840777326bbb83517568e38a128122ef.patch";
|
||||
sha256 = "sha256-hvKzdX7adiqd9D+9DbnfNdqEULg1Hhqe1xElYxNM1B8=";
|
||||
})
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-shared"
|
||||
] ++ lib.optionals stdenv.isLinux [ "--with-audio=alsa" ];
|
||||
|
||||
# main/Makefile creates and removes 'flite_voice_list.c' from multiple targets:
|
||||
# make[1]: *** No rule to make target 'flite_voice_list.c', needed by 'all'. Stop
|
||||
enableParallelBuilding = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A small, fast run-time speech synthesis engine";
|
||||
homepage = "http://www.festvox.org/flite/";
|
||||
license = licenses.bsdOriginal;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue