Skip to content

Commit

Permalink
tdesktop: add native notifications support
Browse files Browse the repository at this point in the history
By patching paths to required libs in sources, application
is able to load them and provide an option to use native notifications.
  • Loading branch information
svsdep authored and abbradar committed Feb 25, 2018
1 parent 48479b6 commit 1865ce4
Showing 1 changed file with 6 additions and 1 deletion.
@@ -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
}:

Expand Down Expand Up @@ -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 = [
Expand Down

0 comments on commit 1865ce4

Please sign in to comment.