2016-10-19 09:15:50 +01:00
|
|
|
{ stdenv, fetchurl, cmake, qtbase, pkgconfig, python2Packages, dbus_glib, dbus_daemon
|
2016-08-16 21:51:21 +01: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 {
|
2016-01-15 17:02:06 +00:00
|
|
|
name = "telepathy-qt-0.9.6.1";
|
2008-01-23 16:34:33 +00:00
|
|
|
|
2009-02-20 16:18:56 +00:00
|
|
|
src = fetchurl {
|
2012-03-13 19:07:09 +00:00
|
|
|
url = "http://telepathy.freedesktop.org/releases/telepathy-qt/${name}.tar.gz";
|
2016-01-15 17:02:06 +00:00
|
|
|
sha256 = "1y51c6rxk5qvmab98c8rnmrlyk27hnl248casvbq3cd93sav8vj9";
|
2009-02-20 16:18:56 +00:00
|
|
|
};
|
2016-03-02 16:40:08 +00:00
|
|
|
|
2016-01-15 17:01:28 +00:00
|
|
|
patches = let
|
|
|
|
mkUrl = hash: "http://cgit.freedesktop.org/telepathy/telepathy-qt/patch/?id=" + hash;
|
|
|
|
in [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "gst-1.6.patch";
|
|
|
|
url = mkUrl "ec4a3d62b68a57254515f01fc5ea3325ffb1dbfb";
|
|
|
|
sha256 = "1rh7n3xyrwpvpa3haqi35qn4mfz4396ha43w4zsqpmcyda9y65v2";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
2016-01-15 18:53:49 +00:00
|
|
|
name = "parallel-make-1.patch";
|
|
|
|
url = mkUrl "1e1f53e9d91684918c34ec50392f86287e001a1e";
|
|
|
|
sha256 = "1f9nk0bi90armb9zay53c7cz70zcwqqwli7sb9wgw76rmwqhl8qw";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "parallel-make-2.patch";
|
2016-01-15 17:01:28 +00:00
|
|
|
url = mkUrl "7389dc990c67d4269f3a79c924c054e87f2e4ac5";
|
|
|
|
sha256 = "0mvdvyy76kpaxacljidf06wd43fr2qripr4mwsakjs3hxb1pkk57";
|
|
|
|
})
|
|
|
|
];
|
2012-03-13 19:07:09 +00:00
|
|
|
|
2015-12-18 09:51:27 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig python ];
|
2016-08-16 21:51:21 +01:00
|
|
|
propagatedBuildInputs = [ qtbase dbus_glib telepathy_farstream telepathy_glib dbus-python ];
|
2014-06-19 22:02:18 +01:00
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optional doCheck dbus_daemon;
|
|
|
|
|
2015-12-18 09:51:27 +00:00
|
|
|
cmakeFlags = "-DDESIRED_QT_VERSION=${builtins.substring 0 1 qtbase.version}";
|
|
|
|
|
2016-01-18 11:25:27 +00:00
|
|
|
# should be removable after the next update
|
2016-03-02 16:40:08 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
|
2016-01-15 17:02:06 +00:00
|
|
|
|
2012-03-13 19:07:09 +00:00
|
|
|
preBuild = ''
|
2012-03-30 10:03:35 +01:00
|
|
|
NIX_CFLAGS_COMPILE+=" `pkg-config --cflags dbus-glib-1`"
|
|
|
|
'';
|
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
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2008-01-23 16:34:33 +00:00
|
|
|
}
|