about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/telepathy/qt/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/telepathy/qt/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/telepathy/qt/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/telepathy/qt/default.nix b/nixpkgs/pkgs/development/libraries/telepathy/qt/default.nix
new file mode 100644
index 000000000000..b606c56445ed
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/telepathy/qt/default.nix
@@ -0,0 +1,31 @@
+{ lib, stdenv, fetchurl, cmake, qtbase, pkg-config, 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 pkg-config 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 = lib.optional (!doCheck) "-DENABLE_TESTS=OFF";
+
+  doCheck = false; # giving up for now
+
+  meta = with lib; {
+    description = "Telepathy Qt bindings";
+    homepage = "https://telepathy.freedesktop.org/components/telepathy-qt/";
+    license = licenses.lgpl21;
+    platforms = platforms.linux;
+  };
+}