Merge pull request #11684 from Profpatsch/cutegram

Cutegram
This commit is contained in:
Arseniy Seroka 2015-12-16 10:47:48 +03:00
commit 2542e92ca0
6 changed files with 110 additions and 1 deletions

View File

@ -241,6 +241,7 @@
pmahoney = "Patrick Mahoney <pat@polycrystal.org>";
pmiddend = "Philipp Middendorf <pmidden@secure.mailbox.org>";
prikhi = "Pavan Rikhi <pavan.rikhi@gmail.com>";
profpatsch = "Profpatsch <mail@profpatsch.de>";
psibi = "Sibi <sibi@psibi.in>";
pSub = "Pascal Wittmann <mail@pascal-wittmann.de>";
puffnfresh = "Brian McKenna <brian@brianmckenna.org>";

View File

@ -0,0 +1,31 @@
{ stdenv, fetchFromGitHub
, qt5Libs, qtbase, qtquick1, qtmultimedia, qtquickcontrols, qtgraphicaleffects, makeQtWrapper
, telegram-qml, libqtelegram-aseman-edition }:
stdenv.mkDerivation rec {
name = "cutegram-v${version}";
version = "2.7.0-stable";
src = fetchFromGitHub {
owner = "Aseman-Land";
repo = "Cutegram";
rev = "v${version}";
sha256 = "0qhy30gb8zdrphz1b7zcnv8hmm5fd5qwlvrg7wpsh3hk5niz3zxk";
};
# TODO appindicator, for system tray plugin
buildInputs = [ qtbase qtquick1 qtmultimedia qtquickcontrols qtgraphicaleffects telegram-qml libqtelegram-aseman-edition ];
nativeBuildInputs = [ makeQtWrapper ];
enableParallelBuild = true;
fixupPhase = "wrapQtProgram $out/bin/cutegram";
configurePhase = "qmake -r PREFIX=$out";
meta = with stdenv.lib; {
description = "Telegram client forked from sigram";
homepage = "http://aseman.co/en/products/cutegram/";
license = licenses.gpl3;
maintainer = [ maintainers.profpatsch ];
};
}

View File

@ -0,0 +1,34 @@
{ stdenv, fetchFromGitHub
, qtbase, qtmultimedia, qtquick1 }:
stdenv.mkDerivation rec {
name = "libqtelegram-aseman-edition-v${version}";
version = "6.0";
src = fetchFromGitHub {
owner = "Aseman-Land";
repo = "libqtelegram-aseman-edition";
rev = "v${version}";
sha256 = "17hlxf43xwic8m06q3gwbxjpvz31ks6laffjw6ny98d45zfnfwra";
};
buildInputs = [ qtbase qtmultimedia qtquick1 ];
enableParallelBuild = true;
patchPhase = ''
substituteInPlace libqtelegram-ae.pro --replace "/libqtelegram-ae" ""
substituteInPlace libqtelegram-ae.pro --replace "/\$\$LIB_PATH" ""
'';
configurePhase = ''
qmake -r PREFIX=$out
'';
meta = with stdenv.lib; {
description = "A fork of libqtelegram by Aseman, using qmake";
homepage = src.meta.homepage;
license = stdenv.lib.licenses.gpl3;
maintainer = [ maintainers.profpatsch ];
};
}

View File

@ -0,0 +1,35 @@
{ stdenv, fetchFromGitHub
, qt5Libs, qtbase, qtmultimedia, qtquick1
, libqtelegram-aseman-edition }:
stdenv.mkDerivation rec {
name = "telegram-qml-v${version}";
version = "0.9.1-stable";
src = fetchFromGitHub {
owner = "Aseman-Land";
repo = "TelegramQML";
rev = "v${version}";
sha256 = "077j06lfr6qccqv664hn0ln023xlh5cfm50kapjc2inapxj2yqmn";
};
buildInputs = [ qtbase qtmultimedia qtquick1 libqtelegram-aseman-edition ];
enableParallelBuild = true;
patchPhase = ''
substituteInPlace telegramqml.pro --replace "/\$\$LIB_PATH" ""
substituteInPlace telegramqml.pro --replace "INSTALL_HEADERS_PREFIX/telegramqml" "INSTALL_HEADERS_PREFIX"
'';
configurePhase = ''
qmake -r PREFIX=$out BUILD_MODE+=lib
'';
meta = with stdenv.lib; {
description = "Telegram API tools for QtQml and Qml";
homepage = src.meta.homepage;
license = stdenv.lib.licenses.gpl3;
maintainer = [ maintainers.profpatsch ];
};
}

View File

@ -11344,6 +11344,14 @@ let
cutecom = callPackage ../tools/misc/cutecom { };
cutegram =
let f = ../applications/networking/instant-messengers/telegram;
cp = qt5Libs.callPackage;
in cp "${f}/cutegram" rec {
libqtelegram-aseman-edition = cp "${f}/libqtelegram-aseman-edition" { };
telegram-qml = cp "${f}/telegram-qml" { inherit libqtelegram-aseman-edition; };
};
cvs = callPackage ../applications/version-management/cvs { };
cvsps = callPackage ../applications/version-management/cvsps { };
@ -13275,7 +13283,7 @@ let
taskserver = callPackage ../servers/misc/taskserver { };
telegram-cli = callPackage ../applications/networking/instant-messengers/telegram-cli/default.nix { };
telegram-cli = callPackage ../applications/networking/instant-messengers/telegram/telegram-cli/default.nix { };
telepathy_gabble = callPackage ../applications/networking/instant-messengers/telepathy/gabble { };