nixpkgs/pkgs/by-name/li/livekit/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
715 B
Nix
Raw Normal View History

2023-12-05 17:13:02 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "livekit";
2024-04-27 01:37:00 +00:00
version = "1.6.1";
2023-12-05 17:13:02 +00:00
src = fetchFromGitHub {
owner = "livekit";
repo = "livekit";
rev = "v${version}";
2024-04-27 01:37:00 +00:00
hash = "sha256-i6G221n6wIOYo//+w/4XN4QpTkt7AYwAw6RBYo66vXI=";
2023-12-05 17:13:02 +00:00
};
2024-04-27 01:37:00 +00:00
vendorHash = "sha256-7MPjhjTIO7ZKKyc0Du8+0F+8PvpiwiIBMnXZiYX2XyI=";
2023-12-05 17:13:02 +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";
};
}