2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, qtbase
|
|
|
|
, pkg-config
|
|
|
|
, python3Packages
|
|
|
|
, dbus-glib
|
|
|
|
, dbus
|
|
|
|
, telepathy-farstream
|
|
|
|
, telepathy-glib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2020-07-18 16:06:22 +00:00
|
|
|
inherit (python3Packages) python dbus-python;
|
2021-12-06 16:07:01 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "telepathy-qt";
|
|
|
|
version = "0.9.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "https://telepathy.freedesktop.org/releases/telepathy-qt/telepathy-qt-${version}.tar.gz";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "bf8e2a09060addb80475a4938105b9b41d9e6837999b7a00e5351783857e18ad";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config python ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ qtbase telepathy-farstream telepathy-glib ];
|
|
|
|
buildInputs = [ dbus-glib ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ dbus dbus-python ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# No point in building tests if they are not run
|
|
|
|
# On 0.9.7, they do not even build with QT4
|
2021-02-05 17:12:51 +00:00
|
|
|
cmakeFlags = lib.optional (!doCheck) "-DENABLE_TESTS=OFF";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false; # giving up for now
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Telepathy Qt bindings";
|
|
|
|
homepage = "https://telepathy.freedesktop.org/components/telepathy-qt/";
|
|
|
|
license = licenses.lgpl21;
|
2022-11-21 17:40:18 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|