47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
testers,
|
|
pkg-config,
|
|
portaudio,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "livekit-cli";
|
|
version = "2.18.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "livekit";
|
|
repo = "livekit-cli";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-lJagBIebVMWWImOHFxMxJDFRjrBNsrFrmpidnkjjScU=";
|
|
};
|
|
|
|
vendorHash = "sha256-3DMJtYjmE8UQodmy3SsvKEDUKu+tGuhm1Pm7ovd2rUs=";
|
|
|
|
# Use nixpkgs portaudio package + pkg-config rather than relying on a vendored
|
|
# git submodule, similar to the homebrew solution
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ portaudio ];
|
|
tags = [ "portaudio_system" ];
|
|
|
|
subPackages = [ "cmd/lk" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
|
|
|
|
meta = {
|
|
description = "Command line interface to LiveKit";
|
|
homepage = "https://livekit.io/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
mgdelacroix
|
|
faukah
|
|
carschandler
|
|
];
|
|
mainProgram = "lk";
|
|
};
|
|
})
|