1 { stdenv, fetchurl, lib, qt4, openssl, pkg-config }:
3 stdenv.mkDerivation rec {
8 url = "http://voip.null.ro/tarballs/yate${lib.versions.major version}/${pname}-${version}.tar.gz";
9 hash = "sha256-jCPca/+/jUeNs6hZZLUBl3HI9sms9SIPNGVRanSKA7A=";
12 # TODO zaptel ? postgres ?
13 nativeBuildInputs = [ pkg-config ];
14 buildInputs = [ qt4 openssl ];
16 # /dev/null is used when linking which is a impure path for the wrapper
19 patchShebangs configure
20 substituteInPlace configure --replace ",/dev/null" ""
23 enableParallelBuilding = false; # fails to build if true
25 # --unresolved-symbols=ignore-in-shared-libs makes ld no longer find --library=yate? Why?
28 export NIX_LDFLAGS="-L$TMP/yate $NIX_LDFLAGS"
29 find . -type f -iname Makefile | xargs sed -i \
30 -e 's@-Wl,--unresolved-symbols=ignore-in-shared-libs@@' \
31 -e 's@-Wl,--retain-symbols-file@@'
35 description = "Yet another telephony engine";
36 homepage = "http://yate.null.ro/";
37 # Yate's license is GPL with an exception for linking with
38 # OpenH323 and PWlib (licensed under MPL).
39 license = lib.licenses.gpl2Only;
40 maintainers = [ lib.maintainers.marcweber ];
41 platforms = [ "i686-linux" "x86_64-linux" ];