Merge pull request #108653 from lukegb/ome

oven-media-engine: 0.10.8 -> 0.10.9-hotfix
This commit is contained in:
Sandro 2021-01-07 22:13:14 +01:00 committed by GitHub
commit ae1b34a098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
{ stdenv { stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, srt , srt
, ffmpeg_3_4 , ffmpeg_3_4
, bc , bc
@ -12,6 +13,7 @@
, libopus , libopus
, srtp , srtp
, jemalloc , jemalloc
, pcre2
}: }:
let let
@ -27,21 +29,30 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "oven-media-engine"; pname = "oven-media-engine";
version = "0.10.8"; version = "0.10.9-hotfix";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "AirenSoft"; owner = "AirenSoft";
repo = "OvenMediaEngine"; repo = "OvenMediaEngine";
rev = "v${version}"; rev = "v${version}";
sha256 = "ec4yvS+4/rTBHGEx2OP0yoNGDtzPucFOcZJ0o0cCAHg="; sha256 = "1fhria0vwqsgmsglv5gn858li33vfy2dwy1f1qdd2jwikskb53am";
}; };
patches = [
(fetchpatch {
# Needed to fix compilation under GCC 10.
url = "https://github.com/AirenSoft/OvenMediaEngine/commit/ad83e1d2226445d649e4b7e0c75106e31af4940d.patch";
sha256 = "1zk1rgi1wsjl6gdx3hdmgxlgindv6a3lsnkwcgi87ga9abw4vafw";
stripLen = 1;
})
];
sourceRoot = "source/src"; sourceRoot = "source/src";
makeFlags = "release CONFIG_LIBRARY_PATHS= CONFIG_PKG_PATHS= GLOBAL_CC=$(CC) GLOBAL_CXX=$(CXX) GLOBAL_LD=$(CXX) SHELL=${stdenv.shell}"; makeFlags = "release CONFIG_LIBRARY_PATHS= CONFIG_PKG_PATHS= GLOBAL_CC=$(CC) GLOBAL_CXX=$(CXX) GLOBAL_LD=$(CXX) SHELL=${stdenv.shell}";
enableParallelBuilding = true; enableParallelBuilding = true;
nativeBuildInputs = [ bc pkgconfig perl ]; nativeBuildInputs = [ bc pkgconfig perl ];
buildInputs = [ openssl srt zlib ffmpeg libvpx libopus srtp jemalloc ]; buildInputs = [ openssl srt zlib ffmpeg libvpx libopus srtp jemalloc pcre2 ];
preBuild = '' preBuild = ''
patchShebangs core/colorg++ patchShebangs core/colorg++
@ -62,7 +73,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Open-source streaming video service with sub-second latency"; description = "Open-source streaming video service with sub-second latency";
homepage = "https://ovenmediaengine.com"; homepage = "https://ovenmediaengine.com";
license = licenses.gpl2; license = licenses.gpl2Only;
maintainers = with maintainers; [ lukegb ]; maintainers = with maintainers; [ lukegb ];
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
}; };