Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
makeWrapper,
|
|
glib,
|
|
gst_all_1,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "livekit-ingress";
|
|
version = "1.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "livekit";
|
|
repo = "ingress";
|
|
tag = "v${version}";
|
|
hash = "sha256-gt1oIAKEBwQWqDCLSsRgoe7oIk5jDNReN+dFYUNnRUc=";
|
|
};
|
|
|
|
vendorHash = "sha256-fttI+xNzHiDWKGkl20oGJOcWffElmmqNd7gbb5FiQZc=";
|
|
|
|
subPackages = [ "cmd/server" ];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/server $out/bin/ingress
|
|
wrapProgram $out/bin/ingress --suffix GST_PLUGIN_SYSTEM_PATH_1_0 ":" $GST_PLUGIN_SYSTEM_PATH_1_0
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = with gst_all_1; [
|
|
glib
|
|
gstreamer
|
|
gst-plugins-base
|
|
gst-plugins-good
|
|
gst-plugins-bad
|
|
gst-plugins-ugly
|
|
gst-libav
|
|
];
|
|
|
|
# there are no actual tests, and we don't need to spend
|
|
# another 5 minutes of cgo to figure that out
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Ingest streams (RTMP/WHIP) or files (HLS, MP4) to LiveKit WebRTC";
|
|
changelog = "https://github.com/livekit/ingress/releases/tag/${src.tag}";
|
|
homepage = "https://github.com/livekit/ingress";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ k900 ];
|
|
mainProgram = "ingress";
|
|
};
|
|
}
|