telepathy-qt: minor update, fix by patch, unify

- The patch fixes building against gst-1.6.
- Having to change three files with almost same contents would drive me mad,
so I unified them into a single expression. /cc @ttuegel
- libxslt seemed unneeded, and it uses libxml2 anyway.

+17 -67
+14 -6
pkgs/development/libraries/telepathy/qt/default.nix
··· 1 - { stdenv, fetchurl, cmake, qt4, pkgconfig, python, libxslt, dbus_glib, dbus_daemon 2 - , telepathy_farstream, telepathy_glib, pythonDBus }: 3 4 stdenv.mkDerivation rec { 5 - name = "telepathy-qt-0.9.5"; 6 7 src = fetchurl { 8 url = "http://telepathy.freedesktop.org/releases/telepathy-qt/${name}.tar.gz"; 9 - sha256 = "13lwh23ad9bg7hx1mj4xjc2lb8nlaaw8hbrmx5gg8nz5xxc4hiwk"; 10 }; 11 12 - nativeBuildInputs = [ cmake pkgconfig python libxslt ]; 13 - propagatedBuildInputs = [ qt4 dbus_glib telepathy_farstream telepathy_glib pythonDBus ]; 14 15 buildInputs = stdenv.lib.optional doCheck dbus_daemon; 16 17 preBuild = '' 18 NIX_CFLAGS_COMPILE+=" `pkg-config --cflags dbus-glib-1`"
··· 1 + { stdenv, fetchurl, cmake, qtbase, pkgconfig, python, dbus_glib, dbus_daemon 2 + , telepathy_farstream, telepathy_glib, pythonDBus, fetchpatch }: 3 4 stdenv.mkDerivation rec { 5 + name = "telepathy-qt-0.9.6"; 6 7 src = fetchurl { 8 url = "http://telepathy.freedesktop.org/releases/telepathy-qt/${name}.tar.gz"; 9 + sha256 = "0j7hs055cx5g9chn3b2p0arig70m5g9547qgqvk29kxdyxxxsmqc"; 10 }; 11 + patches = [(fetchpatch { 12 + name = "gst-1.6.patch"; 13 + url = "http://cgit.freedesktop.org/telepathy/telepathy-qt/patch" 14 + + "/?id=ec4a3d62b68a57254515f01fc5ea3325ffb1dbfb"; 15 + sha256 = "1rh7n3xyrwpvpa3haqi35qn4mfz4396ha43w4zsqpmcyda9y65v2"; 16 + })]; 17 18 + nativeBuildInputs = [ cmake pkgconfig python ]; 19 + propagatedBuildInputs = [ qtbase dbus_glib telepathy_farstream telepathy_glib pythonDBus ]; 20 21 buildInputs = stdenv.lib.optional doCheck dbus_daemon; 22 + 23 + cmakeFlags = "-DDESIRED_QT_VERSION=${builtins.substring 0 1 qtbase.version}"; 24 25 preBuild = '' 26 NIX_CFLAGS_COMPILE+=" `pkg-config --cflags dbus-glib-1`"
-29
pkgs/development/libraries/telepathy/qt5/default.nix
··· 1 - { stdenv, fetchurl, cmake, qtbase, pkgconfig, python, libxslt, dbus_glib, dbus_daemon 2 - , telepathy_farstream, telepathy_glib, pythonDBus }: 3 - 4 - stdenv.mkDerivation rec { 5 - name = "telepathy-qt5-0.9.5"; 6 - 7 - src = fetchurl { 8 - url = "http://telepathy.freedesktop.org/releases/telepathy-qt/${name}.tar.gz"; 9 - sha256 = "13lwh23ad9bg7hx1mj4xjc2lb8nlaaw8hbrmx5gg8nz5xxc4hiwk"; 10 - }; 11 - 12 - nativeBuildInputs = [ cmake pkgconfig python libxslt ]; 13 - propagatedBuildInputs = [ qtbase dbus_glib telepathy_farstream telepathy_glib pythonDBus ]; 14 - 15 - cmakeFlags = [ "-DDESIRED_QT_VERSION=5" ]; 16 - 17 - buildInputs = stdenv.lib.optional doCheck dbus_daemon; 18 - 19 - preBuild = '' 20 - NIX_CFLAGS_COMPILE+=" `pkg-config --cflags dbus-glib-1`" 21 - ''; 22 - 23 - enableParallelBuilding = true; 24 - doCheck = false; # giving up for now 25 - 26 - meta = { 27 - platforms = stdenv.lib.platforms.linux; 28 - }; 29 - }
···
-29
pkgs/development/libraries/telepathy/qt5/old.nix
··· 1 - { stdenv, fetchurl, cmake, qt5, pkgconfig, python, libxslt, dbus_glib, dbus_daemon 2 - , telepathy_farstream, telepathy_glib, pythonDBus }: 3 - 4 - stdenv.mkDerivation rec { 5 - name = "telepathy-qt5-0.9.5"; 6 - 7 - src = fetchurl { 8 - url = "http://telepathy.freedesktop.org/releases/telepathy-qt/${name}.tar.gz"; 9 - sha256 = "13lwh23ad9bg7hx1mj4xjc2lb8nlaaw8hbrmx5gg8nz5xxc4hiwk"; 10 - }; 11 - 12 - nativeBuildInputs = [ cmake pkgconfig python libxslt ]; 13 - propagatedBuildInputs = [ qt5.base dbus_glib telepathy_farstream telepathy_glib pythonDBus ]; 14 - 15 - cmakeFlags = [ "-DDESIRED_QT_VERSION=5" ]; 16 - 17 - buildInputs = stdenv.lib.optional doCheck dbus_daemon; 18 - 19 - preBuild = '' 20 - NIX_CFLAGS_COMPILE+=" `pkg-config --cflags dbus-glib-1`" 21 - ''; 22 - 23 - enableParallelBuilding = true; 24 - doCheck = false; # giving up for now 25 - 26 - meta = { 27 - platforms = stdenv.lib.platforms.linux; 28 - }; 29 - }
···
+3 -3
pkgs/top-level/all-packages.nix
··· 8190 8191 signon = callPackage ../development/libraries/signon { }; 8192 8193 - telepathy = callPackage ../development/libraries/telepathy/qt5 { }; 8194 8195 vlc = callPackage ../applications/video/vlc { 8196 qt4 = null; ··· 8503 8504 telepathy_farstream = callPackage ../development/libraries/telepathy/farstream {}; 8505 8506 - telepathy_qt = callPackage ../development/libraries/telepathy/qt { }; 8507 8508 - telepathy_qt5 = callPackage ../development/libraries/telepathy/qt5/old.nix {}; 8509 8510 tevent = callPackage ../development/libraries/tevent { 8511 python = python2;
··· 8190 8191 signon = callPackage ../development/libraries/signon { }; 8192 8193 + telepathy = callPackage ../development/libraries/telepathy/qt { }; 8194 8195 vlc = callPackage ../applications/video/vlc { 8196 qt4 = null; ··· 8503 8504 telepathy_farstream = callPackage ../development/libraries/telepathy/farstream {}; 8505 8506 + telepathy_qt = callPackage ../development/libraries/telepathy/qt { qtbase = qt4; }; 8507 8508 + telepathy_qt5 = telepathy_qt.override { qtbase = qt5.base; }; 8509 8510 tevent = callPackage ../development/libraries/tevent { 8511 python = python2;