2018-07-17 21:11:16 +01:00
|
|
|
{ stdenv, fetchurl, cmake, qtbase, pkgconfig, python2Packages, dbus-glib, dbus
|
2018-02-25 02:23:58 +00:00
|
|
|
, telepathy-farstream, telepathy-glib, fetchpatch }:
|
2012-03-13 19:07:09 +00:00
|
|
|
|
2016-08-16 21:51:21 +01:00
|
|
|
let
|
2016-10-19 09:15:50 +01:00
|
|
|
inherit (python2Packages) python dbus-python;
|
2016-08-16 21:51:21 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
2017-12-13 00:03:13 +00:00
|
|
|
name = "telepathy-qt-0.9.7";
|
2008-01-23 16:34:33 +00:00
|
|
|
|
2009-02-20 16:18:56 +00:00
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://telepathy.freedesktop.org/releases/telepathy-qt/${name}.tar.gz";
|
2017-12-13 00:03:13 +00:00
|
|
|
sha256 = "0krxd4hhfx6r0ja19wh3848j7gn1rv8jrnakgmkbmi7bww5x7fi1";
|
2009-02-20 16:18:56 +00:00
|
|
|
};
|
2016-03-02 16:40:08 +00:00
|
|
|
|
2015-12-18 09:51:27 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig python ];
|
2018-02-25 02:23:58 +00:00
|
|
|
propagatedBuildInputs = [ qtbase telepathy-farstream telepathy-glib ];
|
|
|
|
buildInputs = [ dbus-glib ];
|
2018-07-17 21:11:16 +01:00
|
|
|
checkInputs = [ dbus.daemon dbus-python ];
|
2017-12-13 00:03:13 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
# https://github.com/TelepathyIM/telepathy-qt/issues/25
|
|
|
|
(fetchpatch {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/TelepathyIM/telepathy-qt/commit/d654dc70dbec7097e96e6d96ca74ab1b5b00ef8c.patch";
|
2017-12-13 00:03:13 +00:00
|
|
|
sha256 = "1jzd9b9rqh3c8xlq8dr7c0r8aabzf5ywv2gpkk6phh3xwngzrfbh";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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";
|
2014-06-19 22:02:18 +01:00
|
|
|
|
2016-01-15 17:01:28 +00:00
|
|
|
enableParallelBuilding = true;
|
2014-06-19 22:02:18 +01:00
|
|
|
doCheck = false; # giving up for now
|
2014-10-03 14:27:13 +01:00
|
|
|
|
2017-12-13 00:03:13 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Telepathy Qt bindings";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://telepathy.freedesktop.org/components/telepathy-qt/";
|
2017-12-13 00:03:13 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
2014-10-03 14:27:13 +01:00
|
|
|
};
|
2008-01-23 16:34:33 +00:00
|
|
|
}
|