tdesktop: add native notifications support

By patching paths to required libs in sources, application
is able to load them and provide an option to use native notifications.
This commit is contained in:
Vasyl Solovei 2018-02-24 19:39:44 +02:00 committed by Nikolay Amiantov
parent 48479b66df
commit 1865ce4abc

@ -1,6 +1,6 @@
{ mkDerivation, lib, fetchgit, fetchpatch
, pkgconfig, gyp, cmake, makeWrapper
, qtbase, qtimageformats, gtk3, libappindicator-gtk3
, qtbase, qtimageformats, gtk3, libappindicator-gtk3, libnotify
, dee, ffmpeg, openalSoft, minizip, libopus, alsaLib, libpulseaudio, range-v3
}:
@ -31,6 +31,11 @@ mkDerivation rec {
})
];
postPatch = ''
substituteInPlace Telegram/SourceFiles/platform/linux/linux_libs.cpp --replace '"appindicator"' '"${libappindicator-gtk3}/lib/libappindicator3.so"'
substituteInPlace Telegram/SourceFiles/platform/linux/linux_libnotify.cpp --replace '"notify"' '"${libnotify}/lib/libnotify.so"'
'';
nativeBuildInputs = [ pkgconfig gyp cmake makeWrapper ];
buildInputs = [