···
13
-
# - This package is based on the Arch package:
13
+
# - This package was originally based on the Arch package but all patches are now upstreamed:
# https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/telegram-desktop
15
-
# Other references that could be useful (but we should try to stick to Arch):
15
+
# Other references that could be useful:
# - https://git.alpinelinux.org/aports/tree/testing/telegram-desktop/APKBUILD
# - https://github.com/void-linux/void-packages/blob/master/srcpkgs/telegram-desktop/template
pname = "telegram-desktop";
22
-
# Note: Due to our strong dependency on the Arch patches it's probably best
23
-
# to also wait for the Arch update (especially if the patches don't apply).
# Telegram-Desktop with submodules
···
sha256 = "1rq3180l4ly0n0jj08cxy9l2d07scwp9hasmliva2xspyv7i9ksd";
31
-
# Arch patches (svn export telegram-desktop/trunk)
32
-
archPatches = fetchsvn {
33
-
url = "svn://svn.archlinux.org/community/telegram-desktop/trunk";
34
-
# svn log svn://svn.archlinux.org/community/telegram-desktop/trunk
36
-
sha256 = "02gk5dlrmxvyl7w1yxmwclknk1k9drpx6rxqc6vmmw85l763m95j";
39
-
# Note: It would be best if someone could get as many patches upstream as
40
-
# possible (we currently depend a lot on custom patches...).
42
-
"${archPatches}/0005-Use-system-wide-fonts.patch"
substituteInPlace Telegram/SourceFiles/platform/linux/linux_libs.cpp \
--replace '"appindicator3"' '"${libappindicator-gtk3}/lib/libappindicator3.so"'
···
"-Ddisable_autoupdate=ON"
69
-
#"-DTDESKTOP_API_TEST=ON" # TODO: Officiall API credentials for Nixpkgs
70
-
"-DTDESKTOP_API_ID=17349" # See: https://github.com/NixOS/nixpkgs/issues/55271
71
-
"-DTDESKTOP_API_HASH=344583e45741c457fe1862106095a5eb"
53
+
# TODO: Officiall API credentials for Nixpkgs
54
+
# (see: https://github.com/NixOS/nixpkgs/issues/55271):
55
+
"-DTDESKTOP_API_TEST=ON"
"-DDESKTOP_APP_USE_GLIBC_WRAPS=OFF"
"-DDESKTOP_APP_USE_PACKAGED=ON"
"-DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF"