2012-06-13 09:09:15 +02:00
|
|
|
{ stdenv, fetchurl, fetchgit, telepathy_qt, kdelibs, kde_workspace, gettext, dbus_libs
|
|
|
|
, pkgconfigUpstream , qt_gstreamer, telepathy_glib, telepathy_logger, qjson, flex, bison }:
|
2012-03-14 10:52:21 +01:00
|
|
|
|
|
|
|
let
|
2012-06-13 09:09:15 +02:00
|
|
|
pkgconfig = pkgconfigUpstream;
|
2013-02-23 22:20:42 +01:00
|
|
|
version = "0.5.3";
|
2012-03-14 10:52:21 +01:00
|
|
|
manifest = import (./. + "/${version}.nix");
|
2012-06-13 09:09:15 +02:00
|
|
|
|
|
|
|
overrides = {
|
|
|
|
telepathy_logger_qt = x : x // {
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${dbus_libs}/include/dbus-1.0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
extraBuildInputs = {
|
|
|
|
auth_handler = [ qjson ];
|
|
|
|
call_ui = [ qt_gstreamer telepathy_glib ];
|
|
|
|
contact_applet = [ kde_workspace ];
|
|
|
|
telepathy_logger_qt = [ telepathy_logger qt_gstreamer ];
|
|
|
|
text_ui = [ ktp.telepathy_logger_qt qt_gstreamer telepathy_logger ];
|
|
|
|
};
|
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
extraNativeBuildInputs = {
|
2012-06-13 09:09:15 +02:00
|
|
|
telepathy_logger_qt = [ flex bison ];
|
|
|
|
};
|
|
|
|
|
2012-03-14 10:52:21 +01:00
|
|
|
ktpFun = { name, key, sha256 }:
|
|
|
|
{
|
|
|
|
name = key;
|
|
|
|
value = stdenv.mkDerivation (
|
2012-06-13 09:09:15 +02:00
|
|
|
(stdenv.lib.attrByPath [ key ] (x : x) overrides)
|
2012-03-14 10:52:21 +01:00
|
|
|
{
|
|
|
|
name = "${name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kde/unstable/kde-telepathy/${version}/src/${name}-${version}.tar.bz2";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ gettext pkgconfig ] ++ (stdenv.lib.attrByPath [ key ] [] extraNativeBuildInputs);
|
2012-03-14 10:52:21 +01:00
|
|
|
buildInputs = [ kdelibs telepathy_qt ]
|
2012-06-13 09:09:15 +02:00
|
|
|
++ stdenv.lib.optional (name != "ktp-common-internals") ktp.common_internals
|
|
|
|
++ (stdenv.lib.attrByPath [ key ] [] extraBuildInputs);
|
2012-03-17 18:35:29 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit (kdelibs.meta) platforms;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
|
|
|
};
|
2012-03-14 10:52:21 +01:00
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2012-06-13 09:09:15 +02:00
|
|
|
ktp = builtins.listToAttrs (map ktpFun manifest);
|
2012-03-14 10:52:21 +01:00
|
|
|
in
|
2012-06-13 09:09:15 +02:00
|
|
|
ktp // {
|
2012-03-14 10:52:21 +01:00
|
|
|
inherit version;
|
|
|
|
recurseForDerivations = true;
|
2012-06-13 09:09:15 +02:00
|
|
|
full = stdenv.lib.attrValues ktp;
|
2012-03-14 10:52:21 +01:00
|
|
|
}
|