about summary refs log tree commit diff
path: root/pkgs/development/libraries/telepathy/qt5/default.nix
blob: 1c18e84468925a3f861f1f5cc66ff58bade9d24d (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
{ stdenv, fetchurl, cmake, qtbase, pkgconfig, python, libxslt, dbus_glib, dbus_daemon
, telepathy_farstream, telepathy_glib, pythonDBus }:

stdenv.mkDerivation rec {
  name = "telepathy-qt5-0.9.5";

  src = fetchurl {
    url = "http://telepathy.freedesktop.org/releases/telepathy-qt/${name}.tar.gz";
    sha256 = "13lwh23ad9bg7hx1mj4xjc2lb8nlaaw8hbrmx5gg8nz5xxc4hiwk";
  };

  nativeBuildInputs = [ cmake pkgconfig python libxslt ];
  propagatedBuildInputs = [ qtbase dbus_glib telepathy_farstream telepathy_glib pythonDBus ];

  cmakeFlags = [ "-DDESIRED_QT_VERSION=5" ];

  buildInputs = stdenv.lib.optional doCheck dbus_daemon;

  preBuild = ''
    NIX_CFLAGS_COMPILE+=" `pkg-config --cflags dbus-glib-1`"
  '';

  enableParallelBuilding = true;
  doCheck = false; # giving up for now

  meta = {
    platforms = stdenv.lib.platforms.linux;
  };
}