1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00
nixpkgs/pkgs/applications/misc/yate/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

2015-04-15 09:54:12 +01:00
{ stdenv, fetchurl, lib, qt4, openssl, autoconf, automake, pkgconfig }:
2015-04-15 09:54:12 +01:00
stdenv.mkDerivation rec {
name = "yate-${version}";
yate: 5.4.2 -> 6.0.0 - built on NixOS - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate -h` got 0 exit code - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate --help` got 0 exit code - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate -V` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate --version` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate -h` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate --help` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-qt4 -h` got 0 exit code - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-qt4 --help` got 0 exit code - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-qt4 -V` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-qt4 --version` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-qt4 -h` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-qt4 --help` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-config --version` and found version 6.0.0 - found 6.0.0 with grep in /nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1 - found 6.0.0 in filename of file in /nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1 - directory tree listing: https://gist.github.com/b8b0469c23ed9c02dd5173ba822bdf57
2018-03-23 16:04:12 +00:00
version = "6.0.0-1";
src = fetchurl {
yate: 5.4.2 -> 6.0.0 - built on NixOS - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate -h` got 0 exit code - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate --help` got 0 exit code - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate -V` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate --version` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate -h` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate --help` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-qt4 -h` got 0 exit code - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-qt4 --help` got 0 exit code - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-qt4 -V` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-qt4 --version` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-qt4 -h` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-qt4 --help` and found version 6.0.0 - ran `/nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1/bin/yate-config --version` and found version 6.0.0 - found 6.0.0 with grep in /nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1 - found 6.0.0 in filename of file in /nix/store/prjhgn0ps0ywpjfpb64dy0j332dci2xd-yate-6.0.0-1 - directory tree listing: https://gist.github.com/b8b0469c23ed9c02dd5173ba822bdf57
2018-03-23 16:04:12 +00:00
url = "http://voip.null.ro/tarballs/yate${lib.versions.major version}/${name}.tar.gz";
sha256 = "05qqdhi3rp5660gq1484jkmxkm9vq81j0yr765h0gf0xclan1dqa";
};
# TODO zaptel ? postgres ?
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ qt4 openssl autoconf automake ];
# /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
}