depot/third_party/nixpkgs/pkgs/by-name/li/livekit/package.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

32 lines
715 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "livekit";
version = "1.8.0";
src = fetchFromGitHub {
owner = "livekit";
repo = "livekit";
rev = "v${version}";
hash = "sha256-KfUhpA5bhomPU5OC4aCQ5WQIC4ICkaLxQO0tunpkIPI=";
};
vendorHash = "sha256-z5h/r2xC/nEeHk2PLIN+oaGHa8l/xjws79OaDZh9jqE=";
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";
};
}