mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
oven-media-engine: init at 0.10.4
This commit is contained in:
parent
c8a29f640a
commit
5ecf942c11
@ -4803,6 +4803,12 @@
|
||||
githubId = 34683288;
|
||||
name = "Luke Bentley-Fox";
|
||||
};
|
||||
lukegb = {
|
||||
email = "nix@lukegb.com";
|
||||
github = "lukegb";
|
||||
githubId = 246745;
|
||||
name = "Luke Granger-Brown";
|
||||
};
|
||||
lukego = {
|
||||
email = "luke@snabb.co";
|
||||
github = "lukego";
|
||||
|
69
pkgs/servers/misc/oven-media-engine/default.nix
Normal file
69
pkgs/servers/misc/oven-media-engine/default.nix
Normal file
@ -0,0 +1,69 @@
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, srt
|
||||
, ffmpeg_3_4
|
||||
, bc
|
||||
, pkgconfig
|
||||
, perl
|
||||
, openssl
|
||||
, zlib
|
||||
, ffmpeg
|
||||
, libvpx
|
||||
, libopus
|
||||
, srtp
|
||||
, jemalloc
|
||||
, ... }:
|
||||
|
||||
let
|
||||
ffmpeg = ffmpeg_3_4.overrideAttrs (super: {
|
||||
pname = "${super.pname}-ovenmediaengine";
|
||||
src = fetchFromGitHub {
|
||||
owner = "Airensoft";
|
||||
repo = "FFmpeg";
|
||||
rev = "142b4bb64b64e337f80066e6af935a68627fedae"; # ome/3.4
|
||||
sha256 = "0fla3940q3z0c0ik2xzkbvdfvrdg06ban7wi6y94y8mcipszpp11";
|
||||
};
|
||||
});
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "oven-media-engine";
|
||||
version = "0.10.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AirenSoft";
|
||||
repo = "OvenMediaEngine";
|
||||
rev = "v${version}";
|
||||
sha256 = "15lrlynsldlpa21ryzccf5skgiih6y5fc9qg0bfqh557wnnmml6w";
|
||||
};
|
||||
|
||||
sourceRoot = "source/src";
|
||||
makeFlags = "release CONFIG_LIBRARY_PATHS= CONFIG_PKG_PATHS= GLOBAL_CC=$(CC) GLOBAL_CXX=$(CXX) GLOBAL_LD=$(CXX) SHELL=${stdenv.shell}";
|
||||
enableParallelBuilding = true;
|
||||
|
||||
nativeBuildInputs = [ bc pkgconfig perl ];
|
||||
buildInputs = [ openssl srt zlib ffmpeg libvpx libopus srtp jemalloc ];
|
||||
|
||||
preBuild = ''
|
||||
patchShebangs core/colorg++
|
||||
patchShebangs core/colorgcc
|
||||
patchShebangs projects/main/update_git_info.sh
|
||||
|
||||
sed -i -e '/^CC =/d' -e '/^CXX =/d' -e '/^AR =/d' projects/third_party/pugixml-1.9/scripts/pugixml.make
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm0755 bin/RELEASE/OvenMediaEngine $out/bin/OvenMediaEngine
|
||||
install -Dm0644 ../misc/conf_examples/Origin.xml $out/share/examples/origin_conf/Server.xml
|
||||
install -Dm0644 ../misc/conf_examples/Logger.xml $out/share/examples/origin_conf/Logger.xml
|
||||
install -Dm0644 ../misc/conf_examples/Edge.xml $out/share/examples/edge_conf/Server.xml
|
||||
install -Dm0644 ../misc/conf_examples/Logger.xml $out/share/examples/edge_conf/Logger.xml
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Open-source streaming video service with sub-second latency";
|
||||
homepage = "https://ovenmediaengine.com";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ lukegb ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
@ -16133,6 +16133,8 @@ in
|
||||
|
||||
osrm-backend = callPackage ../servers/osrm-backend { };
|
||||
|
||||
oven-media-engine = callPackage ../servers/misc/oven-media-engine { };
|
||||
|
||||
p910nd = callPackage ../servers/p910nd { };
|
||||
|
||||
petidomo = callPackage ../servers/mail/petidomo { };
|
||||
|
Loading…
Reference in New Issue
Block a user