mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
tdesktop: 2.8.0 -> 2.8.1
This also improves the packaging (see #128219).
This commit is contained in:
parent
e863acdf2e
commit
dc87cf5298
2 changed files with 13 additions and 20 deletions
|
@ -1,4 +1,4 @@
|
|||
{ mkDerivation, lib, fetchurl, callPackage
|
||||
{ mkDerivation, lib, fetchFromGitHub, callPackage
|
||||
, pkg-config, cmake, ninja, python3, wrapGAppsHook, wrapQtAppsHook, removeReferencesTo
|
||||
, qtbase, qtimageformats, gtk3, libsForQt5, enchant2, lz4, xxHash
|
||||
, dee, ffmpeg, openalSoft, minizip, libopus, alsa-lib, libpulseaudio, range-v3
|
||||
|
@ -23,12 +23,15 @@ let
|
|||
tg_owt = callPackage ./tg_owt.nix {};
|
||||
in mkDerivation rec {
|
||||
pname = "telegram-desktop";
|
||||
version = "2.8.0";
|
||||
version = "2.8.1";
|
||||
|
||||
# Telegram-Desktop with submodules
|
||||
src = fetchurl {
|
||||
url = "https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz";
|
||||
sha256 = "0689bmdpsj8qmv9ih6ckay23mivhlps8c081qljb8wqplmf2c4ds";
|
||||
src = fetchFromGitHub {
|
||||
owner = "telegramdesktop";
|
||||
repo = "tdesktop";
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "1wf9806al6mzyd8nr37cdk6q2r354acixdqyjchi4r58drm99yv0";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
|
@ -3,32 +3,21 @@
|
|||
, libjpeg, openssl, libopus, ffmpeg, alsa-lib, libpulseaudio, protobuf
|
||||
, xorg, libXtst, libXcomposite, libXdamage, libXext, libXrender, libXrandr
|
||||
, glib, abseil-cpp, pcre, util-linuxMinimal, libselinux, libsepol, pipewire
|
||||
, libXi
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "tg_owt";
|
||||
version = "unstable-2021-06-17";
|
||||
version = "unstable-2021-06-27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "desktop-app";
|
||||
repo = "tg_owt";
|
||||
rev = "f03ef05abf665437649a4f71886db1343590e862";
|
||||
sha256 = "0s6ajw52b95lcq4mn6lv8gj6lhv62bvwjh43w7az2k5pbm14v7vv";
|
||||
rev = "91d836dc84a16584c6ac52b36c04c0de504d9c34";
|
||||
sha256 = "1ir4svv5mijpzr0rmx65088iikck83vhcdqrpf9dnk6yp4j9v4v2";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Our libXtst seems broken:
|
||||
# /nix/store/rd3swxwmzjgjvwhz8svyc8ghc0brq293-libXtst-1.2.3/include/X11/extensions/XTest.h:32:10: fatal error: X11/extensions/XInput.h: No such file or directory
|
||||
(fetchpatch {
|
||||
# Copy updated source files.
|
||||
url = "https://github.com/desktop-app/tg_owt/commit/2c0fbe4d3d1c33d0cc9ff7c112b4db1963bea535.patch";
|
||||
sha256 = "0apd6hfv3a1s3qy10kjwk4z8bg835cpk0ql9qxjnxf4gq183bhif";
|
||||
revert = true;
|
||||
includes = [ "src/modules/desktop_capture/linux/shared_x_display.cc" ];
|
||||
})
|
||||
];
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config cmake ninja yasm ];
|
||||
|
@ -37,6 +26,7 @@ stdenv.mkDerivation {
|
|||
libjpeg openssl libopus ffmpeg alsa-lib libpulseaudio protobuf
|
||||
xorg.libX11 libXtst libXcomposite libXdamage libXext libXrender libXrandr
|
||||
glib abseil-cpp pcre util-linuxMinimal libselinux libsepol pipewire
|
||||
libXi
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
|
|
Loading…
Reference in a new issue