nixpkgs/pkgs/by-name/li/livekit/package.nix
2023-12-06 09:21:53 +01:00

32 lines
715 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "livekit";
version = "1.5.1";
src = fetchFromGitHub {
owner = "livekit";
repo = "livekit";
rev = "v${version}";
hash = "sha256-3KRES/2mGO6b1ZZEGx29Yu5wgEG4NOJ7/J0xPvQiNWk=";
};
vendorHash = "sha256-5wByIkMs3321u4/2vPpsZ/L5zlcgrZo0b+NjeMR1RWE=";
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";
};
}