about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/opal/default.nix
blob: dd19fccd822ab7ff02684e0fe2a452d02e1a2e8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ stdenv, fetchurl, pkgconfig, ptlib, srtp, libtheora, speex, gnome3
, ffmpeg, x264, cyrus_sasl, openldap, openssl, expat, unixODBC }:

stdenv.mkDerivation rec {
  pname = "opal";
  version = "3.10.10";

  src = fetchurl {
    url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
    sha256 = "f208985003461b2743575eccac13ad890b3e5baac35b68ddef17162460aff864";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ ptlib srtp libtheora speex
                  ffmpeg x264 cyrus_sasl openldap openssl expat unixODBC ];
  propagatedBuildInputs = [ speex ];

  configureFlags = [ "--enable-h323" ];

  enableParallelBuilding = true;

  NIX_CFLAGS_COMPILE = "-D__STDC_CONSTANT_MACROS=1 -std=gnu++98";

  patches = [ ./disable-samples-ftbfs.diff ./libav9.patch ./libav10.patch ];

  meta = with stdenv.lib; {
    description = "VoIP library";
    maintainers = [ maintainers.raskin ];
    platforms = platforms.linux;
    homepage = "http://www.opalvoip.org/";
    license = with licenses; [ bsdOriginal mpl10 gpl2Plus lgpl21 ];
  };

  passthru = {
    updateInfo = {
      downloadPage = "http://ftp.gnome.org/pub/GNOME/sources/opal";
    };
    updateScript = gnome3.updateScript {
      packageName = pname;
    };
  };
}