Skip to content

Commit d1a04ef

Browse files
committedJan 21, 2018
tdesktop: 1.1.23 -> 1.2.1
1 parent 94276da commit d1a04ef

File tree

1 file changed

+12
-10
lines changed
  • pkgs/applications/networking/instant-messengers/telegram/tdesktop

1 file changed

+12
-10
lines changed
 

‎pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
1-
{ mkDerivation, lib, fetchgit, pkgconfig, gyp, cmake
1+
{ mkDerivation, lib, fetchgit, pkgconfig, gyp, cmake, gcc7
22
, qtbase, qtimageformats
33
, gtk3, libappindicator-gtk3, dee
4-
, ffmpeg, openalSoft, minizip, libopus, alsaLib, libpulseaudio
5-
, gcc
4+
, ffmpeg, openalSoft, minizip, libopus, alsaLib, libpulseaudio, range-v3
65
}:
76

87
mkDerivation rec {
98
name = "telegram-desktop-${version}";
10-
version = "1.1.23";
9+
version = "1.2.1";
1110

1211
# Submodules
1312
src = fetchgit {
1413
url = "git://github.com/telegramdesktop/tdesktop";
1514
rev = "v${version}";
16-
sha256 = "0pdjrypjg015zvg8iydrja8kzvq0jsi1wz77r2cxvyyb4rkgyv7x";
15+
sha256 = "1wgcwm9lcy9zw7jawsjj4c46p9mky611k6gjw1900llwxkfh4fh5";
1716
fetchSubmodules = true;
1817
};
1918

2019
tgaur = fetchgit {
2120
url = "https://aur.archlinux.org/telegram-desktop-systemqt.git";
22-
rev = "885d0594d8dfa0a17c14140579a3d27ef2b9bdd0";
23-
sha256 = "0cdci8d8j3czhznp7gqn16w32j428njmzxr34pdsv40gggh0lbpn";
21+
rev = "1ed27ce40913b9e6e87faf7a2310660c2790b98e";
22+
sha256 = "1i7ipqgisaw54g1nbg2cvpbx89g9gyjjb3sak1486pxsasp1qhyc";
2423
};
2524

2625
buildInputs = [
2726
gtk3 libappindicator-gtk3 dee qtbase qtimageformats ffmpeg openalSoft minizip
28-
libopus alsaLib libpulseaudio
27+
libopus alsaLib libpulseaudio range-v3
2928
];
3029

31-
nativeBuildInputs = [ pkgconfig gyp cmake gcc ];
30+
nativeBuildInputs = [ pkgconfig gyp cmake gcc7 ];
3231

3332
patches = [ "${tgaur}/tdesktop.patch" ];
3433

@@ -54,7 +53,7 @@ mkDerivation rec {
5453
"-I${libopus.dev}/include/opus"
5554
"-I${alsaLib.dev}/include/alsa"
5655
"-I${libpulseaudio.dev}/include/pulse"
57-
]) [ "QtCore" "QtGui" ];
56+
]) [ "QtCore" "QtGui" "QtDBus" ];
5857
CPPFLAGS = NIX_CFLAGS_COMPILE;
5958

6059
preConfigure = ''
@@ -69,6 +68,9 @@ mkDerivation rec {
6968
-e 's,-flto,,g'
7069
7170
sed -i Telegram/gyp/qt.gypi \
71+
-e "s,/usr/include/qt/QtCore/,${qtbase.dev}/include/QtCore/,g" \
72+
-e 's,\d+",\d+" | head -n1,g'
73+
sed -i Telegram/gyp/qt_moc.gypi \
7274
-e "s,/usr/bin/moc,moc,g"
7375
sed -i Telegram/gyp/qt_rcc.gypi \
7476
-e "s,/usr/bin/rcc,rcc,g"

0 commit comments

Comments
 (0)
Please sign in to comment.