2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "livekit";
|
2024-10-29 11:11:06 +00:00
|
|
|
version = "1.8.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "livekit";
|
|
|
|
repo = "livekit";
|
|
|
|
rev = "v${version}";
|
2024-10-29 11:11:06 +00:00
|
|
|
hash = "sha256-KfUhpA5bhomPU5OC4aCQ5WQIC4ICkaLxQO0tunpkIPI=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-10-29 11:11:06 +00:00
|
|
|
vendorHash = "sha256-z5h/r2xC/nEeHk2PLIN+oaGHa8l/xjws79OaDZh9jqE=";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/server" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/server $out/bin/livekit-server
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "End-to-end stack for WebRTC. SFU media server and SDKs";
|
|
|
|
homepage = "https://livekit.io/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mgdelacroix ];
|
|
|
|
mainProgram = "livekit-server";
|
|
|
|
};
|
|
|
|
}
|