Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Motivation for this change
Current PKGBUILD file from Arch (reference): https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/telegram-desktop
Upstream build instructions (unfortunately a complete mess :o):
Relevant Arch package changes (our version is based on the Arch package, mainly for the patches, but we also require some additional changes):
The GYP build is now deprecated . This results in a large number of changes and many custom Nix patches aren't required anymore (and probably haven't been required for quite some time now, the derivation got a bit outdated...). A lot of the changes in this commit are based on the changes of the Arch package  (which our package is based upon). Rough overview of the changes: - gcc9 -> ninja (optional but let's follow Arch here) - Dropped GYP, only CMake now - But: Python is still required - fetchFromGitHub -> fetchurl (optional?) - Apply all Arch patches and remove old patches - Requires one new patch for range-v3 - New dependencies: enchant2, lz4, xxHash - TODO: Plus a few new dependencies that shouldn't be required - Cleanup: Irrelevant flags (e.g. GYP_DEFINES) and patches (e.g. sed) - Simplifies quite a few things :) - Some additional documentation and TODOs Co-Authored-By: Jan Tojnar <firstname.lastname@example.org> : telegramdesktop/tdesktop#7001 : https://git.archlinux.org/svntogit/community.git/commit/?id=23eff2b1ef7435441e93120618ca899f0b0e7e61 : https://git.archlinux.org/svntogit/community.git/commit/?id=6a19e949724b2e2bfcdcf2081111ecd46108e449
Well, this was fun...
But at least Telegram-Desktop runs without any issues so far :) Let's hope there won't be many regressions... (my tests of the major features where all successful).
Spell checking (new feature) doesn't seem to work yet but IIRC there where quite a few upstream issues as well as fixes in the meantime (that should already be in 1.9.4).