2016-03-03 05:20:07 +00:00
|
|
|
{ stdenv, fetchgit
|
2016-03-05 14:34:17 +00:00
|
|
|
, qtbase, qtmultimedia, qtquick1, qtquickcontrols
|
|
|
|
, qtimageformats, qtgraphicaleffects
|
2016-03-03 05:20:07 +00:00
|
|
|
, telegram-qml, libqtelegram-aseman-edition
|
2016-03-27 19:36:33 +01:00
|
|
|
, gst_all_1
|
2016-04-16 20:59:20 +01:00
|
|
|
, makeQtWrapper, qmakeHook }:
|
2015-12-13 00:26:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-03-03 05:20:07 +00:00
|
|
|
name = "cutegram-${meta.version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/Aseman-Land/Cutegram.git";
|
|
|
|
rev = "1dbe2792fb5a1760339379907f906e236c09db84";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "146vd3ri05da2asxjjxibnqmb685lgwl2kaz7mwb7ja7vi4149f0";
|
2015-12-13 00:26:38 +00:00
|
|
|
};
|
2016-03-03 05:20:07 +00:00
|
|
|
|
|
|
|
buildInputs =
|
2016-03-05 14:34:17 +00:00
|
|
|
[ qtbase qtmultimedia qtquick1 qtquickcontrols
|
|
|
|
qtimageformats qtgraphicaleffects
|
|
|
|
telegram-qml libqtelegram-aseman-edition
|
2016-03-27 19:36:33 +01:00
|
|
|
] ++ (with gst_all_1; [ gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly ]);
|
|
|
|
|
2016-04-16 20:59:20 +01:00
|
|
|
nativeBuildInputs = [ makeQtWrapper qmakeHook ];
|
2016-03-27 19:36:33 +01:00
|
|
|
|
2016-03-26 16:55:39 +00:00
|
|
|
enableParallelBuilding = true;
|
2015-12-13 00:26:38 +00:00
|
|
|
|
2016-03-27 19:36:33 +01:00
|
|
|
fixupPhase = ''
|
|
|
|
wrapQtProgram $out/bin/cutegram \
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
|
|
|
|
'';
|
2016-03-03 05:20:07 +00:00
|
|
|
|
2015-12-13 00:26:38 +00:00
|
|
|
meta = with stdenv.lib; {
|
2016-03-03 05:20:07 +00:00
|
|
|
version = "2.7.1";
|
2015-12-13 00:26:38 +00:00
|
|
|
description = "Telegram client forked from sigram";
|
|
|
|
homepage = "http://aseman.co/en/products/cutegram/";
|
|
|
|
license = licenses.gpl3;
|
2016-03-03 05:20:07 +00:00
|
|
|
maintainers = with maintainers; [ profpatsch AndersonTorres ];
|
2016-03-26 16:55:39 +00:00
|
|
|
platforms = platforms.linux;
|
2015-12-13 00:26:38 +00:00
|
|
|
};
|
|
|
|
}
|
2016-03-03 05:20:07 +00:00
|
|
|
#TODO: appindicator, for system tray plugin (by @profpatsch)
|