Skip to content

Commit 3f7751e

Browse files
committedNov 21, 2017
flite: 1.9.0 -> 2.0.0, fix build with Nix 1.12
It is failing with: RPATH of binary /nix/store/...-flite-.../bin/flite contains a forbidden reference to /build because of the rpath entry `../build/x86_64-linux-gnu/lib`.
1 parent ce98c21 commit 3f7751e

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed
 

Diff for: ‎pkgs/development/libraries/flite/default.nix

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
{ stdenv, fetchurl, pkgconfig }:
1+
{ stdenv, fetchurl }:
22

33
stdenv.mkDerivation rec {
4-
name = "flite-1.9.0";
4+
name = "flite-2.0.0";
55

66
src = fetchurl {
7-
url = "http://www.festvox.org/bard/${name}-current.tar.bz2";
8-
sha256 = "197cc2a1f045b1666a29a9b5f035b3d676db6db94a4439d99a03b65e551ae2e0";
7+
url = "http://www.festvox.org/flite/packed/flite-2.0/${name}-release.tar.bz2";
8+
sha256 = "04g4r83jh4cl0irc8bg7njngcah7749956v9s6sh552kzmh3i337";
99
};
1010

11-
nativeBuildInputs = [ pkgconfig ];
11+
patches = [ ./fix-rpath.patch ];
1212

13-
configureFlags = ''
14-
--enable-shared
15-
'';
13+
configureFlags = [ "--enable-shared" ];
14+
15+
enableParallelBuilding = true;
1616

1717
meta = {
1818
description = "A small, fast run-time speech synthesis engine";

Diff for: ‎pkgs/development/libraries/flite/fix-rpath.patch

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--- a/main/Makefile
2+
+++ b/main/Makefile
3+
@@ -81 +80,1 @@ ifdef SHFLAGS
4+
-flite_LIBS_flags += -Wl,-rpath $(LIBDIR)
5+
+flite_LIBS_flags += -Wl,-rpath,$(INSTALLLIBDIR)

0 commit comments

Comments
 (0)