1
- { mkDerivation , lib , fetchgit , pkgconfig , gyp , cmake
1
+ { mkDerivation , lib , fetchgit , pkgconfig , gyp , cmake , gcc7
2
2
, qtbase , qtimageformats
3
3
, gtk3 , libappindicator-gtk3 , dee
4
- , ffmpeg , openalSoft , minizip , libopus , alsaLib , libpulseaudio
5
- , gcc
4
+ , ffmpeg , openalSoft , minizip , libopus , alsaLib , libpulseaudio , range-v3
6
5
} :
7
6
8
7
mkDerivation rec {
9
8
name = "telegram-desktop-${ version } " ;
10
- version = "1.1.23 " ;
9
+ version = "1.2.1 " ;
11
10
12
11
# Submodules
13
12
src = fetchgit {
14
13
url = "git://github.com/telegramdesktop/tdesktop" ;
15
14
rev = "v${ version } " ;
16
- sha256 = "0pdjrypjg015zvg8iydrja8kzvq0jsi1wz77r2cxvyyb4rkgyv7x " ;
15
+ sha256 = "1wgcwm9lcy9zw7jawsjj4c46p9mky611k6gjw1900llwxkfh4fh5 " ;
17
16
fetchSubmodules = true ;
18
17
} ;
19
18
20
19
tgaur = fetchgit {
21
20
url = "https://aur.archlinux.org/telegram-desktop-systemqt.git" ;
22
- rev = "885d0594d8dfa0a17c14140579a3d27ef2b9bdd0 " ;
23
- sha256 = "0cdci8d8j3czhznp7gqn16w32j428njmzxr34pdsv40gggh0lbpn " ;
21
+ rev = "1ed27ce40913b9e6e87faf7a2310660c2790b98e " ;
22
+ sha256 = "1i7ipqgisaw54g1nbg2cvpbx89g9gyjjb3sak1486pxsasp1qhyc " ;
24
23
} ;
25
24
26
25
buildInputs = [
27
26
gtk3 libappindicator-gtk3 dee qtbase qtimageformats ffmpeg openalSoft minizip
28
- libopus alsaLib libpulseaudio
27
+ libopus alsaLib libpulseaudio range-v3
29
28
] ;
30
29
31
- nativeBuildInputs = [ pkgconfig gyp cmake gcc ] ;
30
+ nativeBuildInputs = [ pkgconfig gyp cmake gcc7 ] ;
32
31
33
32
patches = [ "${ tgaur } /tdesktop.patch" ] ;
34
33
@@ -54,7 +53,7 @@ mkDerivation rec {
54
53
"-I${ libopus . dev } /include/opus"
55
54
"-I${ alsaLib . dev } /include/alsa"
56
55
"-I${ libpulseaudio . dev } /include/pulse"
57
- ] ) [ "QtCore" "QtGui" ] ;
56
+ ] ) [ "QtCore" "QtGui" "QtDBus" ] ;
58
57
CPPFLAGS = NIX_CFLAGS_COMPILE ;
59
58
60
59
preConfigure = ''
@@ -69,6 +68,9 @@ mkDerivation rec {
69
68
-e 's,-flto,,g'
70
69
71
70
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 \
72
74
-e "s,/usr/bin/moc,moc,g"
73
75
sed -i Telegram/gyp/qt_rcc.gypi \
74
76
-e "s,/usr/bin/rcc,rcc,g"
0 commit comments