2012-03-14 20:35:46 +01:00
|
|
|
{ stdenv, fetchurl, fetchgit, telepathy_qt, kdelibs, gettext, pkgconfig
|
|
|
|
, qt_gstreamer }:
|
2012-03-14 10:52:21 +01:00
|
|
|
|
|
|
|
let
|
2012-06-09 15:09:37 +02:00
|
|
|
version = "0.3.1";
|
2012-03-14 10:52:21 +01:00
|
|
|
manifest = import (./. + "/${version}.nix");
|
2012-06-09 15:09:37 +02:00
|
|
|
overrides = { };
|
2012-03-14 10:52:21 +01:00
|
|
|
ktpFun = { name, key, sha256 }:
|
|
|
|
{
|
|
|
|
name = key;
|
|
|
|
value = stdenv.mkDerivation (
|
|
|
|
(if builtins.hasAttr key overrides then builtins.getAttr key overrides else (x: x))
|
|
|
|
{
|
|
|
|
name = "${name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kde/unstable/kde-telepathy/${version}/src/${name}-${version}.tar.bz2";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildNativeInputs = [ gettext pkgconfig ];
|
|
|
|
buildInputs = [ kdelibs telepathy_qt ]
|
|
|
|
++ stdenv.lib.optional (name != "ktp-common-internals") common_internals;
|
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-03-14 20:35:30 +01:00
|
|
|
stable = builtins.listToAttrs (map ktpFun manifest);
|
|
|
|
unstable = {
|
|
|
|
call_ui = stdenv.mkDerivation {
|
|
|
|
name = "ktp-call-ui-20120314";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://anongit.kde.org/ktp-call-ui;
|
|
|
|
rev = "3587166d1ace83b115e113853514a7acc04d9d86";
|
|
|
|
sha256 = "0yv386rqy4vkwmd38wvvsrbam59sbv5k2lwimv96kf93xgkp5g0l";
|
|
|
|
};
|
|
|
|
|
2012-03-14 20:35:46 +01:00
|
|
|
buildInputs = [ kdelibs telepathy_qt common_internals qt_gstreamer ];
|
2012-03-14 20:35:30 +01:00
|
|
|
buildNativeInputs = [ gettext pkgconfig ];
|
|
|
|
};
|
|
|
|
};
|
2012-03-14 10:52:21 +01:00
|
|
|
common_internals = pkgs.common_internals;
|
2012-03-14 20:35:30 +01:00
|
|
|
pkgs = unstable // stable;
|
2012-03-14 10:52:21 +01:00
|
|
|
in
|
2012-03-14 20:35:30 +01:00
|
|
|
pkgs // {
|
2012-03-14 10:52:21 +01:00
|
|
|
inherit version;
|
|
|
|
recurseForDerivations = true;
|
2012-03-16 23:22:50 +01:00
|
|
|
full = stdenv.lib.attrValues stable;
|
2012-03-14 10:52:21 +01:00
|
|
|
}
|