forked from mirrors/nixpkgs
dc87cf5298
This also improves the packaging (see #128219).
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch
|
|
, pkg-config, cmake, ninja, yasm
|
|
, 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-27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "desktop-app";
|
|
repo = "tg_owt";
|
|
rev = "91d836dc84a16584c6ac52b36c04c0de504d9c34";
|
|
sha256 = "1ir4svv5mijpzr0rmx65088iikck83vhcdqrpf9dnk6yp4j9v4v2";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [ pkg-config cmake ninja yasm ];
|
|
|
|
buildInputs = [
|
|
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 = [
|
|
# Building as a shared library isn't officially supported and currently broken:
|
|
"-DBUILD_SHARED_LIBS=OFF"
|
|
];
|
|
|
|
meta.license = lib.licenses.bsd3;
|
|
}
|