2015-04-15 10:54:12 +02:00
|
|
|
{ stdenv, fetchurl, lib, qt4, openssl, autoconf, automake, pkgconfig }:
|
2009-10-18 06:43:48 +02:00
|
|
|
|
2015-04-15 10:54:12 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yate-${version}";
|
2018-03-23 17:04:12 +01:00
|
|
|
version = "6.0.0-1";
|
2009-10-18 06:43:48 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-23 17:04:12 +01:00
|
|
|
url = "http://voip.null.ro/tarballs/yate${lib.versions.major version}/${name}.tar.gz";
|
|
|
|
sha256 = "05qqdhi3rp5660gq1484jkmxkm9vq81j0yr765h0gf0xclan1dqa";
|
2009-10-18 06:43:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# TODO zaptel ? postgres ?
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ qt4 openssl autoconf automake ];
|
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
|
2018-03-09 14:50:54 +01:00
|
|
|
patchShebangs configure
|
2015-04-15 10:54:12 +02:00
|
|
|
'';
|
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
|
|
|
|
2015-04-15 10:54:12 +02:00
|
|
|
meta = {
|
|
|
|
description = "Yet another telephony engine";
|
2009-10-18 06:43:48 +02:00
|
|
|
homepage = http://yate.null.ro/;
|
2015-04-15 10:54:12 +02:00
|
|
|
# Yate's license is GPL with an exception for linking with
|
|
|
|
# OpenH323 and PWlib (licensed under MPL).
|
|
|
|
license = ["GPL" "MPL"];
|
2010-07-28 20:01:17 +02:00
|
|
|
maintainers = [ lib.maintainers.marcweber ];
|
2018-03-09 15:54:07 +01:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2009-10-18 06:43:48 +02:00
|
|
|
};
|
|
|
|
|
2015-04-15 10:54:12 +02:00
|
|
|
}
|