nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

telegram-desktop: 5.15.4 -> 5.16.4

+26 -21
+13 -2
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix
··· 5 5 fetchpatch, 6 6 libsForQt5, 7 7 yasm, 8 + alsa-lib, 9 + jemalloc, 10 + libopus, 11 + libpulseaudio, 8 12 withWebkit ? true, 9 13 }: 10 14 ··· 42 38 telegram-desktop.override { 43 39 pname = "kotatogram-desktop"; 44 40 inherit withWebkit; 45 - unwrapped = (telegram-desktop.unwrapped.override { inherit tg_owt; }).overrideAttrs { 41 + unwrapped = (telegram-desktop.unwrapped.override { inherit tg_owt; }).overrideAttrs (old: { 46 42 pname = "kotatogram-desktop-unwrapped"; 47 43 version = "${version}-unstable-2024-09-27"; 48 44 ··· 64 60 }) 65 61 ]; 66 62 63 + buildInputs = (old.buildInputs or [ ]) ++ [ 64 + alsa-lib 65 + jemalloc 66 + libopus 67 + libpulseaudio 68 + ]; 69 + 67 70 meta = { 68 71 description = "Kotatogram – experimental Telegram Desktop fork"; 69 72 longDescription = '' ··· 85 74 maintainers = with lib.maintainers; [ ilya-fedin ]; 86 75 mainProgram = if stdenv.hostPlatform.isLinux then "kotatogram-desktop" else "Kotatogram"; 87 76 }; 88 - }; 77 + }); 89 78 }
+2 -19
pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/unwrapped.nix
··· 20 20 protobuf, 21 21 openalSoft, 22 22 minizip, 23 - libopus, 24 - alsa-lib, 25 - libpulseaudio, 26 23 range-v3, 27 24 tl-expected, 28 25 hunspell, 29 26 gobject-introspection, 30 - jemalloc, 31 27 rnnoise, 32 28 microsoft-gsl, 33 29 boost, ··· 42 46 43 47 stdenv.mkDerivation (finalAttrs: { 44 48 pname = "telegram-desktop-unwrapped"; 45 - version = "5.15.4"; 49 + version = "5.16.4"; 46 50 47 51 src = fetchFromGitHub { 48 52 owner = "telegramdesktop"; 49 53 repo = "tdesktop"; 50 54 rev = "v${finalAttrs.version}"; 51 55 fetchSubmodules = true; 52 - hash = "sha256-C7mUV/Jc0OJnVXxRGVx/l2T7APOsY05t5MLW8laIwnA="; 56 + hash = "sha256-yU2Ai2JgxDlaTK5GsL+yWkwtFbk14tPRAj1Rdt+gmmQ="; 53 57 }; 54 - 55 - postPatch = lib.optionalString stdenv.hostPlatform.isLinux '' 56 - substituteInPlace Telegram/ThirdParty/libtgvoip/os/linux/AudioInputALSA.cpp \ 57 - --replace-fail '"libasound.so.2"' '"${lib.getLib alsa-lib}/lib/libasound.so.2"' 58 - substituteInPlace Telegram/ThirdParty/libtgvoip/os/linux/AudioOutputALSA.cpp \ 59 - --replace-fail '"libasound.so.2"' '"${lib.getLib alsa-lib}/lib/libasound.so.2"' 60 - substituteInPlace Telegram/ThirdParty/libtgvoip/os/linux/AudioPulse.cpp \ 61 - --replace-fail '"libpulse.so.0"' '"${lib.getLib libpulseaudio}/lib/libpulse.so.0"' 62 - ''; 63 58 64 59 nativeBuildInputs = 65 60 [ ··· 74 87 ffmpeg_6 75 88 openalSoft 76 89 minizip 77 - libopus 78 90 range-v3 79 91 tl-expected 80 92 rnnoise ··· 87 101 protobuf 88 102 qtwayland 89 103 kcoreaddons 90 - alsa-lib 91 - libpulseaudio 92 104 hunspell 93 - jemalloc 94 105 ] 95 106 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 96 107 apple-sdk_15
+11
pkgs/by-name/_6/_64gram/package.nix
··· 4 4 fetchFromGitHub, 5 5 fetchpatch, 6 6 telegram-desktop, 7 + alsa-lib, 8 + jemalloc, 9 + libopus, 10 + libpulseaudio, 7 11 withWebkit ? true, 8 12 }: 9 13 ··· 34 30 stripLen = 1; 35 31 hash = "sha256-xiq8WLAiSZwpvdyK5JbRAdQ9us93+9oMmeMBqVb1TbI="; 36 32 }) 33 + ]; 34 + 35 + buildInputs = (old.buildInputs or [ ]) ++ [ 36 + alsa-lib 37 + jemalloc 38 + libopus 39 + libpulseaudio 37 40 ]; 38 41 39 42 cmakeFlags = (old.cmakeFlags or [ ]) ++ [