tdesktop: 2.7.5 -> 2.8.0

(cherry picked from commit 0d509d366d4fc692a9dc81366445e29da81202e6)
This commit is contained in:
Michael Weiss
2021-07-31 12:40:07 +02:00
committed by Yureka
parent 11c662074e
commit d73ddfe782
3 changed files with 48 additions and 29 deletions
@@ -1,4 +1,5 @@
{ stdenv, lib, fetchFromGitHub, pkg-config, autoreconfHook
{ stdenv, lib, fetchFromGitHub, fetchpatch
, pkg-config, autoreconfHook
, openssl, libopus, alsaLib, libpulseaudio
}:
@@ -6,15 +7,31 @@ with lib;
stdenv.mkDerivation rec {
pname = "libtgvoip";
version = "unstable-2020-03-02";
version = "unstable-2021-01-01";
src = fetchFromGitHub {
owner = "telegramdesktop";
repo = "libtgvoip";
rev = "e422d2a80546a32ab7166a9b1058bacfc5daeefc";
sha256 = "0n6f7215k74039j0zmicjzhj6f45mq6fvkrwzyzibcrv87ib17fc";
rev = "13a5fcb16b04472d808ce122abd695dbf5d206cd";
sha256 = "12p6s7vxkf1gh1spdckkdxrx7bjzw881ds9bky7l5fw751cwb3xd";
};
# To fix the build without external webrtc:
patches = [
(fetchpatch {
# Use methods from updated webrtc.
url = "https://github.com/telegramdesktop/libtgvoip/commit/13a5fcb16b04472d808ce122abd695dbf5d206cd.patch";
sha256 = "0wapqvml3yyv5dlp2q8iih5rfvfnkngll69krhnw5xsdjy22sp7r";
revert = true;
})
(fetchpatch {
# Allow working with external webrtc.
url = "https://github.com/telegramdesktop/libtgvoip/commit/6e82b6e45664c1f80b9039256c99bebc76d34672.patch";
sha256 = "0m87ixja70vnm80a9z4gxk0yl7n64y59smczxb88lxnj6kdgih7x";
revert = true;
})
];
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkg-config autoreconfHook ];