Merge pull request #271503 from mgdelacroix/add-livekit-pkg

livekit: init at 1.5.1
This commit is contained in:
OTABI Tomoya 2023-12-19 14:15:21 +09:00 committed by GitHub
commit a5cb4327ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "livekit-cli";
version = "1.3.4";
src = fetchFromGitHub {
owner = "livekit";
repo = "livekit-cli";
rev = "v${version}";
hash = "sha256-pzVzfs0bwG9n7fa0ouQiCFrbXAqkfovEIjVmrHFdqtI=";
};
vendorHash = "sha256-pM5DeaukY6x4RDryLvSEQASSwtOaLiiLObjhdWBYd8k=";
subPackages = [ "cmd/livekit-cli" ];
meta = with lib; {
description = "Command line interface to LiveKit";
homepage = "https://livekit.io/";
license = licenses.asl20;
maintainers = with maintainers; [ mgdelacroix ];
mainProgram = "livekit-cli";
};
}

View file

@ -0,0 +1,32 @@
{ 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";
};
}