2012-01-07 17:06:49 +00:00
|
|
|
{ composableDerivation, fetchurl, lib, qt4, openssl, autoconf, automake, pkgconfig }:
|
2009-10-18 04:43:48 +00:00
|
|
|
|
2010-07-28 18:01:17 +00:00
|
|
|
let inherit (composableDerivation) edf wwf; in
|
2009-10-18 04:43:48 +00:00
|
|
|
|
2010-07-28 18:01:17 +00:00
|
|
|
composableDerivation.composableDerivation {} ( fixed : {
|
2013-06-07 00:13:54 +00:00
|
|
|
name = "yate-2.2.0_1";
|
2009-10-18 04:43:48 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://yate.null.ro/tarballs/yate2/yate2.tar.gz;
|
2010-03-01 12:09:05 +00:00
|
|
|
sha256 = "1z1rvzcw6449cvczig1dkh6rlp6f8zv649sk0ldz38mwkyd07257";
|
2009-10-18 04:43:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# TODO zaptel ? postgres ?
|
2012-01-07 17:06:49 +00:00
|
|
|
buildInputs = [ qt4 openssl autoconf automake pkgconfig ];
|
2009-10-18 04:43:48 +00:00
|
|
|
|
|
|
|
# /dev/null is used when linking which is a impure path for the wrapper
|
2010-07-28 18:01:17 +00:00
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
sed -i 's@,/dev/null@@' configure
|
|
|
|
'';
|
2009-10-18 04:43:48 +00:00
|
|
|
|
|
|
|
# --unresolved-symbols=ignore-in-shared-libs makes ld no longer find --library=yate? Why?
|
2010-07-28 18:01:17 +00:00
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
export NIX_LDFLAGS="-L$TMP/yate $NIX_LDFLAGS"
|
|
|
|
find . -type f -iname Makefile | xargs sed -i \
|
|
|
|
-e 's@-Wl,--unresolved-symbols=ignore-in-shared-libs@@' \
|
|
|
|
-e 's@-Wl,--retain-symbols-file@@'
|
|
|
|
'';
|
2009-10-18 04:43:48 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "YATE - Yet Another Telephony Engine";
|
|
|
|
homepage = http://yate.null.ro/;
|
|
|
|
license = ["GPL" "MPL"]; # Yate's license is GPL with an exception for linking with OpenH323 and PWlib (licensed under MPL).
|
2010-07-28 18:01:17 +00:00
|
|
|
maintainers = [ lib.maintainers.marcweber ];
|
|
|
|
platforms = lib.platforms.linux;
|
2009-10-18 04:43:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} )
|