2016-03-02 21:20:07 -08:00
|
|
|
{ stdenv, fetchgit
|
2016-03-05 06:34:17 -08:00
|
|
|
, qtbase, qtmultimedia, qtquick1, qtquickcontrols
|
|
|
|
, qtimageformats, qtgraphicaleffects
|
2016-03-02 21:20:07 -08:00
|
|
|
, telegram-qml, libqtelegram-aseman-edition
|
|
|
|
, gst_plugins_base, gst_plugins_good, gst_plugins_bad, gst_plugins_ugly
|
|
|
|
, makeQtWrapper }:
|
2015-12-12 16:26:38 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-03-02 21:20:07 -08:00
|
|
|
name = "cutegram-${meta.version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/Aseman-Land/Cutegram.git";
|
|
|
|
rev = "1dbe2792fb5a1760339379907f906e236c09db84";
|
|
|
|
sha256 = "080153bpa92jpi0zdrfajrn0yqy3jp8m4704sirbz46dv7471rzl";
|
2015-12-12 16:26:38 -08:00
|
|
|
};
|
2016-03-02 21:20:07 -08:00
|
|
|
|
|
|
|
buildInputs =
|
2016-03-05 06:34:17 -08:00
|
|
|
[ qtbase qtmultimedia qtquick1 qtquickcontrols
|
|
|
|
qtimageformats qtgraphicaleffects
|
|
|
|
telegram-qml libqtelegram-aseman-edition
|
2016-03-02 21:20:07 -08:00
|
|
|
gst_plugins_base gst_plugins_good gst_plugins_bad gst_plugins_ugly ];
|
2015-12-12 16:26:38 -08:00
|
|
|
nativeBuildInputs = [ makeQtWrapper ];
|
2016-03-26 09:55:39 -07:00
|
|
|
enableParallelBuilding = true;
|
2015-12-12 16:26:38 -08:00
|
|
|
|
|
|
|
configurePhase = "qmake -r PREFIX=$out";
|
|
|
|
|
2016-03-02 21:20:07 -08:00
|
|
|
fixupPhase = "wrapQtProgram $out/bin/cutegram";
|
|
|
|
|
2015-12-12 16:26:38 -08:00
|
|
|
meta = with stdenv.lib; {
|
2016-03-02 21:20:07 -08:00
|
|
|
version = "2.7.1";
|
2015-12-12 16:26:38 -08:00
|
|
|
description = "Telegram client forked from sigram";
|
|
|
|
homepage = "http://aseman.co/en/products/cutegram/";
|
|
|
|
license = licenses.gpl3;
|
2016-03-02 21:20:07 -08:00
|
|
|
maintainers = with maintainers; [ profpatsch AndersonTorres ];
|
2016-03-26 09:55:39 -07:00
|
|
|
platforms = platforms.linux;
|
2015-12-12 16:26:38 -08:00
|
|
|
};
|
|
|
|
}
|
2016-03-02 21:20:07 -08:00
|
|
|
#TODO: appindicator, for system tray plugin (by @profpatsch)
|