2021-01-17 02:09:27 +00:00
|
|
|
{ stdenv, fetchurl, lib, qt4, openssl, pkg-config }:
|
2009-10-18 04:43:48 +00:00
|
|
|
|
2015-04-15 08:54:12 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "yate";
|
2022-02-20 16:15:01 +00:00
|
|
|
version = "6.4.0-1";
|
2009-10-18 04:43:48 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://voip.null.ro/tarballs/yate${lib.versions.major version}/${pname}-${version}.tar.gz";
|
2022-02-20 16:15:01 +00:00
|
|
|
hash = "sha256-jCPca/+/jUeNs6hZZLUBl3HI9sms9SIPNGVRanSKA7A=";
|
2009-10-18 04:43:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# TODO zaptel ? postgres ?
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-08-26 19:51:58 +00:00
|
|
|
buildInputs = [ qt4 openssl ];
|
2009-10-18 04:43:48 +00:00
|
|
|
|
|
|
|
# /dev/null is used when linking which is a impure path for the wrapper
|
2022-02-20 16:15:01 +00:00
|
|
|
postPatch =
|
2010-07-28 18:01:17 +00:00
|
|
|
''
|
2018-03-09 13:50:54 +00:00
|
|
|
patchShebangs configure
|
2022-02-20 16:15:01 +00:00
|
|
|
substituteInPlace configure --replace ",/dev/null" ""
|
2015-04-15 08:54:12 +00:00
|
|
|
'';
|
2009-10-18 04:43:48 +00:00
|
|
|
|
2022-02-20 16:15:01 +00:00
|
|
|
enableParallelBuilding = false; # fails to build if true
|
|
|
|
|
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
|
|
|
|
2015-04-15 08:54:12 +00:00
|
|
|
meta = {
|
|
|
|
description = "Yet another telephony engine";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://yate.null.ro/";
|
2015-04-15 08:54:12 +00:00
|
|
|
# Yate's license is GPL with an exception for linking with
|
|
|
|
# OpenH323 and PWlib (licensed under MPL).
|
2022-02-20 16:15:01 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2010-07-28 18:01:17 +00:00
|
|
|
maintainers = [ lib.maintainers.marcweber ];
|
2018-03-09 14:54:07 +00:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2009-10-18 04:43:48 +00:00
|
|
|
};
|
|
|
|
|
2015-04-15 08:54:12 +00:00
|
|
|
}
|