summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/twinkle/default.nix
blob: 2e6b904c134eeae01b5ee3575d91124674a951c3 (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
{ stdenv, fetchurl, pkgconfig, autoreconfHook, commoncpp2, ccrtp, openssl, boost
, libsndfile, libxml2, libjpeg, readline, qt3, perl, file
, alsaLib, speex, libzrtpcpp, xorg }:

stdenv.mkDerivation rec {
  name = "twinkle-1.4.2";

  src = fetchurl {
    url = "http://www.xs4all.nl/~mfnboer/twinkle/download/${name}.tar.gz";
    sha256 = "19c9gqam78srsgv0463g7lfnv4mn5lvbxx3zl87bnm0vmk3qcxl0";
  };

  patches = [ # all from Debian
    ./newer-libccrtp.diff
    ./libgsm.patch
    ./localetime_r_conflict.diff
    ./boost_regex.patch # modified not to use "-mt" suffix
  ];

  configureFlags = "--with-extra-includes=${libjpeg}/include";

  buildInputs =
    [ pkgconfig autoreconfHook commoncpp2 openssl boost libsndfile
      libxml2 libjpeg readline qt3 perl file
      # optional ? :
      alsaLib speex
      libzrtpcpp xorg.libX11 xorg.libXaw xorg.libICE xorg.libXext
    ];

  NIX_CFLAGS_LINK = "-Wl,--as-needed -lboost_regex -lasound -lzrtpcpp -lspeex -lspeexdsp";

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    homepage = http://www.twinklephone.com/;
    license = licenses.gpl2Plus;
    maintainers = [ maintainers.marcweber ];
    platforms = platforms.linux;
  };
}