forked from mirrors/nixpkgs
e2c742329f
* telepathy 0.9.8 no longer supports Qt 4, so telepathy-qt and telepathy_qt now throw an error suggesting to use the Qt 5 packages instead. * telepathy 0.9.8 uses Python 3 instead of Python 2, so that has been corrected in the package. * telepathy 0.9.8 includes the patch that was previously manually added, so therefore it is removed from the package.
33 lines
1.1 KiB
Nix
33 lines
1.1 KiB
Nix
{ stdenv, fetchurl, cmake, qtbase, pkgconfig, python3Packages, dbus-glib, dbus
|
|
, telepathy-farstream, telepathy-glib, fetchpatch }:
|
|
|
|
let
|
|
inherit (python3Packages) python dbus-python;
|
|
in stdenv.mkDerivation rec {
|
|
name = "telepathy-qt-0.9.8";
|
|
|
|
src = fetchurl {
|
|
url = "https://telepathy.freedesktop.org/releases/telepathy-qt/${name}.tar.gz";
|
|
sha256 = "bf8e2a09060addb80475a4938105b9b41d9e6837999b7a00e5351783857e18ad";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig python ];
|
|
propagatedBuildInputs = [ qtbase telepathy-farstream telepathy-glib ];
|
|
buildInputs = [ dbus-glib ];
|
|
checkInputs = [ dbus.daemon dbus-python ];
|
|
|
|
# No point in building tests if they are not run
|
|
# On 0.9.7, they do not even build with QT4
|
|
cmakeFlags = stdenv.lib.optional (!doCheck) "-DENABLE_TESTS=OFF";
|
|
|
|
enableParallelBuilding = true;
|
|
doCheck = false; # giving up for now
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Telepathy Qt bindings";
|
|
homepage = "https://telepathy.freedesktop.org/components/telepathy-qt/";
|
|
license = licenses.lgpl21;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|