kotatogram-desktop: Copy the old tg_owt.nix from tdesktop

The current tg_owt version (since the update of tdesktop to version
2.8.0 in 0d509d366d4) isn't compatible with kotatogram-desktop anymore.

(cherry picked from commit f287805fafbf9f9b3ad024a35db6b81dad76f491)
This commit is contained in:
Michael Weiss 2021-06-26 18:44:59 +02:00 committed by Yureka
parent 1de73b5b66
commit 11620afb1a
2 changed files with 37 additions and 1 deletions

View File

@ -11,7 +11,7 @@
with lib;
let
tg_owt = callPackage ../tdesktop/tg_owt.nix {};
tg_owt = callPackage ./tg_owt.nix {};
in mkDerivation rec {
pname = "kotatogram-desktop";
version = "1.4.1";

View File

@ -0,0 +1,36 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, ninja, yasm
, libjpeg, openssl, libopus, ffmpeg, alsaLib, libpulseaudio, protobuf
, xorg, libXtst
}:
let
rev = "2d804d2c9c5d05324c8ab22f2e6ff8306521b3c3";
sha256 = "0kz0i381iwsgcc3yzsq7njx3gkqja4bb9fsgc24vhg0md540qhyn";
in stdenv.mkDerivation {
pname = "tg_owt";
version = "git-${rev}";
src = fetchFromGitHub {
owner = "desktop-app";
repo = "tg_owt";
inherit rev sha256;
fetchSubmodules = true;
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkg-config cmake ninja yasm ];
buildInputs = [
libjpeg openssl libopus ffmpeg alsaLib libpulseaudio protobuf
xorg.libX11 libXtst
];
cmakeFlags = [
# Building as a shared library isn't officially supported and currently broken:
"-DBUILD_SHARED_LIBS=OFF"
];
meta.license = lib.licenses.bsd3;
}