2012-01-07 18:06:49 +01:00
|
|
|
{ composableDerivation, fetchurl, lib, qt4, openssl, autoconf, automake, pkgconfig }:
|
2009-10-18 06:43:48 +02:00
|
|
|
|
2010-07-28 20:01:17 +02:00
|
|
|
let inherit (composableDerivation) edf wwf; in
|
2009-10-18 06:43:48 +02:00
|
|
|
|
2010-07-28 20:01:17 +02:00
|
|
|
composableDerivation.composableDerivation {} ( fixed : {
|
2013-06-07 02:13:54 +02:00
|
|
|
name = "yate-2.2.0_1";
|
2009-10-18 06:43:48 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://yate.null.ro/tarballs/yate2/yate2.tar.gz;
|
2010-03-01 13:09:05 +01:00
|
|
|
sha256 = "1z1rvzcw6449cvczig1dkh6rlp6f8zv649sk0ldz38mwkyd07257";
|
2009-10-18 06:43:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# TODO zaptel ? postgres ?
|
2012-01-07 18:06:49 +01:00
|
|
|
buildInputs = [ qt4 openssl autoconf automake pkgconfig ];
|
2009-10-18 06:43:48 +02:00
|
|
|
|
|
|
|
# /dev/null is used when linking which is a impure path for the wrapper
|
2010-07-28 20:01:17 +02:00
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
sed -i 's@,/dev/null@@' configure
|
|
|
|
'';
|
2009-10-18 06:43:48 +02:00
|
|
|
|
|
|
|
# --unresolved-symbols=ignore-in-shared-libs makes ld no longer find --library=yate? Why?
|
2010-07-28 20:01:17 +02: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 06:43:48 +02: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 20:01:17 +02:00
|
|
|
maintainers = [ lib.maintainers.marcweber ];
|
|
|
|
platforms = lib.platforms.linux;
|
2009-10-18 06:43:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} )
|