3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/yate/default.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, lib, qt4, openssl, pkg-config }:
2015-04-15 09:54:12 +01:00
stdenv.mkDerivation rec {
pname = "yate";
2019-08-26 20:51:58 +01:00
version = "6.1.0-1";
src = fetchurl {
url = "http://voip.null.ro/tarballs/yate${lib.versions.major version}/${pname}-${version}.tar.gz";
2019-08-26 20:51:58 +01:00
sha256 = "0xx3i997nsf2wzbv6m5n6adsym0qhgc6xg4rsv0fwqrgisf5327d";
};
# TODO zaptel ? postgres ?
nativeBuildInputs = [ pkg-config ];
2019-08-26 20:51:58 +01:00
buildInputs = [ qt4 openssl ];
# /dev/null is used when linking which is a impure path for the wrapper
preConfigure =
''
sed -i 's@,/dev/null@@' configure
2018-03-09 13:50:54 +00:00
patchShebangs configure
2015-04-15 09:54:12 +01:00
'';
# --unresolved-symbols=ignore-in-shared-libs makes ld no longer find --library=yate? Why?
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@@'
'';
2015-04-15 09:54:12 +01:00
meta = {
description = "Yet another telephony engine";
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"];
maintainers = [ lib.maintainers.marcweber ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
2015-04-15 09:54:12 +01:00
}