nixpkgs/pkgs/applications/networking/instant-messengers/telegram/cutegram/default.nix

42 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchgit
, qtbase, qtmultimedia, qtquick1, qtquickcontrols
, qtimageformats, qtgraphicaleffects, qtwebkit
, telegram-qml, libqtelegram-aseman-edition
2016-03-27 11:36:33 -07:00
, gst_all_1
2017-05-17 12:26:11 -07:00
, makeWrapper, qmake }:
2015-12-12 16:26:38 -08:00
stdenv.mkDerivation rec {
name = "cutegram-${meta.version}";
src = fetchgit {
url = "https://github.com/Aseman-Land/Cutegram.git";
rev = "1dbe2792fb5a1760339379907f906e236c09db84";
sha256 = "146vd3ri05da2asxjjxibnqmb685lgwl2kaz7mwb7ja7vi4149f0";
2015-12-12 16:26:38 -08:00
};
buildInputs =
[ qtbase qtmultimedia qtquick1 qtquickcontrols
qtimageformats qtgraphicaleffects qtwebkit
telegram-qml libqtelegram-aseman-edition
2016-03-27 11:36:33 -07:00
] ++ (with gst_all_1; [ gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly ]);
enableParallelBuilding = true;
2017-05-17 12:26:11 -07:00
nativeBuildInputs = [ makeWrapper qmake ];
2015-12-12 16:26:38 -08:00
2016-03-27 11:36:33 -07:00
fixupPhase = ''
2017-05-17 12:26:11 -07:00
wrapProgram $out/bin/cutegram \
2016-03-27 11:36:33 -07:00
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
'';
2015-12-12 16:26:38 -08:00
meta = with stdenv.lib; {
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/;
2015-12-12 16:26:38 -08:00
license = licenses.gpl3;
maintainers = with maintainers; [ profpatsch AndersonTorres ];
platforms = platforms.linux;
2015-12-12 16:26:38 -08:00
};
}
#TODO: appindicator, for system tray plugin (by @profpatsch)