tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
livekit-ingress: init at 1.4.3
K900
7 months ago
25823769
767223d2
+58
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
li
livekit-ingress
package.nix
+58
pkgs/by-name/li/livekit-ingress/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
buildGoModule,
4
4
+
fetchFromGitHub,
5
5
+
pkg-config,
6
6
+
makeWrapper,
7
7
+
glib,
8
8
+
gst_all_1,
9
9
+
}:
10
10
+
11
11
+
buildGoModule rec {
12
12
+
pname = "livekit-ingress";
13
13
+
version = "1.4.3";
14
14
+
15
15
+
src = fetchFromGitHub {
16
16
+
owner = "livekit";
17
17
+
repo = "ingress";
18
18
+
tag = "v${version}";
19
19
+
hash = "sha256-gt1oIAKEBwQWqDCLSsRgoe7oIk5jDNReN+dFYUNnRUc=";
20
20
+
};
21
21
+
22
22
+
vendorHash = "sha256-fttI+xNzHiDWKGkl20oGJOcWffElmmqNd7gbb5FiQZc=";
23
23
+
24
24
+
subPackages = [ "cmd/server" ];
25
25
+
26
26
+
postInstall = ''
27
27
+
mv $out/bin/server $out/bin/ingress
28
28
+
wrapProgram $out/bin/ingress --suffix GST_PLUGIN_SYSTEM_PATH_1_0 ":" $GST_PLUGIN_SYSTEM_PATH_1_0
29
29
+
'';
30
30
+
31
31
+
nativeBuildInputs = [
32
32
+
pkg-config
33
33
+
makeWrapper
34
34
+
];
35
35
+
36
36
+
buildInputs = with gst_all_1; [
37
37
+
glib
38
38
+
gstreamer
39
39
+
gst-plugins-base
40
40
+
gst-plugins-good
41
41
+
gst-plugins-bad
42
42
+
gst-plugins-ugly
43
43
+
gst-libav
44
44
+
];
45
45
+
46
46
+
# there are no actual tests, and we don't need to spend
47
47
+
# another 5 minutes of cgo to figure that out
48
48
+
doCheck = false;
49
49
+
50
50
+
meta = {
51
51
+
description = "Ingest streams (RTMP/WHIP) or files (HLS, MP4) to LiveKit WebRTC";
52
52
+
changelog = "https://github.com/livekit/ingress/releases/tag/${src.tag}";
53
53
+
homepage = "https://github.com/livekit/ingress";
54
54
+
license = lib.licenses.asl20;
55
55
+
maintainers = with lib.maintainers; [ k900 ];
56
56
+
mainProgram = "ingress";
57
57
+
};
58
58
+
}