3
0
Fork 0
forked from mirrors/nixpkgs

obs-studio-plugins.obs-teleport: init at 0.6.5

Closes #223775.
This commit is contained in:
Pavel Sobolev 2023-03-30 22:59:47 +03:00
parent 980c86422e
commit 712adfbb27
No known key found for this signature in database
2 changed files with 56 additions and 0 deletions

View file

@ -32,6 +32,8 @@
obs-source-record = callPackage ./obs-source-record.nix { };
obs-teleport = callPackage ./obs-teleport { };
obs-vaapi = callPackage ./obs-vaapi { };
obs-vkcapture = callPackage ./obs-vkcapture.nix {

View file

@ -0,0 +1,54 @@
{ buildGoModule
, fetchFromGitHub
, lib
, libjpeg
, nix-update-script
, obs-studio
}:
buildGoModule rec {
pname = "obs-teleport";
version = "0.6.5";
src = fetchFromGitHub {
owner = "fzwoch";
repo = "obs-teleport";
rev = version;
sha256 = "sha256-J3Q0AQV21jh+Pth5wXbGbryrx7Mg65rAQVapyGBls7Y=";
};
vendorHash = "sha256-2rlEMkdcD+46EpQhUpLIGMzqvlyMFYK/XQYV9DJZxao=";
buildInputs = [
libjpeg
obs-studio
];
ldflags = [ "-s" "-w" ];
CGO_CFLAGS = "-I${obs-studio}/include/obs";
CGO_LDFLAGS = "-L${obs-studio}/lib -lobs -lobs-frontend-api";
buildPhase = ''
runHook preBuild
go build -buildmode=c-shared -o obs-teleport.so .
runHook postBuild
'';
postInstall = ''
mkdir -p $out/lib/obs-plugins
mv obs-teleport.so $out/lib/obs-plugins
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "An OBS Studio plugin for an open NDI-like replacement";
homepage = "https://github.com/fzwoch/obs-teleport";
maintainers = [ lib.maintainers.paveloom ];
license = lib.licenses.gpl2Plus;
platforms = obs-studio.meta.platforms;
};
}