git.iko.soy/typeable/nixpkgs
on master help sign in
oven-media-engine: init at 0.10.4
commit5ecf942c11328cee4c3b7878dc511df67759278d authorLuke Granger-Brown <git@lukegb.com> dateSun 12 Jul 2020, 16:31 (6 years ago) parentc8a29f6
3 files changed+77
maintainers/maintainer-list.nix+6 pkgs/servers/misc/oven-media-engine/default.nix+69 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+6
@@ -4803,6 +4803,12 @@
48034803 githubId = 34683288;
48044804 name = "Luke Bentley-Fox";
48054805 };
4806+ lukegb = {
4807+ email = "nix@lukegb.com";
4808+ github = "lukegb";
4809+ githubId = 246745;
4810+ name = "Luke Granger-Brown";
4811+ };
48064812 lukego = {
48074813 email = "luke@snabb.co";
48084814 github = "lukego";
pkgs/servers/misc/oven-media-engine/default.nixnew file+69
@@ -0,0 +1,69 @@
1+{ stdenv
2+, fetchFromGitHub
3+, srt
4+, ffmpeg_3_4
5+, bc
6+, pkgconfig
7+, perl
8+, openssl
9+, zlib
10+, ffmpeg
11+, libvpx
12+, libopus
13+, srtp
14+, jemalloc
15+, ... }:
16+
17+let
18+ ffmpeg = ffmpeg_3_4.overrideAttrs (super: {
19+ pname = "${super.pname}-ovenmediaengine";
20+ src = fetchFromGitHub {
21+ owner = "Airensoft";
22+ repo = "FFmpeg";
23+ rev = "142b4bb64b64e337f80066e6af935a68627fedae"; # ome/3.4
24+ sha256 = "0fla3940q3z0c0ik2xzkbvdfvrdg06ban7wi6y94y8mcipszpp11";
25+ };
26+ });
27+in
28+stdenv.mkDerivation rec {
29+ pname = "oven-media-engine";
30+ version = "0.10.4";
31+
32+ src = fetchFromGitHub {
33+ owner = "AirenSoft";
34+ repo = "OvenMediaEngine";
35+ rev = "v${version}";
36+ sha256 = "15lrlynsldlpa21ryzccf5skgiih6y5fc9qg0bfqh557wnnmml6w";
37+ };
38+
39+ sourceRoot = "source/src";
40+ makeFlags = "release CONFIG_LIBRARY_PATHS= CONFIG_PKG_PATHS= GLOBAL_CC=$(CC) GLOBAL_CXX=$(CXX) GLOBAL_LD=$(CXX) SHELL=${stdenv.shell}";
41+ enableParallelBuilding = true;
42+
43+ nativeBuildInputs = [ bc pkgconfig perl ];
44+ buildInputs = [ openssl srt zlib ffmpeg libvpx libopus srtp jemalloc ];
45+
46+ preBuild = ''
47+ patchShebangs core/colorg++
48+ patchShebangs core/colorgcc
49+ patchShebangs projects/main/update_git_info.sh
50+
51+ sed -i -e '/^CC =/d' -e '/^CXX =/d' -e '/^AR =/d' projects/third_party/pugixml-1.9/scripts/pugixml.make
52+ '';
53+
54+ installPhase = ''
55+ install -Dm0755 bin/RELEASE/OvenMediaEngine $out/bin/OvenMediaEngine
56+ install -Dm0644 ../misc/conf_examples/Origin.xml $out/share/examples/origin_conf/Server.xml
57+ install -Dm0644 ../misc/conf_examples/Logger.xml $out/share/examples/origin_conf/Logger.xml
58+ install -Dm0644 ../misc/conf_examples/Edge.xml $out/share/examples/edge_conf/Server.xml
59+ install -Dm0644 ../misc/conf_examples/Logger.xml $out/share/examples/edge_conf/Logger.xml
60+ '';
61+
62+ meta = with stdenv.lib; {
63+ description = "Open-source streaming video service with sub-second latency";
64+ homepage = "https://ovenmediaengine.com";
65+ license = licenses.gpl2;
66+ maintainers = with maintainers; [ lukegb ];
67+ platforms = [ "x86_64-linux" ];
68+ };
69+}
pkgs/top-level/all-packages.nix+2
@@ -16133,6 +16133,8 @@ in
1613316133
1613416134 osrm-backend = callPackage ../servers/osrm-backend { };
1613516135
16136+ oven-media-engine = callPackage ../servers/misc/oven-media-engine { };
16137+
1613616138 p910nd = callPackage ../servers/p910nd { };
1613716139
1613816140 petidomo = callPackage ../servers/mail/petidomo { };