diff options
author | oxalica <oxalicc@pm.me> | 2021-07-21 00:11:42 +0800 |
---|---|---|
committer | oxalica <oxalicc@pm.me> | 2021-07-23 05:38:53 +0800 |
commit | f3959d8e8bfec7ff7af49624031362a9312e15f8 (patch) | |
tree | c321a38d4a503c37b6786330f98a1efc8ee8c566 /pkgs/development/libraries/libtgvoip/default.nix | |
parent | 2a12ba467c49bd8885f3726fca061574a4d816cb (diff) | |
download | nixpkgs-f3959d8e8bfec7ff7af49624031362a9312e15f8.tar nixpkgs-f3959d8e8bfec7ff7af49624031362a9312e15f8.tar.gz nixpkgs-f3959d8e8bfec7ff7af49624031362a9312e15f8.tar.bz2 nixpkgs-f3959d8e8bfec7ff7af49624031362a9312e15f8.tar.lz nixpkgs-f3959d8e8bfec7ff7af49624031362a9312e15f8.tar.xz nixpkgs-f3959d8e8bfec7ff7af49624031362a9312e15f8.tar.zst nixpkgs-f3959d8e8bfec7ff7af49624031362a9312e15f8.zip |
libtgvoip: remove
It's removed because: 1. It's an internal library which is only used by telegram itself, and it's fine to use its bundled source in telegram. 2. It's forced to produce static library, is very fast to build (less than 1min) and is quite small (<2 MiB). 3. Reduce extra maintenance work and have almost no other drawback.
Diffstat (limited to 'pkgs/development/libraries/libtgvoip/default.nix')
-rw-r--r-- | pkgs/development/libraries/libtgvoip/default.nix | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/pkgs/development/libraries/libtgvoip/default.nix b/pkgs/development/libraries/libtgvoip/default.nix deleted file mode 100644 index 3c10220fffb..00000000000 --- a/pkgs/development/libraries/libtgvoip/default.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ stdenv, lib, fetchFromGitHub, fetchpatch -, pkg-config, autoreconfHook -, openssl, libopus, alsa-lib, libpulseaudio -}: - -with lib; - -stdenv.mkDerivation rec { - pname = "libtgvoip"; - version = "unstable-2021-07-13"; - - src = fetchFromGitHub { - owner = "telegramdesktop"; - repo = "libtgvoip"; - rev = "f321e7c8cc086bac6ae06fa0934aac7d9833a310"; - sha256 = "1gk5nsqhbnn1cdh83b70qr3d3v2c1bncylvgn77vvj8vnyjlmnfq"; - }; - - # 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 ]; - buildInputs = [ openssl libopus alsa-lib libpulseaudio ]; - enableParallelBuilding = true; - - meta = { - description = "VoIP library for Telegram clients"; - license = licenses.unlicense; - platforms = platforms.linux; - homepage = "https://github.com/telegramdesktop/libtgvoip"; - maintainers = with maintainers; [ ilya-fedin ]; - }; -} |