about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/telepathy
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/telepathy')
-rw-r--r--nixpkgs/pkgs/development/libraries/telepathy/farstream/default.nix21
-rw-r--r--nixpkgs/pkgs/development/libraries/telepathy/glib/default.nix59
-rw-r--r--nixpkgs/pkgs/development/libraries/telepathy/qt/default.nix45
3 files changed, 125 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/telepathy/farstream/default.nix b/nixpkgs/pkgs/development/libraries/telepathy/farstream/default.nix
new file mode 100644
index 000000000000..2885f3cbb12d
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/telepathy/farstream/default.nix
@@ -0,0 +1,21 @@
+{ lib, stdenv, fetchurl, pkg-config, telepathy-glib, farstream, dbus-glib }:
+
+stdenv.mkDerivation rec {
+  name = "${pname}-0.6.2";
+  pname = "telepathy-farstream";
+
+  src = fetchurl {
+    url = "https://telepathy.freedesktop.org/releases/${pname}/${name}.tar.gz";
+    sha256 = "02ky12bb92prr5f6xmvmfq4yz2lj33li6nj4829a98hk5pr9k83g";
+  };
+
+  propagatedBuildInputs = [ dbus-glib telepathy-glib farstream ];
+  nativeBuildInputs = [ pkg-config ];
+
+  meta = with lib; {
+    description = "GObject-based C library that uses Telepathy GLib, Farstream and GStreamer to handle the media streaming part of channels of type Call";
+    homepage = "https://telepathy.freedesktop.org/wiki/Components/Telepathy-Farstream/";
+    platforms = platforms.linux;
+    license = licenses.lgpl21;
+  };
+}
diff --git a/nixpkgs/pkgs/development/libraries/telepathy/glib/default.nix b/nixpkgs/pkgs/development/libraries/telepathy/glib/default.nix
new file mode 100644
index 000000000000..9ab269aaacfc
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/telepathy/glib/default.nix
@@ -0,0 +1,59 @@
+{ lib
+, stdenv
+, fetchurl
+, dbus-glib
+, glib
+, python3
+, pkg-config
+, libxslt
+, gobject-introspection
+, vala
+, glibcLocales
+}:
+
+stdenv.mkDerivation rec {
+  pname = "telepathy-glib";
+  version = "0.24.2";
+
+  outputs = [ "out" "dev" ];
+
+  src = fetchurl {
+    url = "${meta.homepage}/releases/telepathy-glib/${pname}-${version}.tar.gz";
+    sha256 = "sKN013HN0IESXzjDq9B5ZXZCMBxxpUPVVeK/IZGSc/A=";
+  };
+
+  nativeBuildInputs = [
+    pkg-config
+    libxslt
+    gobject-introspection
+    vala
+  ];
+
+  buildInputs = [
+    glibcLocales
+    python3
+  ];
+
+  propagatedBuildInputs = [
+    dbus-glib
+    glib
+  ];
+
+  configureFlags = [
+    "--enable-vala-bindings"
+  ];
+
+  LC_ALL = "en_US.UTF-8";
+
+  enableParallelBuilding = true;
+
+  preConfigure = ''
+    substituteInPlace telepathy-glib/telepathy-glib.pc.in --replace Requires.private Requires
+  '';
+
+  meta = with lib; {
+    homepage = "https://telepathy.freedesktop.org";
+    platforms = platforms.unix;
+    license = with licenses; [ bsd2 bsd3 lgpl21Plus ];
+  };
+}
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..37a71fb25363
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/telepathy/qt/default.nix
@@ -0,0 +1,45 @@
+{ lib
+, stdenv
+, fetchurl
+, cmake
+, qtbase
+, pkg-config
+, python3Packages
+, dbus-glib
+, dbus
+, telepathy-farstream
+, telepathy-glib
+}:
+
+let
+  inherit (python3Packages) python dbus-python;
+in
+stdenv.mkDerivation rec {
+  pname = "telepathy-qt";
+  version = "0.9.8";
+
+  src = fetchurl {
+    url = "https://telepathy.freedesktop.org/releases/telepathy-qt/telepathy-qt-${version}.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";
+
+  dontWrapQtApps = true;
+
+  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;
+  };
+}