2015-04-15 09:54:12 +01:00
|
|
|
{ stdenv, fetchurl, lib, qt4, openssl, autoconf, automake, pkgconfig }:
|
2009-10-18 05:43:48 +01:00
|
|
|
|
2015-04-15 09:54:12 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yate-${version}";
|
|
|
|
version = "5.4.2-1";
|
2009-10-18 05:43:48 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-04-15 09:54:12 +01:00
|
|
|
url = "http://voip.null.ro/tarballs/yate5/${name}.tar.gz";
|
|
|
|
sha256 = "08gwz0gipc5v75jv46p2yg8hg31xjp6x7jssd0rrgsa3szi5697n";
|
2009-10-18 05:43:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# TODO zaptel ? postgres ?
|
2012-01-07 17:06:49 +00:00
|
|
|
buildInputs = [ qt4 openssl autoconf automake pkgconfig ];
|
2009-10-18 05:43:48 +01:00
|
|
|
|
|
|
|
# /dev/null is used when linking which is a impure path for the wrapper
|
2010-07-28 19:01:17 +01:00
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
sed -i 's@,/dev/null@@' configure
|
2015-04-15 09:54:12 +01:00
|
|
|
'';
|
2009-10-18 05:43:48 +01:00
|
|
|
|
|
|
|
# --unresolved-symbols=ignore-in-shared-libs makes ld no longer find --library=yate? Why?
|
2010-07-28 19:01:17 +01: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 05:43:48 +01:00
|
|
|
|
2015-04-15 09:54:12 +01:00
|
|
|
meta = {
|
|
|
|
description = "Yet another telephony engine";
|
2009-10-18 05:43:48 +01:00
|
|
|
homepage = http://yate.null.ro/;
|
2015-04-15 09:54:12 +01:00
|
|
|
# Yate's license is GPL with an exception for linking with
|
|
|
|
# OpenH323 and PWlib (licensed under MPL).
|
|
|
|
license = ["GPL" "MPL"];
|
2010-07-28 19:01:17 +01:00
|
|
|
maintainers = [ lib.maintainers.marcweber ];
|
|
|
|
platforms = lib.platforms.linux;
|
2009-10-18 05:43:48 +01:00
|
|
|
};
|
|
|
|
|
2015-04-15 09:54:12 +01:00
|
|
|
}
|